@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

:root {
  --bg-0: #070C1F;
  --bg-1: #111A3A;
  --bg-2: #1A2650;
  --c-cyan: #00D4FF;
  --c-blue: #2B7FFF;
  --c-purple: #7B61FF;
  --c-green: #00E5A0;
  --c-orange: #FFB020;
  --c-red: #FF4D6D;
  --text-0: #FFFFFF;
  --text-1: #A8B8D8;
  --text-2: #6C7FA8;
  --glass: rgba(20, 32, 70, 0.55);
  --glass-border: rgba(120, 160, 255, 0.18);
  --font: 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  font-family: var(--font);
  color: var(--text-1);
  background-color: #070C1F;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    radial-gradient(ellipse at 20% -10%, rgba(43, 127, 255, 0.22), transparent 55%),
    radial-gradient(ellipse at 85% 10%, rgba(123, 97, 255, 0.20), transparent 50%),
    radial-gradient(ellipse at 50% 110%, rgba(0, 212, 255, 0.12), transparent 55%),
    url('../assets/pageBg.jpg');
  background-size: cover, cover, cover, cover, cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.glow { position: fixed; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; opacity: 0.5; }
.glow-a { width: 380px; height: 380px; top: -120px; left: 8%; background: rgba(0, 212, 255, 0.22); }
.glow-b { width: 420px; height: 420px; top: 40%; right: -140px; background: rgba(123, 97, 255, 0.20); }

.dashboard {
  position: relative; z-index: 1;
  max-width: 1920px; margin: 0 auto;
  padding: 22px 30px 30px;
}

/* ---------- 顶部标题栏 ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 6px 18px;
  border-bottom: 1px solid rgba(120, 160, 255, 0.16);
  position: relative;
}
.topbar::after {
  content: ''; position: absolute; left: 0; bottom: -1px; width: 260px; height: 2px;
  background: linear-gradient(90deg, var(--c-cyan), transparent);
  box-shadow: 0 0 14px var(--c-cyan);
}
.title-wrap { display: flex; align-items: center; gap: 16px; }
.brand-logo {
  height: 34px; width: auto; display: block; flex-shrink: 0;
  object-fit: contain; filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.25));
}
.title-mark {
  width: 6px; height: 46px; border-radius: 3px;
  background: linear-gradient(180deg, var(--c-cyan), var(--c-purple));
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.6);
}
.main-title {
  font-size: 34px; font-weight: 700; letter-spacing: 3px; line-height: 1.2;
  color: #FFFFFF;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.28);
}
.sub-title { font-size: 13px; color: var(--text-2); letter-spacing: 2px; margin-top: 4px; }
.topbar-meta { display: flex; align-items: center; gap: 14px; }
.scope-badge, .demo-badge {
  font-size: 12px; padding: 6px 14px; border-radius: 20px; letter-spacing: 1px;
  color: var(--c-cyan); border: 1px solid rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.08);
  box-shadow: inset 0 0 12px rgba(0, 212, 255, 0.08);
}
.demo-badge {
  color: var(--c-orange); border-color: rgba(255, 176, 32, 0.45);
  background: rgba(255, 176, 32, 0.1);
  box-shadow: inset 0 0 12px rgba(255, 176, 32, 0.08);
}
.meta-time { font-size: 12px; color: var(--text-2); letter-spacing: 1px; }

/* ---------- 指标卡 ---------- */
.kpi-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin: 20px 0 8px;
}
.kpi-card {
  position: relative; overflow: hidden; cursor: default;
  background: linear-gradient(145deg, rgba(26, 38, 80, 0.7), rgba(17, 26, 58, 0.55));
  border: 1px solid var(--glass-border); border-radius: 14px;
  padding: 18px 18px 16px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.kpi-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--kpi-color, var(--c-cyan)), transparent);
  opacity: 0.8;
}
.kpi-card::after {
  content: ''; position: absolute; width: 120px; height: 120px; right: -40px; top: -50px;
  border-radius: 50%; background: var(--kpi-color, var(--c-cyan)); filter: blur(45px); opacity: 0.18;
}
.kpi-card:hover {
  transform: translateY(-5px);
  border-color: rgba(120, 160, 255, 0.5);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 22px rgba(0, 212, 255, 0.12);
}
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-label { font-size: 13px; color: var(--text-1); letter-spacing: 1px; }
.kpi-icon {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  font-size: 17px; color: var(--kpi-color, var(--c-cyan));
  background: rgba(120, 160, 255, 0.1);
  border: 1px solid rgba(120, 160, 255, 0.22);
}
.kpi-value {
  font-size: 38px; font-weight: 700; line-height: 1.1; margin-top: 12px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #FFFFFF, var(--kpi-color, var(--c-cyan)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kpi-value .suffix { font-size: 18px; margin-left: 2px; }
.kpi-foot { font-size: 11px; color: var(--text-2); margin-top: 6px; letter-spacing: 0.5px; }

/* ---------- 区块 ---------- */
.section-block { margin-top: 22px; }
.section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.section-bar {
  width: 4px; height: 18px; border-radius: 2px;
  background: linear-gradient(180deg, var(--c-cyan), var(--c-purple));
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}
.section-title { font-size: 19px; font-weight: 600; color: var(--text-0); letter-spacing: 1px; }
.section-desc { font-size: 12px; color: var(--text-2); margin-left: 6px; }
.dept-filter { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.filter-chip {
  font-size: 11px; padding: 4px 11px; border-radius: 14px; cursor: pointer;
  color: var(--text-1); background: rgba(120, 160, 255, 0.08);
  border: 1px solid rgba(120, 160, 255, 0.2); transition: all 0.2s ease;
  font-family: var(--font);
}
.filter-chip:hover { color: #fff; border-color: var(--c-cyan); background: rgba(0, 212, 255, 0.16); }
.filter-chip.active { color: #04122A; font-weight: 600; border-color: var(--c-cyan); background: linear-gradient(120deg, var(--c-cyan), #6FE0FF); }

.map-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 16px; }
.analysis-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; }

.panel {
  position: relative;
  background: linear-gradient(150deg, rgba(26, 38, 80, 0.5), rgba(13, 21, 48, 0.5));
  border: 1px solid var(--glass-border); border-radius: 14px;
  padding: 14px 16px 10px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.panel-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-0); font-weight: 600; letter-spacing: 0.5px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(120, 160, 255, 0.1);
}
.panel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-cyan); box-shadow: 0 0 10px var(--c-cyan);
}
.chart { width: 100%; height: 340px; }
.map-grid .chart { height: 356px; }
.analysis-grid .chart { height: 300px; }

/* ---------- 口径说明 ---------- */
.data-note {
  margin-top: 20px; padding: 12px 16px; border-radius: 10px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-2); line-height: 1.6;
  background: rgba(17, 26, 58, 0.45); border: 1px solid rgba(120, 160, 255, 0.12);
}
.note-tag {
  font-size: 11px; padding: 3px 10px; border-radius: 10px; white-space: nowrap;
  color: var(--c-orange); border: 1px solid rgba(255, 176, 32, 0.35);
  background: rgba(255, 176, 32, 0.08);
}
.note-source { margin-left: auto; color: var(--text-2); white-space: nowrap; }

/* ---------- 下钻面板 ---------- */
.drilldown-overlay {
  position: fixed; inset: 0; z-index: 40; background: rgba(3, 7, 20, 0.6);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.drilldown-overlay.show { opacity: 1; visibility: visible; }
.drilldown-panel {
  position: fixed; top: 0; right: 0; height: 100%; width: 460px; max-width: 92vw; z-index: 50;
  background: linear-gradient(160deg, #121D42 0%, #0A1030 100%);
  border-left: 1px solid rgba(0, 212, 255, 0.3);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6), -1px 0 30px rgba(0, 212, 255, 0.1);
  transform: translateX(105%); transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex; flex-direction: column;
}
.drilldown-panel.show { transform: translateX(0); }
.dd-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 24px 24px 16px; border-bottom: 1px solid rgba(120, 160, 255, 0.15);
}
.dd-title {
  font-size: 24px; font-weight: 700; color: #fff; letter-spacing: 2px;
  background: linear-gradient(100deg, #fff, var(--c-cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dd-subtitle { font-size: 12px; color: var(--text-2); margin-top: 5px; letter-spacing: 0.5px; }
.dd-close {
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer; flex-shrink: 0;
  background: rgba(120, 160, 255, 0.1); border: 1px solid rgba(120, 160, 255, 0.25);
  color: var(--text-1); font-size: 22px; line-height: 1; transition: all 0.2s ease;
}
.dd-close:hover { color: #fff; background: var(--c-red); border-color: var(--c-red); }
.dd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px 24px 6px; }
.dd-stat {
  background: rgba(120, 160, 255, 0.07); border: 1px solid rgba(120, 160, 255, 0.16);
  border-radius: 10px; padding: 12px 10px; text-align: center;
}
.dd-stat-num { font-size: 24px; font-weight: 700; color: var(--c-cyan); font-variant-numeric: tabular-nums; }
.dd-stat-label { font-size: 11px; color: var(--text-2); margin-top: 3px; }
.dd-body { flex: 1; overflow-y: auto; padding: 14px 24px 30px; }
.dd-body::-webkit-scrollbar { width: 6px; }
.dd-body::-webkit-scrollbar-thumb { background: rgba(120, 160, 255, 0.3); border-radius: 3px; }
.dd-subhead {
  font-size: 13px; color: var(--text-0); font-weight: 600; letter-spacing: 1px;
  margin: 18px 0 10px; display: flex; align-items: center; gap: 8px;
}
.dd-subhead::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--c-purple); }
.tag {
  display: inline-block; font-size: 11px; padding: 3px 9px; border-radius: 10px; margin: 3px 5px 3px 0;
  background: rgba(0, 212, 255, 0.1); color: var(--c-cyan); border: 1px solid rgba(0, 212, 255, 0.25);
}
.tag.purple { background: rgba(123, 97, 255, 0.12); color: #B7A6FF; border-color: rgba(123, 97, 255, 0.3); }
.dd-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 9px 0; border-bottom: 1px dashed rgba(120, 160, 255, 0.14); font-size: 12.5px;
}
.dd-row-name { color: var(--text-1); flex: 1; line-height: 1.5; }
.dd-row-app { color: var(--c-cyan); white-space: nowrap; font-size: 11.5px; }
.std-pill { font-size: 10px; padding: 2px 8px; border-radius: 9px; white-space: nowrap; }
.std-yes { color: var(--c-green); background: rgba(0, 229, 160, 0.12); border: 1px solid rgba(0, 229, 160, 0.3); }
.std-no { color: var(--c-orange); background: rgba(255, 176, 32, 0.1); border: 1px solid rgba(255, 176, 32, 0.28); }

/* ---------- 响应式 ---------- */
@media (max-width: 1500px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .analysis-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .map-grid { grid-template-columns: 1fr; }
  .analysis-grid { grid-template-columns: 1fr; }
  .main-title { font-size: 26px; }
  .dept-filter { margin-left: 0; }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.panel, .kpi-card, .section-block { animation: fadeUp 0.6s ease both; }
.kpi-card:nth-child(1) { animation-delay: 0.05s; }
.kpi-card:nth-child(2) { animation-delay: 0.1s; }
.kpi-card:nth-child(3) { animation-delay: 0.15s; }
.kpi-card:nth-child(4) { animation-delay: 0.2s; }
.kpi-card:nth-child(5) { animation-delay: 0.25s; }
.kpi-card:nth-child(6) { animation-delay: 0.3s; }

/* ============================================================
 * 多 Tab 统一驾驶舱
 * ============================================================ */
.tab-nav {
  display: flex; align-items: center; gap: 8px; position: relative; flex-shrink: 0;
  padding: 4px; border-radius: 12px;
  background: rgba(120, 160, 255, 0.06); border: 1px solid rgba(120, 160, 255, 0.16);
}
.tab-btn {
  position: relative; font-family: var(--font); cursor: pointer;
  font-size: 14px; font-weight: 600; letter-spacing: 1px; color: var(--text-2);
  padding: 8px 22px; background: transparent; border: 1px solid transparent; border-radius: 9px;
  transition: all 0.25s ease;
}
.tab-btn:hover { color: #fff; background: rgba(120, 160, 255, 0.1); }
.tab-btn.active {
  color: #04122A; font-weight: 700;
  background: linear-gradient(120deg, var(--c-cyan), #6FE0FF);
  border-color: var(--c-cyan);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.35);
}
.tab-view { display: none; }
.tab-view.active { display: block; animation: fadeUp 0.5s ease both; }

/* ---------- 经营总览指标带 ---------- */
.biz-kpi-card { cursor: pointer; }
.biz-kpi-card:hover { transform: translateY(-5px); }
.biz-kpi-card.selected { border-color: var(--c-cyan); box-shadow: 0 0 22px rgba(0, 212, 255, 0.22), inset 0 0 18px rgba(0, 212, 255, 0.06); }
.kpi-delta { font-size: 11px; margin-left: 6px; }
.kpi-delta.up { color: var(--c-green); }
.kpi-delta.down { color: var(--c-red); }
.kpi-target-bar { height: 3px; border-radius: 2px; margin-top: 9px; background: rgba(120, 160, 255, 0.16); overflow: hidden; }
.kpi-target-fill { height: 100%; border-radius: 2px; background: var(--kpi-color, var(--c-cyan)); box-shadow: 0 0 8px var(--kpi-color, var(--c-cyan)); transition: width 1s ease; }

/* ---------- 六大价值流全景 ---------- */
.stream-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stream-card {
  position: relative; overflow: hidden; cursor: pointer;
  background: linear-gradient(150deg, rgba(26, 38, 80, 0.6), rgba(13, 21, 48, 0.5));
  border: 1px solid var(--glass-border); border-radius: 14px; padding: 16px 18px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.stream-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--stream-color, var(--c-cyan)), transparent);
}
.stream-card::after {
  content: ''; position: absolute; width: 100px; height: 100px; right: -30px; top: -40px;
  border-radius: 50%; background: var(--stream-color, var(--c-cyan)); filter: blur(40px); opacity: 0.15;
}
.stream-card:hover, .stream-card.selected {
  transform: translateY(-4px); border-color: rgba(120, 160, 255, 0.5);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 212, 255, 0.1);
}
.stream-top { display: flex; align-items: center; justify-content: space-between; }
.stream-code {
  font-size: 22px; font-weight: 700; letter-spacing: 1px;
  color: var(--stream-color, var(--c-cyan)); text-shadow: 0 0 18px var(--stream-color, var(--c-cyan));
}
.stream-name { font-size: 15px; color: var(--text-0); font-weight: 600; margin-top: 2px; }
.stream-en { font-size: 10px; color: var(--text-2); letter-spacing: 0.6px; margin-top: 2px; }
.stream-desc { font-size: 11.5px; color: var(--text-2); line-height: 1.6; margin-top: 10px; min-height: 36px; }
.stream-stats { display: flex; gap: 16px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(120, 160, 255, 0.12); }
.stream-stat-num { font-size: 16px; font-weight: 700; color: var(--text-0); }
.stream-stat-label { font-size: 10px; color: var(--text-2); margin-top: 1px; }
.stream-rate-ring { position: absolute; right: 16px; bottom: 14px; width: 46px; height: 46px; }
.stream-status { position: absolute; top: 14px; right: 14px; font-size: 10px; padding: 2px 8px; border-radius: 9px; }

/* ---------- 指标树 ---------- */
.tree-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.dim-filter { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.dim-chip {
  font-size: 11px; padding: 4px 11px; border-radius: 14px; cursor: pointer; font-family: var(--font);
  color: var(--text-1); background: rgba(120, 160, 255, 0.08); border: 1px solid rgba(120, 160, 255, 0.2);
  transition: all 0.2s ease;
}
.dim-chip:hover { color: #fff; }
.dim-chip.active { color: #04122A; font-weight: 600; }
.metric-tree { max-height: 340px; overflow-y: auto; padding: 6px 2px 2px; }
.metric-tree::-webkit-scrollbar { width: 6px; }
.metric-tree::-webkit-scrollbar-thumb { background: rgba(120, 160, 255, 0.3); border-radius: 3px; }
.metric-group-title {
  font-size: 12px; color: var(--text-0); font-weight: 600; letter-spacing: 0.5px;
  margin: 12px 0 6px; display: flex; align-items: center; gap: 8px;
}
.metric-group-title .g-code {
  font-size: 10px; padding: 1px 7px; border-radius: 8px; color: var(--c-cyan);
  border: 1px solid rgba(0, 212, 255, 0.35); background: rgba(0, 212, 255, 0.08);
}
.metric-row {
  position: relative; display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: center;
  padding: 8px 10px; margin: 3px 0; border-radius: 8px; cursor: help;
  background: rgba(120, 160, 255, 0.05); border: 1px solid rgba(120, 160, 255, 0.1);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.metric-row:hover { background: rgba(120, 160, 255, 0.12); border-color: rgba(120, 160, 255, 0.3); }
.metric-name { font-size: 12.5px; color: var(--text-1); display: flex; align-items: center; gap: 8px; }
.metric-dim-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 8px currentColor; }
.metric-value { font-size: 14px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric-value .u { font-size: 10px; color: var(--text-2); font-weight: 400; margin-left: 2px; }
.metric-bar { width: 90px; }
.metric-bar-track { height: 4px; border-radius: 2px; background: rgba(120, 160, 255, 0.16); overflow: hidden; }
.metric-bar-fill { height: 100%; border-radius: 2px; }
.metric-status { font-size: 10px; padding: 2px 8px; border-radius: 9px; white-space: nowrap; }
.st-达标 { color: var(--c-green); background: rgba(0, 229, 160, 0.12); border: 1px solid rgba(0, 229, 160, 0.3); }
.st-预警 { color: var(--c-orange); background: rgba(255, 176, 32, 0.1); border: 1px solid rgba(255, 176, 32, 0.3); }
.st-落后 { color: var(--c-red); background: rgba(255, 77, 109, 0.1); border: 1px solid rgba(255, 77, 109, 0.3); }

/* ---------- 来源追溯浮层 ---------- */
.trace-pop {
  position: fixed; z-index: 80; pointer-events: none; opacity: 0; visibility: hidden;
  max-width: 320px; padding: 12px 14px; border-radius: 10px; font-size: 12px; line-height: 1.7;
  background: rgba(10, 18, 44, 0.97); border: 1px solid rgba(0, 212, 255, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); color: var(--text-1);
  transition: opacity 0.15s ease;
}
.trace-pop.show { opacity: 1; visibility: visible; }
.trace-pop .tp-title { font-size: 13px; color: #fff; font-weight: 600; margin-bottom: 6px; }
.trace-pop .tp-row { color: var(--text-2); }
.trace-pop .tp-row b { color: var(--c-cyan); font-weight: 500; }
.trace-pop .tp-badge { display: inline-block; margin-top: 7px; font-size: 10px; padding: 2px 8px; border-radius: 9px; color: var(--c-orange); border: 1px solid rgba(255, 176, 32, 0.4); background: rgba(255, 176, 32, 0.08); }
.trace-pop { max-width: 360px; }
.trace-pop .tp-formula {
  margin-top: 8px; padding: 7px 9px; border-radius: 7px; font-size: 11px; line-height: 1.6;
  color: var(--c-green); background: rgba(0, 229, 160, 0.07); border: 1px solid rgba(0, 229, 160, 0.22);
}
.trace-pop .tp-formula .tpf-label {
  display: block; font-size: 10px; letter-spacing: 0.5px; color: var(--text-2); margin-bottom: 3px;
}
.trace-pop [data-trace], [data-trace] { cursor: help; }
.kpi-card[data-trace], .stream-card [data-trace], .decision-item[data-trace], .detail-stat[data-trace] { cursor: help; }

/* ---------- 决策专块 ---------- */
.decision-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.decision-list { max-height: 330px; overflow-y: auto; padding: 6px 2px; }
.decision-list::-webkit-scrollbar { width: 6px; }
.decision-list::-webkit-scrollbar-thumb { background: rgba(120, 160, 255, 0.3); border-radius: 3px; }
.decision-item {
  position: relative; padding: 11px 12px 11px 16px; margin: 8px 0; border-radius: 9px;
  background: rgba(120, 160, 255, 0.05); border: 1px solid rgba(120, 160, 255, 0.12);
  border-left: 3px solid var(--pri-color, var(--c-orange));
}
.decision-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.decision-title { font-size: 13px; color: #fff; font-weight: 600; }
.pri-pill { font-size: 10px; padding: 1px 8px; border-radius: 9px; font-weight: 600; }
.pri-高 { color: var(--c-red); background: rgba(255, 77, 109, 0.14); border: 1px solid rgba(255, 77, 109, 0.35); }
.pri-中 { color: var(--c-orange); background: rgba(255, 176, 32, 0.12); border: 1px solid rgba(255, 176, 32, 0.3); }
.decision-stream { font-size: 10px; color: var(--c-cyan); border: 1px solid rgba(0, 212, 255, 0.3); border-radius: 8px; padding: 1px 7px; }
.decision-status { font-size: 10px; color: var(--text-2); margin-left: auto; }
.decision-reason { font-size: 11.5px; color: var(--text-2); margin-top: 7px; line-height: 1.6; }
.decision-advice { font-size: 11.5px; color: var(--c-green); margin-top: 5px; line-height: 1.6; }
.decision-advice::before { content: '▸ 建议：'; color: var(--text-2); }
.flywheel-panel .chart { height: 330px; }

/* ---------- 五层模型 ---------- */
.layer-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.layer-item {
  position: relative; padding: 16px 14px; text-align: center;
  background: linear-gradient(160deg, rgba(26, 38, 80, 0.5), rgba(13, 21, 48, 0.4));
  border: 1px solid var(--glass-border); border-right: none;
}
.layer-item:first-child { border-radius: 12px 0 0 12px; }
.layer-item:last-child { border-radius: 0 12px 12px 0; border-right: 1px solid var(--glass-border); }
.layer-item::after {
  content: '›'; position: absolute; right: -7px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--c-cyan); z-index: 2; text-shadow: 0 0 10px var(--c-cyan);
}
.layer-item:last-child::after { display: none; }
.layer-name { font-size: 14px; color: #fff; font-weight: 600; }
.layer-desc { font-size: 10.5px; color: var(--text-2); margin-top: 6px; line-height: 1.5; }

@media (max-width: 1500px) {
  .stream-grid { grid-template-columns: repeat(2, 1fr); }
  .tree-layout, .decision-layout { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .stream-grid { grid-template-columns: 1fr; }
  .layer-strip { grid-template-columns: 1fr; }
  .layer-item { border-right: 1px solid var(--glass-border); border-radius: 0 !important; }
  .layer-item::after { display: none; }
  .tab-hint { display: none; }
}

/* ============================================================
 * 一屏驾驶舱布局（1920×1080 无垂直滚动）
 * ============================================================ */
html, body { height: 100%; overflow: hidden; }
.dashboard {
  height: 100vh; display: flex; flex-direction: column;
  padding: 12px 24px 12px; overflow: hidden;
}
.topbar { flex-shrink: 0; padding: 6px 4px 10px; }
.title-mark { height: 38px; }
.main-title { font-size: 28px; }
.sub-title { font-size: 11px; margin-top: 2px; }
.tab-nav { margin-top: 0; }
.tab-btn { padding: 8px 20px; font-size: 14px; }
.tab-view { flex: 1; min-height: 0; overflow: hidden; }
#view-business.tab-view.active, #view-dept.tab-view.active, #view-idea.tab-view.active { display: flex; flex-direction: column; }

/* ---------- 通用小标题 ---------- */
.mini-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-shrink: 0; }
.overview-period { justify-content: flex-end; position: relative; }
.period-trigger {
  font-family: var(--font); cursor: pointer; font-size: 11px; letter-spacing: 0.5px;
  color: var(--text-1); padding: 4px 10px; border-radius: 7px;
  background: rgba(120, 160, 255, 0.08); border: 1px solid rgba(120, 160, 255, 0.22);
  transition: all 0.2s ease;
}
.period-trigger:hover { color: #fff; border-color: var(--c-cyan); background: rgba(0, 212, 255, 0.12); }
.period-trigger.primary { color: var(--c-cyan); border-color: rgba(0, 212, 255, 0.4); background: rgba(0, 212, 255, 0.08); }
.period-trigger .caret { font-size: 9px; margin-left: 3px; opacity: 0.8; }
.period-menu {
  position: absolute; z-index: 60; min-width: 130px; max-height: 300px; overflow-y: auto;
  padding: 5px; border-radius: 9px;
  background: rgba(10, 18, 44, 0.98); border: 1px solid rgba(0, 212, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.period-menu[hidden] { display: none; }
.period-menu::-webkit-scrollbar { width: 5px; }
.period-menu::-webkit-scrollbar-thumb { background: rgba(120, 160, 255, 0.3); border-radius: 3px; }
.period-item {
  display: block; width: 100%; text-align: left; cursor: pointer; font-family: var(--font);
  font-size: 12px; color: var(--text-1); padding: 7px 11px; border: none; border-radius: 6px; background: transparent;
  transition: all 0.15s ease;
}
.period-item:hover { color: #fff; background: rgba(120, 160, 255, 0.14); }
.period-item.active { color: #04122A; font-weight: 700; background: linear-gradient(120deg, var(--c-cyan), #6FE0FF); }
.mini-title { font-size: 16px; font-weight: 600; color: var(--text-0); letter-spacing: 1px; }
.mini-desc { font-size: 11px; color: var(--text-2); margin-left: 4px; letter-spacing: 0.5px; }

/* ---------- 主Tab：全景/详情视图切换 ---------- */
.biz-view { display: none !important; flex: 1; min-height: 0; flex-direction: column; gap: 10px; }
.biz-view.active { display: flex !important; }

/* L1 经营总览 */
.overview-l1 { flex-shrink: 0; }
.kpi-grid.compact { grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 0; }
.kpi-grid.compact .kpi-card { padding: 11px 13px 10px; border-radius: 11px; }
.kpi-grid.compact .kpi-label { font-size: 12px; }
.kpi-grid.compact .kpi-icon { width: 27px; height: 27px; font-size: 14px; }
.kpi-grid.compact .kpi-value { font-size: 29px; margin-top: 7px; }
.kpi-grid.compact .kpi-value .suffix { font-size: 12px; }
.kpi-grid.compact .kpi-target-bar { margin-top: 6px; height: 3px; }
.kpi-grid.compact .kpi-foot { font-size: 10px; margin-top: 4px; }

/* L2 价值流 + 决策 */
.overview-l2 { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.stream-section, .decision-section { display: flex; flex-direction: column; min-height: 0; }
.stream-grid { flex: 1; min-height: 0; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 12px; }
.stream-card { padding: 13px 14px; }
.stream-code { font-size: 20px; }
.stream-name { font-size: 14px; }
.stream-en { font-size: 9px; }
.stream-desc { font-size: 11px; min-height: 0; margin-top: 8px; }
.stream-stats { margin-top: 9px; padding-top: 8px; }
.stream-stat-num { font-size: 14px; }
.stream-rate-ring { width: 67px; height: 67px; right: 12px; top: 10px; }
.stream-status { top: auto; bottom: 12px; right: 12px; }
.decision-list.compact { flex: 1; min-height: 0; max-height: none; overflow-y: auto; padding: 0 2px; }
.decision-list.compact::-webkit-scrollbar { width: 5px; }
.decision-list.compact::-webkit-scrollbar-thumb { background: rgba(120,160,255,.3); border-radius: 3px; }
.decision-list.compact .decision-item { padding: 8px 10px 8px 12px; margin: 6px 0; }
.decision-list.compact .decision-title { font-size: 12px; }
.decision-list.compact .decision-reason { font-size: 10.5px; margin-top: 5px; line-height: 1.45; }
.decision-list.compact .decision-advice { font-size: 10.5px; margin-top: 3px; line-height: 1.45; }

/* L3 飞轮 + 五层 */
.overview-l3 { flex-shrink: 0; height: 172px; display: grid; grid-template-columns: 0.55fr 2.45fr; gap: 14px; }
.fly-panel, .layer-panel { display: flex; flex-direction: column; min-height: 0; padding: 10px 14px 8px; }
.fly-panel .panel-head, .layer-panel .panel-head { padding-bottom: 5px; font-size: 12px; }
.chart.small { width: 100%; height: auto; flex: 1; min-height: 0; }
.layer-strip { flex: 1; min-height: 0; align-items: stretch; }
.layer-item { padding: 10px 10px; display: flex; flex-direction: column; justify-content: center; white-space: nowrap; }
.layer-name { font-size: 12px; }
.layer-desc { font-size: 10px; margin-top: 4px; white-space: nowrap; }

/* ---------- 域详情视图 ---------- */
.detail-head {
  flex-shrink: 0; display: flex; align-items: center; gap: 18px;
  padding: 4px 4px 10px; border-bottom: 1px solid rgba(120,160,255,.16);
}
.back-btn {
  font-family: var(--font); cursor: pointer; font-size: 13px; color: var(--c-cyan);
  padding: 7px 14px; border-radius: 8px; white-space: nowrap;
  background: rgba(0,212,255,.08); border: 1px solid rgba(0,212,255,.35);
  transition: all .2s ease;
}
.back-btn:hover { color: #04122A; background: var(--c-cyan); }
.detail-heading { display: flex; align-items: center; gap: 12px; }
.detail-code {
  font-size: 24px; font-weight: 700; letter-spacing: 1px; color: var(--c-purple);
  text-shadow: 0 0 16px var(--c-purple);
}
.detail-title { font-size: 18px; font-weight: 600; color: #fff; }
.detail-desc { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.detail-stats { margin-left: auto; display: flex; gap: 10px; }
.detail-stat { text-align: center; padding: 6px 14px; border-radius: 9px; background: rgba(120,160,255,.07); border: 1px solid rgba(120,160,255,.16); }
.detail-stat-num { font-size: 19px; font-weight: 700; color: var(--c-cyan); }
.detail-stat-label { font-size: 10px; color: var(--text-2); margin-top: 1px; }
.detail-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; padding-top: 10px; }
.detail-left { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.detail-metric-panel, .detail-trend-panel, .detail-decision-panel {
  display: flex; flex-direction: column; min-height: 0;
}
.detail-trend-panel { flex: 0 0 40%; }
.detail-metric-panel { flex: 1; }
.detail-decision-panel { height: 100%; }
.detail-metric-panel .panel-head { flex-wrap: wrap; }
.detail-metric-panel .metric-tree { flex: 1; min-height: 0; max-height: none; padding-top: 4px; }
.detail-trend-panel .chart.small { flex: 1; min-height: 0; }
.detail-decision-panel .decision-list.mini { flex: 1; min-height: 0; overflow-y: auto; padding: 0 2px; }
.detail-decision-panel .decision-list.mini::-webkit-scrollbar { width: 5px; }
.detail-decision-panel .decision-list.mini::-webkit-scrollbar-thumb { background: rgba(120,160,255,.3); border-radius: 3px; }
.detail-decision-panel .decision-item { padding: 8px 10px 8px 12px; margin: 6px 0; }

/* ---------- 副Tab：部门地图压缩一屏 ---------- */
.dept-kpi { flex-shrink: 0; }
.dept-map-section { flex: 1.05; min-height: 0; display: flex; flex-direction: column; }
.dept-analysis-section { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dept-map-section .mini-head, .dept-analysis-section .mini-head { margin-bottom: 6px; }
.dept-map-section .dept-filter { margin-left: auto; }
.map-grid.compact { flex: 1; min-height: 0; grid-template-columns: .85fr 1.15fr; gap: 12px; }
.analysis-grid.compact { flex: 1; min-height: 0; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.map-grid.compact .panel, .analysis-grid.compact .panel { display: flex; flex-direction: column; min-height: 0; padding: 10px 12px 8px; }
.map-grid.compact .panel .panel-head, .analysis-grid.compact .panel .panel-head { padding-bottom: 5px; font-size: 12px; flex-shrink: 0; }
.map-grid.compact .panel .chart.mid, .analysis-grid.compact .panel .chart.mid {
  height: auto; flex: 1; min-height: 0; width: 100%;
}
.compact-note { flex-shrink: 0; margin-top: 8px; padding: 7px 12px; font-size: 11px; }

/* 详情维度筛选紧凑 */
.dim-filter .dim-chip { font-size: 10px; padding: 3px 9px; }
.metric-tree .metric-row { padding: 6px 9px; }

/* 大屏一屏优先：覆盖旧断点在大屏下的影响 */
@media (min-width: 1501px) {
  .stream-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .tree-layout, .decision-layout { grid-template-columns: 1fr 1fr; }
}

/* 小屏兜底：允许滚动避免内容被裁切 */
@media (max-height: 780px) {
  html, body { overflow: auto; }
  .dashboard { height: auto; min-height: 100vh; }
  .overview-l3 { height: 150px; }
}

/* ============================================================
 * 意见箱 · 项目开发需求收集表
 * ============================================================ */
.idea-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 6px 4px 12px; flex-shrink: 0;
  border-bottom: 1px solid rgba(120, 160, 255, 0.16);
}
.idea-meta-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.idea-title { font-size: 20px; font-weight: 600; color: #fff; letter-spacing: 1px; }
.idea-badge {
  font-size: 11px; color: var(--text-1); padding: 4px 11px; border-radius: 12px;
  background: rgba(120, 160, 255, 0.08); border: 1px solid rgba(120, 160, 255, 0.2);
}
.export-btn {
  font-family: var(--font); cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--c-cyan); padding: 8px 16px; border-radius: 8px; white-space: nowrap;
  background: rgba(0, 212, 255, 0.08); border: 1px solid rgba(0, 212, 255, 0.4);
  transition: all 0.2s ease;
}
.export-btn:hover { color: #04122A; background: var(--c-cyan); box-shadow: 0 0 16px rgba(0, 212, 255, 0.4); }
.idea-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; padding-top: 12px; }
.idea-form-panel, .idea-history-panel { display: flex; flex-direction: column; min-height: 0; padding: 12px 16px; }
.idea-form-panel .panel-head, .idea-history-panel .panel-head { padding-bottom: 8px; flex-shrink: 0; }
.idea-form { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.idea-form::-webkit-scrollbar { width: 5px; }
.idea-form::-webkit-scrollbar-thumb { background: rgba(120, 160, 255, 0.3); border-radius: 3px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-item { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--text-1); }
.form-item b { color: var(--c-red); font-weight: 400; }
.form-item.full { width: 100%; }
.form-item input, .form-item textarea {
  font-family: var(--font); font-size: 12px; color: #fff;
  width: 100%; padding: 8px 10px; border-radius: 7px; resize: none;
  background: rgba(10, 18, 44, 0.6); border: 1px solid rgba(120, 160, 255, 0.22);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-item input:focus, .form-item textarea:focus {
  outline: none; border-color: var(--c-cyan); box-shadow: 0 0 12px rgba(0, 212, 255, 0.22);
}
.form-item input::placeholder, .form-item textarea::placeholder { color: var(--text-2); }
.form-item input:disabled { color: var(--text-2); background: rgba(120, 160, 255, 0.06); }
.form-actions { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 4px; }
.form-hint { font-size: 11px; color: var(--text-2); }
.submit-btn {
  font-family: var(--font); cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: 1px;
  color: #04122A; padding: 9px 26px; border-radius: 8px; border: 1px solid var(--c-cyan);
  background: linear-gradient(120deg, var(--c-cyan), #6FE0FF);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.3); transition: all 0.2s ease;
}
.submit-btn:hover { filter: brightness(1.1); box-shadow: 0 0 26px rgba(0, 212, 255, 0.5); }
.idea-filter { margin-left: auto; display: flex; gap: 5px; flex-wrap: wrap; }
.idea-filter .filter-chip { font-size: 10px; padding: 3px 9px; }
.history-wrap { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 2px; }
.history-wrap::-webkit-scrollbar { width: 5px; }
.history-wrap::-webkit-scrollbar-thumb { background: rgba(120, 160, 255, 0.3); border-radius: 3px; }
.idea-empty {
  height: 100%; min-height: 220px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; color: var(--text-2); font-size: 13px;
}
.idea-empty .empty-icon { font-size: 40px; color: rgba(0, 212, 255, 0.4); margin-bottom: 4px; }
.idea-empty .empty-sub { font-size: 11px; color: var(--text-2); }
.history-row {
  padding: 10px 11px; margin: 7px 0; border-radius: 9px; cursor: pointer;
  background: rgba(120, 160, 255, 0.05); border: 1px solid rgba(120, 160, 255, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.history-row:hover { background: rgba(120, 160, 255, 0.1); border-color: rgba(120, 160, 255, 0.3); }
.hr-top { display: flex; align-items: center; gap: 9px; }
.hr-id { font-size: 11px; color: var(--c-cyan); font-weight: 700; }
.hr-name { font-size: 12.5px; color: #fff; font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-status { font-size: 10px; padding: 2px 8px; border-radius: 9px; border: 1px solid; white-space: nowrap; }
.hr-meta { display: flex; gap: 14px; margin-top: 6px; font-size: 10.5px; color: var(--text-2); flex-wrap: wrap; }
.hr-desc { font-size: 11.5px; color: var(--text-1); margin-top: 6px; line-height: 1.5; }
.hr-detail {
  margin-top: 9px; padding-top: 8px; border-top: 1px dashed rgba(120, 160, 255, 0.18);
  font-size: 11px; color: var(--text-2); line-height: 1.7;
}
.hr-detail[hidden] { display: none; }
.hr-status-edit { margin-top: 5px; }
.mini-status {
  font-family: var(--font); cursor: pointer; font-size: 10px; padding: 2px 8px; margin-right: 5px;
  color: var(--text-2); background: rgba(120, 160, 255, 0.08); border: 1px solid rgba(120, 160, 255, 0.2);
  border-radius: 9px; transition: all 0.15s ease;
}
.mini-status:hover { color: #fff; }
.mini-status.cur { color: #04122A; font-weight: 600; background: var(--c-cyan); border-color: var(--c-cyan); }

/* 意见箱导入/导出按钮组 */
.idea-actions { display: flex; align-items: center; gap: 8px; }
.import-btn {
  font-family: var(--font); cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--c-green); padding: 8px 16px; border-radius: 8px; white-space: nowrap;
  background: rgba(0, 229, 160, 0.08); border: 1px solid rgba(0, 229, 160, 0.4);
  transition: all 0.2s ease;
}
.import-btn:hover { color: #04122A; background: var(--c-green); box-shadow: 0 0 16px rgba(0, 229, 160, 0.4); }

/* 意见箱三阶段时间轴 */
.stage-timeline {
  display: flex; align-items: flex-start; gap: 0; margin: 12px 0 6px;
  padding: 10px 6px; border-radius: 8px;
  background: rgba(10, 18, 44, 0.5); border: 1px solid rgba(120, 160, 255, 0.12);
}
.stage-node { flex: 0 0 auto; width: 30%; display: flex; flex-direction: column; align-items: center; position: relative; }
.stage-dot {
  width: 13px; height: 13px; border-radius: 50%; margin-bottom: 7px;
  background: rgba(120, 160, 255, 0.18); border: 2px solid rgba(120, 160, 255, 0.4);
}
.stage-node.reached .stage-dot { background: var(--c-blue); border-color: var(--c-blue); box-shadow: 0 0 10px rgba(43, 127, 255, 0.6); }
.stage-node.current .stage-dot { background: var(--c-green); border-color: var(--c-green); box-shadow: 0 0 14px rgba(0, 229, 160, 0.75); }
.stage-info { text-align: center; }
.stage-label { font-size: 11px; color: var(--text-2); font-weight: 600; }
.stage-node.reached .stage-label { color: var(--text-1); }
.stage-node.current .stage-label { color: var(--c-green); }
.stage-when { font-size: 9.5px; color: var(--text-2); margin-top: 3px; line-height: 1.4; }
.stage-by { font-size: 9.5px; color: var(--text-2); margin-top: 2px; line-height: 1.4; }
.stage-connector { flex: 1; height: 2px; margin-top: 6px; background: rgba(120, 160, 255, 0.18); }
.stage-connector.done { background: linear-gradient(90deg, var(--c-blue), var(--c-green)); }
.hr-stage-edit { margin-top: 9px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11px; color: var(--text-2); }
.hr-actor { display: inline-flex; }
.stage-actor {
  font-family: var(--font); font-size: 10.5px; color: #fff; width: 108px; padding: 4px 8px;
  border-radius: 6px; background: rgba(10, 18, 44, 0.6); border: 1px solid rgba(120, 160, 255, 0.22);
}
.stage-actor:focus { outline: none; border-color: var(--c-cyan); box-shadow: 0 0 10px rgba(0, 212, 255, 0.2); }
.stage-actor::placeholder { color: var(--text-2); }

/* 意见箱详情/审批面板 */
.history-row.selected { border-color: var(--c-cyan); background: rgba(0, 212, 255, 0.09); box-shadow: inset 3px 0 0 var(--c-cyan); }
.back-form-btn {
  margin-left: auto; font-family: var(--font); cursor: pointer; font-size: 11px; color: var(--c-cyan);
  padding: 4px 10px; border-radius: 7px; background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.35); transition: all .2s ease;
}
.back-form-btn:hover { color: #04122A; background: var(--c-cyan); }
.idea-detail-panel { display: flex; flex-direction: column; min-height: 0; }
.idea-detail-panel[hidden], .idea-form-panel[hidden] { display: none; }
.detail-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 4px; }
.detail-scroll::-webkit-scrollbar { width: 5px; }
.detail-scroll::-webkit-scrollbar-thumb { background: rgba(120, 160, 255, .3); border-radius: 3px; }
.df-head { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(120, 160, 255, .14); }
.df-id { font-size: 16px; font-weight: 700; color: var(--c-cyan); }
.df-fields { margin-top: 8px; }
.df-row { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px dashed rgba(120, 160, 255, .1); font-size: 11.5px; }
.df-label { color: var(--text-2); min-width: 88px; flex-shrink: 0; }
.df-value { color: var(--text-1); flex: 1; word-break: break-all; }
.df-desc-row .df-value { line-height: 1.6; }
.df-approval, .df-logs { margin-top: 12px; padding-top: 8px; border-top: 1px solid rgba(120, 160, 255, .14); }
.df-section-title { font-size: 12px; color: var(--text-0); font-weight: 600; margin-bottom: 8px; }
.df-approval .form-item { margin-bottom: 8px; }
.df-approval textarea { min-height: 42px; }
.df-stage-btns { display: flex; gap: 7px; margin-top: 6px; }
.df-stage-btns .mini-status { font-size: 11px; padding: 5px 12px; }
.df-hint { font-size: 10.5px; color: var(--text-2); margin-top: 7px; }
.df-log { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; font-size: 11px; color: var(--text-2); padding: 6px 0; border-bottom: 1px dashed rgba(120, 160, 255, .1); }
.df-log-stage { font-weight: 600; }
.df-log-opinion { flex-basis: 100%; color: var(--text-1); padding-left: 2px; }
.stage-opinion { font-size: 9px; color: var(--text-1); margin-top: 3px; line-height: 1.35; word-break: break-all; }

.copy-form-btn {
  margin-left: 6px; font-family: var(--font); cursor: pointer; font-size: 11px; color: var(--c-purple);
  padding: 4px 10px; border-radius: 7px; background: rgba(123, 97, 255, 0.1);
  border: 1px solid rgba(123, 97, 255, 0.4); transition: all .2s ease;
}
.copy-form-btn:hover { color: #04122A; background: var(--c-purple); box-shadow: 0 0 14px rgba(123, 97, 255, 0.45); }

/* 详情面板可编辑字段与保存修改 */
.df-section-title { margin-top: 10px; }
.df-field { margin-bottom: 7px; }
.df-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; }
.df-field input, .df-field textarea {
  font-family: var(--font); font-size: 11.5px; color: #fff; width: 100%; padding: 6px 8px;
  border-radius: 6px; background: rgba(10, 18, 44, 0.55); border: 1px solid rgba(120, 160, 255, 0.2);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.df-field textarea { resize: vertical; min-height: 40px; grid-column: 1 / -1; }
.df-field input:focus, .df-field textarea:focus { outline: none; border-color: var(--c-cyan); box-shadow: 0 0 10px rgba(0, 212, 255, 0.2); }
.df-save-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 9px 0; border-top: 1px solid rgba(120, 160, 255, .14); }
.df-save-hint { font-size: 10.5px; color: var(--c-orange); flex: 1; line-height: 1.4; }
.save-modify-btn {
  font-family: var(--font); cursor: pointer; font-size: 12px; font-weight: 600; white-space: nowrap;
  color: #04122A; padding: 7px 16px; border-radius: 7px; border: 1px solid var(--c-orange);
  background: linear-gradient(120deg, var(--c-orange), #FFD080); transition: all .2s ease;
}
.save-modify-btn:hover { filter: brightness(1.1); box-shadow: 0 0 16px rgba(255, 176, 32, 0.45); }

/* 意见箱项目/客户可编辑徽标 */
.idea-badge.editable { cursor: text; border-style: dashed; transition: all .2s ease; }
.idea-badge.editable:hover { color: var(--c-cyan); border-color: var(--c-cyan); background: rgba(0, 212, 255, 0.08); }
.meta-edit-input {
  font-family: var(--font); font-size: 11px; color: #fff; width: 180px; padding: 2px 6px;
  border-radius: 5px; background: rgba(10, 18, 44, 0.7); border: 1px solid var(--c-cyan); outline: none;
}

/* 修改留痕 */
.df-edit-log { margin-bottom: 8px; }
.df-edit-record {
  padding: 8px 10px; margin: 6px 0; border-radius: 7px;
  background: rgba(255, 176, 32, 0.06); border: 1px solid rgba(255, 176, 32, 0.22);
  border-left: 3px solid var(--c-orange);
}
.df-edit-head { display: flex; gap: 10px; align-items: center; font-size: 10.5px; color: var(--text-2); flex-wrap: wrap; }
.df-edit-tag { font-size: 10px; font-weight: 700; color: var(--c-orange); }
.df-edit-change { font-size: 10.5px; color: var(--text-2); margin-top: 5px; line-height: 1.5; }
.df-edit-change b { color: var(--text-1); font-weight: 600; }
.df-edit-change span { color: var(--c-green); }

/* 历史审批轮次 */
.df-sub-title { font-size: 10.5px; color: var(--text-2); font-weight: 600; margin: 8px 0 5px; letter-spacing: 0.5px; }
.df-round {
  padding: 8px 10px; margin: 6px 0; border-radius: 7px;
  background: rgba(43, 127, 255, 0.05); border: 1px solid rgba(43, 127, 255, 0.2);
  border-left: 3px solid var(--c-blue);
}
.df-round-head { display: flex; gap: 10px; align-items: center; font-size: 10.5px; color: var(--text-2); flex-wrap: wrap; margin-bottom: 4px; }
.df-round-tag { font-size: 10px; font-weight: 700; color: var(--c-blue); }
.df-round-row { display: flex; gap: 10px; flex-wrap: wrap; font-size: 10.5px; color: var(--text-2); padding: 3px 0; border-top: 1px dashed rgba(120, 160, 255, 0.1); }

.copy-demand-btn {
  margin-left: 6px; font-family: var(--font); cursor: pointer; font-size: 11px; color: var(--c-green);
  padding: 4px 10px; border-radius: 7px; background: rgba(0, 229, 160, 0.1);
  border: 1px solid rgba(0, 229, 160, 0.4); transition: all .2s ease;
}
.copy-demand-btn:hover { color: #04122A; background: var(--c-green); box-shadow: 0 0 14px rgba(0, 229, 160, 0.45); }
