/* ============================================================
   SineAPI · 组件与构成层
   ============================================================ */

/* ---------- 氛围层 ---------- */
.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.atmosphere::before {
  /* 渐变网格：酸橙主光 + 冷青补光 */
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(48rem 32rem at 82% -8%, rgba(212, 255, 63, 0.12), transparent 62%),
    radial-gradient(40rem 30rem at 8% 12%, rgba(88, 144, 255, 0.07), transparent 60%),
    radial-gradient(38rem 28rem at 50% 110%, rgba(212, 255, 63, 0.06), transparent 65%);
}
.atmosphere::after {
  /* CRT 噪点 */
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.grid-horizon {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -10%;
  height: 62vh;
  background-image:
    linear-gradient(rgba(212, 255, 63, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 255, 63, 0.13) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(520px) rotateX(64deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 78%);
  animation: grid-drift 14s linear infinite;
}
@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 64px, 0 0; }
}
.scanlines {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.5) 4px
  );
}

.site {
  position: relative;
  z-index: 1;
}

/* ---------- 容器 ---------- */
.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- 导航 ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid var(--c-line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--t-lg);
  letter-spacing: -0.04em;
}
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--c-accent);
  color: var(--c-accent);
  font-size: var(--t-sm);
  box-shadow: inset 0 0 12px var(--c-accent-soft);
}
.brand-slash {
  color: var(--c-accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-dim);
}
.nav-links a {
  transition: color var(--d-fast) var(--e-out);
}
.nav-links a:hover {
  color: var(--c-accent);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform var(--d-fast) var(--e-out), background var(--d-fast) var(--e-out),
    border-color var(--d-fast) var(--e-out), color var(--d-fast) var(--e-out), box-shadow var(--d-fast) var(--e-out);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  background: var(--c-accent);
  color: var(--c-bg-deep);
  box-shadow: 0 0 0 rgba(212, 255, 63, 0);
}
.btn-primary:hover {
  box-shadow: var(--sh-glow);
}
.btn-ghost {
  border-color: var(--c-line-strong);
  color: var(--c-text);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}
.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: var(--t-xs);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* ---------- 状态徽标 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  border: 1px solid var(--c-line-accent);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  background: var(--c-accent-soft);
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 10px var(--c-accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 110px;
  min-height: 640px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  margin-bottom: 26px;
}
.hero-title {
  font-size: clamp(3.2rem, 7vw, var(--t-6xl));
  line-height: 0.92;
}
.hero-title .line {
  display: block;
}
.hero-title .hl {
  color: var(--c-accent);
  text-shadow: 0 0 32px var(--c-accent-glow);
}
.hero-sub {
  margin-top: 28px;
  max-width: 34ch;
  color: var(--c-text-dim);
  font-size: var(--t-lg);
  line-height: 1.65;
}
.hero-sub code {
  font-family: var(--f-mono);
  color: var(--c-text);
  font-size: 0.9em;
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 44px;
  display: flex;
  gap: 32px;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--c-muted);
}
.hero-meta b {
  display: block;
  color: var(--c-text);
  font-size: var(--t-lg);
  font-weight: 700;
}

/* ---------- 终端窗口（记忆点） ---------- */
.terminal {
  position: relative;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-md);
  background: var(--c-bg-deep);
  box-shadow: var(--sh-3), 0 0 0 1px rgba(212, 255, 63, 0.06);
  overflow: hidden;
  transform: rotate(-1.2deg);
}
.terminal::after {
  /* 局部扫描光带 */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, var(--c-accent-soft) 50%, transparent 100%);
  height: 40%;
  animation: scan-sweep 7s linear infinite;
  opacity: 0.5;
}
@keyframes scan-sweep {
  from { transform: translateY(-120%); }
  to { transform: translateY(320%); }
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-surface);
}
.tdot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-surface-3);
}
.tdot:nth-child(1) { background: var(--c-danger); }
.tdot:nth-child(2) { background: var(--c-warn); }
.tdot:nth-child(3) { background: var(--c-success); }
.terminal-title {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--c-muted);
  letter-spacing: 0.08em;
}
.terminal-body {
  padding: 22px 20px 26px;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  line-height: 1.9;
  min-height: 300px;
}
.t-line { display: block; white-space: pre-wrap; word-break: break-all; }
.t-prompt { color: var(--c-accent); }
.t-dim { color: var(--c-muted); }
.t-key { color: var(--c-text); }
.t-comment { color: var(--c-muted); }
.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--c-accent);
  vertical-align: -2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ---------- 跑马灯 ---------- */
.marquee {
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 26s linear infinite;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.marquee-track span::before {
  content: '◆';
  color: var(--c-accent);
  margin-right: 14px;
  font-size: 9px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- 区块通用 ---------- */
.section {
  padding: var(--s-9) 0;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}
.section-kicker {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 18px;
  display: block;
}
.section-title {
  font-size: clamp(2.2rem, 5vw, var(--t-4xl));
}
.section-desc {
  max-width: 40ch;
  color: var(--c-text-dim);
}

/* ---------- 特性列表（非对称编号） ---------- */
.feature-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--c-line);
}
.feature-row {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 32px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--c-line);
  transition: background var(--d-base) var(--e-out), padding var(--d-base) var(--e-out);
}
.feature-row:hover {
  background: linear-gradient(90deg, var(--c-accent-soft), transparent 70%);
  padding-left: 16px;
}
.feature-num {
  font-family: var(--f-display);
  font-size: var(--t-xl);
  color: var(--c-accent);
  font-weight: 700;
}
.feature-name {
  font-family: var(--f-display);
  font-size: var(--t-xl);
  letter-spacing: -0.03em;
}
.feature-text {
  color: var(--c-text-dim);
  font-size: var(--t-sm);
  line-height: 1.75;
}

/* ---------- 代码块 ---------- */
.code-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-bg-deep);
}
.code-side {
  padding: 48px 40px;
  border-right: 1px solid var(--c-line);
}
.code-side h3 {
  font-size: var(--t-2xl);
  margin-bottom: 20px;
}
.code-side p {
  color: var(--c-text-dim);
  font-size: var(--t-sm);
  margin-bottom: 28px;
}
.code-block {
  padding: 32px;
  overflow-x: auto;
}
.code-block pre {
  margin: 0;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  line-height: 1.9;
  color: var(--c-text-dim);
}
.code-block .k { color: var(--c-accent); }
.code-block .s { color: #9fd3ff; }
.code-block .c { color: var(--c-muted); }

/* ---------- 模型条 ---------- */
.model-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.model-chip {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  padding: 10px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  color: var(--c-text-dim);
  transition: all var(--d-fast) var(--e-out);
}
.model-chip:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: var(--c-accent-soft);
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  border: 1px solid var(--c-line-accent);
  border-radius: var(--r-lg);
  padding: 72px 56px;
  background:
    radial-gradient(30rem 20rem at 90% 10%, var(--c-accent-soft), transparent 60%),
    var(--c-surface);
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 44px; height: 44px;
  border-top: 2px solid var(--c-accent);
  border-left: 2px solid var(--c-accent);
}
.cta h2 {
  font-size: clamp(2rem, 5vw, var(--t-3xl));
  max-width: 20ch;
}
.cta p {
  color: var(--c-text-dim);
  margin: 20px 0 32px;
  max-width: 46ch;
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--c-line);
  padding: 36px 0 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--c-muted);
}

/* ============================================================
   登录视图
   ============================================================ */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}
.auth-card {
  width: min(440px, 100%);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-md);
  background: var(--c-surface);
  box-shadow: var(--sh-3);
  overflow: hidden;
}
.auth-head {
  padding: 30px 32px;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg-deep);
}
.auth-head .brand { margin-bottom: 22px; }
.auth-head h1 {
  font-size: var(--t-2xl);
}
.auth-head p {
  color: var(--c-muted);
  font-size: var(--t-sm);
  margin-top: 8px;
  font-family: var(--f-mono);
}
.auth-body {
  padding: 34px 32px 38px;
}
.field {
  margin-bottom: 22px;
}
.field label {
  display: block;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  margin-bottom: 10px;
}
.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  background: var(--c-bg-deep);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-sm);
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  color: var(--c-text);
  transition: border-color var(--d-fast) var(--e-out), box-shadow var(--d-fast) var(--e-out);
}
.field input:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-soft);
}
.field input::placeholder { color: var(--c-muted); }
.auth-body .btn { width: 100%; margin-top: 8px; }
.auth-error {
  display: none;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--c-danger);
  border-radius: var(--r-sm);
  color: var(--c-danger);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  background: rgba(255, 107, 107, 0.07);
}
.auth-error.show { display: block; }
.auth-foot {
  margin-top: 26px;
  text-align: center;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--c-muted);
}
.auth-foot a { color: var(--c-accent); }

/* ============================================================
   管理后台
   ============================================================ */
.dash {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px 1fr;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--c-line);
  background: var(--c-bg-deep);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
}
.sidebar .brand { padding: 0 8px 26px; border-bottom: 1px solid var(--c-line); }
.side-nav {
  margin-top: 28px;
  display: grid;
  gap: 6px;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
  color: var(--c-text-dim);
  transition: all var(--d-fast) var(--e-out);
}
.side-nav a:hover {
  background: var(--c-surface);
  color: var(--c-text);
}
.side-nav a.active {
  background: var(--c-accent-soft);
  color: var(--c-accent);
  border-left: 2px solid var(--c-accent);
}
.side-foot {
  margin-top: auto;
  border-top: 1px solid var(--c-line);
  padding-top: 20px;
}
.side-foot button {
  width: 100%;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--c-muted);
  background: none;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  padding: 10px;
}
.side-foot button:hover { color: var(--c-danger); border-color: var(--c-danger); }

.dash-main {
  padding: 40px 48px 80px;
  max-width: 1200px;
}
.dash-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 40px;
}
.dash-top h2 {
  font-size: var(--t-2xl);
}
.dash-top .user-tag {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--c-muted);
}
.dash-top .user-tag b { color: var(--c-accent); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 44px;
}
.stat-card {
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
  padding: 22px 24px;
}
.stat-label {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-muted);
}
.stat-value {
  font-family: var(--f-display);
  font-size: var(--t-3xl);
  font-weight: 700;
  color: var(--c-text);
  margin-top: 12px;
}
.stat-value.accent { color: var(--c-accent); }

.panel {
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
  margin-bottom: 32px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--c-line);
}
.panel-head h3 {
  font-size: var(--t-lg);
}
.panel-head .hint {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--c-muted);
}

/* Key 表格 */
.key-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
}
.key-table th {
  text-align: left;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  font-weight: 400;
  padding: 14px 26px;
  border-bottom: 1px solid var(--c-line);
}
.key-table td {
  padding: 18px 26px;
  border-bottom: 1px solid var(--c-line);
  vertical-align: middle;
}
.key-table tr:last-child td { border-bottom: none; }
.key-table tr:hover td { background: rgba(255, 255, 255, 0.015); }
.key-name {
  font-family: var(--f-body);
  font-weight: 600;
}
.key-value {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--c-accent);
  background: var(--c-accent-soft);
  padding: 5px 9px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--d-fast) var(--e-out);
}
.key-value:hover { background: var(--c-accent); color: var(--c-bg-deep); }
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
}
.status.on { color: var(--c-success); }
.status.off { color: var(--c-muted); }
.status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.icon-btn {
  background: none;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  color: var(--c-text-dim);
  padding: 7px 10px;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  transition: all var(--d-fast) var(--e-out);
}
.icon-btn:hover { border-color: var(--c-accent); color: var(--c-accent); }
.icon-btn.danger:hover { border-color: var(--c-danger); color: var(--c-danger); }
.row-actions { display: flex; gap: 8px; }

.empty {
  padding: 64px 26px;
  text-align: center;
  color: var(--c-muted);
  font-family: var(--f-mono);
  font-size: var(--t-sm);
}
.empty .empty-icon {
  font-size: 2rem;
  color: var(--c-accent);
  display: block;
  margin-bottom: 14px;
}

/* 文档区 */
.doc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.doc-item {
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 24px;
  background: var(--c-bg-deep);
}
.doc-item h4 {
  font-size: var(--t-base);
  margin-bottom: 12px;
  color: var(--c-accent);
}
.doc-item code {
  display: block;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--c-text-dim);
  line-height: 1.8;
  word-break: break-all;
}

/* 弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 9, 0.82);
  backdrop-filter: blur(6px);
  display: none;
  place-items: center;
  z-index: 50;
  padding: 20px;
}
.modal-overlay.show { display: grid; }
.modal {
  width: min(520px, 100%);
  border: 1px solid var(--c-line-accent);
  border-radius: var(--r-md);
  background: var(--c-surface);
  box-shadow: var(--sh-3), var(--sh-glow);
  padding: 36px;
}
.modal h3 {
  font-size: var(--t-xl);
  margin-bottom: 8px;
}
.modal p {
  color: var(--c-muted);
  font-size: var(--t-sm);
  margin-bottom: 26px;
}
.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.modal-actions .btn { flex: 1; }

/* 生成的 Key 展示 */
.created-key {
  margin-top: 22px;
  padding: 18px;
  border: 1px dashed var(--c-line-accent);
  border-radius: var(--r-sm);
  background: var(--c-bg-deep);
}
.created-key .label {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.created-key .value {
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  color: var(--c-accent);
  word-break: break-all;
  user-select: all;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99;
  padding: 14px 20px;
  border: 1px solid var(--c-accent);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  color: var(--c-accent);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  box-shadow: var(--sh-2);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--d-base) var(--e-out);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* 加载态 */
.spin {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid var(--c-line-strong);
  border-top-color: var(--c-accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 64px 0 80px; min-height: auto; }
  .terminal { transform: none; }
  .code-panel { grid-template-columns: 1fr; }
  .code-side { border-right: none; border-bottom: 1px solid var(--c-line); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 60px 1fr; }
  .feature-text { grid-column: 2; }
  .dash { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; justify-content: space-between; padding: 16px 24px; }
  .sidebar .brand { border: none; padding: 0; }
  .side-nav { margin: 0; display: flex; }
  .side-foot { margin: 0; padding: 0; border: none; }
  .side-foot button { width: auto; }
  .dash-main { padding: 28px 24px 60px; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .nav-links { display: none; }
  .hero-title { font-size: clamp(2.6rem, 12vw, 4rem); }
  .hero-meta { flex-wrap: wrap; gap: 20px; }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .cta { padding: 48px 26px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 16px; }
  .stat-value { font-size: var(--t-2xl); }
  .doc-grid { grid-template-columns: 1fr; }
  .key-table { font-size: var(--t-xs); }
  .key-table th, .key-table td { padding: 12px 14px; }
  .dash-main { padding: 22px 16px 50px; }
  .side-nav a span { display: none; }
  .toast { left: 16px; right: 16px; bottom: 16px; }
}
