/* ============================================================
   Co2Lion Lite — 设计系统
   深色主题 · 移动优先 · 零依赖
   ============================================================ */
:root {
  --bg: #020617;            /* slate-950 */
  --card: rgba(15, 23, 42, .92);   /* slate-900/90 */
  --card-solid: #0f172a;
  --bd: #1e293b;            /* slate-800 */
  --bd-soft: rgba(30, 41, 59, .8);
  --emerald: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --amber: #fbbf24;
  --amber-300: #fcd34d;
  --blue: #60a5fa;
  --blue-300: #93c5fd;
  --rose: #fb7185;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --violet: #a78bfa;
  --t1: #ffffff;
  --t2: #e2e8f0;            /* slate-200 */
  --t3: #cbd5e1;            /* slate-300 */
  --t4: #94a3b8;            /* slate-400 */
  --t5: #64748b;            /* slate-500 */
  --radius: 16px;
  --radius-lg: 24px;
  --nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* ---------- Tailwind 兼容尺寸类（图标/元素尺寸约束） ---------- */
.w-2\.5 { width: 10px; }  .h-2\.5 { height: 10px; }
.w-3 { width: 12px; }     .h-3 { height: 12px; }
.w-3\.5 { width: 14px; }  .h-3\.5 { height: 14px; }
.w-4 { width: 16px; }    .h-4 { height: 16px; }
.w-5 { width: 20px; }    .h-5 { height: 20px; }
.w-6 { width: 24px; }    .h-6 { height: 24px; }
.w-7 { width: 28px; }    .h-7 { height: 28px; }
.w-8 { width: 32px; }    .h-8 { height: 32px; }
.w-full { width: 100%; } .h-full { height: 100%; }

/* Logo 图片基础样式（官方原图） */
.logo-img { object-fit: contain; user-select: none; -webkit-user-drag: none; background: transparent; border: none; outline: none; box-shadow: none; filter: drop-shadow(0 6px 16px rgba(245,158,11,.18)); }
.logo-img.w-full { width: 100%; }
.logo-img.h-full { height: 100%; }

html, body {
  background: #000;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--t2);
  -webkit-font-smoothing: antialiased;
}

/* 桌面端居中手机壳；手机端全屏（含刘海安全区） */
#phone-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 60px rgba(16, 185, 129, .06);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
@media (min-width: 640px) {
  body { padding: 16px 0; }
  #phone-shell { border-radius: 28px; border: 1px solid var(--bd); min-height: calc(100vh - 32px); min-height: calc(100dvh - 32px); overflow: hidden; }
}

button { font-family: inherit; border: none; background: none; color: inherit; cursor: pointer; }
button:active { transform: scale(.97); }
input, select { font-family: inherit; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(16,185,129,.3); color: #fff; }

/* ---------- 布局工具 ---------- */
.row { display: flex; align-items: center; }
.row-top { display: flex; align-items: flex-start; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.center { justify-content: center; align-items: center; }
.wrap { flex-wrap: wrap; }
.g4 { gap: 4px; } .g6 { gap: 6px; } .g8 { gap: 8px; } .g10 { gap: 10px; } .g12 { gap: 12px; } .g16 { gap: 16px; }
.f1 { flex: 1; min-width: 0; }
.noshrink { flex-shrink: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mt4 { margin-top: 4px; } .mt6 { margin-top: 6px; } .mt8 { margin-top: 8px; } .mt10 { margin-top: 10px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mb8 { margin-bottom: 8px; } .mb10 { margin-bottom: 10px; } .mb12 { margin-bottom: 12px; }
.page { padding: 14px 14px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; animation: fadeIn .3s ease; }

/* ---------- 文本 ---------- */
.t8 { font-size: 8px; } .t9 { font-size: 9px; } .t10 { font-size: 10px; } .t11 { font-size: 11px; }
.t12 { font-size: 12px; } .t13 { font-size: 13px; } .t14 { font-size: 14px; } .t16 { font-size: 16px; } .t20 { font-size: 20px; } .t24 { font-size: 24px; }
.bold { font-weight: 700; } .black { font-weight: 900; } .medium { font-weight: 500; } .semibold { font-weight: 600; }
.mono { font-family: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace; }
.c-white { color: #fff; } .c-t2 { color: var(--t2); } .c-t3 { color: var(--t3); } .c-t4 { color: var(--t4); } .c-t5 { color: var(--t5); }
.c-emerald { color: var(--emerald); } .c-amber { color: var(--amber); } .c-amber3 { color: var(--amber-300); }
.c-blue { color: var(--blue); } .c-blue3 { color: var(--blue-300); } .c-rose { color: var(--rose); } .c-violet { color: var(--violet); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nowrap { white-space: nowrap; }
.upper { text-transform: uppercase; }
.track-wide { letter-spacing: .08em; }
.track-widest { letter-spacing: .16em; }
.center-text { text-align: center; }
.lh-relaxed { line-height: 1.7; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.card-lg { border-radius: var(--radius-lg); }
.card-solid { background: var(--card-solid); }
.card-hover { transition: border-color .2s, transform .15s; }
.card-hover:active { transform: scale(.985); }
.pad12 { padding: 12px; } .pad14 { padding: 14px; }

.inner-box {
  background: rgba(2, 6, 23, .65);
  border: 1px solid var(--bd-soft);
  border-radius: 12px;
  padding: 12px;
}

/* ---------- 徽章 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9px; padding: 2px 6px; border-radius: 6px;
  border: 1px solid; white-space: nowrap; flex-shrink: 0;
  font-weight: 500;
}
.badge-pill { border-radius: 999px; }
.b-emerald { background: rgba(6,78,59,.7); color: var(--emerald); border-color: rgba(5,150,105,.35); }
.b-emerald-strong { background: #022c22; color: var(--emerald); border-color: rgba(4,120,87,.55); }
.b-amber { background: rgba(69,26,3,.7); color: var(--amber); border-color: rgba(217,119,6,.35); }
.b-blue { background: rgba(23,37,84,.75); color: var(--blue); border-color: rgba(37,99,235,.35); }
.b-rose { background: #4c0519; color: var(--rose); border-color: rgba(225,29,72,.45); }
.b-rose-pill { background: #4c0519; color: #fda4af; border-color: rgba(244,63,94,.5); border-radius: 999px; font-weight: 700; }
.b-amber-pill { background: #451a03; color: var(--amber-300); border-color: rgba(217,119,6,.5); border-radius: 999px; font-weight: 700; }
.b-emerald-pill { background: #022c22; color: #6ee7b7; border-color: rgba(16,185,129,.5); border-radius: 999px; font-weight: 700; }
.b-slate { background: rgba(30,41,59,.8); color: var(--t3); border-color: var(--bd); }
.b-violet { background: #2e1065; color: var(--violet); border-color: rgba(139,92,246,.35); }
.b-gold { background: rgba(245,158,11,.14); color: var(--amber); border-color: rgba(245,158,11,.4); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 12px; font-weight: 700;
  padding: 8px 14px; border-radius: 12px;
  transition: background .2s, border-color .2s, color .2s;
  white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.btn-sm { font-size: 11px; padding: 5px 10px; border-radius: 10px; }
.btn-xs { font-size: 9px; padding: 3px 8px; border-radius: 8px; font-weight: 500; }
.btn-primary { background: var(--emerald-600); color: #fff; }
.btn-primary:hover { background: var(--emerald-500); }
.btn-grad { background: linear-gradient(90deg, #059669, #10b981); color: #fff; }
.btn-dark { background: rgba(30,41,59,.9); color: var(--t2); border: 1px solid #334155; }
.btn-dark:hover { background: #334155; }
.btn-amber { background: var(--amber); color: #020617; }
.btn-rose { background: var(--rose-600); color: #fff; }
.btn-blue { background: rgba(23,37,84,.85); color: var(--blue-300); border: 1px solid rgba(30,64,175,.5); }
.btn-emerald-ghost { background: rgba(6,78,59,.5); color: #a7f3d0; border: 1px solid rgba(5,150,105,.5); }
.btn-block { width: 100%; }

/* ---------- 顶栏 ---------- */
#app-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(2,6,23,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bd-soft);
}
.statusbar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 16px 2px;
  padding-top: calc(8px + env(safe-area-inset-top));
  font-size: 11px; color: var(--t4);
  user-select: none;
}
.header-main {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
}
.avatar-seat {
  position: relative; width: 40px; height: 40px; border-radius: 16px;
  background: linear-gradient(135deg, #0f172a, #020617);
  border: 1px solid rgba(51,65,85,.8);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
.avatar-seat.logined { border-color: rgba(51,65,85,.8); }
.avatar-seat.guest { border-color: rgba(245,158,11,.4); }
.avatar-inner {
  width: 100%; height: 100%; border-radius: 12px;
  background: linear-gradient(135deg, rgba(6,78,59,.6), #0f172a);
  border: 1px solid rgba(16,185,129,.3);
  display: flex; align-items: center; justify-content: center;
  color: #6ee7b7; font-weight: 700; font-size: 14px;
}
.corner-dot {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--amber); border: 2px solid #020617;
  top: -4px; right: -4px;
}
.online-dot { position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--emerald-500); box-shadow: 0 0 0 2px #020617; }
.guard-badge {
  position: absolute; bottom: -2px; right: -2px;
  width: 15px; height: 15px; border-radius: 50%;
  background: #020617; border: 1px solid rgba(251,191,36,.8);
  display: flex; align-items: center; justify-content: center;
}
.cbam-chip {
  text-align: right; padding: 4px 8px; border-radius: 10px;
  background: rgba(6,78,59,.4); border: 1px solid rgba(5,150,105,.3);
  cursor: pointer; transition: border-color .2s;
}
.icon-btn {
  padding: 6px; border-radius: 10px;
  background: rgba(30,41,59,.8); border: 1px solid #334155;
  color: var(--t4); display: flex;
}

/* ---------- 底部导航 ---------- */
#app-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  max-width: 480px; margin: 0 auto;
  background: rgba(2,6,23,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(30,41,59,.9);
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 640px) {
  #app-nav { position: sticky; }
}
.nav-grid { display: grid; grid-template-columns: repeat(5, 1fr); height: var(--nav-h); align-items: center; padding: 0 4px 4px; }
.nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  height: 100%; color: var(--t4); transition: color .2s; position: relative;
}
.nav-item.active { color: var(--emerald); }
.nav-item .nav-label { font-size: 10px; white-space: nowrap; }
.nav-item.active .nav-label { font-weight: 600; }
.nav-item .dot-alert {
  position: absolute; top: 10px; right: calc(50% - 14px);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 2px #020617;
}
.nav-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 6px; pointer-events: none; }
.fab-wrap {
  position: absolute; top: -28px; left: 50%; transform: translateX(-50%);
  padding: 6px; border-radius: 50%;
  background: #020617; border: 1px solid var(--bd);
  box-shadow: 0 16px 32px rgba(0,0,0,.5);
}
.fab {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(45deg, #059669, #14b8a6, #34d399);
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border: 2px solid rgba(209,250,229,.8);
  box-shadow: 0 8px 24px rgba(6,95,70,.6);
  animation: pulseGlow 2.4s infinite;
  transition: transform .15s;
}
.fab:active { transform: scale(.94); }
.fab .fab-label { font-size: 9px; font-weight: 700; letter-spacing: -.02em; }
.fab-anchor { position: relative; }

/* ---------- 区块标题 ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; gap: 8px; }
.section-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.section-bar { width: 6px; height: 14px; border-radius: 3px; flex-shrink: 0; }
.section-head h2 { font-size: 12px; font-weight: 700; color: var(--t2); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ---------- 动画 ---------- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(2.2); opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 8px 24px rgba(6,95,70,.55); } 50% { box-shadow: 0 8px 34px rgba(16,185,129,.85); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes tickerUp { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
@keyframes scanline { 0% { top: -64px; } 100% { top: 100%; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes progressFill { from { width: 0; } }

.ping-dot { position: relative; width: 10px; height: 10px; flex-shrink: 0; }
.ping-dot::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--emerald-500);
  animation: ping 1.6s cubic-bezier(0,0,.2,1) infinite;
}
.ping-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--emerald-500); }
.pulse { animation: pulse 1.8s ease-in-out infinite; }
.spin { animation: spin 1s linear infinite; }
.spin-slow { animation: spin 10s linear infinite; }
.bounce { animation: bounce 1s ease-in-out infinite; }
.ticker-up { animation: tickerUp 14s linear infinite; }

/* ---------- 状态点 ---------- */
.dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dot-emerald { background: var(--emerald-500); }
.dot-rose { background: var(--rose-500); }
.dot-amber { background: var(--amber); }
.dot-pulse { animation: pulse 1.6s infinite; }

/* ---------- 进度条 ---------- */
.progress { height: 6px; background: #1e293b; border-radius: 999px; overflow: hidden; margin-top: 8px; }
.progress > div { height: 100%; border-radius: 999px; }

/* ---------- 表单 ---------- */
.field-label { font-size: 11px; color: var(--t4); display: block; margin-bottom: 4px; }
.input {
  width: 100%; background: #020617;
  border: 1px solid #334155; border-radius: 12px;
  padding: 9px 12px; font-size: 12px; color: #fff;
  font-family: ui-monospace, Consolas, monospace;
  outline: none; transition: border-color .2s;
  appearance: none; -webkit-appearance: none;
}
.input:focus { border-color: var(--emerald-500); }
select.input { cursor: pointer; }
.form-error {
  display: flex; gap: 6px; align-items: flex-start;
  padding: 10px 12px; border-radius: 12px;
  background: rgba(76,5,25,.5); border: 1px solid rgba(225,29,72,.5);
  color: #fda4af; font-size: 11px; line-height: 1.5;
}

/* ---------- 弹窗 ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn .2s ease;
}
.modal-box {
  position: relative; width: 100%; max-width: 420px;
  max-height: 92vh; overflow-y: auto;
  background: var(--card-solid);
  border: 1px solid rgba(51,65,85,.8);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
  animation: modalIn .22s ease;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 28px; height: 28px; border-radius: 50%;
  background: #1e293b; color: var(--t4);
  display: flex; align-items: center; justify-content: center;
  transition: color .2s, background .2s; z-index: 2;
}
.modal-close:hover { color: #fff; background: #334155; }
.modal-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: #020617; border-radius: 12px; border: 1px solid var(--bd); margin-bottom: 16px; }
.modal-tab { padding: 7px 0; font-size: 12px; font-weight: 700; border-radius: 9px; color: var(--t4); transition: all .2s; }
.modal-tab.active { background: var(--emerald-600); color: #fff; box-shadow: 0 4px 12px rgba(5,150,105,.4); }

/* ---------- Toast ---------- */
#toast-root {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 100; display: flex; flex-direction: column; gap: 8px;
  width: min(92vw, 440px); pointer-events: none;
}
.toast {
  background: rgba(15,23,42,.96);
  border: 1px solid rgba(16,185,129,.4);
  border-radius: 14px; padding: 11px 14px;
  font-size: 12px; color: var(--t2); line-height: 1.55;
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
  animation: toastIn .25s ease;
  backdrop-filter: blur(8px);
}

/* ---------- 欢迎页 Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #0f172a, rgba(15,23,42,.95), #020617);
  border: 1px solid rgba(245,158,11,.4);
  padding: 20px; text-align: center;
  box-shadow: 0 24px 48px rgba(0,0,0,.4);
}
.hero-glow1, .hero-glow2 { position: absolute; width: 256px; height: 256px; border-radius: 50%; filter: blur(48px); pointer-events: none; }
.hero-glow1 { top: -96px; left: 50%; transform: translateX(-50%); background: rgba(16,185,129,.1); }
.hero-glow2 { bottom: -96px; right: -48px; background: rgba(59,130,246,.1); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(30,41,59,.9); color: var(--emerald);
  border: 1px solid rgba(16,185,129,.4);
  font-size: 11px; font-weight: 500;
}
.logo-xl { width: 88px; height: 88px; margin: 12px auto; background: transparent; filter: drop-shadow(0 8px 18px rgba(245,158,11,.22)); transition: transform .3s; }
.logo-xl:hover { transform: scale(1.05); }
.logo-md { width: 44px; height: 44px; margin: 0 auto 8px; background: transparent; }
.logo-sm { width: 26px; height: 26px; }

/* 声明页：上重下轻——条款与 CTA 为主，底部小署名无分割线 */
.page-disclaimer {
  background: var(--bg);
  min-height: calc(100vh - 88px);
  min-height: calc(100dvh - 88px);
  display: flex;
  flex-direction: column;
  padding: 28px 22px calc(28px + env(safe-area-inset-bottom));
}
.disclaimer-shell {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}
.disclaimer-main {
  flex: 0 1 auto;
  padding-top: 4px;
}
.disclaimer-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 10px;
}
.disclaimer-lead {
  font-size: 13px;
  color: var(--t4);
  line-height: 1.55;
  margin: 0 0 22px;
}
.disclaimer-list {
  margin: 0 0 32px;
  padding: 0 0 0 18px;
  color: var(--t3);
  font-size: 13px;
  line-height: 1.75;
}
.disclaimer-list li { margin-bottom: 14px; padding-left: 4px; }
.disclaimer-list li:last-child { margin-bottom: 0; }
.disclaimer-li-label {
  display: inline-block;
  margin-right: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--emerald);
  letter-spacing: 0.02em;
}
.disclaimer-cta {
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
}
.disclaimer-footnote {
  margin: 12px 0 0;
  text-align: center;
  font-size: 11px;
  color: var(--t5);
  line-height: 1.4;
}
.disclaimer-sign {
  flex-shrink: 0;
  margin-top: 40px;
  padding-top: 0;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  opacity: 0.72;
}
.logo-disclaimer {
  width: 28px;
  height: 28px;
  margin: 0;
  filter: none;
  opacity: 0.95;
}
.disclaimer-sign-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--t5);
  letter-spacing: 0.04em;
}

/* ---------- 能力矩阵 Tab ---------- */
.feature-tab {
  padding: 7px 2px; font-size: 10px; font-weight: 700; border-radius: 9px;
  color: var(--t4); transition: all .2s; line-height: 1.3; word-break: break-word;
}
.feature-tab.active { background: var(--emerald-600); color: #fff; box-shadow: 0 4px 12px rgba(5,150,105,.4); }

/* ---------- 任务卡片 ---------- */
.task-card {
  display: flex; gap: 12px; align-items: center;
  padding: 14px; border-radius: 14px;
  border: 1px solid rgba(30,41,59,.9);
  border-left: 4px solid;
  background: var(--card);
  cursor: pointer; transition: transform .15s, border-color .2s;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.task-card:active { transform: scale(.985); }
.task-card.l-rose { border-left-color: var(--rose-500); }
.task-card.l-blue { border-left-color: #3b82f6; }
.task-card.l-amber { border-left-color: var(--amber); }
.task-card.l-emerald { border-left-color: var(--emerald-500); }
.task-card.done { background: rgba(15,23,42,.4); border-left-color: rgba(16,185,129,.7); opacity: .8; }
.task-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.task-icon.i-rose { background: rgba(76,5,25,.6); border: 1px solid rgba(153,27,27,.4); color: var(--rose); }
.task-icon.i-blue { background: rgba(23,37,84,.6); border: 1px solid rgba(30,64,175,.4); color: var(--blue); }
.task-icon.i-amber { background: rgba(69,26,3,.6); border: 1px solid rgba(146,64,14,.4); color: var(--amber); }
.task-icon.i-emerald { background: rgba(6,78,59,.6); border: 1px solid rgba(6,95,70,.4); color: var(--emerald); }

/* ---------- 拓扑雷达 ---------- */
.radar-box {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0f172a, #0f172a, #020617);
  border: 1px solid var(--bd); padding: 20px;
  box-shadow: 0 16px 32px rgba(0,0,0,.4);
}
.radar-mesh {
  position: absolute; inset: 0; opacity: .4;
  background-image: radial-gradient(#1e293b 1px, transparent 1px);
  background-size: 16px 16px;
}
.radar-link { flex: 1; margin: 0 8px; display: flex; flex-direction: column; align-items: center; }
.radar-line { height: 2px; width: 100%; position: relative; border-radius: 2px; }
.radar-line .node-pt { position: absolute; top: -3px; left: 50%; transform: translateX(-50%); width: 8px; height: 8px; border-radius: 50%; }
.node-box {
  width: 48px; height: 48px; border-radius: 16px;
  background: #020617; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px; cursor: pointer; transition: transform .15s, border-color .2s;
}
.node-box:active { transform: scale(1.05); }
.node-me {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #0f766e);
  padding: 2px; margin: 0 auto 6px;
  box-shadow: 0 12px 24px rgba(6,95,70,.6);
}
.node-me-inner {
  width: 100%; height: 100%; border-radius: 50%; background: #020617;
  border: 1px solid rgba(167,243,208,.4);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}

/* ---------- 终端日志 ---------- */
.terminal {
  position: relative; overflow: hidden;
  border-radius: var(--radius); background: #000;
  border: 1px solid var(--bd); padding: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.terminal-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10px; font-family: ui-monospace, Consolas, monospace; color: var(--t5);
  padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid #0f172a;
}
.log-scroll { height: 224px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-family: ui-monospace, Consolas, monospace; }
.log-line { display: flex; align-items: flex-start; gap: 8px; line-height: 1.6; animation: fadeIn .2s ease; word-break: break-all; }
.log-tag { font-size: 9px; padding: 1px 4px; border-radius: 4px; font-weight: 700; flex-shrink: 0; text-transform: uppercase; }
.log-info { background: #1e293b; color: var(--t3); }
.log-success { background: #022c22; color: var(--emerald); }
.log-warn { background: #451a03; color: var(--amber); }
.log-secure { background: #172554; color: var(--blue); }
.log-msg-info { color: var(--t3); } .log-msg-success { color: var(--emerald); }
.log-msg-warn { color: var(--amber-300); font-weight: 600; } .log-msg-secure { color: var(--blue-300); }
.scanline { position: absolute; left: 0; width: 100%; height: 64px; background: linear-gradient(180deg, transparent, rgba(16,185,129,.05), transparent); animation: scanline 4s linear infinite; pointer-events: none; }

/* ---------- 能效柱状图 ---------- */
.chart-box { background: rgba(0,0,0,.6); border-radius: 12px; border: 1px solid var(--bd-soft); padding: 12px; }
.chart-bars { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; height: 96px; padding-top: 8px; }
.chart-bar { flex: 1; border-radius: 6px 6px 0 0; transition: all .5s; }
.chart-bar:hover { background: var(--emerald-600) !important; }
.chart-bar.peak { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; flex: 1; }
.chart-bar.peak > div { width: 100%; border-radius: 6px 6px 0 0; transition: all .5s; }
.chart-bar.peak.cut > div { background: var(--emerald-500); height: 45% !important; }
.chart-bar.peak.hot > div { background: var(--rose-500); height: 96%; animation: pulse 1.6s infinite; box-shadow: 0 0 12px rgba(244,63,94,.7); }
.chart-labels { display: flex; justify-content: space-between; font-size: 9px; font-family: ui-monospace, Consolas, monospace; color: var(--t5); margin-top: 8px; padding: 0 4px; }

/* ---------- 供应商卡片 ---------- */
.supplier-card {
  border-radius: var(--radius); padding: 14px;
  border: 1px solid rgba(30,41,59,.9);
  background: var(--card);
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.supplier-card.warn { border-color: rgba(217,119,6,.6); background: rgba(69,26,3,.1); }
.supplier-card.crit { border-color: rgba(225,29,72,.6); background: rgba(76,5,25,.1); }
.supplier-card.ok { border-color: rgba(5,150,105,.6); background: rgba(2,44,34,.1); }
.filter-group { display: flex; align-items: center; background: #0f172a; border: 1px solid var(--bd); border-radius: 10px; padding: 2px; font-size: 10px; }
.filter-btn { padding: 3px 10px; border-radius: 7px; color: var(--t4); transition: all .2s; }
.filter-btn.active { background: #1e293b; color: #fff; font-weight: 700; }

/* ---------- 资产卡 ---------- */
.asset-card {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border: 1px solid var(--bd);
  border-radius: var(--radius); padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.asset-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-emerald { background: rgba(6,78,59,.7); border: 1px solid rgba(6,95,70,.4); color: var(--emerald); }
.icon-blue { background: rgba(23,37,84,.7); border: 1px solid rgba(30,64,175,.4); color: var(--blue); }
.icon-amber { background: rgba(69,26,3,.7); border: 1px solid rgba(146,64,14,.4); color: var(--amber); }
.icon-slate { background: rgba(30,41,59,.8); border: 1px solid #334155; color: var(--blue); }
.vault-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0f172a, rgba(15,23,42,.95), #020617);
  border: 1px solid var(--bd);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
.vault-divider { position: absolute; left: 50%; top: 16px; bottom: 56px; width: 1px; background: rgba(30,41,59,.8); }
.service-card {
  padding: 14px; border-radius: var(--radius);
  background: rgba(15,23,42,.8); border: 1px solid;
  cursor: pointer; transition: transform .15s, border-color .2s;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.service-card:active { transform: scale(.98); }
.service-card.sc-emerald { border-color: rgba(16,185,129,.3); }
.service-card.sc-emerald:hover { border-color: rgba(16,185,129,.6); }
.service-card.sc-amber { border-color: rgba(245,158,11,.3); }
.service-card.sc-amber:hover { border-color: rgba(245,158,11,.6); }
.service-card.sc-blue { border-color: rgba(59,130,246,.3); }
.service-card.sc-blue:hover { border-color: rgba(59,130,246,.6); }
.svc-icon { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }

/* ---------- 顶部数字跳动 ---------- */
.stat-flash { transition: color .3s; }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
.log-scroll::-webkit-scrollbar-thumb { background: #1e293b; }
