/* ===================== 全局样式 ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}
:root {
    --primary-color: #07213E;
    --primary-light: #164B8C;
    --accent-color: #F2C96D;
    --accent-light: #F7D88A;
    --light-color: #F5F5F5;
    --light-gray: #EEEEEE;
    --dark-color: #1A1A2E;
    --text-gray: #666666;
    --text-light: #E0E0E0;
    --white: #FFFFFF;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 24px rgba(15, 52, 96, 0.15);
    --transition: all 0.3s ease-in-out;
    --content-padding: 50px 0;
    --mobile-padding: 40px 0;
    --banner-padding: 80px 0;
    --advantage-padding: 74.5px 0;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}
body {
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
a {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}
a:focus, button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}
/* ===================== 头部导航 ===================== */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(8px);
    -moz-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 999;
}
.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo-box {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
}
.logo-img {
    width: 68px;
    height: 68px;
    background: url(./logo.png) no-repeat center center;
    background-size: contain;
    user-drag: none;
    -webkit-user-drag: none;
    -moz-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}
.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.2;
    text-align: center;
    margin-top: 7px; 
}
.logo-text-cn {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}
.logo-text-en {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-light);
    white-space: nowrap;
    margin-top: 1px;
}
.nav {
    display: flex;
    gap: 30px;
    margin-top: 2px;
}
.nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-gray);
    transition: var(--transition);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link:focus {
    color: var(--primary-light);
    border-bottom: 2px solid var(--accent-color);
    outline: none;
}
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1000;
}
.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
/* ===================== 公司简介 ===================== */
.banner {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--banner-padding);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.banner-text {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}
.banner-title {
    font-size: 4.3rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: 2px;
    line-height: 1.2;
}
.banner-slogan {
    font-size: 2.0rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 500;
}
.banner-desc {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
}
/* ===================== 通用板块标题 ===================== */
.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--primary-color);
    opacity: 1;
    transform: translateY(0);
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}
/* ===================== 核心业务（彻底解决大小不一+完美居中）===================== */
.advantage {
    padding: var(--advantage-padding);
    background-color: var(--white);
}
/* 电脑端核心列表：改为auto列宽，强制整体居中，统一间距 */
.advantage-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    max-width: 1180px;
    justify-content: center; /* 整个列表在容器中水平居中 */
    gap: 20px; /* 统一间距，避免拥挤 */
    margin: 0 auto;
}
/* 电脑端核心板块：统一宽高、padding，彻底消除大小差异 */
.advantage-item {
    padding: 22px 0; /* 去掉左右padding，用固定列宽保证大小一致 */
    background-color: var(--light-color); /* 【修改处】替换为联系方式板块同色--light-color */
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    width: 100%; /* 占满列宽，确保每块尺寸完全相同 */
}
.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(15, 52, 96, 0.1);
    background-color: var(--white);
}
.advantage-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    transition: var(--transition);
}
.advantage-item:hover .advantage-icon {
    color: var(--accent-light);
    transform: scale(1.05);
}
.advantage-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}
/* ===================== 联系方式 ====================== */
.contact {
    padding: 69px 0;
    background-color: var(--light-color);
}
.contact-list {
    display: flex;
    justify-content: center;
    gap: 45px;
    flex-wrap: wrap;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
    background-color: var(--white);
    padding: 28px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    max-width: 360px;
    width: 100%;
    min-width: 300px;
}
.contact-item:hover {
    box-shadow: var(--shadow-hover);
}
.contact-icon {
    font-size: 2.2rem;
    color: var(--accent-color);
    width: 65px;
    height: 65px;
    line-height: 65px;
    text-align: center;
    background-color: rgba(242, 201, 109, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    flex-shrink: 0;
}
.contact-item:hover .contact-icon {
    background-color: rgba(242, 201, 109, 0.2);
    color: var(--accent-light);
}
.contact-content {
    flex: 1;
}
.contact-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}
.contact-text {
    font-size: 1.05rem;
    color: var(--text-gray);
}
.tel-link {
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}
.tel-link:hover, .tel-link:focus {
    color: var(--accent-color);
    text-decoration: underline;
    outline: none;
}
/* ===================== 底部板块 ===================== */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 0;
    height: 80px;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: auto;
}
.footer-text {
    font-size: 0.9rem;
    margin-bottom: 4px;
    line-height: 1.3;
    opacity: 0.8;
    color: var(--white);
}
.footer-text a {
    color: var(--white);
    text-decoration: none;
}
/* ===================== 移动端适配 ====================== */
@media (max-width: 768px) {
    .header-wrap {
        height: 68px;
        padding-left: 0;
    }
    html {
        scroll-padding-top: 68px;
    }
    .logo-box {
        gap: 3px;
        margin-top: 3px;
        margin-left: -5px;
    }
    .logo-img {
        width: 65px;
        height: 65px;
    }
    .logo-text-cn {
        font-size: 1.4rem;
    }
    .logo-text-en {
        font-size: 0.8rem;
        margin-top: 1px;
    }
    .hamburger {
        display: flex;
        margin-top: 2px;
        z-index: 999;
    }
    .nav {
        position: fixed;
        top: 78px;
        right: 15px;
        left: auto;
        width: 160px;
        height: auto;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 15px 0;
        transition: var(--transition);
        box-shadow: var(--shadow);
        border-radius: 12px;
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }
    .nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-link {
        font-size: 1rem;
        padding: 10px 0;
        border-bottom: 1px solid var(--light-gray);
        width: 85%;
        text-align: center;
    }
    .nav-link:last-child {
        border-bottom: none;
    }
    .nav-link:hover, .nav-link:focus {
        border-bottom: 1px solid var(--accent-color);
    }
    .banner {
        padding: 70px 0;
    }
    .banner-title {
        font-size: 3.7rem;
        letter-spacing: 1px;
        line-height: 1.2;
    }
    .banner-slogan {
        font-size: 1.7rem;
        margin-top: 10px;
    }
    .banner-desc {
        font-size: 1.03rem;
        line-height: 1.8;
    }
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
    .advantage {
        padding: 45px 0;
    }
    /* 移动端核心列表恢复自适应布局 */
    .advantage-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        justify-content: stretch;
        max-width: 100%;
    }
    .advantage-item {
        padding: 20px 10px;
        min-height: 130px;
        width: 100%;
    }
    .advantage-icon {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    .contact-list {
        gap: 15px;
    }
    .contact {
        padding: 38px 0;
    }
    .contact-item {
        flex-direction: row;
        max-width: 320px;
        width: 48%;
        padding: 22px 25px;
        min-width: 270px;
    }
    .contact-icon {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 2rem;
    }
    .footer {
        height: 68px;
    }
}
@media (max-width: 480px) {
    .banner {
        padding: 50px 0;
    }
    .banner-title {
        font-size: 3.4rem;
    }
    .contact-item {
        width: 100%;
        max-width: 340px;
        margin: 0 auto 15px;
    }
    .advantage-item {
        padding: 18px 8px;
    }
    .footer-text {
        font-size: 0.8rem;
    }
}
@media (max-width: 375px) {
    .header-wrap {
        justify-content: space-between;
    }
    .logo-box {
        gap: 2px;
        margin-top: 2px;
        margin-left: -4px;
    }
    .logo-img {
        width: 60px;
        height: 60px;
    }
    .logo-text-cn {
        font-size: 1.3rem;
    }
    .logo-text-en {
        font-size: 0.7rem;
    }
    .advantage-list {
        grid-template-columns: 1fr;
    }
    .banner-title {
        font-size: 3.0rem;
    }
}
