/* 核心横幅 - 左文右图布局 */
.hero {
    height: 500px;
    background: #f0f2f5 url('../images/index-bg.jpg') no-repeat center center / cover;
    position: relative;
    display: flex;
    align-items: center; /* 垂直居中 */
}
/* 遮罩层 - 保证文字与背景对比 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
/* 核心容器 - 强制左文右图 */
.hero-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: space-between; /* 左右两端对齐 */
    align-items: center; /* 垂直居中 */
    gap: 50px; /* 文字和图片间距 */
}
/* 左侧文字 - 固定占比，左对齐 */
.hero-content {
    flex: 0 0 55%; /* 文字占55%宽度，不拉伸不收缩 */
    text-align: left;
    color: #fff;
}
.hero-content h1 {
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
/* 右侧图片 - 固定占比，右对齐 */
.hero-img {
    flex: 0 0 40%; /* 图片占40%宽度，不拉伸不收缩 */
    text-align: right; /* 图片右对齐 */
}
.hero-img img {
    max-width: 100%;
    height: auto;
    max-height: 400px; /* 限制图片高度，避免超出横幅 */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 32px;
    background: #1a73e8;
    color: #fff !important;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
    transition: background 0.3s ease;
}
.btn:hover {
    background: #0d47a1;
}
/* 移动端适配 - 单列布局（文字在上，图片在下） */
@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 60px 0;
    }
    .hero-wrap {
        flex-direction: column;
        gap: 30px;
    }
    .hero-content {
        flex: 1;
        width: 100%;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 32px;
    }
    .hero-content p {
        font-size: 18px;
    }
    .hero-img {
        flex: 1;
        width: 100%;
        text-align: center;
    }
    .hero-img img {
        max-height: 300px;
    }
}

/* 核心优势 */
.advantage {
    padding: 60px 0;
    text-align: center;
}
.advantage h2 {
    font-size: 30px;
    margin-bottom: 40px;
}
.advantage-list {
    display: flex;
    gap: 40px;
    justify-content: center;
}
.advantage-item {
    max-width: 400px;
}
.advantage-item img {
    margin-bottom: 20px;
    border-radius: 8px;
}
.advantage-item h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

/* 新闻预览 */
.news-preview {
    padding: 40px 0;
    background: #f9f9f9;
    text-align: center;
}
.news-preview h2 {
    font-size: 30px;
    margin-bottom: 30px;
}
.news-list {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 30px;
}
.news-item {
    max-width: 400px;
    text-align: left;
}
.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 4px;
}
.news-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
}
.news-item p {
    color: #666;
    font-size: 14px;
}
.more-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #1a73e8;
    border-radius: 4px;
}
/* 通用板块标题 */
.section-title {
    font-size: 30px;
    margin-bottom: 40px;
    text-align: center;
    color: #1a1a1a; /* 加深标题颜色，从#222改为#1a1a1a，提升对比度 */
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #1a73e8;
    margin: 15px auto 0;
}

/* 头部布局优化 */
.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 核心横幅（重点优化：解决白色背景下文字看不清） */
.hero {
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff; /* 文字白色 */
    /* 新增：添加半透明黑色遮罩，确保无论背景图是否偏白，文字都清晰 */
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 50%透明度黑色遮罩，可调整数值 */
    z-index: 1;
}
.hero-content {
    position: relative; /* 层级高于遮罩 */
    z-index: 2;
}
.hero-content h1 {
    font-size: 40px;
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3); /* 新增文字阴影，强化可读性 */
}
.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3); /* 新增文字阴影 */
}
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #1a73e8;
    color: #fff;
    border-radius: 4px;
    font-weight: 600; /* 加粗按钮文字，提升辨识度 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* 按钮加阴影，突出显示 */
}
.btn:hover {
    background: #0d47a1;
    color: #fff;
}

/* 核心优势优化（3列展示） */
.advantage {
    padding: 60px 0;
    background: #fff; /* 明确背景色 */
}
.advantage-list {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}
.advantage-item {
    max-width: 350px;
    flex: 1;
    min-width: 280px;
}
.advantage-item h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #1a1a1a; /* 加深标题色 */
}
.advantage-item p {
    color: #444; /* 从#333改为#444，比白色背景对比度更高 */
    line-height: 1.7;
}

/* 产品截图展示 */
.product-show {
    padding: 60px 0;
    background: #f9f9f9; /* 浅灰背景，与白色区分，提升文字可读性 */
}
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.product-item {
    text-align: center;
}
.product-item img {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}
.product-item p {
    color: #444; /* 加深产品描述文字色 */
    font-size: 16px;
    font-weight: 500; /* 轻微加粗 */
}

/* 合作方展示 */
.partner {
    padding: 60px 0;
    background: #fff;
}
.partner-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}
.partner-list img {
    height: 60px;
    filter: grayscale(0.5);
    transition: all 0.3s;
}
.partner-list img:hover {
    filter: grayscale(0);
}

/* 用户案例展示 */
.case {
    padding: 60px 0;
    background: #f5f5f5; /* 浅灰背景，提升文字对比度 */
}
.case-list {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}
.case-item {
    max-width: 500px;
    flex: 1;
    min-width: 300px;
}
.case-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}
.case-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1a1a1a; /* 加深标题色 */
}
.case-item p {
    color: #444; /* 加深描述文字色 */
    line-height: 1.7;
}

/* 新闻预览 */
.news-preview {
    padding: 40px 0;
    background: #fff;
}
.news-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #1a1a1a; /* 加深新闻标题色 */
}
.news-item p {
    color: #555; /* 加深日期文字色 */
    font-size: 14px;
}
.more-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #1a73e8;
    border-radius: 4px;
    color: #1a73e8; /* 按钮文字色加深 */
    font-weight: 500;
}
.more-btn:hover {
    background: #1a73e8;
    color: #fff;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 30px; /* 移动端标题稍小，更易读 */
    }
    .hero-content p {
        font-size: 18px;
    }
    .advantage-list {
        flex-direction: column;
        gap: 40px;
    }
}