/* ================= 设计变量与基础重置 ================= */
:root {
  --bg-deep: #0b0814;
  --bg-surface: rgba(255, 255, 255, 0.05);
  --bg-surface-hover: rgba(255, 255, 255, 0.09);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-active: rgba(168, 85, 247, 0.6);
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --accent-gradient: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --font-stack: 'PingFang SC', 'Noto Sans SC', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --size-base: clamp(0.95rem, 1.2vw, 1.05rem);
  --size-heading-xl: clamp(2.2rem, 5vw, 3.6rem);
  --size-heading-lg: clamp(1.6rem, 3vw, 2.4rem);
  --size-heading-md: clamp(1.2rem, 2vw, 1.5rem);
  --line-height-normal: 1.75;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 30px rgba(168, 85, 247, 0.25);
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 100%; }
body {
  font-family: var(--font-stack);
  background: var(--bg-deep);
  color: var(--text-secondary);
  line-height: var(--line-height-normal);
  font-size: var(--size-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ================= 布局与排版 ================= */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5.5rem 0; }
.text-center { text-align: center; }
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h1, h2, h3, h4 { color: var(--text-primary); font-weight: 600; line-height: 1.25; text-wrap: balance; margin-bottom: 1rem; }
h1 { font-size: var(--size-heading-xl); }
h2 { font-size: var(--size-heading-lg); margin-bottom: 2.5rem; }
h3 { font-size: var(--size-heading-md); margin-bottom: 0.8rem; }
p { margin-bottom: 1.2rem; color: var(--text-secondary); }
.section-desc { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; }

/* ================= 页头与页脚 ================= */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(11, 8, 20, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 1.1rem; color: var(--text-primary); }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.nav-list { display: flex; gap: 2.2rem; }
.nav-link { font-size: 0.95rem; color: var(--text-muted); position: relative; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--accent-purple); }
.nav-link::after {
  content: ""; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--accent-gradient); transition: width var(--transition-smooth);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { width: 100%; }

.site-footer { border-top: 1px solid var(--border-subtle); background: rgba(0,0,0,0.25); padding: 4rem 0 2.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-col h4 { font-size: 1rem; color: var(--text-primary); margin-bottom: 1.2rem; }
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--accent-pink); }
.copyright { text-align: center; color: var(--text-muted); font-size: 0.85rem; padding-top: 2rem; border-top: 1px solid var(--border-subtle); }

/* ================= 通用组件 ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.9rem 2rem; border-radius: var(--radius-full); font-weight: 500; cursor: pointer;
  border: none; transition: all var(--transition-smooth); font-size: 1rem;
}
.btn-primary {
  background: var(--accent-gradient); color: #fff;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(236, 72, 153, 0.45); }
.btn-outline {
  background: transparent; border: 1.5px solid var(--border-subtle); color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--accent-purple); background: var(--bg-surface); }

.card {
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 1.8rem; transition: all var(--transition-smooth);
}
.card:hover { background: var(--bg-surface-hover); transform: translateY(-4px); border-color: var(--border-active); }
.icon-box { width: 48px; height: 48px; border-radius: var(--radius-sm); background: rgba(168, 85, 247, 0.15); display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; }
.icon-box svg { width: 24px; height: 24px; stroke: var(--accent-purple); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 表格样式 */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border-subtle); }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 1.1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--border-subtle); }
th { background: rgba(168, 85, 247, 0.08); color: var(--text-primary); font-weight: 500; }
tr:hover td { background: rgba(255,255,255,0.03); }
td:first-child { font-weight: 500; color: var(--text-primary); }

/* FAQ 组件 */
.faq-item { margin-bottom: 1rem; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; background: var(--bg-surface); }
.faq-summary {
  padding: 1.2rem 1.5rem; cursor: pointer; font-weight: 500; color: var(--text-primary);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  transition: background var(--transition-fast);
}
.faq-summary:hover { background: var(--bg-surface-hover); }
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::after { content: "+"; font-size: 1.4rem; font-weight: 300; transition: transform 0.3s; color: var(--accent-purple); }
.faq-item[open] .faq-summary::after { transform: rotate(45deg); }
.faq-content { padding: 0 1.5rem 1.5rem; color: var(--text-secondary); line-height: 1.7; }

/* 焦点可见性 */
.focus-visible:focus-visible { outline: 2px solid var(--accent-purple); outline-offset: 2px; }

/* ================= SVG 动效体系 ================= */
.svg-draw path, .svg-draw rect, .svg-draw circle, .svg-draw polyline, .svg-draw polygon {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.svg-draw path.animate, .svg-draw rect.animate, .svg-draw circle.animate, .svg-draw polyline.animate, .svg-draw polygon.animate {
  animation: stroke-draw-cycle 5s ease-in-out infinite alternate;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes stroke-draw-cycle {
  0% { stroke-dashoffset: 1; }
  65% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .svg-draw path.animate, .svg-draw rect.animate, .svg-draw circle.animate, .svg-draw polyline.animate, .svg-draw polygon.animate { animation: none; }
}

/* ================= 响应式适配 ================= */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-list { display: none; }
}
@media (max-width: 600px) {
  section { padding: 3.5rem 0; }
  h1 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .gap-2 { gap: 1.2rem; }
}
