/* ==================== 设计变量与基础重置 ==================== */
:root {
  --color-bg: #0b0b0b;
  --color-surface: #151515;
  --color-surface-alt: #1a1a1a;
  --color-border: #2e2e2e;
  --color-border-light: #3a3a3a;
  --color-text-primary: #f2f2f2;
  --color-text-secondary: #9a9a9a;
  --color-accent: #d4af37;
  --color-accent-hover: #e8c74a;
  --color-success: #34c759;
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover, a:focus-visible { color: var(--color-accent-hover); outline: none; }
ul, ol { margin: 0; padding-left: 0; list-style: none; }

/* ==================== 排版系统 ==================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin-top: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5vw + 0.5rem, 3.5rem); margin-bottom: var(--space-sm); }
h2 { font-size: clamp(1.5rem, 3vw + 0.25rem, 2.25rem); margin-bottom: var(--space-sm); }
h3 { font-size: clamp(1.1rem, 2vw + 0.2rem, 1.4rem); margin-bottom: var(--space-xs); }
p { margin: 0 0 var(--space-sm); color: var(--color-text-secondary); }
strong, b { color: var(--color-text-primary); font-weight: 600; }

.section { padding: var(--space-xl) 0; border-bottom: 1px solid var(--color-border); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto var(--space-lg); }

/* ==================== 页头与页脚 ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 11, 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);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-text-primary);
  font-weight: 600;
}
.brand img { height: 32px; width: auto; }
.nav-list { display: flex; gap: var(--space-md); }
.nav-link {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--color-accent); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-accent);
}

.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: var(--space-lg);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}
.footer-col h4 { color: var(--color-accent); font-size: 1rem; margin-bottom: var(--space-sm); }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--color-text-secondary); font-size: 0.9rem; }
.footer-col a:hover { color: var(--color-text-primary); }
.footer-meta {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* ==================== 按钮与交互组件 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), #b8962e);
  color: #0a0a0a;
  border-color: var(--color-accent);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border-light);
}
.btn-outline:hover, .btn-outline:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover { border-color: var(--color-border-light); transform: translateY(-2px); }

/* ==================== 表格与列表 ==================== */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 600px;
}
.data-table th, .data-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.data-table th {
  font-family: var(--font-serif);
  color: var(--color-accent);
  font-weight: 500;
  background: var(--color-surface-alt);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table td { color: var(--color-text-secondary); }

.list-disc { list-style: disc; padding-left: 1.2rem; }
.list-disc li { margin-bottom: 0.5rem; color: var(--color-text-secondary); }
.list-disc li strong { color: var(--color-text-primary); }

/* ==================== FAQ (Details/Summary) ==================== */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: var(--space-sm);
  background: var(--color-surface);
}
.faq-summary {
  padding: 1rem;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--color-accent);
  transition: transform var(--transition);
}
details[open] .faq-summary::after { transform: rotate(45deg); }
details[open] .faq-summary { color: var(--color-accent); }
.faq-content { padding: 0 1rem 1rem; color: var(--color-text-secondary); line-height: 1.6; }

/* ==================== SVG 动效规范 ==================== */
.svg-graphic { width: 100%; height: auto; overflow: visible; }
.svg-graphic path, .svg-graphic circle, .svg-graphic rect, .svg-graphic polygon, .svg-graphic line {
  transform-box: fill-box;
  transform-origin: center;
}
.stroke-draw {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw-path 4s ease-in-out infinite alternate;
}
.spin-slow { animation: spin-cw 12s linear infinite; }
.spin-reverse { animation: spin-ccw 15s linear infinite; }
.align-pulse { animation: pulse-align 6s ease-in-out infinite; }
.polygon-stagger { animation: stagger-rotate 8s ease-in-out infinite alternate; }

@keyframes draw-path {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
@keyframes spin-cw {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes spin-ccw {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}
@keyframes pulse-align {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.85; }
  50% { transform: scale(1.05) translate(2px, -1px); opacity: 1; }
}
@keyframes stagger-rotate {
  0% { transform: rotate(-5deg) translateX(-3px); }
  100% { transform: rotate(5deg) translateX(3px); }
}

@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;
  }
  .svg-graphic path, .svg-graphic circle, .svg-graphic rect, .svg-graphic polygon, .svg-graphic line {
    animation: none !important;
  }
}

/* ==================== 响应式适配 ==================== */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; height: auto; padding: 0.8rem 0; gap: 0.6rem; }
  .nav-list { gap: var(--space-sm); flex-wrap: wrap; justify-content: center; }
  .section { padding: var(--space-lg) 0; }
  .card { padding: var(--space-sm); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
@media (min-width: 769px) { .grid-2, .grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); } }
