/* =========================================
   全局设计变量与基础重置
   ========================================= */
:root {
  --bg-main: #0b0b0f;
  --bg-card: #121216;
  --text-main: #e8e8e8;
  --text-muted: #a0a0a8;
  --accent-gold: #d4af37;
  --accent-gold-light: #f0d78c;
  --border-subtle: #2a2a2e;
  --border-hover: #4a4a52;
  --font-serif: 'Georgia', 'Noto Serif SC', 'Songti SC', serif;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --space-section: clamp(3.5rem, 8vw, 6.5rem);
  --space-container: clamp(1.5rem, 4vw, 3rem);
  --radius-base: 6px;
  --transition-fast: 0.2s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  font-size: 16px;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* =========================================
   排版系统
   ========================================= */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--accent-gold);
  text-wrap: balance;
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; margin-bottom: 1rem; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 600; margin-bottom: 0.9rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 500; margin-bottom: 0.6rem; }

p { margin-bottom: 1rem; max-width: 68ch; }
ul, ol { margin-left: 1.25rem; margin-bottom: 1.25rem; }
li { margin-bottom: 0.5rem; }
a { color: var(--accent-gold); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-gold-light); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 3px; border-radius: 2px; }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.max-w-prose { max-width: 65ch; margin-left: auto; margin-right: auto; }

/* =========================================
   布局与容器
   ========================================= */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-container);
}

.section-wrapper {
  padding: var(--space-section) 0;
  border-bottom: 1px solid var(--border-subtle);
}
.section-wrapper:last-child { border-bottom: none; }

.grid-auto {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.flex-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* =========================================
   页头与导航
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 15, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.04em;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2.2rem;
}

.main-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-gold);
  transition: width var(--transition-fast);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  width: 100%;
}

.main-nav a[aria-current="page"] {
  color: var(--accent-gold);
}

/* =========================================
   按钮与表单元素
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  background: transparent;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-base);
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  background: var(--accent-gold);
  color: var(--bg-main);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--bg-main);
}

.btn-primary:hover {
  background: var(--accent-gold-light);
  border-color: var(--accent-gold-light);
}

/* =========================================
   卡片与网格组件
   ========================================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  border-radius: var(--radius-base);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
}

.card-icon {
  width: 32px;
  height: 32px;
  color: var(--accent-gold);
  margin-bottom: 1.25rem;
}

.card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
  display: block;
}

/* =========================================
   表格样式
   ========================================= */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-base);
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  background: rgba(212, 175, 55, 0.08);
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.95rem;
}

.data-table td {
  color: var(--text-main);
  font-size: 0.95rem;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* =========================================
   手风琴 / FAQ
   ========================================= */
.faq-list {
  width: 100%;
  max-width: 800px;
}

.faq-item {
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-base);
  background: var(--bg-card);
}

details summary {
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-main);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition-fast);
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--accent-gold);
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details[open] summary {
  color: var(--accent-gold);
  border-bottom: 1px solid var(--border-subtle);
}

.faq-answer {
  padding: 1.1rem 1.25rem;
  color: var(--text-main);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* =========================================
   SVG 动效系统
   ========================================= */
@keyframes float-y {
  0% { transform: translateY(0); }
  100% { transform: translateY(-14px); }
}

@keyframes float-delayed {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

@keyframes float-layer {
  0% { transform: translateY(0); }
  100% { transform: translateY(-18px); }
}

@keyframes draw-stroke {
  0% { stroke-dashoffset: 1; }
  40% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}

.anim-float { animation: float-y 4.5s ease-in-out infinite alternate; }
.anim-float-slow { animation: float-delayed 5.8s ease-in-out infinite alternate; }
.anim-float-fast { animation: float-layer 3.8s ease-in-out infinite alternate; }
.anim-draw { animation: draw-stroke 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate; }

@media (prefers-reduced-motion: reduce) {
  .anim-float,
  .anim-float-slow,
  .anim-float-fast,
  .anim-draw {
    animation: none !important;
  }
}

.decorative-divider {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 2.5rem auto;
  opacity: 0.5;
}

/* =========================================
   响应式适配
   ========================================= */
@media (max-width: 768px) {
  .nav-row { flex-direction: column; height: auto; padding: 1rem 0; gap: 0.75rem; }
  .main-nav ul { gap: 1.2rem; flex-wrap: wrap; justify-content: center; }
  .section-wrapper { padding: 2.5rem 0; }
  .data-table { display: block; overflow-x: auto; }
}
