:root {
  /* 色板 */
  --color-dark: #231334;
  --color-paper: #E9E8EA;
  --color-body: #1C1523;
  --color-brand: #7D14EB;
  --color-accent: #EDD26E;

  /* 结构性 Token */
  --radius-card: 20px;
  --radius-btn: 12px;
  --card-border: 0;
  --card-shadow: none;
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --content-max: 1280px;

  /* 排版基础 */
  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --h1-size: clamp(2.4rem, 6vw, 4.5rem);
  --h2-size: clamp(1.6rem, 3vw, 2.4rem);
  --h3-size: 1.25rem;
  --base-size: 1rem;
  --line-height-base: 1.65;
  --line-height-heading: 1.1;
  --letter-spacing-heading: -0.02em;

  /* 默认取色（纸面） */
  --bg-surface: var(--color-paper);
  --text-primary: var(--color-body);
  --text-secondary: var(--color-body);
  --text-highlight: var(--color-brand);
  --icon-color: var(--color-brand);
  --link-color: var(--color-brand);
  --divider-color: rgba(28, 21, 35, 0.12);
}

/* 深色面覆盖 */
.face-dark {
  --bg-surface: var(--color-dark);
  --text-primary: var(--color-paper);
  --text-secondary: var(--color-paper);
  --text-highlight: var(--color-accent);
  --icon-color: var(--color-accent);
  --link-color: var(--color-accent);
  --divider-color: rgba(233, 210, 110, 0.15);
}

/* 深色面内的浅色卡片覆盖回纸面取色 */
.face-card {
  --bg-surface: var(--color-paper);
  --text-primary: var(--color-body);
  --text-secondary: var(--color-body);
  --text-highlight: var(--color-brand);
  --icon-color: var(--color-brand);
  --link-color: var(--color-brand);
  --divider-color: rgba(28, 21, 35, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-main);
  font-size: var(--base-size);
  line-height: var(--line-height-base);
  color: var(--text-primary);
  background-color: var(--bg-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
a:hover { opacity: 0.85; }
a:focus-visible {
  outline: 3px solid var(--text-highlight);
  outline-offset: 2px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.section {
  padding-block: var(--section-y);
}

.section-header {
  margin-bottom: var(--gap);
}

.tag-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-highlight);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

h1 {
  font-size: var(--h1-size);
  font-weight: 800;
  line-height: var(--line-height-heading);
  letter-spacing: var(--letter-spacing-heading);
  margin-bottom: 1rem;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

h2 {
  font-size: var(--h2-size);
  font-weight: 800;
  line-height: var(--line-height-heading);
  letter-spacing: var(--letter-spacing-heading);
  margin-bottom: 0.8rem;
  text-wrap: balance;
}

h3 {
  font-size: var(--h3-size);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

p {
  margin-bottom: 1rem;
  max-width: 38em;
}

strong {
  font-weight: 700;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 52px;
  padding: 0 1.5rem;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  text-align: center;
  justify-content: center;
}
.btn:focus-visible {
  outline: 3px solid var(--text-highlight);
  outline-offset: 2px;
}
.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-dark);
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(0.95);
}
.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--text-primary);
  color: var(--text-primary);
}
.face-dark .btn-secondary {
  border-color: var(--color-paper);
  color: var(--color-paper);
}

/* 卡片 */
.card {
  background-color: var(--bg-surface);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-card);
  padding: var(--gap);
  position: relative;
}

/* 网格布局 */
.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);
}

/* 列表与描述 */
dl.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 1.5rem;
}
dt {
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text-highlight);
}
dd {
  margin-left: 0;
  color: var(--text-secondary);
}

/* 对比表格 */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  table-layout: fixed;
}
.comparison-table th,
.comparison-table td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--divider-color);
  overflow-wrap: break-word;
  word-break: break-word;
}
.comparison-table th {
  font-weight: 700;
  color: var(--text-highlight);
}
.comparison-table td:last-child {
  color: var(--text-secondary);
}

/* FAQ */
details.faq-item {
  border-bottom: 1px solid var(--divider-color);
  padding: 1rem 0;
}
summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-highlight);
  border-bottom: 2px solid var(--text-highlight);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
details[open] summary::before {
  transform: rotate(-135deg);
}
details.faq-item p {
  margin-top: 0.6rem;
  color: var(--text-secondary);
}

/* 步骤条 */
.steps-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  counter-reset: step;
}
.step-item {
  flex: 1 1 200px;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--divider-color);
  border-radius: var(--radius-card);
  position: relative;
  counter-increment: step;
}
.step-item::before {
  content: counter(step, decimal-leading-zero);
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-dark);
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

/* 新闻卡片 */
.news-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.news-card time {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--divider-color);
  backdrop-filter: blur(8px);
  padding: 1rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
}
.logo-wrap img {
  height: 32px;
  width: auto;
  max-width: none; /* Prevent distortion on small screens */
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a[aria-current="page"] {
  color: var(--text-highlight);
}

/* 页脚 */
.site-footer {
  margin-top: auto;
  padding: var(--section-y) 0;
  border-top: 1px solid var(--divider-color);
  background-color: var(--bg-surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: var(--gap);
}
.footer-col h4 {
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 0.4rem;
}
.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* SVG 容器规范 */
.svg-responsive {
  width: 100%;
  height: auto;
}
.svg-panel {
  background-color: var(--bg-surface);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  border: var(--card-border);
  box-shadow: var(--card-shadow);
}

/* SVG 动效关键帧 */
@keyframes draw-line {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
@keyframes breathe-opacity {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes dash-flow {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}

.anim-draw {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw-line 6s ease-in-out infinite alternate;
}
.anim-breathe {
  animation: breathe-opacity 4s ease-in-out infinite;
}
.anim-float {
  animation: float-y 7s ease-in-out infinite;
}
.anim-flow {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: dash-flow 5s linear infinite alternate;
}

/* 旋转元素中心修正 */
.anim-spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: float-y 8s ease-in-out infinite alternate;
}

/* 减少动态效果 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .anim-draw, .anim-breathe, .anim-float, .anim-flow, .anim-spin {
    animation: none !important;
  }
}

/* 响应式适配 */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .steps-row { flex-direction: column; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
