/* ========================================
   全局设计变量与基础重置
   ======================================== */
:root {
  --bg-primary: #0a0a0a;
  --bg-surface: #141414;
  --bg-surface-hover: #1c1c1c;
  --text-primary: #f5f5f5;
  --text-secondary: #a3a3a3;
  --accent-gold: #d4af37;
  --accent-gold-dim: #b8962e;
  --border-default: #333333;
  --border-accent: rgba(212, 175, 55, 0.35);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 响应式减淡动画策略 */
@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;
  }
}

/* 排版层级 */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  margin: 0 0 var(--space-sm);
  color: var(--text-primary);
  text-wrap: balance;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-top: 0; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 var(--space-sm); color: var(--text-secondary); }
a { color: var(--accent-gold); text-decoration: none; transition: color var(--transition-fast); }
a:hover, a:focus-visible { color: var(--accent-gold-dim); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; border-radius: var(--radius-sm); }

/* 布局容器 */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md); }
.section { padding: var(--space-xl) 0; border-bottom: 1px solid var(--border-default); }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: center; }
@media (max-width: 768px) { .split-layout { grid-template-columns: 1fr; } }

/* 导航与页头页脚 */
header { position: sticky; top: 0; z-index: 100; background: rgba(10, 10, 10, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-default); padding: var(--space-sm) 0; }
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: var(--space-xs); }
.brand img { height: 36px; width: auto; display: block; }
.brand-name { font-family: var(--font-heading); font-size: 1.25rem; color: var(--text-primary); }
nav ul { display: flex; list-style: none; gap: var(--space-md); margin: 0; padding: 0; }
nav a { font-size: 0.95rem; color: var(--text-secondary); font-weight: 500; }
nav a:hover, nav a[aria-current="page"] { color: var(--accent-gold); text-decoration: none; }
footer { background: var(--bg-surface); padding: var(--space-xl) 0 var(--space-md); border-top: 1px solid var(--border-default); text-align: center; font-size: 0.9rem; color: var(--text-secondary); }
.footer-links { display: flex; justify-content: center; gap: var(--space-md); margin-bottom: var(--space-sm); flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--accent-gold); }

/* 通用组件 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.8rem; background: var(--accent-gold); color: #000;
  font-weight: 600; border: none; border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--transition-fast); text-decoration: none;
  font-size: 1rem; white-space: nowrap;
}
.btn:hover, .btn:focus-visible { background: var(--accent-gold-dim); transform: translateY(-2px); text-decoration: none; }
.btn-outline { background: transparent; color: var(--accent-gold); border: 1px solid var(--accent-gold); }
.btn-outline:hover { background: rgba(212, 175, 55, 0.08); transform: translateY(-1px); }

.card {
  background: var(--bg-surface); border: 1px solid var(--border-default);
  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-accent); transform: translateY(-3px); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-md); }
.grid-gallery { display: flex; gap: var(--space-md); overflow-x: auto; padding-bottom: var(--space-sm); scrollbar-width: thin; scrollbar-color: var(--accent-gold-dim) var(--bg-surface); }
.gallery-item { min-width: 320px; }

/* 表格样式 */
.table-wrapper { overflow-x: auto; margin: var(--space-md) 0; border: 1px solid var(--border-default); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid var(--border-default); }
th { background: var(--bg-surface-hover); color: var(--accent-gold); font-weight: 600; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255, 255, 255, 0.03); }

/* FAQ 组件 */
details { background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-md); margin-bottom: var(--space-sm); overflow: hidden; transition: border-color var(--transition-base); }
details:hover { border-color: var(--border-accent); }
summary { padding: 1rem 1.25rem; cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between; }
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[open] summary { border-bottom: 1px solid var(--border-default); background: var(--bg-surface-hover); }
.faq-content { padding: 1rem 1.25rem; color: var(--text-secondary); }

/* 辅助类 */
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mb-md { margin-bottom: var(--space-md); }
.gold-highlight { color: var(--accent-gold); }
.divider { height: 1px; background: var(--border-default); margin: var(--space-lg) 0; }

/* SVG 动效关键帧 */
@keyframes floatLayer {
  0% { transform: translateY(0); }
  100% { transform: translateY(-14px); }
}
@keyframes drawStroke {
  0% { stroke-dashoffset: 1; opacity: 0.2; }
  50% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -1; opacity: 0.2; }
}
@keyframes pulseRing {
  0% { transform: scale(0.8); opacity: 0.4; }
  50% { transform: scale(1.1); opacity: 0.8; }
  100% { transform: scale(0.8); opacity: 0.4; }
}
.float-anim { animation: floatLayer 5s ease-in-out infinite alternate; }
.float-anim-alt { animation: floatLayer 6s ease-in-out infinite alternate-reverse; }
.draw-anim { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: drawStroke 7s linear infinite alternate; }
.pulse-anim { transform-box: fill-box; transform-origin: center; animation: pulseRing 3s ease-in-out infinite; }
