:root {
  /* 色板 */
  --color-dark: #21163C;
  --color-paper: #E9E8EA;
  --color-text: #191523;
  --color-brand: #5214EB;
  --color-accent: #ED926E;
  --color-dark-text: #E9E8EA;
  
  /* 结构 Token */
  --radius-card: 20px;
  --radius-btn: 12px;
  --card-border: 0;
  --card-shadow: 0 10px 28px -14px rgba(25, 21, 35, 0.3);
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --content-max: 1120px;
  
  /* 字体 */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 容器与布局 */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

section {
  padding: var(--section-y) 0;
  position: relative;
}

/* 头部与导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(233, 232, 234, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(25, 21, 35, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand img {
  height: 32px;
  width: auto;
  vertical-align: middle;
  margin-right: 8px;
}

.brand span {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}

nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

nav a:hover, nav a[aria-current="page"] {
  color: var(--color-brand);
}

nav .btn-nav {
  background: var(--color-accent);
  color: var(--color-dark);
  padding: 8px 18px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.9rem;
}

nav .btn-nav:hover {
  background: #d67a56;
  color: var(--color-dark);
}

/* 按钮通用 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-dark);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(237, 146, 110, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-text);
}

.btn-secondary:hover {
  background: rgba(25, 21, 35, 0.05);
  transform: translateY(-2px);
}

/* 焦点可见 */
:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 2px;
}

/* 眉标与标题 */
.breadcrumb {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-brand);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.dark-section .breadcrumb {
  color: var(--color-accent);
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 24px;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.highlight {
  color: var(--color-brand);
}

.dark-section .highlight {
  color: var(--color-accent);
}

/* 文本排版 */
p {
  margin-bottom: 16px;
  max-width: 38em;
}

/* 网格与卡片 */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: var(--gap);
}

.card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: 24px;
  border: var(--card-border);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 14px 32px -12px rgba(25, 21, 35, 0.35);
}

/* 表格 */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

th, td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(25, 21, 35, 0.06);
}

th {
  background: rgba(25, 21, 35, 0.03);
  font-weight: 700;
  color: var(--color-text);
}

td:first-child {
  font-weight: 600;
  color: var(--color-brand);
}

/* FAQ */
details {
  background: #fff;
  border-radius: var(--radius-card);
  margin-bottom: 12px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

summary {
  padding: 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 40px;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--color-brand);
}

details[open] summary::after {
  content: "-";
}

.details-content {
  padding: 0 20px 20px;
  color: var(--color-text);
  line-height: 1.7;
}

/* 页脚 */
.site-footer {
  background: var(--color-dark);
  color: var(--color-dark-text);
  padding: 48px 0;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.footer-col h4 {
  color: var(--color-accent);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--color-dark-text);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--color-accent);
}

/* 深色区块覆盖 */
.dark-section {
  background: var(--color-dark);
  color: var(--color-dark-text);
}

.dark-section p, .dark-section h3, .dark-section th, .dark-section td {
  color: var(--color-dark-text);
}

.dark-section table {
  background: rgba(255,255,255,0.05);
}

.dark-section th, .dark-section td {
  border-color: rgba(233, 232, 234, 0.1);
}

.dark-section td:first-child {
  color: var(--color-accent);
}

/* SVG 动效基础 */
.svg-wrap {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

/* 动效 Keyframes */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes drawLine {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes rotateMerge {
  0% { transform: rotate(0deg) scale(0.9); opacity: 0.6; }
  50% { transform: rotate(180deg) scale(1.05); opacity: 1; }
  100% { transform: rotate(360deg) scale(0.9); opacity: 0.6; }
}

/* 动效类应用 */
.anim-float { animation: float 6s ease-in-out infinite; }
.anim-breathe { animation: breathe 3s ease-in-out infinite; }
.anim-slide { animation: slideIn 0.8s ease-out forwards; }
.anim-draw { animation: drawLine 1.5s ease-out forwards; }
.anim-rotate { animation: rotateMerge 12s linear infinite; }

/* 减少动态效果 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .anim-float, .anim-breathe, .anim-slide, .anim-draw, .anim-rotate {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* 响应式微调 */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; height: auto; padding: 12px 0; }
  nav ul { gap: 16px; margin-top: 12px; }
  .grid-2 { grid-template-columns: 1fr; }
  h1 { font-size: 2.2rem; }
}
