:root {
  --color-dark: #271231;
  --color-paper: #F5F0E5;
  --color-text: #1F1523;
  --color-brand: #9B12D8;
  --color-accent: #ED6EC0;
  --radius-card: 0;
  --radius-btn: 0;
  --card-border: 1px solid rgba(31, 21, 35, 0.16);
  --card-shadow: none;
  --section-y: clamp(2.5rem, 5vw, 4rem);
  --gap: clamp(0.75rem, 1.5vw, 1.25rem);
  --content-max: 1280px;
  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --line-height-body: 1.55;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--color-paper);
  color: var(--color-text);
  line-height: var(--line-height-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-brand); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.85; }
a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

.layout-wrapper { display: flex; min-height: 100vh; }

/* 桌面端左侧品牌栏 */
.sidebar-nav {
  width: 260px;
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--color-dark);
  color: var(--color-paper);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 100;
}
.sidebar-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.sidebar-logo img { width: 32px; height: 32px; }
.sidebar-logo span { font-size: 1.1rem; font-weight: 700; letter-spacing: 0.05em; }
.sidebar-links { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.sidebar-links a {
  color: rgba(245, 240, 229, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 0;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}
.sidebar-links a:hover, .sidebar-links a[aria-current="page"] {
  color: var(--color-paper);
  border-left-color: var(--color-accent);
}
.sidebar-footer { font-size: 0.75rem; opacity: 0.5; line-height: 1.6; }

/* 移动端顶部导航 */
.top-bar {
  display: none;
  background: var(--color-dark);
  color: var(--color-paper);
  padding: 12px var(--gap);
  position: sticky;
  top: 0;
  z-index: 90;
  justify-content: space-between;
  align-items: center;
}
.top-bar .brand { font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.top-bar .nav-actions { display: flex; gap: 16px; font-size: 0.9rem; }
.top-bar .nav-actions a { color: var(--color-paper); }

@media (max-width: 768px) {
  .layout-wrapper { flex-direction: column; }
  .sidebar-nav { display: none; }
  .top-bar { display: flex; }
}

.main-content {
  flex: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gap);
  width: 100%;
}

/* 区块通用 */
.section { padding: var(--section-y) 0; }
.section-header { margin-bottom: calc(var(--gap) * 2); }
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 10px;
  display: block;
}
.dark-section .eyebrow { color: var(--color-accent); }

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin-bottom: 16px;
}
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
p { margin-bottom: 16px; max-width: 38em; }
.hl { color: var(--color-brand); }
.dark-section .hl { color: var(--color-accent); }

/* 按钮 */
.btn-group { display: flex; flex-wrap: wrap; gap: 16px; margin: 24px 0; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  border: none;
  text-decoration: none;
}
.btn-primary { background: var(--color-accent); color: var(--color-dark); }
.btn-primary:hover { transform: translateY(-2px); opacity: 0.9; }
.btn-secondary { background: transparent; border: 1px solid var(--color-text); color: var(--color-text); }
.dark-section .btn-secondary { border-color: var(--color-paper); color: var(--color-paper); }
.btn-icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }

/* 卡片与网格 */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.card {
  background: var(--color-paper);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  padding: var(--gap);
  position: relative;
}
.card.dark-card { background: var(--color-dark); color: var(--color-paper); }
.card.dark-card p, .card.dark-card h3, .card.dark-card li { color: var(--color-paper); }
.card.dark-card .hl { color: var(--color-accent); }

/* 表格 */
table { width: 100%; border-collapse: collapse; margin-bottom: var(--gap); table-layout: auto; }
th, td { padding: 12px; border-bottom: var(--card-border); text-align: left; overflow-wrap: break-word; word-break: break-all; min-width: 0; }
th { font-weight: 700; background: rgba(0,0,0,0.03); }
.dark-table th { background: rgba(255,255,255,0.05); color: var(--color-paper); }
.dark-table td { color: var(--color-paper); }

/* FAQ */
details { border-bottom: var(--card-border); padding: 12px 0; }
summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; }
details[open] summary::after { content: "-"; }
details p { margin-top: 12px; font-size: 0.95rem; line-height: 1.6; }
.dark-section details p { color: var(--color-paper); }

/* 步骤条 */
.steps { display: flex; gap: var(--gap); counter-reset: step; }
.step-item { flex: 1; position: relative; padding-top: 32px; }
.step-item::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0; left: 0;
  background: var(--color-accent);
  color: var(--color-dark);
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
}
.step-title { font-weight: 600; margin-bottom: 6px; }
.step-desc { font-size: 0.9rem; opacity: 0.85; }
@media (max-width: 640px) { .steps { flex-direction: column; } }

/* SVG 动效：同心轨道呼吸 */
.svg-orbit-container { width: 100%; height: auto; max-width: 480px; margin: 0 auto; }
.orbit-ring {
  fill: none;
  stroke-width: 1.5;
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transform-origin: center;
  transform-box: fill-box;
}
.ring-1 { animation: orbit-breathe-1 7s ease-in-out infinite alternate; }
.ring-2 { animation: orbit-breathe-2 9s ease-in-out infinite alternate; }
.ring-3 { animation: orbit-breathe-3 11s ease-in-out infinite alternate; }

@keyframes orbit-breathe-1 {
  0% { stroke-dashoffset: 1; stroke-opacity: 0.2; transform: scale(0.96); }
  50% { stroke-dashoffset: 0.3; stroke-opacity: 0.9; transform: scale(1.02); }
  100% { stroke-dashoffset: 0; stroke-opacity: 0.5; transform: scale(0.98); }
}
@keyframes orbit-breathe-2 {
  0% { stroke-dashoffset: 0.8; stroke-opacity: 0.3; transform: scale(1.01); }
  50% { stroke-dashoffset: 0; stroke-opacity: 1; transform: scale(1.05); }
  100% { stroke-dashoffset: 0.5; stroke-opacity: 0.6; transform: scale(1.02); }
}
@keyframes orbit-breathe-3 {
  0% { stroke-dashoffset: 0.5; stroke-opacity: 0.1; transform: scale(0.98); }
  50% { stroke-dashoffset: 0.1; stroke-opacity: 0.8; transform: scale(1.04); }
  100% { stroke-dashoffset: 0; stroke-opacity: 0.4; transform: scale(1.01); }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-ring { animation: none !important; stroke-dashoffset: 0 !important; stroke-opacity: 0.8 !important; transform: scale(1) !important; }
  .btn { transition: none; }
  .step-item::before { animation: none; }
}
