/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0176C5;          /* 天蓝色（主色） */
    --primary-dark: #015A99;
    --primary-light: #3A9CD8;
    --primary-soft: #E1F0FA;
    --text: #1F2937;
    --text-light: #6B7280;
    --bg: #FFFFFF;
    --bg-alt: #F6FAFD;
    --border: #E5E7EB;
    --shadow: 0 4px 20px rgba(1, 118, 197, 0.08);
    --shadow-hover: 0 10px 30px rgba(1, 118, 197, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 顶部导航 ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: box-shadow 0.3s;
}

.header.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text span {
    font-weight: 700;
    font-size: 17px;
    color: var(--text);
}

.logo-text small {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
    position: relative;
    transition: color 0.2s;
}

.nav a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.25s;
}

.nav a:hover {
    color: var(--primary);
}

.nav a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 14px;
    padding: 4px 6px;
    border-radius: 6px;
    transition: all 0.2s;
}

.lang-btn.active {
    color: #fff;
    background: var(--primary);
}

.lang-divider {
    color: var(--text-light);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    margin-top: 72px;
    padding: 120px 0 140px;
    background: linear-gradient(135deg, #E1F0FA 0%, #A8D4EF 50%, #5AA6DC 100%);
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
}

.hero h1 {
    font-size: 44px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    color: #0F3D5E;
    margin-bottom: 36px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 20px rgba(1, 118, 197, 0.35);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(1, 118, 197, 0.45);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary-dark);
    border: 1px solid var(--primary);
}

.btn-ghost:hover {
    background: #fff;
    transform: translateY(-2px);
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: #fff;
    clip-path: polygon(0 100%, 100% 100%, 100% 30%, 75% 60%, 50% 30%, 25% 60%, 0 30%);
}

/* ===== Section 通用 ===== */
.section {
    padding: 90px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-head {
    text-align: center;
    margin-bottom: 56px;
}

.section-head h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.section-head p {
    color: var(--primary);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

/* ===== 关于我们 ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 18px;
    color: var(--text-light);
    font-size: 16px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.25s;
}

.stat:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.stat strong {
    display: block;
    font-size: 36px;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 6px;
}

.stat span {
    color: var(--text-light);
    font-size: 14px;
}

/* ===== 技术团队 ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.team-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 24px;
    text-align: center;
    transition: all 0.25s;
    border: 1px solid var(--border);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.team-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
}

.team-card h3 {
    font-size: 19px;
    margin-bottom: 10px;
    color: var(--text);
}

.team-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* ===== 服务流程 ===== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
}

.process-steps::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-soft), var(--primary), var(--primary-soft));
    z-index: 0;
}

.step {
    position: relative;
    text-align: center;
    background: #fff;
    border-radius: 14px;
    padding: 24px 16px;
    border: 1px solid var(--border);
    transition: all 0.25s;
    z-index: 1;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.step-num {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--primary-soft);
}

.step h3 {
    font-size: 17px;
    margin-bottom: 8px;
    color: var(--text);
}

.step p {
    color: var(--text-light);
    font-size: 13px;
}

/* ===== 合作方式 ===== */
.coop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.coop-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    transition: all 0.25s;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.coop-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s;
}

.coop-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.coop-card:hover::before {
    transform: scaleY(1);
}

.coop-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.coop-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* ===== 产品介绍 ===== */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.prod-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    transition: all 0.25s;
    border: 1px solid var(--border);
    text-align: left;
}

.prod-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--primary-soft), #fff);
    border-color: transparent;
}

.prod-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 18px;
}

.prod-card h3 {
    font-size: 19px;
    margin-bottom: 10px;
    color: var(--text);
}

.prod-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* ===== 页脚 ===== */
.footer {
    background: #0F3D5E;
    color: #CBD5E1;
    padding: 60px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col .logo {
    margin-bottom: 16px;
}

.footer-col .logo-text span {
    color: #fff;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-col p {
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-col a {
    display: block;
    color: #CBD5E1;
    font-size: 14px;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary-light);
}

/* 页脚二维码 */
.footer-qrcode {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.qrcode-item {
    text-align: center;
}

.qrcode-box {
    width: 110px;
    height: 110px;
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s;
}

.qrcode-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.qrcode-box:hover {
    transform: translateY(-3px);
}

.qrcode-item span {
    display: block;
    color: #CBD5E1;
    font-size: 13px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #94A3B8;
}

/* ===== 响应式：平板 ===== */
@media (max-width: 992px) {
    .hero h1 { font-size: 34px; }
    .hero p { font-size: 16px; }

    .section { padding: 70px 0; }
    .section-head h2 { font-size: 28px; }

    .about-grid { grid-template-columns: 1fr; gap: 40px; }

    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .coop-grid { grid-template-columns: repeat(2, 1fr); }
    .prod-grid { grid-template-columns: repeat(2, 1fr); }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-steps::before { display: none; }

    .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ===== 响应式：手机 ===== */
@media (max-width: 640px) {
    .container { padding: 0 18px; }

    /* 移动端菜单 */
    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

    .nav.open {
        max-height: 360px;
        padding: 10px 0;
    }

    .nav a {
        padding: 14px 24px;
        border-bottom: 1px solid var(--border);
    }

    .nav a::after { display: none; }

    .menu-toggle { display: flex; }

    /* Hero */
    .hero { padding: 70px 0 100px; }
    .hero h1 { font-size: 26px; }
    .hero p { font-size: 15px; }
    .btn { padding: 12px 26px; font-size: 14px; }

    .logo-text small { display: none; }

    /* Section */
    .section { padding: 56px 0; }
    .section-head { margin-bottom: 36px; }
    .section-head h2 { font-size: 24px; }

    .about-stats { grid-template-columns: 1fr 1fr; gap: 14px; }
    .stat { padding: 20px 12px; }
    .stat strong { font-size: 28px; }

    .team-grid,
    .coop-grid,
    .prod-grid { grid-template-columns: 1fr; }

    .process-steps { grid-template-columns: 1fr; }

    .footer-inner { grid-template-columns: 1fr; gap: 30px; }

    .footer-qrcode {
        justify-content: center;
    }
}
