:root{
  --y:#ffe500; --y-deep:#f5c400; --y-soft:#fff3a6;
  --ink:#0c0c0b; --ink-2:#171714; --ink-3:#24231f;
  --paper:#f5f2e6; --paper-2:#fffdf2;
  --mute:rgba(12,12,11,.62); --mute-d:#9a9584;
  --red:#ff3d1f; --ok:#19c37d;
  --cut:14px; --line:2px solid var(--ink);
  --f-display:"Chakra Petch","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  --f-mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,"PingFang SC",monospace;
  --ease:cubic-bezier(.2,.7,.1,1);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--y); color:var(--ink);
  font-family:system-ui,-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Segoe UI",sans-serif;
  font-size:15px; line-height:1.6;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
}
a{color:inherit}
code,.mono{font-family:var(--f-mono);font-variant-ligatures:none}
.grid-bg{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image:
    linear-gradient(rgba(12,12,11,.07) 1px,transparent 1px),
    linear-gradient(90deg,rgba(12,12,11,.07) 1px,transparent 1px);
  background-size:24px 24px;
  mask-image:linear-gradient(180deg,rgba(0,0,0,.9),rgba(0,0,0,.55) 60%,rgba(0,0,0,.25));
}
.cut{clip-path:polygon(0 0,calc(100% - var(--cut)) 0,100% var(--cut),100% 100%,0 100%)}
.cut-sm{clip-path:polygon(0 0,calc(100% - 8px) 0,100% 8px,100% 100%,0 100%)}

/* ---------------- nav ---------------- */
.nav{
  position:sticky; top:0; z-index:20;
  display:flex; align-items:center; gap:16px;
  padding:0 20px; height:58px;
  background:var(--ink); color:var(--y);
  border-bottom:2px solid var(--ink);
}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;flex:0 0 auto}
.brand-mark{
  width:28px;height:28px;display:grid;place-items:center;
  background:var(--y);color:var(--ink);font-family:var(--f-display);font-weight:700;font-size:17px;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%);
}
.brand-text{font-family:var(--f-display);font-weight:700;letter-spacing:.14em;font-size:14px}
.brand-text .slash{color:rgba(255,229,0,.45);margin:0 2px}
.nav-ticker{
  flex:1 1 auto; display:flex; gap:22px; overflow:hidden;
  font-family:var(--f-mono); font-size:12px; letter-spacing:.04em; color:rgba(255,229,0,.82);
  white-space:nowrap;
}
.tick i{font-style:normal;color:rgba(255,229,0,.42);margin-right:6px}
.tick b{font-weight:600;color:var(--y)}
.nav-end{flex:0 0 auto}
.live{
  display:inline-flex;align-items:center;gap:7px;
  font-family:var(--f-mono);font-size:11px;letter-spacing:.18em;color:var(--y);
  border:1px solid rgba(255,229,0,.35);padding:4px 9px;border-radius:999px;
}
.live i{width:6px;height:6px;border-radius:50%;background:var(--y);box-shadow:0 0 0 0 rgba(255,229,0,.7);animation:pulse 2s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(255,229,0,.6)}70%{box-shadow:0 0 0 7px rgba(255,229,0,0)}100%{box-shadow:0 0 0 0 rgba(255,229,0,0)}}

/* ---------------- hero ---------------- */
.hero{
  position:relative; z-index:1;
  display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:28px;
  padding:clamp(28px,5vw,60px) clamp(16px,4vw,40px) 10px;
  max-width:1200px; margin:0 auto;
}
.eyebrow{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}
.tag{
  font-family:var(--f-mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;
  border:1.5px solid var(--ink);padding:4px 9px;background:var(--ink);color:var(--y);
}
.tag.ghost{background:transparent;color:var(--ink);border-color:rgba(12,12,11,.35)}
.hero h1{
  font-family:var(--f-display); font-weight:700; letter-spacing:-.02em;
  font-size:clamp(28px,4.2vw,52px); line-height:1.06; margin:0 0 18px;
  text-wrap:balance;
}
.hero h1 .arrow{color:rgba(12,12,11,.32);font-weight:600}
.lede{max-width:640px;font-size:16px;color:rgba(12,12,11,.78);margin:0 0 24px}
.lede b{background:var(--ink);color:var(--y);padding:1px 6px;font-weight:600}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{
  display:inline-flex;align-items:baseline;gap:8px;
  border:1.5px solid rgba(12,12,11,.28); background:rgba(255,253,242,.55);
  padding:7px 11px; font-family:var(--f-mono); font-size:12px;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%);
}
.chip i{font-style:normal;color:var(--mute);letter-spacing:.06em;font-size:11px}
.chip b{font-weight:600}
.chip.warn{border-color:var(--red);color:var(--red)}
.chip.warn b{color:var(--red)}

.hero-side .card{margin-bottom:0}
.ref-handle{
  font-family:var(--f-display);font-size:26px;font-weight:700;margin:6px 0 2px;color:var(--y);
  word-break:break-all;
}

/* ---------------- layout ---------------- */
.wrap{position:relative;z-index:1;max-width:1200px;margin:0 auto;padding:22px clamp(16px,4vw,40px) 80px}
.card{
  background:var(--paper); border:var(--line);
  padding:20px; margin-bottom:16px;
  box-shadow:6px 6px 0 rgba(12,12,11,.16);
}
.card.dark{background:var(--ink);color:var(--y);border-color:var(--ink);box-shadow:none}
.card.dark .mono-label{color:rgba(255,229,0,.5)}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;flex-wrap:wrap}
.card-head h2,.rules h2{
  font-family:var(--f-display);font-size:20px;letter-spacing:.01em;margin:0;font-weight:700;
}
.mono-label{
  display:block;font-family:var(--f-mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--mute);margin:0 0 7px;
}
.req{color:var(--red)}
.fine{font-size:12.5px;color:var(--mute);margin:10px 0 0}
.hint{font-size:13.5px;color:rgba(12,12,11,.72);margin:0 0 14px}
.hint b{color:var(--ink)}
.small{font-size:12px}
.mute{color:var(--mute)}
.center{text-align:center}

/* ---------------- steps ---------------- */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px}
.step-pill{
  text-align:left;cursor:pointer;font:inherit;
  background:rgba(255,253,242,.5); border:var(--line); padding:12px 14px;
  display:grid;gap:2px; transition:background .15s,transform .15s;
  clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,0 100%);
}
.step-pill:hover{background:var(--paper-2)}
.step-pill.active{background:var(--ink);color:var(--y);border-color:var(--ink)}
.step-pill .n{font-family:var(--f-mono);font-size:11px;letter-spacing:.16em;color:var(--mute)}
.step-pill.active .n{color:rgba(255,229,0,.55)}
.step-pill .t{font-family:var(--f-display);font-weight:700;font-size:16px}
.step-pill .d{font-size:12px;color:var(--mute)}
.step-pill.active .d{color:rgba(255,229,0,.6)}

/* ---------------- forms ---------------- */
.input-row{display:flex;gap:8px;align-items:stretch}
input,textarea{
  width:100%; font-size:13.5px; color:var(--ink);
  background:var(--paper-2); border:1.5px solid rgba(12,12,11,.75);
  padding:11px 12px; border-radius:0; outline:none;
}
input::placeholder,textarea::placeholder{color:rgba(12,12,11,.32)}
input:focus,textarea:focus{border-color:var(--ink);box-shadow:inset 0 -3px 0 var(--y-deep)}
textarea{resize:vertical;min-height:96px;line-height:1.7}
.row-btns{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;align-items:center}

.btn{
  font-family:var(--f-mono);font-size:12.5px;letter-spacing:.04em;cursor:pointer;white-space:nowrap;flex:0 0 auto;
  border:1.5px solid var(--ink); padding:9px 15px; background:transparent; color:var(--ink);
  transition:transform .12s var(--ease), box-shadow .12s var(--ease), background .12s;
  clip-path:polygon(0 0,calc(100% - 8px) 0,100% 8px,100% 100%,0 100%);
}
.btn:hover{transform:translate(-1px,-1px);box-shadow:3px 3px 0 rgba(12,12,11,.28)}
.btn:active{transform:translate(0,0);box-shadow:none}
.btn:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
.btn-y{background:var(--ink);color:var(--y);border-color:var(--ink)}
.btn-y:hover{background:var(--ink-2)}
.btn-ghost{background:transparent}
.card.dark .btn-ghost{color:var(--y);border-color:rgba(255,229,0,.45)}
.btn-sm{padding:6px 11px;font-size:11.5px}

/* ---------------- banner ---------------- */
.banner{display:none;margin:0 0 16px;padding:12px 14px;border:var(--line);font-size:13.5px
  ;clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,0 100%)}
.banner.show{display:block}
.banner.ok{background:rgba(25,195,125,.12);border-color:#0f7a4d;color:#0b5c3a}
.banner.warn{background:rgba(245,196,0,.18);border-color:#8a6d00;color:#6b5400}
.banner.err{background:rgba(255,61,31,.12);border-color:var(--red);color:#8f2109}

/* ---------------- stats ---------------- */
.stats{display:flex;flex-wrap:wrap;gap:18px;margin-top:16px;padding-top:14px;border-top:1.5px dashed rgba(12,12,11,.25)}
.stats div{display:grid;gap:2px;min-width:90px}
.stats i{font-style:normal;font-family:var(--f-mono);font-size:10.5px;letter-spacing:.1em;color:var(--mute);text-transform:uppercase}
.stats b{font-family:var(--f-display);font-size:19px;font-weight:700}
.stats .hl b{color:#0b5c3a}

/* ---------------- table ---------------- */
.table-wrap{overflow-x:auto;border:1.5px solid rgba(12,12,11,.75);background:var(--paper-2)}
.tbl{width:100%;border-collapse:collapse;font-size:12.5px;font-family:var(--f-mono)}
.tbl th{
  text-align:left;padding:9px 10px;background:var(--ink);color:var(--y);
  font-weight:600;font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;white-space:nowrap;
}
.tbl td{padding:9px 10px;border-top:1px solid rgba(12,12,11,.12);vertical-align:middle;word-break:break-all}
.tbl tbody tr:hover{background:rgba(255,229,0,.16)}
.tbl a{text-decoration:underline;text-underline-offset:2px}

/* ---------------- tags in tables ---------------- */
.pill{display:inline-block;padding:2px 7px;font-size:10.5px;letter-spacing:.06em;border:1px solid currentColor}
.pill.ok{color:#0b5c3a;background:rgba(25,195,125,.14)}
.pill.no{color:#8f2109;background:rgba(255,61,31,.12)}
.pill.pending{color:#6b5400;background:rgba(245,196,0,.2)}

/* ---------------- rules ---------------- */
.rules{margin-top:24px}
.rules-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 28px;margin-top:14px}
.rules-grid p{margin:0;font-size:13px;color:rgba(255,229,0,.72);line-height:1.65}
.rules-grid b{color:var(--y)}
.rules-grid code{color:var(--y);background:rgba(255,229,0,.12);padding:1px 5px}

/* ---------------- pager + foot ---------------- */
.pager{display:flex;align-items:center;gap:12px;justify-content:flex-end;margin-top:10px}
.foot{margin-top:30px;padding-top:16px;border-top:2px solid rgba(12,12,11,.2);font-size:12px;color:rgba(12,12,11,.6)}
.foot p{margin:0 0 8px}
.foot b{color:var(--ink)}
.foot a{color:var(--ink)}

/* ---------------- panels ---------------- */
.panel{display:none}
.panel.active{display:block;animation:fade .25s var(--ease)}
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* ---------------- responsive ---------------- */
@media (max-width:900px){
  .hero{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr}
  .rules-grid{grid-template-columns:1fr}
  .nav-ticker{display:none}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
}

/* ---------------- 底池状态条 ---------------- */
.statusline{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;
  margin:0 0 16px;border:1.5px solid var(--ink);background:rgba(255,253,242,.6);
  clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,0 100%);
}
.statusline > div{padding:9px 11px;border-right:1px solid rgba(12,12,11,.18)}
.statusline > div:last-child{border-right:0}
.statusline i{display:block;font-style:normal;font-family:var(--f-mono);font-size:10px;letter-spacing:.1em;color:var(--mute);text-transform:uppercase}
.statusline b{font-family:var(--f-mono);font-size:13px;font-weight:600}
.statusline .danger b{color:var(--red)}
.statusline .ok b{color:#0b5c3a}
@media (max-width:900px){.statusline{grid-template-columns:repeat(2,1fr)}.statusline > div:nth-child(2n){border-right:0}}

/* ---------------- 档位 chip ---------------- */
.chip.tier-normal{border-color:#0f7a4d;color:#0b5c3a}
.chip.tier-degraded{border-color:#8a6d00;color:#6b5400}
.chip.tier-stopped{border-color:var(--red);color:var(--red)}

/* ---------------- TG 链接 ---------------- */
.tg{
  font-family:var(--f-mono);font-size:11px;letter-spacing:.08em;color:var(--y);
  border:1px solid rgba(255,229,0,.35);padding:4px 9px;border-radius:999px;text-decoration:none;margin-right:10px;
}
.tg:hover{background:rgba(255,229,0,.12)}

/* ---------------- 监听徽章 ---------------- */
.watch{display:inline-block;margin-left:8px;font-family:var(--f-mono);font-size:11px;color:var(--mute)}
.watch.on{color:#0b5c3a}

/* ---------------- toast ---------------- */
.toasts{position:fixed;right:18px;bottom:18px;z-index:50;display:flex;flex-direction:column;gap:10px;max-width:340px}
.toast{
  background:var(--ink);color:var(--y);border:1.5px solid var(--ink);
  padding:12px 14px;box-shadow:6px 6px 0 rgba(12,12,11,.25);
  clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,0 100%);
  animation:toastIn .25s var(--ease);
}
.toast b{font-family:var(--f-display);font-size:15px;display:block;margin-bottom:3px}
.toast p{margin:0;font-size:12px;color:rgba(255,229,0,.78);line-height:1.5}
.toast a{color:var(--y);text-decoration:underline}
@keyframes toastIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ==========================================================================
   V2：整体圆角 + 字号放大
   （覆盖上面的硬切角与偏小的字号，保留黑黄配色与网格底纹）
   ========================================================================== */
:root{
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
}
body{ font-size:16px; line-height:1.7; }

/* 去掉硬切角，统一用圆角 */
.cut,.cut-sm,.step-pill,.banner,.statusline,.toast,.btn,.tag,.brand-mark,.card{ clip-path:none !important; }

.card{ border-radius:var(--r-lg); padding:22px; }
.card-head h2,.rules h2{ font-size:22px; }
.card-head{ margin-bottom:12px; }

.btn{ border-radius:var(--r-md); font-size:13.5px; padding:10px 17px; }
.btn-sm{ border-radius:var(--r-sm); font-size:12px; padding:7px 12px; }
input,textarea{ border-radius:var(--r-md); font-size:14.5px; padding:12px 14px; }

.step-pill{ border-radius:var(--r-md); padding:14px 16px; }
.step-pill .t{ font-size:17px; }
.step-pill .d{ font-size:12.5px; }
.stats b{ font-size:21px; }
.stats i{ font-size:11px; }
.hint{ font-size:14.5px; line-height:1.75; }
.fine{ font-size:13.5px; }
.mono-label{ font-size:12px; letter-spacing:.1em; }
.lede{ font-size:17px; }
.hero h1{ font-size:clamp(30px,4.6vw,58px); }

.chip{ border-radius:12px; font-size:13px; padding:8px 12px; }
.chip i{ font-size:11.5px; }
.tag{ border-radius:999px; font-size:11.5px; padding:5px 11px; }
.pill{ border-radius:999px; font-size:11.5px; padding:3px 9px; }
.brand-mark{ border-radius:9px; }
.brand-text{ font-size:15px; }
.nav{ height:62px; }

.statusline{ border-radius:var(--r-md); overflow:hidden; }
.statusline b{ font-size:14px; }
.statusline i{ font-size:10.5px; }

.table-wrap{ border-radius:var(--r-md); overflow:hidden; }
.tbl{ font-size:13.5px; }
.tbl th{ font-size:11.5px; padding:12px; }
.tbl td{ font-size:13.5px; padding:12px; }

.banner{ border-radius:var(--r-md); font-size:14.5px; padding:13px 16px; }
.toast{ border-radius:var(--r-md); }
.toast b{ font-size:16px; }
.toast p{ font-size:13px; }
.rules-grid p{ font-size:14px; line-height:1.75; }
.foot{ font-size:13px; }

/* 构建标记（排查缓存用） */
.build{font-family:var(--f-mono);font-size:10px;letter-spacing:.08em;color:rgba(255,229,0,.6);margin-right:10px;border:1px dashed rgba(255,229,0,.35);padding:3px 7px;border-radius:999px}

/* ==========================================================================
   V3：整体再放大一档（约 +15%），并给足行高与留白
   ========================================================================== */
body{ font-size:18px; line-height:1.75; }

.nav{ height:66px; }
.brand-text{ font-size:17px; }
.brand-mark{ width:32px; height:32px; font-size:19px; }
.nav-ticker{ font-size:13.5px; gap:26px; }
.live{ font-size:12px; }

.hero h1{ font-size:clamp(34px,5vw,64px); }
.lede{ font-size:19px; line-height:1.7; }
.eyebrow{ margin-bottom:20px; }
.tag{ font-size:12.5px; padding:6px 13px; }
.chip{ font-size:15px; padding:10px 14px; }
.chip i{ font-size:12.5px; }

.statusline b{ font-size:16.5px; }
.statusline i{ font-size:11.5px; }
.statusline > div{ padding:12px 14px; }
.statusline b{ line-height:1.3; }

.card{ padding:26px; }
.card-head h2,.rules h2{ font-size:26px; }
.mono-label{ font-size:13.5px; margin-bottom:9px; }
.hint{ font-size:16px; line-height:1.8; }
.fine{ font-size:14.5px; }
.small{ font-size:13px; }

.btn{ font-size:15px; padding:12px 20px; }
.btn-sm{ font-size:13px; padding:8px 14px; }
input,textarea{ font-size:16px; padding:14px 16px; }
textarea{ min-height:110px; }

.step-pill{ padding:16px 18px; }
.step-pill .n{ font-size:12.5px; }
.step-pill .t{ font-size:19px; }
.step-pill .d{ font-size:14px; }

.stats b{ font-size:24px; }
.stats i{ font-size:12px; }
.stats{ gap:24px; }

.tbl{ font-size:15px; }
.tbl th{ font-size:12.5px; padding:13px; }
.tbl td{ font-size:15px; padding:13px; }

.banner{ font-size:16px; padding:15px 18px; }
.pill{ font-size:12.5px; padding:4px 10px; }
.toast b{ font-size:18px; }
.toast p{ font-size:14.5px; }
.rules-grid p{ font-size:15.5px; line-height:1.8; }
.foot{ font-size:14px; }
.foot .mono{ font-size:12.5px; }
.build{ font-size:11px; }

/* V3.1：标题别再折行（大写标题给足宽度，字号略收一点） */
.hero{ grid-template-columns:minmax(0,1fr) 320px; gap:26px; }
.hero h1{
  font-size:clamp(30px,3.9vw,52px);
  line-height:1.12;
  white-space:nowrap;
  letter-spacing:-.01em;
}
@media (max-width:1100px){
  .hero h1{ white-space:normal; font-size:clamp(30px,5.2vw,46px); }
}

/* ==========================================================================
   V4：提高对比度（把黄底上的半透明浅灰文字全部改成实色深色）
   ========================================================================== */
:root{
  --mute: #3a372c;      /* 原来的 rgba(12,12,11,.62) 太淡 */
  --mute-d: #5f5947;
  --ink-soft: #24211a;
}

/* 黄底上的所有说明文字 */
.mono-label,
.stats i,
.statusline i,
.chip i,
.step-pill .d,
.fine,
.foot,
.muted,
.mute,
.small.mute{ color:#3a372c; }

.hero h1 .arrow{ color:rgba(12,12,11,.62); }
.lede{ color:#241f16; }
.hint{ color:#2b271e; }
.hint b{ color:var(--ink); }
.foot{ color:#3a372c; }
.foot b{ color:var(--ink); }

/* 选中态 / 深色卡片里的文字 */
.step-pill.active .d{ color:rgba(255,229,0,.9); }
.step-pill.active .n{ color:rgba(255,229,0,.75); }
.card.dark .mono-label{ color:rgba(255,229,0,.78); }
.rules-grid p{ color:rgba(255,229,0,.88); }

/* 顶部黑条里的弱化文字 */
.nav-ticker{ color:rgba(255,229,0,.95); }
.tick i{ color:rgba(255,229,0,.72); }
.build{ color:rgba(255,229,0,.82); border-color:rgba(255,229,0,.5); }

/* 占位符与表格里的次要文字 */
input::placeholder,
textarea::placeholder{ color:rgba(12,12,11,.42); }
.tbl .mute{ color:#3a372c; }

/* 状态条数值在黄底上再压深一点 */
.statusline b{ color:var(--ink); }

/* V4.1：深色卡片里的说明文字要回到亮色，别被上面那条全局规则压暗 */
.card.dark .fine,
.card.dark .hint,
.card.dark .muted,
.card.dark .mute,
.card.dark .small{ color:rgba(255,229,0,.82); }
.card.dark .fine b,
.card.dark .hint b{ color:var(--y); }

/* V4.2：状态条 6 格 */
.statusline{ grid-template-columns:repeat(6,minmax(0,1fr)); }
.statusline > div{ padding:11px 12px; }
.statusline b{ font-size:15.5px; }
.statusline i{ font-size:11px; letter-spacing:.06em; }
@media (max-width:1180px){ .statusline{ grid-template-columns:repeat(3,minmax(0,1fr)); } .statusline > div:nth-child(3n){ border-right:0; } }
@media (max-width:640px){ .statusline{ grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* ==========================================================================
   bibi 主题：黑底 + 金色（贴合 bibiagent.xyz）
   同时补手机端布局
   ========================================================================== */
:root{
  --y:#f5d32c; --y-deep:#d9b800; --y-soft:#ffe98a;
  --ink:#f5d32c; --ink-2:#e8c722; --ink-3:#c9ab16;
  --paper:#0a0a0a; --paper-2:#050505;
  --mute:#b39a20; --mute-d:#8c7a1c;
  --red:#ff5a3c; --ok:#39d98a;
  color-scheme: dark;
}
html, body{ background:#000; }
body{ color:#f5d32c; }
.grid-bg{
  background-image:
    linear-gradient(rgba(245,211,44,.07) 1px,transparent 1px),
    linear-gradient(90deg,rgba(245,211,44,.07) 1px,transparent 1px);
}
.nav{ background:#000; border-bottom:1px solid rgba(245,211,44,.28); color:#f5d32c; }
.brand-mark{ background:#f5d32c; color:#000; }
.brand-text .slash{ color:rgba(245,211,44,.45); }
.nav-ticker{ color:rgba(245,211,44,.9); }
.tick i{ color:rgba(245,211,44,.55); }
.live{ color:#f5d32c; border-color:rgba(245,211,44,.4); }
.live i{ background:#f5d32c; }

.hero h1{ color:#f5d32c; }
.hero h1 .arrow{ color:rgba(245,211,44,.45); }
.lede{ color:rgba(245,211,44,.82); }
.lede b{ background:#f5d32c; color:#000; }

.tag{ background:#f5d32c; color:#000; border-color:#f5d32c; }
.tag.ghost{ background:transparent; color:rgba(245,211,44,.85); border-color:rgba(245,211,44,.35); }

.chip{ background:rgba(245,211,44,.06); border-color:rgba(245,211,44,.28); color:#f5d32c; }
.chip i{ color:rgba(245,211,44,.6); }
.chip.warn{ border-color:#ff5a3c; color:#ff8a75; }

.statusline{ background:rgba(245,211,44,.05); border:1px solid rgba(245,211,44,.28); }
.statusline > div{ border-right:1px solid rgba(245,211,44,.18); }
.statusline i{ color:rgba(245,211,44,.6); }
.statusline b{ color:#f5d32c; }

.card{
  background:#0a0a0a; border:1px solid rgba(245,211,44,.26); color:#f5d32c;
  box-shadow:none;
}
.card.dark{ background:#000; border-color:rgba(245,211,44,.35); }
.card-head h2, .rules h2{ color:#f5d32c; }
.mono-label{ color:rgba(245,211,44,.62); }
.fine, .small.mute, .muted, .mute{ color:rgba(245,211,44,.62); }
.hint{ color:rgba(245,211,44,.75); }
.hint b{ color:#f5d32c; }

input, textarea{ background:#050505; border:1px solid rgba(245,211,44,.35); color:#f5d32c; }
input::placeholder, textarea::placeholder{ color:rgba(245,211,44,.3); }
input:focus, textarea:focus{ border-color:#f5d32c; box-shadow:0 0 0 3px rgba(245,211,44,.14); }

.btn{ border:1px solid rgba(245,211,44,.55); color:#f5d32c; background:transparent; }
.btn:hover{ background:rgba(245,211,44,.08); box-shadow:none; }
.btn-y{ background:#f5d32c; color:#000; border-color:#f5d32c; }
.btn-y:hover{ background:#ffe066; }
.btn:disabled{ opacity:.4; }
.card.dark .btn-ghost{ color:#f5d32c; border-color:rgba(245,211,44,.45); }

.step-pill{ background:#0a0a0a; border:1px solid rgba(245,211,44,.24); color:#f5d32c; }
.step-pill:hover{ background:rgba(245,211,44,.06); }
.step-pill.active{ background:#f5d32c; color:#000; border-color:#f5d32c; }
.step-pill.active .n, .step-pill.active .d{ color:rgba(0,0,0,.62); }
.step-pill .d{ color:rgba(245,211,44,.6); }

.table-wrap{ border:1px solid rgba(245,211,44,.26); background:#050505; }
.tbl th{ background:rgba(245,211,44,.12); color:#f5d32c; border-bottom:1px solid rgba(245,211,44,.25); }
.tbl td{ border-top:1px solid rgba(245,211,44,.12); color:rgba(245,211,44,.9); }
.tbl tbody tr:hover{ background:rgba(245,211,44,.06); }
.pill.ok{ color:#39d98a; background:rgba(57,217,138,.12); }
.pill.no{ color:#ff8a75; background:rgba(255,90,60,.12); }
.pill.pending{ color:#f5d32c; background:rgba(245,211,44,.14); }

.banner.ok{ background:rgba(57,217,138,.1); border-color:#39d98a; color:#9ff0c4; }
.banner.warn{ background:rgba(245,211,44,.1); border-color:#f5d32c; color:#ffe98a; }
.banner.err{ background:rgba(255,90,60,.1); border-color:#ff5a3c; color:#ffb3a6; }

.stats{ border-top-color:rgba(245,211,44,.2); }
.stats i{ color:rgba(245,211,44,.6); }
.stats .hl b{ color:#39d98a; }
.rules-grid p{ color:rgba(245,211,44,.75); }
.rules-grid code{ background:rgba(245,211,44,.1); }
.foot{ color:rgba(245,211,44,.55); border-top-color:rgba(245,211,44,.2); }
.foot b, .foot a{ color:#f5d32c; }
.toast{ background:#f5d32c; color:#000; }
.toast p{ color:rgba(0,0,0,.72); }
.toast a{ color:#000; }
.watch{ color:rgba(245,211,44,.6); }
.watch.on{ color:#39d98a; }
.build{ color:rgba(245,211,44,.7); border-color:rgba(245,211,44,.35); }

/* ---------------- 手机端 ---------------- */
@media (max-width: 760px){
  .nav{ height:54px; padding:0 12px; }
  .brand-text{ font-size:14px; }
  .nav-ticker{ display:none; }
  .hero{ padding:22px 14px 6px; gap:18px; }
  .hero h1{ font-size:clamp(26px,8.6vw,34px); white-space:normal; line-height:1.16; }
  .lede{ font-size:15px; }
  .chip{ font-size:13px; padding:8px 10px; }
  .statusline{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  .statusline > div{ padding:9px 8px; border-right:0; border-bottom:1px solid rgba(245,211,44,.14); }
  .statusline b{ font-size:13.5px; }
  .statusline i{ font-size:10px; }
  .wrap{ padding:16px 14px 60px; }
  .card{ padding:16px; margin-bottom:12px; }
  .card-head h2, .rules h2{ font-size:19px; }
  .steps{ grid-template-columns:1fr; gap:8px; }
  .step-pill{ padding:12px 14px; }
  .row-btns .btn{ flex:1 1 100%; text-align:center; }
  input, textarea, .btn{ font-size:16px; }   /* ≥16px 防止 iOS 聚焦缩放 */
  .tbl{ font-size:13px; }
  .tbl th, .tbl td{ padding:9px 8px; white-space:nowrap; }
  .banner{ font-size:14px; padding:11px 12px; }
  .toasts{ right:10px; left:10px; bottom:10px; max-width:none; }
  .hero-side .card{ margin-top:4px; }
}
@media (max-width: 420px){
  .statusline{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* 手机端修正：单列 + 防挤压 */
@media (max-width: 760px){
  .hero{ grid-template-columns: minmax(0,1fr) !important; }
  .hero h1{ white-space: normal !important; }
  .eyebrow{ flex-wrap: wrap; }
  .tag{ white-space: nowrap; }
  .build{ display: none; }
  .chip{ white-space: nowrap; }
  .chips{ gap: 6px; }
  .hero-side{ margin-top: 4px; }
  .statusline{ grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .statusline > div:nth-child(2n){ border-right: 0; }
  .card-head{ flex-wrap: wrap; }
  .row-btns{ gap: 8px; }
}

@media (max-width: 760px){
  .hero h1{ font-size: clamp(24px, 7.6vw, 30px) !important; word-break: keep-all; overflow-wrap: normal; }
}

/* ============ 实时资金面板：放大 + 高亮 ============ */
.statuspanel{
  margin: 0 0 18px;
  border: 1px solid rgba(245,211,44,.45);
  border-radius: 16px;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(245,211,44,.16), rgba(0,0,0,0) 62%),
    #060604;
  box-shadow: 0 0 0 1px rgba(245,211,44,.08), 0 12px 34px rgba(0,0,0,.65), inset 0 1px 0 rgba(245,211,44,.12);
  overflow: hidden;
}
.status-head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(245,211,44,.22);
  background: rgba(245,211,44,.07);
}
.status-head .live-tag{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--f-mono); font-size:12px; letter-spacing:.18em; color:#f5d32c;
}
.status-head .live-tag i{
  width:7px; height:7px; border-radius:50%; background:#f5d32c;
  box-shadow:0 0 0 0 rgba(245,211,44,.7); animation: pulse 2s infinite;
}
.status-head .mono.small{ color: rgba(245,211,44,.55); font-size:11.5px; }

.statusline{
  border: 0 !important; background: transparent !important; border-radius: 0 !important;
  margin: 0 !important;
  display: grid; grid-template-columns: repeat(6, minmax(0,1fr));
}
.statusline > div{ padding: 15px 16px; border-right: 1px solid rgba(245,211,44,.14); }
.statusline > div:last-child{ border-right: 0; }
.statusline i{ font-size: 11px; letter-spacing:.14em; color: rgba(245,211,44,.62); }
.statusline b{ display:block; margin-top:6px; font-size: 20px; letter-spacing:-.01em; color:#f5d32c; }
.statusline .key{ background: rgba(245,211,44,.05); }
.statusline .key b{ font-size: 25px; color:#ffe066; text-shadow: 0 0 18px rgba(245,211,44,.28); }
.statusline .danger b{ color:#ff6b4a; text-shadow: 0 0 16px rgba(255,107,74,.25); }

@media (max-width: 760px){
  .statuspanel{ border-radius: 14px; }
  .status-head{ padding: 8px 14px; }
  .statusline{ grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .statusline > div{ padding: 12px 12px; border-bottom: 1px solid rgba(245,211,44,.12); }
  .statusline > div:nth-child(2n){ border-right: 0; }
  .statusline b{ font-size: 17px; }
  .statusline .key b{ font-size: 20px; }
}

.statusline b{ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.statusline .key b{ font-size: 22px; }
@media (max-width: 760px){ .statusline .key b{ font-size: 19px; } }

.statusline b .u{ font-size:.6em; font-weight:500; color:rgba(245,211,44,.62); margin-left:2px; letter-spacing:0; }
.statusline .key b{ font-size:23px; }

.statusline .key b{ font-size:19.5px; }
@media (max-width:760px){ .statusline .key b{ font-size:17px; } }

/* 单价 chip 上的档位标签 */
.chip .tier-tag{
  font-style: normal; font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em;
  padding: 2px 7px; border-radius: 999px; border: 1px solid currentColor; margin-left: 8px;
  opacity: .9;
}
.chip.tier-normal{ border-color: rgba(57,217,138,.55); }
.chip.tier-normal .tier-tag{ color:#39d98a; }
.chip.tier-degraded{ border-color: rgba(245,211,44,.6); }
.chip.tier-degraded .tier-tag{ color:#f5d32c; }
.chip.tier-stopped{ border-color: rgba(255,90,60,.6); }
.chip.tier-stopped .tier-tag{ color:#ff6b4a; }

/* ============ 四个核心指标卡片 ============ */
.metrics{
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px;
  margin:0 0 16px;
}
.metric{
  position:relative;
  background: linear-gradient(180deg, rgba(245,211,44,.07), rgba(245,211,44,.02) 60%, rgba(0,0,0,0)), #060604;
  border:1px solid rgba(245,211,44,.28);
  border-radius:14px;
  padding:16px 16px 14px;
  box-shadow: 0 1px 0 rgba(245,211,44,.06) inset, 0 10px 26px rgba(0,0,0,.55);
}
.metric .m-label{
  margin:0 0 8px; font-size:12px; letter-spacing:.08em; color:rgba(245,211,44,.6);
  font-family: var(--f-mono); text-transform:none;
}
.metric .m-value{
  margin:0 0 6px; font-family:var(--f-display); font-weight:700; font-size:26px; line-height:1.1;
  color:#ffe066; letter-spacing:-.01em;
}
.metric .m-note{ margin:0; font-size:12px; line-height:1.5; color:rgba(245,211,44,.55); }
.metric.danger{ border-color:rgba(255,90,60,.55); }
.metric.danger .m-value{ color:#ff6b4a; }
.metrics-foot{
  grid-column:1 / -1; margin:2px 0 0; font-size:11.5px; color:rgba(245,211,44,.45);
  font-family:var(--f-mono); display:flex; align-items:center; gap:7px;
}
.pulse-dot{ width:6px;height:6px;border-radius:50%;background:#39d98a; box-shadow:0 0 0 0 rgba(57,217,138,.6); animation:pulse 2s infinite; }

@media (max-width: 980px){ .metrics{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 420px){
  .metrics{ grid-template-columns:1fr 1fr; gap:8px; }
  .metric{ padding:12px; border-radius:12px; }
  .metric .m-value{ font-size:20px; }
  .metric .m-note{ font-size:11px; }
}

/* ============ 规则参数条（三个关键数字） ============ */
.specbar{
  display:grid; grid-template-columns:1.35fr 1fr 1fr; gap:0;
  border:1px solid rgba(245,211,44,.3); border-radius:14px;
  background: linear-gradient(180deg, rgba(245,211,44,.06), rgba(0,0,0,0) 70%), #070705;
  box-shadow: 0 10px 26px rgba(0,0,0,.5), inset 0 1px 0 rgba(245,211,44,.08);
  overflow:hidden; margin: 0 0 18px;
}
.spec{ padding:14px 18px; border-right:1px solid rgba(245,211,44,.16); display:flex; flex-direction:column; gap:6px; }
.spec:last-child{ border-right:0; }
.spec .s-label{ font-family:var(--f-mono); font-size:11.5px; letter-spacing:.12em; color:rgba(245,211,44,.58); }
.spec .s-value{ display:flex; align-items:baseline; gap:6px; flex-wrap:wrap; }
.spec .s-value b{ font-family:var(--f-display); font-size:26px; line-height:1; color:#ffe066; letter-spacing:-.01em; }
.spec .s-value i{ font-style:normal; font-size:12.5px; color:rgba(245,211,44,.62); }
.spec.tier-normal{ background: linear-gradient(180deg, rgba(57,217,138,.10), rgba(0,0,0,0) 80%); }
.spec.tier-normal .tier-tag{ color:#39d98a; border-color:rgba(57,217,138,.6); }
.spec.tier-degraded .tier-tag{ color:#f5d32c; border-color:rgba(245,211,44,.6); }
.spec.tier-stopped .tier-tag{ color:#ff6b4a; border-color:rgba(255,90,60,.6); }
.spec .tier-tag{
  font-style:normal; font-family:var(--f-mono); font-size:10.5px; letter-spacing:.06em;
  padding:3px 8px; border-radius:999px; border:1px solid currentColor; margin-left:4px; transform:translateY(-2px);
}
@media (max-width: 760px){
  .specbar{ grid-template-columns: 1fr; }
  .spec{ flex-direction:row; align-items:center; justify-content:space-between; padding:12px 14px; border-right:0; border-bottom:1px solid rgba(245,211,44,.14); }
  .spec:last-child{ border-bottom:0; }
  .spec .s-value b{ font-size:22px; }
}

/* ============ 推荐人卡片 ============ */
.refcard{
  display:flex; flex-direction:column; gap:10px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(245,211,44,.12), rgba(0,0,0,0) 60%),
    #050505;
  border:1px solid rgba(245,211,44,.4);
  border-radius:16px;
  padding:18px;
  box-shadow: 0 14px 34px rgba(0,0,0,.6), inset 0 1px 0 rgba(245,211,44,.1);
}
.refcard-head{ display:flex; align-items:center; justify-content:space-between; }
.refcard-head .mono-label{ margin:0; }
.ref-dot{ display:inline-flex; align-items:center; gap:6px; font-family:var(--f-mono); font-size:10.5px; color:#39d98a; }
.ref-dot i{ width:6px; height:6px; border-radius:50%; background:#39d98a; box-shadow:0 0 8px rgba(57,217,138,.8); }
.refcard .ref-handle{
  margin:0; font-family:var(--f-display); font-weight:700; font-size:26px; line-height:1.1;
  color:#ffe066; letter-spacing:-.01em; text-shadow:0 0 22px rgba(245,211,44,.2);
}
.ref-linkline{
  border:1px solid rgba(245,211,44,.2); border-radius:10px;
  background:rgba(245,211,44,.06); padding:9px 12px;
  overflow:hidden; white-space:nowrap; text-overflow:ellipsis;
}
.ref-linkline span{ font-size:11.5px; color:rgba(245,211,44,.78); }
.ref-actions{ display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:2px; }
.ref-actions .btn{ width:100%; justify-content:center; text-align:center; padding:11px 8px; }
@media (max-width:760px){
  .refcard{ padding:15px; border-radius:14px; }
  .refcard .ref-handle{ font-size:22px; }
  .ref-actions{ grid-template-columns:1fr; }
}

.spec .cap-note{
  font-style:normal; font-family:var(--f-mono); font-size:11.5px; color:rgba(245,211,44,.55);
  border:1px solid rgba(245,211,44,.25); border-radius:999px; padding:2px 8px; margin-left:4px;
}

/* ============ AI 秒打提示词卡片 ============ */
.promptcard{ display:flex; flex-direction:column; gap:10px; border-radius:16px; }
.prompt-hint{ margin:0; font-size:12.5px; line-height:1.6; color:rgba(245,211,44,.62); }
.prompt-box{
  width:100%; min-height:96px; max-height:220px; resize:vertical;
  background:#030303; border:1px solid rgba(245,211,44,.22); border-radius:10px;
  color:rgba(245,211,44,.8); font-family:var(--f-mono); font-size:11.5px; line-height:1.7;
  padding:10px 12px; white-space:pre-wrap;
}
.promptcard .ref-actions{ grid-template-columns:1fr 1fr; }
@media (max-width:760px){ .promptcard .ref-actions{ grid-template-columns:1fr; } .prompt-box{ font-size:11px; max-height:180px; } }

/* 提示词卡横跨整行 */
.hero > .promptcard{ grid-column: 1 / -1; margin-top: 4px; }
.hero > .promptcard .prompt-box{ min-height:110px; }

@media (min-width:761px){
  .hero > .promptcard .ref-actions{ grid-template-columns: 220px 220px; justify-content:start; }
}
.hero > .promptcard .prompt-box{ min-height: 140px; max-height: 320px; }

.prompt-rules{ display:flex; flex-wrap:wrap; gap:6px; margin-top:2px; }
.prompt-rule{
  font-family:var(--f-mono); font-size:11px; letter-spacing:.02em;
  color:rgba(245,211,44,.85); background:rgba(245,211,44,.08);
  border:1px solid rgba(245,211,44,.3); border-radius:999px; padding:4px 10px;
}
.hero > .promptcard .prompt-box{ min-height: 240px; max-height: 420px; }
