/* ==================== 设计变量与基础重置 ==================== */
:root {
  --bg-primary: #0b0b0e;
  --bg-secondary: #131318;
  --bg-card: #1a1a21;
  --bg-elevated: #23232b;
  --text-primary: #f2f2f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent-gold: #d4af37;
  --accent-gold-dim: rgba(212, 175, 55, 0.15);
  --border-thin: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(212, 175, 55, 0.25);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.35);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", "Noto Serif SC", serif;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --spacing-section: clamp(64px, 10vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -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 var(--ease-out); }
ul, ol { list-style: none; }

/* ==================== 排版系统 ==================== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 16px; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 24px; position: relative; padding-left: 16px; }
h2::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 4px; background: linear-gradient(180deg, var(--accent-gold), transparent); border-radius: 2px;
}
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 12px; color: var(--accent-gold); }
p { color: var(--text-secondary); margin-bottom: 16px; }
.text-muted { color: var(--text-muted); font-size: 0.95rem; }

/* ==================== 布局与网格 ==================== */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.section { padding: var(--spacing-section) 0; border-top: 1px solid var(--border-thin); }
.section-header { margin-bottom: 48px; max-width: 720px; }

/* ==================== 组件：按钮 ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; font-size: 1rem; font-weight: 500; border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.25s var(--ease-out); border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), #b8962e); color: #0a0a0c;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35); }
.btn-outline {
  background: transparent; border-color: var(--border-accent); color: var(--accent-gold);
}
.btn-outline:hover { background: var(--accent-gold-dim); }
:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 3px; border-radius: 2px; }

/* ==================== 组件：卡片与表格 ==================== */
.card {
  background: var(--bg-card); border: 1px solid var(--border-thin); border-radius: var(--radius-md);
  padding: 24px; transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.card:hover { transform: translateY(-3px); border-color: var(--border-accent); }
.table-wrapper { overflow-x: auto; border: 1px solid var(--border-thin); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border-thin); }
th { background: var(--bg-elevated); color: var(--text-primary); font-weight: 500; font-family: var(--font-serif); }
td { color: var(--text-secondary); }
tr:last-child td { border-bottom: none; }

/* ==================== 组件：FAQ (Details) ==================== */
details {
  background: var(--bg-secondary); border: 1px solid var(--border-thin); border-radius: var(--radius-md);
  margin-bottom: 12px; transition: border-color 0.2s;
}
details[open] { border-color: var(--border-accent); }
summary {
  padding: 16px 20px; cursor: pointer; font-weight: 500; color: var(--text-primary);
  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; color: var(--accent-gold); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 20px 20px; color: var(--text-secondary); margin: 0; }

/* ==================== 页头页脚 ==================== */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(11, 11, 14, 0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-thin);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 36px; height: 36px; object-fit: contain; }
.brand-name { font-family: var(--font-serif); font-size: 1.1rem; color: var(--text-primary); }
nav ul { display: flex; gap: 24px; }
nav a { font-size: 0.95rem; color: var(--text-secondary); padding: 6px 0; position: relative; }
nav a:hover, nav a[aria-current="page"] { color: var(--accent-gold); }
nav a[aria-current="page"]::after {
  content: ""; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--accent-gold); border-radius: 1px;
}
.site-footer { background: var(--bg-secondary); border-top: 1px solid var(--border-thin); padding: 48px 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.footer-col h4 { font-size: 0.95rem; color: var(--text-primary); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-muted); margin-bottom: 8px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent-gold); }
.footer-bottom { text-align: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border-thin); color: var(--text-muted); font-size: 0.85rem; }

/* ==================== SVG 动效关键帧 ==================== */
.geo-shape { transition: transform 0.3s var(--ease-out); }
@keyframes rotate-slow { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes rotate-reverse { 0% { transform: rotate(0deg); } 100% { transform: rotate(-360deg); } }
@keyframes assemble-pulse { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.03); opacity: 1; } }
@keyframes draw-line { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
.anim-spin { animation: rotate-slow 24s linear infinite; transform-box: fill-box; transform-origin: center; }
.anim-spin-rev { animation: rotate-reverse 28s linear infinite; transform-box: fill-box; transform-origin: center; }
.anim-assemble { animation: assemble-pulse 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.anim-draw { animation: draw-line 3s var(--ease-out) forwards; stroke-dasharray: 1; stroke-dashoffset: 1; }

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ==================== 响应式微调 ==================== */
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 16px 0; }
  nav ul { flex-wrap: wrap; gap: 16px; font-size: 0.9rem; }
  .section { padding: 48px 0; }
}
