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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--secondary);
  color: var(--light);
  line-height: 1.7;
  scroll-behavior: smooth;
}

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

a:hover {
  opacity: 0.8;
}

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

/* 变量定义 */
:root {
  --primary: #e94560;
  --secondary: #1a1a2e;
  --accent: #16213e;
  --light: #f8f9fa;
  --dark: #0f3460;
  --glass: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --radius: 16px;
  --transition: 0.3s ease;
}

[data-theme="dark"] {
  --primary: #ff6b6b;
  --secondary: #0a0a1a;
  --accent: #1a1a2e;
  --light: #2d2d44;
  --dark: #e0e0e0;
  --glass: rgba(0, 0, 0, 0.2);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* 头部导航 */
header {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav {
  display: flex;
  gap: 25px;
  align-items: center;
}

nav a {
  color: var(--light);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 5px 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  padding: 5px;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--light);
  border-radius: 3px;
  transition: var(--transition);
}

/* 英雄区域 */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 50%, var(--secondary) 100%);
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  top: -200px;
  right: -200px;
  opacity: 0.15;
  pointer-events: none;
}

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

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary), #ff9a9e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* 按钮 */
.btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(233, 69, 96, 0.4);
}

/* 区域通用 */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 50px;
  position: relative;
}

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

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

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

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

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

/* 卡片 */
.card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

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

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.card p {
  opacity: 0.85;
}

/* 徽章 */
.badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(233, 69, 96, 0.2);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

/* 数据统计 */
.stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
}

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

/* Banner 滑块 */
.banner-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  height: 400px;
}

.banner-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.8s ease;
  background: var(--accent);
}

.banner-slide.active {
  opacity: 1;
}

.banner-slide h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.banner-slide p {
  max-width: 600px;
}

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

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

.dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

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

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

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: var(--transition);
}

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

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

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

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

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* 联系信息 */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.contact-item {
  text-align: center;
  padding: 20px;
}

/* 页脚 */
footer {
  background: var(--accent);
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

footer .links a {
  color: var(--light);
  opacity: 0.7;
  font-size: 0.9rem;
}

footer .links a:hover {
  opacity: 1;
}

/* 回到顶部 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

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

/* 搜索框 */
.search-box {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto 40px;
}

.search-box input {
  flex: 1;
  padding: 12px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--glass);
  color: var(--light);
  font-size: 1rem;
  outline: none;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-box button {
  padding: 12px 25px;
  border-radius: 50px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

/* 面包屑 */
.breadcrumb {
  padding: 15px 0;
  font-size: 0.9rem;
  opacity: 0.7;
}

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

.breadcrumb span {
  margin: 0 8px;
}

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

.lazy.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* 暗色模式切换按钮 */
[data-theme-toggle] {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  z-index: 999;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

[data-theme-toggle]:hover {
  transform: scale(1.1);
}

/* 响应式布局 */
@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .menu-toggle {
    display: flex;
  }

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

  nav.show {
    display: flex;
  }

  .stats {
    gap: 30px;
  }

  .banner-slider {
    height: 300px;
  }

  .banner-slide h2 {
    font-size: 1.5rem;
  }
}

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

  .section-title {
    font-size: 1.6rem;
  }

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