:root {
  /* 色板 */
  --c-dark: #231334;
  --c-paper: #F5F3F7;
  --c-text: #1C1523;
  --c-brand: #7D14EB;
  --c-accent: #EDD26E;
  
  /* 结构 Token */
  --radius-card: 20px;
  --radius-btn: 12px;
  --card-border: 0;
  --card-shadow: none;
  --section-y: clamp(5rem, 10vw, 9rem);
  --gap: clamp(1.5rem, 3vw, 2.5rem);
  --content-max: 960px;
  
  /* 排版 */
  --font-body: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --lh-tight: 1.1;
  --lh-body: 1.75;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: var(--lh-body);
  color: var(--c-text);
  background-color: var(--c-paper);
  overflow-x: hidden;
}

/* 基础排版 */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: calc(var(--gap) * 0.6); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 0.5em; }

p {
  max-width: 38em;
  margin-bottom: 1em;
}

a {
  color: var(--c-brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.dark-surface a {
  color: var(--c-accent);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  width: 100%;
  height: auto;
}

/* 布局容器 */
.container {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gap);
  padding-right: var(--gap);
}

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.section.dark {
  background-color: var(--c-dark);
  color: var(--c-paper);
}

.section.dark h2,
.section.dark h3,
.section.dark p {
  color: var(--c-paper);
}

.section.dark .hl {
  color: var(--c-accent);
}

.paper-surface {
  background-color: var(--c-paper);
  color: var(--c-text);
}

.paper-surface .hl {
  color: var(--c-brand);
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(245, 243, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(28, 21, 35, 0.08);
  padding: 16px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-text);
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.nav-list {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-list a {
  font-weight: 500;
  color: var(--c-text);
  padding: 8px 0;
  position: relative;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--c-brand);
}

.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--c-brand);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
  border: none;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--c-accent);
  color: var(--c-dark);
}

.btn-primary:hover {
  background-color: #e0c55f;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--c-text);
  border: 2px solid var(--c-text);
}

.section.dark .btn-secondary {
  color: var(--c-paper);
  border-color: var(--c-paper);
}

.btn-secondary:hover {
  background-color: rgba(28, 21, 35, 0.06);
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 3px solid var(--c-brand);
  outline-offset: 2px;
}

/* 卡片 */
.card {
  background-color: rgba(28, 21, 35, 0.03);
  border-radius: var(--radius-card);
  padding: var(--gap);
  position: relative;
  border: var(--card-border);
  box-shadow: var(--card-shadow);
}

.section.dark .card {
  background-color: rgba(255, 255, 255, 0.05);
}

/* 网格 */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: var(--gap);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: var(--gap);
}

/* 表格 */
.table-wrapper {
  overflow-x: auto;
  margin: var(--gap) 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(28, 21, 35, 0.1);
}

.section.dark th,
.section.dark td {
  border-color: rgba(255, 255, 255, 0.1);
}

th {
  font-weight: 700;
  color: var(--c-text);
}

.section.dark th {
  color: var(--c-paper);
}

td {
  color: var(--c-text);
}

.section.dark td {
  color: var(--c-paper);
}

/* FAQ */
.faq-item {
  margin-bottom: 12px;
  border-radius: var(--radius-card);
  background-color: rgba(28, 21, 35, 0.03);
  overflow: hidden;
}

.section.dark .faq-item {
  background-color: rgba(255, 255, 255, 0.05);
}

details {
  width: 100%;
}

summary {
  padding: 18px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 1.2em;
  font-weight: 400;
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details[open] summary {
  border-bottom: 1px solid rgba(28, 21, 35, 0.08);
}

.faq-answer {
  padding: 16px 20px;
  color: var(--c-text);
  line-height: 1.7;
}

.section.dark .faq-answer {
  color: var(--c-paper);
}

/* 步骤时间线 */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 2px solid rgba(28, 21, 35, 0.1);
}

.section.dark .timeline {
  border-color: rgba(255, 255, 255, 0.15);
}

.step {
  position: relative;
  margin-bottom: 32px;
}

.step:last-child {
  margin-bottom: 0;
}

.step-num {
  position: absolute;
  left: -42px;
  top: 0;
  width: 24px;
  height: 24px;
  background-color: var(--c-accent);
  color: var(--c-dark);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.step-desc {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* 眉标 */
.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--c-brand);
}

.section.dark .kicker {
  color: var(--c-accent);
}

/* SVG 动效基础 */
.svg-flow path {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

@keyframes dashFlow {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}

.draw-line {
  animation: dashFlow 4s linear infinite;
}

.dot-flow {
  fill: var(--c-accent);
}

@keyframes dotMove {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(80px, -30px); opacity: 0; }
}

.flow-dot {
  animation: dotMove 4s ease-in-out infinite;
}

.bubble {
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes floatBubble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.float-1 { animation: floatBubble 5s ease-in-out infinite; }
.float-2 { animation: floatBubble 6s ease-in-out infinite 1s; }

.input-dot {
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes breathe {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

.breath-1 { animation: breathe 2.5s ease-in-out infinite; }
.breath-2 { animation: breathe 2.5s ease-in-out infinite 0.4s; }
.breath-3 { animation: breathe 2.5s ease-in-out infinite 0.8s; }

.notif-card {
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes slideInNotif {
  0% { transform: translateX(-15px); opacity: 0; }
  15% { transform: translateX(0); opacity: 1; }
  85% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(-15px); opacity: 0; }
}

.slide-1 { animation: slideInNotif 6s ease-in-out infinite; }
.slide-2 { animation: slideInNotif 6s ease-in-out infinite 2s; }
.slide-3 { animation: slideInNotif 6s ease-in-out infinite 4s; }

/* 减少动态效果 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 响应式 */
@media (max-width: 768px) {
  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .header-inner { flex-direction: column; gap: 16px; }
  .nav-list { gap: 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
}

/* 焦点可见性 */
:focus-visible {
  outline: 3px solid var(--c-brand);
  outline-offset: 2px;
}
