/* ==================== 设计变量与基础重置 ==================== */
:root {
  /* 色板 */
  --color-dark: #13102D;
  --color-paper: #F7F5F3;
  --color-text: #171523;
  --color-brand: #2714EB;
  --color-accent: #89ED6E;

  /* 结构性 Token */
  --radius-card: 24px;
  --radius-btn: 999px;
  --card-border: 1px solid rgba(23, 21, 35, 0.16);
  --card-shadow: none;
  --section-y: clamp(2.5rem, 5vw, 4rem);
  --gap: clamp(0.75rem, 1.5vw, 1.25rem);
  --content-max: 960px;

  /* 排版 */
  --font-title-weight: 500;
  --font-body-size: 1rem;
  --line-height-body: 1.55;
  --line-height-heading: 1.15;

  /* 默认取色（纸面） */
  --text-color: var(--color-text);
  --brand-color: var(--color-brand);
  --accent-color: var(--color-accent);
  --bg-color: var(--color-paper);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: var(--font-body-size);
  line-height: var(--line-height-body);
  color: var(--text-color);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-color); text-decoration: none; transition: color 0.2s ease; }
a:hover { opacity: 0.85; }
ul, ol { list-style: none; }

/* ==================== 布局容器 ==================== */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-inline: var(--gap);
}
.section {
  padding-block: var(--section-y);
  position: relative;
}
.section + .section {
  border-top: 1px solid rgba(23, 21, 35, 0.1);
}
.grid-2 {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

/* ==================== 页头与页脚 ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 243, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(23, 21, 35, 0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-color);
}
.brand img { height: 32px; width: auto; }
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-color);
}
.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--brand-color);
}
.nav-links .btn-nav {
  padding: 8px 18px;
  border-radius: var(--radius-btn);
  background: var(--accent-color);
  color: var(--color-dark);
  font-weight: 600;
}
.site-footer {
  padding-block: 48px;
  border-top: 1px solid rgba(23, 21, 35, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
}

/* ==================== 按钮 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  border: none;
  text-decoration: none;
}
.btn:focus-visible {
  outline: 3px solid var(--brand-color);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--accent-color);
  color: var(--color-dark);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(137, 237, 110, 0.35);
}
.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--text-color);
  color: var(--text-color);
}
.bg-dark .btn-secondary {
  border-color: var(--color-paper);
  color: var(--color-paper);
}
.bg-dark .btn-secondary:hover {
  background: rgba(247, 245, 243, 0.1);
}

/* ==================== 卡片与面板 ==================== */
.card {
  background: var(--color-paper);
  border: var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: 24px;
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-4px); }
.panel {
  background: var(--color-dark);
  border-radius: var(--radius-card);
  padding: 32px;
  color: var(--color-paper);
}
.card-light {
  background: var(--color-paper);
  border: var(--card-border);
  color: var(--text-color);
}

/* ==================== 表格 ==================== */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(23, 21, 35, 0.1);
}
th { font-weight: 600; color: var(--text-color); }
td { color: var(--text-color); }
tr:last-child td { border-bottom: none; }

/* ==================== FAQ ==================== */
.faq-item {
  border-bottom: 1px solid rgba(23, 21, 35, 0.1);
}
.faq-item summary {
  padding: 18px 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--brand-color);
  border-radius: 4px;
  flex-shrink: 0;
}
.faq-item[open] summary::before {
  background: var(--brand-color);
}
.faq-item p {
  padding-bottom: 18px;
  color: var(--text-color);
  opacity: 0.9;
}

/* ==================== 眉标与标题 ==================== */
.breadcrumb {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-color);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bg-dark .breadcrumb { color: var(--accent-color); }
h1 {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  font-weight: var(--font-title-weight);
  line-height: var(--line-height-heading);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: var(--font-title-weight);
  line-height: var(--line-height-heading);
  margin-bottom: 24px;
  color: var(--text-color);
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 32px 0 12px;
  color: var(--text-color);
}
.hl { color: var(--brand-color); }
.bg-dark .hl { color: var(--accent-color); }

/* ==================== SVG 动效关键帧 ==================== */
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}
@keyframes draw-line {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes bubble-in {
  0% { opacity: 0; transform: translateY(8px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes typing-dot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

.anim-star { animation: twinkle 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.anim-line { animation: draw-line 8s linear infinite; stroke-dasharray: 1; stroke-dashoffset: 0; }
.anim-float { animation: float-slow 7s ease-in-out infinite; }
.anim-bubble { animation: bubble-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.anim-typing span { animation: typing-dot 1.4s infinite; transform-box: fill-box; transform-origin: center; }
.anim-typing span:nth-child(2) { animation-delay: 0.2s; }
.anim-typing span:nth-child(3) { animation-delay: 0.4s; }

/* 减少动态效果 */
@media (prefers-reduced-motion: reduce) {
  .anim-star, .anim-line, .anim-float, .anim-bubble, .anim-typing {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
