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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

body.dark-mode {
    background: #1a1a2e;
    color: #e0e0e0;
}

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

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

/* 毛玻璃效果 */
.glassmorphism {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

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

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

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* 标题样式 */
h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2em;
    margin: 40px 0 20px;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    margin: 10px auto;
    border-radius: 2px;
}

h3 {
    font-size: 1.4em;
    margin: 20px 0 10px;
}

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

/* 网格布局 */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

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

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

/* 头部导航 */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s;
}

.dark-mode header {
    background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 100%);
}

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

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

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

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

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

.menu-toggle {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
    background: none;
    border: none;
    color: #fff;
}

/* Hero区域 */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero .btn {
    margin-top: 10px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Banner滑块 */
.banner-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    margin: 30px 0;
}

.banner-slide {
    display: none;
    width: 100%;
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    min-height: 300px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.banner-slide.active {
    display: flex;
}

.banner-slide h3 {
    font-size: 2em;
    margin-bottom: 15px;
}

.banner-slide p {
    font-size: 1.1em;
    max-width: 600px;
    margin: 0 auto;
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

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

.banner-dots span.active {
    background: #fff;
}

/* 区块间距 */
.section {
    padding: 60px 0;
}

/* 统计数字 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: scale(1.05);
}

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

.stat-label {
    font-size: 1em;
    margin-top: 10px;
    opacity: 0.8;
}

/* 团队网格 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
    padding: 25px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.dark-mode .team-member {
    background: #2d2d44;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member svg {
    margin: 0 auto 15px;
    display: block;
}

.team-member h4 {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.team-member p {
    font-size: 0.9em;
    color: #666;
}

.dark-mode .team-member p {
    color: #aaa;
}

/* FAQ手风琴 */
.faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background 0.3s;
}

.dark-mode .faq-item {
    background: #2d2d44;
}

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

.faq-question:hover {
    background: rgba(102, 126, 234, 0.1);
}

.faq-question::after {
    content: '+';
    font-size: 1.4em;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

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

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

/* 联系网格 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-item {
    padding: 25px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.contact-item h4 {
    margin-bottom: 10px;
}

.contact-item p {
    font-size: 0.95em;
    opacity: 0.8;
}

/* 页脚 */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 50px 0 30px;
}

.dark-mode footer {
    background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 100%);
}

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

.footer-grid h4 {
    margin-bottom: 15px;
    font-size: 1.1em;
}

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

.footer-grid ul li {
    margin-bottom: 8px;
}

.footer-grid ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-grid ul li a:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
    opacity: 0.7;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

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

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

/* 暗色模式切换按钮 */
.dark-mode-toggle {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: transform 0.3s;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
}

/* 搜索入口 */
.search-entry {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.search-entry input {
    padding: 12px 20px;
    border: 2px solid #667eea;
    border-radius: 30px 0 0 30px;
    outline: none;
    width: 300px;
    max-width: 100%;
    font-size: 1em;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.3s;
}

.dark-mode .search-entry input {
    background: #2d2d44;
    color: #e0e0e0;
    border-color: #764ba2;
}

.search-entry button {
    padding: 12px 25px;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-size: 1em;
    transition: opacity 0.3s;
}

.search-entry button:hover {
    opacity: 0.9;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 0;
    list-style: none;
    font-size: 0.9em;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin-left: 10px;
    color: #666;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.dark-mode .breadcrumb a {
    color: #764ba2;
}

/* 文章卡片 */
.article-card {
    padding: 25px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.dark-mode .article-card {
    background: #2d2d44;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card h4 {
    margin-bottom: 10px;
}

.article-card p {
    font-size: 0.95em;
    color: #666;
}

.dark-mode .article-card p {
    color: #aaa;
}

.article-card .date {
    font-size: 0.85em;
    color: #999;
    margin-top: 10px;
    display: block;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination a {
    padding: 10px 20px;
    border-radius: 30px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.pagination a:hover {
    background: #667eea;
    color: #fff;
}

/* 上一篇/下一篇 */
.prev-next {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.prev-next a {
    padding: 10px 25px;
    border-radius: 30px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    text-decoration: none;
    transition: background 0.3s;
}

.prev-next a:hover {
    background: #667eea;
    color: #fff;
}

/* 相关文章 */
.related-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* 最新动态 */
.latest-updates {
    margin: 20px 0;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
}

.latest-updates h4 {
    margin-bottom: 10px;
}

.latest-updates ul {
    list-style: none;
}

.latest-updates ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.latest-updates ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #667eea;
}

/* 响应式布局 */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    .hero h1 {
        font-size: 2.2em;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 20px 0;
        gap: 15px;
    }

    .nav-links.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .banner-slide {
        padding: 40px 20px;
        min-height: 200px;
    }

    .banner-slide h3 {
        font-size: 1.4em;
    }

    .stat-number {
        font-size: 2em;
    }

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

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8em;
    }

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

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

    .search-entry input {
        width: 200px;
    }
}