/* zvex SSR 2.0 设计系统(2026-10-20 全站重构)
   单一事实源:所有公开页/控制台页引用本文件,禁止页内复制样式。
   Token 变更只改 :root。 */

:root {
  --ink: #11110f;
  --ink-soft: #3d3c37;
  --muted: #6f6d67;
  --line: #deddd7;
  --paper: #f7f7f4;
  --card: #ffffff;
  --accent: #d7ff3f;
  --brand: #3b82f6;
  --ok: #059669;
  --warn: #c2540a;
  --danger: #b91c1c;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── 布局 ── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 28px; }
.section { padding: 64px 0 24px; }
.section-tight { padding: 32px 0 12px; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid rgba(17, 17, 15, .12);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; min-height: 64px;
  padding: 0 28px; display: flex; align-items: center; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -.04em; }
.brand-mark { width: 24px; height: 24px; border-radius: 7px; background: var(--ink); position: relative; }
.brand-mark::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); left: 8px; top: 8px; }
.header-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; color: var(--muted); font-size: 13.5px; }
.header-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* ── 语言切换(服务端 /locale/ 链接) ── */
.locale-links { display: inline-flex; gap: 8px; font-size: 12.5px; color: var(--muted); }
.locale-links a:hover { color: var(--ink); }
.locale-links .on { color: var(--ink); font-weight: 650; }

/* ── 面包屑 ── */
.breadcrumb { color: var(--muted); font-size: 13px; }
.breadcrumb a:hover { color: var(--ink); }

/* ── Hero ── */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 84px 28px 60px; text-align: center; }
.hero .eyebrow { color: var(--muted); font-size: 12.5px; letter-spacing: .14em; font-weight: 600; margin: 0 0 14px; }
.hero h1 { margin: 0 auto; max-width: 760px; font-size: clamp(32px, 4.8vw, 56px); line-height: 1.05; letter-spacing: -.055em; font-weight: 650; }
.hero .hero-sub { max-width: 620px; margin: 20px auto 0; color: var(--muted); font-size: 16.5px; line-height: 1.6; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── 按钮 ── */
.button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}
.button:hover, .btn:hover { transform: translateY(-1px); background: #2a2a26; }
.button-quiet { background: #fff; color: var(--ink); }
.button-quiet:hover { background: var(--paper); }
.btn-brand { background: var(--brand); border-color: var(--brand); }
.btn-brand:hover { background: #2563eb; }

/* ── 区块标题 ── */
.section-heading { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.section-heading h2 { margin: 0; font-size: clamp(24px, 3.4vw, 36px); letter-spacing: -.04em; font-weight: 650; }
.section-heading p { margin: 14px auto 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
h2.block-title { font-size: 17px; margin: 34px 0 14px; letter-spacing: -.02em; }

/* ── 卡片与网格 ── */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px; transition: border-color .15s ease; }
.card:hover { border-color: var(--ink); }
.card h3 { margin: 0 0 8px; font-size: 15.5px; font-weight: 650; }
.card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.step-number { color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .08em; }

/* ── pill/badge ── */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--muted); background: #fff; }
.pill.heat { background: #fff7ed; color: var(--warn); border-color: #fed7aa; font-weight: 600; }

/* ── 代码块 ── */
.codecard { background: #1f1f1c; border: 1px solid #3a3a35; border-radius: 14px; color: #e8e8e2; padding: 20px 22px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.codecard .c { color: #8a897f; }
.codecard .k { color: var(--accent); }

/* ── 表单 ── */
.input, select.input, textarea.input {
  width: 100%; min-height: 42px; padding: 10px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink); font: inherit; font-size: 14px;
}
.input:focus { outline: 2px solid rgba(59, 130, 246, .35); border-color: var(--brand); }
label { font-size: 13px; color: var(--muted); }

/* ── 表格 ── */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 9px 12px; border-bottom: 1px solid var(--line); }

/* ── callout / 提示 ── */
.callout { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); padding: 18px 28px; }
.callout-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
.notice-ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.7; }
.notice-err { background: #fef2f2; border: 1px solid #fecaca; color: var(--danger); border-radius: 10px; padding: 10px 12px; font-size: 13px; }

/* ── closing CTA ── */
.closing { background: var(--ink); color: #fff; text-align: center; padding: 76px 28px; margin-top: 56px; }
.closing h2 { margin: 0; font-size: clamp(28px, 4vw, 48px); line-height: 1.05; letter-spacing: -.06em; }
.closing .button { margin-top: 26px; background: var(--accent); color: var(--ink); border-color: var(--accent); }
.closing p { color: #b6b6ae; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; text-align: center; padding: 24px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.footer-dark { border-top: 1px solid #2d2d28; background: var(--ink); color: #999990; }
.footer-dark a { color: #b8b8ae; }

/* ── 工具类 ── */
.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; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }

@media (max-width: 820px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .header-nav { display: none; }
  .hero { padding: 60px 20px 44px; }
  .wrap, .wrap-narrow { padding: 0 18px; }
}
