/* ============================================================
   魔法咪 · KittyWizards 首页样式 v2「午夜魔典 Midnight Grimoire」
   暖羊皮纸 × 午夜靛紫 × 紫罗兰交互 × 星光金点睛
   ============================================================ */

@property --ast-fade-start {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --ast-fade-end {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

:root {
  /* 材质 */
  --bg: #f4efe4;        /* 羊皮纸 */
  --bg-2: #ebe4d4;      /* 深一档纸 */
  --paper: #fbf8f1;     /* 卡片纸 */
  --night: #15123a;     /* 午夜 */
  --night-2: #211d56;   /* 午夜高光 */
  --night-3: #0e0c29;   /* 午夜最深（代码块） */
  /* 墨色 */
  --ink: #16132f;
  --ink-2: #4a4766;
  --ink-3: #8a8799;
  --line: rgba(22, 19, 47, .10);
  --line-strong: rgba(22, 19, 47, .18);
  --line-night: rgba(183, 166, 255, .16);
  /* 魔法色 */
  --violet: #7c5cff;
  --violet-2: #b7a6ff;
  --violet-soft: rgba(124, 92, 255, .10);
  --gold: #ffc94a;
  --gold-deep: #e0a526;
  --gold-foil: linear-gradient(135deg, #ffe3a1, #ffc94a 45%, #e0a526);
  --orange: #f08a3c;
  --mint: #5fd8c0;
  /* 形状 */
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --r-pill: 999px;
  /* 阴影：暖棕+紫，不用纯黑 */
  --sh-1: 0 1px 2px rgba(40, 28, 60, .06), 0 2px 8px rgba(40, 28, 60, .05);
  --sh-2: 0 8px 24px -8px rgba(40, 28, 60, .18), 0 2px 6px rgba(40, 28, 60, .06);
  --sh-glow: 0 0 0 1px rgba(124, 92, 255, .25), 0 12px 40px -12px rgba(124, 92, 255, .45);
  /* 节奏 */
  --pad: clamp(18px, 4vw, 56px);
  --maxw: 1240px;
  --sec-y: clamp(88px, 11vw, 152px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  /* 字体：全部本地栈 */
  --display: "Arial Black", "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", sans-serif;
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 极淡星点图案（纯 CSS，不用外链图片） */
  --stars:
    radial-gradient(1.5px 1.5px at 26px 34px, rgba(255, 255, 255, .28), transparent 100%),
    radial-gradient(1px 1px at 94px 78px, rgba(255, 201, 74, .34), transparent 100%),
    radial-gradient(1.4px 1.4px at 148px 26px, rgba(183, 166, 255, .32), transparent 100%),
    radial-gradient(1px 1px at 62px 136px, rgba(255, 255, 255, .22), transparent 100%),
    radial-gradient(1.2px 1.2px at 172px 118px, rgba(255, 227, 161, .28), transparent 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
code {
  font-family: var(--mono);
  font-size: .88em;
  padding: .12em .42em;
  border-radius: 6px;
  background: var(--violet-soft);
  color: var(--ink);
}
::selection { background: var(--gold); color: var(--ink); }

/* 统一可访问焦点环（紫色 3px 外环） */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}

/* 羊皮纸底纹：柔光晕 + 细微纸纤维纹 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 680px at 84% -6%, rgba(124, 92, 255, .10), transparent 62%),
    radial-gradient(880px 560px at -8% 28%, rgba(255, 201, 74, .13), transparent 60%),
    repeating-linear-gradient(0deg, rgba(22, 19, 47, .014) 0 1px, transparent 1px 4px);
}

/* WebGL 流体：在内容之下、背景之上 */
.fluid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
main, .foot, .marquee { position: relative; z-index: 1; }

/* ---------- 文字拆分与滚动入场 ---------- */
[data-split] .ch {
  display: inline-block;
  transform: translateY(102%) rotate(5deg);
  opacity: 0;
  transition: transform .55s var(--ease), opacity .4s ease;
  transition-delay: calc(var(--i) * 15ms + var(--d, 0ms));
  white-space: pre;
}
[data-split].is-in .ch { transform: none; opacity: 1; }
[data-split] .clip { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Kicker / Section Head / 统一星芒分隔 ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font: 600 11.5px/1.2 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.kicker__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, .18);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(124, 92, 255, 0); } }

.sec-head {
  max-width: 860px;
  margin: 0 0 clamp(34px, 4.4vw, 56px);
}
.sec-title {
  margin: 0;
  font: 900 clamp(32px, 4.2vw, 60px)/1.08 var(--display);
  letter-spacing: -.025em;
  color: var(--ink);
  text-wrap: balance;
}
/* 「✦ ─── ☾」细线星芒分隔 */
.sec-orn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 16px;
  font-size: 12px;
  line-height: 1;
  user-select: none;
}
.sec-orn::before {
  content: "✦";
  color: var(--gold-deep);
}
.sec-orn > span {
  width: 88px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-deep), var(--violet) 65%, rgba(124, 92, 255, .12));
}
.sec-orn::after {
  content: "☾";
  color: var(--violet);
  font-size: 12.5px;
}
p, li { text-wrap: pretty; }

.sec-desc {
  margin: 0;
  max-width: 45rem;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-2);
  text-wrap: pretty;
}
.sec-desc b { color: var(--ink); }

/* ---------- 按钮统一规范 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.1;
  letter-spacing: .01em;
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), background-color .28s ease, color .28s ease, border-color .28s ease, filter .28s ease;
  will-change: transform;
}
.btn span { transition: transform .32s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover span { transform: translate(2px, -2px); }

.btn--gold {
  background: var(--gold-foil);
  color: var(--ink);
  border-color: rgba(224, 165, 38, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72), 0 6px 18px -6px rgba(224, 165, 38, .55);
}
.btn--gold:hover {
  filter: brightness(1.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88), 0 12px 28px -8px rgba(224, 165, 38, .72);
}

.btn--ink {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--sh-1);
}
.btn--ink:hover {
  background: var(--night-2);
  border-color: rgba(124, 92, 255, .45);
  box-shadow: var(--sh-glow);
}

.btn--line {
  background: rgba(251, 248, 241, .7);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: var(--sh-1);
}
.btn--line:hover {
  background: var(--paper);
  border-color: var(--violet);
  color: var(--violet);
  box-shadow: var(--sh-2);
}

.btn--ghost-light {
  border-color: rgba(183, 166, 255, .28);
  background: rgba(255, 255, 255, .06);
  color: #fff;
}
.btn--ghost-light:hover {
  background: rgba(124, 92, 255, .22);
  border-color: var(--violet-2);
  box-shadow: var(--sh-glow);
}

.btn--sm { min-height: 36px; padding: 0 16px; font-size: 13px; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 16px; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--violet);
  border-bottom: 1.5px solid rgba(124, 92, 255, .45);
  transition: color .25s ease, border-color .25s ease;
}
.link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ============================================================
   HEADER
   ============================================================ */
.hdr {
  position: fixed;
  z-index: 50;
  top: 16px;
  left: var(--pad);
  right: var(--pad);
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  transition: transform .5s var(--ease);
}
.hdr > * { pointer-events: auto; }
.hdr.is-hidden { transform: translateY(-150%); }

.hdr__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 48px;
  padding: 5px 18px 5px 6px;
  border-radius: var(--r-pill);
  background: rgba(251, 248, 241, .84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  box-shadow: var(--sh-1);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.hdr__brand:hover {
  border-color: rgba(124, 92, 255, .38);
  box-shadow: var(--sh-2);
}
.hdr__brand img { width: 36px; height: 36px; border-radius: 50%; }
.hdr__brand span { font: 900 16px/1.05 var(--display); letter-spacing: -.01em; color: var(--ink); }
.hdr__brand i {
  display: block;
  font: 600 9.5px/1.35 var(--mono);
  letter-spacing: .18em;
  color: var(--ink-3);
  font-style: normal;
}

.hdr__actions { display: flex; align-items: center; gap: 8px; }
.hdr__assist, .hdr__pill, .hdr__round, .hdr__menu {
  height: 48px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: transform .3s var(--ease), background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.hdr__assist {
  gap: 7px;
  padding: 0 18px;
  background: rgba(251, 248, 241, .86);
  color: var(--ink);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(124, 92, 255, .28);
  box-shadow: var(--sh-1);
}
.hdr__assist i { font-style: normal; color: var(--violet); }
.hdr__assist:hover {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
  box-shadow: var(--sh-glow);
}
.hdr__assist:hover i { color: var(--gold); }

.hdr__pill {
  padding: 0 20px;
  background: var(--gold-foil);
  color: var(--ink);
  border-color: rgba(224, 165, 38, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 4px 14px -4px rgba(224, 165, 38, .5);
}
.hdr__pill:hover {
  filter: brightness(1.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 8px 22px -6px rgba(224, 165, 38, .7);
}

.hdr__round {
  width: 48px;
  background: var(--paper);
  font-size: 17px;
  border-color: var(--line-strong);
  box-shadow: var(--sh-1);
}
.hdr__round:hover {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
}

.hdr__menu {
  gap: 12px;
  padding: 0 11px 0 20px;
  background: var(--ink);
  color: #fff;
  font: 700 11.5px/1 var(--mono);
  letter-spacing: .16em;
  box-shadow: var(--sh-1);
}
.hdr__menu:hover { background: var(--night-2); border-color: rgba(183, 166, 255, .35); }
.dots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 26px;
  height: 26px;
  place-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
}
.dots b {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  transition: transform .4s var(--ease);
}
.hdr__menu[aria-expanded="true"] .dots b:first-child { transform: translateX(4px); }
.hdr__menu[aria-expanded="true"] .dots b:last-child { transform: translateX(-4px); }

/* 抽屉菜单 */
.menu { position: fixed; inset: 0; z-index: 45; visibility: hidden; }
.menu.is-open { visibility: visible; }
.menu__scrim {
  position: absolute;
  inset: 0;
  background: rgba(21, 18, 58, .42);
  opacity: 0;
  transition: opacity .4s ease;
  backdrop-filter: blur(4px);
}
.menu.is-open .menu__scrim { opacity: 1; }
.menu__panel {
  position: absolute;
  top: 12px;
  right: max(12px, calc((100% - var(--maxw)) / 2));
  width: min(440px, calc(100% - 24px));
  padding: 84px 28px 28px;
  border-radius: var(--r-xl);
  background:
    var(--stars) 0 0 / 180px 160px,
    linear-gradient(165deg, var(--night-2), var(--night) 60%, var(--night-3));
  border: 1px solid var(--line-night);
  box-shadow: 0 24px 64px -16px rgba(14, 12, 41, .65);
  color: #fff;
  transform: translateY(-16px) scale(.97);
  opacity: 0;
  transform-origin: top right;
  transition: transform .45s var(--ease), opacity .32s ease;
}
.menu.is-open .menu__panel { transform: none; opacity: 1; }
.menu__panel > a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-night);
  font: 900 clamp(24px, 3.2vw, 34px)/1.18 var(--display);
  letter-spacing: -.02em;
  transition: color .25s ease, padding-left .35s var(--ease);
}
.menu__panel > a:hover { color: var(--gold); padding-left: 8px; }
.menu__panel em { font: 600 11.5px var(--mono); color: var(--violet-2); font-style: normal; }
.menu__tag {
  margin-left: auto;
  align-self: center;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--ink);
  font: 800 10.5px/1.25 var(--mono);
  letter-spacing: .04em;
}
.menu__foot {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.menu__foot p { margin: 0; font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, .66); }

/* ============================================================
   HERO（1440×900 首屏完整呈现，桌面严格 3 行主标题）
   ============================================================ */
.hero {
  position: relative;
  max-width: calc(var(--maxw) + 2 * var(--pad));
  margin-inline: auto;
  min-height: min(100svh, 920px);
  padding: 92px var(--pad) 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 18px 36px;
  overflow-x: clip;
}
.hero__copy { min-width: 0; }
.hero__copy .kicker { margin-bottom: 14px; }

.hero__title {
  margin: 0 0 18px;
  font: 900 clamp(38px, 4.4vw, 64px)/1.06 var(--display);
  letter-spacing: -.02em;
  color: var(--ink);
}
.hero__title .line {
  display: block;
  white-space: nowrap;
}
.hl { font-style: normal; position: relative; display: inline-block; }
.hl--violet { color: var(--violet); }
.hl--orange { color: var(--orange); }
.hl--gold { color: var(--ink); z-index: 0; }
.hl--gold::after {
  content: "";
  position: absolute;
  left: -.04em;
  right: -.04em;
  bottom: .06em;
  height: .28em;
  z-index: -1;
  background: var(--gold);
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s var(--ease) .75s;
}
.is-in .hl--gold::after,
[data-split].is-in .hl--gold::after { transform: none; }

.hero__lede {
  max-width: 37rem;
  margin: 0 0 22px;
  font-size: clamp(15.5px, 1.15vw, 17px);
  line-height: 1.72;
  color: var(--ink-2);
  text-wrap: pretty;
  transition-delay: .25s;
}
.hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  transition-delay: .35s;
}
.hero__actions .btn { padding: 0 20px; font-size: 14px; }

/* Base URL 胶囊 */
.baseurl {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 5px 6px 5px 7px;
  border-radius: var(--r-pill);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: var(--sh-1);
  transition: border-color .25s ease, box-shadow .25s ease, transform .3s var(--ease);
  transition-delay: .45s;
}
.baseurl:hover {
  border-color: var(--violet);
  box-shadow: var(--sh-2);
  transform: translateY(-1px);
}
.baseurl__tag {
  padding: 6px 10px;
  border-radius: var(--r-pill);
  background: var(--night);
  color: var(--gold);
  font: 700 10px/1 var(--mono);
  letter-spacing: .14em;
  flex: none;
}
.baseurl code {
  background: none;
  padding: 0;
  font-size: 13.5px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.baseurl__act {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--violet-soft);
  color: var(--violet);
  font-size: 12.5px;
  font-weight: 700;
  flex: none;
  transition: background-color .25s ease, color .25s ease;
}
.baseurl:hover .baseurl__act {
  background: var(--violet);
  color: #fff;
}

/* 右侧法阵：与左栏高度视觉平衡，轨道球不越界 */
.circle {
  --cw: min(32vw, 430px);
  position: relative;
  justify-self: center;
  width: var(--cw);
  aspect-ratio: 1;
  margin: 14px;
  transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform .6s var(--ease);
  animation: circle-in 1.2s var(--ease) .1s backwards;
}
@keyframes circle-in { from { opacity: 0; transform: scale(.86) rotate(-20deg); } }
.circle__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.circle .stroke { fill: none; stroke: var(--ink); stroke-width: 1.2; opacity: .52; }
.circle .stroke--thin { stroke-width: .85; opacity: .3; }
.circle .stroke--dash { stroke-dasharray: 2 10; stroke-linecap: round; stroke-width: 2; opacity: .48; }
.circle .stroke--dash2 { stroke-dasharray: 30 8 4 8; stroke: var(--violet); opacity: .82; stroke-width: 2; }
.circle .stroke--gold { stroke: var(--gold-deep); opacity: .78; stroke-width: 1.5; }
.circle .runes { font: 700 14.5px var(--mono); letter-spacing: .28em; fill: var(--ink); opacity: .68; }
.circle .ticks line { stroke: var(--ink); stroke-width: 1.4; opacity: .46; }
.ring { transform-origin: 0 0; }
.ring--a { animation: spin 60s linear infinite; }
.ring--b { animation: spin 90s linear infinite reverse; }
.ring--c { animation: spin 32s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.circle__core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 35%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  padding: 6px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line-strong), 0 24px 64px -16px rgba(124, 92, 255, .55), 0 0 48px rgba(255, 201, 74, .42);
  animation: float 6s ease-in-out infinite;
}
.circle__core img { width: 100%; height: 100%; border-radius: 50%; }
@keyframes float { 50% { transform: translate(-50%, -53.5%); } }

.orbit { position: absolute; inset: 0; animation: spin 44s linear infinite; }
.orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--a)) translateY(calc(var(--cw) * -.435)) rotate(calc(-1 * var(--a)));
}
.orb b {
  position: absolute;
  left: 0;
  top: 0;
  translate: -50% -50%;
  padding: 7px 13px 7px 24px;
  border-radius: var(--r-pill);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  font: 800 12.5px/1 var(--sans);
  color: var(--ink);
  white-space: nowrap;
  box-shadow: var(--sh-2);
  animation: counter 44s linear infinite;
}
.orb b::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--c);
}
@keyframes counter { from { rotate: 0deg; } to { rotate: -360deg; } }

/* Hero 底部统计条（细分隔线） */
.hero__foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}
.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font: 600 11px/1 var(--mono);
  letter-spacing: .18em;
  color: var(--ink-2);
}
.scroll-hint i {
  width: 20px;
  height: 32px;
  border: 1.5px solid var(--ink-2);
  border-radius: 11px;
  position: relative;
}
.scroll-hint i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 6px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--violet);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 65% { transform: translateY(9px); opacity: 0; } 100% { opacity: 0; } }

.hero__facts {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero__facts li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 2px clamp(16px, 2.4vw, 32px);
  border-left: 1px solid var(--line-strong);
  font-size: 13px;
  color: var(--ink-2);
}
.hero__facts li:last-child { padding-right: 0; }
.hero__facts b {
  font: 900 clamp(22px, 2vw, 30px)/1 var(--display);
  color: var(--ink);
  letter-spacing: -.02em;
}

/* ============================================================
   MARQUEE（午夜底 + 金色星芒分隔，绝不横向溢出）
   ============================================================ */
.marquee {
  width: 100%;
  margin: 8px 0 0;
  padding: 16px 0;
  overflow: hidden;
  background:
    var(--stars) 0 0 / 180px 80px,
    linear-gradient(90deg, var(--night-3), var(--night) 50%, var(--night-3));
  border-top: 1px solid rgba(255, 201, 74, .28);
  border-bottom: 1px solid var(--line-night);
  color: var(--paper);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  animation: marquee 48s linear infinite;
  font: 900 clamp(17px, 1.7vw, 22px)/1 var(--display);
  letter-spacing: .06em;
}
.marquee i {
  font-style: normal;
  color: var(--gold);
  font-size: .92em;
  text-shadow: 0 0 12px rgba(255, 201, 74, .45);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   统一区块容器节奏
   ============================================================ */
.spells,
.assistant,
.capsule,
.start,
.pricing {
  max-width: calc(var(--maxw) + 2 * var(--pad));
  margin-inline: auto;
  padding: var(--sec-y) var(--pad) 0;
}

/* ============================================================
   SPELLBOOK（12 栏 Bento：7+5 / 5+7 / 12）
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 22px);
}
.card {
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
  grid-column: span 6;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .48s var(--ease), box-shadow .4s var(--ease), opacity .6s var(--ease);
  isolation: isolate;
}
.card--span-7 { grid-column: span 7; }
.card--span-5 { grid-column: span 5; }
.card--wide {
  grid-column: span 12;
  flex-direction: row;
  align-items: stretch;
}

.card.reveal { transform: perspective(1200px) translateY(32px); }
.card.reveal.is-in { transform: perspective(1200px) translateY(0) rotateX(var(--rx)) rotateY(var(--ry)); }
.card.reveal.is-in:hover { transform: perspective(1200px) translateY(-4px) rotateX(var(--rx)) rotateY(var(--ry)); }

/* 指针跟随的星光光斑 */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(255, 201, 74, .14), transparent 62%);
  opacity: 0;
  transition: opacity .35s ease;
}
.card:hover::after { opacity: 1; }

.card--night {
  background:
    var(--stars) 0 0 / 180px 160px,
    radial-gradient(520px 280px at 85% 0%, rgba(124, 92, 255, .22), transparent 65%),
    linear-gradient(165deg, var(--night-2) 0%, var(--night) 65%, var(--night-3) 100%);
  border: 1px solid var(--line-night);
  box-shadow: var(--sh-2);
  color: #fff;
}
.card--night:hover { box-shadow: var(--sh-glow); }

.card--paper {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  color: var(--ink);
}
.card--paper:hover {
  border-color: var(--line-strong);
  box-shadow: var(--sh-2);
}

.card--violet {
  background:
    var(--stars) 0 0 / 180px 160px,
    radial-gradient(460px 260px at 18% 12%, rgba(255, 201, 74, .18), transparent 65%),
    linear-gradient(155deg, #352587 0%, #4d35ba 52%, #24195c 100%);
  border: 1px solid rgba(183, 166, 255, .32);
  box-shadow: var(--sh-2);
  color: #fff;
}
.card--violet:hover { box-shadow: var(--sh-glow); }

.card__visual {
  position: relative;
  flex: 1 1 auto;
  min-height: 256px;
}
.card--wide .card__visual {
  flex: 1.25 1 0;
  min-height: 280px;
}

/* 统一卡片 meta 区：tag → 标题 → 描述，同行底部对齐 */
.card__meta {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 20px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card--wide .card__meta {
  flex: 1 1 0;
  margin-top: 0;
  justify-content: center;
  padding: 32px 36px 32px 24px;
}
.card__tag {
  margin: 0;
  font: 600 11px/1.2 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--violet-2);
}
.card--paper .card__tag { color: var(--violet); }
.card__title {
  margin: 0;
  font: 900 clamp(20px, 1.8vw, 26px)/1.18 var(--display);
  letter-spacing: -.02em;
}
.card__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.68;
  color: rgba(255, 255, 255, .78);
  max-width: 52ch;
}
.card--paper .card__desc { color: var(--ink-2); }
.card--night code,
.card--violet code {
  background: rgba(255, 255, 255, .12);
  color: var(--gold);
}

/* 1 · 路由法阵（7 栏） */
.route {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 24px 8px;
}
.route__stage {
  position: relative;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 2 / 1;
}
.route__stage svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.route__links path { fill: none; stroke: rgba(183, 166, 255, .24); stroke-width: 2; }
.route__runs path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 18 260;
  animation: run 2.8s linear infinite;
  filter: drop-shadow(0 0 6px var(--gold));
}
.route__runs path:nth-child(2) { animation-delay: -.7s; stroke: var(--violet-2); filter: drop-shadow(0 0 6px var(--violet-2)); }
.route__runs path:nth-child(3) { animation-delay: -1.4s; stroke: var(--mint); filter: drop-shadow(0 0 6px var(--mint)); }
.route__runs path:nth-child(4) { animation-delay: -2.1s; stroke: var(--orange); filter: drop-shadow(0 0 6px var(--orange)); }
@keyframes run { from { stroke-dashoffset: 278; } to { stroke-dashoffset: 0; } }
.route__nodes rect { fill: rgba(14, 12, 41, .65); stroke: rgba(183, 166, 255, .36); }
.route__nodes text { fill: #fff; font: 700 12.5px var(--mono); letter-spacing: .14em; text-anchor: middle; }
.route__halo {
  fill: rgba(255, 201, 74, .14);
  stroke: var(--gold);
  stroke-width: 1;
  transform-origin: 320px 160px;
  animation: halo 2.8s ease-out infinite;
}
@keyframes halo { from { transform: scale(.82); opacity: .95; } to { transform: scale(1.55); opacity: 0; } }
.route__ring { fill: var(--night); stroke: var(--gold); stroke-width: 2; }
.route__cat {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13.5%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px rgba(255, 201, 74, .35);
}

/* 2 · 美区直连机柜（5 栏） */
.rack {
  padding: 26px 28px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.rack__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 600 11px/1.2 var(--mono);
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .66);
}
.live { display: inline-flex; align-items: center; gap: 7px; color: var(--mint); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .22; } }
.rack__units { display: grid; gap: 8px; }
.rack__unit {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 15px;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(48, 43, 112, .85), rgba(20, 17, 56, .92));
  border: 1px solid var(--line-night);
}
.rack__unit b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  animation: blink 1.8s steps(2) infinite;
}
.rack__unit b:nth-child(2) { animation-delay: .45s; }
.rack__unit b:nth-child(3) { animation-delay: .95s; }
.rack__unit b.warm { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.rack__unit span {
  flex: 1;
  height: 7px;
  margin-left: 8px;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, rgba(183, 166, 255, .22) 0 6px, transparent 6px 10px);
}
.rack__load { display: grid; gap: 8px; margin-top: 2px; }
.rack__load p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
}
.rack__load span { width: 58px; flex: none; }
.rack__load i {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .1);
  position: relative;
  overflow: hidden;
}
.rack__load i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .6s var(--ease) .15s;
}
.card.is-in .rack__load i::after { transform: scaleX(1); }

/* 3 · 全系模型（5 栏纸卡） */
.suite {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 24px 24px 8px;
  align-content: center;
}
.suite__tile {
  position: relative;
  padding: 15px 14px 15px 17px;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  transition: transform .55s var(--ease), opacity .45s ease, background-color .25s ease, box-shadow .25s ease;
  transition-delay: calc(var(--d) * 70ms + 120ms);
}
.card.is-in .suite__tile { opacity: 1; transform: none; }
.suite__tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--c);
}
.suite__tile:hover {
  background: #fff;
  box-shadow: var(--sh-1);
}
.suite__tile small {
  display: block;
  font: 600 10.5px/1.2 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.suite__tile b {
  display: block;
  margin: 4px 0 3px;
  font: 900 clamp(21px, 2vw, 28px)/1.05 var(--display);
  color: var(--c);
  letter-spacing: -.02em;
}
.suite__tile span {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-2);
}

/* 4 · 安全结界（7 栏） */
.ward {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 38px);
  flex-wrap: wrap;
  padding: 26px 28px 10px;
}
.ward__orbit {
  position: relative;
  width: 172px;
  aspect-ratio: 1;
  flex: none;
}
.ward__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .32);
  animation: ward 3.6s ease-out infinite;
}
.ward__ring:nth-child(2) { animation-delay: 1.2s; }
.ward__ring:nth-child(3) { animation-delay: 2.4s; }
@keyframes ward { from { transform: scale(.45); opacity: .95; } to { transform: scale(1.1); opacity: 0; } }
.ward__scan {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(255, 201, 74, .6) 100%);
  animation: spin 3.2s linear infinite;
  mask: radial-gradient(circle, transparent 40%, #000 41%);
  -webkit-mask: radial-gradient(circle, transparent 40%, #000 41%);
}
.ward__lock {
  position: absolute;
  inset: 31%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--violet);
  box-shadow: 0 14px 36px -8px rgba(14, 12, 41, .55);
}
.ward__lock svg { width: 46%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ward__tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ward__tags li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  background: rgba(14, 12, 41, .34);
  border: 1px solid rgba(255, 227, 161, .24);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.ward__tags li::before {
  content: "✦";
  color: var(--gold);
  font-size: 11px;
}

/* 5 · 施法终端（12 栏：终端左、文案右） */
.term {
  margin: 24px 8px 24px 24px;
  border-radius: var(--r-lg);
  background: var(--night-3);
  border: 1px solid var(--line-night);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.term__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid var(--line-night);
  font: 12px/1 var(--mono);
  color: rgba(255, 255, 255, .52);
}
.term__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff6b5b; }
.term__bar i:nth-child(2) { background: var(--gold); }
.term__bar i:nth-child(3) { background: var(--mint); }
.term__bar span { margin-left: 8px; }
.term__body {
  flex: 1;
  margin: 0;
  padding: 18px 22px;
  font: 13.5px/1.72 var(--mono);
  color: #ece9ff;
  white-space: pre-wrap;
  word-break: break-all;
}
.term__body code { background: none; padding: 0; font-size: inherit; color: inherit; }
.term__body .k { color: var(--gold); }
.term__body .s { color: var(--mint); }
.term__body .c { color: var(--violet-2); }
.term__caret {
  display: inline-block;
  width: 8px;
  height: 1.08em;
  vertical-align: -3px;
  background: var(--gold);
  animation: blink 1s steps(2) infinite;
}

/* ============================================================
   ASSISTANT（官方推荐 · 魔法咪助手）
   ============================================================ */
.ast-board {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(20px, 2.6vw, 32px);
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: var(--r-xl);
  background:
    var(--stars) 0 0 / 180px 160px,
    radial-gradient(680px 420px at 8% 0%, rgba(124, 92, 255, .28), transparent 65%),
    radial-gradient(560px 360px at 96% 100%, rgba(255, 201, 74, .14), transparent 65%),
    linear-gradient(165deg, var(--night-2) 0%, var(--night) 65%, var(--night-3) 100%);
  border: 1px solid var(--line-night);
  color: #fff;
  box-shadow: var(--sh-2);
  align-items: start;
}

/* 左侧模拟桌面端窗口（消除空洞，紧凑充实） */
.ast-mock {
  border-radius: var(--r-lg);
  background: var(--night-3);
  border: 1px solid var(--line-night);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 40px -20px rgba(0, 0, 0, .55);
}
.ast-mock__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-night);
  background: rgba(255, 255, 255, .03);
}
.ast-mock__dots { display: flex; gap: 6px; }
.ast-mock__dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff6b5b; }
.ast-mock__dots i:nth-child(2) { background: var(--gold); }
.ast-mock__dots i:nth-child(3) { background: var(--mint); }
.ast-mock__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13.5px;
}
.ast-mock__brand img { width: 22px; height: 22px; border-radius: 50%; }
.ast-mock__brand small {
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: rgba(124, 92, 255, .24);
  color: var(--violet-2);
  font: 600 10.5px/1.3 var(--mono);
}
.ast-mock__live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 11px/1 var(--mono);
  color: var(--mint);
}
.ast-mock__live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(95, 216, 192, .22);
}

/* 单行可滚动选项卡 */
.ast-tabs {
  --fade-size: 2rem;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: inline proximity;
  scroll-padding-inline: var(--fade-size);
  padding: 0 10px;
  border-bottom: 1px solid var(--line-night);
  background: rgba(255, 255, 255, .02);
  mask:
    linear-gradient(#000, #000) no-clip subtract,
    linear-gradient(to right, #000, transparent) 0 0 / var(--ast-fade-start) 100% no-repeat no-clip,
    linear-gradient(to right, transparent, #000) 100% 0 / var(--ast-fade-end) 100% no-repeat no-clip;
  animation: ast-fade-start linear both, ast-fade-end linear both;
  animation-timeline: scroll(self inline);
  animation-range: 0 var(--fade-size), calc(100% - var(--fade-size)) 100%;
  transition: --ast-fade-start .2s, --ast-fade-end .2s;
}
.ast-tabs::-webkit-scrollbar { display: none; }
.ast-tabs.more-start { --ast-fade-start: var(--fade-size); }
.ast-tabs.more-end { --ast-fade-end: var(--fade-size); }
@keyframes ast-fade-start { to { --ast-fade-start: var(--fade-size); } }
@keyframes ast-fade-end { from { --ast-fade-end: var(--fade-size); } }

.ast-tab {
  flex: none;
  scroll-snap-align: start;
  position: relative;
  padding: 12px 14px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .62);
  font: 700 13px/1.2 var(--sans);
  white-space: nowrap;
  transition: color .25s ease;
}
.ast-tab:hover { color: #fff; }
.ast-tab:focus-visible { outline: 3px solid var(--violet); outline-offset: -3px; border-radius: 6px; }
.ast-tab[aria-selected="true"] { color: var(--gold); }
.ast-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 10px 0;
  border-block-end: 2.5px solid var(--gold);
}

/* 关键修正：避免 hidden="until-found" 或拉伸产生上方大块空洞 */
.ast-panels { flex: 1; display: grid; }
.ast-panels > [role="tabpanel"] { grid-area: 1 / 1; outline: none; display: flex; flex-direction: column; }
.ast-panels > [role="tabpanel"][hidden] { display: none !important; }
.ast-pane {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 13px;
}
@media (min-width: 961px) {
  #ast-pane-capsule .ast-pane,
  #ast-pane-launch .ast-pane {
    min-height: 456px;
  }
}

.ast-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(183, 166, 255, .12);
  font: 600 11px/1.3 var(--mono);
  color: rgba(255, 255, 255, .56);
}
.ast-flow span {
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
}
.ast-flow span.is-done {
  color: var(--mint);
  border-color: rgba(95, 216, 192, .3);
  background: rgba(95, 216, 192, .09);
}
.ast-flow span.is-now {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 800;
}
.ast-flow i { font-style: normal; opacity: .45; }

.ast-hosts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
}
.ast-host {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .025));
  border: 1px solid rgba(183, 166, 255, .14);
  transition: border-color .25s ease, background-color .25s ease;
}
.ast-host:hover { border-color: rgba(183, 166, 255, .34); }
.ast-host.is-active {
  background: linear-gradient(160deg, rgba(124, 92, 255, .24), rgba(124, 92, 255, .10));
  border-color: rgba(183, 166, 255, .46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.ast-host__dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  flex: none;
  border-radius: 50%;
  background: var(--hc);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hc) 24%, transparent);
}
.ast-host div { flex: 1; min-width: 0; }
.ast-host b { display: block; font-size: 13px; line-height: 1.3; color: #fff; }
.ast-host small { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.45; color: rgba(255, 255, 255, .64); }
.ast-badge {
  flex: none;
  font-style: normal;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  font: 700 10px/1.3 var(--mono);
  background: rgba(255, 255, 255, .09);
  color: rgba(255, 255, 255, .78);
}
.ast-badge--ok { background: rgba(95, 216, 192, .16); color: var(--mint); }

/* 写入前配置文件 Diff 预览小块 */
.ast-diff {
  border-radius: 12px;
  background: rgba(0, 0, 0, .34);
  border: 1px solid rgba(183, 166, 255, .16);
  overflow: hidden;
}
.ast-diff__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid rgba(183, 166, 255, .12);
  font: 600 11px/1.3 var(--mono);
  color: var(--violet-2);
}
.ast-diff__head em {
  font-style: normal;
  font-size: 10.5px;
  color: rgba(255, 255, 255, .52);
}
.ast-diff__code {
  margin: 0;
  padding: 9px 12px;
  font: 11.5px/1.6 var(--mono);
  color: rgba(255, 255, 255, .82);
  overflow-x: auto;
}
.ast-diff__code code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}
.ast-diff__code .d-del { color: #ff8e80; opacity: .82; }
.ast-diff__code .d-add { color: var(--mint); }

.ast-launchbar {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 201, 74, .14), rgba(124, 92, 255, .12));
  border: 1px solid rgba(255, 201, 74, .32);
}
.ast-launchbar__pill {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--gold-foil);
  color: var(--ink);
  font: 800 12.5px/1 var(--sans);
}
.ast-launchbar__meta { font-size: 12px; color: rgba(255, 255, 255, .76); }

/* 面板 2：聊天与 MCP（顶部自然流排布，消除间隙拉伸） */
.ast-chat { flex: 1; display: flex; flex-direction: column; gap: 12px; justify-content: flex-start; }
.ast-chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .7);
}
.ast-chat__head code, .ast-msg code { background: rgba(255, 255, 255, .12); color: var(--gold); }
.ast-msg { padding: 14px 16px; border-radius: 14px; font-size: 13px; line-height: 1.65; }
.ast-msg--user {
  align-self: flex-end;
  max-width: 88%;
  background: rgba(124, 92, 255, .28);
  border: 1px solid rgba(183, 166, 255, .32);
}
.ast-msg--ai {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-night);
}
.ast-msg--ai b { display: block; margin-bottom: 5px; font-size: 12px; color: var(--gold); }
.ast-msg--ai p { margin: 0; color: rgba(255, 255, 255, .86); text-wrap: pretty; }
.ast-pills { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.ast-pills span {
  padding: 6px 11px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-night);
  font-size: 12px;
  color: rgba(255, 255, 255, .82);
}

/* 面板 3：密钥与账单 */
.ast-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ast-metrics > div {
  padding: 18px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line-night);
}
.ast-metrics small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .6); }
.ast-metrics b { display: block; margin: 8px 0 5px; font: 900 23px/1.1 var(--display); color: var(--gold); }
.ast-metrics span { font-size: 11.5px; color: rgba(255, 255, 255, .68); }
.ast-keycard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 18px;
  border-radius: 14px;
  background: rgba(124, 92, 255, .16);
  border: 1px solid rgba(183, 166, 255, .34);
}
.ast-keycard__title { margin: 0 0 6px; font-size: 12px; color: rgba(255, 255, 255, .72); }
.ast-keycard code { background: rgba(0, 0, 0, .3); color: #fff; margin-right: 8px; }
.ast-keycard span { font-size: 12px; color: var(--violet-2); }
.ast-subnote {
  margin: 0;
  padding: 13px 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  border: 1px dashed var(--line-night);
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .68);
  text-wrap: pretty;
}

/* 面板 4：手机扫码远控 */
.ast-remote {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin: 0;
  padding: 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line-night);
}
.ast-qr {
  padding: 12px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
}
.ast-qr svg { width: 100%; height: auto; display: block; }
.ast-qr span { display: block; margin-top: 6px; font: 700 10px/1.2 var(--sans); color: var(--ink-2); }
.ast-remote__sas { margin: 0 0 8px; font-size: 12px; color: var(--mint); }
.ast-remote__sas code { background: rgba(95, 216, 192, .14); color: var(--mint); }
.ast-remote__body h4 { margin: 0 0 8px; font-size: 17px; text-wrap: balance; }
.ast-remote__body p { margin: 0; font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, .78); text-wrap: pretty; }

/* 右侧推荐理由 + 金箔描边下载卡 */
.ast-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.ast-rec {
  align-self: flex-start;
  margin: 0;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 201, 74, .14);
  border: 1px solid rgba(255, 201, 74, .42);
  color: var(--gold);
  font: 700 11px/1.2 var(--mono);
  letter-spacing: .08em;
}
.ast-panel h3 {
  margin: 0;
  font: 900 clamp(22px, 2.2vw, 30px)/1.14 var(--display);
  letter-spacing: -.02em;
  text-wrap: balance;
}

/* 带金色星芒徽章的紧凑列表 */
.ast-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.ast-points li {
  position: relative;
  padding-left: 34px;
  font-size: 13.5px;
  line-height: 1.56;
  text-wrap: pretty;
}
.ast-points li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(255, 201, 74, .14);
  border: 1px solid rgba(255, 201, 74, .38);
  color: var(--gold);
  font-size: 11px;
  line-height: 1;
}
.ast-points b {
  display: block;
  color: #fff;
  font-size: 14.5px;
  line-height: 1.3;
  margin-bottom: 2px;
}
.ast-points span { color: rgba(255, 255, 255, .74); }
.ast-points code, .ast-dl code { background: rgba(255, 255, 255, .12); color: var(--gold); }

/* 金箔描边下载卡 */
.ast-dl {
  padding: 14px 16px;
  border-radius: var(--r-lg);
  border: 1.5px solid transparent;
  background:
    linear-gradient(165deg, rgba(31, 26, 82, .94), rgba(14, 12, 41, .97)) padding-box,
    linear-gradient(135deg, #ffe3a1 0%, #ffc94a 38%, rgba(183, 166, 255, .55) 72%, #e0a526 100%) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 227, 161, .22), 0 14px 34px -14px rgba(0, 0, 0, .55);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ast-dl__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.ast-dl__btns .btn { white-space: nowrap; }
.ast-dl__primary { flex: 1 1 220px; min-height: 48px; padding: 0 20px; font-size: 14.5px; }
.ast-dl__btns .btn--ghost-light { min-height: 48px; padding: 0 18px; font-size: 13.5px; }
.ast-dl__meta {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .7);
}

/* 紧凑单行 SHA-256 校验条 */
.ast-sha {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 11px;
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, .34);
  border: 1px solid rgba(183, 166, 255, .16);
  min-width: 0;
}
.ast-sha__tag {
  flex: none;
  font: 700 10px/1 var(--mono);
  letter-spacing: .12em;
  color: var(--gold);
}
.ast-sha code {
  flex: 1;
  min-width: 0;
  background: none;
  padding: 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 无障碍复制按钮 + 气泡提示 */
.copy-wrap { position: relative; display: inline-flex; align-items: center; flex: none; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-inline-size: 24px;
  min-block-size: 28px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .09);
  color: #fff;
  font: 700 11.5px/1 var(--sans);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.copy-btn:hover { background: rgba(124, 92, 255, .32); border-color: var(--violet-2); }
.copy-btn[data-copied] { border-color: var(--mint); color: var(--mint); background: rgba(95, 216, 192, .14); }
.copy-btn[data-failed] { border-color: #ff6b5b; color: #ff9a8f; }
.copy-ico {
  width: 13px;
  height: 13px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.copy-ico--ok { display: none; }
.copy-btn[data-copied] .copy-ico--idle { display: none; }
.copy-btn[data-copied] .copy-ico--ok { display: block; }
.copy-tip {
  position: absolute;
  bottom: calc(100% + 7px);
  right: 0;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--gold);
  color: var(--ink);
  font: 700 11.5px/1.2 var(--sans);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
}
.copy-btn:is([data-copied], [data-failed]) + .copy-tip,
.copy-tip:not(:empty) { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .copy-tip {
    translate: 0 4px;
    transition: opacity .18s ease, translate .18s ease;
  }
  .copy-btn:is([data-copied], [data-failed]) + .copy-tip,
  .copy-tip:not(:empty) { translate: 0 0; }
}

.ast-dl__hint {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .62);
  text-wrap: pretty;
}
.ast-dl__hint a { color: var(--gold); border-bottom: 1px solid rgba(255, 201, 74, .5); }
.ast-dl__hint a:hover { border-bottom-color: var(--gold); }

/* 底部三栏亮点条：与上方卡片等宽、统一纸卡语言 */
.ast-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.ast-strip li {
  position: relative;
  padding: 22px 24px;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s ease;
}
.ast-strip li:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, .3);
  box-shadow: var(--sh-2);
}
.ast-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font: 800 12px/1.2 var(--mono);
  color: var(--violet);
  letter-spacing: .08em;
}
.ast-strip span::before {
  content: "✦";
  color: var(--gold-deep);
  font-size: 11px;
}
.ast-strip p { margin: 0; font-size: 14.5px; line-height: 1.68; color: var(--ink-2); text-wrap: pretty; }

/* ============================================================
   MAGIC CAPSULE（重磅主打 · 魔法胶囊独立工作空间与文件隐私清理）
   ============================================================ */
.cap-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(20px, 2.8vw, 34px);
  padding: clamp(20px, 2.6vw, 32px);
  border-radius: var(--r-xl);
  background:
    var(--stars) 0 0 / 180px 160px,
    radial-gradient(640px 380px at 14% 0%, rgba(95, 216, 192, .20), transparent 64%),
    radial-gradient(560px 380px at 92% 100%, rgba(255, 201, 74, .18), transparent 64%),
    linear-gradient(160deg, var(--night-2) 0%, var(--night) 60%, var(--night-3) 100%);
  border: 1px solid rgba(183, 166, 255, .24);
  color: #fff;
  box-shadow: var(--sh-2);
  overflow: clip;
  align-items: center;
}

.cap-mock {
  border-radius: var(--r-lg);
  background: var(--night-3);
  border: 1px solid var(--line-night);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 40px -20px rgba(0, 0, 0, .55);
}
.cap-mock__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-night);
}
.cap-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}
.cap-status i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(95, 216, 192, .22);
}
.cap-lamps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cap-lamps span {
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: rgba(95, 216, 192, .12);
  border: 1px solid rgba(95, 216, 192, .28);
  color: var(--mint);
  font: 700 11px/1.2 var(--mono);
}

.cap-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.cap-tile {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
  border: 1px solid rgba(183, 166, 255, .16);
}
.cap-tile--hl {
  background: linear-gradient(155deg, rgba(124, 92, 255, .24), rgba(95, 216, 192, .10));
  border-color: rgba(183, 166, 255, .42);
}
.cap-tile__ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex: none;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  color: var(--gold);
  font-size: 14px;
}
.cap-tile b { display: block; font-size: 13.5px; line-height: 1.3; color: #fff; }
.cap-tile small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.45; color: rgba(255, 255, 255, .66); }

.cap-clean {
  padding: 14px 15px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .32);
  border: 1px solid rgba(255, 201, 74, .24);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cap-clean__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.cap-clean__head b { font-size: 13px; color: var(--gold); }
.cap-clean__head span { font: 600 11px/1.2 var(--mono); color: rgba(255, 255, 255, .64); }
.cap-clean__pills {
  display: flex;
  flex-wrap: wrap;
  flex-wrap: balance;
  gap: 6px;
}
.cap-clean__pills s {
  text-decoration: line-through;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: rgba(255, 107, 91, .14);
  border: 1px solid rgba(255, 107, 91, .28);
  color: #ffada4;
  font-size: 11.5px;
}
.cap-clean__ok {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--mint);
}

.cap-guide {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.cap-guide h3 {
  margin: 0;
  font: 900 clamp(22px, 2.3vw, 30px)/1.16 var(--display);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.cap-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.cap-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line-night);
}
.cap-steps em {
  font-style: normal;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 201, 74, .16);
  border: 1px solid rgba(255, 201, 74, .4);
  color: var(--gold);
  font: 800 13px/1 var(--mono);
}
.cap-steps b { display: block; font-size: 14.5px; line-height: 1.35; color: #fff; margin-bottom: 3px; }
.cap-steps p { margin: 0; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .74); text-wrap: pretty; }

.cap-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cap-cta .btn { min-height: 48px; }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 18px;
  margin-top: 18px;
}
.cap-card {
  container: cap-card / inline-size;
  grid-row: span 3;
  display: grid;
  grid-template-rows: auto auto 1fr;
  grid-template-rows: subgrid;
  row-gap: 8px;
  padding: 24px 24px 22px;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s ease;
}
.cap-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, .32);
  box-shadow: var(--sh-2);
}
.cap-card__tag {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 800 11.5px/1.2 var(--mono);
  letter-spacing: .08em;
  color: var(--violet);
}
.cap-card h3 {
  margin: 0;
  font: 900 clamp(17px, 6cqi, 20px)/1.28 var(--display);
  color: var(--ink);
  text-wrap: balance;
}
.cap-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--ink-2);
  text-wrap: pretty;
}

.cap-tags {
  display: flex;
  flex-wrap: wrap;
  flex-wrap: balance;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.cap-tags li {
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
}

.cap-notice {
  margin: 14px 0 0;
  padding: 13px 18px;
  border-radius: var(--r-md);
  background: rgba(22, 19, 47, .04);
  border: 1px dashed var(--line-strong);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-2);
  text-align: center;
  text-wrap: pretty;
}

/* ============================================================
   QUICK START（大号描边数字 + 桌面横向法阵连线 + 午夜代码块）
   ============================================================ */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 28px;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  transition: transform .38s var(--ease), box-shadow .38s var(--ease), border-color .25s ease;
}
.step:nth-child(2) { transition-delay: .08s; }
.step:nth-child(3) { transition-delay: .16s; }
.step.reveal.is-in:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, .32);
  box-shadow: var(--sh-2);
}

/* 桌面横向连接 01 → 02 → 03 的细法阵节点桥 */
.step:not(:last-child)::after {
  content: "✦";
  position: absolute;
  z-index: 3;
  top: 40px;
  right: -23px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid rgba(124, 92, 255, .34);
  box-shadow: var(--sh-1);
  color: var(--violet);
  font-size: 11px;
  line-height: 1;
  pointer-events: none;
}

.step__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.step__num {
  font: 900 48px/.92 var(--display);
  letter-spacing: -.03em;
  color: transparent;
  -webkit-text-stroke: 1.6px var(--violet);
  flex: none;
}
.step__line {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(124, 92, 255, .38) 0 5px, transparent 5px 9px);
}
.step__sigil {
  flex: none;
  font-style: normal;
  color: var(--gold-deep);
  font-size: 14px;
}

.step h3 {
  margin: 0 0 8px;
  font: 900 clamp(20px, 1.8vw, 24px)/1.2 var(--display);
  letter-spacing: -.015em;
  color: var(--ink);
}
.step p {
  margin: 0 0 14px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.68;
}
.step > .link { margin-top: auto; align-self: flex-start; }
.step__note { margin-top: auto !important; margin-bottom: 0 !important; font-size: 13px !important; color: var(--ink-3) !important; }

.urlrow {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 11px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.chip {
  align-self: flex-start;
  max-width: 100%;
  padding: 7px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--ink);
  font: 600 12.5px/1.2 var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.chip:hover {
  background: var(--night);
  color: var(--gold);
  border-color: var(--night);
}

/* 统一午夜代码块规范：--night-3 底 + 顶部三点窗口栏 + 右上复制按钮 + 紫/金/薄荷语法高亮 */
.codebox {
  border-radius: var(--r-lg);
  background: var(--night-3);
  border: 1px solid var(--line-night);
  box-shadow: var(--sh-2);
  color: #fff;
  overflow: hidden;
}
.codebox__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid var(--line-night);
}
.codebox__win {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  min-width: 0;
}
.codebox__dots { display: flex; gap: 6px; flex: none; }
.codebox__dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff6b5b; }
.codebox__dots i:nth-child(2) { background: var(--gold); }
.codebox__dots i:nth-child(3) { background: var(--mint); }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 3px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(183, 166, 255, .14);
}
.tab {
  padding: 7px 14px;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  color: rgba(255, 255, 255, .66);
  font-size: 12.5px;
  font-weight: 700;
  transition: background-color .25s ease, color .25s ease;
}
.tab:hover { color: #fff; }
.tab.is-on { background: var(--violet); color: #fff; }

.codebox__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.keybox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 4px 3px 13px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(183, 166, 255, .16);
  font: 600 11px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--violet-2);
}
.keybox input {
  width: 196px;
  padding: 7px 12px;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font: 12.5px/1.2 var(--mono);
}
.keybox input::placeholder { color: rgba(255, 255, 255, .38); }

.codebox__code {
  margin: 0;
  padding: 24px 26px;
  overflow-x: auto;
  font: 14px/1.75 var(--mono);
  color: #ece9ff;
}
.codebox__code code { background: none; padding: 0; font-size: inherit; color: inherit; }
.codebox__code .k { color: var(--gold); font-weight: 600; }
.codebox__code .s { color: var(--mint); }
.codebox__code .c { color: var(--violet-2); }

.codebox__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 24px;
  border-top: 1px solid var(--line-night);
  background: rgba(255, 255, 255, .02);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .58);
}
.codebox__proto {
  font: 600 10.5px/1 var(--mono);
  letter-spacing: .14em;
  color: rgba(183, 166, 255, .55);
}

/* ============================================================
   PRICING（「价目魔典」：精致计算器胶囊 + 表头 + 色阶徽章 + 积分标记）
   ============================================================ */
.calc-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  flex-wrap: wrap;
  padding: 14px 20px;
  margin-bottom: 16px;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: var(--sh-1);
}
.calc {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.calc__star {
  font-style: normal;
  color: var(--gold-deep);
  font-size: 15px;
}
.calc__field {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px 4px 14px;
  border-radius: var(--r-pill);
  background: var(--night);
  border: 1px solid rgba(183, 166, 255, .28);
  color: var(--gold);
  font: 700 16px/1.2 var(--mono);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.calc__field input {
  width: 68px;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
}
.calc__field input:focus-visible { outline: none; }
.calc__field:focus-within { outline: 3px solid var(--violet); outline-offset: 2px; }

.calc-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* 倍率色阶徽章（≤0.5x 薄荷、≤1x 紫、>1x 金、积分特标） */
.mult-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font: 700 12px/1.25 var(--mono);
  letter-spacing: .02em;
  white-space: nowrap;
}
.mult-badge--mint {
  background: rgba(95, 216, 192, .22);
  border: 1px solid rgba(22, 148, 122, .35);
  color: #0b5d4b;
}
.mult-badge--violet {
  background: rgba(124, 92, 255, .13);
  border: 1px solid rgba(124, 92, 255, .32);
  color: #4d2fd6;
}
.mult-badge--gold {
  background: rgba(255, 201, 74, .28);
  border: 1px solid rgba(224, 165, 38, .55);
  color: #5e3d00;
}
.mult-badge--credit {
  background: var(--gold-foil);
  border: 1px solid rgba(224, 165, 38, .65);
  color: var(--ink);
  font-weight: 800;
}

/* 价目魔典账本框 */
.grimoire-ledger {
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: var(--sh-2);
  overflow: hidden;
}
.rates-head {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) 1fr .9fr 1.1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: linear-gradient(90deg, var(--night), var(--night-2));
  border-bottom: 1px solid var(--line-night);
  color: rgba(255, 255, 255, .86);
  font: 700 11.5px/1.2 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.rates-head span:last-child { text-align: right; }

.rates {
  margin: 0;
  padding: 0;
  list-style: none;
}
.rate {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) 1fr .9fr 1.1fr;
  align-items: center;
  gap: 16px;
  padding: 17px 24px;
  border-bottom: 1px solid var(--line);
  transition: background-color .22s ease;
}
.rate:last-child { border-bottom: 0; }
.rate::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--violet);
  opacity: 0;
  transition: opacity .22s ease;
}
.rate:hover { background: rgba(124, 92, 255, .055); }
.rate:hover::before { opacity: 1; }

/* 「积分」分组显著标记 */
.rate--credit {
  background: linear-gradient(90deg, rgba(255, 201, 74, .14), rgba(255, 201, 74, .03) 65%);
}
.rate--credit::before {
  background: var(--gold-deep);
  opacity: 1;
}
.rate--credit:hover {
  background: linear-gradient(90deg, rgba(255, 201, 74, .22), rgba(255, 201, 74, .07) 75%);
}

.rate__name {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.rate__name > i {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--pc);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 18%, transparent);
}
.rate__name > span { min-width: 0; flex: 1; }
.rate__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.35;
  color: var(--ink);
}
.rate__flag {
  font-style: normal;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 201, 74, .22);
  border: 1px solid rgba(224, 165, 38, .5);
  color: #634000;
  font: 700 10.5px/1.3 var(--mono);
}
.rate__name small {
  display: block;
  margin-top: 3px;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-3);
}

.rate__plat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 1px solid var(--line);
  font: 600 12px/1.2 var(--mono);
  color: var(--ink-2);
}
.rate__plat b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pc);
}

.rate__mult .mult-badge {
  font-size: 14px;
  padding: 5px 13px;
}

.rate__price {
  text-align: right;
  font: 700 17px/1.2 var(--mono);
}
.rate__price-lbl { display: none; }
.rate__price b { color: var(--ink); }
.rate--credit .rate__price b { color: #7a5000; }
.rate__price b small {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  margin-left: 2px;
}

.rates__note {
  margin: 14px 0 0;
  width: 100%;
  max-width: none;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--ink-2);
  text-wrap: pretty;
}
@media (min-width: 480px) {
  #rateUpdated { white-space: nowrap; }
}

/* ============================================================
   OUTRO（午夜星空渐变底 + 滚动驱动大标题 + 物理魔法碎片）
   ============================================================ */
.outro {
  position: relative;
  height: 152vh;
  max-width: calc(var(--maxw) + 2 * var(--pad));
  margin: var(--sec-y) auto 0;
  padding: 0 var(--pad);
}
.outro__sticky {
  position: sticky;
  top: 14px;
  height: calc(100vh - 28px);
  height: calc(100svh - 28px);
}
.outro__scene {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: var(--r-xl);
  background:
    var(--stars) 0 0 / 170px 150px,
    var(--stars) 85px 65px / 230px 210px,
    radial-gradient(920px 520px at 50% 108%, rgba(124, 92, 255, .52), transparent 70%),
    radial-gradient(620px 380px at 82% 8%, rgba(255, 201, 74, .18), transparent 68%),
    linear-gradient(180deg, var(--night-3) 0%, var(--night) 52%, #241c63 100%);
  border: 1px solid var(--line-night);
  box-shadow: 0 28px 72px -24px rgba(14, 12, 41, .55);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px 128px;
  opacity: var(--scene-a, 1);
  transform: scale(var(--scene-s, 1));
}
.outro__field { position: absolute; inset: 0; width: 100%; height: 100%; }
.outro__cross {
  position: absolute;
  z-index: 1;
  color: var(--gold);
  font-size: 20px;
  pointer-events: none;
  text-shadow: 0 0 14px rgba(255, 201, 74, .55);
  opacity: var(--a, .8);
  transform: scale(var(--s, 1)) rotate(var(--r, 0deg));
}
.outro__cross:nth-of-type(1) { left: 11%; top: 17%; }
.outro__cross:nth-of-type(2) { right: 13%; top: 20%; font-size: 28px; }
.outro__cross:nth-of-type(3) { left: 20%; bottom: 32%; font-size: 16px; color: var(--violet-2); }
.outro__cross:nth-of-type(4) { right: 22%; bottom: 36%; }
.outro__cross:nth-of-type(5) { left: 50%; top: 11%; font-size: 14px; }

.outro__sub {
  position: relative;
  z-index: 2;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line-night);
  font: 600 11.5px/1.2 var(--mono);
  letter-spacing: .18em;
  color: var(--violet-2);
  opacity: var(--a, 1);
  transform: translateY(var(--y, 0));
  pointer-events: none;
}
.outro__title {
  position: relative;
  z-index: 2;
  margin: 0;
  width: 100%;
  height: 2.2em;
  font: 900 clamp(34px, 6.4vw, 96px)/1.04 var(--display);
  letter-spacing: -.035em;
  pointer-events: none;
}
.outro__set {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.outro__set > span { display: block; white-space: nowrap; }
.outro__set > span:last-child { color: var(--gold); }
.outro__set .oc {
  display: inline-block;
  white-space: pre;
  opacity: 0;
  transform: translateY(96%) rotate(calc(var(--turn, 1) * 14deg));
  transition: transform .58s var(--ease), opacity .42s ease;
  transition-delay: calc(var(--k, 0) * 18ms);
}
.outro__set.is-in .oc { opacity: 1; transform: none; }
.outro__set.is-out .oc {
  opacity: 0;
  transform: translateY(-96%) rotate(calc(var(--turn, 1) * -12deg));
  transition-duration: .42s, .3s;
  transition-delay: calc(var(--k, 0) * 9ms);
}

.outro__btn {
  position: relative;
  z-index: 3;
  margin-top: 32px;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity .45s ease, transform .55s var(--ease), box-shadow .35s ease;
}
.outro__btn.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.outro__btn.is-peak {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 4px rgba(255, 201, 74, .22), 0 16px 38px -8px rgba(255, 201, 74, .65);
}
.outro__hint {
  position: relative;
  z-index: 2;
  margin: 18px 0 0;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: rgba(14, 12, 41, .56);
  border: 1px solid rgba(183, 166, 255, .18);
  font: 600 11px/1.3 var(--mono);
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .68);
  pointer-events: none;
}

/* ============================================================
   FOOTER（与新 Token 对齐，巨字不溢出）
   ============================================================ */
.foot {
  container-type: inline-size;
  max-width: calc(var(--maxw) + 2 * var(--pad));
  margin-inline: auto;
  padding: 84px var(--pad) 32px;
  overflow: hidden;
}
.foot__top {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-strong);
}
.foot__brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  max-width: 420px;
}
.foot__brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex: none;
  box-shadow: var(--sh-1);
}
.foot__brand p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.foot__cols { display: flex; gap: clamp(28px, 5vw, 80px); flex-wrap: wrap; }
.foot__cols div { display: flex; flex-direction: column; gap: 8px; }
.foot__cols p {
  margin: 0 0 4px;
  font: 700 11px/1.2 var(--mono);
  letter-spacing: .14em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.foot__cols a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  transition: color .25s ease;
}
.foot__cols a:hover { color: var(--violet); }

.foot__giant {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 28px 0 14px;
  padding: 6px 0;
  font: 900 clamp(28px, 10.5vw, 146px)/.86 var(--display);
  letter-spacing: -.02em;
  white-space: nowrap;
  color: var(--ink);
  user-select: none;
}
@supports (font-size: 1cqw) {
  .foot__giant {
    font-size: 11.8cqw;
  }
}
.foot__giant .gc {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  transition: transform .6s var(--ease), opacity .45s ease, color .25s ease;
  transition-delay: calc(var(--i) * 32ms);
}
.foot__giant.is-in .gc { transform: none; opacity: 1; }
.foot__giant .gc:hover {
  color: var(--violet);
  transform: translateY(-6%);
  transition-delay: 0s;
}

.foot__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}
.foot__bottom a {
  font-weight: 700;
  color: var(--violet);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 28px;
  max-width: calc(100vw - 32px);
  padding: 11px 20px;
  border-radius: var(--r-pill);
  background: var(--night);
  border: 1px solid var(--line-night);
  box-shadow: var(--sh-glow);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  transform: translate(-50%, 24px);
  opacity: 0;
  transition: transform .4s var(--ease), opacity .28s ease;
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ============================================================
   RESPONSIVE（1024 / 768 / 390 全断点无溢出）
   ============================================================ */
@media (max-width: 1080px) {
  .hdr__assist { padding: 0 13px; font-size: 13px; }
  .hero {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
    gap: 18px 24px;
  }
  .hero__title { font-size: clamp(34px, 4.3vw, 54px); }
  .circle { --cw: min(35vw, 370px); }
}

@media (max-width: 960px) {
  .hdr__assist { display: none; }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 96px;
    gap: 28px;
  }
  .circle {
    --cw: min(64vw, 340px);
    grid-row: 1;
    margin: 10px auto 4px;
  }
  .card,
  .card--span-7,
  .card--span-5 { grid-column: span 12; }
  .card--wide { flex-direction: column; }
  .card--wide .card__meta { padding: 20px 26px 26px; }
  .term { margin: 22px 22px 0; }
  .ast-board { grid-template-columns: 1fr; }
  .ast-strip { grid-template-columns: 1fr; gap: 12px; }
  .cap-stage { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr; gap: 12px; }
  .cap-card { grid-row: auto; grid-template-rows: auto auto auto; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .step:not(:last-child)::after { display: none; }
}

@media (max-width: 680px) {
  .hdr { top: 10px; }
  .hdr__brand { height: 42px; padding: 4px 12px 4px 4px; gap: 8px; }
  .hdr__brand img { width: 32px; height: 32px; }
  .hdr__brand span { font-size: 14px; }
  .hdr__brand i { display: none; }
  .hdr__assist { display: none; }
  .hdr__pill { height: 42px; padding: 0 14px; font-size: 13px; }
  .hdr__round { width: 42px; height: 42px; font-size: 15px; }
  .hdr__menu { height: 42px; padding: 0 8px 0 14px; gap: 8px; font-size: 11px; }
  .dots { width: 24px; height: 24px; }

  .hero { padding-top: 74px; gap: 20px; }
  .circle { --cw: min(62vw, 244px); margin: 8px auto 0; }
  .orb b { padding: 5px 10px 5px 20px; font-size: 11.5px; }
  .orb b::before { left: 7px; width: 7px; height: 7px; margin-top: -3.5px; }

  .hero__title {
    font-size: clamp(28px, 8.2vw, 36px);
    line-height: 1.12;
  }
  .hero__title .line { white-space: normal; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .baseurl { width: 100%; justify-content: space-between; }

  .hero__foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero__facts {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .hero__facts li {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 0 0 0 10px;
    font-size: 11.5px;
  }
  .hero__facts li:first-child { border-left: 0; padding-left: 0; }

  .card__meta { padding: 18px 20px 22px; }
  .suite { padding: 18px 18px 4px; }
  .ward { padding: 22px 18px 8px; gap: 18px; }
  .ward__tags { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .ward__tags li { justify-content: center; }
  .term { margin: 16px 16px 0; }
  .term__body { padding: 14px 16px; font-size: 12.5px; }

  .ast-pane { padding: 14px; }
  .ast-hosts { grid-template-columns: 1fr; }
  .ast-metrics { grid-template-columns: 1fr; }
  .ast-remote { grid-template-columns: 1fr; text-align: center; }
  .ast-qr { width: 132px; margin: 0 auto; }
  .ast-dl__btns .btn { flex: 1 1 100%; }
  .cap-mock { padding: 14px; }
  .cap-tiles { grid-template-columns: 1fr; }
  .cap-cta .btn { flex: 1 1 100%; justify-content: center; }

  .codebox__top { padding: 12px; }
  .codebox__tools { width: 100%; justify-content: space-between; }
  .keybox { flex: 1 1 180px; }
  .keybox input { width: 100%; min-width: 0; }
  .codebox__code { padding: 18px 16px; font-size: 12.5px; white-space: pre-wrap; word-break: break-all; }
  .codebox__foot { padding: 10px 16px; }
  .codebox__proto { display: none; }

  /* 移动端价目魔典：两行卡片式，绝不横向溢出 */
  .calc-bar { padding: 14px 16px; }
  .calc-legend { gap: 6px; }
  .calc-legend .mult-badge { font-size: 11px; padding: 3px 8px; }
  .grimoire-ledger {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }
  .rates-head { display: none; }
  .rates {
    display: grid;
    gap: 10px;
  }
  .rate {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name mult"
      "plat price";
    align-items: center;
    gap: 10px 12px;
    padding: 15px 16px;
    border-radius: var(--r-md);
    background: var(--paper);
    border: 1px solid var(--line-strong);
    box-shadow: var(--sh-1);
    overflow: hidden;
  }
  .rate:last-child { border-bottom: 1px solid var(--line-strong); }
  .rate--credit {
    border-color: rgba(224, 165, 38, .55);
    background: linear-gradient(135deg, rgba(255, 227, 161, .28), var(--paper) 65%);
  }
  .rate__name { grid-area: name; }
  .rate__title { font-size: 14.5px; }
  .rate__mult { grid-area: mult; justify-self: end; align-self: start; }
  .rate__mult .mult-badge { font-size: 12.5px; padding: 4px 10px; }
  .rate__plat { grid-area: plat; font-size: 11.5px; }
  .rate__price {
    grid-area: price;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-size: 15.5px;
  }
  .rate__price-lbl {
    display: inline;
    font: 600 11.5px/1 var(--sans);
    color: var(--ink-3);
  }

  .outro { height: 132vh; }
  .outro__scene { padding: 0 18px 104px; }
  .outro__title { font-size: clamp(28px, 8.6vw, 44px); height: 2.5em; }
  .outro__set > span { white-space: normal; }
  .outro__btn { min-height: 48px; padding: 0 22px; font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .copy-tip, .copy-btn, .ast-tab {
    transition: opacity .15s ease, color .15s ease, background-color .15s ease, border-color .15s ease !important;
  }
  [data-split] .ch, .foot__giant .gc, .reveal, .suite__tile {
    opacity: 1 !important;
    transform: none !important;
  }
}
