/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --accent: #667eea;
    --accent2: #764ba2;
    --bg: #ffffff;
    --bg-secondary: #f8f9fa;
    --text: #202124;
    --text-secondary: #5f6368;
    --border: #dadce0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.18);
    --radius: 16px;
    --transition: 0.3s ease;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body.dark {
    --bg: #1a1a2e;
    --bg-secondary: #16213e;
    --text: #e0e0e0;
    --text-secondary: #a0a0a0;
    --border: #2a2a4a;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.7);
    --glass-bg: rgba(26, 26, 46, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background var(--transition), color var(--transition);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

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

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

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
}

.card {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

.grid {
    display: grid;
    gap: 24px;
}

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

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

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

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

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

.animate-count {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* 头部 */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

nav a {
    margin: 0 12px;
    font-weight: 500;
    color: var(--text);
    transition: color var(--transition);
}

nav a:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

.dark-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text);
    margin-left: 12px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 4px 12px;
}

.search-box input {
    border: none;
    background: transparent;
    padding: 6px;
    outline: none;
    color: var(--text);
    width: 120px;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 16px;
    }
    nav.active {
        display: flex;
    }
    nav a {
        margin: 8px 0;
    }
    .nav-toggle {
        display: block;
    }
    .search-box {
        display: none;
    }
}

/* Hero Banner */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1a73e8 0%, #667eea 50%, #764ba2 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 40px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.hero .btn {
    background: #fff;
    color: var(--primary);
    font-weight: 600;
}

.hero .btn:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
}

/* 轮播 */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    padding: 40px;
    text-align: center;
    background: var(--bg-secondary);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.carousel-btn {
    background: var(--glass-bg);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text);
    pointer-events: auto;
    transition: background var(--transition);
}

.carousel-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* 面包屑 */
.breadcrumb {
    padding: 12px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb span {
    color: var(--text);
}

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

/* 底部 */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 40px 20px 20px;
}

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

.footer-col h4 {
    margin-bottom: 12px;
}

.footer-col a {
    display: block;
    margin: 4px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    display: none;
    z-index: 999;
    transition: opacity var(--transition);
}

.back-to-top.show {
    display: block;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    cursor: pointer;
}

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

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

.faq-item.open .faq-answer {
    max-height: 500px;
}

/* 暗黑模式适配 */
.dark .hero {
    background: linear-gradient(135deg, #0d1b2a, #1b2838, #2c3e50);
}

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

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

/* 其他 */
.news-list article {
    margin-bottom: 24px;
}

.news-list h3 {
    margin-bottom: 4px;
}

.news-list .meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.howto-steps li {
    margin: 12px 0;
    padding-left: 20px;
    position: relative;
}

.howto-steps li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--primary);
}

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

.team-member svg {
    margin: 0 auto 12px;
    border-radius: 50%;
}

.qrcode {
    display: inline-block;
    margin: 8px;
}