/* ============================================================
   雀势引擎 · 视觉基座
   深墨绿底 + 玉色/鎏金强调，控制台式排版
   ============================================================ */

:root {
  color-scheme: dark;
  --bg: #050b09;
  --bg-soft: #08120e;
  --panel: linear-gradient(180deg, rgba(17, 33, 27, 0.92), rgba(8, 18, 14, 0.94));
  --panel-flat: #0b1712;
  --line: rgba(126, 219, 179, 0.13);
  --line-strong: rgba(126, 219, 179, 0.26);
  --text: #e8f4ee;
  --text-soft: #c3d8cd;
  --muted: #89a498;
  --dim: #5f7a6e;
  --jade: #3ce4a6;
  --jade-deep: #1cb27c;
  --jade-ink: #04160f;
  --gold: #e9c979;
  --gold-soft: rgba(233, 201, 121, 0.14);
  --red: #ff7168;
  --red-soft: rgba(255, 113, 104, 0.14);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", "Sarasa Mono SC", Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --ease: cubic-bezier(0.22, 0.68, 0.24, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

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

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

::selection {
  background: rgba(60, 228, 166, 0.28);
  color: #fff;
}

/* 滚动条 */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(126, 219, 179, 0.24) transparent;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-thumb {
  background: rgba(126, 219, 179, 0.22);
  border-radius: 99px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}

/* ============================================================
   背景氛围
   ============================================================ */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(21, 80, 60, 0.35), transparent 60%),
    radial-gradient(90% 60% at 90% 100%, rgba(64, 55, 24, 0.22), transparent 65%),
    linear-gradient(180deg, rgba(5, 11, 9, 0.2), rgba(5, 11, 9, 0.9));
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.glow-a {
  width: 520px;
  height: 520px;
  top: -220px;
  left: -140px;
  background: radial-gradient(circle, rgba(45, 210, 150, 0.28), transparent 65%);
}

.glow-b {
  width: 560px;
  height: 560px;
  right: -180px;
  bottom: -260px;
  background: radial-gradient(circle, rgba(233, 201, 121, 0.16), transparent 65%);
}

.grid-mask {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(126, 219, 179, 0.1) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 10%, transparent 72%);
  opacity: 0.7;
}

.tile-deco {
  position: absolute;
  width: 168px;
  height: 224px;
  border-radius: 18px;
  border: 1px solid rgba(126, 219, 179, 0.16);
  background: linear-gradient(150deg, rgba(21, 44, 35, 0.5), rgba(7, 16, 12, 0.2));
  box-shadow: inset 0 0 40px rgba(60, 228, 166, 0.06);
  display: grid;
  place-items: center;
  color: rgba(126, 219, 179, 0.14);
  font-size: 92px;
  font-weight: 700;
  font-family: "Songti SC", "SimSun", serif;
  opacity: 0.5;
  filter: blur(0.2px);
}

.tile-a {
  top: 120px;
  right: max(24px, calc(50vw - 660px));
  transform: rotate(14deg);
  animation: tile-float 14s ease-in-out infinite;
}

.tile-b {
  bottom: 90px;
  left: max(-40px, calc(50vw - 760px));
  transform: rotate(-12deg);
  animation: tile-float 18s ease-in-out infinite reverse;
}

@keyframes tile-float {
  0%,
  100% {
    transform: translateY(0) rotate(14deg);
  }
  50% {
    transform: translateY(-14px) rotate(11deg);
  }
}

/* ============================================================
   启动/加载
   ============================================================ */
.boot {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: var(--bg);
}

.boot-mark,
.brand-tile {
  display: grid;
  place-items: center;
  width: 56px;
  height: 66px;
  border-radius: 13px;
  border: 1px solid rgba(126, 219, 179, 0.32);
  background: linear-gradient(160deg, #12352a, #07130e 70%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--jade);
  font-size: 26px;
  font-weight: 700;
  font-family: "Songti SC", "SimSun", serif;
}

.brand-tile {
  width: 42px;
  height: 50px;
  border-radius: 10px;
  font-size: 20px;
}

.boot-mark {
  animation: mark-pulse 2.4s var(--ease) infinite;
}

@keyframes mark-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(60, 228, 166, 0.16), 0 12px 30px rgba(0, 0, 0, 0.45);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(60, 228, 166, 0), 0 12px 30px rgba(0, 0, 0, 0.45);
  }
}

.boot-title {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.boot-sub {
  color: var(--muted);
  font-size: 13px;
}

.boot-bar {
  width: 184px;
  height: 3px;
  margin-top: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.boot-bar i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--jade-deep), var(--jade));
  animation: bar-indeterminate 1.3s var(--ease) infinite;
}

@keyframes bar-indeterminate {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(280%);
  }
}

.boot-error {
  max-width: 340px;
  color: #ffc9c4;
  font-size: 13px;
  background: var(--red-soft);
  border: 1px solid rgba(255, 113, 104, 0.28);
  border-radius: 10px;
  padding: 10px 14px;
}

/* ============================================================
   顶栏 & 首屏
   ============================================================ */
.page {
  position: relative;
  z-index: 1;
  padding-bottom: 128px;
}

.topbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 16px;
  letter-spacing: 0.08em;
  font-weight: 650;
}

.brand-text small {
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.14em;
}

.topbar-side {
  display: flex;
  align-items: center;
  gap: 10px;
}

.node-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(12, 26, 20, 0.6);
  color: var(--text-soft);
  font-size: 12px;
}

.node-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 0 rgba(60, 228, 166, 0.45);
  animation: dot-pulse 2.2s infinite;
}

@keyframes dot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(60, 228, 166, 0.4);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(60, 228, 166, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(60, 228, 166, 0);
  }
}

/* 虚拟在线人数胶囊 */
.presence-pill {
  border-color: rgba(60, 228, 166, 0.28);
  background: rgba(16, 40, 30, 0.72);
  color: var(--text);
}

.presence-pill b {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--jade-soft, #7ff0c6);
  font-variant-numeric: tabular-nums;
}

.presence-delta {
  min-width: 26px;
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  color: var(--dim);
  transition: color 0.3s;
}

.presence-delta.is-up {
  color: #52e6a8;
}

.presence-delta.is-down {
  color: #e6636b;
}

.hero-stats #statOnlineCell b {
  color: var(--jade-soft, #7ff0c6);
  font-variant-numeric: tabular-nums;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(12, 26, 20, 0.6);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.icon-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 42px 0 26px;
  animation: fade-up 0.55s var(--ease) both;
}

.eyebrow {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.22;
  font-weight: 620;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: normal;
  color: var(--jade);
  position: relative;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 6px;
  background: linear-gradient(90deg, rgba(60, 228, 166, 0.35), transparent);
  border-radius: 4px;
}

.hero-sub {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13.5px;
  letter-spacing: 0.02em;
}

.hero-stats {
  display: flex;
  gap: 10px;
  flex: none;
}

.hero-stats > div {
  min-width: 86px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(10, 22, 17, 0.55);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stats b {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
}

.hero-stats span {
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* ============================================================
   客服广告条
   ============================================================ */
.ad-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(233, 201, 121, 0.32);
  background:
    linear-gradient(100deg, rgba(233, 201, 121, 0.14), rgba(255, 113, 104, 0.06) 45%, rgba(54, 196, 255, 0.08)),
    rgba(10, 20, 16, 0.72);
  overflow: hidden;
  animation: fade-up 0.55s var(--ease) both;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.ad-banner::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 45%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  transform: skewX(-18deg);
  animation: ad-sheen 6.5s var(--ease) infinite;
  pointer-events: none;
}

@keyframes ad-sheen {
  0%,
  55% {
    left: -60%;
  }
  100% {
    left: 130%;
  }
}

.ad-mark {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #4cc9ff, #0b84d8);
  color: #02131c;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 26px rgba(16, 150, 220, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.ad-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ad-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 10.5px;
  letter-spacing: 0.16em;
}

.ad-kicker i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 8px rgba(60, 228, 166, 0.9);
  animation: dot-pulse 2.2s infinite;
}

.ad-copy strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.ad-qq {
  color: var(--muted);
  font-size: 11.5px;
}

.ad-qq b {
  margin: 0 3px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 600;
}

.ad-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.ad-copy-btn {
  --btn-h: 38px;
  height: var(--btn-h);
  font-size: 12.5px;
}

.btn-ad {
  --btn-h: 38px;
  height: var(--btn-h);
  padding: 0 16px;
  font-size: 12.5px;
  background: linear-gradient(135deg, #48c9ff, #0b84d8);
  color: #02131c;
  box-shadow: 0 8px 22px rgba(16, 150, 220, 0.3);
}

.btn-ad:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 28px rgba(16, 150, 220, 0.42);
}

.btn-ad svg {
  width: 15px;
  height: 15px;
}

/* ============================================================
   布局 & 面板
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: 356px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.side {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 20px 22px 22px;
  animation: fade-up 0.6s var(--ease) both;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 32%);
  mask-image: linear-gradient(#000, transparent 55%);
  -webkit-mask-image: linear-gradient(#000, transparent 55%);
}

.panel > * {
  position: relative;
}

.main .panel:nth-child(2) {
  animation-delay: 0.04s;
}
.main .panel:nth-child(3) {
  animation-delay: 0.08s;
}
.main .panel:nth-child(4) {
  animation-delay: 0.12s;
}
.main .panel:nth-child(5) {
  animation-delay: 0.16s;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.panel-index {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--gold);
  letter-spacing: 0.1em;
  padding: 3px 6px;
  border: 1px solid rgba(233, 201, 121, 0.22);
  border-radius: 6px;
  background: var(--gold-soft);
  flex: none;
}

.panel-head h2 {
  font-size: 15.5px;
  font-weight: 620;
  letter-spacing: 0.04em;
  flex: 1;
}

.panel-note {
  color: var(--dim);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.panel-note b {
  color: var(--jade);
  font-family: var(--mono);
  font-weight: 600;
}

.panel-lead {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
  margin: 6px 0 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 99px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  flex: none;
}

.pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}

.pill-idle {
  color: var(--dim);
}

.pill-checking {
  color: var(--gold);
  border-color: rgba(233, 201, 121, 0.3);
  background: rgba(233, 201, 121, 0.07);
}

.pill-checking::before {
  animation: blink 1s steps(2, start) infinite;
}

.pill-active {
  color: var(--jade);
  border-color: rgba(60, 228, 166, 0.32);
  background: rgba(60, 228, 166, 0.08);
}

.pill-error {
  color: var(--red);
  border-color: rgba(255, 113, 104, 0.32);
  background: var(--red-soft);
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   表单 & 按钮
   ============================================================ */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label {
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

.input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(3, 10, 8, 0.62);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.input::placeholder {
  color: #52695f;
}

.input:hover {
  border-color: rgba(126, 219, 179, 0.24);
}

.input:focus {
  border-color: rgba(60, 228, 166, 0.55);
  background: rgba(4, 14, 10, 0.8);
  box-shadow: 0 0 0 3px rgba(60, 228, 166, 0.12);
}

.input.is-invalid {
  border-color: rgba(255, 113, 104, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 113, 104, 0.1);
}

.mono {
  font-family: var(--mono);
  letter-spacing: 0.01em;
}

.btn {
  --btn-h: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-h);
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.16s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s, opacity 0.2s;
}

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

.btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, #46e8ad, #1cb27c);
  color: var(--jade-ink);
  box-shadow: 0 8px 24px rgba(28, 178, 124, 0.28);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 10px 30px rgba(28, 178, 124, 0.4);
  filter: brightness(1.04);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(12, 26, 20, 0.5);
  color: var(--text-soft);
}

.btn-ghost:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: rgba(18, 36, 28, 0.7);
  color: var(--text);
}

.btn-block {
  width: 100%;
}

.btn.is-loading {
  pointer-events: none;
}

.btn.is-loading .btn-label {
  opacity: 0.6;
}

.btn-launch {
  --btn-h: 48px;
  padding: 0 26px;
  font-size: 14.5px;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #4beeb2, #1cb27c 60%, #159a6c);
  color: var(--jade-ink);
  box-shadow: 0 10px 34px rgba(28, 178, 124, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  position: relative;
  overflow: hidden;
}

.btn-launch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.32) 46%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.btn-launch:hover::after {
  transform: translateX(120%);
}

.btn-launch:hover {
  box-shadow: 0 14px 40px rgba(28, 178, 124, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-launch svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s var(--ease);
}

.btn-launch:hover svg {
  transform: translateX(3px);
}

.mini-btn {
  height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
  font-size: 11.5px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  flex: none;
}

.mini-btn:hover {
  border-color: rgba(60, 228, 166, 0.4);
  color: var(--jade);
  background: rgba(60, 228, 166, 0.06);
}

.link-btn {
  color: var(--jade);
  font-size: 12.5px;
  border: 0;
  background: none;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(60, 228, 166, 0.4);
}

/* 焦点可见性 */
:focus-visible {
  outline: 2px solid rgba(60, 228, 166, 0.7);
  outline-offset: 2px;
}

/* ============================================================
   授权卡
   ============================================================ */
.auth .panel-lead {
  margin-bottom: 14px;
}

.activate {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activate .input {
  height: 46px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.meta dt {
  color: var(--dim);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.meta dd {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
}

#metaCode {
  color: var(--gold);
}

.meter {
  margin-top: 16px;
  padding: 12px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(60, 228, 166, 0.2);
  background: rgba(60, 228, 166, 0.045);
}

.meter-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

.meter-head b {
  font-family: var(--mono);
  color: var(--jade);
  font-weight: 600;
}

.meter-track {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.meter-track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #1cb27c, var(--jade));
  box-shadow: 0 0 12px rgba(60, 228, 166, 0.5);
  transition: width 0.6s var(--ease);
}

.hint {
  margin-top: 14px;
  color: var(--dim);
  font-size: 11.5px;
  line-height: 1.7;
}

.auth.is-attention {
  animation: auth-attention 1.1s var(--ease);
}

@keyframes auth-attention {
  0%,
  100% {
    box-shadow: var(--shadow);
  }
  35% {
    box-shadow: 0 0 0 2px rgba(60, 228, 166, 0.38), 0 24px 60px rgba(0, 0, 0, 0.42);
  }
}

.auth.is-locked .hint {
  color: var(--gold);
}

/* 支持卡 */
.support {
  padding-bottom: 16px;
}

.support-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(126, 219, 179, 0.09);
  font-size: 12.5px;
}

.support-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.support-row > span {
  color: var(--muted);
  flex: none;
  width: 62px;
}

.support-row > strong {
  flex: 1;
  font-weight: 500;
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   公告 / 对局目标
   ============================================================ */
.announce {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 15px 18px;
  border-radius: 16px;
  border: 1px solid rgba(233, 201, 121, 0.22);
  background:
    linear-gradient(100deg, rgba(233, 201, 121, 0.1), rgba(255, 113, 104, 0.05) 55%, transparent),
    rgba(10, 20, 16, 0.6);
  animation: fade-up 0.6s var(--ease) both;
}

.announce-icon {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(233, 201, 121, 0.14);
  border: 1px solid rgba(233, 201, 121, 0.28);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
}

.announce-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.announce-body strong {
  font-size: 13px;
  font-weight: 560;
  color: #f0dcaa;
  letter-spacing: 0.01em;
}

.announce-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-size: 11.5px;
}

.hero-sub,
.announce-foot,
.panel-note {
  text-wrap: pretty;
}

.target-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.field-tip {
  margin-top: 10px;
  color: var(--dim);
  font-size: 11.5px;
  line-height: 1.65;
}

.field-tip b {
  color: var(--jade);
  font-weight: 600;
}

.security {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(60, 228, 166, 0.035);
  border: 1px solid rgba(60, 228, 166, 0.11);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.security svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 1px;
  fill: none;
  stroke: var(--jade);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

/* ============================================================
   增益开关
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.feature {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: start;
  padding: 13px 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.014);
  text-align: left;
  color: inherit;
  transition: border-color 0.2s, background 0.2s, opacity 0.2s;
}

.feature:hover {
  border-color: rgba(126, 219, 179, 0.24);
  background: rgba(255, 255, 255, 0.028);
}

.feature.is-on {
  border-color: rgba(60, 228, 166, 0.34);
  background:
    linear-gradient(155deg, rgba(60, 228, 166, 0.1), rgba(60, 228, 166, 0.02) 60%),
    rgba(255, 255, 255, 0.01);
  box-shadow: inset 0 0 0 1px rgba(60, 228, 166, 0.05);
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--dim);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.feature-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature.is-on .feature-icon {
  color: var(--jade);
  background: rgba(60, 228, 166, 0.12);
  border-color: rgba(60, 228, 166, 0.2);
}

.feature-name {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.feature-desc {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.55;
}

.switch {
  width: 38px;
  height: 21px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  flex: none;
  margin-top: 2px;
  transition: background 0.22s, border-color 0.22s;
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #7e998d;
  transition: transform 0.24s var(--ease), background 0.22s;
}

.feature.is-on .switch {
  background: linear-gradient(135deg, rgba(60, 228, 166, 0.9), rgba(28, 178, 124, 0.9));
  border-color: rgba(60, 228, 166, 0.5);
}

.feature.is-on .switch::after {
  transform: translateX(17px);
  background: #04160f;
}

/* 未激活锁定外观 */
.page.is-locked .feature:hover {
  border-color: var(--line);
}

/* ============================================================
   规则特调
   ============================================================ */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 4px;
}

.acc {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.012);
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}

.acc:hover {
  border-color: rgba(126, 219, 179, 0.22);
}

.acc.is-open {
  border-color: rgba(60, 228, 166, 0.28);
  background: rgba(60, 228, 166, 0.022);
}

.acc-head {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px 15px;
  text-align: left;
  color: inherit;
}

.acc-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(233, 201, 121, 0.2);
  border-radius: 6px;
  padding: 2px 6px;
  flex: none;
}

.acc-name {
  flex: 1;
  font-size: 13.5px;
  font-weight: 560;
  letter-spacing: 0.02em;
}

.acc-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  flex: none;
}

.acc-count b {
  color: var(--jade);
  font-weight: 600;
}

.acc-chev {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--dim);
  transition: transform 0.28s var(--ease), color 0.2s;
}

.acc-chev svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.acc.is-open .acc-chev {
  transform: rotate(180deg);
  color: var(--jade);
}

.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
}

.acc.is-open .acc-body {
  grid-template-rows: 1fr;
}

.acc-body-inner {
  overflow: hidden;
}

.rule-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 15px 15px;
}

.rule {
  display: block;
  width: 100%;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(3, 10, 8, 0.42);
  text-align: left;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.rule:hover {
  border-color: rgba(126, 219, 179, 0.24);
  background: rgba(3, 12, 9, 0.62);
}

.rule.is-on {
  border-color: rgba(60, 228, 166, 0.3);
  background: linear-gradient(150deg, rgba(60, 228, 166, 0.08), rgba(60, 228, 166, 0.015));
}

.rule-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.rule-name {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.01em;
}

.rule.is-on .rule-name {
  color: var(--text-soft);
}

.rule-pct {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  flex: none;
}

.rule.is-on .rule-pct {
  color: var(--jade);
}

.rule-bar {
  height: 4px;
  margin-top: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.rule-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #1cb27c, #4beeb2);
  transition: width 0.55s var(--ease);
}

.rule.is-on .rule-bar i {
  box-shadow: 0 0 10px rgba(60, 228, 166, 0.45);
}

/* ============================================================
   链路
   ============================================================ */
.line-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.line {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 12px 12px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.014);
  text-align: left;
  color: inherit;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}

.line:hover {
  border-color: rgba(126, 219, 179, 0.26);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-1px);
}

.line-name {
  font-size: 12.5px;
  font-weight: 560;
  display: flex;
  align-items: center;
  gap: 6px;
}

.line-name .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(60, 228, 166, 0.65);
}

.line-region {
  color: var(--dim);
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.line-lat {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 2px;
}

.line-lat em {
  font-style: normal;
  color: var(--dim);
  font-size: 10px;
  margin-left: 2px;
}

.line.is-on {
  border-color: rgba(60, 228, 166, 0.55);
  background: linear-gradient(155deg, rgba(60, 228, 166, 0.14), rgba(60, 228, 166, 0.02));
  box-shadow: 0 0 0 1px rgba(60, 228, 166, 0.14), 0 8px 22px rgba(0, 0, 0, 0.25);
}

.line.is-on .line-lat {
  color: var(--jade);
}

.line.is-on::after {
  content: "✓";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--jade);
  color: #04160f;
  font-size: 9px;
  font-weight: 800;
}

/* ============================================================
   页脚 & 底部操作台
   ============================================================ */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 4px 8px;
  color: var(--dim);
  font-size: 11.5px;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--jade);
}

.dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
  flex: none;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 14px 24px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(5, 11, 9, 0), rgba(5, 11, 9, 0.86) 38%, #050b09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: dock-in 0.5s var(--ease) both;
}

@keyframes dock-in {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.dock-inner {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 20px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(20, 38, 31, 0.94), rgba(8, 18, 14, 0.94));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.dock-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12.5px;
  flex-wrap: wrap;
  min-width: 0;
}

.dock-summary b {
  color: var(--text);
  font-family: var(--mono);
  font-weight: 600;
  margin-left: 3px;
  max-width: 120px;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.dock-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* 运行中状态 */
.dock-run {
  border-color: rgba(60, 228, 166, 0.45);
  background: linear-gradient(180deg, rgba(20, 44, 34, 0.96), rgba(7, 20, 14, 0.97));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(60, 228, 166, 0.06);
}

.run-state {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 12.5px;
}

.run-state strong {
  color: var(--jade);
  font-size: 13.5px;
  letter-spacing: 0.04em;
}

.run-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 0 rgba(60, 228, 166, 0.45);
  animation: dot-pulse 2s infinite;
  flex: none;
}

.run-elapsed {
  color: var(--gold);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.run-detail {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 420px;
}

.btn-danger {
  border-color: rgba(255, 113, 104, 0.4);
  background: rgba(255, 113, 104, 0.1);
  color: #ffb6b1;
}

.btn-danger:hover:not(:disabled) {
  background: rgba(255, 113, 104, 0.18);
  border-color: rgba(255, 113, 104, 0.6);
  color: #ffd0cc;
}

/* 运行中时配置区保持可读但不再强调 */
.page.is-running .feature,
.page.is-running .rule,
.page.is-running .line {
  opacity: 0.72;
}

.page.is-running .feature:hover,
.page.is-running .rule:hover,
.page.is-running .line:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
  transform: none;
}

/* ============================================================
   Toast
   ============================================================ */
.toasts {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  pointer-events: none;
  width: min(92vw, 460px);
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(11, 24, 19, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
  animation: toast-in 0.28s var(--ease) both;
  max-width: 100%;
}

.toast::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}

.toast.is-success {
  border-color: rgba(60, 228, 166, 0.35);
}
.toast.is-success::before {
  background: var(--jade);
  box-shadow: 0 0 10px rgba(60, 228, 166, 0.6);
}
.toast.is-error {
  border-color: rgba(255, 113, 104, 0.35);
}
.toast.is-error::before {
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 113, 104, 0.5);
}
.toast.is-warn {
  border-color: rgba(233, 201, 121, 0.35);
}
.toast.is-warn::before {
  background: var(--gold);
}

.toast.is-leaving {
  animation: toast-out 0.22s var(--ease) both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}

/* ============================================================
   弹窗（启动 / 说明 / 确认）
   ============================================================ */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

.modal-root > .modal {
  pointer-events: auto;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 7, 5, 0.72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: fade-in 0.2s ease both;
  z-index: 100;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-card {
  width: min(640px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #0d1d17, #07110d 70%);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65);
  animation: pop-in 0.3s var(--ease) both;
}

.modal-card.is-narrow {
  width: min(480px, 100%);
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 22px 0;
}

.modal-title {
  font-size: 16px;
  font-weight: 620;
  letter-spacing: 0.02em;
  flex: 1;
}

.modal-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.modal-x {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--dim);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  flex: none;
  transition: color 0.2s, border-color 0.2s;
}

.modal-x:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.modal-x svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.modal-body {
  padding: 18px 22px 4px;
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px 20px;
  color: var(--dim);
  font-size: 11.5px;
}

.modal-foot .foot-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}

/* 启动日志 */
.log {
  height: 250px;
  overflow: auto;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(2, 8, 6, 0.72);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.85;
  scroll-behavior: smooth;
}

.log:empty::after {
  content: "等待启动指令…";
  color: #476055;
}

.log-line {
  display: flex;
  gap: 8px;
  align-items: baseline;
  animation: log-in 0.2s ease both;
}

@keyframes log-in {
  from {
    opacity: 0;
    transform: translateX(-3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.log-time {
  color: #456155;
  flex: none;
}

.log-tag {
  flex: none;
  min-width: 52px;
  padding: 0 5px;
  border-radius: 4px;
  border: 1px solid rgba(126, 219, 179, 0.14);
  color: #8fb7a6;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-align: center;
  transform: translateY(-1px);
}

.log-text {
  color: #a9c4b7;
  word-break: break-word;
}

.log-line.is-success .log-text {
  color: var(--jade);
}

.log-line.is-success .log-tag {
  border-color: rgba(60, 228, 166, 0.34);
  color: var(--jade);
}

.log-line.is-packet .log-text {
  color: #78948a;
}

.log-line.is-packet .log-tag {
  border-color: rgba(126, 219, 179, 0.1);
  color: #6c8a7e;
}

.launch-progress {
  margin-top: 16px;
}

.launch-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.launch-progress-head b {
  font-family: var(--mono);
  color: var(--jade);
  font-weight: 600;
  font-size: 13px;
}

.track {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #159a6c, #4beeb2);
  box-shadow: 0 0 14px rgba(60, 228, 166, 0.45);
  transition: width 0.28s var(--ease);
}

/* 启动成功 */
.launch-done {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  padding: 14px 0 6px;
  animation: fade-in 0.3s ease both;
}

.done-ring {
  width: 66px;
  height: 66px;
  margin-bottom: 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--jade);
  font-size: 26px;
  border: 1px solid rgba(60, 228, 166, 0.4);
  background: radial-gradient(circle at 50% 30%, rgba(60, 228, 166, 0.24), rgba(60, 228, 166, 0.02) 72%);
  box-shadow: 0 0 0 0 rgba(60, 228, 166, 0.28);
  animation: done-pulse 2s var(--ease) infinite;
}

@keyframes done-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(60, 228, 166, 0.3);
  }
  60% {
    box-shadow: 0 0 0 16px rgba(60, 228, 166, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(60, 228, 166, 0);
  }
}

.done-title {
  font-size: 17px;
  font-weight: 620;
}

.done-sub {
  color: var(--muted);
  font-size: 12.5px;
}

.done-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
}

.done-chips span {
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
  font-size: 11px;
}

/* 启动失败 */
.launch-error {
  padding: 6px 0 2px;
  animation: fade-in 0.25s ease both;
}

.error-box {
  display: flex;
  gap: 11px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 113, 104, 0.3);
  background: var(--red-soft);
}

.error-box .error-ico {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 113, 104, 0.16);
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
}

.error-box h4 {
  margin: 0 0 3px;
  font-size: 13px;
  font-weight: 600;
  color: #ffd0cc;
}

.error-box p {
  color: #d9a39f;
  font-size: 12px;
  line-height: 1.6;
}

.error-hint {
  margin-top: 12px;
  color: var(--dim);
  font-size: 11.5px;
}

/* 使用说明 */
.help-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 6px 0 10px;
}

.help-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 11px;
}

.help-item b {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(233, 201, 121, 0.24);
  background: var(--gold-soft);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

.help-item h4 {
  margin: 1px 0 3px;
  font-size: 13px;
  font-weight: 600;
}

.help-item p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.help-contact {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.help-contact b {
  color: var(--text-soft);
  font-family: var(--mono);
}

/* 确认框 */
.confirm-body {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  padding: 4px 0 8px;
}

.confirm-body strong {
  color: var(--text);
}

.confirm-message {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  padding: 2px 0 6px;
}

.confirm-message strong {
  color: var(--text);
}

/* 空态 */
.empty {
  padding: 30px 18px;
  text-align: center;
  color: var(--dim);
  font-size: 12.5px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.012);
}

/* 骨架 */
.skeleton {
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.skeleton-feature {
  height: 82px;
}

.skeleton-line {
  height: 78px;
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .grid {
    grid-template-columns: 320px minmax(0, 1fr);
  }
  .line-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .side {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-top: 32px;
  }
  .hero-stats {
    width: 100%;
  }
  .hero-stats > div {
    flex: 1;
    min-width: 0;
  }
  .line-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tile-a {
    display: none;
  }
}

@media (max-width: 720px) {
  .toasts {
    left: 50%;
    right: auto;
    top: 68px;
    transform: translateX(-50%);
    align-items: center;
  }
  .side {
    grid-template-columns: 1fr;
  }
  .target-grid {
    grid-template-columns: 1fr;
  }
  .rule-list {
    grid-template-columns: 1fr;
  }
  .dock-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }
  .dock-summary {
    justify-content: space-between;
    gap: 6px;
    font-size: 12px;
  }
  .dock-hide-sm {
    display: none;
  }
  .dock-actions {
    width: 100%;
    justify-content: space-between;
  }
  .dock-actions .btn-launch {
    flex: 1;
  }
  .run-state {
    width: 100%;
    gap: 8px;
    font-size: 12px;
  }
  .run-detail {
    flex: 1 1 100%;
    max-width: none;
    white-space: normal;
  }
  .dock-run .dock-actions .btn {
    flex: 1;
  }
  .page {
    padding-bottom: 152px;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .log {
    height: 210px;
  }
  .modal-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .modal-foot .foot-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: 16px 16px 0;
  }
  .shell {
    padding: 0 16px;
  }
  .ad-banner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 15px;
  }
  .ad-mark {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    font-size: 14px;
  }
  .ad-copy {
    flex: 1 1 calc(100% - 56px);
  }
  .ad-copy strong {
    font-size: 13.5px;
  }
  .ad-actions {
    width: 100%;
  }
  .ad-actions .btn {
    flex: 1;
  }
  .panel {
    padding: 17px 16px 18px;
  }
  .hero h1 {
    font-size: 25px;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .feature {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 12px;
  }
  .feature-icon {
    width: 34px;
    height: 34px;
  }
  .line-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .meta {
    grid-template-columns: 1fr;
  }
  .announce {
    padding: 13px 14px;
  }
  .modal {
    padding: 12px;
    align-items: end;
  }
  .modal-card {
    max-height: 92vh;
    border-radius: 18px;
  }
  .boot-mark {
    width: 48px;
    height: 58px;
  }
  .tile-deco {
    display: none;
  }
}

/* 极窄屏适配 */
@media (max-width: 400px) {
  .node-status {
    padding: 0 9px;
  }
  .node-status span {
    display: none;
  }
  .brand-text small {
    white-space: nowrap;
  }
  .panel-head {
    flex-wrap: wrap;
    row-gap: 2px;
  }
  .panel-head h2 {
    white-space: nowrap;
  }
  .panel-note {
    flex-basis: 100%;
    margin-left: 37px;
    text-align: right;
    white-space: normal;
  }
}

/* ============================================================
   动效偏好
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
