/* 全局重置与基础 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: #0f0f1a; color: #e0e0e0; line-height: 1.6; transition: background 0.3s, color 0.3s; }
body.light-mode { background: #f5f5fa; color: #1a1a2e; }
a { color: #ffd700; text-decoration: none; transition: color 0.3s; }
a:hover { color: #ffed4a; }
img, svg { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
/* 渐变背景 */
.gradient-bg { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); }
body.light-mode .gradient-bg { background: linear-gradient(135deg, #e0e0f0 0%, #c0c0e0 50%, #a0a0d0 100%); }
/* 毛玻璃效果 */
.glass { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; }
body.light-mode .glass { background: rgba(0, 0, 0, 0.03); border-color: rgba(0, 0, 0, 0.1); }
/* 卡片布局 */
.card { background: rgba(255, 255, 255, 0.05); border-radius: 16px; padding: 24px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: transform 0.3s, box-shadow 0.3s; }
body.light-mode .card { background: rgba(0, 0, 0, 0.02); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.5); }
/* 圆角与阴影 */
.rounded { border-radius: 12px; }
.shadow { box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
/* 按钮 */
.btn { display: inline-block; padding: 12px 28px; border-radius: 30px; background: linear-gradient(135deg, #ffd700, #ffaa00); color: #1a1a2e; font-weight: bold; transition: transform 0.3s, box-shadow 0.3s; border: none; cursor: pointer; }
.btn:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4); }
body.light-mode .btn { color: #1a1a2e; }
/* 标题 */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; }
h1 { font-size: 2.8rem; color: #ffd700; }
h2 { font-size: 2.2rem; color: #ffd700; margin-bottom: 20px; text-align: center; }
h3 { font-size: 1.5rem; color: #e0e0e0; }
body.light-mode h1, body.light-mode h2 { color: #1a1a2e; }
body.light-mode h3 { color: #333; }
.section { padding: 80px 0; }
/* 导航 */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 15px 0; transition: background 0.3s; }
.navbar.scrolled { background: rgba(15, 15, 26, 0.95); backdrop-filter: blur(10px); }
body.light-mode .navbar.scrolled { background: rgba(245, 245, 250, 0.95); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: bold; color: #ffd700; }
.nav-links { display: flex; gap: 25px; }
.nav-links a { color: #e0e0e0; font-size: 1rem; padding: 5px 0; position: relative; }
body.light-mode .nav-links a { color: #333; }
.nav-links a.active::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background: #ffd700; }
.menu-toggle { display: none; background: none; border: none; color: #ffd700; font-size: 1.5rem; cursor: pointer; }
/* 移动端菜单 */
.mobile-menu { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15,15,26,0.98); z-index: 999; padding: 80px 20px; }
body.light-mode .mobile-menu { background: rgba(245,245,250,0.98); }
.mobile-menu.active { display: block; }
.mobile-menu a { display: block; padding: 15px; color: #ffd700; font-size: 1.2rem; border-bottom: 1px solid rgba(255,215,0,0.2); }
body.light-mode .mobile-menu a { color: #1a1a2e; border-color: rgba(0,0,0,0.1); }
/* Hero Banner */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; }
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; max-width: 700px; margin-left: auto; margin-right: auto; }
.banner-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.banner-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s; background-size: cover; background-position: center; }
.banner-slide.active { opacity: 1; }
/* 数据展示 */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.stat-item .number { font-size: 2.5rem; font-weight: bold; color: #ffd700; }
body.light-mode .stat-item .number { color: #1a1a2e; }
/* 网格布局 */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
/* FAQ */
.faq-item { margin-bottom: 15px; border-bottom: 1px solid rgba(255,215,0,0.2); padding-bottom: 15px; }
.faq-question { cursor: pointer; font-weight: bold; display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.faq-question::after { content: '+'; font-size: 1.5rem; transition: transform 0.3s; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s; padding-left: 10px; }
.faq-item.active .faq-answer { max-height: 200px; }
/* 返回顶部 */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; border-radius: 50%; background: #ffd700; color: #1a1a2e; border: none; font-size: 1.5rem; cursor: pointer; display: none; z-index: 100; box-shadow: 0 4px 15px rgba(255,215,0,0.3); }
.back-to-top.visible { display: block; }
/* 暗黑模式切换 */
.theme-toggle { background: none; border: 2px solid #ffd700; color: #ffd700; padding: 8px 16px; border-radius: 20px; cursor: pointer; font-size: 0.9rem; }
body.light-mode .theme-toggle { color: #1a1a2e; border-color: #1a1a2e; }
/* 搜索模拟 */
.search-box { display: flex; gap: 10px; max-width: 400px; margin: 20px auto; }
.search-box input { flex: 1; padding: 10px 15px; border-radius: 25px; border: 1px solid #ffd700; background: rgba(255,255,255,0.1); color: #fff; }
body.light-mode .search-box input { background: rgba(0,0,0,0.05); color: #333; }
.search-box button { padding: 10px 20px; border-radius: 25px; background: #ffd700; color: #1a1a2e; border: none; cursor: pointer; }
/* 页脚 */
.footer { background: #0a0a14; padding: 40px 0; text-align: center; }
body.light-mode .footer { background: #e0e0e8; }
.footer a { color: #ffd700; margin: 0 10px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: left; margin-bottom: 30px; }
/* 动画 */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
/* 响应式 */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 2.2rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .section { padding: 40px 0; }
}
/* 滚动条 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1a1a2e; }
::-webkit-scrollbar-thumb { background: #ffd700; border-radius: 4px; }
body.light-mode ::-webkit-scrollbar-track { background: #e0e0e8; }
body.light-mode ::-webkit-scrollbar-thumb { background: #1a1a2e; }