/* =====================================================================
   碳链通 CarbonChain Hub —— 设计系统
   ---------------------------------------------------------------------
   主题：深空碳黑 × 翡翠绿 × 链金
   设计原则：深色底、玻璃拟态卡片、克制的发光、数据密度高但呼吸感足
   ===================================================================== */

:root {
  /* 底色 */
  --bg-0: #060a12;
  --bg-1: #0a1020;
  --bg-2: #0e1626;
  --bg-3: #131d31;

  /* 卡片 / 面板 */
  --panel: rgba(255, 255, 255, 0.038);
  --panel-2: rgba(255, 255, 255, 0.055);
  --panel-3: rgba(255, 255, 255, 0.085);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);

  /* 文字 */
  --tx-0: #eef4ff;
  --tx-1: #c3d0e4;
  --tx-2: #8d9cb5;
  --tx-3: #5f6d85;

  /* 品牌强调色（工业电光碳绿，用于首屏与关键发光） */
  --brand: #00c07f;
  --brand-l: #34d399;
  /* 数字存证冷光青（渐变、高光与流动光效的第二主色） */
  --cyan: #06b6d4;
  --cyan-l: #22d3ee;

  /* 工业卡片规范（精密仪器质感：细边框 + 克制发光，不用厚重模糊投影） */
  --card-border: 1px solid rgba(255, 255, 255, 0.08);
  --card-glow: 0 0 16px rgba(0, 192, 127, 0.12);
  --card-lift: 0 12px 30px -14px rgba(0, 0, 0, 0.72);

  /* 统一缓动（微交互收口，消除生硬感） */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .22s;

  /* ---- 精修层：统一高光 / 描边 / 底纹（保证全站"同一种材质"） ---- */
  --edge: rgba(255, 255, 255, .13);          /* 卡片顶部 1px 内高光 */
  --edge-2: rgba(255, 255, 255, .26);        /* 悬停态高光 */
  --hair: rgba(255, 255, 255, .055);         /* 细分隔线 */
  --grid-line: rgba(255, 255, 255, .026);    /* 碳晶格底纹 */
  --glow-brand: rgba(0, 192, 127, .42);
  --glow-cyan: rgba(6, 182, 212, .38);
  --inner-glass: inset 0 1px 0 rgba(255, 255, 255, .07);
  --focus-ring: 0 0 0 3px rgba(0, 192, 127, .26);

  /* 语义色 */
  --carbon: #10b981;
  --carbon-d: #047857;
  --carbon-l: #34d399;
  --chain: #f5a524;
  --chain-l: #fbbf24;
  --sky: #38bdf8;
  --violet: #a78bfa;
  --rose: #fb7185;
  --danger: #f43f5e;
  --warn: #f59e0b;
  --ok: #10b981;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 20px;
  --shadow: 0 18px 48px -18px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 0 0 1px rgba(16, 185, 129, 0.28), 0 12px 40px -16px rgba(16, 185, 129, 0.45);
  --sans: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--tx-1);
  background:
    radial-gradient(1400px 780px at 10% -14%, rgba(0, 192, 127, .13), transparent 62%),
    radial-gradient(1200px 700px at 94% -8%, rgba(6, 182, 212, .10), transparent 60%),
    radial-gradient(1000px 820px at 62% 118%, rgba(167, 139, 250, .055), transparent 62%),
    linear-gradient(180deg, #080c14 0%, #0a1020 46%, #060a12 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "tnum" 1, "cv01" 1;
}

/* 碳晶格底纹：呼应"碳"的六元环母题，只在首屏区域若隐若现 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(30deg, var(--grid-line) 12%, transparent 12.5%, transparent 87%, var(--grid-line) 87.5%, var(--grid-line)),
    linear-gradient(150deg, var(--grid-line) 12%, transparent 12.5%, transparent 87%, var(--grid-line) 87.5%, var(--grid-line)),
    linear-gradient(30deg, var(--grid-line) 12%, transparent 12.5%, transparent 87%, var(--grid-line) 87.5%, var(--grid-line)),
    linear-gradient(150deg, var(--grid-line) 12%, transparent 12.5%, transparent 87%, var(--grid-line) 87.5%, var(--grid-line)),
    linear-gradient(60deg, rgba(255, 255, 255, .016) 25%, transparent 25.5%, transparent 75%, rgba(255, 255, 255, .016) 75%, rgba(255, 255, 255, .016));
  background-size: 42px 74px;
  background-position: 0 0, 0 0, 21px 37px, 21px 37px, 0 0;
  -webkit-mask-image: radial-gradient(ellipse 132% 92% at 50% -12%, #000 10%, transparent 76%);
  mask-image: radial-gradient(ellipse 132% 92% at 50% -12%, #000 10%, transparent 76%);
}

/* 全站内容层压在底纹之上（不干扰原有 z-index 体系） */
#app { position: relative; z-index: 1; }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 650; color: var(--tx-0); letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--carbon-l); text-decoration: none; }
button { font-family: inherit; }
::selection { background: rgba(0, 192, 127, 0.34); color: #fff; }

/* 键盘可达性：统一的可见焦点环 */
:focus-visible { outline: none; box-shadow: var(--focus-ring); }
input:focus-visible, select:focus-visible, textarea:focus-visible { box-shadow: var(--focus-ring); }

/* 滚动条：品牌绿→冷光青渐变，像一段流动的链路 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 192, 127, .34), rgba(6, 182, 212, .30));
  border-radius: 8px; border: 2px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0, 192, 127, .66), rgba(6, 182, 212, .58));
  background-clip: padding-box;
}
::-webkit-scrollbar-corner { background: transparent; }

.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.01em; }
.muted { color: var(--tx-2); }
.dim { color: var(--tx-3); }
.tiny { font-size: 12px; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.right { text-align: right; }
.flex { display: flex; align-items: center; }
.flex-1 { flex: 1; min-width: 0; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================ 启动动画 ============================ */
.boot {
  position: relative; min-height: 100vh; display: grid; place-content: center;
  text-align: center; color: var(--tx-2); overflow: hidden;
}

/* Cyber-Grid 细网格微底纹（径向遮罩，四角自然淡出） */
.boot-grid {
  position: absolute; inset: -40px;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 0%, transparent 68%);
  mask-image: radial-gradient(circle at 50% 46%, #000 0%, transparent 68%);
  animation: gridDrift 26s linear infinite;
}
@keyframes gridDrift { to { background-position: 34px 34px, 34px 34px; } }

.boot-core { position: relative; display: grid; gap: 10px; justify-items: center; }

/* 联盟链节点脉冲环：三圈错峰扩散 */
.boot-rings { position: relative; width: 116px; height: 116px; display: grid; place-items: center; margin-bottom: 10px; }
.boot-rings i {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(0, 192, 127, .55);
  animation: ringPulse 2.7s cubic-bezier(.4, 0, .2, 1) infinite;
}
.boot-rings i.r2 { animation-delay: .9s; border-color: rgba(0, 192, 127, .38); }
.boot-rings i.r3 { animation-delay: 1.8s; border-color: rgba(0, 192, 127, .24); }
@keyframes ringPulse {
  0% { transform: scale(.6); opacity: 0; }
  32% { opacity: .95; }
  100% { transform: scale(1.28); opacity: 0; }
}

/* 首屏引导标识：官方图标（透明底），以发光呼吸替代原来的渐变方块 */
.boot-mark {
  width: 100px; height: 52px; object-fit: contain; display: block;
  animation: markBreath 2.7s ease-in-out infinite;
}
@keyframes markBreath {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(0, 192, 127, .34)); }
  50% { filter: drop-shadow(0 0 34px rgba(0, 192, 127, .62)) drop-shadow(0 0 62px rgba(6, 182, 212, .30)); }
}

.boot-brand { font-size: 21px; font-weight: 600; letter-spacing: 5px; color: var(--tx-0); text-indent: 5px; }
.boot-sub {
  font-size: 10.5px; letter-spacing: 3.4px; text-transform: uppercase;
  color: var(--tx-3); margin-top: -6px; text-indent: 3.4px;
}

/* 步进文案：等宽字体，切换时淡入淡出 */
.boot-step {
  margin: 8px 0 0; font-family: var(--mono); font-size: 12.5px; color: var(--tx-2);
  min-height: 20px; transition: opacity .18s ease;
}

/* 不定态进度条 */
.boot-bar { width: 236px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.boot-bar i {
  display: block; width: 36%; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--brand-l));
  animation: barSlide 1.5s ease-in-out infinite;
}
@keyframes barSlide { 0% { transform: translateX(-120%); } 100% { transform: translateX(380%); } }

/* 加载超 10 秒后淡入的容错提示 */
.boot-slow {
  margin: 12px 0 0; font-size: 12px; color: var(--tx-3); opacity: 0;
  animation: slowIn .8s ease 10s forwards;
}
@keyframes slowIn { to { opacity: 1; } }
.boot-slow a { color: var(--brand-l); text-decoration: underline; text-underline-offset: 3px; }

/* 首页跳转态：四节链条依次点亮（链式传导的隐喻） */
.boot-chain { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.boot-chain span {
  width: 11px; height: 11px; border-radius: 3px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .14);
  animation: chainLit 1.7s var(--ease) infinite;
}
.boot-chain span:nth-child(2) { animation-delay: .2s; }
.boot-chain span:nth-child(3) { animation-delay: .4s; }
.boot-chain span:nth-child(4) { animation-delay: .6s; }
@keyframes chainLit {
  0%, 68%, 100% { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .14); box-shadow: none; }
  28% { background: var(--brand); border-color: transparent; box-shadow: 0 0 18px var(--glow-brand); }
}

/* ============================ 布局 ============================ */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 240px; flex: 0 0 240px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(10, 16, 32, .965) 0%, rgba(6, 10, 18, .99) 58%, rgba(8, 12, 20, .98) 100%);
  backdrop-filter: blur(16px) saturate(1.15); z-index: 30;
}
/* 右缘的品牌色细流：暗示"数据链路向内输送" */
.sidebar::after {
  content: ""; position: absolute; top: 0; right: 0; width: 1px; height: 100%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 192, 127, .55) 20%, rgba(6, 182, 212, .45) 62%, transparent);
  opacity: .5;
}

.brand { display: flex; align-items: center; gap: 12px; padding: 21px 18px 19px; border-bottom: 1px solid var(--hair); }
.brand-mark {
  position: relative; width: 40px; height: 40px; border-radius: 12px; flex: 0 0 40px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--brand) 0%, #0ea5a5 52%, #0e7490 100%);
  box-shadow: 0 10px 26px -10px rgba(16, 185, 129, .9), var(--inner-glass);
}
/* 徽记外环：缓慢呼吸，像节点心跳 */
.brand-mark::after {
  content: ""; position: absolute; inset: -5px; border-radius: 16px;
  border: 1px solid rgba(0, 192, 127, .32);
  animation: brandHalo 3.4s var(--ease) infinite;
}
@keyframes brandHalo {
  0%, 100% { opacity: .30; transform: scale(.94); }
  50% { opacity: .85; transform: scale(1.03); }
}
.brand-mark svg { width: 22px; height: 22px; }

/* ── 品牌标识（CARBONCHAIN HUB 官方图标，透明底 PNG 横向构图） ──
   图标自带发光与青绿渐变，容器不再用渐变方块压住它，只负责包裹柔光晕。
   .brand-mark 保持原样，仍服务于 enterprise.js 的链上钱包图标。 */
.brand-logo {
  position: relative; display: grid; place-items: center; flex: 0 0 auto;
  width: 58px; height: 30px;
}
.brand-logo img {
  position: relative; z-index: 1; display: block;
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 192, 127, .46)) drop-shadow(0 0 20px rgba(6, 182, 212, .20));
}
/* 呼吸光晕：像节点心跳一样明暗起伏 */
.brand-logo::after {
  content: ""; position: absolute; inset: -10px -8px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at 50% 54%, rgba(0, 192, 127, .22), rgba(6, 182, 212, .08) 45%, transparent 72%);
  animation: brandHalo 3.8s var(--ease) infinite;
}
/* 登录页 Hero 上的品牌标可放大展示 */
.hero-brand .brand-logo { width: 66px; height: 34px; }

.brand-txt strong { display: block; font-size: 15.5px; color: var(--tx-0); letter-spacing: .6px; }
.brand-txt span { display: block; font-size: 10px; color: var(--tx-3); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 1px; }

.nav { flex: 1; overflow-y: auto; padding: 4px 12px 20px; }
/* 分组标题：文字 + 向右渐隐的延伸线（仪表盘分区感） */
.nav-group {
  display: flex; align-items: center; gap: 9px;
  margin: 18px 0 8px; padding: 0 6px; font-size: 10.6px; letter-spacing: 1.3px;
  color: var(--tx-3); text-transform: uppercase; white-space: nowrap;
}
.nav-group::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--hair), transparent); }

.nav-item {
  position: relative; display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9.5px 11px; margin-bottom: 2px; text-align: left;
  border: none; background: none; border-radius: 10px; cursor: pointer;
  color: var(--tx-2); font-size: 13.4px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform .16s var(--ease);
}
.nav-item svg { width: 16px; height: 16px; flex: 0 0 16px; opacity: .82; transition: opacity var(--dur), color var(--dur); }
.nav-item:hover { background: var(--panel-2); color: var(--tx-0); }
.nav-item:hover svg { opacity: 1; color: var(--brand-l); }
.nav-item:active { transform: scale(.985); }
.nav-item.active {
  color: #fff; font-weight: 600;
  background: linear-gradient(90deg, rgba(0, 192, 127, .20), rgba(6, 182, 212, .07) 62%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.nav-item.active svg { opacity: 1; color: var(--brand-l); filter: drop-shadow(0 0 6px rgba(0, 192, 127, .6)); }
/* 激活态：左侧流光竖条（绿→青）+ 右侧节点光点 */
.nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--brand-l), var(--cyan));
  box-shadow: 0 0 12px rgba(0, 192, 127, .75);
}
.nav-item.active::after {
  content: ""; position: absolute; right: 11px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand-l); box-shadow: 0 0 9px rgba(0, 192, 127, .95);
}
.nav-badge { margin-left: auto; font-size: 10.5px; padding: 1px 6px; border-radius: 20px; background: rgba(244, 63, 94, .22); color: #fda4af; }

.side-foot { padding: 12px; border-top: 1px solid var(--hair); }
/* 节点监视器：顶部流动色线 + 多行对齐指标 */
.node-card {
  position: relative; overflow: hidden; padding: 12px 13px;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, rgba(0, 192, 127, .085), rgba(255, 255, 255, .028) 56%);
  border: 1px solid rgba(0, 192, 127, .20);
}
.node-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--cyan), transparent);
  background-size: 220% 100%; opacity: .85;
  animation: nodeScan 3.6s linear infinite;
}
@keyframes nodeScan { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
.node-card .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: 0 0 7px;
  animation: nodePulse 2.2s var(--ease) infinite;
}
@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(0, 192, 127, .18); }
  50% { box-shadow: 0 0 0 6px rgba(0, 192, 127, .05), 0 0 12px rgba(0, 192, 127, .55); }
}
.node-card .dim.mono { position: relative; padding-left: 11px; }
.node-card .dim.mono::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 1px;
  background: rgba(255, 255, 255, .20);
}
@keyframes blink { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 20; height: 62px;
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
  background: linear-gradient(180deg, rgba(6, 10, 18, .87), rgba(6, 10, 18, .70));
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: inset 0 -1px 0 var(--hair);
}
/* 底缘渐隐的品牌色分隔线，替代生硬 border-bottom */
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 192, 127, .34) 16%, rgba(6, 182, 212, .30) 62%, transparent);
  opacity: .5;
}
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tx-3); }
.crumb::before {
  content: ""; width: 3px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-l), var(--cyan));
}
.crumb b { color: var(--tx-0); font-weight: 600; letter-spacing: .2px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 11px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: 30px; background: var(--panel-2); border: 1px solid var(--line);
  font-size: 12px; color: var(--tx-1); box-shadow: var(--inner-glass);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.chip svg { width: 14px; height: 14px; opacity: .82; }
.chip:hover { border-color: var(--line-2); color: var(--tx-0); }
.chip.live {
  border-color: rgba(0, 192, 127, .38); color: var(--brand-l);
  background: linear-gradient(135deg, rgba(0, 192, 127, .16), rgba(6, 182, 212, .10));
  box-shadow: var(--inner-glass), 0 0 16px -5px rgba(0, 192, 127, .4);
}
.chip.live::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-l);
  animation: nodePulse 2.2s var(--ease) infinite;
}

.avatar {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, #14532d 0%, #0f766e 52%, #155e75 100%);
  color: #fff; font-size: 12.5px; font-weight: 650;
  box-shadow: var(--inner-glass), 0 0 0 1px rgba(255, 255, 255, .10);
}
.userbox { display: flex; align-items: center; gap: 9px; padding: 4px 11px 4px 4px; border-radius: 30px; cursor: pointer; border: 1px solid transparent; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.userbox:hover { background: var(--panel-2); border-color: var(--line); }
.userbox:hover .avatar { box-shadow: var(--inner-glass), 0 0 0 1px rgba(0, 192, 127, .45); }

.content { flex: 1; padding: 24px 26px 48px; max-width: 1680px; width: 100%; }

/* ============================ 页面头 ============================ */
.page-head {
  position: relative; display: flex; align-items: flex-end; gap: 18px;
  margin-bottom: 22px; padding-bottom: 14px; flex-wrap: wrap;
}
/* 底部渐隐细线：品牌绿 → 冷光青 → 消失，形成统一的"仪表盘抬头" */
.page-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 192, 127, .48), rgba(6, 182, 212, .24) 24%, var(--hair) 56%, transparent);
}
.page-head h2 { font-size: 22px; letter-spacing: -.4px; }
.page-head .desc { font-size: 12.8px; color: var(--tx-3); margin-top: 6px; max-width: 900px; line-height: 1.7; }
.page-head .acts { margin-left: auto; display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }

/* ============================ 卡片 ============================ */
.card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .046), rgba(255, 255, 255, .022));
  border: var(--card-border);
  backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: var(--inner-glass);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
/* 可交互卡片（KPI / 显式标注 hoverable）：轻微上浮 + 边框转品牌绿 */
.kpi:hover, .card.hoverable:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 192, 127, .42);
  box-shadow: 0 0 16px var(--glow-brand), var(--card-lift), var(--inner-glass);
}
.card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .17) 30%, rgba(255, 255, 255, .17) 70%, transparent);
}
.card-head { display: flex; align-items: center; gap: 11px; padding: 14px 17px; border-bottom: 1px solid var(--hair); }
/* 标题左侧的"模块标识"短竖条：全站卡片统一的识别符号 */
.card-head::before {
  content: ""; width: 3px; height: 15px; flex: 0 0 3px; border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-l), var(--cyan));
  box-shadow: 0 0 8px rgba(0, 192, 127, .5);
}
.card-head h3 { font-size: 14.5px; letter-spacing: -.1px; }
.card-head .sub { font-size: 11.8px; color: var(--tx-3); }
.card-head .acts { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-body { padding: 18px; }
.card-body.tight { padding: 12px 14px; }
.card-body.flush { padding: 0; }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: 2fr 1fr; }
.g-1-2 { grid-template-columns: 1fr 2fr; }
.g-3-2 { grid-template-columns: 3fr 2fr; }
@media (max-width: 1400px) { .g5, .g6 { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 1180px) { .g4, .g5, .g6 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g2, .g3, .g-2-1, .g-1-2, .g-3-2 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .g4, .g5, .g6 { grid-template-columns: 1fr; } .sidebar { display: none; } }

/* ============================ KPI ============================ */
/* 每张 KPI 卡由 --tone 驱动：顶部色条 / 标签色点 / 角落光晕 / 图标 全部同源 */
.kpi { --tone: var(--brand); padding: 17px 18px; position: relative; overflow: hidden; }
.kpi.k-carbon { --tone: var(--brand); }
.kpi.k-chain { --tone: var(--chain); }
.kpi.k-sky { --tone: var(--sky); }
.kpi.k-violet { --tone: var(--violet); }
.kpi.k-rose { --tone: var(--rose); }
/* 顶部 tone 色条：一眼分辨指标语义 */
.kpi::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--tone), transparent 74%);
  opacity: .8;
}
.kpi .lbl { font-size: 12.3px; color: var(--tx-2); display: flex; align-items: center; gap: 7px; letter-spacing: .2px; }
.kpi .lbl::before {
  content: ""; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%;
  background: var(--tone); box-shadow: 0 0 8px var(--tone);
}
/* 核心数值：放大至 32px，强制等宽字形保证多卡片间数字对齐 */
.kpi .val {
  font-size: 32px; font-weight: 700; color: var(--tx-0); letter-spacing: -.8px;
  line-height: 1.14; margin-top: 9px; font-family: var(--mono);
  font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 5px;
}
/* 单位：13px 灰字，贴齐数值右下角 */
.kpi .unit { font-size: 13px; color: var(--tx-3); font-weight: 500; margin: 0; align-self: flex-end; padding-bottom: 3px; }
.kpi .foot { margin-top: 11px; font-size: 11.8px; color: var(--tx-3); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.kpi .glow {
  position: absolute; right: -30px; top: -30px; width: 118px; height: 118px;
  border-radius: 50%; opacity: .15; filter: blur(22px); background: var(--tone);
  transition: opacity var(--dur) var(--ease);
}
.kpi:hover .glow { opacity: .34; }
/* 右上角工业图标：tone 着色 + 玻璃底，悬停提亮 */
.kpi .ico {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  color: var(--tone); background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: var(--inner-glass); opacity: .8;
  transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease),
    background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.kpi:hover .ico { opacity: 1; border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .085); transform: translateY(-1px); }
.kpi .ico svg { width: 16px; height: 16px; }

/* 环比/同比微胶囊标签：达标绿、超标红 */
.delta {
  display: inline-flex; align-items: center; gap: 2px; font-weight: 650;
  font-size: 11.4px; line-height: 1; padding: 3.5px 7px 3.5px 6px; border-radius: 999px;
  font-family: var(--mono); letter-spacing: -.2px;
}
.delta svg { width: 12px; height: 12px; }
.delta.up, .delta.bad { color: #fda4af; background: rgba(244, 63, 94, .15); }
.delta.down, .delta.good { color: #6ee7b7; background: rgba(16, 185, 129, .15); }

/* ============================ 按钮 ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--tx-1);
  font-size: 13px; font-weight: 500; white-space: nowrap; -webkit-tap-highlight-color: transparent;
  box-shadow: var(--inner-glass);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform .12s var(--ease);
}
.btn svg { width: 15px; height: 15px; }
.btn:hover { background: var(--panel-3); color: var(--tx-0); border-color: var(--edge-2); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
/* 主操作按钮：翡翠绿渐变 + 玻璃高光，悬停叠加品牌绿外发光 */
.btn.primary {
  border-color: rgba(255, 255, 255, .16); color: #03130c; font-weight: 650;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .20), transparent 54%),
    linear-gradient(160deg, #12d18f 0%, var(--brand) 44%, #047857 100%);
  box-shadow: var(--inner-glass), 0 10px 26px -12px rgba(16, 185, 129, .9);
}
.btn.primary:hover {
  filter: brightness(1.07);
  box-shadow: var(--inner-glass), 0 10px 26px -12px rgba(16, 185, 129, .9), 0 0 18px rgba(0, 192, 127, .42);
}
/* 链金按钮：用于"上链 / 存证"类动作 */
.btn.chain {
  border-color: rgba(255, 255, 255, .16); color: #21160a; font-weight: 650;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .20), transparent 54%),
    linear-gradient(160deg, var(--chain-l) 0%, var(--chain) 46%, #b45309 100%);
  box-shadow: var(--inner-glass), 0 10px 26px -12px rgba(245, 165, 36, .85);
}
.btn.chain:hover {
  filter: brightness(1.06);
  box-shadow: var(--inner-glass), 0 10px 26px -12px rgba(245, 165, 36, .85), 0 0 18px rgba(245, 165, 36, .34);
}
.btn.danger { border-color: rgba(244, 63, 94, .4); color: #fda4af; background: rgba(244, 63, 94, .12); }
.btn.danger:hover { background: rgba(244, 63, 94, .2); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--panel-2); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.2px; }
.btn.lg { height: 40px; padding: 0 20px; font-size: 14px; }
.btn.block { width: 100%; }

/* ============================ 表单 ============================ */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 12.4px; color: var(--tx-2); margin-bottom: 6px; }
.field .hint { font-size: 11.6px; color: var(--tx-3); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; height: 36px; padding: 0 11px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .045); border: 1px solid var(--line-2); color: var(--tx-0);
  font-size: 13.2px; font-family: inherit; outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .28);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255, 255, 255, .24); }
.textarea { height: auto; padding: 9px 11px; resize: vertical; min-height: 74px; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(0, 192, 127, .62); background: rgba(0, 192, 127, .045);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .22), 0 0 0 3px rgba(0, 192, 127, .16);
}
.input::placeholder, .textarea::placeholder { color: var(--tx-3); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d9cb5' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; background-size: 15px; padding-right: 30px; cursor: pointer; }
.select option { background: var(--bg-2); color: var(--tx-0); }
.input-group { display: flex; }
.input-group .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; height: 36px; }

/* ============================ 表格 ============================ */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  text-align: left; padding: 11px 14px; font-weight: 600; font-size: 12.2px; color: var(--tx-1);
  background: linear-gradient(180deg, rgba(255, 255, 255, .066), rgba(255, 255, 255, .030));
  border-bottom: 1px solid rgba(0, 192, 127, .22); white-space: nowrap;
  position: sticky; top: 0; z-index: 2; backdrop-filter: blur(8px); letter-spacing: .3px;
}
/* 数据行 52px 行高 · 细分割线 · 悬停整行高显 + 左侧品牌绿指示条 */
table.tbl td { padding: 15px 14px; border-bottom: 1px solid rgba(255, 255, 255, .05); color: var(--tx-1); vertical-align: middle; }
table.tbl tbody tr { transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
table.tbl tbody tr:nth-child(even) { background: rgba(255, 255, 255, .014); }
table.tbl tbody tr:hover { background: rgba(255, 255, 255, .05); box-shadow: inset 2px 0 0 var(--brand); }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 12.5px; }
table.tbl tr.clickable { cursor: pointer; }
table.tbl tr.sel { background: rgba(0, 192, 127, .10); box-shadow: inset 2px 0 0 var(--brand-l); }

.empty { padding: 46px 20px; text-align: center; color: var(--tx-3); }
.empty svg { width: 40px; height: 40px; opacity: .4; margin-bottom: 10px; }
/* 安全空状态：盾牌外一圈极淡的雷达扫描光环（零超标时给"正在守护"的安全感） */
.empty .empty-mark {
  width: 86px; height: 86px; margin: 0 auto 14px; position: relative;
  display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,192,127,.10), transparent 68%);
  border: 1px solid rgba(0,192,127,.16);
}
.empty .empty-mark::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid rgba(0,192,127,.42);
  animation: radarSweep 3s var(--ease) infinite;
}
@keyframes radarSweep {
  0% { transform: scale(.72); opacity: .75; }
  100% { transform: scale(1.3); opacity: 0; }
}
.empty .empty-title { color: var(--tx-1); font-size: 13.6px; font-weight: 600; margin-bottom: 4px; }
.empty .empty-sub { font-size: 12.2px; color: var(--tx-3); }

.pager { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--hair); flex-wrap: wrap; }
.pager .info { font-size: 12.2px; color: var(--tx-3); margin-right: auto; }
.pg-btn {
  min-width: 30px; height: 30px; padding: 0 9px; border-radius: 8px; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--tx-1); font-size: 12.5px;
  box-shadow: var(--inner-glass);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.pg-btn:hover:not(:disabled) { background: var(--panel-3); border-color: var(--line-2); color: var(--tx-0); }
.pg-btn:disabled { opacity: .35; cursor: not-allowed; }
.pg-btn.on {
  color: #03130c; font-weight: 700; border-color: rgba(255, 255, 255, .18);
  background: linear-gradient(160deg, #12d18f, var(--brand) 52%, #047857);
  box-shadow: var(--inner-glass), 0 0 16px -4px rgba(0, 192, 127, .8);
}

/* ============================ 标签 ============================ */
.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 30px;
  font-size: 11.8px; font-weight: 600; line-height: 1.7; white-space: nowrap;
  background: var(--panel-3); color: var(--tx-1); border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; opacity: .9; }
.tag.plain::before { display: none; }
.tag.t-ok { background: rgba(16,185,129,.15); color: #6ee7b7; }
.tag.t-warn { background: rgba(245,158,11,.16); color: #fcd34d; }
.tag.t-danger { background: rgba(244,63,94,.16); color: #fda4af; }
.tag.t-info { background: rgba(56,189,248,.15); color: #7dd3fc; }
.tag.t-violet { background: rgba(167,139,250,.16); color: #c4b5fd; }
.tag.t-chain { background: rgba(245,165,36,.16); color: #fcd34d; }
.tag.t-mute { background: rgba(255,255,255,.07); color: var(--tx-2); }

.hash {
  font-family: var(--mono); font-size: 12px; color: var(--tx-2); cursor: pointer;
  border-bottom: 1px dashed rgba(255, 255, 255, .2);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.hash:hover { color: var(--brand-l); border-bottom-color: rgba(0, 192, 127, .6); }

.chainbadge {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11.6px;
  padding: 2px 8px; border-radius: 7px; background: rgba(245, 165, 36, .13); color: var(--chain-l);
  border: 1px solid rgba(245, 165, 36, .26); cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 12px -6px rgba(245, 165, 36, .6);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.chainbadge:hover {
  background: rgba(245, 165, 36, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 16px -4px rgba(245, 165, 36, .78);
}
/* 链上公钥已核验小锁 */
.chainbadge .lock-ok { display: inline-flex; align-items: center; color: var(--brand-l); opacity: .92; }

/* ---- 全流程可信流水线（存证详情）---- */
.trust-flow {
  display: flex; align-items: center; padding: 14px 16px;
  border-radius: var(--radius); background: rgba(255, 255, 255, .028);
  border: var(--card-border);
}
.tf-step { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.tf-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px;
  background: var(--brand-l); box-shadow: 0 0 0 3px rgba(0, 192, 127, .16);
  animation: tfBreath 2.4s ease-in-out infinite;
}
.tf-step.bad .tf-dot { background: var(--danger); box-shadow: 0 0 0 3px rgba(244, 63, 94, .16); }
.tf-txt { font-size: 12.4px; color: var(--tx-0); }
.tf-step.bad .tf-txt { color: #fda4af; }
.tf-line {
  flex: 1; min-width: 20px; height: 1px; margin: 0 11px;
  background: linear-gradient(90deg, rgba(0, 192, 127, .45), rgba(0, 192, 127, .14));
}
@keyframes tfBreath { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

/* ============================ 图表 ============================ */
.chart { width: 100%; }
.chart.h260 { height: 260px; } .chart.h300 { height: 300px; }
.chart.h200 { height: 200px; } .chart.h340 { height: 340px; } .chart.h420 { height: 420px; }

/* ============================ 弹窗 ============================ */
.mask {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(900px 620px at 50% 20%, rgba(0, 192, 127, .07), transparent 62%),
    rgba(3, 6, 12, .74);
  backdrop-filter: blur(6px); animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal {
  position: relative; overflow: hidden;
  width: 100%; max-height: 88vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(16, 24, 42, .98), rgba(8, 13, 24, .99));
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  box-shadow: var(--shadow), var(--inner-glass);
  animation: pop .2s cubic-bezier(.2,.9,.3,1.2);
}
/* 顶部流通色线：与全站"链路"母题一致 */
.modal::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--brand), var(--cyan), transparent);
  opacity: .85;
}
@keyframes pop { from { opacity:0; transform: translateY(14px) scale(.985) } to { opacity:1; transform:none } }
.modal-head {
  display: flex; align-items: center; gap: 12px; padding: 17px 20px;
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), transparent);
}
.modal-head h3 { font-size: 16px; }
.modal-head .x { margin-left: auto; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; color: var(--tx-2); border: 1px solid transparent; background: none; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.modal-head .x:hover { background: var(--panel-2); color: var(--tx-0); }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 15px 20px; border-top: 1px solid var(--hair); }

/* ============================ 提示 ============================ */
.toasts { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 260px; max-width: 400px; padding: 12px 15px; border-radius: var(--radius-sm);
  background: rgba(14, 22, 38, .93); border: 1px solid var(--line-2);
  box-shadow: var(--shadow), var(--inner-glass); backdrop-filter: blur(14px);
  display: flex; gap: 10px; align-items: flex-start; animation: slideIn .22s cubic-bezier(.2,.9,.3,1.2);
  font-size: 13px;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(24px) } to { opacity: 1; transform: none } }
.toast .ico { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 2px; }
.toast.ok { border-left: 3px solid var(--carbon); } .toast.ok .ico { color: var(--carbon-l); }
.toast.err { border-left: 3px solid var(--danger); } .toast.err .ico { color: #fda4af; }
.toast.info { border-left: 3px solid var(--sky); } .toast.info .ico { color: #7dd3fc; }
.toast.warn { border-left: 3px solid var(--warn); } .toast.warn .ico { color: #fcd34d; }

/* ================= 登录页 / 品牌首页（沉浸式科技首屏） ================= */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(380px, 0.65fr); }

/* 左栏：可滚动的品牌叙事容器 */
.login-hero {
  position: relative; overflow-y: auto; overflow-x: hidden; max-height: 100vh;
  background: linear-gradient(165deg, #080c14 0%, #0b111c 46%, #0d131f 100%);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent;
}
.login-hero::-webkit-scrollbar { width: 8px; }
.login-hero::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }

/* ---------- Hero 首屏（视频背景 + 暗色遮罩） ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 64px 56px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .62; filter: saturate(.6) contrast(1.06);
}
/* 65% 级暗色渐变遮罩 —— 确保文字高对比可读 */
.hero-mask {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(8,12,20,.95) 0%, rgba(8,12,20,.78) 46%, rgba(8,12,20,.55) 100%),
    linear-gradient(180deg, rgba(8,12,20,.72) 0%, transparent 38%, rgba(8,12,20,.92) 100%);
}
/* 极光光晕：视频不可用时的视觉兜底，同时提供冷暖双色氛围 */
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(760px 520px at 22% 24%, rgba(16,185,129,.26), transparent 62%),
    radial-gradient(680px 520px at 80% 74%, rgba(6,182,212,.20), transparent 62%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 730px; }
.hero-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 32px; }
.hero-title {
  font-size: clamp(30px, 3.5vw, 52px); line-height: 1.14; letter-spacing: -1.6px;
  font-weight: 700; color: #fff;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, #10b981, #06b6d4 62%, #34d399);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 20px; font-size: 15.4px; color: var(--tx-1); max-width: 570px; line-height: 1.92; letter-spacing: .1px; }
.hero-cta { margin-top: 34px; display: flex; gap: 13px; flex-wrap: wrap; }
.cta {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px;
  border-radius: 12px; font-size: 14.2px; font-weight: 600; cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.cta:active { transform: scale(.97); }
/* 主 CTA：翡翠绿渐变 + 流光呼吸灯 */
.cta-primary {
  border: none; color: #04120c; background: linear-gradient(135deg, #10b981, #06b6d4);
  animation: ctaBreath 3s var(--ease) infinite;
}
.cta-primary:hover { transform: translateY(-2px); }
@keyframes ctaBreath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.42), 0 14px 34px -14px rgba(16,185,129,.85); }
  50% { box-shadow: 0 0 26px 3px rgba(16,185,129,.40), 0 14px 34px -14px rgba(16,185,129,.95); }
}
/* 次 CTA：毛玻璃虚线框 */
.cta-ghost {
  background: rgba(255,255,255,.04); color: var(--tx-0);
  border: 1px dashed rgba(255,255,255,.28); backdrop-filter: blur(12px);
}
.cta-ghost:hover { border-color: rgba(16,185,129,.65); background: rgba(16,185,129,.1); transform: translateY(-2px); }
.hero-chain { margin-top: 30px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- 区块通用 ---------- */
.sec { padding: 62px 56px; position: relative; }
.sec + .sec { border-top: 1px solid rgba(255,255,255,.05); }
.sec-head { position: relative; margin-bottom: 26px; padding-left: 15px; }
/* 小节标题左侧的品牌色标尺，与工作台卡片标题同源 */
.sec-head::before {
  content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--brand-l), var(--cyan));
  box-shadow: 0 0 10px rgba(0, 192, 127, .55);
}
.sec-head h2 { font-size: 24px; letter-spacing: -.6px; color: var(--tx-0); }
.sec-head p { margin-top: 7px; font-size: 13.6px; color: var(--tx-3); max-width: 640px; line-height: 1.8; }

/* ---------- Bento Grid（4 块不对称） ---------- */
.bento-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.bento-item {
  position: relative; overflow: hidden; border-radius: 18px; min-height: 190px;
  border: 1px solid rgba(255,255,255,.1); background: #0b111c;
  display: flex; align-items: flex-end;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.bento-item.lg { grid-column: span 4; grid-row: span 2; min-height: 396px; }
.bento-item.md { grid-column: span 2; }
.bento-item.wide { grid-column: span 6; min-height: 208px; }
.bento-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .58; transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.bento-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,12,20,.06) 0%, rgba(8,12,20,.46) 46%, rgba(8,12,20,.9) 100%);
}
/* 通栏卡片：横向渐变，左侧留白承载文案、右侧保留图像 */
.bento-item.wide .bento-veil {
  background: linear-gradient(90deg, rgba(8,12,20,.94) 0%, rgba(8,12,20,.72) 46%, rgba(8,12,20,.34) 100%);
}
.bento-item.wide { align-items: center; }
.bento-item.wide .bento-body { padding: 24px 30px; }
.bento-body { position: relative; z-index: 1; padding: 20px 22px; width: 100%; }
.bento-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.2px; font-family: var(--mono);
  color: #6ee7b7; background: rgba(16,185,129,.14); border: 1px solid rgba(16,185,129,.28);
  padding: 3px 9px; border-radius: 999px; margin-bottom: 10px;
}
.bento-tag .dot { width: 5px; height: 5px; border-radius: 50%; background: #34d399; animation: tfBreath 2.4s ease-in-out infinite; }
.bento-item h3 { font-size: 17px; color: #fff; letter-spacing: -.3px; }
.bento-item p { margin-top: 7px; font-size: 12.8px; color: var(--tx-2); line-height: 1.75; max-width: 500px; }
/* 悬停：微光外发光 + 背景缓推放大 */
.bento-item:hover {
  transform: translateY(-3px); border-color: rgba(16,185,129,.46);
  box-shadow: 0 0 22px rgba(16,185,129,.16), 0 18px 40px -20px rgba(0,0,0,.9);
}
.bento-item:hover .bento-bg { opacity: .62; transform: scale(1.05); }

/* ---------- Carbon Flow 端到端流程轴 ---------- */
.flow-track {
  display: flex; align-items: center; flex-wrap: nowrap; overflow-x: auto;
  padding: 22px 22px; border-radius: 18px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.028);
  backdrop-filter: blur(16px); scrollbar-width: none;
}
.flow-track::-webkit-scrollbar { display: none; }
.flow-node { display: flex; align-items: center; gap: 9px; white-space: nowrap; flex: 0 0 auto; }
.flow-ico {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 34px;
  color: #6ee7b7; background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.26);
}
.flow-txt { font-size: 12.6px; color: var(--tx-0); font-weight: 500; }
/* 流动渐变连接线 */
.flow-link {
  flex: 1 1 auto; min-width: 22px; height: 2px; margin: 0 9px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(16,185,129,.14), rgba(6,182,212,.75), rgba(16,185,129,.14));
  background-size: 220% 100%; animation: flowMove 2.4s linear infinite;
}
@keyframes flowMove { 0% { background-position: 130% 0; } 100% { background-position: -30% 0; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .login { grid-template-columns: 1fr; }
  .login-hero { max-height: none; overflow: visible; }
  .login-panel { border-left: none; border-top: 1px solid var(--line); }
  .bento-item.lg { grid-column: span 6; grid-row: span 1; min-height: 300px; }
  .bento-item.md { grid-column: span 3; }
  .bento-item.wide { grid-column: span 6; }
}
@media (max-width: 820px) {
  .hero { padding: 44px 24px; min-height: auto; }
  .sec { padding: 42px 24px; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-item.lg, .bento-item.md, .bento-item.wide { grid-column: span 1; grid-row: span 1; min-height: 220px; }
  .quick-roles { grid-template-columns: 1fr; }
  /* 流程轴改为纵向 */
  .flow-track { flex-direction: column; align-items: stretch; overflow-x: visible; }
  .flow-link {
    flex: 0 0 auto; width: 2px; height: 22px; min-width: 0; margin: 4px 0 4px 18px;
    background: linear-gradient(180deg, rgba(16,185,129,.14), rgba(6,182,212,.75), rgba(16,185,129,.14));
    background-size: 100% 220%; animation: flowMoveV 2.4s linear infinite;
  }
  @keyframes flowMoveV { 0% { background-position: 0 130%; } 100% { background-position: 0 -30%; } }
}

.login-panel {
  position: relative; display: grid; place-items: center; padding: 40px 32px;
  background: linear-gradient(180deg, rgba(10, 16, 30, .60), rgba(6, 10, 18, .74));
  border-left: 1px solid var(--hair); backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .03);
}
.login-card { width: 100%; max-width: 400px; }
.login-card h3 { font-size: 22px; }
.quick-roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 8px; }
.qr {
  position: relative; overflow: hidden; padding: 11px 11px 11px 13px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .038); cursor: pointer; text-align: left;
  box-shadow: var(--inner-glass);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.qr::before {
  content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 2px; border-radius: 2px;
  background: rgba(255, 255, 255, .12); transition: background var(--dur) var(--ease);
}
.qr:hover { border-color: rgba(0, 192, 127, .5); background: rgba(0, 192, 127, .075); transform: translateY(-1px); }
.qr:hover::before { background: linear-gradient(180deg, var(--brand-l), var(--cyan)); }
.qr.on { border-color: rgba(0, 192, 127, .7); background: rgba(0, 192, 127, .13); }
.qr.on::before { background: linear-gradient(180deg, var(--brand-l), var(--cyan)); box-shadow: 0 0 8px rgba(0, 192, 127, .8); }
.qr b { display: block; font-size: 13px; color: var(--tx-0); font-weight: 600; }
.qr span { font-size: 11.2px; color: var(--tx-3); font-family: var(--mono); }

.divider { display: flex; align-items: center; gap: 10px; margin: 20px 0; color: var(--tx-3); font-size: 11.6px; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }

/* ============================ 公共大屏 ============================ */
.screen { min-height: 100vh; padding: 20px 24px 32px; }
.screen-head {
  position: relative; display: flex; align-items: center; gap: 16px;
  padding-bottom: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.screen-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 192, 127, .55), rgba(6, 182, 212, .30) 26%, var(--hair) 60%, transparent);
}
.screen-head h1 { font-size: 25px; letter-spacing: -.5px; }
.screen-head .sub { font-size: 12.6px; color: var(--tx-3); margin-top: 3px; }

/* 行情带：等宽数字 + 项间细分隔线，形如交易所行情条 */
.ticker {
  display: flex; align-items: center; gap: 22px; padding: 12px 18px;
  border-radius: var(--radius); border: 1px solid var(--line); overflow-x: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018));
  box-shadow: var(--inner-glass); scrollbar-width: none;
}
.ticker::-webkit-scrollbar { display: none; }
.tick { position: relative; display: flex; align-items: baseline; gap: 7px; white-space: nowrap; font-size: 12.4px; color: var(--tx-2); }
.tick + .tick::before {
  content: ""; position: absolute; left: -11px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 14px; background: var(--hair);
}
.tick b { font-size: 16px; font-family: var(--mono); color: var(--tx-0); font-variant-numeric: tabular-nums; }
.tick.up b { color: #fb7185; } .tick.down b { color: #34d399; }

.blockfeed { display: grid; gap: 8px; }
.bf-item {
  position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 12px;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(245, 165, 36, .065), rgba(255, 255, 255, .025) 46%);
  box-shadow: var(--inner-glass);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.bf-item:hover { border-color: rgba(245, 165, 36, .45); transform: translateX(2px); }
.bf-idx { width: 54px; flex: 0 0 54px; font-family: var(--mono); font-size: 12.5px; color: var(--chain-l); font-weight: 700; }
.bf-main { flex: 1; min-width: 0; }
.bf-hash { font-family: var(--mono); font-size: 11.4px; color: var(--tx-2); }

/* ============================ 链式可视化 ============================ */
.chainviz { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding: 6px 2px 12px; }
.cv-block {
  position: relative; flex: 0 0 178px; border-radius: 11px; padding: 11px 12px;
  background: linear-gradient(160deg, rgba(245, 165, 36, .10), rgba(255, 255, 255, .03));
  border: 1px solid rgba(245, 165, 36, .26); box-shadow: var(--inner-glass);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
/* 区块顶部色条：普通区块链金、创世紫、异常红 */
.cv-block::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; border-radius: 11px 11px 0 0;
  background: linear-gradient(90deg, var(--chain-l), transparent);
}
.cv-block:hover { transform: translateY(-2px); border-color: rgba(245, 165, 36, .55); box-shadow: var(--inner-glass), 0 0 18px -6px rgba(245, 165, 36, .7); }
.cv-block.genesis { background: linear-gradient(160deg, rgba(167,139,250,.14), rgba(255,255,255,.03)); border-color: rgba(167,139,250,.34); }
.cv-block.genesis::before { background: linear-gradient(90deg, #c4b5fd, transparent); }
.cv-block.bad { background: linear-gradient(160deg, rgba(244,63,94,.16), rgba(255,255,255,.03)); border-color: rgba(244,63,94,.5); }
.cv-block.bad::before { background: linear-gradient(90deg, #fb7185, transparent); }
.cv-block .idx { font-family: var(--mono); font-size: 13px; color: var(--chain-l); font-weight: 700; }
.cv-block.genesis .idx { color: #c4b5fd; }
.cv-block.bad .idx { color: #fda4af; }
.cv-block .h { font-family: var(--mono); font-size: 10.4px; color: var(--tx-3); margin-top: 5px; word-break: break-all; line-height: 1.45; }
.cv-link { flex: 0 0 34px; display: grid; place-items: center; position: relative; }
/* 区块之间的"链节"：一段持续流动的高光，暗示哈希指针的方向 */
.cv-link::before {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, rgba(245, 165, 36, .16), rgba(251, 191, 36, .9), rgba(245, 165, 36, .16));
  background-size: 200% 100%; animation: flowMove 2.6s linear infinite;
}
.cv-link b { position: relative; font-size: 13px; color: rgba(251, 191, 36, .9); background: var(--bg-0); padding: 0 4px; }

/* ============================ 其他 ============================ */
.kv { display: grid; grid-template-columns: 128px 1fr; gap: 9px 14px; font-size: 13px; align-items: baseline; }
.kv dt { color: var(--tx-3); font-size: 12.4px; }
.kv dd { margin: 0; color: var(--tx-0); word-break: break-all; }

.steps { display: flex; align-items: center; gap: 0; }
.step { display: flex; align-items: center; gap: 8px; font-size: 12.4px; color: var(--tx-3); }
.step.on { color: var(--carbon-l); }
.step.done { color: var(--tx-1); }
.step .d { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--panel-3); border: 1px solid var(--line); }
.step.on .d { background: var(--carbon); color: #04120c; border-color: transparent; font-weight: 700; }
.step.done .d { background: rgba(16,185,129,.2); color: var(--carbon-l); border-color: rgba(16,185,129,.4); }
.step-line { width: 34px; height: 1px; background: var(--line-2); margin: 0 10px; }

.bar-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.bar-row .nm { width: 128px; flex: 0 0 128px; font-size: 12.6px; color: var(--tx-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track {
  position: relative; flex: 1; height: 8px; border-radius: 6px; overflow: hidden;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35);
}
.bar-fill {
  position: relative; height: 100%; border-radius: 6px; overflow: hidden;
  background: linear-gradient(90deg, var(--carbon-d), var(--brand), var(--carbon-l));
  box-shadow: 0 0 12px -2px rgba(0, 192, 127, .7);
  transition: width .6s var(--ease);
}
/* 条内流光：让静态数据条也保有"在流动"的生命感 */
.bar-fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .36), transparent);
  background-size: 60% 100%; background-repeat: no-repeat;
  animation: barShine 2.8s var(--ease) infinite;
}
@keyframes barShine { 0% { background-position: -70% 0; } 100% { background-position: 170% 0; } }
.bar-fill.warn { background: linear-gradient(90deg, #b45309, var(--warn)); box-shadow: 0 0 12px -2px rgba(245, 158, 11, .7); }
.bar-fill.danger { background: linear-gradient(90deg, #9f1239, var(--danger)); box-shadow: 0 0 12px -2px rgba(244, 63, 94, .7); }
.bar-row .vv { width: 96px; flex: 0 0 96px; text-align: right; font-family: var(--mono); font-size: 12.2px; color: var(--tx-2); font-variant-numeric: tabular-nums; }

.readout {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 9px 12px;
  border-radius: var(--radius-sm); background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line); font-size: 12.6px; box-shadow: var(--inner-glass);
}
.readout .flag { font-weight: 700; font-size: 11.6px; letter-spacing: .4px; padding: 1px 7px; border-radius: 20px; }
.readout.pass { border-color: rgba(16, 185, 129, .26); }
.readout.pass .flag { background: rgba(16, 185, 129, .18); color: #6ee7b7; box-shadow: 0 0 10px -3px rgba(16, 185, 129, .9); }
.readout.fail { border-color: rgba(244, 63, 94, .30); }
.readout.fail .flag { background: rgba(244, 63, 94, .18); color: #fda4af; box-shadow: 0 0 10px -3px rgba(244, 63, 94, .9); }
.readout .k { color: var(--tx-3); }

/* 哈希容器：左侧链金色条，一眼识别"这是链上数据" */
.hashbox {
  position: relative; font-family: var(--mono); font-size: 11.6px; word-break: break-all; line-height: 1.7;
  color: var(--tx-2); background: rgba(0, 0, 0, .32); padding: 9px 11px 9px 13px; border-radius: 8px;
  border: 1px solid var(--line); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .30);
}
.hashbox::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--chain-l), rgba(245, 165, 36, .25));
}
.hashbox b { color: var(--chain-l); font-weight: 600; }

.mono-pre {
  font-family: var(--mono); font-size: 12px; line-height: 1.7; white-space: pre-wrap; word-break: break-all;
  background: rgba(0, 0, 0, .34); border: 1px solid var(--line); border-radius: 9px; padding: 12px;
  color: var(--tx-1); max-height: 320px; overflow: auto; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .30);
}

/* 提示条：左侧 3px 语义色条 + 玻璃底 */
.alertbar {
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: 12.8px;
  display: flex; gap: 9px; align-items: flex-start;
  border: 1px solid transparent; border-left-width: 3px; box-shadow: var(--inner-glass);
}
.alertbar.warn { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.32); color: #fcd34d; }
.alertbar.err { background: rgba(244,63,94,.12); border-color: rgba(244,63,94,.32); color: #fda4af; }
.alertbar.ok { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.32); color: #6ee7b7; }
.alertbar.info { background: rgba(56,189,248,.12); border-color: rgba(56,189,248,.30); color: #7dd3fc; }

.seg { display: inline-flex; padding: 3px; border-radius: 9px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.seg button { height: 26px; padding: 0 12px; border: none; background: none; color: var(--tx-2); border-radius: 7px; cursor: pointer; font-size: 12.4px; }
.seg button.on { background: var(--panel-3); color: var(--tx-0); font-weight: 600; }

.skel { background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.11), rgba(255,255,255,.05)); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: 7px; }
@keyframes sk { from { background-position: 200% 0 } to { background-position: -200% 0 } }

/* =====================================================================
   精修层 · 收口
   --------------------------------------------------------------------- */
/* 尊重系统"减少动态效果"偏好（答辩投屏 / 低配设备友好） */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* 小屏：工作台顶栏与内容区精简，避免拥挤 */
@media (max-width: 760px) {
  .topbar { height: 56px; padding: 0 12px; gap: 8px; }
  /* 小屏顶栏：品牌标识已足够识别，隐去文字与实时指标，避免中文被压成竖排 */
  .topbar .flex > b { display: none; }
  .topbar .flex.gap-6 { margin-left: 0 !important; gap: 5px; }
  .topbar .chip.live { display: none; }
  .topbar .btn.sm { padding: 0 9px; height: 29px; }
  .content { padding: 16px 14px 36px; }
  .crumb span { display: none; }
  .chip.mono { display: none; }
  .screen { padding: 14px 14px 28px; }
  .screen-head h1 { font-size: 20px; }
  .screen-head { gap: 10px; }
}

/* =====================================================================
   工业场景 · 双碳可信存证扩展层（IIoT / 双碳核算 / 联盟链 / DPP）
   ---------------------------------------------------------------------
   设计语言：深冷底色 + 等宽数据排版 + 1px 细边框 + 脉冲呼吸灯状态。
   全部新增类名以语义前缀隔离，不影响既有组件的样式收口。
   ===================================================================== */

/* ---------- 段落标题（01 / 02 / 03 编号） ---------- */
.sect-head {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 4px 0 14px; padding: 10px 0 10px 0;
  border-top: 1px solid var(--hair);
}
.sect-head .no {
  flex: 0 0 auto; font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: var(--chain-l); letter-spacing: .06em;
  padding: 3px 8px; border-radius: 7px;
  background: rgba(245, 165, 36, .10); border: 1px solid rgba(245, 165, 36, .28);
}
.sect-head h3 { margin: 0; font-size: 15px; color: var(--tx-0); letter-spacing: .01em; }
.sect-head p { margin: 5px 0 0; font-size: 12.4px; line-height: 1.72; color: var(--tx-2); max-width: 1100px; }

/* ---------- 脉冲呼吸指示灯 ---------- */
.ind-lamp {
  display: inline-block; flex: 0 0 auto; border-radius: 50%;
  background: var(--tx-3); position: relative;
}
.ind-lamp::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid currentColor; opacity: .5;
  animation: lampPulse 2.1s var(--ease) infinite;
}
.ind-lamp.NORMAL, .ind-lamp.ok { background: var(--brand-l); color: var(--brand-l); box-shadow: 0 0 9px var(--brand-l); }
.ind-lamp.WATCH { background: #fbbf24; color: #fbbf24; box-shadow: 0 0 9px #fbbf24; }
.ind-lamp.ANOMALY, .ind-lamp.bad { background: var(--danger); color: var(--danger); box-shadow: 0 0 9px var(--danger); }
.ind-lamp.OFFLINE { background: var(--tx-3); color: var(--tx-3); }
@keyframes lampPulse {
  0%, 100% { transform: scale(1); opacity: .55; }
  50% { transform: scale(1.55); opacity: 0; }
}

/* ---------- DID / 协议 / 原始帧等宽元素 ---------- */
.did {
  font-family: var(--mono); font-size: 12px; color: var(--cyan-l);
  white-space: nowrap; cursor: copy; letter-spacing: .01em;
  border-bottom: 1px dashed rgba(34, 211, 238, .38);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.did:hover { color: var(--tx-0); border-bottom-color: var(--cyan-l); }
.proto {
  display: inline-block; font-family: var(--mono); font-size: 11.2px;
  padding: 2px 7px; border-radius: 6px; white-space: nowrap;
  color: var(--tx-1); background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
}
.frame-pre { max-height: 118px; font-size: 11.4px; line-height: 1.6; word-break: break-all; white-space: pre-wrap; }
.mono-pre.contract {
  max-height: none; font-size: 11.6px; line-height: 1.78;
  background: rgba(0, 192, 127, .045); border: 1px solid rgba(0, 192, 127, .18);
}

/* ---------- 物料平衡校验 ---------- */
.bal-meter {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .028);
}
.bal-meter.NORMAL { border-color: rgba(16, 185, 129, .34); background: rgba(16, 185, 129, .07); }
.bal-meter.WATCH { border-color: rgba(245, 158, 11, .34); background: rgba(245, 158, 11, .07); }
.bal-meter.ANOMALY { border-color: rgba(244, 63, 94, .38); background: rgba(244, 63, 94, .08); }
.bal-val { font-size: 24px; line-height: 1.2; color: var(--tx-0); font-variant-numeric: tabular-nums; }
.bal-meter.NORMAL .bal-val { color: var(--brand-l); }
.bal-meter.WATCH .bal-val { color: #fcd34d; }
.bal-meter.ANOMALY .bal-val { color: #fda4af; }
.bal-row { display: flex; align-items: center; gap: 10px; }
.bal-row .nm { flex: 0 0 168px; width: 168px; font-size: 11.2px; color: var(--tx-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bal-row .bar-track { flex: 1 1 auto; height: 7px; border-radius: 20px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.bal-row .bar-fill { height: 100%; border-radius: 20px; background: linear-gradient(90deg, #047857, var(--brand-l)); }
.bal-row .vv { flex: 0 0 52px; text-align: right; font-family: var(--mono); font-size: 11.6px; color: var(--tx-2); }

/* ---------- 预言机 ---------- */
.oracle-hero {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 16px 18px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(520px 120px at 8% 0%, rgba(6, 182, 212, .11), transparent 70%),
    rgba(255, 255, 255, .026);
}
.oracle-hero .big { font-size: 30px; line-height: 1.16; color: var(--tx-0); font-variant-numeric: tabular-nums; }
.oracle-div { flex: 0 0 1px; align-self: stretch; min-height: 62px; background: linear-gradient(180deg, transparent, var(--line-2), transparent); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 62px; padding: 0 2px; }
.spark i {
  flex: 1 1 0; min-width: 3px; border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, rgba(56, 189, 248, .82), rgba(56, 189, 248, .20));
  transition: height .5s var(--ease);
}
.spark i.on { background: linear-gradient(180deg, var(--brand-l), rgba(0, 192, 127, .28)); box-shadow: 0 0 10px -1px var(--glow-brand); }

/* ---------- 核算结果大字 ---------- */
.res-big { display: flex; align-items: baseline; gap: 6px; }
.res-big .mono { font-size: 28px; line-height: 1.15; color: var(--tx-0); font-variant-numeric: tabular-nums; }
.res-big .unit { font-size: 12.5px; color: var(--tx-3); }

/* ---------- 排放范围行 ---------- */
.scope-row { display: flex; align-items: flex-start; gap: 10px; }
.scope-row .pill {
  flex: 0 0 auto; font-size: 11px; padding: 2px 8px; border-radius: 20px;
  border: 1px solid var(--line); white-space: nowrap;
}
.row-hot td { background: rgba(6, 182, 212, .055); }

/* ---------- 工序级 BOM ---------- */
.bom-head {
  display: flex; align-items: flex-end; gap: 26px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .026);
}
.bom-flow { display: flex; align-items: flex-end; gap: 6px; flex-wrap: nowrap; overflow-x: auto; padding: 6px 2px 2px; }
.bf-node { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 78px; flex: 1 1 0; }
.bf-bar {
  width: 100%; max-width: 62px; border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--brand-l), rgba(0, 192, 127, .22));
  box-shadow: 0 0 14px -4px var(--glow-brand);
  transition: height .5s var(--ease);
}
.bf-name { font-size: 11.2px; color: var(--tx-2); text-align: center; line-height: 1.4; }
.bf-val { font-size: 11.4px; color: var(--tx-0); }
.bf-arrow { flex: 0 0 auto; align-self: center; margin-top: 22px; font-size: 18px; color: var(--tx-3); font-style: normal; }
.stage-row { padding: 9px 12px; border-radius: var(--radius-sm); border: 1px solid var(--hair); background: rgba(255, 255, 255, .022); }
.bom-table { display: flex; flex-direction: column; gap: 5px; }
.bom-line { display: flex; align-items: center; gap: 10px; padding: 5px 10px; border-radius: 7px; background: rgba(255, 255, 255, .026); }
.bom-line .bl-name { flex: 1 1 auto; font-size: 12.2px; color: var(--tx-1); }
.bom-line .bl-share { flex: 0 0 54px; text-align: right; font-size: 11.6px; color: var(--tx-3); }
.bom-line .bl-val { flex: 0 0 104px; text-align: right; font-size: 11.8px; color: var(--tx-0); }

/* ---------- 联盟链节点拓扑 ---------- */
.consensus-core {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 13px 18px; border-radius: var(--radius);
  border: 1px solid rgba(245, 165, 36, .30);
  background:
    radial-gradient(420px 110px at 4% 0%, rgba(245, 165, 36, .12), transparent 72%),
    rgba(255, 255, 255, .03);
}
.consensus-core .cc-left { display: flex; align-items: center; gap: 11px; }
.consensus-core .cc-mid { font-size: 13px; color: var(--chain-l); font-variant-numeric: tabular-nums; }
.consensus-core .cc-right { margin-left: auto; text-align: right; }

.topo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.topo-col {
  padding: 12px; border-radius: var(--radius); border: 1px solid var(--line);
  background: rgba(255, 255, 255, .024); position: relative; overflow: hidden;
}
.topo-col::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; opacity: .8; }
.topo-col.ent::before { background: linear-gradient(90deg, var(--brand), transparent); }
.topo-col.ver::before { background: linear-gradient(90deg, var(--violet), transparent); }
.topo-col.gov::before { background: linear-gradient(90deg, var(--sky), transparent); }
.topo-col.bank::before { background: linear-gradient(90deg, var(--chain), transparent); }
.topo-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.topo-ico {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--tx-1);
}
.topo-col.ent .topo-ico { color: var(--brand-l); border-color: rgba(16, 185, 129, .3); }
.topo-col.ver .topo-ico { color: #c4b5fd; border-color: rgba(167, 139, 250, .3); }
.topo-col.gov .topo-ico { color: #7dd3fc; border-color: rgba(56, 189, 248, .3); }
.topo-col.bank .topo-ico { color: var(--chain-l); border-color: rgba(245, 165, 36, .3); }
.node-chip {
  padding: 9px 11px; border-radius: var(--radius-sm); border: 1px solid var(--hair);
  background: rgba(255, 255, 255, .028); transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.node-chip:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .05); }
.node-chip.off { opacity: .58; }
.node-chip .nc-name { font-family: var(--mono); font-size: 12.2px; color: var(--tx-0); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node-chip .nc-meta { font-size: 10.8px; color: var(--tx-3); margin-top: 5px; }
.node-chip .nc-id { font-size: 10.8px; color: var(--tx-3); margin-top: 3px; cursor: copy; }
.node-chip .nc-id:hover { color: var(--cyan-l); }

/* ---------- 产品数字护照 DPP ---------- */
.dpp-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 16px 18px; border-radius: var(--radius); margin-bottom: 16px;
  border: 1px solid rgba(245, 165, 36, .26);
  background:
    radial-gradient(460px 130px at 6% 0%, rgba(245, 165, 36, .11), transparent 70%),
    rgba(255, 255, 255, .028);
}
.dpp-qr {
  flex: 0 0 auto; padding: 9px; border-radius: 10px;
  background: #ffffff; box-shadow: 0 0 26px -8px rgba(255, 255, 255, .32);
}
.dpp-qr svg.qr { display: block; }

/* ---------- 穿透式验真流水线 ---------- */
.trace-flow { display: flex; align-items: stretch; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; }
.trace-step {
  flex: 1 1 0; min-width: 208px; display: flex; flex-direction: column; gap: 8px;
  padding: 12px; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .026);
  position: relative;
}
.trace-step.ok { border-color: rgba(16, 185, 129, .26); }
.trace-step.bad { border-color: rgba(244, 63, 94, .34); background: rgba(244, 63, 94, .05); }
.ts-head { display: flex; align-items: center; gap: 7px; }
.ts-stage { font-family: var(--mono); font-size: 12.4px; color: var(--chain-l); font-weight: 700; }
.ts-ico { display: grid; place-items: center; color: var(--tx-2); }
.ts-key { font-size: 12.4px; color: var(--tx-0); font-weight: 600; }
.ts-title { font-size: 12.2px; color: var(--tx-1); line-height: 1.5; }
.ts-sub { line-height: 1.55; }
.ts-kv { grid-template-columns: 74px 1fr !important; font-size: 11.4px; gap: 5px 8px; }
.ts-kv dt { font-size: 10.8px; }
.ts-kv dd { font-size: 11.2px; line-height: 1.5; }
.ts-frame { margin-top: auto; }
.ts-frame .mono-pre { max-height: 92px; font-size: 10.6px; line-height: 1.55; word-break: break-all; white-space: pre-wrap; }
.ts-seal { display: flex; align-items: center; gap: 6px; padding-top: 7px; border-top: 1px solid var(--hair); color: var(--tx-2); }
.trace-step.ok .ts-seal { color: var(--brand-l); }
.trace-step.bad .ts-seal { color: #fda4af; }
.ts-arrow { flex: 0 0 auto; align-self: center; font-size: 17px; font-style: normal; color: var(--tx-3); }

/* ---------- 小屏适配 ---------- */
@media (max-width: 1100px) {
  .topo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sect-head h3 { font-size: 14px; }
  .sect-head p { font-size: 12px; }
  .topo-grid { grid-template-columns: 1fr; }
  .consensus-core { gap: 10px; }
  .consensus-core .cc-right { margin-left: 0; text-align: left; }
  .bal-row .nm { flex: 0 0 108px; width: 108px; }
  .bom-head { gap: 14px; }
  .dpp-head { flex-direction: column; }
  .trace-flow { flex-direction: column; }
  .ts-arrow { transform: rotate(90deg); }
  .oracle-hero .big { font-size: 24px; }
  .bal-val { font-size: 20px; }
}

/* ---------- 业务风控阻断条（区别于「页面错误」：这是业务状态而非系统异常） ---------- */
.alertbar.stop {
  background: linear-gradient(90deg, rgba(244, 63, 94, .16), rgba(245, 158, 11, .10));
  border-color: rgba(244, 63, 94, .38); color: #fda4af;
}

/* 表格内等宽数据不换行（避免批次号 / 哈希 / 时间戳被折成两行） */
.nowrap { white-space: nowrap; }
.mt-4 { margin-top: 4px; }

/* =====================================================================
   碳矩阵工业大盘（page-matrix）—— 工业科技级界面
   参考蚂蚁数科"碳矩阵"产品交互规范
   ===================================================================== */
.matrix { display: flex; flex-direction: column; gap: 16px; }

/* ---------- 顶部全局状态栏 ---------- */
.matrix-head {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(11,26,45,.92), rgba(6,17,30,.88));
  border: 1px solid rgba(24,144,255,.18);
  border-radius: 12px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.04);
}
.matrix-head-left { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.matrix-title-block { display: flex; flex-direction: column; gap: 2px; }
.matrix-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--tx-0); letter-spacing: .3px; }
.matrix-sub { font-size: 11.5px; color: var(--tx-2); font-family: var(--mono); letter-spacing: .2px; }
.matrix-head-mid { display: flex; align-items: center; gap: 20px; flex: 1; }
.matrix-head-right { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

/* 点位选择器 */
.matrix-point { display: flex; align-items: center; gap: 8px; }
.matrix-point-label { font-size: 11.5px; color: var(--tx-2); font-family: var(--mono); }
.matrix-point-sel {
  appearance: none; -webkit-appearance: none;
  background: rgba(6,17,30,.6); color: var(--tx-0);
  border: 1px solid rgba(24,144,255,.28); border-radius: 6px;
  padding: 6px 28px 6px 10px; font-size: 12.5px; font-family: var(--mono);
  cursor: pointer; min-width: 240px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%231890FF' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
}
.matrix-point-sel:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px rgba(0,192,127,.18); }

/* 呼吸灯 */
.matrix-leds { display: flex; gap: 14px; }
.matrix-led {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 20px;
  font-size: 11.5px; font-family: var(--mono); color: var(--tx-1);
  background: rgba(6,17,30,.5); border: 1px solid rgba(255,255,255,.06);
}
.led-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  animation: led-pulse 2s ease-in-out infinite;
}
.led-green .led-dot { background: #00C07F; box-shadow: 0 0 8px rgba(0,192,127,.8), 0 0 16px rgba(0,192,127,.4); }
.led-blue .led-dot { background: #1890FF; box-shadow: 0 0 8px rgba(24,144,255,.8), 0 0 16px rgba(24,144,255,.4); animation-delay: 1s; }
@keyframes led-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.82); }
}

/* 链高度徽章 */
.matrix-chain {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(0,192,127,.10), rgba(24,144,255,.08));
  border: 1px solid rgba(0,192,127,.22);
}
.matrix-chain-info { display: flex; flex-direction: column; gap: 1px; }
.matrix-chain-h { font-size: 14px; font-weight: 700; color: var(--brand-l); }
.matrix-chain-sub { font-size: 10.5px; color: var(--tx-2); font-family: var(--mono); }

/* ---------- BOM 工序碳分摊流水 ---------- */
.bom-flow { display: flex; flex-direction: column; gap: 4px; }
.bom-step { padding: 10px 12px; background: rgba(6,17,30,.42); border: 1px solid rgba(255,255,255,.06); border-radius: 8px; }
.bom-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.bom-step-idx {
  width: 26px; height: 26px; border-radius: 6px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--brand-l);
  background: rgba(0,192,127,.14); border: 1px solid rgba(0,192,127,.28);
}
.bom-step-name { font-size: 13.5px; color: var(--tx-0); font-weight: 600; flex: 1; }
.bom-step-pct { font-size: 13px; color: var(--brand-l); font-weight: 700; }
.bom-step-desc { margin-bottom: 6px; }
.bom-bar { height: 6px; background: rgba(255,255,255,.05); border-radius: 3px; overflow: hidden; margin-bottom: 4px; }
.bom-bar-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, rgba(0,192,127,.35), var(--brand));
  transition: width .6s ease;
}
.bom-step-meta { display: flex; color: var(--tx-2); }
.bom-arrow { text-align: center; color: var(--tx-3); font-size: 14px; line-height: 1; padding: 2px 0; }

/* ---------- HJ 212 报文抽屉 ---------- */
.hj212-frame { display: flex; flex-direction: column; }
.hj212-packet {
  font-size: 11.5px; line-height: 1.6; max-height: 220px; overflow: auto;
  word-break: break-all; background: rgba(6,17,30,.7); color: var(--brand-l);
}
.hj212-body { font-size: 11.5px; line-height: 1.6; color: var(--tx-1); background: rgba(6,17,30,.5); }
.hj212-crc, .hj212-sm3, .hj212-sig {
  font-size: 11px; word-break: break-all; color: var(--tx-1);
  padding: 6px 8px; background: rgba(6,17,30,.5); border-radius: 4px; border: 1px solid rgba(255,255,255,.06);
}
.hj212-sm3 { color: var(--brand-l); }
.hj212-sig { color: #1890FF; }
.kv-mini { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; background: rgba(6,17,30,.5); border-radius: 6px; border: 1px solid rgba(255,255,255,.06); }
.kv-mini b { font-size: 14px; color: var(--tx-0); }

/* ---------- 防篡改证据链 ---------- */
.proof-step { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: rgba(0,192,127,.06); border: 1px solid rgba(0,192,127,.14); border-radius: 6px; font-size: 12.5px; color: var(--tx-1); }
.proof-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 6px rgba(0,192,127,.6); flex: 0 0 auto; }

/* ---------- 可点击哈希 ---------- */
.hash-link { color: #1890FF; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.hash-link:hover { color: #40a9ff; text-decoration: underline; }
