/* ================= 设计变量与基础重置 ================= */
:root {
  --bg-primary: #0a0a0c;
  --bg-secondary: #111113;
  --bg-tertiary: #1a1a1d;
  --text-primary: #e5e5e7;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #c9a227;
  --accent-hover: #dbb845;
  --border-subtle: rgba(201, 162, 39, 0.25);
  --border-light: rgba(255, 255, 255, 0.08);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --font-serif: Georgia, "Times New Roman", "Songti SC", serif;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition-base); }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; background: transparent; border: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ================= 排版系统 ================= */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-secondary); }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-primary);
  text-wrap: balance;
}
.section-desc {
  font-size: clamp(1rem, 1.5vw + 0.2rem, 1.125rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin-bottom: 40px;
  text-wrap: balance;
}
.grid-auto { display: grid; gap: 24px; }
@media (min-width: 768px) { .grid-auto { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-auto { grid-template-columns: repeat(3, 1fr); } }

/* ================= 组件：按钮 ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-md);
  font-weight: 500; font-size: 1rem; cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #b88f20);
  color: #0a0a0c; border: 1px solid transparent;
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.25);
}
.btn-primary:hover { background: linear-gradient(135deg, #dbb845, var(--accent)); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201, 162, 39, 0.35); }
.btn-outline {
  background: transparent; border: 1px solid var(--border-subtle); color: var(--accent);
}
.btn-outline:hover { border-color: var(--accent); background: rgba(201, 162, 39, 0.08); }

/* ================= 组件：卡片 ================= */
.card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-subtle); box-shadow: var(--shadow-card); }
.card-icon { width: 48px; height: 48px; margin-bottom: 16px; color: var(--accent); }
.card-title { font-family: var(--font-serif); font-size: 1.25rem; margin-bottom: 8px; color: var(--text-primary); }
.card-text { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.65; }

/* ================= 组件：表格 ================= */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border-light); border-radius: var(--radius-md); }
.data-table { width: 100%; border-collapse: collapse; min-width: 340px; }
.data-table th, .data-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border-light); font-size: 0.95rem; }
.data-table th { background: var(--bg-tertiary); color: var(--text-muted); font-weight: 500; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

/* ================= 组件：FAQ ================= */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
details.faq-item {
  background: var(--bg-tertiary); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); overflow: hidden;
  transition: border-color var(--transition-base);
}
details.faq-item[open] { border-color: var(--border-subtle); }
summary.faq-question {
  padding: 18px 24px; cursor: pointer; font-weight: 500; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center;
  list-style: none; user-select: none;
}
summary.faq-question::-webkit-details-marker { display: none; }
summary.faq-question::after {
  content: "+"; color: var(--accent); font-weight: 400; font-size: 1.25rem;
  transition: transform var(--transition-base);
}
details.faq-item[open] summary.faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 24px 20px; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* ================= 导航与页脚 ================= */
.header { position: sticky; top: 0; z-index: 100; background: rgba(10, 10, 12, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-light); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-serif); font-weight: 600; font-size: 1.1rem; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.nav-list { display: flex; gap: 28px; }
.nav-link { font-size: 0.95rem; color: var(--text-secondary); position: relative; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--accent); }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px; background: var(--accent); }
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border-light); padding: 48px 0 32px; font-size: 0.9rem; color: var(--text-muted); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 32px; }
.footer-col h4 { color: var(--text-primary); margin-bottom: 12px; font-family: var(--font-serif); }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--border-light); font-size: 0.85rem; }

/* ================= SVG 动效基础 ================= */
.svg-anim-container { position: relative; width: 100%; max-width: 800px; margin: 0 auto; }
svg svg-anim-target { width: 100%; height: auto; }
.path-draw { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 0.1s; }
.animate-draw { animation: draw-stroke 5s ease-in-out infinite alternate; }
@keyframes draw-stroke { to { stroke-dashoffset: 1; } }

.animate-float-1 { animation: float-y 6s ease-in-out infinite alternate; }
.animate-float-2 { animation: float-y 7s ease-in-out infinite alternate 1s; }
.animate-float-3 { animation: float-y 8s ease-in-out infinite alternate 2s; }
@keyframes float-y {
  0% { transform: translateY(0); }
  100% { transform: translateY(-14px); }
}

.animate-pulse { animation: pulse-opacity 4s ease-in-out infinite alternate; }
@keyframes pulse-opacity { 0% { opacity: 0.6; } 100% { opacity: 1; } }

/* 减少动态效果适配 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .animate-draw, .animate-float-1, .animate-float-2, .animate-float-3, .animate-pulse { animation: none !important; }
}

/* ================= 响应式调整 ================= */
@media (max-width: 767px) {
  .section { padding: 64px 0; }
  .nav-list { gap: 16px; }
  .header-inner { padding: 0 16px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .grid-auto { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-auto { grid-template-columns: repeat(3, 1fr); }
}
