/* ==================== 设计变量 ==================== */
:root {
  --color-bg: #08080a;
  --color-surface: #111114;
  --color-surface-alt: #18181d;
  --color-border: rgba(212, 175, 55, 0.18);
  --color-border-strong: rgba(212, 175, 55, 0.45);
  --color-primary: #d4af37;
  --color-primary-hover: #f2cc5c;
  --color-text: #e5e5e7;
  --color-text-muted: #8a8a92;
  --color-accent: #ffffff;
  --color-success: #3fb950;
  
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-sans: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  --container-max: 1120px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 24px rgba(212, 175, 55, 0.15);
}

/* ==================== 基础重置 ==================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease, border-color 0.2s ease; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }

/* ==================== 排版系统 ==================== */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-md); }
.section { padding: var(--space-lg) 0; position: relative; }
.section--alt { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }

.text-center { text-align: center; }
.muted { color: var(--color-text-muted); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
  margin: 0 0 var(--space-sm);
  color: var(--color-accent);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: var(--space-xs); }
p { margin: 0 0 var(--space-sm); }

/* ==================== 导航与页头页脚 ==================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: var(--space-xs); }
.brand img { height: 32px; width: auto; object-fit: contain; }
.brand span { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; color: var(--color-primary); }

.nav ul { display: flex; gap: var(--space-md); }
.nav a {
  font-size: 0.95rem; color: var(--color-text-muted); padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--color-primary); border-bottom-color: var(--color-primary); }

.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-md) 0;
  font-size: 0.9rem; color: var(--color-text-muted);
}
.footer-inner { display: flex; flex-direction: column; gap: var(--space-sm); align-items: center; text-align: center; }
.footer-links { display: flex; gap: var(--space-md); flex-wrap: wrap; justify-content: center; }

/* ==================== 组件 ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.6rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: all 0.2s ease; border: 2px solid transparent;
}
.btn--primary { background: var(--color-primary); color: #000; border-color: var(--color-primary); }
.btn--primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--color-primary); border-color: var(--color-border-strong); }
.btn--outline:hover { border-color: var(--color-primary); background: rgba(212, 175, 55, 0.08); }

.card {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--color-border-strong); box-shadow: var(--shadow-glow); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-md); }

table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 0.8rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { color: var(--color-primary); font-weight: 600; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* FAQ Details */
details {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-xs);
  overflow: hidden;
}
summary {
  padding: 1rem; cursor: pointer; font-weight: 600; color: var(--color-accent);
  list-style: none; position: relative; padding-right: 2rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--color-primary); font-weight: 400; transition: transform 0.2s ease;
}
details[open] summary::after { content: "−"; transform: translateY(-50%) rotate(180deg); }
.details-content { padding: 0 1rem 1rem; color: var(--color-text-muted); }

/* 时间轴/快速开始 */
.steps { counter-reset: step-num; }
.step-item { position: relative; padding-left: 3rem; margin-bottom: var(--space-md); }
.step-item::before {
  counter-increment: step-num;
  content: counter(step-num);
  position: absolute; left: 0; top: 0;
  width: 2rem; height: 2rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--color-primary); font-size: 0.9rem;
}

/* 焦点样式 */
*:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* ==================== SVG 动效核心 ==================== */
.svg-icon { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.5; fill: none; transform-box: fill-box; transform-origin: center; }
.anim-float { animation: float-y 6s ease-in-out infinite; }
.anim-float-delayed { animation: float-y 6s ease-in-out infinite 2s; }
.anim-draw { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw-line 3s ease forwards; }
.anim-pulse { animation: pulse-opacity 4s ease-in-out infinite alternate; }

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes draw-line {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
@keyframes pulse-opacity {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .anim-float, .anim-float-delayed, .anim-draw, .anim-pulse { animation: none !important; }
}

/* ==================== 响应式适配 ==================== */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: var(--space-sm) 0; }
  .nav { display: none; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  .section { padding: var(--space-md) 0; }
}
