/* ==================== 设计变量 ==================== */
:root {
  --bg-page: #0a0a0a;
  --bg-card: #141414;
  --bg-surface: #1c1c1c;
  --border-subtle: rgba(212, 175, 55, 0.25);
  --border-hover: rgba(212, 175, 55, 0.6);
  --gold-main: #d4af37;
  --gold-light: #f2e6b9;
  --gold-dim: #8a7324;
  --text-primary: #f0f0f0;
  --text-secondary: #a8a8a8;
  --text-muted: #6b6b6b;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --font-sans: "Inter", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container-max: 1200px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --radius-sm: 6px;
  --radius-md: 12px;
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== 基础重置与排版 ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-wrap: balance;
  line-height: 1.3;
}
h1 { font-size: clamp(2rem, 5vw + 1rem, 3.5rem); color: var(--text-primary); }
h2 { font-size: clamp(1.5rem, 3vw + 0.5rem, 2.25rem); color: var(--gold-light); margin-bottom: var(--space-sm); }
h3 { font-size: clamp(1.1rem, 2vw + 0.25rem, 1.5rem); color: var(--text-primary); margin-bottom: var(--space-xs); }
p { margin-bottom: 1rem; color: var(--text-secondary); max-width: 72ch; }
a { color: var(--gold-main); text-decoration: none; transition: color var(--transition-base); }
a:hover { color: var(--gold-light); }
img, svg { display: block; max-width: 100%; height: auto; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; color: var(--text-secondary); }
li { margin-bottom: 0.5rem; }

/* ==================== 布局容器 ==================== */
.container { width: 90%; max-width: var(--container-max); margin: 0 auto; }
.section { padding: var(--space-lg) 0; position: relative; }
.section-grid { display: grid; gap: var(--space-md); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.text-center { text-align: center; }
.mt-md { margin-top: var(--space-md); }
.mb-md { margin-bottom: var(--space-md); }

/* ==================== 页头与导航 ==================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-sm) 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { height: 36px; width: auto; object-fit: contain; }
.brand-name { font-family: var(--font-serif); font-size: 1.1rem; color: var(--gold-main); font-weight: 600; }
.nav-links { display: flex; gap: var(--space-sm); list-style: none; padding: 0; margin: 0; }
.nav-links a {
  padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  font-size: 0.95rem; color: var(--text-secondary);
  transition: all var(--transition-base);
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--gold-main); background: rgba(212, 175, 55, 0.08);
}
.nav-links a[aria-current="page"] { font-weight: 500; }

/* ==================== 按钮组件 ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius-sm);
  font-weight: 500; cursor: pointer; transition: all var(--transition-base);
  border: 1px solid transparent; text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-main), var(--gold-dim));
  color: #000; border-color: var(--gold-main);
}
.btn-primary:hover { background: var(--gold-light); color: #000; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3); }
.btn-outline {
  background: transparent; color: var(--gold-main); border-color: var(--border-subtle);
}
.btn-outline:hover { border-color: var(--gold-main); background: rgba(212, 175, 55, 0.05); }

/* ==================== 卡片与表格 ==================== */
.card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: var(--space-md);
  transition: border-color var(--transition-base), transform var(--transition-base);
}
.card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.table-wrapper { overflow-x: auto; margin: var(--space-md) 0; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border-subtle); }
th { background: var(--bg-surface); color: var(--gold-light); font-family: var(--font-serif); font-weight: 500; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(212, 175, 55, 0.03); }

/* ==================== FAQ (Details/Summary) ==================== */
.faq-list details {
  border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  margin-bottom: var(--space-xs); background: var(--bg-card);
  transition: border-color var(--transition-base);
}
.faq-list details[open] { border-color: var(--border-hover); }
.faq-list summary {
  padding: 1rem 1.25rem; cursor: pointer; font-weight: 500; color: var(--text-primary);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-size: 1.25rem; color: var(--gold-main); transition: transform var(--transition-base);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 1.25rem 1rem; color: var(--text-secondary); font-size: 0.95rem; }

/* ==================== 图标与 SVG ==================== */
.icon { width: 24px; height: 24px; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.feature-icon { width: 32px; height: 32px; margin-bottom: 1rem; color: var(--gold-main); }

/* ==================== SVG 动效关键帧 ==================== */
@keyframes float-up-down {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(-12px); opacity: 1; }
}
@keyframes float-delay-1 {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50% { transform: translateY(-8px); opacity: 0.95; }
}
@keyframes float-delay-2 {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(-16px); opacity: 0.9; }
}
@keyframes draw-path {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
.animate-float { animation: float-up-down 6s ease-in-out infinite; }
.animate-float-1 { animation: float-delay-1 7s ease-in-out infinite 1s; }
.animate-float-2 { animation: float-delay-2 8s ease-in-out infinite 2s; }
.draw-on-load { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw-path 1.5s ease forwards; }

/* ==================== 焦点与无障碍 ==================== */
:focus-visible { outline: 2px solid var(--gold-main); outline-offset: 2px; }
@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;
  }
  .animate-float, .animate-float-1, .animate-float-2, .draw-on-load { animation: none !important; }
}
/* ==================== 页脚 ==================== */
.site-footer {
  border-top: 1px solid var(--border-subtle); padding: var(--space-md) 0;
  margin-top: var(--space-lg); font-size: 0.9rem; color: var(--text-muted);
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); text-align: center; }
.footer-links { display: flex; gap: var(--space-sm); flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--gold-main); }
