/* BlackBox2 · Mission Control — 严肃科幻: 近黑底 + 白字 + 单一青色点缀, 纯 CSS, 无外部资源 */
/* hidden 必须赢过所有 display 规则: .autoreg-code/.autoreg-body 等设了 display:flex,
   会盖掉浏览器默认的 [hidden]{display:none}, 导致验证码行/折叠面板常显 (2026-11-11 实测)。 */
[hidden] { display: none !important; }
* { box-sizing: border-box; }
:root {
  --bg: #05070a;
  --panel: #0b0e13;
  --panel2: #0e1219;
  --border: #1e242e;
  --border-strong: #2b333f;
  --text: #e8ebef;
  --muted: #8b94a3;
  --faint: #5b6572;
  --cyan: #22d3ee;
  --cyan-dim: #67e8f9;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;
}
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ---------- 背景: 近黑 + 一处极淡的青色辉光 + 暗星 ---------- */
.space-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.nebula {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(34, 211, 238, .07), transparent 70%),
    linear-gradient(180deg, #05070a 0%, #05070a 100%);
}
.stars { position: absolute; inset: 0; background-repeat: repeat; opacity: .6; }
.stars-a {
  background-image: radial-gradient(1px 1px at 56.63% 71.78%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 31.91% 55.97%, #ffffff, transparent),
    radial-gradient(1px 1px at 53.16% 40.26%, #ffffff, transparent),
    radial-gradient(1px 1px at 70.0% 44.78%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 17.46% 68.46%, #ffffff, transparent),
    radial-gradient(2px 2px at 15.38% 16.23%, #ffffff, transparent),
    radial-gradient(1px 1px at 7.23% 30.65%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 8.18% 71.54%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 47.65% 90.09%, #ffffff, transparent),
    radial-gradient(1px 1px at 54.61% 46.84%, #ffffff, transparent),
    radial-gradient(1px 1px at 80.27% 3.02%, #ffffff, transparent),
    radial-gradient(1px 1px at 14.55% 21.85%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 13.65% 21.54%, #ffffff, transparent),
    radial-gradient(2px 2px at 59.33% 83.02%, #ffffff, transparent),
    radial-gradient(1px 1px at 87.81% 19.65%, #ffffff, transparent),
    radial-gradient(1px 1px at 38.49% 17.07%, #a5f3fc, transparent),
    radial-gradient(1.5px 1.5px at 44.06% 68.96%, #ffffff, transparent),
    radial-gradient(1px 1px at 32.2% 18.54%, #ffffff, transparent),
    radial-gradient(2px 2px at 5.83% 1.03%, #ffffff, transparent),
    radial-gradient(1px 1px at 8.55% 6.31%, #ffffff, transparent),
    radial-gradient(1px 1px at 95.73% 52.3%, #ffffff, transparent),
    radial-gradient(1px 1px at 69.93% 66.49%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 69.1% 18.13%, #a5f3fc, transparent),
    radial-gradient(1px 1px at 81.69% 44.56%, #ffffff, transparent),
    radial-gradient(1px 1px at 55.5% 79.01%, #ffffff, transparent),
    radial-gradient(1px 1px at 62.73% 10.06%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 42.35% 58.28%, #ffffff, transparent),
    radial-gradient(1px 1px at 95.75% 68.19%, #ffffff, transparent),
    radial-gradient(2px 2px at 53.27% 57.01%, #ffffff, transparent),
    radial-gradient(1px 1px at 43.23% 88.08%, #ffffff, transparent),
    radial-gradient(1px 1px at 50.04% 23.36%, #ffffff, transparent),
    radial-gradient(2px 2px at 7.52% 31.61%, #ffffff, transparent),
    radial-gradient(2px 2px at 94.33% 65.46%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 89.66% 9.3%, #ffffff, transparent),
    radial-gradient(2px 2px at 22.2% 3.15%, #a5f3fc, transparent),
    radial-gradient(1px 1px at 76.11% 69.2%, #a5f3fc, transparent),
    radial-gradient(1px 1px at 66.85% 34.58%, #a5f3fc, transparent),
    radial-gradient(1px 1px at 38.65% 51.13%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 39.28% 50.15%, #ffffff, transparent),
    radial-gradient(2px 2px at 63.73% 2.28%, #a5f3fc, transparent),
    radial-gradient(1.5px 1.5px at 76.09% 37.06%, #ffffff, transparent),
    radial-gradient(1px 1px at 80.71% 13.81%, #ffffff, transparent),
    radial-gradient(2px 2px at 22.37% 19.56%, #a5f3fc, transparent),
    radial-gradient(1px 1px at 79.41% 25.58%, #a5f3fc, transparent),
    radial-gradient(1.5px 1.5px at 67.08% 75.44%, #ffffff, transparent),
    radial-gradient(1px 1px at 93.76% 23.97%, #ffffff, transparent),
    radial-gradient(2px 2px at 38.65% 59.72%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 12.04% 89.82%, #ffffff, transparent),
    radial-gradient(1px 1px at 5.82% 67.57%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 22.44% 1.27%, #ffffff, transparent),
    radial-gradient(1px 1px at 52.67% 8.96%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 2.99% 73.77%, #ffffff, transparent),
    radial-gradient(2px 2px at 96.55% 32.08%, #a5f3fc, transparent),
    radial-gradient(2px 2px at 93.72% 18.9%, #a5f3fc, transparent),
    radial-gradient(1.5px 1.5px at 63.77% 70.69%, #ffffff, transparent),
    radial-gradient(2px 2px at 71.22% 41.23%, #ffffff, transparent),
    radial-gradient(1px 1px at 15.5% 59.39%, #ffffff, transparent),
    radial-gradient(1px 1px at 9.45% 21.4%, #ffffff, transparent),
    radial-gradient(2px 2px at 37.32% 55.59%, #ffffff, transparent),
    radial-gradient(1px 1px at 80.44% 24.72%, #ffffff, transparent),
    radial-gradient(1px 1px at 69.17% 60.96%, #ffffff, transparent),
    radial-gradient(2px 2px at 3.56% 12.09%, #ffffff, transparent),
    radial-gradient(1px 1px at 84.5% 13.56%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 48.82% 14.0%, #ffffff, transparent),
    radial-gradient(1px 1px at 41.44% 72.94%, #ffffff, transparent),
    radial-gradient(1px 1px at 83.28% 42.79%, #ffffff, transparent),
    radial-gradient(1px 1px at 91.29% 82.55%, #a5f3fc, transparent),
    radial-gradient(1px 1px at 58.39% 80.36%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 70.96% 7.16%, #ffffff, transparent),
    radial-gradient(1px 1px at 88.34% 79.74%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 95.8% 35.57%, #ffffff, transparent),
    radial-gradient(1px 1px at 4.65% 79.15%, #a5f3fc, transparent),
    radial-gradient(2px 2px at 96.8% 16.02%, #ffffff, transparent),
    radial-gradient(1px 1px at 79.81% 49.39%, #ffffff, transparent),
    radial-gradient(1px 1px at 65.22% 3.46%, #ffffff, transparent),
    radial-gradient(1px 1px at 32.14% 43.5%, #ffffff, transparent),
    radial-gradient(1px 1px at 34.87% 33.43%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 84.86% 14.57%, #a5f3fc, transparent),
    radial-gradient(2px 2px at 31.2% 35.4%, #ffffff, transparent),
    radial-gradient(2px 2px at 79.66% 7.78%, #ffffff, transparent);
  animation: twinkle 5s ease-in-out infinite alternate;
}
.stars-b {
  background-image: radial-gradient(1px 1px at 14.04% 91.08%, #ffffff, transparent),
    radial-gradient(2px 2px at 89.59% 48.64%, #ffffff, transparent),
    radial-gradient(1px 1px at 59.46% 89.54%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 5.9% 82.5%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 37.0% 83.8%, #ffffff, transparent),
    radial-gradient(1px 1px at 96.22% 64.35%, #ffffff, transparent),
    radial-gradient(1px 1px at 37.05% 68.76%, #ffffff, transparent),
    radial-gradient(1px 1px at 39.38% 30.21%, #ffffff, transparent),
    radial-gradient(1px 1px at 21.87% 13.49%, #ffffff, transparent),
    radial-gradient(1px 1px at 75.41% 71.57%, #ffffff, transparent),
    radial-gradient(1px 1px at 12.36% 5.94%, #a5f3fc, transparent),
    radial-gradient(1.5px 1.5px at 43.69% 87.27%, #ffffff, transparent),
    radial-gradient(1px 1px at 78.14% 70.45%, #ffffff, transparent),
    radial-gradient(1px 1px at 85.44% 82.3%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 78.32% 80.33%, #a5f3fc, transparent),
    radial-gradient(1px 1px at 3.93% 94.17%, #a5f3fc, transparent),
    radial-gradient(1.5px 1.5px at 92.59% 15.43%, #ffffff, transparent),
    radial-gradient(1px 1px at 49.09% 50.67%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 38.19% 49.67%, #a5f3fc, transparent),
    radial-gradient(2px 2px at 59.82% 28.22%, #ffffff, transparent),
    radial-gradient(2px 2px at 64.24% 53.03%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 74.93% 78.1%, #ffffff, transparent),
    radial-gradient(2px 2px at 12.13% 70.53%, #a5f3fc, transparent),
    radial-gradient(1px 1px at 50.68% 37.26%, #ffffff, transparent),
    radial-gradient(1px 1px at 68.77% 59.99%, #ffffff, transparent),
    radial-gradient(1px 1px at 33.11% 66.22%, #ffffff, transparent),
    radial-gradient(1px 1px at 96.26% 29.81%, #ffffff, transparent),
    radial-gradient(1px 1px at 88.48% 90.81%, #ffffff, transparent),
    radial-gradient(1px 1px at 30.27% 60.54%, #ffffff, transparent),
    radial-gradient(1px 1px at 65.63% 55.04%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 14.11% 29.38%, #a5f3fc, transparent),
    radial-gradient(1px 1px at 94.33% 22.38%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 82.64% 1.74%, #ffffff, transparent),
    radial-gradient(1px 1px at 6.13% 60.81%, #ffffff, transparent),
    radial-gradient(2px 2px at 59.44% 73.65%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 10.13% 28.5%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 58.54% 45.17%, #a5f3fc, transparent),
    radial-gradient(1px 1px at 24.08% 85.11%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 92.42% 26.46%, #a5f3fc, transparent),
    radial-gradient(1.5px 1.5px at 25.42% 40.6%, #a5f3fc, transparent),
    radial-gradient(2px 2px at 30.87% 40.05%, #ffffff, transparent),
    radial-gradient(1px 1px at 67.06% 84.73%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 17.36% 12.33%, #ffffff, transparent),
    radial-gradient(2px 2px at 26.01% 8.25%, #ffffff, transparent),
    radial-gradient(1px 1px at 5.84% 62.24%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 2.55% 61.07%, #ffffff, transparent),
    radial-gradient(1px 1px at 15.26% 72.13%, #ffffff, transparent),
    radial-gradient(1px 1px at 52.56% 32.57%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 20.65% 50.28%, #ffffff, transparent),
    radial-gradient(2px 2px at 59.28% 46.64%, #ffffff, transparent),
    radial-gradient(1px 1px at 90.51% 92.87%, #ffffff, transparent),
    radial-gradient(1px 1px at 26.9% 20.04%, #ffffff, transparent),
    radial-gradient(1px 1px at 57.1% 32.35%, #ffffff, transparent),
    radial-gradient(1px 1px at 43.47% 59.9%, #ffffff, transparent),
    radial-gradient(1px 1px at 57.23% 60.81%, #a5f3fc, transparent);
  animation: twinkle 7s ease-in-out 1.2s infinite alternate;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: .7; } }
.shooting {
  position: absolute; top: 14%; left: -160px; width: 130px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(165, 243, 252, .55));
  transform: rotate(24deg);
  opacity: 0;
  animation: shoot 16s linear infinite;
}
@keyframes shoot {
  0%, 88% { opacity: 0; transform: rotate(24deg) translate(0, 0); }
  90% { opacity: .5; }
  96% { opacity: 0; transform: rotate(24deg) translate(105vw, 34vh); }
  100% { opacity: 0; transform: rotate(24deg) translate(105vw, 34vh); }
}
@media (prefers-reduced-motion: reduce) {
  .stars-a, .stars-b, .shooting, .sys-status .dot { animation: none; }
  .shooting { display: none; }
  .void-hero, .void-scroll-line { animation: none; }
  .void-eyebrow, .void-title, .void-tag, .void-ctas, .void-pool { animation: none; opacity: 1; }
  .pool-wave, .bubble, .feed-row.feed-new { animation: none; }
  .pool-liquid { transition: none; }
}

/* ---------- 顶栏 ---------- */
.topbar, .content, .site-footer { position: relative; z-index: 1; }
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 7, 10, .96);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 24px; min-height: 56px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--text); text-decoration: none; font-size: 17px; font-weight: 700; letter-spacing: .5px;
  flex-shrink: 0; white-space: nowrap;
}
.brand:hover { color: #fff; }
/* 环形行星标志 (纯 CSS, 单色青) */
.planet {
  display: inline-block; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #cffafe, var(--cyan) 42%, #0e7490 82%);
  position: relative; flex-shrink: 0;
}
.planet::after {
  content: ""; position: absolute; left: -7px; right: -7px; top: 50%;
  height: 7px; margin-top: -3.5px;
  border: 1.5px solid rgba(103, 232, 249, .8); border-radius: 50%;
  transform: rotate(-18deg);
}
.planet.sm { width: 18px; height: 18px; }
#nav {
  display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; overflow-x: visible; scrollbar-width: none;
}
#nav::-webkit-scrollbar { display: none; }
#nav button {
  flex-shrink: 0; padding: 18px 10px; border: 0; border-bottom: 2px solid transparent;
  background: none; color: var(--muted); font-size: 14px; cursor: pointer; font-family: inherit;
  white-space: nowrap;
}
#nav button:hover { color: var(--text); }
#nav button.active { color: #fff; font-weight: 600; box-shadow: inset 0 -2px 0 var(--cyan); }
.top-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; }
/* 系统状态: 绿灯 = 运行中 */
.sys-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 10px; white-space: nowrap;
}
.sys-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: dotPulse 2.4s ease-in-out infinite; }
@keyframes dotPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .45); } 50% { box-shadow: 0 0 0 4px rgba(52, 211, 153, 0); } }
.auth-box { display: flex; align-items: center; gap: 8px; font-size: 14px; }
#bellWrap { color: var(--amber); white-space: nowrap; }
#bellWrap b { font-family: var(--mono); }

/* ---------- 内容区 ---------- */
.content { max-width: 960px; margin: 0 auto; padding: 32px 20px 64px; width: 100%; }
.page { display: none; }
.page.active { display: block; }
.kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--cyan); margin: 0 0 6px;
}
h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: .2px; }
h3 { margin: 28px 0 8px; font-size: 17px; color: var(--text); }
p { margin: 8px 0; }
a { color: var(--cyan); }
.muted { color: var(--muted); font-size: 13px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }

/* ---------- Hero: Beyond the Void (克制版) ---------- */
.void-hero {
  position: relative;
  width: 100vw; margin-left: calc(50% - 50vw); margin-top: -32px; margin-bottom: 32px;
  min-height: 80vh; min-height: 80svh;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  isolation: isolate;
  animation: voidFade .8s ease-out;
}
@keyframes voidFade { from { opacity: 0; } to { opacity: 1; } }
.void-bg {
  position: absolute; inset: -32px;
  background: url("/void-hero.jpg") center 30% / cover no-repeat;
  filter: saturate(.8) brightness(.8);
  will-change: transform;
}
.void-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 55%, rgba(5, 7, 10, .55), rgba(5, 7, 10, .2) 55%, transparent 80%),
    linear-gradient(180deg, rgba(5, 7, 10, .72), transparent 22%, transparent 55%, rgba(5, 7, 10, .96) 100%);
}
.void-particles {
  position: absolute; inset: -24px; z-index: 2;
  width: calc(100% + 48px); height: calc(100% + 48px);
  pointer-events: none;
  will-change: transform;
}
.void-content {
  position: relative; z-index: 3;
  text-align: center;
  padding: 40px 20px 84px;
  max-width: 680px;
  will-change: transform, opacity;
}
.void-eyebrow {
  margin: 0 0 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 4px; font-weight: 400;
  color: var(--cyan-dim);
}
.void-title {
  margin: 0; font-size: clamp(40px, 7vw, 64px); font-weight: 800; line-height: 1.15; letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, .55);
}
.void-tag {
  margin: 16px 0 0; font-size: clamp(15px, 2.4vw, 17px); letter-spacing: 1px;
  color: #c6cdd8; text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}
.void-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.void-cta { min-width: 148px; padding: 13px 24px; font-size: 16px; }
.void-cta-ghost {
  min-width: 148px; padding: 13px 24px; font-size: 16px;
  background: rgba(5, 7, 10, .55); border: 1px solid var(--border-strong); color: var(--text);
}
.void-cta-ghost:hover { border-color: var(--cyan); color: #fff; }
/* HUD 角标: 仅两个对角的细线 */
.ticks { position: relative; }
.ticks::before, .ticks::after { content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; }
.ticks::before { top: -1px; left: -1px; border-top: 1px solid var(--cyan); border-left: 1px solid var(--cyan); }
.ticks::after { bottom: -1px; right: -1px; border-bottom: 1px solid var(--cyan); border-right: 1px solid var(--cyan); }
.void-pool {
  margin: 26px auto 0; padding: 12px 28px;
  background: rgba(5, 7, 10, .62); border: 1px solid var(--border-strong); border-radius: 10px;
}
.void-pool span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--muted); }
.void-pool b {
  font-family: var(--mono); font-size: 30px; line-height: 1.2; color: #fff;
  text-shadow: 0 0 16px rgba(34, 211, 238, .35);
}
/* 入场动画: 逐层淡入, 约 0.8s */
.void-eyebrow, .void-title, .void-tag, .void-ctas, .void-pool {
  opacity: 0; animation: voidIn .7s cubic-bezier(.2, .7, .2, 1) forwards;
}
.void-eyebrow { animation-delay: .05s; }
.void-title { animation-delay: .16s; }
.void-tag { animation-delay: .3s; }
.void-ctas { animation-delay: .44s; }
.void-pool { animation-delay: .58s; }
@keyframes voidIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
/* 滚动提示 */
.void-scroll {
  position: absolute; z-index: 3; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: none; border: 0; padding: 4px 10px; cursor: pointer;
  color: var(--muted); font-size: 12px; letter-spacing: 3px; font-family: inherit;
}
.void-scroll-line {
  display: block; width: 1px; height: 34px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: voidBounce 1.8s ease-in-out infinite;
}
@keyframes voidBounce { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(8px); opacity: 1; } }

/* ---------- 数据条 / 三步 ---------- */
.data-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  margin: 0 0 32px;
}
.data-cell { background: var(--panel); padding: 16px 18px; }
.data-cell span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.data-cell b { font-family: var(--mono); font-size: 20px; font-weight: 600; color: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; }
.step-n { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--cyan); }
.step b { display: block; margin: 6px 0 4px; font-size: 15px; }
.step p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- 卡片 / 提示 ---------- */
.callout {
  background: rgba(34, 211, 238, .05); border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  padding: 12px 14px; border-radius: 8px; margin: 12px 0;
}
.warn {
  background: rgba(251, 191, 36, .05); border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  padding: 12px 14px; border-radius: 8px; margin: 12px 0;
}
.cards { display: flex; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
.card {
  flex: 1 1 180px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 18px; min-width: 170px;
}
.card h3 { margin: 0 0 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.card b { font-family: var(--mono); font-size: 26px; font-weight: 600; display: block; color: var(--cyan); }
.card span { font-size: 12px; color: var(--muted); }
@media (hover: hover) {
  .card:hover { border-color: var(--border-strong); }
}

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; margin: 8px 0; }
table { border-collapse: collapse; width: 100%; margin: 0; font-size: 14px; }
th, td { border-bottom: 1px solid var(--border); padding: 9px 12px; text-align: left; }
tr:last-child td { border-bottom: 0; }
th {
  background: var(--panel2); color: var(--muted);
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 400;
  white-space: nowrap;
}
tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .015); }
td:nth-child(2), td:nth-child(3), th:nth-child(2), th:nth-child(3) { text-align: right; white-space: nowrap; }

/* 动态渲染的表格容器 (看板/公共池): 横向滚动只在卡片内 */
#dashTrend, #dashRank, #poolLedger, #poolInflow, #poolRank { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
#dashTrend:empty, #dashRank:empty, #poolLedger:empty, #poolInflow:empty, #poolRank:empty { border: 0; }
#dashRecent p { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }

/* ---------- 表单 / 按钮 ---------- */
.form { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; }
.form input, .form select, .form textarea {
  padding: 11px 12px; border: 1px solid var(--border-strong); border-radius: 8px;
  font-size: 15px; font-family: inherit; color: var(--text);
  background: var(--panel);
}
.form input::placeholder, .form textarea::placeholder { color: var(--faint); }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .15);
}
.form select option { background: #0d1226; color: var(--text); }
.btn {
  padding: 10px 18px; border: 1px solid var(--border-strong); border-radius: 8px;
  background: transparent; color: var(--text); font-size: 15px; cursor: pointer; font-family: inherit;
}
.btn:hover { border-color: #3a4452; background: rgba(255, 255, 255, .03); }
.btn.primary { background: var(--cyan); border-color: transparent; color: #032530; font-weight: 700; }
.btn.primary:hover { background: #4dd8f0; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.tabs { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.tabbtn {
  padding: 9px 16px; border: 1px solid var(--border-strong); border-radius: 8px;
  background: transparent; color: var(--text); cursor: pointer; font-size: 14px; font-family: inherit;
}
.tabbtn.active { background: var(--cyan); border-color: transparent; color: #032530; font-weight: 700; }
.result { margin-top: 14px; }
.submit-steps { margin: 8px 0 0; padding-left: 20px; }
.submit-steps li { color: var(--muted); }
.submit-steps li.active { color: inherit; font-weight: 600; }
.submit-steps li.active::after { content: " …"; }
.submit-steps li.done { color: var(--green); }
.submit-steps li.done::before { content: "✓ "; }
.submit-steps li.fail { color: var(--red); }
.submit-steps li.fail::before { content: "✗ "; }
.msg { padding: 12px 14px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--border); }
.msg.ok { background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .35); }
.msg.err { background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .35); }
.ok { color: var(--green); }
.err { color: var(--red); }

/* ---------- 徽标 / 列表项 / 代码 ---------- */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.b-pending { background: rgba(251, 191, 36, .14); color: var(--amber); }
.b-ok { background: rgba(52, 211, 153, .14); color: var(--green); }
.b-no { background: rgba(248, 113, 113, .14); color: var(--red); }
.item {
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; margin: 10px 0;
}
.item pre { background: rgba(0, 0, 0, .35); padding: 10px; border-radius: 8px; white-space: pre-wrap; word-break: break-all; }
pre { background: rgba(0, 0, 0, .35); border: 1px solid var(--border); padding: 12px; border-radius: 8px; overflow-x: auto; font-family: var(--mono); font-size: 13px; }
code { background: rgba(255, 255, 255, .08); padding: 2px 6px; border-radius: 4px; word-break: break-all; }

/* ---------- 公共流量池 · 储罐 (平板 + 单色青液) ---------- */
.pool-layout { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; margin: 16px 0 8px; }
.pool-tank-wrap { position: sticky; top: 72px; }
.pool-tank {
  position: relative; height: 320px; overflow: hidden;
  border: 1px solid var(--border-strong); border-radius: 16px;
  background: var(--panel);
}
.pool-liquid {
  position: absolute; left: 0; right: 0; bottom: 0; height: 0%;
  background: linear-gradient(180deg, rgba(34, 211, 238, .55), rgba(34, 211, 238, .28) 55%, rgba(34, 211, 238, .12));
  transition: height 1.2s ease;
  overflow: hidden;
}
.pool-wave { position: absolute; left: 0; top: -13px; width: 200%; height: 24px; }
.wave-a { animation: waveMove 5s linear infinite; opacity: .9; }
.wave-b { top: -9px; animation: waveMove 8s linear infinite reverse; opacity: .7; }
@keyframes waveMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.bubble {
  position: absolute; bottom: 6px; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 255, 255, .55); box-shadow: 0 0 6px rgba(103, 232, 249, .5);
  opacity: 0; animation: bubbleRise 6s ease-in infinite;
}
.bubble:nth-child(3) { left: 12%; animation-delay: 0s; }
.bubble:nth-child(4) { left: 30%; width: 8px; height: 8px; animation-delay: 1.4s; animation-duration: 7s; }
.bubble:nth-child(5) { left: 48%; animation-delay: 2.6s; }
.bubble:nth-child(6) { left: 64%; width: 9px; height: 9px; animation-delay: .8s; animation-duration: 8s; }
.bubble:nth-child(7) { left: 80%; animation-delay: 3.4s; animation-duration: 6.5s; }
.bubble:nth-child(8) { left: 92%; width: 5px; height: 5px; animation-delay: 2s; }
@keyframes bubbleRise {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: .75; }
  85% { opacity: .5; }
  100% { transform: translateY(-300px); opacity: 0; }
}
.pool-mark {
  position: absolute; left: 0; right: 0; z-index: 2;
  border-top: 1.5px dashed rgba(252, 211, 77, .85); pointer-events: none;
}
.pool-mark span {
  position: absolute; right: 10px; top: -11px; font-size: 11px; color: var(--amber);
  background: rgba(5, 7, 10, .9); border: 1px solid rgba(252, 211, 77, .5);
  padding: 1px 8px; border-radius: 999px; white-space: nowrap;
}
.pool-tank-label {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .65);
}
.pool-tank-label span { font-family: var(--mono); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--cyan-dim); }
.pool-tank-label b {
  font-family: var(--mono); font-size: 40px; line-height: 1.15; color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6), 0 0 18px rgba(34, 211, 238, .3);
}
.pool-tank-label small { font-family: var(--mono); font-size: 12px; color: var(--cyan-dim); }
.pool-milestones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mile {
  font-size: 13px; color: var(--muted);
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 12px;
}
.pool-chips { margin: 0 0 4px; }
.pool-chips .card { min-width: 0; }
.donors { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; padding: 8px 2px 4px; }
.donor { text-align: center; width: 68px; }
.donor .star {
  margin: 0 auto 6px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 32% 30%, #cffafe, var(--cyan) 45%, #0e7490 85%);
  box-shadow: 0 0 10px rgba(34, 211, 238, .25);
  font-size: 11px; line-height: 1;
}
.donor .uname { font-size: 12px; word-break: break-all; line-height: 1.4; }
.donor .mb { font-family: var(--mono); font-size: 12px; color: var(--cyan-dim); }
/* 最新动态 */
.feed { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.feed-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; font-size: 14px;
}
.feed-row .f-ico { font-size: 16px; flex-shrink: 0; }
.feed-row .f-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-row .f-mb { margin-left: auto; font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.feed-row .f-in { color: var(--green); }
.feed-row .f-out { color: var(--red); }
.feed-row .f-time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.feed-row.feed-new { animation: feedGlow 2.6s ease-out; }
@keyframes feedGlow {
  0% { border-color: rgba(34, 211, 238, .6); }
  100% { border-color: var(--border); }
}

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 16px; }
.footer-inner { max-width: 960px; margin: 0 auto; padding: 28px 20px 40px; }
.footer-brand { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 15px; }
.footer-brand b { letter-spacing: .5px; }
.footer-brand span { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 16px 0 12px; }
.flink { background: none; border: 0; padding: 4px 0; color: var(--muted); font-size: 13px; cursor: pointer; font-family: inherit; }
.flink:hover { color: var(--cyan); }
.footer-note, .footer-copy { color: var(--faint); font-size: 12px; margin: 4px 0; }
.footer-note { font-family: var(--mono); }

/* ---------- 移动端 ---------- */
@media (max-width: 1023px) {
  .topbar-inner { flex-wrap: wrap; gap: 0 16px; padding: 0 16px; min-height: 0; }
  .brand { padding: 12px 0; }
  .top-actions { padding: 8px 0; }
  #nav { order: 3; flex-basis: 100%; padding: 0 0 2px; }
  #nav button { padding: 10px 10px 12px; }
  .content { padding: 18px 16px 48px; max-width: 720px; }
  .btn, .tabbtn { min-height: 44px; }
  .form input, .form select, .form textarea { font-size: 16px; }
  .cards { flex-direction: column; }
  .card { min-width: 0; flex: 1 1 auto; }
  table { font-size: 13px; }
  th, td { padding: 7px 8px; }
  .void-hero { margin-top: -18px; align-items: flex-start; min-height: 64vh; min-height: 64svh; }
  .void-bg { background-position: 66% 38%; }
  .void-content { padding: 13vh 16px 84px; }
  .void-title { font-size: clamp(38px, 12vw, 52px); letter-spacing: 2px; }
  .void-pool b { font-size: 28px; }
  .pool-layout { grid-template-columns: 1fr; gap: 16px; }
  .pool-tank-wrap { position: static; }
  .pool-tank { height: 260px; }
  .pool-tank-label b { font-size: 32px; }
  .feed-row .f-who { white-space: normal; }
}
@media (max-width: 640px) {
  .sys-status { display: none; }
  .data-strip { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .data-cell b { font-size: 18px; }
}

/* ---------- Cosmos dynamic layer (AWS port) ----------
   Full-screen starfield canvas + drifting nebulae + ringed hero planet.
   All layers are pointer-events:none and sit below the content. */
#cosmosCanvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.cosmos-nebula-a, .cosmos-nebula-b { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.cosmos-nebula-a {
  width: 60vmax; height: 60vmax; left: -15vmax; top: -20vmax;
  background: radial-gradient(circle, rgba(124, 58, 237, .20), transparent 65%);
  animation: cosmosDriftA 60s ease-in-out infinite alternate;
}
.cosmos-nebula-b {
  width: 50vmax; height: 50vmax; right: -12vmax; bottom: -18vmax;
  background: radial-gradient(circle, rgba(34, 211, 238, .14), transparent 65%);
  animation: cosmosDriftB 75s ease-in-out infinite alternate;
}
@keyframes cosmosDriftA { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vw, 4vh, 0) scale(1.12); } }
@keyframes cosmosDriftB { from { transform: translate3d(0, 0, 0) scale(1.05); } to { transform: translate3d(-5vw, -3vh, 0) scale(.95); } }
/* Ringed planet in the hero (parallax wrapper moved by cosmos.js;
   the planet itself floats, the moon orbits — no transform conflicts). */
.cosmos-planet-wrap { position: absolute; z-index: 2; right: 7%; top: 16%; width: 132px; height: 132px; pointer-events: none; will-change: transform; }
.cosmos-planet {
  position: relative; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #e0f2fe, #38bdf8 38%, #1d4ed8 68%, #0b1530 100%);
  box-shadow: 0 0 42px rgba(56, 189, 248, .45), inset -14px -10px 30px rgba(0, 0, 0, .55);
  animation: cosmosFloat 7s ease-in-out infinite;
}
.cosmos-planet::after {
  content: ""; position: absolute; left: -32%; right: -32%; top: 50%;
  height: 22px; margin-top: -11px;
  border: 2px solid rgba(165, 243, 252, .75); border-radius: 50%;
  transform: rotate(-18deg);
  box-shadow: 0 0 12px rgba(103, 232, 249, .35);
}
.cosmos-orbit { position: absolute; inset: -22px; animation: cosmosSpin 26s linear infinite; }
.cosmos-orbit::after {
  content: ""; position: absolute; left: 50%; top: -4px; width: 9px; height: 9px; margin-left: -4px;
  border-radius: 50%; background: #e2e8f0; box-shadow: 0 0 10px rgba(255, 255, 255, .9);
}
@keyframes cosmosSpin { to { transform: rotate(360deg); } }
@keyframes cosmosFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 1023px) { .cosmos-planet-wrap { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .cosmos-nebula-a, .cosmos-nebula-b, .cosmos-planet, .cosmos-orbit { animation: none; }
}

/* ---------- Sci-fi upgrade v2 (AWS): 3D hero + mission-control HUD ----------
   Palette stays: near-black + white + ONE cyan accent. No rainbow, no glass toys. */

/* 3D galaxy canvas inside the hero (below scrim-particles/content, above bg image) */
#galaxyCanvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; cursor: grab; }
#galaxyCanvas:active { cursor: grabbing; }
.galaxy-on .cosmos-planet-wrap { display: none; } /* 3D scene replaces the CSS planet */
.galaxy-on .void-bg { filter: saturate(.55) brightness(.55); } /* let the 3D sun carry the hero */
.void-scrim { z-index: 1; }
.void-particles { z-index: 2; }

/* HUD readout for a clicked planet */
.galaxy-readout {
  position: absolute; z-index: 4; right: 18px; bottom: 88px;
  min-width: 210px; max-width: 260px; text-align: left;
  background: rgba(5, 7, 10, .82); border: 1px solid var(--cyan);
  border-radius: 8px; padding: 12px 14px;
  font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--text);
  box-shadow: 0 0 24px rgba(34, 211, 238, .25);
}
.galaxy-readout::before, .galaxy-readout::after { content: ""; position: absolute; width: 10px; height: 10px; }
.galaxy-readout::before { top: -1px; left: -1px; border-top: 1px solid #fff; border-left: 1px solid #fff; }
.galaxy-readout::after { bottom: -1px; right: -1px; border-bottom: 1px solid #fff; border-right: 1px solid #fff; }
.galaxy-readout .gr-name { display: block; font-size: 14px; color: #fff; letter-spacing: 1px; }
.galaxy-readout .gr-data { display: block; color: var(--cyan-dim); }
.galaxy-readout .gr-hint { display: block; color: var(--muted); font-size: 11px; }
.galaxy-readout.gr-on { animation: grIn .25s ease-out; }
@keyframes grIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Telemetry bar: live clock + real pool number (read from #heroPool) */
.hud-telemetry {
  position: absolute; z-index: 4; left: 50%; bottom: 58px; transform: translateX(-50%);
  display: flex; gap: 10px; align-items: center; white-space: nowrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; color: var(--cyan-dim);
  background: rgba(5, 7, 10, .6); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 14px; pointer-events: none;
}
.hud-telemetry i { color: var(--faint); font-style: normal; }
.hud-telemetry #hudClock { color: #fff; }

/* Scanline sweeping the hero (and the pool tank) */
.hud-scan {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .55), transparent);
  box-shadow: 0 0 12px rgba(34, 211, 238, .4);
  animation: hudScan 7s linear infinite;
}
@keyframes hudScan { 0% { top: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.pool-tank::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 4; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .5), transparent);
  animation: hudScan 9s linear infinite;
}

/* Corner brackets on panels (all four corners, thin cyan/white lines) */
.hud-panel { position: relative; }
.hud-panel::before, .hud-panel::after { content: ""; position: absolute; width: 9px; height: 9px; pointer-events: none; z-index: 1; }
.hud-panel::before { top: -1px; left: -1px; border-top: 1px solid rgba(103, 232, 249, .7); border-left: 1px solid rgba(103, 232, 249, .7); }
.hud-panel::after { bottom: -1px; right: -1px; border-bottom: 1px solid rgba(103, 232, 249, .7); border-right: 1px solid rgba(103, 232, 249, .7); }

/* Pool radar */
.pool-radar-wrap { display: flex; align-items: center; gap: 14px; margin: 4px 0 12px; }
.pool-radar-wrap canvas {
  flex-shrink: 0; border: 1px solid var(--border-strong); border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .06), rgba(5, 7, 10, .9) 75%);
}
.pool-radar-wrap p { margin: 0; }

/* Warp / star-streak flash on page navigation */
.warp-fx {
  position: fixed; inset: -40px; z-index: 200; pointer-events: none; opacity: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(34, 211, 238, .10), transparent 55%),
    repeating-conic-gradient(from 0deg at 50% 50%, transparent 0deg 7deg, rgba(165, 243, 252, .10) 7deg 8deg, transparent 8deg 16deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 18%, #000 62%);
  mask-image: radial-gradient(circle at 50% 50%, transparent 18%, #000 62%);
}
.warp-fx.warp-on { animation: warpZoom .45s ease-out; }
@keyframes warpZoom {
  0% { opacity: 0; transform: scale(.92) rotate(0deg); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.18) rotate(4deg); }
}

/* Scroll reveal (JS adds .reveal / .reveal-in; no-JS or reduced motion shows all) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.reveal-in { opacity: 1; transform: none; }

/* Subtle engineering grid inside the content area */
.content {
  background-image:
    linear-gradient(rgba(34, 211, 238, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, .025) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Glowing cyan focus states */
:focus-visible { outline: 1px solid var(--cyan); outline-offset: 2px; box-shadow: 0 0 0 3px rgba(34, 211, 238, .18); }

@media (max-width: 1023px) {
  .galaxy-readout { right: 12px; bottom: 76px; min-width: 0; max-width: 220px; }
  .hud-telemetry { bottom: 52px; font-size: 10px; letter-spacing: 1px; padding: 5px 10px; max-width: calc(100vw - 24px); overflow: hidden; }
  #hudOrbit { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hud-scan, .pool-tank::after { animation: none; display: none; }
  .warp-fx.warp-on { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  #galaxyCanvas { cursor: default; }
}

/* 3D hero: let the scene show through the scrim, and let pointer events
   reach the galaxy canvas (scrim/bg are decorative only). */
.galaxy-on .void-scrim {
  background:
    radial-gradient(ellipse 80% 60% at 50% 55%, rgba(5, 7, 10, .28), rgba(5, 7, 10, .08) 55%, transparent 80%),
    linear-gradient(180deg, rgba(5, 7, 10, .6), transparent 22%, transparent 55%, rgba(5, 7, 10, .94) 100%);
}
.galaxy-on .void-scrim, .galaxy-on .void-bg { pointer-events: none; }
.galaxy-on .void-bg { filter: saturate(.45) brightness(.38); }
/* Let canvas clicks pass through the transparent parts of the text block;
   only the CTA buttons stay clickable. */
.galaxy-on .void-content { pointer-events: none; }
.galaxy-on .void-content .void-ctas { pointer-events: auto; }

/* ---------- v3 美观+实用改版 ----------
   导航分组(主 5 项 + 更多下拉 / 手机汉堡菜单)、首页快捷操作、
   奖励预览、兑换余额盒、空状态、字段报错、提交按钮吸底。
   配色不变: 近黑 + 白 + 单一青色。 */

/* “更多”下拉 (桌面) */
.nav-more { position: relative; flex-shrink: 0; }
#navMoreBtn {
  padding: 18px 10px; border: 0; border-bottom: 2px solid transparent;
  background: none; color: var(--muted); font-size: 14px; cursor: pointer; font-family: inherit;
  white-space: nowrap;
}
#navMoreBtn:hover { color: var(--text); }
.nav-more.open #navMoreBtn { color: #fff; box-shadow: inset 0 -2px 0 var(--cyan); }
#nav .nav-more-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 4px); min-width: 190px;
  background: var(--panel2); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 6px; z-index: 70; box-shadow: 0 14px 36px rgba(0, 0, 0, .55);
}
#nav .nav-more.open .nav-more-menu { display: block; }
#nav .nav-more-menu button {
  display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0;
  background: none; color: var(--muted); font-size: 14px; cursor: pointer;
  font-family: inherit; border-radius: 6px; white-space: nowrap; box-shadow: none;
}
#nav .nav-more-menu button:hover { color: #fff; background: rgba(255, 255, 255, .05); }
#nav .nav-more-menu button.active { color: #fff; background: rgba(34, 211, 238, .12); }

/* 汉堡菜单按钮 (仅手机显示) */
#navToggle { display: none; }

/* 首页快捷操作: 三个主动作, 不用滚过 Hero 就能点 */
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 20px; }
.qa {
  text-align: left; background: var(--panel); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 14px 16px; cursor: pointer; font-family: inherit; color: var(--text);
}
.qa:hover { border-color: var(--cyan); background: var(--panel2); }
.qa b { display: block; font-size: 15px; margin-bottom: 2px; }
.qa span { font-size: 12px; color: var(--muted); }

/* 提交前预计奖励 */
.reward-preview {
  background: rgba(34, 211, 238, .06); border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: 8px; padding: 10px 12px; font-size: 14px;
}
.reward-preview span { color: var(--muted); }
.reward-preview b { color: var(--cyan-dim); font-family: var(--mono); }

/* 兑换页余额盒 */
.balance-box {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 12px 16px; margin: 12px 0;
}
.balance-box span { display: block; font-size: 12px; color: var(--muted); font-family: var(--mono); letter-spacing: 1px; }
.balance-box b { font-family: var(--mono); font-size: 20px; color: #fff; }
.balance-box .btn { margin-left: auto; }

/* 空状态: 有引导 + 按钮, 不再是空白表格 */
.empty-state {
  background: var(--panel); border: 1px dashed var(--border-strong);
  border-radius: 10px; padding: 18px; margin: 14px 0; text-align: center;
}
.empty-state b { font-size: 16px; }
.empty-state p { color: var(--muted); }

/* 字段报错: 红框标在出错的输入框上 */
.field-err { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(248, 113, 113, .15) !important; }

/* 提交按钮吸底: 长表单里随时能点提交, 不用翻到底 */
.form > button[type="submit"].primary {
  position: sticky; bottom: 12px; z-index: 5;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .55);
}

@media (max-width: 1023px) {
  /* 手机: 导航收进汉堡菜单, 顶栏恢复成一行 */
  #navToggle { display: inline-flex; }
  #nav {
    display: none; order: 4; flex-basis: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    border-top: 1px solid var(--border); padding-bottom: 6px;
  }
  #nav.nav-open { display: flex; }
  #nav.nav-open button { padding: 12px 4px; text-align: left; border-bottom: 1px solid var(--border); }
  #nav.nav-open #navMoreBtn { display: none; }
  #nav.nav-open .nav-more-menu {
    display: block; position: static; min-width: 0;
    background: none; border: 0; border-radius: 0; padding: 0 0 0 14px; box-shadow: none;
  }
  #nav.nav-open .nav-more-menu button { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .quick-actions { grid-template-columns: 1fr; }
  .balance-box .btn { margin-left: 0; }
}

/* 云浏览器 */
.browser-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.browser-bar select, .browser-bar input[type="text"] {
  background: var(--panel2); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 9px 10px; font-size: 14px;
  max-width: 100%; /* 代理选项带长备注 (如会话参数) 时也不撑破工具栏 */
}
.browser-bar input[type="text"] { flex: 1; min-width: 200px; }
.browser-bar select:focus, .browser-bar input[type="text"]:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .15);
}
.browser-timer { font-family: var(--mono); font-size: 14px; color: var(--cyan); }
.browser-screen-wrap {
  position: relative; background: #000; border: 1px solid var(--border-strong);
  border-radius: 10px; overflow: hidden; aspect-ratio: 1280 / 800;
}
.browser-screen-wrap img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  touch-action: none; cursor: crosshair; outline: none; user-select: none;
  -webkit-user-select: none; -webkit-touch-callout: none;
}
.browser-screen-wrap img:focus { outline: 2px solid var(--cyan); outline-offset: -2px; }
.browser-screen-empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px; padding: 16px; text-align: center; pointer-events: none;
}
@media (max-width: 640px) {
  .browser-bar { flex-direction: column; align-items: stretch; }
  .browser-bar select { min-width: 0; width: 100%; }
  .browser-bar input[type="text"] { min-width: 0; }
}

/* 自动注册面板 */
.autoreg-panel {
  margin: 14px 0; border: 1px solid var(--border); border-radius: 10px;
  background: var(--panel2); overflow: hidden;
}
.autoreg-head {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 10px 12px; border-bottom: 1px solid var(--border);
}
.autoreg-env { font-size: 12px; overflow-wrap: anywhere; }
.autoreg-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.autoreg-body p { margin: 0; }
.autoreg-presets { display: flex; gap: 8px; flex-wrap: wrap; }
.autoreg-field { display: flex; flex-direction: column; gap: 5px; font-size: 14px; }
.autoreg-field input {
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 9px 10px; font-size: 14px; min-width: 0;
}
.autoreg-field input:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .15);
}
.autoreg-input-row { display: flex; gap: 8px; align-items: center; }
.autoreg-input-row input { flex: 1; min-width: 0; }
.autoreg-input-row .btn { flex-shrink: 0; }
/* 我的代理: 链接输入行 (与上面输入行同款布局) */
.myproxy-form { display: flex; gap: 8px; align-items: center; }
.myproxy-form input {
  flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 9px 10px; font-size: 14px;
}
.myproxy-form input:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .15);
}
.myproxy-form .btn { flex-shrink: 0; }
.autoreg-code { display: flex; flex-direction: column; gap: 5px; font-size: 14px; }
.autoreg-code input {
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 9px 10px; font-size: 16px; min-width: 0;
}
.autoreg-code input:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .15);
}
.autoreg-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.autoreg-step { font-size: 14px; color: var(--cyan); min-height: 20px; overflow-wrap: anywhere; }
.autoreg-result { border: 1px solid var(--cyan); border-radius: 8px; padding: 10px 12px; }
.autoreg-result h4 { margin: 0 0 8px; font-size: 14px; }
.autoreg-result-row {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-size: 14px; padding: 3px 0;
}
.autoreg-result-row code {
  font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere;
  background: var(--panel); padding: 2px 6px; border-radius: 6px;
}
@media (max-width: 640px) {
  .autoreg-input-row { flex-wrap: wrap; }
  .autoreg-input-row input { flex: 1 1 100%; }
  .myproxy-form { flex-wrap: wrap; }
  .myproxy-form input { flex: 1 1 100%; }
  .autoreg-actions .btn { min-height: 44px; }
}

/* 云浏览器: 手机输入栏 + 缩放 (输入栏只在会话已连接时显示) */
.browser-input-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
/* 顶栏是 sticky (56px 高): 按钮被滚到视口顶部时会正好被顶栏盖住点不到,
   滚动定位时留出空隙, 避免自动注册面板/工具栏的按钮被顶栏遮住 */
#autoregPanel button, .browser-bar button, .browser-input-bar button { scroll-margin-top: 72px; }
.browser-input-bar input[type="text"] {
  flex: 1; min-width: 160px; background: var(--panel2); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 9px 10px; font-size: 16px; /* 16px 防 iOS 聚焦自动放大 */
}
.browser-input-bar input[type="text"]:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .15);
}
/* 自动注册失败: 醒目报错 (不只是一行小字状态) */
.autoreg-error {
  margin: 0; padding: 10px 12px; border: 1px solid var(--red); border-radius: 8px;
  background: rgba(248, 113, 113, .1); color: #fca5a5; font-size: 15px; font-weight: 700;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  /* 手机: 云浏览器工具栏/输入栏/自动注册的按钮一律不小于 44px 触摸目标 */
  .browser-bar .btn, .browser-input-bar .btn { min-height: 44px; }
  .browser-bar select, .browser-bar input[type="text"] { min-height: 44px; }
  .browser-input-bar input[type="text"] { flex: 1 1 100%; min-height: 44px; }
  .browser-input-bar .btn { flex: 1 1 auto; }
  .autoreg-panel .btn { min-height: 44px; }
  .autoreg-presets .btn { min-height: 44px; }
}

/* 管理后台: 批量导入代理预览 */
#proxyImportText {
  width: 100%; box-sizing: border-box; background: var(--panel2); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 10px; font-size: 13px; font-family: var(--mono);
  resize: vertical; min-height: 110px;
}
#proxyImportText:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .15); }
.proxy-import-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0; }
.proxy-import-table th, .proxy-import-table td {
  border: 1px solid var(--border); padding: 6px 8px; text-align: left; overflow-wrap: anywhere;
}
.proxy-import-table th { background: var(--panel2); }
.proxy-import-bad td { background: rgba(248, 113, 113, .08); }
.proxy-import-dup td { opacity: .6; }
.proxy-check-pass { color: #2e7d32; font-weight: 600; }
.proxy-check-review { color: #e65100; font-weight: 600; }
@media (max-width: 640px) {
  .proxy-import-table { display: block; overflow-x: auto; }
}
