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

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #f4f6f9;
    color: #1a1a2e;
    transition: background 0.3s, color 0.3s;
    line-height: 1.6;
}

body.dark {
    background: #0d0d1a;
    color: #e0e0e0;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 玻璃拟态 ===== */
.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.dark .glass {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ===== 渐变背景 ===== */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dark .gradient-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* ===== 按钮 ===== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6f61, #ff9a76);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 111, 97, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 111, 97, 0.5);
}

.dark .btn-primary {
    background: linear-gradient(135deg, #e65c4f, #ff8a65);
}

/* ===== 圆角卡片 ===== */
.card {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.dark .card {
    background: #1a1a2e;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ===== 导航 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
    padding: 16px 0;
}

.navbar.sticky {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.dark .navbar.sticky {
    background: rgba(13, 13, 26, 0.85);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6f61, #ff9a76);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding: 4px 0;
}

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

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

.nav-links a.active {
    color: #ff6f61;
}

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

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #1a1a2e;
    border-radius: 3px;
    transition: 0.3s;
}

.dark .menu-toggle span {
    background: #e0e0e0;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-content {
    background: #fff;
    width: 80%;
    max-width: 400px;
    height: 100%;
    padding: 80px 30px;
    overflow-y: auto;
}

.dark .mobile-menu-content {
    background: #1a1a2e;
}

.mobile-menu-content a {
    display: block;
    padding: 12px 0;
    font-size: 18px;
    border-bottom: 1px solid #eee;
}

.dark .mobile-menu-content a {
    border-color: #333;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    cursor: pointer;
    color: #333;
}

.dark .close-menu {
    color: #e0e0e0;
}

/* ===== Banner 轮播 ===== */
.banner {
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    height: 500px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s;
    display: flex;
    align-items: center;
    padding: 0 60px;
}

.banner-slide.active {
    opacity: 1;
}

.banner-content {
    max-width: 600px;
}

.banner-content h1 {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.banner-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.banner-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: 0.3s;
}

.banner-dots span.active {
    background: #fff;
    width: 36px;
    border-radius: 6px;
}

/* ===== 滚动动画 ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

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

/* ===== 数字增长 ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
    padding: 24px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: #ff6f61;
}

.dark .stat-number {
    color: #ff9a76;
}

.stat-label {
    font-size: 16px;
    margin-top: 8px;
    opacity: 0.8;
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ff6f61;
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 111, 97, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 100;
}

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

.back-to-top:hover {
    transform: translateY(-4px);
}

/* ===== 暗黑模式切换 ===== */
.dark-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

/* ===== 搜索 ===== */
.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 4px 16px;
}

.search-box input {
    background: none;
    border: none;
    outline: none;
    padding: 8px;
    color: inherit;
    width: 140px;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

/* ===== FAQ ===== */
.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 16px 0;
}

.dark .faq-item {
    border-color: #333;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
}

.faq-question span {
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    padding: 0 16px;
}

.faq-answer.open {
    max-height: 300px;
    padding: 16px 16px 0;
}

/* ===== 页脚 ===== */
footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.dark footer {
    background: #0d0d1a;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-grid h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 18px;
}

.footer-grid a {
    display: block;
    padding: 4px 0;
    color: #aaa;
    transition: color 0.3s;
}

.footer-grid a:hover {
    color: #ff6f61;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

/* ===== 面包屑 ===== */
.breadcrumb {
    padding: 16px 0;
    font-size: 14px;
    color: #888;
}

.breadcrumb a {
    color: #ff6f61;
}

.breadcrumb span {
    margin: 0 8px;
}

/* ===== 文章卡片 ===== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.article-card .date {
    font-size: 14px;
    color: #888;
    margin: 8px 0;
}

.article-card h3 {
    margin: 8px 0;
}

.article-card p {
    opacity: 0.8;
}

/* ===== 合作伙伴 ===== */
.partner-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

.partner-item {
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    font-weight: 600;
    font-size: 18px;
}

/* ===== 地图占位 ===== */
.map-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #e0e0e0, #ccc);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
}

.dark .map-placeholder {
    background: #2a2a3e;
    color: #aaa;
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ff6f61;
    border-radius: 4px;
}

/* ===== 响应式布局 ===== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .banner {
        height: 360px;
    }

    .banner-content h1 {
        font-size: 32px;
    }

    .banner-content {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .search-box input {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 280px;
    }

    .banner-content h1 {
        font-size: 24px;
    }

    .stat-number {
        font-size: 32px;
    }
}