:root {
  --color-primary: #7c3aed;
  --color-secondary: #db2777;
  --color-accent: #f59e0b;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-glass-bg: rgba(255, 255, 255, 0.65);
  --color-glass-border: rgba(255, 255, 255, 0.45);
  --color-border: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-card: 0 4px 24px rgba(124, 58, 237, 0.08);
  --shadow-hover: 0 8px 32px rgba(124, 58, 237, 0.14);
  --font-main: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --space-section: clamp(3.5rem, 6vw, 6rem);
  --container-max: 1180px;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; color: var(--color-text); text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-base); }
a:hover { color: var(--color-secondary); }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; border-radius: 4px; }

/* Layout */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2rem); }
.section { padding: var(--space-section) 0; position: relative; }
.grid-2 { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.mt-2 { margin-top: 2rem; }

/* Header & Nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-glass-bg); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-glass-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.1rem; color: var(--color-text); }
.brand img { height: 32px; width: auto; display: block; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { padding: 6px 12px; border-radius: var(--radius-sm); font-weight: 500; color: var(--color-text-muted); transition: all var(--transition-base); }
.nav-links a:hover, .nav-links [aria-current="page"] { color: var(--color-primary); background: rgba(124, 58, 237, 0.06); }
@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* Footer */
.site-footer {
  background: var(--color-text); color: #cbd5e1; padding: 3rem 0 1.5rem; margin-top: 2rem;
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 2rem; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.6rem; }
.footer-grid a { color: #94a3b8; }
.footer-bottom { border-top: 1px solid #334155; padding-top: 1.5rem; text-align: center; font-size: 0.9rem; color: #64748b; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.85rem 1.6rem; border-radius: var(--radius-md); font-weight: 600; font-size: 1rem;
  cursor: pointer; border: none; transition: all var(--transition-base); text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff; box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45); }
.btn-outline {
  background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary);
}
.btn-outline:hover { background: rgba(124, 58, 237, 0.08); }

/* Cards & Glass */
.card {
  background: var(--color-glass-bg); border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-icon { width: 48px; height: 48px; margin-bottom: 1rem; color: var(--color-primary); }

/* Table */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5rem 0; border-radius: var(--radius-md); border: 1px solid var(--color-border); }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: rgba(124, 58, 237, 0.05); font-weight: 600; color: var(--color-text); }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) { background: rgba(248, 250, 252, 0.6); }

/* FAQ */
.faq-list details {
  margin-bottom: 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-surface); transition: box-shadow var(--transition-base);
}
.faq-list details[open] { box-shadow: var(--shadow-card); }
.faq-list summary {
  padding: 1.1rem 1.4rem; font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 3rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 10px; height: 10px; border-right: 2px solid var(--color-primary); border-bottom: 2px solid var(--color-primary);
  transition: transform 0.3s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(-135deg); }
.faq-list p { padding: 0 1.4rem 1.2rem; color: var(--color-text-muted); }

/* Lists */
ol, ul { margin-bottom: 1.2rem; padding-left: 1.5rem; }
li { margin-bottom: 0.6rem; }
.step-list { counter-reset: step; list-style: none; padding: 0; }
.step-list li { counter-increment: step; position: relative; padding-left: 2.5rem; margin-bottom: 1.2rem; }
.step-list li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 0.9rem;
}

/* SVG Animations */
.draw-path { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: drawStroke 2.5s ease forwards; }
.svg-animated { animation: svgBreathe 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes drawStroke { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes svgBreathe { 0%, 100% { transform: scale(1); opacity: 0.92; } 50% { transform: scale(1.02); opacity: 1; } }

@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-path { stroke-dashoffset: 0; animation: none; }
  .svg-animated { animation: none; transform: none; }
}

/* Utilities */
.text-center { text-align: center; }
.gradient-text { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 70% 30%, rgba(124, 58, 237, 0.12), transparent 60%), radial-gradient(circle at 20% 80%, rgba(219, 39, 119, 0.1), transparent 50%); pointer-events: none; }
