:root {
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --accent: #2563eb;
  --accent-2: #0ea5e9;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --accent-border: rgba(37, 99, 235, 0.28);

  --bg: #f8fafc;
  --bg-tinted: #f1f5f9;
  --surface: #ffffff;
  --surface-elevated: rgba(255, 255, 255, 0.84);
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --radius-card: 18px;
  --radius-btn: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 4px 10px -4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 48px -16px rgba(15, 23, 42, 0.14);

  --header-h: 68px;
  --transition: 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  --bg: #0b1120;
  --bg-tinted: #111827;
  --surface: #151f32;
  --surface-elevated: rgba(15, 23, 42, 0.82);
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border: #233046;
  --border-strong: #334155;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 52px -16px rgba(0, 0, 0, 0.6);
}

html[data-accent="ocean"] {
  --accent: #2563eb;
  --accent-2: #0ea5e9;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --accent-border: rgba(37, 99, 235, 0.3);
}

html[data-accent="emerald"] {
  --accent: #059669;
  --accent-2: #14b8a6;
  --accent-soft: rgba(5, 150, 105, 0.12);
  --accent-border: rgba(5, 150, 105, 0.3);
}

html[data-accent="violet"] {
  --accent: #7c3aed;
  --accent-2: #ec4899;
  --accent-soft: rgba(124, 58, 237, 0.12);
  --accent-border: rgba(124, 58, 237, 0.3);
}

html[data-accent="amber"] {
  --accent: #d97706;
  --accent-2: #f97316;
  --accent-soft: rgba(217, 119, 6, 0.13);
  --accent-border: rgba(217, 119, 6, 0.32);
}

html[data-radius="sharp"] {
  --radius-card: 8px;
  --radius-btn: 6px;
}

html[data-radius="soft"] {
  --radius-card: 18px;
  --radius-btn: 12px;
}

html[data-radius="pill"] {
  --radius-card: 28px;
  --radius-btn: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.15em 0.45em;
  border-radius: 6px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--accent);
  color: #ffffff;
  border-radius: var(--radius-btn);
  font-weight: 600;
  transition: top 150ms ease;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(1140px, 100% - 32px);
  margin-inline: auto;
}

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: var(--surface-elevated);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-text small {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-nav a {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background-color var(--transition);
}

.desktop-nav a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}

.icon-btn:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  transform: translateY(-1px);
}

.theme-toggle .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.menu-toggle {
  display: none;
}

.mobile-nav {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  padding: 10px 0 14px;
  gap: 4px;
}

.mobile-nav-inner a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-weight: 500;
}

.mobile-nav-inner a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* 英雄区 */
.hero {
  position: relative;
  padding: clamp(52px, 7vw, 92px) 0 clamp(56px, 7vw, 88px);
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(72px);
  opacity: 0.36;
}

.glow-1 {
  width: 440px;
  height: 440px;
  top: -140px;
  left: -80px;
  background: var(--accent);
}

.glow-2 {
  width: 380px;
  height: 380px;
  bottom: -120px;
  right: -60px;
  background: var(--accent-2);
}

html[data-theme="dark"] .glow {
  opacity: 0.22;
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 35%, rgba(0, 0, 0, 0.55), transparent 76%);
  -webkit-mask-image: radial-gradient(circle at 50% 35%, rgba(0, 0, 0, 0.55), transparent 76%);
  opacity: 0.55;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 56px);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-border);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--accent-border);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.gradient-text {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin: 0 0 28px;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: var(--text-secondary);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.88rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  box-shadow: 0 10px 24px -8px var(--accent-border);
}

.btn-primary:hover {
  box-shadow: 0 14px 28px -8px var(--accent-border);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.metric-item dt {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.metric-item dd {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
}

/* 右侧展示窗 */
.showcase-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: border-radius var(--transition), box-shadow var(--transition);
}

.window-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  background: var(--bg-tinted);
  border-bottom: 1px solid var(--border);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.window-dots span:nth-child(1) { background: #fb7185; }
.window-dots span:nth-child(2) { background: #fbbf24; }
.window-dots span:nth-child(3) { background: #34d399; }

.window-path {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

.window-body {
  padding: 18px;
}

.preview-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  background: var(--bg-tinted);
  border-radius: 12px;
  margin-bottom: 16px;
}

.tab-btn {
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.tab-btn.is-active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.spec-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.88rem;
}

.spec-label {
  color: var(--text-muted);
  flex-shrink: 0;
}

.spec-value {
  font-weight: 600;
  text-align: right;
}

.notice-strip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.notice-strip svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.file-tree {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.file-tree li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.file-tree strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.file-tree p {
  margin: 2px 0 0;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.file-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  flex-shrink: 0;
  margin-top: 2px;
}

.file-badge.html { background: rgba(234, 88, 12, 0.14); color: #ea580c; }
.file-badge.css { background: rgba(37, 99, 235, 0.14); color: #2563eb; }
.file-badge.js { background: rgba(202, 138, 4, 0.16); color: #b45309; }

html[data-theme="dark"] .file-badge.html { color: #fb923c; }
html[data-theme="dark"] .file-badge.css { color: #60a5fa; }
html[data-theme="dark"] .file-badge.js { color: #facc15; }

.palette-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.palette-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.palette-chip strong {
  display: block;
  font-size: 0.9rem;
}

.palette-chip small {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.swatch {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
}

.swatch-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.swatch-surface { background: var(--surface); border: 2px solid var(--border-strong); }
.swatch-font { background: linear-gradient(135deg, #334155, #64748b); }

/* 通用区块 */
.section {
  padding: clamp(56px, 7vw, 92px) 0;
}

.section-tinted {
  background: var(--bg-tinted);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-head h2,
.about-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-secondary);
}

/* 特性卡片 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), border-radius var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-border);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* 关于区块 */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.about-card,
.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
  transition: border-radius var(--transition);
}

.about-card p {
  color: var(--text-secondary);
  margin: 0 0 14px;
}

.checklist {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  font-weight: 500;
}

.check-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.timeline-card h3 {
  margin: 0 0 20px;
  font-size: 1.18rem;
}

.steps-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.steps-list strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.steps-list p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-tinted);
  border: 1px solid var(--border);
}

.copy-box code {
  background: transparent;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-mini {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: border-color var(--transition), color var(--transition);
}

.btn-mini:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 交互体验面板 */
.playground-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow-md);
  transition: border-radius var(--transition);
}

.controls-column {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.control-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.accent-options,
.radius-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.accent-btn,
.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color var(--transition), background-color var(--transition), color var(--transition), border-radius var(--transition);
}

.accent-btn .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.accent-btn.is-active,
.chip-btn.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-btn);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

.live-card-column {
  display: flex;
}

.live-preview-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: var(--radius-card);
  background: linear-gradient(145deg, var(--accent-soft), transparent 65%), var(--bg);
  border: 1px solid var(--accent-border);
  transition: border-radius var(--transition), border-color var(--transition);
}

.live-badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.live-preview-card h4 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.live-preview-card p {
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: 0.93rem;
}

.live-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.live-status {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* FAQ 手风琴 */
.faq-wrap {
  max-width: 820px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-radius var(--transition);
}

.faq-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
}

.faq-chevron {
  font-size: 1.25rem;
  line-height: 1;
  color: var(--accent);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-trigger[aria-expanded="true"] .faq-chevron {
  transform: rotate(45deg);
}

.faq-content {
  padding: 0 20px 18px;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.faq-content p {
  margin: 0;
}

/* 页脚 */
.site-footer {
  padding: 46px 0 28px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  max-width: 440px;
}

.footer-disclaimer {
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-links h4 {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.back-to-top {
  font-weight: 600;
  color: var(--accent);
}

/* Toast 提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  background: var(--text);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 200;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 滚动显隐动效 */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1), transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 响应式断点 */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero-grid,
  .about-grid,
  .playground-panel {
    grid-template-columns: 1fr;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }
}

@media (max-width: 540px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    gap: 10px;
  }

  .spec-row {
    flex-direction: column;
    gap: 2px;
  }

  .spec-value {
    text-align: left;
  }

  .footer-links {
    gap: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
