/* === 设计变量与基础重置 === */
:root {
  --color-bg: #0b0714;
  --color-surface: rgba(255, 255, 255, 0.06);
  --color-surface-hover: rgba(255, 255, 255, 0.10);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-primary: #9d4edd;
  --color-secondary: #ff7eb3;
  --color-accent: #c77dff;
  --color-text: #e2e8f0;
  --color-text-sub: #a0aec0;
  --color-success: #4ade80;
  --font-main: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-glow: 0 0 40px rgba(157, 78, 221, 0.25);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --spacing-section: clamp(3.5rem, 7vw, 7rem);
  --spacing-container: clamp(1rem, 3vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.85;
  overflow-x: hidden;
}

/* === 排版系统 === */
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; color: #fff; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 0.75rem; }
p { margin-bottom: 1.2rem; color: var(--color-text-sub); }
a { color: var(--color-secondary); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.2s ease; }
a:hover { color: var(--color-primary); }
ul, ol { padding-left: 1.25rem; margin-bottom: 1.2rem; }
li { margin-bottom: 0.5rem; color: var(--color-text-sub); }
strong { color: #fff; font-weight: 600; }

/* === 布局工具 === */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-container); }
.section { padding: var(--spacing-section) 0; position: relative; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.text-right { text-align: right; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* === 组件：玻璃卡片 === */
.glass-card {
  background: var(--color-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-card);
}
.glass-card:hover {
  background: var(--color-surface-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(157, 78, 221, 0.15);
}

/* === 组件：按钮 === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.85rem 1.6rem; border-radius: var(--radius-full);
  font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none;
  border: none; cursor: pointer; transition: all 0.2s ease;
}
.btn:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: 3px; }
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff; box-shadow: var(--shadow-glow);
}
.btn-primary:hover { filter: brightness(1.15); transform: scale(1.03); }
.btn-outline {
  background: transparent; border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
}
.btn-outline:hover { background: rgba(199, 125, 255, 0.1); border-color: var(--color-secondary); color: var(--color-secondary); }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.9rem; }

/* === 组件：表格 === */
.table-wrapper { overflow-x: auto; margin: 2rem 0; border-radius: var(--radius-md); border: 1px solid var(--color-border); }
table { width: 100%; border-collapse: collapse; min-width: 600px; background: var(--color-surface); }
th, td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: rgba(157, 78, 221, 0.15); color: #fff; font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255, 255, 255, 0.03); }

/* === 组件：FAQ === */
details {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); margin-bottom: 1rem; padding: 1.1rem 1.25rem;
  transition: background 0.2s;
}
details:hover { background: var(--color-surface-hover); }
summary {
  font-weight: 600; cursor: pointer; list-style: none; display: flex;
  justify-content: space-between; align-items: center; font-size: 1.05rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--color-accent); transition: transform 0.2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 0.8rem; margin-bottom: 0; font-size: 0.95rem; line-height: 1.7; }

/* === 页头页脚 === */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 7, 20, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border); padding: 0.9rem 0;
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 0.7rem; font-weight: 700; font-size: 1.2rem; color: #fff; text-decoration: none; }
.logo img { width: 32px; height: 32px; border-radius: 6px; object-fit: contain; }
nav ul { display: flex; gap: 1.5rem; list-style: none; }
nav a { color: var(--color-text-sub); font-size: 0.95rem; padding: 0.4rem 0; position: relative; }
nav a:hover, nav a[aria-current="page"] { color: #fff; }
nav a[aria-current="page"]::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--color-secondary); border-radius: 2px; }

footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 3.5rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-col h4 { color: #fff; margin-bottom: 1rem; font-size: 1.05rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--color-text-sub); font-size: 0.92rem; display: inline-block; }
.footer-col a:hover { color: var(--color-secondary); }
.copyright { text-align: center; color: var(--color-text-sub); font-size: 0.85rem; border-top: 1px solid var(--color-border); padding-top: 1.5rem; }

/* === SVG 动效核心规则 === */
.svg-canvas { width: 100%; height: auto; max-width: 100%; overflow: visible; }
.anim-base { stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes progressDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes slowPulse { 0%, 100% { transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.04); opacity: 0.4; } }
@keyframes floatSoft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.draw-anim { animation: progressDraw 5s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate; }
.ring-anim { animation: slowPulse 7s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.float-anim { animation: floatSoft 6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }

@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; }
  .draw-anim, .ring-anim, .float-anim { animation: none !important; }
}
