/* 全局重置和基础 */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #e94560;
    --primary-dark: #c0392b;
    --secondary: #0f3460;
    --accent: #16213e;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --text-light: #333;
    --text-dark: #f0f0f0;
    --glass-bg: rgba(255,255,255,0.15);
    --glass-border: rgba(255,255,255,0.25);
    --shadow: 0 8px 32px rgba(0,0,0,0.1);
    --radius: 20px;
    --transition: 0.3s ease;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-light);
    color: var(--text-light);
    line-height: 1.7;
    transition: background 0.3s, color 0.3s;
    scroll-behavior: smooth;
}

body.dark-mode {
    background: var(--bg-dark);
    color: var(--text-dark);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 玻璃拟态通用 */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* 渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, #0f3460, #1a1a2e, #16213e);
    color: white;
}

.gradient-accent {
    background: linear-gradient(135deg, #e94560, #c0392b);
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(233,69,96,0.3);
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(233,69,96,0.4); }

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover { background: var(--primary); color: white; }

/* 头部 */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26,26,46,0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.logo svg { width: 40px; height: 40px; }

nav ul { display: flex; gap: 25px; }
nav a { color: rgba(255,255,255,0.8); font-weight: 500; transition: color 0.3s; position: relative; }
nav a:hover, nav a.active { color: var(--primary); }
nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

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

.header-actions { display: flex; align-items: center; gap: 15px; }

.dark-toggle, .menu-toggle, .search-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s;
}

.dark-toggle:hover, .menu-toggle:hover, .search-toggle:hover { background: rgba(255,255,255,0.1); }
.menu-toggle { display: none; }

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(26,26,46,0.98);
    backdrop-filter: blur(20px);
    padding: 20px;
    z-index: 999;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu.active { display: block; }
.mobile-menu ul { flex-direction: column; gap: 15px; }
.mobile-menu a { color: white; font-size: 1.1rem; padding: 10px 0; display: block; }

/* 搜索弹窗 */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.search-modal.active { display: flex; }

.search-modal .search-box {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    display: flex;
    gap: 10px;
}

.search-modal input {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.search-modal input:focus { border-color: var(--primary); }
.search-modal .btn { border-radius: 50px; }

.search-modal .close-search {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

/* Banner */
.banner {
    padding-top: 70px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    display: none;
    padding: 80px 0;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.banner-slide.active { display: flex; animation: fadeIn 0.8s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.banner-content { text-align: center; max-width: 800px; }
.banner-content h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.banner-content p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 30px; }

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

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

.banner-dots span.active { background: var(--primary); width: 30px; border-radius: 10px; }

/* 通用section */
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 10px; position: relative; display: inline-block; }

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-title p { color: #666; max-width: 600px; margin: 0 auto; }
body.dark-mode .section-title p { color: #aaa; }

/* 网格 */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }

/* 卡片 */
.card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s;
    text-align: center;
}

body.dark-mode .card { background: #222; }
.card:hover { transform: translateY(-8px); box-shadow: 0 12px 35px rgba(0,0,0,0.12); }
.card svg { width: 60px; height: 60px; margin: 0 auto 20px; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: #666; font-size: 0.95rem; }
body.dark-mode .card p { color: #bbb; }

/* 数字增长 */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item .number { font-size: 3rem; font-weight: 800; color: var(--primary); }
.stat-item p { font-size: 1rem; opacity: 0.8; }

/* 时间线 */
.timeline { position: relative; padding-left: 40px; }

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    opacity: 0.3;
}

.timeline-item { margin-bottom: 40px; position: relative; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid white;
}

.timeline-item h3 { font-size: 1.2rem; }
.timeline-item span { color: var(--primary); font-weight: 600; font-size: 0.9rem; }

/* FAQ */
.faq-item { margin-bottom: 15px; border-radius: var(--radius); overflow: hidden; background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
body.dark-mode .faq-item { background: #222; }

.faq-question {
    padding: 20px 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover { background: rgba(233,69,96,0.05); }
.faq-question .icon { transition: transform 0.3s; }
.faq-item.active .faq-question .icon { transform: rotate(45deg); }

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

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 25px 20px;
}

/* 新闻卡片 */
.news-card { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.06); transition: all 0.3s; }
body.dark-mode .news-card { background: #222; }
.news-card:hover { transform: translateY(-5px); }

.news-card .news-body { padding: 20px; }
.news-card .news-body .date { font-size: 0.85rem; color: var(--primary); }
.news-card .news-body h3 { font-size: 1.1rem; margin: 8px 0; }
.news-card .news-body p { color: #666; font-size: 0.9rem; }
body.dark-mode .news-card .news-body p { color: #bbb; }

/* 合作伙伴 */
.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    transition: all 0.3s;
}

.partner-item:hover { background: rgba(255,255,255,0.1); transform: scale(1.05); }

/* 页脚 */
footer {
    background: var(--accent);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 30px;
}

footer .grid-4 { gap: 30px; }
footer h4 { color: white; margin-bottom: 20px; font-size: 1.1rem; }
footer ul li { margin-bottom: 10px; }
footer a { color: rgba(255,255,255,0.7); transition: color 0.3s; }
footer a:hover { color: var(--primary); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom a { color: var(--primary); }

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(233,69,96,0.3);
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); }

/* 响应式 */
@media (max-width: 992px) {
    .grid-2, .grid-3, .grid-4, .grid-6, .stats-grid { grid-template-columns: 1fr 1fr; }
    .banner-content h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    nav ul { display: none; }
    .menu-toggle { display: block; }
    .grid-2, .grid-3, .grid-4, .grid-6, .stats-grid { grid-template-columns: 1fr; }
    .banner-content h1 { font-size: 2rem; }
    section { padding: 50px 0; }
    .section-title h2 { font-size: 2rem; }
}

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

/* 面包屑 */
.breadcrumb { padding: 15px 0; font-size: 0.9rem; color: #666; }
.breadcrumb a { color: var(--primary); }
body.dark-mode .breadcrumb { color: #aaa; }

/* 文章详情 */
.article-content { max-width: 800px; margin: 0 auto; }
.article-content h3 { margin: 30px 0 15px; font-size: 1.5rem; }

/* HowTo */
.howto-step { display: flex; gap: 20px; margin-bottom: 25px; align-items: flex-start; }

.howto-step .step-num {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* 暗黑模式适配 */
body.dark-mode .glass-card { background: rgba(0,0,0,0.3); border-color: rgba(255,255,255,0.1); }
body.dark-mode .card { background: #2a2a3e; }
body.dark-mode .news-card { background: #2a2a3e; }