:root {
  --bg: #f3faf6;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --ink: #0f2420;
  --ink-muted: #526b65;
  --line: rgba(15, 36, 32, 0.09);
  --emerald: #0f766e;
  --emerald-bright: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.12);
  --dark-card-1: #0b1620;
  --dark-card-2: #0f2523;
  --amber: #d97706;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --rose: #e11d48;
  --rose-soft: rgba(225, 29, 72, 0.1);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 13px;
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ==================== 流体薄荷氛围背景 ==================== */
.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(circle at 18% 12%, #e0f7ec 0%, #f4faf7 48%, #eef6f4 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  will-change: transform;
}

.orb-1 {
  width: 520px;
  height: 520px;
  left: -120px;
  top: -120px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.45), rgba(16, 185, 129, 0.05));
  animation: orbDrift1 16s ease-in-out infinite alternate;
}

.orb-2 {
  width: 480px;
  height: 480px;
  right: -110px;
  top: 10%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.34), rgba(56, 189, 248, 0.05));
  animation: orbDrift2 20s ease-in-out infinite alternate;
}

.orb-3 {
  width: 420px;
  height: 420px;
  left: 34%;
  bottom: -160px;
  background: radial-gradient(circle, rgba(167, 243, 208, 0.52), rgba(16, 185, 129, 0.04));
  animation: orbDrift3 18s ease-in-out infinite alternate;
}

.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 118, 110, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 78%);
}

@keyframes orbDrift1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(60px, 40px, 0) scale(1.1); }
}
@keyframes orbDrift2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-55px, 65px, 0) scale(1.08); }
}
@keyframes orbDrift3 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(45px, -35px, 0) scale(1.12); }
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

/* ==================== 顶部导航 ==================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 16px 24px 8px;
}

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

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px -8px rgba(13, 94, 79, 0.45);
  transition: transform 0.35s var(--bounce);
}
.brand-logo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.brand-lockup:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }

.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.brand-tag { font-size: 10px; letter-spacing: 0.14em; color: var(--ink-muted); margin-top: 2px; }

/* 弹性滑动胶囊导航 */
.nav-pill {
  position: relative;
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(15, 36, 32, 0.08);
  box-shadow: 0 10px 30px -12px rgba(15, 36, 32, 0.14);
}

.nav-pill-slider {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d7f5e7, #c2f0db);
  transition: transform 0.42s var(--spring), width 0.42s var(--spring);
  z-index: 0;
}

.nav-pill-btn {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.25s ease;
}
.nav-pill-btn.is-active { color: #094d3f; }
.nav-pill-btn:hover { color: var(--ink); }

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

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 36, 32, 0.09);
  backdrop-filter: blur(12px);
}
.lang-btn {
  border: none;
  background: transparent;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.25s var(--spring);
}
.lang-btn.is-active {
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 4px 10px -4px rgba(15, 118, 110, 0.55);
}
.lang-btn:hover:not(.is-active) { color: var(--ink); }

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(15, 36, 32, 0.09);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: transform 0.35s var(--bounce), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.theme-toggle:hover { transform: rotate(15deg) scale(1.06); border-color: var(--emerald-bright); color: var(--emerald); }
.theme-toggle .ico-sun { display: none; }
.theme-toggle .ico-moon { display: block; }
[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
[data-theme="dark"] .theme-toggle .ico-moon { display: none; }

.session-guide-steps em, .field-radar em, .live-meta-row em, .work-foot em { font-style: normal; }
.work-foot em { margin-right: 5px; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #0b5345;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 185, 129, 0.22);
  backdrop-filter: blur(12px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-bright);
  position: relative;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.55);
  animation: radarRing 2s ease-out infinite;
}

@keyframes radarRing {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ==================== 主双栏布局 ==================== */
.shell {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 18px auto 52px;
  padding: 0 24px;
}

.desk-grid {
  display: grid;
  grid-template-columns: minmax(340px, 430px) 1fr;
  gap: 26px;
  align-items: start;
}

.reveal-up {
  animation: revealUp 0.72s var(--spring) both;
}
.delay-1 { animation-delay: 0.08s; }

@keyframes revealUp {
  from { opacity: 0; transform: translateY(20px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==================== 左栏：深色翡翠实时指挥台 ==================== */
.command-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 30px 28px 24px;
  color: #eaf7f2;
  background: linear-gradient(155deg, var(--dark-card-1) 0%, #0d1d26 52%, var(--dark-card-2) 100%);
  box-shadow: 0 28px 60px -24px rgba(8, 25, 22, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.command-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  right: -90px;
  top: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #5eead4;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-title {
  margin: 0 0 12px;
  font-size: 29px;
  line-height: 1.24;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero-accent {
  background: linear-gradient(90deg, #6ee7b7, #34d399, #2dd4bf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(226, 245, 238, 0.72);
}

.guide-steps {
  list-style: none;
  margin: 22px 0;
  padding: 0;
  display: grid;
  gap: 13px;
}

.guide-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.guide-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  color: #34d399;
  padding-top: 2px;
}

.guide-steps strong { display: block; font-size: 13.5px; color: #f1fbf7; margin-bottom: 2px; }
.guide-steps p { margin: 0; font-size: 12px; line-height: 1.5; color: rgba(226, 245, 238, 0.6); }

/* 实时 7 步时间轴卡片 */
.timeline-card {
  margin-top: 18px;
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.timeline-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
}

.timeline-live-tag {
  font-size: 11px;
  font-weight: 500;
  color: rgba(226, 245, 238, 0.56);
}

.timeline-wrap { position: relative; }

.timeline-rail {
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.timeline-rail-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #34d399, #2dd4bf);
  transition: height 0.65s var(--spring);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.65);
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  transition: opacity 0.3s ease, transform 0.3s var(--spring);
}

.tl-node {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #102029;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  color: transparent;
  transition: all 0.38s var(--bounce);
  z-index: 1;
}

.tl-label { color: rgba(234, 247, 242, 0.55); font-weight: 500; transition: color 0.3s ease; }
.tl-status { font-size: 11.5px; color: rgba(234, 247, 242, 0.42); transition: color 0.3s ease; }

.tl-item.is-active .tl-node {
  background: #10b981;
  border-color: #6ee7b7;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.24), 0 0 16px rgba(52, 211, 153, 0.7);
  animation: nodePulse 1.8s ease-in-out infinite;
}
.tl-item.is-active .tl-node::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}
.tl-item.is-active .tl-label { color: #ffffff; font-weight: 700; }
.tl-item.is-active .tl-status { color: #6ee7b7; font-weight: 600; }

.tl-item.is-done .tl-node {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #34d399;
  color: #fff;
  transform: scale(1.04);
}
.tl-item.is-done .tl-label { color: #d6f5e8; }
.tl-item.is-done .tl-status { color: #34d399; }

.tl-item.is-warn .tl-node {
  background: #f59e0b;
  border-color: #fde68a;
  color: #1c1917;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25);
  animation: nodePulseWarn 1.6s ease-in-out infinite;
}
.tl-item.is-warn .tl-label { color: #fef3c7; font-weight: 700; }
.tl-item.is-warn .tl-status { color: #fbbf24; font-weight: 600; }

.tl-item.is-error .tl-node {
  background: #e11d48;
  border-color: #fda4af;
  color: #fff;
}
.tl-item.is-error .tl-label { color: #ffe4e6; font-weight: 700; }
.tl-item.is-error .tl-status { color: #fb7185; }

@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22), 0 0 12px rgba(52, 211, 153, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.08), 0 0 22px rgba(52, 211, 153, 0.9); }
}
@keyframes nodePulseWarn {
  0%, 100% { box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.08); }
}

.security-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: rgba(226, 245, 238, 0.62);
}
.shield-ico { color: #34d399; display: grid; place-items: center; }

/* ==================== 右栏：奶油白主交互工作台 ==================== */
.work-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 28px 30px 24px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 24px 60px -24px rgba(15, 55, 48, 0.16),
    0 4px 18px -6px rgba(15, 36, 32, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.work-top-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: rgba(15, 118, 110, 0.08);
}
.work-top-progress-bar {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #0f766e, #10b981, #2dd4bf);
  transition: width 0.55s var(--spring);
}

.tab-view { display: none; }
.tab-view.is-active {
  display: block;
  animation: paneEnter 0.42s var(--spring) both;
}

@keyframes paneEnter {
  from { opacity: 0; transform: translateY(10px) scale(0.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.work-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.work-kicker {
  font-size: 12px;
  font-weight: 600;
  color: #b45309;
  margin-bottom: 4px;
}

.work-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.work-head-right { display: flex; align-items: center; gap: 8px; }

.step-chip {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #0f766e;
  background: #e3f7ef;
}

.online-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.mini-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
}

/* 紧凑 4 步进度条 */
.mini-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 20px;
}
.mini-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: #849a95;
  transition: color 0.3s ease;
}
.mini-step span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 700;
  background: #e7f0ed;
  color: #6b847e;
  transition: all 0.35s var(--bounce);
}
.mini-step b { font-weight: 600; }
.mini-step.is-active { color: var(--ink); }
.mini-step.is-active span {
  background: linear-gradient(135deg, #0d5e4f, #10b981);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 14px -4px rgba(16, 185, 129, 0.55);
}
.mini-step.is-done { color: #0f766e; }
.mini-step.is-done span { background: #d1fae5; color: #059669; }
.mini-step-line { flex: 1; height: 1.5px; background: rgba(15, 36, 32, 0.08); min-width: 10px; }

/* 步骤面板平滑切换 */
.step-pane { display: none; }
.step-pane.is-active {
  display: block;
  animation: stepSlideIn 0.45s var(--spring) both;
}

@keyframes stepSlideIn {
  from { opacity: 0; transform: translateX(14px) scale(0.992); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.shake-anim {
  animation: gentleShake 0.42s ease;
}
@keyframes gentleShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  45% { transform: translateX(5px); }
  70% { transform: translateX(-3px); }
}

/* 提示条 */
.alert-banner {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
  animation: paneEnter 0.32s var(--spring) both;
}
.alert-banner.is-error { background: var(--rose-soft); color: #9f1239; border: 1px solid rgba(225, 29, 72, 0.22); }
.alert-banner.is-warn { background: var(--amber-soft); color: #92400e; border: 1px solid rgba(245, 158, 11, 0.28); }
.alert-banner.is-info { background: var(--emerald-soft); color: #065f46; border: 1px solid rgba(16, 185, 129, 0.25); }

/* 表单与输入框 */
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 15px;
  background: #f5faf8;
  border: 1.5px solid rgba(15, 36, 32, 0.11);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.input-shell:focus-within {
  background: #ffffff;
  border-color: var(--emerald-bright);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.code-input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 15px 16px;
  font-size: 15px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  letter-spacing: 0.03em;
  color: var(--ink);
  outline: none;
}

.input-action-btn {
  margin-right: 10px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 36, 32, 0.1);
  background: #fff;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.input-action-btn:hover { color: var(--emerald); border-color: var(--emerald-bright); }

/* 本地开发演示快捷胶囊 */
.dev-demo-bar {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(45, 212, 191, 0.05));
  border: 1px dashed rgba(16, 185, 129, 0.35);
}
.dev-demo-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #065f46;
  margin-bottom: 8px;
}
.dev-badge {
  padding: 2px 7px;
  border-radius: 6px;
  background: #0f766e;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
}
.dev-demo-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.demo-pill-btn {
  border: 1px solid rgba(15, 118, 110, 0.2);
  background: #fff;
  color: #0b4c42;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--bounce), box-shadow 0.2s ease, border-color 0.2s ease;
}
.demo-pill-btn:hover {
  transform: translateY(-2px);
  border-color: #10b981;
  box-shadow: 0 6px 14px -6px rgba(16, 185, 129, 0.35);
}
.demo-pill-btn small { color: #059669; font-weight: 500; margin-left: 4px; }

/* 套餐自动识别卡片 */
.plan-detect-card {
  margin-top: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 36, 32, 0.08);
  background: #f7fbf9;
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.plan-detect-card.is-detected {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(145deg, #ffffff, #ecfdf5);
  box-shadow: 0 16px 34px -20px rgba(16, 185, 129, 0.45);
}

.plan-detect-idle {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}
.spark-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fef3c7;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.plan-detect-idle strong { display: block; font-size: 14px; margin-bottom: 2px; }
.plan-detect-idle p { margin: 0; font-size: 12.5px; color: var(--ink-muted); }

.plan-detect-result {
  position: relative;
  padding: 18px 20px;
  animation: cardPop 0.48s var(--bounce) both;
}
@keyframes cardPop {
  from { opacity: 0; transform: scale(0.96) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.plan-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.72) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: shimmerSweep 1.1s var(--spring) 0.1s forwards;
  pointer-events: none;
}
@keyframes shimmerSweep {
  to { transform: translateX(120%); }
}

.plan-result-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.plan-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #0f766e;
  color: #fff;
  margin-bottom: 6px;
}
.plan-name { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.plan-desc { margin: 0; font-size: 12.5px; color: var(--ink-muted); line-height: 1.5; }
.plan-term-box {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  text-align: center;
  min-width: 78px;
}
.plan-term-box small { display: block; font-size: 10.5px; color: var(--ink-muted); }
.plan-term-box strong { font-size: 14px; color: #065f46; }

.plan-highlights {
  list-style: none;
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px dashed rgba(15, 118, 110, 0.16);
  display: grid;
  gap: 6px;
}
.plan-highlights li {
  font-size: 12.5px;
  color: #164e44;
  display: flex;
  align-items: center;
  gap: 7px;
}
.plan-highlights li::before {
  content: "✓";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.18);
  color: #059669;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.plan-channel-bar {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.1);
  color: #065f46;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ==================== Step 2: Session 输入与扫描光束 ==================== */
.selected-cdk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  background: #f2f9f6;
  border: 1px solid rgba(15, 118, 110, 0.14);
  margin-bottom: 14px;
}
.selected-cdk-bar small { display: block; font-size: 11px; color: var(--ink-muted); }
.selected-cdk-bar strong { font-family: ui-monospace, monospace; font-size: 13.5px; }
.plan-pill {
  padding: 5px 11px;
  border-radius: 999px;
  background: #d1fae5;
  color: #065f46;
  font-size: 12px;
  font-weight: 700;
}

.session-guide-box {
  padding: 13px 15px;
  border-radius: 14px;
  background: #f8fbfa;
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.session-guide-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  margin-bottom: 9px;
}
.session-guide-links { display: flex; gap: 7px; flex-wrap: wrap; }
.chip-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e6f7f0;
  color: #0f766e;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--bounce), background 0.2s ease;
}
.chip-link:hover { transform: translateY(-1px); background: #d1fae5; }
.chip-dev { background: #fef3c7; color: #92400e; }
.chip-dev:hover { background: #fde68a; }

.session-guide-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 12px;
  color: var(--ink-muted);
}
.session-guide-steps b { color: #0f766e; margin-right: 3px; }

.textarea-shell {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  background: #f5faf8;
  border: 1.5px solid rgba(15, 36, 32, 0.11);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.textarea-shell:focus-within {
  background: #fff;
  border-color: var(--emerald-bright);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}
.session-textarea {
  width: 100%;
  border: none;
  background: transparent;
  padding: 14px 15px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink);
  resize: vertical;
  outline: none;
}

/* 全息扫描光束动效 */
.scan-beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 44px;
  top: -50px;
  background: linear-gradient(180deg, transparent, rgba(16, 185, 129, 0.32), rgba(52, 211, 153, 0.72), transparent);
  border-bottom: 2px solid #10b981;
  pointer-events: none;
  opacity: 0;
}
.textarea-shell.is-scanning .scan-beam {
  opacity: 1;
  animation: laserScan 1.15s ease-in-out infinite;
}
@keyframes laserScan {
  0% { top: -44px; }
  100% { top: 100%; }
}

/* 实时字段雷达 */
.field-radar {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.radar-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: #6b847e;
  background: #eef4f2;
  transition: all 0.28s var(--bounce);
}
.radar-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  transition: background 0.25s ease;
}
.radar-chip.is-ok {
  color: #065f46;
  background: #d1fae5;
  transform: scale(1.03);
}
.radar-chip.is-ok i { background: #10b981; }

.radar-preview {
  margin-top: 8px;
  font-size: 12.5px;
  color: #065f46;
  font-weight: 600;
}

/* ==================== Step 3: 核对账号与升级桥梁 ==================== */
.confirm-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 17px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
  border: 1px solid rgba(16, 185, 129, 0.28);
  margin-bottom: 18px;
}
.confirm-banner.is-blocked {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-color: rgba(245, 158, 11, 0.4);
}
.confirm-icon-ok {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #10b981;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.confirm-banner.is-blocked .confirm-icon-ok { background: #d97706; }
.confirm-banner h3 { margin: 0 0 3px; font-size: 15.5px; }
.confirm-banner p { margin: 0; font-size: 12.5px; color: var(--ink-muted); }

.upgrade-bridge {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.bridge-card {
  padding: 16px;
  border-radius: 16px;
  background: #f6faf8;
  border: 1px solid var(--line);
}
.bridge-target {
  background: linear-gradient(145deg, #ffffff, #e6faf1);
  border-color: rgba(16, 185, 129, 0.34);
}
.bridge-card small { display: block; font-size: 11px; color: var(--ink-muted); margin-bottom: 4px; }
.bridge-card strong { display: block; font-size: 15px; word-break: break-all; margin-bottom: 5px; }
.bridge-meta { font-size: 12px; color: #0f766e; font-weight: 600; }

.bridge-arrow {
  display: flex;
  gap: 3px;
  padding: 0 4px;
}
.flow-chevron {
  width: 8px;
  height: 8px;
  border-right: 2.2px solid #10b981;
  border-top: 2.2px solid #10b981;
  transform: rotate(45deg);
  opacity: 0.25;
  animation: chevronFlow 1.2s ease-in-out infinite;
}
.flow-chevron:nth-child(2) { animation-delay: 0.2s; }
.flow-chevron:nth-child(3) { animation-delay: 0.4s; }
@keyframes chevronFlow {
  0%, 100% { opacity: 0.2; transform: rotate(45deg) translate(0, 0); }
  50% { opacity: 1; transform: rotate(45deg) translate(2px, -2px); }
}

.confirm-checklist {
  display: grid;
  gap: 7px;
  padding: 12px 14px;
  border-radius: 13px;
  background: #f8fbfa;
  font-size: 12.5px;
  color: var(--ink-muted);
}
.check-item { display: flex; align-items: center; gap: 7px; }
.ok-dot { color: #059669; font-weight: 800; }

/* ==================== Step 4: 精密双轨能量仪表盘 & 庆祝 ==================== */
.live-stage-card {
  position: relative;
  overflow: hidden;
  padding: 22px 24px 18px;
  border-radius: 22px;
  background: linear-gradient(145deg, #f4fcf9 0%, #e7f7f0 55%, #effaf7 100%);
  border: 1px solid rgba(16, 185, 129, 0.24);
  box-shadow: 0 18px 40px -26px rgba(15, 118, 110, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.live-stage-aurora {
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(circle at 22% 45%, rgba(46, 242, 160, 0.24), transparent 52%),
              radial-gradient(circle at 82% 30%, rgba(45, 212, 191, 0.16), transparent 50%);
  pointer-events: none;
  animation: stageAurora 7s ease-in-out infinite alternate;
}
@keyframes stageAurora {
  0% { transform: translate3d(-3%, 0, 0) scale(1); opacity: 0.7; }
  100% { transform: translate3d(4%, -3%, 0) scale(1.06); opacity: 1; }
}

.live-stage-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 24px;
}

.reactor-wrap {
  position: relative;
  width: 118px;
  height: 118px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.reactor-aura {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, rgba(46, 242, 160, 0.08) 55%, transparent 72%);
  animation: auraBreath 2.6s ease-in-out infinite;
}
@keyframes auraBreath {
  0%, 100% { transform: scale(0.92); opacity: 0.65; }
  50% { transform: scale(1.12); opacity: 1; }
}

.reactor-shockwave {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.65);
  opacity: 0;
  pointer-events: none;
}
.live-stage-card.is-succeeded .reactor-shockwave {
  animation: shockwaveBurst 1.1s var(--spring) forwards;
}
@keyframes shockwaveBurst {
  0% { transform: scale(0.75); opacity: 0.9; }
  100% { transform: scale(1.55); opacity: 0; }
}

.reactor-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}
.reactor-ticks {
  fill: none;
  stroke: rgba(15, 118, 110, 0.22);
  stroke-width: 2;
  stroke-dasharray: 2 14.75;
  transform-origin: 70px 70px;
  animation: slowSpin 18s linear infinite;
}
.reactor-track {
  fill: none;
  stroke: rgba(15, 118, 110, 0.12);
  stroke-width: 7;
}
.reactor-arc {
  fill: none;
  stroke: url(#reactorGrad);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 339.3;
  stroke-dashoffset: 250;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.45));
  transition: stroke-dashoffset 0.75s var(--spring);
}
.live-stage-card.is-warn .reactor-arc {
  stroke: url(#reactorWarnGrad);
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.45));
}
.reactor-sub-orbit {
  fill: none;
  stroke: rgba(16, 185, 129, 0.34);
  stroke-width: 1.5;
  stroke-dasharray: 4 7;
  transform-origin: 70px 70px;
  animation: counterSpin 11s linear infinite;
}
.live-stage-card.is-succeeded .reactor-ticks,
.live-stage-card.is-succeeded .reactor-sub-orbit {
  animation-play-state: paused;
  opacity: 0.45;
}

@keyframes slowSpin { to { transform: rotate(360deg); } }
@keyframes counterSpin { to { transform: rotate(-360deg); } }

/* 卫星轨道发光微粒 */
.reactor-satellite {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  animation: satOrbit 2.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  pointer-events: none;
}
.reactor-satellite span {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #2ef2a0;
  box-shadow: 0 0 12px 2px rgba(46, 242, 160, 0.9), 0 0 4px #ffffff;
}
.live-stage-card.is-succeeded .reactor-satellite,
.live-stage-card.is-warn .reactor-satellite {
  opacity: 0;
  transition: opacity 0.35s ease;
}
@keyframes satOrbit { to { transform: rotate(360deg); } }

/* 中心磨砂玻璃核 */
.reactor-core {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.18);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px -10px rgba(15, 118, 110, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 0.5s var(--bounce), background 0.4s ease, border-color 0.4s ease;
}
.live-stage-card.is-succeeded .reactor-core {
  background: linear-gradient(135deg, #0d9488, #10b981);
  border-color: #6ee7b7;
  transform: scale(1.06);
  box-shadow: 0 14px 32px -8px rgba(16, 185, 129, 0.58);
}

.reactor-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.reactor-pct {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0b5d4e;
  line-height: 1;
}
.reactor-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 12px;
}
.reactor-bars i {
  display: block;
  width: 3px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #2ef2a0, #0f766e);
  animation: eqWave 1.05s ease-in-out infinite;
}
.reactor-bars i:nth-child(2) { animation-delay: 0.16s; }
.reactor-bars i:nth-child(3) { animation-delay: 0.32s; }
.reactor-bars i:nth-child(4) { animation-delay: 0.48s; }
@keyframes eqWave {
  0%, 100% { height: 4px; opacity: 0.5; }
  50% { height: 12px; opacity: 1; }
}

.reactor-check {
  display: block;
  width: 40px;
  height: 40px;
  color: #ffffff;
  animation: checkPop 0.5s var(--bounce) both;
}
.reactor-check path {
  stroke: #ffffff;
  stroke-dasharray: 60;
  stroke-dashoffset: 0;
  animation: drawCheck 0.55s var(--spring) both;
}
@keyframes drawCheck {
  from { stroke-dashoffset: 60; }
  to { stroke-dashoffset: 0; }
}
@keyframes checkPop {
  from { transform: scale(0.55); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.reactor-warn {
  font-size: 28px;
  font-weight: 900;
  color: #d97706;
}

/* 7 段微缩流光能量进度条 */
.energy-segments {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.energy-segments span {
  position: relative;
  overflow: hidden;
  height: 5px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  transition: background 0.35s ease;
}
.energy-segments span.is-done {
  background: linear-gradient(90deg, #0d9488, #10b981);
}
.energy-segments span.is-active {
  background: rgba(16, 185, 129, 0.28);
}
.energy-segments span.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #2ef2a0, #10b981, transparent);
  animation: segShimmer 1.15s ease-in-out infinite;
}
.energy-segments span.is-warn {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}
@keyframes segShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.live-stage-copy { flex: 1; min-width: 0; }
.live-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: #d1fae5;
  color: #065f46;
  margin-bottom: 7px;
}
.live-pill.is-warn { background: #fef3c7; color: #92400e; }
.live-heading { margin: 0 0 5px; font-size: 19px; font-weight: 800; }
.live-sub { margin: 0 0 10px; font-size: 13px; color: var(--ink-muted); line-height: 1.5; }
.live-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12px;
  color: var(--ink-muted);
}
.live-meta-row b { color: var(--ink); font-family: ui-monospace, monospace; }

.verify-action-card {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: cardPop 0.45s var(--bounce) both;
}
.verify-pulse-icon { font-size: 26px; }
.verify-copy { flex: 1; }
.verify-copy h4 { margin: 0 0 3px; font-size: 14.5px; color: #78350f; }
.verify-copy p { margin: 0; font-size: 12.5px; color: #92400e; }
.verify-countdown { margin-top: 4px; font-size: 12px; font-weight: 700; color: #b45309; }

.receipt-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 14px 32px -20px rgba(16, 185, 129, 0.4);
  animation: cardPop 0.5s var(--bounce) both;
}
.receipt-cdk-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 13px;
  background: #f2fbf7;
  border: 1px dashed rgba(16, 185, 129, 0.36);
  margin-bottom: 14px;
}
.receipt-cdk-left { min-width: 0; }
.receipt-cdk-left small {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.receipt-cdk-left em { font-style: normal; }
.used-pill {
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  background: #d1fae5;
  color: #065f46;
}
.receipt-cdk-code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
  word-break: break-all;
}
.receipt-copy-btn { margin-right: 0; flex-shrink: 0; }
.receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.receipt-grid small { display: block; font-size: 11px; color: var(--ink-muted); margin-bottom: 2px; }
.receipt-grid strong { font-size: 13.5px; word-break: break-all; }
.text-emerald { color: #059669; }
.receipt-actions {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
}
.receipt-actions .btn-primary,
.receipt-actions .btn-secondary {
  width: 100%;
}

.activity-feed {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 15px;
  background: #f8fbfa;
  border: 1px solid var(--line);
}
.activity-feed-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  max-height: 150px;
  overflow-y: auto;
}
.activity-list li {
  font-size: 12px;
  color: var(--ink-muted);
  display: flex;
  gap: 8px;
  animation: paneEnter 0.32s var(--spring) both;
}
.activity-list time {
  font-family: ui-monospace, monospace;
  color: #0f766e;
  font-weight: 600;
  flex-shrink: 0;
}

/* ==================== 按钮与微动效 ==================== */
.action-row {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}
.action-row.two-col { display: grid; grid-template-columns: auto 1fr; }

.btn-primary, .btn-secondary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: transform 0.22s var(--bounce), box-shadow 0.25s ease, opacity 0.2s ease;
}

.btn-primary {
  width: 100%;
  color: #ffffff;
  background: linear-gradient(135deg, #132a27, #0f5247);
  box-shadow: 0 12px 26px -12px rgba(15, 82, 71, 0.58);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgba(15, 82, 71, 0.65);
}
.btn-primary:active:not(:disabled) { transform: scale(0.985); }
.btn-primary:disabled { opacity: 0.58; cursor: not-allowed; }

.btn-emerald {
  background: linear-gradient(135deg, #0d7a64, #10b981);
  box-shadow: 0 14px 28px -12px rgba(16, 185, 129, 0.65);
}
.btn-amber {
  width: auto;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  white-space: nowrap;
}

.btn-primary.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  animation: btnShimmer 1s linear infinite;
}
@keyframes btnShimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.btn-secondary {
  background: #edf4f1;
  color: var(--ink);
  border: 1px solid rgba(15, 36, 32, 0.08);
}
.btn-secondary:hover { background: #e2ede8; }

.link-btn {
  border: none;
  background: transparent;
  padding: 0;
  color: #0f766e;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

/* 查询 & 订阅体检卡片 */
.batch-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.batch-label-tools { display: flex; align-items: center; gap: 8px; }
.line-count-pill {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: #e6f6ef;
  color: #0f766e;
}
.batch-cdk-textarea { line-height: 1.7; letter-spacing: 0.02em; }

.batch-result-wrap {
  margin-top: 18px;
  animation: paneEnter 0.38s var(--spring) both;
}
.batch-summary-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}
.filter-chip {
  border: 1px solid rgba(15, 36, 32, 0.1);
  background: #f3f9f6;
  color: var(--ink-muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.22s var(--spring);
}
.filter-chip em { font-style: normal; }
.filter-chip b { font-family: ui-monospace, monospace; }
.filter-chip.is-active {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.batch-list {
  display: grid;
  gap: 9px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 2px;
}
.batch-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
  padding: 13px 15px;
  border-radius: 15px;
  background: #f7fbf9;
  border: 1px solid rgba(15, 36, 32, 0.08);
  animation: cardPop 0.35s var(--spring) both;
  transition: border-color 0.2s ease, transform 0.2s var(--spring);
}
.batch-row:hover { border-color: rgba(16, 185, 129, 0.35); transform: translateY(-1px); }
.batch-row-main { min-width: 0; }
.batch-row-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.batch-row-mask {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}
.batch-row-plan {
  font-size: 12px;
  font-weight: 600;
  color: #0f766e;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
}
.batch-row-meta {
  font-size: 12px;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.batch-row-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.status-tag.is-error { background: var(--rose-soft); color: #be123c; }
.status-tag.is-muted { background: #e8efed; color: #526b65; }
.batch-empty {
  text-align: center;
  padding: 22px 12px;
  font-size: 13px;
  color: var(--ink-muted);
  border-radius: 14px;
  background: #f6faf8;
}

.query-result-card, .inspect-result-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: #f7fbf9;
  border: 1px solid rgba(16, 185, 129, 0.26);
  animation: cardPop 0.42s var(--bounce) both;
}
.query-result-top, .inspect-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.query-result-top small { display: block; font-size: 11px; color: var(--ink-muted); }
.query-result-top strong { font-family: ui-monospace, monospace; font-size: 15px; }
.status-tag, .inspect-badge {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #d1fae5;
  color: #065f46;
}
.status-tag.is-warn, .inspect-badge.is-warn { background: #fef3c7; color: #92400e; }
.query-kv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.query-kv-grid small { display: block; font-size: 11px; color: var(--ink-muted); }
.query-kv-grid strong { font-size: 13.5px; word-break: break-all; }
.query-note { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-muted); line-height: 1.5; }

.work-foot {
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* 模态框 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 22, 20, 0.55);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-backdrop[hidden] { display: none; }
.modal-card {
  width: 100%;
  max-width: 420px;
  padding: 26px;
  border-radius: 22px;
  background: #fff;
  text-align: center;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.35);
  animation: cardPop 0.38s var(--bounce) both;
}
.modal-icon { font-size: 36px; margin-bottom: 8px; }
.modal-card h3 { margin: 0 0 8px; font-size: 19px; }
.modal-card p { margin: 0 0 20px; font-size: 13.5px; color: var(--ink-muted); line-height: 1.6; }
.modal-actions { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; }

/* 响应式（平板 & 手机端深度适配） */
@media (max-width: 960px) {
  .topbar {
    padding: 12px 16px 8px;
  }
  .topbar-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px 10px;
  }
  .nav-pill {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .nav-pill-btn {
    padding: 9px 8px;
    font-size: 13.5px;
    text-align: center;
    white-space: nowrap;
  }
  .status-badge { display: none; }

  .shell {
    margin: 10px auto 40px;
    padding: 0 16px;
  }
  .desk-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  /* 手机端交互工作台优先置顶，切换 Tab 即刻可见，时间轴与说明紧随其后 */
  .work-panel { order: -1; }
  .command-panel { order: 1; }

  .upgrade-bridge { grid-template-columns: 1fr; }
  .bridge-arrow { justify-content: center; transform: rotate(90deg); }
  .live-stage-top { flex-direction: column; text-align: center; }
  .live-meta-row { justify-content: center; }
  .verify-action-card { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .topbar { padding: 10px 12px 6px; }
  .shell { margin: 8px auto 32px; padding: 0 12px; }

  .brand-lockup { gap: 9px; min-width: 0; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; }
  .brand-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-tag { font-size: 9px; letter-spacing: 0.1em; }
  .topbar-right { gap: 6px; flex-shrink: 0; }
  .lang-btn { padding: 4px 8px; font-size: 11.5px; }
  .theme-toggle { width: 32px; height: 32px; }

  .work-panel {
    padding: 20px 16px 18px;
    border-radius: 20px;
  }
  .command-panel {
    padding: 22px 18px 18px;
    border-radius: 20px;
  }
  .hero-title {
    font-size: 24px;
    line-height: 1.28;
  }
  .hero-sub { font-size: 13px; }
  .guide-steps { gap: 11px; margin-bottom: 18px; }
  .guide-steps p { font-size: 12px; }

  .work-head { flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
  .work-title { font-size: 20px; }
  .work-head-right { gap: 6px; }
  .step-chip, .online-chip { padding: 4px 9px; font-size: 11.5px; }

  .mini-stepper {
    gap: 4px;
    margin-bottom: 18px;
    align-items: flex-start;
  }
  .mini-step {
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    text-align: center;
    white-space: nowrap;
  }
  .mini-step-line {
    margin-top: 11px;
    min-width: 8px;
  }

  /* 16px 避免 iOS Safari 聚焦输入框时自动放大页面 */
  .code-input { font-size: 16px; padding: 13px 12px; }
  .session-textarea { font-size: 14px; padding: 12px; }
  .input-action-btn { padding: 6px 10px; margin-right: 8px; }

  .plan-result-top { flex-direction: column; }
  .plan-term-box { align-self: flex-start; display: flex; align-items: baseline; gap: 6px; padding: 6px 12px; }
  .selected-cdk-bar { flex-wrap: wrap; gap: 8px; }

  .action-row.two-col { grid-template-columns: 1fr; }
  .action-row.two-col .btn-secondary { order: 2; }
  .btn-primary, .btn-secondary { padding: 13px 18px; font-size: 14px; }

  .live-stage-card { padding: 18px 16px 15px; }
  .reactor-wrap { width: 104px; height: 104px; }
  .live-heading { font-size: 17px; }
  .receipt-card { padding: 15px; }
  .receipt-cdk-box { padding: 10px 12px; }
  .receipt-cdk-code { font-size: 12.5px; }
  .receipt-grid, .query-kv-grid { grid-template-columns: 1fr; gap: 10px; }
  .receipt-actions { grid-template-columns: 1fr; }

  .batch-label-row { flex-wrap: wrap; gap: 6px; }
  .batch-row { grid-template-columns: 1fr; padding: 12px 13px; }
  .batch-row-side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 4px;
    border-top: 1px dashed var(--line);
  }
  .work-foot { flex-wrap: wrap; gap: 6px; }
}

/* ==================== 暗黑模式（深邃翡翠暗夜美学） ==================== */
[data-theme="dark"] {
  --bg: #060c10;
  --surface: rgba(13, 23, 29, 0.9);
  --surface-solid: #0d171d;
  --ink: #e8f5f0;
  --ink-muted: #8ea9a2;
  --line: rgba(148, 210, 194, 0.12);
  --emerald: #34d399;
  --emerald-bright: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.16);
}

[data-theme="dark"] .ambient-canvas {
  background: radial-gradient(circle at 18% 12%, #0a1f1e 0%, #060c10 52%, #050a0d 100%);
}
[data-theme="dark"] .orb-1 { background: radial-gradient(circle, rgba(16, 185, 129, 0.28), transparent 70%); opacity: 0.55; }
[data-theme="dark"] .orb-2 { background: radial-gradient(circle, rgba(45, 212, 191, 0.2), transparent 70%); opacity: 0.48; }
[data-theme="dark"] .orb-3 { background: radial-gradient(circle, rgba(14, 165, 233, 0.16), transparent 70%); opacity: 0.45; }
[data-theme="dark"] .dot-grid { background-image: radial-gradient(rgba(52, 211, 153, 0.12) 1px, transparent 1px); }

[data-theme="dark"] .nav-pill,
[data-theme="dark"] .lang-switch,
[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .status-badge {
  background: rgba(13, 24, 30, 0.86);
  border-color: rgba(52, 211, 153, 0.16);
  color: #cfece2;
}
[data-theme="dark"] .nav-pill-slider {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(45, 212, 191, 0.2));
}
[data-theme="dark"] .nav-pill-btn { color: #8ea9a2; }
[data-theme="dark"] .nav-pill-btn.is-active { color: #6ee7b7; }
[data-theme="dark"] .lang-btn.is-active { background: #10b981; color: #051310; }

[data-theme="dark"] .command-panel {
  border: 1px solid rgba(52, 211, 153, 0.16);
  box-shadow: 0 28px 64px -22px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(110, 231, 183, 0.12);
}
[data-theme="dark"] .work-panel {
  border: 1px solid rgba(52, 211, 153, 0.14);
  box-shadow: 0 28px 64px -24px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .work-kicker { color: #fbbf24; }
[data-theme="dark"] .step-chip { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; }
[data-theme="dark"] .online-chip { background: rgba(16, 185, 129, 0.14); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.28); }

[data-theme="dark"] .mini-step span { background: #132229; color: #8ea9a2; }
[data-theme="dark"] .mini-step.is-done span { background: rgba(16, 185, 129, 0.22); color: #34d399; }
[data-theme="dark"] .mini-step-line { background: rgba(148, 210, 194, 0.12); }

[data-theme="dark"] .input-shell,
[data-theme="dark"] .textarea-shell {
  background: #081015;
  border-color: rgba(148, 210, 194, 0.16);
}
[data-theme="dark"] .input-shell:focus-within,
[data-theme="dark"] .textarea-shell:focus-within {
  background: #0b161c;
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}
[data-theme="dark"] .input-action-btn {
  background: #122128;
  border-color: rgba(148, 210, 194, 0.16);
  color: #b7d3cb;
}

[data-theme="dark"] .dev-demo-bar {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(52, 211, 153, 0.28);
}
[data-theme="dark"] .dev-demo-head { color: #a7f3d0; }
[data-theme="dark"] .demo-pill-btn {
  background: #0d1c23;
  border-color: rgba(52, 211, 153, 0.24);
  color: #d7f3e9;
}
[data-theme="dark"] .demo-pill-btn small { color: #34d399; }

[data-theme="dark"] .plan-detect-card,
[data-theme="dark"] .selected-cdk-bar,
[data-theme="dark"] .session-guide-box,
[data-theme="dark"] .bridge-card,
[data-theme="dark"] .confirm-checklist,
[data-theme="dark"] .activity-feed,
[data-theme="dark"] .query-result-card,
[data-theme="dark"] .inspect-result-card {
  background: #0a141a;
  border-color: rgba(148, 210, 194, 0.12);
}
[data-theme="dark"] .plan-detect-card.is-detected,
[data-theme="dark"] .bridge-target {
  background: linear-gradient(145deg, #0d1c22, #0c2621);
  border-color: rgba(52, 211, 153, 0.34);
}
[data-theme="dark"] .spark-icon { background: rgba(245, 158, 11, 0.16); }
[data-theme="dark"] .plan-term-box { background: rgba(16, 185, 129, 0.15); }
[data-theme="dark"] .plan-term-box strong { color: #6ee7b7; }
[data-theme="dark"] .plan-highlights li { color: #c7e8de; }
[data-theme="dark"] .plan-channel-bar { background: rgba(16, 185, 129, 0.14); color: #6ee7b7; }
[data-theme="dark"] .plan-shimmer {
  background: linear-gradient(105deg, transparent 35%, rgba(110, 231, 183, 0.16) 50%, transparent 65%);
}

[data-theme="dark"] .plan-pill,
[data-theme="dark"] .chip-link { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; }
[data-theme="dark"] .chip-dev { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
[data-theme="dark"] .radar-chip { background: #102027; color: #8ea9a2; }
[data-theme="dark"] .radar-chip.is-ok { background: rgba(16, 185, 129, 0.22); color: #6ee7b7; }
[data-theme="dark"] .radar-preview { color: #6ee7b7; }

[data-theme="dark"] .confirm-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(45, 212, 191, 0.08));
  border-color: rgba(52, 211, 153, 0.3);
}
[data-theme="dark"] .confirm-banner.is-blocked {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.1));
  border-color: rgba(251, 191, 36, 0.35);
}
[data-theme="dark"] .bridge-meta { color: #34d399; }

[data-theme="dark"] .live-stage-card {
  background: linear-gradient(145deg, #0b1920 0%, #0d2521 60%, #09171d 100%);
  border-color: rgba(52, 211, 153, 0.24);
  box-shadow: 0 22px 48px -24px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(110, 231, 183, 0.1);
}
[data-theme="dark"] .reactor-core {
  background: rgba(10, 21, 27, 0.9);
  border-color: rgba(52, 211, 153, 0.25);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.65);
}
[data-theme="dark"] .reactor-pct { color: #6ee7b7; }
[data-theme="dark"] .reactor-ticks { stroke: rgba(110, 231, 183, 0.24); }
[data-theme="dark"] .reactor-track { stroke: rgba(148, 210, 194, 0.12); }
[data-theme="dark"] .energy-segments span { background: rgba(148, 210, 194, 0.14); }
[data-theme="dark"] .receipt-cdk-box {
  background: #081318;
  border-color: rgba(52, 211, 153, 0.3);
}
[data-theme="dark"] .used-pill { background: rgba(16, 185, 129, 0.22); color: #6ee7b7; }
[data-theme="dark"] .live-pill { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
[data-theme="dark"] .live-pill.is-warn { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
[data-theme="dark"] .verify-action-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.12));
  border-color: rgba(251, 191, 36, 0.4);
}
[data-theme="dark"] .verify-copy h4 { color: #fde68a; }
[data-theme="dark"] .verify-copy p { color: #fcd34d; }
[data-theme="dark"] .verify-countdown { color: #fbbf24; }

[data-theme="dark"] .receipt-card {
  background: #0a161c;
  border-color: rgba(52, 211, 153, 0.3);
}
[data-theme="dark"] .status-tag,
[data-theme="dark"] .inspect-badge { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
[data-theme="dark"] .status-tag.is-warn,
[data-theme="dark"] .inspect-badge.is-warn { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
[data-theme="dark"] .status-tag.is-error { background: rgba(225, 29, 72, 0.22); color: #fda4af; }
[data-theme="dark"] .status-tag.is-muted { background: rgba(148, 163, 184, 0.16); color: #9db6af; }
[data-theme="dark"] .line-count-pill { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; }
[data-theme="dark"] .filter-chip { background: #0c171d; border-color: rgba(148, 210, 194, 0.14); color: #9db6af; }
[data-theme="dark"] .filter-chip.is-active { background: #10b981; border-color: #10b981; color: #051310; }
[data-theme="dark"] .batch-row,
[data-theme="dark"] .batch-empty { background: #0a141a; border-color: rgba(148, 210, 194, 0.12); }
[data-theme="dark"] .batch-row:hover { border-color: rgba(52, 211, 153, 0.35); }
[data-theme="dark"] .batch-row-plan { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; }

[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #0f766e, #10b981);
  color: #041612;
}
[data-theme="dark"] .btn-secondary {
  background: #13232b;
  color: #d7eee6;
  border-color: rgba(148, 210, 194, 0.16);
}
[data-theme="dark"] .btn-secondary:hover { background: #182d37; }
[data-theme="dark"] .link-btn { color: #34d399; }

[data-theme="dark"] .alert-banner.is-error { background: rgba(225, 29, 72, 0.18); color: #fda4af; border-color: rgba(251, 113, 133, 0.32); }
[data-theme="dark"] .alert-banner.is-warn { background: rgba(245, 158, 11, 0.16); color: #fde68a; border-color: rgba(251, 191, 36, 0.32); }
[data-theme="dark"] .alert-banner.is-info { background: rgba(16, 185, 129, 0.16); color: #a7f3d0; border-color: rgba(52, 211, 153, 0.32); }
[data-theme="dark"] .modal-card { background: #0e1b22; border: 1px solid rgba(52, 211, 153, 0.2); }
