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

body {
    font-family: 'Segoe UI', 'PingFang SC', Roboto, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #1a1a2e;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

body.dark-mode {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: #e0e0e0;
}

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

/* ===== 容器与布局 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 头部 (毛玻璃 + 粘性) ===== */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s;
}

body.dark-mode header {
    background: rgba(15, 12, 41, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== 导航 ===== */
nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

nav a:hover,
nav a.active {
    color: #667eea;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s;
}

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

/* ===== 按钮 (暗色切换 / 移动菜单) ===== */
.dark-toggle,
.mobile-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    padding: 5px;
}

.mobile-toggle {
    display: none;
}

/* ===== 响应式导航 (移动端) ===== */
@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        padding: 20px;
        gap: 15px;
        backdrop-filter: blur(20px);
    }

    body.dark-mode nav {
        background: rgba(15, 12, 41, 0.95);
    }

    nav.open {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }
}

/* ===== Hero 区域 (渐变Banner + 圆角) ===== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0 0 50px 50px;
    margin-bottom: 60px;
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero .btn {
    display: inline-block;
    padding: 12px 40px;
    background: white;
    color: #667eea;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ===== Banner 轮播 ===== */
.banner-slider {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    position: absolute;
    opacity: 0;
    transition: opacity 0.8s ease;
    width: 100%;
}

.slide.active {
    opacity: 1;
    position: relative;
}

/* ===== 关键帧动画 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 通用区块 ===== */
section {
    padding: 60px 0;
}

section h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== 卡片网格 (圆角卡片 + 毛玻璃 + hover动画) ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.card svg {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* ===== 统计数据 ===== */
.stat-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

body.dark-mode .footer {
    background: #0f0c29;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer a {
    color: #aaa;
    transition: color 0.3s;
}

.footer a:hover {
    color: #667eea;
}

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

/* ===== 回到顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #667eea;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    border: none;
    z-index: 999;
}

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

.back-to-top:hover {
    transform: scale(1.1);
}

/* ===== FAQ 折叠 ===== */
.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

body.dark-mode .faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-top: 0;
}

.faq-answer.open {
    max-height: 300px;
    padding-top: 15px;
}

.faq-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-toggle.open {
    transform: rotate(45deg);
}

/* ===== 面包屑 ===== */
.breadcrumb {
    padding: 10px 0;
    font-size: 0.9rem;
    color: #666;
}

body.dark-mode .breadcrumb {
    color: #aaa;
}

.breadcrumb a {
    color: #667eea;
}

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

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 搜索入口 ===== */
.search-entry {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 20px auto;
}

.search-entry input {
    flex: 1;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid #ddd;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

body.dark-mode .search-entry input {
    background: rgba(255, 255, 255, 0.1);
    border-color: #444;
    color: white;
}

.search-entry button {
    padding: 10px 20px;
    border-radius: 50px;
    border: none;
    background: #667eea;
    color: white;
    cursor: pointer;
}

/* ===== 新闻列表 ===== */
.news-list {
    display: grid;
    gap: 20px;
}

.news-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.news-item svg {
    flex-shrink: 0;
}

/* ===== 联系信息 ===== */
.contact-info p {
    margin: 10px 0;
}

/* ===== 网站地图 ===== */
.sitemap-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.sitemap-links a {
    display: block;
}