/* ===== 全局重置与变量 ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f8f9fc;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text2: #4a4a6a;
  --accent1: #1a1a2e;
  --accent2: #f0c040;
  --accent3: #e94560;
  --glass: rgba(255, 255, 255, 0.6);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --radius: 20px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.dark {
  --bg: #0f0f1a;
  --surface: #1a1a2e;
  --text: #eaeaea;
  --text2: #a0a0b8;
  --glass: rgba(26, 26, 46, 0.7);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ===== 基础样式 ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

a {
  color: var(--accent2);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--accent3);
}

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

/* ===== 容器 ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 渐变背景 ===== */
.gradient-bg {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* ===== 毛玻璃 ===== */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===== 卡片 ===== */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #f0c040, #e94560);
  color: #fff;
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.3);
}

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

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent2);
  color: var(--accent2);
}

.btn-outline:hover {
  background: var(--accent2);
  color: #1a1a2e;
}

/* ===== 区块 ===== */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text2);
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

/* ===== 网格 ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

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

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

/* ===== 工具类 ===== */
.text-center {
  text-align: center;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-32 {
  margin-bottom: 32px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .section {
    padding: 48px 0;
  }

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

  .container {
    padding: 0 16px;
  }
}

/* ===== 页眉 ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 0;
  transition: background 0.4s, box-shadow 0.4s;
}

header.scrolled {
  background: var(--surface);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #f0c040, #e94560);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.logo span {
  -webkit-text-fill-color: #fff;
  background: none;
}

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

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

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

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

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

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--text);
  border-radius: 4px;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.4s;
    pointer-events: none;
  }

  nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* ===== Banner ===== */
#banner {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

#banner .bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

#banner .bg-shapes span {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent2), var(--accent3));
  opacity: 0.08;
  animation: float 20s infinite;
}

#banner .bg-shapes span:nth-child(1) {
  width: 400px;
  height: 400px;
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

#banner .bg-shapes span:nth-child(2) {
  width: 300px;
  height: 300px;
  bottom: -80px;
  right: -80px;
  animation-delay: -5s;
}

#banner .bg-shapes span:nth-child(3) {
  width: 200px;
  height: 200px;
  top: 40%;
  left: 60%;
  animation-delay: -10s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.banner-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.banner-content h1 {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
}

.banner-content h1 .highlight {
  background: linear-gradient(135deg, #f0c040, #e94560);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.banner-content p {
  font-size: 1.2rem;
  color: var(--text2);
  margin-bottom: 36px;
  max-width: 560px;
}

.banner-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.banner-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.banner-stats div {
  text-align: center;
}

.banner-stats .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent2);
}

.banner-stats .label {
  font-size: 0.9rem;
  color: var(--text2);
}

@media (max-width: 768px) {
  .banner-content h1 {
    font-size: 2.5rem;
  }

  .banner-stats {
    gap: 24px;
  }
}

/* ===== 返回顶部 ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent2);
  color: #1a1a2e;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(240, 192, 64, 0.3);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s;
  pointer-events: none;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(240, 192, 64, 0.4);
}

/* ===== 暗色模式切换 ===== */
.dark-toggle {
  position: fixed;
  bottom: 90px;
  right: 30px;
  z-index: 999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all 0.3s;
  color: var(--text);
}

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

/* ===== 页脚 ===== */
footer {
  background: var(--surface);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0 30px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--accent2);
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 0.9rem;
  color: var(--text2);
  margin-bottom: 8px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--accent2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text2);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--text2);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--accent2);
}

/* ===== 二维码 ===== */
.qr-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

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

.qr-item svg {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: var(--bg);
  padding: 8px;
  margin-bottom: 6px;
}

.qr-item span {
  font-size: 0.75rem;
  color: var(--text2);
}

/* ===== 手风琴 ===== */
.accordion {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.3s;
}

.accordion-header:hover {
  color: var(--accent2);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  padding: 0 0 0 0;
}

.accordion-body.open {
  max-height: 600px;
  padding: 0 0 18px 0;
}

.accordion-body p {
  color: var(--text2);
  line-height: 1.8;
}

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

.howto-step .step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0c040, #e94560);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 1.2rem;
}

.howto-step .step-content h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.howto-step .step-content p {
  color: var(--text2);
  font-size: 0.95rem;
}

/* ===== 文章卡片 ===== */
.article-card .date {
  font-size: 0.85rem;
  color: var(--text2);
  margin-bottom: 8px;
}

.article-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-card p {
  color: var(--text2);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* ===== 评价卡片 ===== */
.testimonial-card {
  text-align: center;
  padding: 32px 24px;
}

.testimonial-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #f0c040, #e94560);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  font-weight: 700;
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--text2);
  margin-bottom: 12px;
  line-height: 1.8;
}

.testimonial-card cite {
  font-style: normal;
  font-weight: 600;
  color: var(--accent2);
}

/* ===== 搜索弹窗 ===== */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.search-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.search-modal .search-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  width: 90%;
  max-width: 540px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.search-modal input {
  width: 100%;
  padding: 14px 20px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: var(--bg);
  color: var(--text);
  font-size: 1.1rem;
  outline: none;
  transition: border 0.3s;
  font-family: inherit;
}

.search-modal input:focus {
  border-color: var(--accent2);
}

.search-modal .close-search {
  display: block;
  margin-top: 16px;
  text-align: center;
  color: var(--text2);
  cursor: pointer;
  font-size: 0.9rem;
}

/* ===== 价值主张 ===== */
.value-prop {
  text-align: center;
  padding: 24px;
}

.value-prop .icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.value-prop h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.value-prop p {
  color: var(--text2);
  font-size: 0.95rem;
}

/* ===== 表单 ===== */
form input,
form textarea {
  font-family: inherit;
}

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

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .card {
    opacity: 1;
    transform: none;
  }
}