﻿/* ============================================================================
   bre管家 · 用户页面
   设计语言：暖纸底 + 墨色字 + 朱砂点缀；细线栅格；等宽小标签做大标题的对照
   ========================================================================== */

:root {
  --paper: #f2efe9;
  --paper-2: #eae6df;
  --card: #fbf9f5;
  --ink: #14161a;
  --ink-2: #2c3037;
  --muted: #6d727b;
  --muted-2: #8b909a;
  --line: rgba(20, 22, 26, .12);
  --line-soft: rgba(20, 22, 26, .07);
  --accent: #e8401c;
  --accent-deep: #c22f10;
  --accent-soft: #fdece7;
  --ok: #0f7a58;
  --warn: #b06212;
  --bad: #c0392b;
  --radius: 18px;
  --radius-sm: 10px;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, "SF Mono", monospace;
  --sans: "Inter", "Segoe UI Variable Display", "Segoe UI", "HarmonyOS Sans SC",
          "PingFang SC", "Microsoft YaHei UI", system-ui, sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #fff; }

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

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

code, pre, kbd { font-family: var(--mono); }

/* ---------------------------------------------------------------- 背景 */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg .grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
}
.bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: .5;
  will-change: transform;
}
.bg .orb-a {
  width: 46vw; height: 46vw;
  left: -14vw; top: -18vw;
  background: radial-gradient(circle at 35% 35%, #ffd9c9, transparent 62%);
  animation: drift-a 26s var(--ease) infinite alternate;
}
.bg .orb-b {
  width: 38vw; height: 38vw;
  right: -12vw; top: 4vw;
  background: radial-gradient(circle at 60% 40%, #cfd8ff, transparent 64%);
  animation: drift-b 32s var(--ease) infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(6vw, 7vh, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-5vw, 9vh, 0) scale(.94); } }

/* ---------------------------------------------------------------- 导航 */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 56px);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -.02em;
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: -.03em;
  transform: translateY(4px);
  box-shadow: 0 6px 16px rgba(20, 22, 26, .18);
}
.brand-name { font-size: 17px; }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  position: relative;
  padding: 7px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  color: var(--muted);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(20, 22, 26, .05); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 3px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.nav-status .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(15, 122, 88, .14);
}
.nav-status[data-state="err"] .dot { background: var(--bad); box-shadow: 0 0 0 4px rgba(192, 57, 43, .14); }
.nav-status[data-state="busy"] .dot { background: var(--warn); animation: pulse 1.1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------------------------------------------------------------- 容器 */

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 56px);
}

/* ---------------------------------------------------------------- 首屏 */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  padding: clamp(52px, 9vh, 108px) 0 clamp(38px, 6vh, 64px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--ink);
  opacity: .35;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 6.4vw, 82px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 600;
}
.hero h1 .soft {
  display: block;
  margin-top: .06em;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: .86em;
  letter-spacing: -.01em;
  color: var(--ink-2);
}
.hero h1 .accent { color: var(--accent); }

.lede {
  max-width: 46ch;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(14.5px, 1.35vw, 16.5px);
  line-height: 1.85;
}
.lede b { color: var(--ink); font-weight: 600; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 6px;
}
.side-card {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  min-width: 0;
}
.side-card .k {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.side-card .v {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink);
  word-break: break-all;
}
.side-card .v code { font-size: 13px; }
.side-card .v .copy-mini { margin-left: 8px; }

/* ---------------------------------------------------------------- 按钮 */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 560;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease),
              background .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease);
  will-change: transform;
}
.btn:focus-visible,
.input:focus-visible,
.copy:focus-visible,
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn.primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(20, 22, 26, .55);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(20, 22, 26, .6); }
.btn.primary:active { transform: translateY(0); }
.btn.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .22) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn.primary:hover::after { transform: translateX(120%); }

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-2);
}
.btn.ghost:hover { background: rgba(20, 22, 26, .04); border-color: rgba(20, 22, 26, .22); }

.btn.accent { background: var(--accent); color: #fff; box-shadow: 0 10px 26px -12px rgba(232, 64, 28, .6); }
.btn.accent:hover { background: var(--accent-deep); transform: translateY(-2px); }

.btn[disabled] { opacity: .55; pointer-events: none; }

.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------------------------------------------------------------- 走马灯 */

.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin: 0 0 clamp(24px, 4vh, 38px);
  padding: 11px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee .track {
  display: flex;
  width: max-content;
  animation: slide 40s linear infinite;
}
.marquee:hover .track { animation-play-state: paused; }
.marquee .track > span {
  padding-right: 26px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(20, 22, 26, .4);
  white-space: nowrap;
}
.marquee .track > span.on { color: var(--accent); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- 指标条 */

.ticker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(46px, 7vh, 78px);
}
.ticker div {
  padding: 18px 0 16px 20px;
  border-left: 1px solid var(--line-soft);
}
.ticker div:first-child { border-left: 0; padding-left: 0; }
.ticker .idx {
  display: block;
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--muted-2);
}
.ticker b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.012em;
}
.ticker span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- 章节 */

.section {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(30px, 4.6vh, 48px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 84px;
}
.section:first-of-type { border-top: 0; }

.sec-head { position: sticky; top: 92px; align-self: start; }
.sec-head::after { content: ""; display: block; width: 1px; height: 26px; margin-top: 12px; background: var(--line); }
.sec-num {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--accent);
}
.sec-name {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.sec-sub {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted-2);
}

.sec-body { min-width: 0; }

.title {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.25;
}
.desc { margin: 0 0 20px; color: var(--muted); max-width: 62ch; }
.desc b { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- 表单 */

.form-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}
.field { position: relative; flex: 1 1 260px; min-width: 0; }
.field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--muted);
}
.input {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.input::placeholder { color: #a8adb6; }
.input:hover { border-color: rgba(20, 22, 26, .22); }
.input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(20, 22, 26, .07);
}
.input.mono { font-family: var(--mono); font-size: 13px; letter-spacing: -.01em; }

.form-row .btn { flex: 0 0 auto; align-self: flex-end; height: 47px; }

.note {
  margin: 12px 0 0;
  min-height: 20px;
  font-size: 12.5px;
  color: var(--muted);
}
.note.ok { color: var(--ok); }
.note.bad { color: var(--bad); }

/* ---------------------------------------------------------------- 领取结果 */

.receipt {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--card));
  overflow: hidden;
  animation: rise .6s var(--ease-out) both;
}
.receipt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.receipt-body { padding: 16px; }
.token-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.token-line code {
  flex: 1 1 300px;
  max-width: 560px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: #8a2a12;
  font-size: 13px;
  letter-spacing: .02em;
  word-break: break-all;
}
.token-line code.hidden-token { letter-spacing: .04em; }
.token-line code.revealed { letter-spacing: 0; }
.receipt-hint {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.receipt-hint::before {
  content: "i";
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 16px; height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(20, 22, 26, 0.08);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  font-family: var(--mono);
  font-style: italic;
}

/* ---------------------------------------------------------------- 小按钮 */

.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12.5px;
  color: var(--ink-2);
  transition: background .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.copy:hover { border-color: rgba(20, 22, 26, .25); background: rgba(20, 22, 26, .03); }
.copy:active { transform: scale(.97); }
.copy.done { border-color: rgba(15, 122, 88, .45); color: var(--ok); background: rgba(15, 122, 88, .07); }
.copy svg { width: 14px; height: 14px; }

.copy-mini {
  padding: 3px 8px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.copy-mini:hover { color: var(--accent); border-color: rgba(232, 64, 28, .4); }

/* ---------------------------------------------------------------- 额度卡 */

.quota {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #fff, var(--card));
}
.ring { position: relative; width: 170px; height: 170px; }
.ring svg { transform: rotate(-90deg); overflow: visible; }
.ring .track { fill: none; stroke: rgba(20, 22, 26, .08); stroke-width: 9; }
.ring .bar {
  fill: none;
  stroke: var(--accent);
  stroke-width: 9;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.1s var(--ease-out), stroke .4s linear;
}
.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.ring-center .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.ring-center .value {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.ring-center .unit { font-size: 11px; color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.fact span {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.fact strong {
  display: block;
  margin-top: 3px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.boxes { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.boxes .empty { font-size: 12.5px; color: var(--muted); }
.mailbox {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 74px;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fff;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.mailbox:hover { border-color: var(--line); transform: translateX(2px); }
.mailbox code { font-size: 12.5px; color: var(--ink-2); word-break: break-all; }
.mailbox .baltrack {
  height: 5px;
  border-radius: 999px;
  background: rgba(20, 22, 26, .07);
  overflow: hidden;
}
.mailbox .balfill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ok);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s var(--ease-out);
}
.mailbox .balnum {
  font-size: 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.mailbox .balnum.pending { color: var(--muted-2); }
.mailbox.dead { opacity: .62; }
.mailbox.dead .balfill { background: var(--bad); }
.mailbox.dead code { text-decoration: line-through; text-decoration-color: rgba(192, 57, 43, .5); }

/* ---------------------------------------------------------------- 代码 / 标签页 */

.tabs {
  position: relative;
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .7);
}
.tab {
  position: relative;
  z-index: 1;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
  transition: color .3s var(--ease);
}
.tab[aria-selected="true"] { color: #fff; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"]:hover { color: #fff; }
.tabs .indicator {
  position: absolute;
  top: 4px; bottom: 4px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform .42s var(--ease), width .42s var(--ease);
  will-change: transform, width;
}

.code-card {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #16181d;
  overflow: hidden;
  box-shadow: 0 24px 48px -32px rgba(20, 22, 26, .55);
}
.code-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.code-head .lights { display: inline-flex; gap: 5px; }
.code-head .lights i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}
.code-head .filename {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .42);
}
.code-head .copy {
  margin-left: auto;
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .78);
}
.code-head .copy:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.code-head .copy.done { color: #7ee2b8; border-color: rgba(126, 226, 184, .45); }
.code-body {
  margin: 0;
  padding: 16px 18px 20px;
  font-size: 12.8px;
  line-height: 1.75;
  color: #e8eaef;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  max-height: 420px;
}
.code-body::-webkit-scrollbar { width: 10px; height: 10px; }
.code-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 999px; }
.code-body .c { color: #7c8592; font-style: italic; }
.code-body .s { color: #9fd8ae; }
.code-body .k { color: #f0a982; }
.code-body .p { color: #8fb8ff; }

.endpoint {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(20, 22, 26, .2);
  background: rgba(255, 255, 255, .55);
  font-size: 12.5px;
}
.endpoint .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.endpoint code { font-size: 13px; color: var(--ink); word-break: break-all; }

/* ---------------------------------------------------------------- 提示词 */

.prompt-wrap {
  position: relative;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.prompt-wrap::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 56px;
  height: 90px;
  background: linear-gradient(to bottom, transparent, #fff 78%);
  pointer-events: none;
  transition: opacity .4s var(--ease);
}
.prompt-wrap.open::after { opacity: 0; }
.prompt {
  margin: 0;
  padding: 20px;
  max-height: 262px;
  overflow: hidden;
  font-size: 12.8px;
  line-height: 1.8;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-word;
  transition: max-height .6s var(--ease);
}
.prompt-wrap.open .prompt { max-height: 1600px; overflow-y: auto; }
.prompt-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line-soft);
  background: var(--card);
}
.prompt-bar .meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-right: auto;
}
.toggle {
  font-size: 12.5px;
  color: var(--muted);
  padding: 6px 4px;
  transition: color .2s var(--ease);
}
.toggle:hover { color: var(--accent); }

/* ---------------------------------------------------------------- 入场 & 揭示 */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px) scale(.995); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- 页脚 */

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding: 26px 0 46px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-2);
}
.foot .left { display: inline-flex; align-items: center; gap: 10px; }
.foot code { font-size: 11.5px; }
.foot a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.foot a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------------------------------------------------------------- 阅读进度 */

.progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 40;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #ff8a5c);
  transition: width .12s linear;
  pointer-events: none;
}

/* ---------------------------------------------------------------- 巨型页脚字 */

.bigfoot {
  position: relative;
  z-index: 1;
  margin-top: clamp(40px, 8vh, 90px);
  padding: 0 clamp(18px, 5vw, 56px);
  overflow: hidden;
  line-height: .78;
  user-select: none;
  pointer-events: none;
}
.bigfoot span {
  display: block;
  font-size: clamp(64px, 17vw, 240px);
  font-weight: 600;
  letter-spacing: -.055em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(20, 22, 26, .16);
  transform: translateY(.12em);
}

/* ---------------------------------------------------------------- 响应式 */

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .section { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .sec-head { position: static; display: flex; align-items: baseline; gap: 12px; }
  .sec-sub { display: none; }
  .quota { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .facts { width: 100%; }
}

@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .nav { gap: 12px; padding: 12px 18px; }
  .nav-links { display: none; }
  .nav-status { margin-left: auto; }
  .ticker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticker div { padding: 14px 0 12px 14px; }
  .ticker div:nth-child(3) { border-left: 0; padding-left: 0; }
  .ticker div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .form-row .btn { width: 100%; }
  .hero h1 { letter-spacing: -.035em; }
  .mailbox { grid-template-columns: minmax(0, 1fr) 70px; }
  .mailbox .baltrack { display: none; }
  .code-body { font-size: 12px; padding: 14px; }
  .rings-row { justify-items: start; }
  .hero-side { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .foot { flex-wrap: wrap; gap: 6px 14px; }
  .foot .left { width: 100%; }
  .foot span:last-child { font-size: 11.5px; }
  .quota { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .quota > div:last-child { width: 100%; }
}

/* 01 里的小切换：注册 / 登录 */
.auth-tabs { display: inline-flex; gap: 4px; margin: 0 0 18px; padding: 4px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.5); }
.auth-tab { border: 0; background: none; font: inherit; font-size: 13px; letter-spacing: .04em;
  color: var(--muted); padding: 7px 16px; border-radius: 999px; cursor: pointer; transition: color .2s var(--ease), background .2s var(--ease); }
.auth-tab:hover { color: var(--ink); }
.auth-tab.on { background: var(--ink); color: #fff; }

/* 邮箱 / 密码两列等比 */
.auth-submit { display: flex; }
.auth-submit .btn { width: 100%; justify-content: center; }
.auth-fields { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }

/* 03 接入 · 试听 */
.listen {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
}
.listen-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.listen-label { font-size: 12px; letter-spacing: .14em; color: var(--accent); font-family: var(--mono); }
.listen-note { font-size: 13px; color: var(--muted); }
.listen-audio { height: 36px; min-width: 260px; flex: 1 1 260px; }
@media (max-width: 720px) {
  .listen { padding: 12px 14px; gap: 10px; }
  .listen-audio { min-width: 0; width: 100%; }
}
