/* ==========================================================================
   cspub 官网样式
   视觉基调：深墨底 + 琥珀强调（"油墨与分发"），技术文档式的页边编号。
   纯手写、无框架、无外链字体——站点自己也不带第三方依赖，与项目气质一致。
   ========================================================================== */

/* --- 1. 变量与基础 ------------------------------------------------------- */

:root {
  --bg: #0a0b0f;
  --bg-2: #0c0e13;
  --panel: #12151c;
  --panel-2: #171b24;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e9ecf3;
  --text-2: #b8c1d1;
  --muted: #8994a8;

  --amber: #ffb224;
  --amber-dim: rgba(255, 178, 36, 0.14);
  --amber-line: rgba(255, 178, 36, 0.34);
  --mint: #3fd8a4;
  --mint-dim: rgba(63, 216, 164, 0.13);
  --violet: #9b8cff;
  --red: #ff6b6b;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", "Noto Sans SC",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo,
    Consolas, "Liberation Mono", monospace;

  --maxw: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 62px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 背景：顶部琥珀微光 + 极细网格，克制到几乎看不出 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(880px 420px at 78% -8%, rgba(255, 178, 36, 0.09), transparent 62%),
    radial-gradient(760px 380px at 8% 4%, rgba(63, 216, 164, 0.055), transparent 60%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    linear-gradient(to right, #fff 1px, transparent 1px),
    linear-gradient(to bottom, #fff 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
}

a {
  color: var(--amber);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: #ffc85c;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: rgba(255, 178, 36, 0.28);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
::-webkit-scrollbar-track {
  background: #0a0b0f;
}
::-webkit-scrollbar-thumb {
  background: #262b36;
  border-radius: 8px;
  border: 3px solid #0a0b0f;
}
::-webkit-scrollbar-thumb:hover {
  background: #38404f;
}

/* --- 2. 布局与排版原子 --------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

section {
  position: relative;
  padding: 92px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--amber-line);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 660;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

h2.section-title {
  font-size: clamp(26px, 3.3vw, 38px);
  margin-bottom: 16px;
}

.lead {
  margin: 0;
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.78;
}

.lead strong,
p strong {
  color: var(--text);
  font-weight: 600;
}

.mono {
  font-family: var(--mono);
}

.dim {
  color: var(--muted);
}

.amber {
  color: var(--amber);
}

.mint {
  color: var(--mint);
}

/* 页边编号：本节标题左侧的 01 / 02 ... 像技术文档的页边注 */
.sec-no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: var(--sans);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(180deg, #ffc14d, var(--amber));
  color: #17130a;
  box-shadow: 0 8px 24px -10px rgba(255, 178, 36, 0.7);
}

.btn--primary:hover {
  color: #17130a;
  box-shadow: 0 12px 30px -10px rgba(255, 178, 36, 0.85);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.26);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* 卡片通用 */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.008));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

/* --- 3. 导航 ------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.nav.is-stuck {
  background: rgba(10, 11, 15, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 680;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand__mark {
  width: 27px;
  height: 27px;
  flex: none;
  display: block;
}

.brand__ver {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav__links a {
  color: var(--text-2);
  font-size: 14px;
  padding: 7px 12px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

.nav__cta .btn {
  padding: 9px 15px;
  font-size: 13.5px;
}

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav__toggle svg {
  width: 19px;
  height: 19px;
}

/* --- 4. 首屏 ------------------------------------------------------------- */

.hero {
  padding: 78px 0 74px;
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 56px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 13px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.028);
  font-size: 12.5px;
  color: var(--text-2);
  margin-bottom: 24px;
}

.hero__badge b {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #1a1408;
  background: var(--amber);
  border-radius: 999px;
  padding: 2px 9px;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.14;
  letter-spacing: -0.032em;
  margin-bottom: 22px;
}

.hero h1 .hl {
  position: relative;
  white-space: nowrap;
  background: linear-gradient(180deg, #ffd071, var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.3em;
  background: var(--amber-dim);
  z-index: -1;
  border-radius: 3px;
}

.hero__sub {
  font-size: 17px;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 0 30px;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(63, 216, 164, 0.12);
}

/* --- 5. 终端演示卡 ------------------------------------------------------- */

.term {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, #101319, #0b0d12);
  box-shadow:
    0 40px 80px -40px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 178, 36, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.term__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
}

.term__dots {
  display: flex;
  gap: 6px;
}

.term__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.term__dots i:nth-child(1) {
  background: #ff5f57;
}
.term__dots i:nth-child(2) {
  background: #febc2e;
}
.term__dots i:nth-child(3) {
  background: #28c840;
}

.term__title {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-left: 4px;
}

.term__body {
  padding: 18px 18px 20px;
  font-family: var(--mono);
  font-size: 12.6px;
  line-height: 1.95;
  overflow-x: auto;
  white-space: pre;
  color: var(--text-2);
}

.term__body .p {
  color: var(--mint);
  user-select: none;
}

.term__body .cmd {
  color: var(--text);
}

.term__body .flag {
  color: var(--amber);
}

.term__body .arg {
  color: var(--violet);
}

.term__body .ok {
  color: var(--mint);
}

.term__body .cm {
  color: #5d6678;
}

.term__body .id {
  color: var(--amber);
  font-weight: 600;
}

.term__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.term__foot .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mint);
}

.term__foot .live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(63, 216, 164, 0.4);
  }
  50% {
    opacity: 0.65;
    box-shadow: 0 0 0 5px rgba(63, 216, 164, 0);
  }
}

/* --- 6. 六平台矩阵 ------------------------------------------------------- */

.platforms {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.014), transparent);
}

.platforms__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  divide-x: 1px solid var(--line);
}

.pf {
  padding: 26px 20px 28px;
  border-left: 1px solid var(--line);
  position: relative;
  transition: background 0.2s ease;
}

.pf:first-child {
  border-left: 0;
}

.pf:hover {
  background: rgba(255, 255, 255, 0.028);
}

.pf__top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.pf__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.pf__name {
  font-size: 15px;
  font-weight: 620;
  letter-spacing: -0.01em;
}

.pf__how {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.03em;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin-left: auto;
  white-space: nowrap;
}

.pf__desc {
  margin: 0;
  font-size: 12.8px;
  line-height: 1.62;
  color: var(--muted);
}

.pf__desc code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 5px;
  border-radius: 4px;
}

/* --- 7. 卖点三卡 --------------------------------------------------------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.why {
  position: relative;
  overflow: hidden;
}

.why::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, var(--amber-line), transparent 62%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.why:hover::after {
  opacity: 1;
}

.why__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--amber-dim);
  border: 1px solid var(--amber-line);
  margin-bottom: 16px;
}

.why__icon svg {
  width: 19px;
  height: 19px;
  stroke: var(--amber);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why h3 {
  font-size: 17px;
  margin-bottom: 9px;
}

.why p {
  margin: 0;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.72;
}

/* --- 8. 流水线 ----------------------------------------------------------- */

.flow__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: start;
}

.flow__figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0f1218, #0b0d12);
  padding: 22px;
  position: relative;
}

.flow__figure img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  /* 图是浅底技术图，压在深墨面上时略降亮度，免得抢走正文注意力 */
  filter: brightness(0.95) saturate(0.96);
}

.flow__caption {
  margin: 14px 4px 0;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px dashed var(--line);
}

.steps li:last-child {
  border-bottom: 0;
}

.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  padding-top: 2px;
}

.steps h4 {
  font-size: 14.5px;
  margin-bottom: 4px;
}

.steps p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.66;
}

/* --- 9. 图片转存 --------------------------------------------------------- */

.rehost__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.warn-box {
  border: 1px solid rgba(255, 107, 107, 0.3);
  background: linear-gradient(180deg, rgba(255, 107, 107, 0.075), rgba(255, 107, 107, 0.02));
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 26px;
}

.warn-box__t {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 620;
  color: #ff9a9a;
  margin-bottom: 8px;
}

.warn-box__t svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.warn-box p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.75;
}

.warn-box code {
  font-family: var(--mono);
  font-size: 12px;
  color: #ffb3b3;
  background: rgba(0, 0, 0, 0.28);
  padding: 1px 6px;
  border-radius: 4px;
}

.strategy {
  display: grid;
  gap: 12px;
}

.strategy__item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}

.strategy__item svg {
  width: 17px;
  height: 17px;
  stroke: var(--mint);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 3px;
}

.strategy__item h4 {
  font-size: 14px;
  margin-bottom: 4px;
}

.strategy__item p {
  margin: 0;
  font-size: 12.8px;
  color: var(--muted);
  line-height: 1.66;
}

.strategy__item code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-2);
}

/* --- 10. 代码块 ---------------------------------------------------------- */

.code {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #0b0d12;
  overflow: hidden;
}

.code__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px 9px 15px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
}

.code__label {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.code__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 9px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.code__copy:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.code__copy.is-done {
  color: var(--mint);
  border-color: rgba(63, 216, 164, 0.4);
}

.code__copy svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.code pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.8px;
  line-height: 1.85;
  color: var(--text-2);
}

.code pre .c {
  color: #5d6678;
}
.code pre .k {
  color: var(--amber);
}
.code pre .s {
  color: var(--mint);
}
.code pre .a {
  color: var(--violet);
}

/* --- 11. 快速开始（tabs） ----------------------------------------------- */

.quick__grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: calc(var(--nav-h) + 22px);
}

.tab {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  text-align: left;
  padding: 13px 15px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 560;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.tab svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 3px;
  opacity: 0.8;
}

.tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.tab[aria-selected="true"] {
  color: var(--text);
  background: rgba(255, 178, 36, 0.075);
  border-color: var(--amber-line);
}

.tab[aria-selected="true"] svg {
  stroke: var(--amber);
  opacity: 1;
}

.tab small {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

.panels > .panel {
  display: none;
}

.panels > .panel.is-on {
  display: block;
  animation: fade 0.28s ease;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.panel h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.panel > p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-2);
}

.panel .code + .code {
  margin-top: 12px;
}

.panel-note {
  margin-top: 14px;
  font-size: 12.8px;
  color: var(--muted);
  line-height: 1.7;
}

.panel-note code {
  font-family: var(--mono);
  font-size: 11.8px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 5px;
  border-radius: 4px;
}

/* --- 12. 凭证工具 -------------------------------------------------------- */

.cred__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 44px;
  align-items: center;
}

.shot {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  background: #0b0d12;
  box-shadow: 0 34px 70px -38px rgba(0, 0, 0, 0.9);
}

.shot img {
  width: 100%;
  height: auto;
}

.shot__cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.shot__cap a {
  font-family: var(--sans);
  font-size: 12px;
}

.cred-steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.cred-steps li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 13px;
}

.cred-steps .n {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid var(--amber-line);
}

.cred-steps h4 {
  font-size: 14.5px;
  margin-bottom: 3px;
}

.cred-steps p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.68;
}

.cred-steps code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
}

/* --- 13. front-matter ---------------------------------------------------- */

.fm__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: start;
}

.fm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.2px;
}

.fm-table th,
.fm-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.fm-table th {
  font-size: 11.5px;
  font-family: var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.fm-table td:first-child {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--amber);
  white-space: nowrap;
}

.fm-table td:last-child {
  color: var(--text-2);
}

.fm-table tr:last-child td {
  border-bottom: 0;
}

/* --- 14. 实测证据 -------------------------------------------------------- */

.proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}

.proof__item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.026), transparent);
}

.proof__num {
  font-family: var(--mono);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 640;
  letter-spacing: -0.02em;
  color: var(--amber);
  line-height: 1.2;
  display: block;
  margin-bottom: 7px;
}

.proof__label {
  font-size: 12.8px;
  color: var(--text-2);
  line-height: 1.55;
}

.proof__meta {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 7px;
}

.limits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.limits__item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 11px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.014);
}

.limits__item span.mk {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--red);
  opacity: 0.85;
}

.limits__item p {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.68;
}

.limits__item b {
  color: var(--text);
  font-weight: 600;
}

/* --- 15. FAQ ------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.016);
  overflow: hidden;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.faq details[open] {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 44px 16px 18px;
  font-size: 14.5px;
  font-weight: 560;
  position: relative;
  color: var(--text);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  border-color: var(--amber);
}

.faq .a {
  padding: 0 18px 17px;
  font-size: 13.4px;
  color: var(--text-2);
  line-height: 1.76;
}

.faq .a p {
  margin: 0 0 9px;
}

.faq .a p:last-child {
  margin-bottom: 0;
}

.faq .a code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  background: rgba(255, 178, 36, 0.09);
  padding: 1px 5px;
  border-radius: 4px;
}

/* --- 16. 页脚 ------------------------------------------------------------ */

.footer {
  border-top: 1px solid var(--line);
  padding: 52px 0 40px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.016));
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.9fr));
  gap: 34px;
  margin-bottom: 38px;
}

.footer__brand p {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 300px;
}

.footer h5 {
  margin: 0 0 13px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer ul a {
  font-size: 13.2px;
  color: var(--text-2);
}

.footer ul a:hover {
  color: var(--amber);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}

.footer__bottom a {
  color: var(--text-2);
}

/* --- 17. 入场动画与回到顶部 --------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.68, 0, 1),
    transform 0.6s cubic-bezier(0.22, 0.68, 0, 1);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .term__foot .live::before {
    animation: none;
  }
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(23, 27, 36, 0.9);
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, color 0.16s ease;
  backdrop-filter: blur(8px);
  z-index: 55;
}

.to-top.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.to-top:hover {
  color: var(--amber);
}

.to-top svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- 18. 响应式 ---------------------------------------------------------- */

@media (max-width: 1080px) {
  .platforms__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pf:nth-child(4) {
    border-left: 0;
  }
  .pf:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }
  .proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .flow__grid,
  .cred__grid,
  .rehost__grid,
  .fm__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .quick__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .tabs {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .tab {
    grid-template-columns: 20px 1fr;
    padding: 10px 13px;
  }
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }
  .why-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 18px 16px;
    background: rgba(10, 11, 15, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .nav__links.is-open {
    display: flex;
  }
  .nav__links a {
    padding: 11px 12px;
    font-size: 15px;
  }
  .nav__toggle {
    display: inline-flex;
  }
  .nav__cta {
    margin-left: 0;
  }
  .nav__cta .btn--ghost {
    display: none;
  }
}

@media (max-width: 640px) {
  .wrap,
  .nav__inner {
    padding: 0 18px;
  }
  section {
    padding: 64px 0;
  }
  .hero {
    padding: 46px 0 52px;
  }
  .platforms__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pf:nth-child(odd) {
    border-left: 0;
  }
  .pf:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .limits {
    grid-template-columns: minmax(0, 1fr);
  }
  .proof {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .term__body {
    font-size: 11.4px;
  }
  .hero h1 .hl {
    white-space: normal;
  }
}

