/* ===== 全局重置 & 基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== 导航栏 ===== */
.navbar {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(30, 58, 138, .08);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.5rem;
    color: #0f172a;
    text-decoration: none;
}

.logo-area img {
    height: 36px;
    width: auto;
}

.logo-area span {
    color: #2563eb;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #334155;
    font-size: .9rem;
    transition: .2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width .3s;
}

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

.nav-links a:hover {
    color: #2563eb;
}

.btn-nav {
    background: #2563eb;
    color: #fff !important;
    padding: 6px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: .8rem;
    box-shadow: 0 2px 12px rgba(37, 99, 235, .2);
    transition: all .3s;
}

.btn-nav::after {
    display: none !important;
}

.btn-nav:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, .25);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #0f172a;
    cursor: pointer;
    padding: 4px 8px;
    transition: .2s;
    z-index: 101;
}

.hamburger:hover {
    color: #2563eb;
}

/* ===== 按钮样式 ===== */
.btn-primary {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 60px;
    font-weight: 600;
    font-size: .95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, .2);
    transition: all .3s;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #1d4ed8;
    box-shadow: 0 8px 24px rgba(37, 99, 235, .3);
}

.btn-outline-hero {
    background: rgba(255, 255, 255, .08);
    border: 1.5px solid rgba(255, 255, 255, .25);
    color: #fff;
    padding: 12px 28px;
    border-radius: 60px;
    font-weight: 600;
    font-size: .95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: .3s;
    text-decoration: none;
    cursor: pointer;
}

.btn-outline-hero:hover {
    background: rgba(255, 255, 255, .18);
    border-color: #60a5fa;
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    background: none;
    border: 1.5px solid rgba(37, 99, 235, .2);
    color: #1e293b;
    padding: 12px 28px;
    border-radius: 60px;
    font-weight: 600;
    font-size: .95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: .3s;
    text-decoration: none;
}

.btn-outline:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: rgba(37, 99, 235, .02);
}

/* ===== 返回顶部按钮 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37, 99, 235, .3);
    transition: all .3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
}

/* ===== 页脚 ===== */
.footer {
    background: #0f172a;
    color: rgba(255, 255, 255, .7);
    padding: 40px 0 24px;
    border-top: 2px solid #2563eb;
}

.footer a {
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
    transition: .2s;
}

.footer a:hover {
    color: #fff;
}

.footer .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
}

.footer .brand-col .logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.footer .brand-col .logo i {
    color: #2563eb;
}

.footer .brand-col .logo span {
    color: #2563eb;
}

.footer .brand-col p {
    font-size: .85rem;
    line-height: 1.7;
    max-width: 340px;
    color: rgba(255, 255, 255, .5);
}

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

.footer .col ul {
    list-style: none;
}

.footer .col ul li {
    margin-bottom: 6px;
}

.footer .col ul li a {
    font-size: .85rem;
}

.footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .05);
    padding-top: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: .75rem;
}

.footer .footer-bottom .icp {
    color: rgba(255, 255, 255, .4);
    text-align: center;
}

.footer .footer-bottom .icp a {
    color: rgba(255, 255, 255, .4);
}

.footer .footer-bottom .icp a:hover {
    color: #fff;
}

.footer .footer-bottom .icp .sep {
    margin: 0 8px;
    color: rgba(255, 255, 255, .1);
}

/* ===== 滚动入场动画 ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s cubic-bezier(.2, .9, .3, 1), transform .7s cubic-bezier(.2, .9, .3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
.delay-4 { transition-delay: .32s; }
.delay-5 { transition-delay: .40s; }
.delay-6 { transition-delay: .48s; }
.delay-7 { transition-delay: .56s; }
.delay-8 { transition-delay: .64s; }
.delay-9 { transition-delay: .72s; }

/* ===== 通用区块头部 ===== */
.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-badge {
    display: inline-block;
    background: rgba(37, 99, 235, .06);
    border: 1px solid rgba(37, 99, 235, .08);
    border-radius: 40px;
    padding: 3px 18px;
    font-size: .75rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 4px;
    letter-spacing: .3px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
}

.section-title i {
    color: #2563eb;
    margin-right: 8px;
}

.section-sub {
    color: #475569;
    font-size: .95rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 移动端导航菜单修复 ===== */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 18px;
    }

    /* 显示汉堡按钮 */
    .hamburger {
        display: block;
    }

    /* 默认隐藏导航链接 */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 12px;
        padding: 16px 0 8px;
        border-top: 1px solid rgba(30, 58, 138, 0.08);
        align-items: center;
    }

    /* 展开菜单 */
    .nav-links.active {
        display: flex;
    }

    /* 让导航栏可换行 */
    .nav-inner {
        flex-wrap: wrap;
    }

    /* 页脚适配（已有，但保留合并） */
    .footer .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 24px 16px;
        text-align: left;
    }
    .footer .brand-col {
        grid-column: 1 / -1;
        text-align: center;
    }
    .footer .brand-col p {
        max-width: 100%;
        text-align: center;
    }
    .footer .col h4 {
        font-size: .85rem;
        margin-bottom: 8px;
    }
    .footer .col ul li {
        margin-bottom: 4px;
    }
    .footer .col ul li a {
        font-size: .8rem;
    }
    .footer .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    .footer .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px 12px;
    }
    .footer .brand-col {
        grid-column: 1 / -1;
    }
    .footer .col h4 {
        font-size: .8rem;
    }
    .footer .col ul li a {
        font-size: .75rem;
    }
}