/* ========================================
   设计变量与基础重置
   ======================================== */
:root {
  --color-bg-primary: #080808;
  --color-bg-secondary: #101010;
  --color-bg-card: #141414;
  --color-text-primary: #eaeaea;
  --color-text-secondary: #9ca3af;
  --color-accent-gold: #c5a468;
  --color-accent-gold-hover: #d4b67a;
  --color-border-subtle: rgba(255, 255, 255, 0.08);
  --color-border-gold: rgba(197, 164, 104, 0.35);
  --color-focus-ring: rgba(197, 164, 104, 0.5);

  --font-serif: "Georgia", "Noto Serif SC", "Songti SC", serif;
  --font-sans: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);

  --line-height-tight: 1.2;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
button, input[type="submit"] { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ========================================
   排版与布局系统
   ======================================== */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--space-md); }
.section { padding: var(--space-xl) 0; }
.grid-auto { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.flex-center { display: flex; align-items: center; justify-content: center; }

h1, h2, h3 { font-family: var(--font-serif); line-height: var(--line-height-tight); color: var(--color-text-primary); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: var(--space-md); }
h3 { font-size: 1.15rem; margin-bottom: var(--space-xs); }
p { margin-bottom: var(--space-sm); color: var(--color-text-secondary); }
strong, b { color: var(--color-text-primary); font-weight: 600; }

.text-gold { color: var(--color-accent-gold); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mb-md { margin-bottom: var(--space-md); }
.text-center { text-align: center; }

/* ========================================
   页头与导航
   ======================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 8, 8, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-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: var(--space-xs); }
.brand-img { width: 32px; height: 32px; object-fit: contain; }
.brand-name { font-family: var(--font-sans); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.05em; }
.nav-list { display: flex; gap: var(--space-md); }
.nav-link { position: relative; padding: var(--space-xs) 0; font-size: 0.95rem; opacity: 0.85; }
.nav-link:hover, .nav-link[aria-current="page"] { opacity: 1; color: var(--color-accent-gold); }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--color-accent-gold); transition: width 0.25s ease;
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { width: 100%; }

/* ========================================
   通用组件
   ======================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  padding: 0.85rem 1.8rem; border-radius: var(--radius-md); font-weight: 500; font-size: 1rem;
  transition: all 0.25s ease; border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, #c5a468 0%, #a88a54 100%); color: #000;
  border-color: var(--color-accent-gold);
}
.btn-primary:hover { background: linear-gradient(135deg, #d4b67a 0%, #b99b65 100%); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(197, 164, 104, 0.25); }
.btn-outline { background: transparent; border-color: var(--color-border-gold); color: var(--color-accent-gold); }
.btn-outline:hover { background: rgba(197, 164, 104, 0.08); }

.card {
  background: var(--color-bg-card); border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md); padding: var(--space-md);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.card:hover { border-color: var(--color-border-gold); transform: translateY(-2px); }
.card-icon { width: 28px; height: 28px; margin-bottom: var(--space-sm); stroke: var(--color-accent-gold); }

.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; min-width: 500px; }
.data-table th, .data-table td { padding: 0.75rem var(--space-sm); border-bottom: 1px solid var(--color-border-subtle); text-align: left; }
.data-table th { font-family: var(--font-serif); color: var(--color-accent-gold); font-weight: 500; }
.data-table tr:last-child td { border-bottom: none; }

.faq-item { border-bottom: 1px solid var(--color-border-subtle); }
.faq-summary {
  padding: var(--space-sm) 0; cursor: pointer; font-weight: 500; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::after { content: "+"; font-weight: 300; color: var(--color-accent-gold); transition: transform 0.2s ease; }
.faq-item[open] .faq-summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 0 var(--space-sm); color: var(--color-text-secondary); line-height: 1.7; }

/* ========================================
   SVG 动效定义
   ======================================== */
.svg-mockup { width: 100%; height: auto; max-height: 320px; }
.svg-path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.stroke-gold { stroke: var(--color-accent-gold); }
.stroke-white { stroke: rgba(255, 255, 255, 0.6); }
.stroke-subtle { stroke: var(--color-border-subtle); }

.float-group-1 { animation: floatUp 6s ease-in-out infinite alternate; }
.float-group-2 { animation: floatUp 7s ease-in-out infinite alternate-reverse; }
.float-group-3 { animation: floatUp 5.5s ease-in-out infinite alternate; }

@keyframes floatUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-14px); }
}

.draw-path {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: drawStroke 8s ease-in-out infinite alternate;
}
@keyframes drawStroke {
  0% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0.5; }
}

.pulse-opacity { animation: pulseOpac 4s ease-in-out infinite; }
@keyframes pulseOpac {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ========================================
   响应式与无障碍
   ======================================== */
@media (max-width: 768px) {
  :root { --space-xl: 4rem; --space-lg: 2rem; }
  .nav-list { display: none; } /* 简化移动端处理，实际可加复选框开关，此处保持静态纯净 */
  .grid-auto { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

@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;
  }
  .float-group-1, .float-group-2, .float-group-3, .draw-path, .pulse-opacity {
    animation: none !important;
  }
}

:focus-visible { outline: 2px solid var(--color-accent-gold); outline-offset: 3px; border-radius: var(--radius-sm); }
