/* =====================================================================
   布拖县数字人大 · 履职数据驾驶舱  ——  大屏 UI 设计稿样式
   设计基调：中国红 + 彝族三色（黑·红·黄）+ 宋体骨相 + 回纹 / 云纹 / 五角星 / 麦穗
   画布：1920 × 1080（等比缩放适配）
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  /* —— 主色：暖橙红（参照设计稿，整体提亮且偏暖） —— */
  --ink:        #3A1A14;
  --red-950:    #5E2419;
  --red-900:    #7C3020;
  --red-800:    #9A3E26;
  --red-700:    #B04C2C;
  --red-600:    #C25A34;
  --red-500:    #D46B3E;
  /* —— 辅色：鎏金（提亮，偏暖橙） —— */
  --gold-600:   #D08A3A;
  --gold-500:   #E6A24E;
  --gold-400:   #F7C077;
  --gold-300:   #FFD79B;
  --gold-200:   #FFEBC8;
  /* —— 点缀：青绿（办结/正向） —— */
  --jade-400:   #5FA98D;
  --jade-300:   #8FD3B6;
  --seal:       #D9503F;

  --txt:        #FFF6E4;
  --txt-2:      #E9CFAC;
  --txt-3:      #C4A483;
  --line:       rgba(232, 200, 140, .38);
  --line-soft:  rgba(232, 200, 140, .20);

  /* —— 面板底色：暖橙红（参照设计稿实测 RGB 约 171,82,47） —— */
  --panel-bg: linear-gradient(158deg, rgba(196, 100, 58, .72) 0%, rgba(171, 82, 47, .74) 46%, rgba(140, 62, 42, .78) 100%);
  /* 面板顶部内高光，制造"被照亮"的观感 */
  --panel-sheen: linear-gradient(180deg, rgba(255, 205, 155, .18) 0%, rgba(255, 180, 130, 0) 42%);

  --font-hei: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", sans-serif;
  --font-song: "Source Han Serif SC", "Noto Serif SC", "STZhongsong", "SimSun", "宋体", serif;
  --font-num: "Bahnschrift", "DIN Alternate", "Segoe UI", "Microsoft YaHei", sans-serif;
}

body {
  background:
    /* 顶部中央暖光 */
    radial-gradient(120% 90% at 50% 0%, rgba(196, 96, 56, .62) 0%, rgba(150, 70, 46, .34) 38%, rgba(70, 28, 20, 0) 72%),
    /* 底部反光 */
    radial-gradient(100% 70% at 50% 100%, rgba(160, 76, 48, .46) 0%, rgba(70, 28, 20, 0) 60%),
    /* 基色：暖橙红调 */
    linear-gradient(180deg, #6E2A1C 0%, #5A2218 52%, #481A13 100%);
  color: var(--txt);
  font-family: var(--font-hei);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

#viewport {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  background: radial-gradient(1200px 700px at 50% 50%, #5A1B1A 0%, #3A1014 72%);
}

/* ============================ 画布 ============================ */
.stage {
  position: relative;
  width: 1920px; height: 1080px;
  transform-origin: center center;
  display: flex; flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(1240px 620px at 50% -10%, rgba(255, 200, 120, .22), transparent 64%),
    radial-gradient(1060px 780px at 50% 44%,  rgba(196, 60, 52, .22), transparent 74%),
    radial-gradient(1500px 720px at 50% 118%, rgba(146, 30, 34, .38), transparent 74%),
    linear-gradient(180deg, #431014 0%, #531619 36%, #481217 68%, #350C10 100%);
}

/* 织锦斜纹肌理 —— 用极低透明度双层斜线模拟锦缎经纬 */
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg,  rgba(255, 228, 176, .045) 0 1px, transparent 1px 15px),
    repeating-linear-gradient(-45deg, rgba(255, 228, 176, .032) 0 1px, transparent 1px 15px);
  opacity: .85;
}
/* 四周暗角，收拢视线（比原来轻，避免整体发闷） */
.stage::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(1640px 1000px at 50% 46%, transparent 54%, rgba(24, 5, 7, .48) 100%);
}

/* ============================ 顶部标题栏 ============================ */
.hd {
  position: relative; z-index: 5;
  height: 88px; flex: 0 0 88px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  background:
    linear-gradient(180deg, rgba(188, 48, 46, .55) 0%, rgba(112, 26, 28, .30) 60%, rgba(70, 16, 18, 0) 100%);
}
/* 顶沿鎏金细线 + 回纹带 */
.hd__band { position: absolute; left: 0; right: 0; top: 0; height: 14px; color: rgba(228, 190, 114, .55); }
.hd__band svg { display: block; width: 100%; height: 100%; }
.hd__rule {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(228, 190, 114, .55) 12%, rgba(240, 211, 155, .85) 50%, rgba(228, 190, 114, .55) 88%, transparent);
}
/* 标题栏两侧红旗折角 */
.hd__flag {
  position: absolute; top: 6px; width: 168px; height: 92px; opacity: .5; pointer-events: none;
}
.hd__flag--l { left: 0; }
.hd__flag--r { right: 0; transform: scaleX(-1); }

.hd__side { display: flex; align-items: center; gap: 14px; }
.hd__side--r { justify-content: flex-end; }

.hd__org { display: flex; flex-direction: column; gap: 2px; }
.hd__org b { font-family: var(--font-song); font-size: 15px; font-weight: 700; letter-spacing: 2.4px; color: var(--gold-300); }
.hd__org span { font-size: 9.5px; letter-spacing: 2.2px; color: rgba(228, 190, 114, .5); }

/* 中央：徽记 + 主标题 */
.hd__center { display: flex; align-items: center; gap: 18px; }
.emblem { width: 54px; height: 54px; flex: 0 0 54px; filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .5)); }
.hd__titles { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.hd__title {
  margin: 0; font-family: var(--font-song);
  font-size: 34px; font-weight: 700; line-height: 1.15;
  letter-spacing: 5px; color: #FFF6E2;
  text-shadow: 0 0 22px rgba(255, 200, 120, .35), 0 2px 0 rgba(90, 22, 16, .8);
}
.hd__sub {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-num); font-size: 10px; letter-spacing: 3.6px;
  color: rgba(240, 211, 155, .62);
}
.hd__sub i { display: block; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, rgba(228, 190, 114, .8)); }
.hd__sub i:last-child { background: linear-gradient(90deg, rgba(228, 190, 114, .8), transparent); }

/* 时钟 */
.clock { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.clock__time { font-family: var(--font-num); font-size: 27px; font-weight: 600; letter-spacing: 1px; color: #FFF4DE; font-feature-settings: "tnum"; }
.clock__date { font-size: 12px; letter-spacing: 2px; color: var(--txt-3); }
.clock__date em { font-style: normal; color: var(--gold-300); }

.hd__btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 14px; margin-left: 4px;
  font-family: var(--font-hei); font-size: 12.5px; letter-spacing: 1px;
  color: var(--gold-200); cursor: pointer;
  background: linear-gradient(180deg, rgba(214, 158, 84, .16), rgba(120, 30, 28, .28));
  border: 1px solid rgba(228, 190, 114, .45); border-radius: 3px;
  transition: .18s;
}
.hd__btn:hover { background: rgba(228, 190, 114, .22); border-color: rgba(240, 211, 155, .8); }
.hd__btn[aria-pressed="true"] { background: rgba(228, 190, 114, .26); border-color: var(--gold-300); color: #FFF6E2; }
.hd__btn svg { width: 14px; height: 14px; }

/* ============================ 主体：指标带 + 主区 + 底部 ============================ */
.board {
  position: relative; z-index: 4;
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column;
  gap: 14px; padding: 12px 24px 12px;
  overflow: hidden;
}
.board[hidden] { display: none; }

/* 顶部指标带 */
.band { flex: 0 0 96px; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; gap: 12px; }
.kpi6 {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 216, 172, .16) 0%, rgba(255, 190, 140, 0) 34%),
    var(--panel-bg);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 200, .24),
    0 8px 20px rgba(0, 0, 0, .18),
    0 0 0 1px rgba(255, 200, 150, .05);
}
.kpi6::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--gold-200), var(--gold-600));
  opacity: .9;
}
.kpi6__main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.kpi6__k { font-size: 12px; letter-spacing: 1.2px; color: var(--txt-2); white-space: nowrap; }
.kpi6__v {
  font-family: var(--font-num); font-size: 36px; font-weight: 600; line-height: 1.1;
  color: #FFF6E2; letter-spacing: .5px; font-feature-settings: "tnum";
}
.kpi6__v em {
  font-style: normal; font-family: var(--font-hei); font-size: 12px;
  color: var(--jade-300); letter-spacing: 0; margin-left: 4px;
}
.kpi6__v em.down { color: #F0A38A; }
.kpi6__spark { margin-left: auto; width: 76px; height: 32px; flex: 0 0 76px; opacity: .9; }
.kpi6__spark path { fill: none; stroke: #F2C97E; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.kpi6__spark .fill { fill: rgba(242, 201, 126, .16); stroke: none; }

/* 主区 / 底区 */
.main { flex: 1 1 auto; min-height: 0; display: flex; gap: 14px; }
.main > .panel { flex: 1 1 0; }
.bottom { flex: 0 0 286px; min-height: 0; display: flex; gap: 14px; }
.bottom > .panel { flex: 1 1 0; height: auto; }
.main > .panel { height: auto; }
.side-col { flex: 0 0 560px; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.side-col--wide { flex: 0 0 620px; }

/* 单内容卡：内容在卡片里垂直居中 */
.panel__bd--center { justify-content: center; }

/* 地图卡：地图与排行并排，吃掉横向空白 */
.map-split { display: flex; gap: 18px; flex: 1 1 auto; min-height: 0; justify-content: center; }
.map-split .map { flex: 0 1 680px; }
.rank-box { flex: 0 0 300px; display: flex; flex-direction: column; min-height: 0; }
.rank-box__t {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-size: 12px; letter-spacing: 1px; color: var(--txt-2);
}
.rank-box__t i { width: 4px; height: 12px; background: var(--gold-400); }
.rank-box .rank { flex: 1 1 auto; height: auto; min-height: 0; }
/* 地图卡头部内联统计 */
.panel__stats {
  display: flex; align-items: baseline; gap: 14px; margin-left: 6px;
  font-size: 11.5px; color: var(--txt-3); letter-spacing: .4px;
}
.panel__stats b { font-family: var(--font-num); font-size: 15px; color: var(--gold-200); font-weight: 600; margin: 0 2px 0 4px; }

/* 屏 1：代表画像堆叠条 */
.profile { display: flex; flex-direction: column; gap: 7px; flex: 1 1 auto; justify-content: center; }
.profile__t { font-size: 11px; letter-spacing: 1.4px; color: var(--gold-300); margin-bottom: 1px; }
.profile__row { display: grid; grid-template-columns: 66px 1fr 40px; align-items: center; gap: 10px; font-size: 12px; color: var(--txt-2); }
.profile__bar { height: 9px; background: rgba(255, 232, 190, .10); position: relative; overflow: hidden; }
.profile__bar > i { position: absolute; inset: 0 auto 0 0; }
.profile__v { text-align: right; font-family: var(--font-num); font-size: 13px; font-weight: 600; color: #FFE9BE; }

/* ============================ 面板 ============================ */
.panel {
  position: relative; display: flex; flex-direction: column;
  background:
    /* 顶部受光高光，制造被照亮的观感 */
    linear-gradient(180deg, rgba(255, 216, 172, .14) 0%, rgba(255, 190, 140, 0) 26%),
    var(--panel-bg);
  border: 1px solid var(--line);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 236, 200, .22),
    inset 0 0 44px rgba(255, 130, 100, .12),
    0 0 0 1px rgba(255, 200, 150, .06);
  overflow: hidden;
}
/* 四角鎏金折角 */
.panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--gold-400), var(--gold-400)), linear-gradient(var(--gold-400), var(--gold-400)),
    linear-gradient(var(--gold-400), var(--gold-400)), linear-gradient(var(--gold-400), var(--gold-400)),
    linear-gradient(var(--gold-400), var(--gold-400)), linear-gradient(var(--gold-400), var(--gold-400)),
    linear-gradient(var(--gold-400), var(--gold-400)), linear-gradient(var(--gold-400), var(--gold-400));
  background-size:
    1px 15px, 15px 1px, 1px 15px, 15px 1px,
    1px 15px, 15px 1px, 1px 15px, 15px 1px;
  background-position:
    left 0 top 0, left 0 top 0, right 0 top 0, right 0 top 0,
    left 0 bottom 0, left 0 bottom 0, right 0 bottom 0, right 0 bottom 0;
  background-repeat: no-repeat;
  opacity: .8;
}

.panel__hd {
  position: relative; height: 46px; flex: 0 0 46px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px;
  background: linear-gradient(90deg, rgba(196, 60, 48, .42) 0%, rgba(148, 40, 36, .16) 52%, transparent 100%);
}
.panel__hd::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(228, 190, 114, .55), rgba(228, 190, 114, .16) 28%, transparent 82%);
}
.panel__mark {
  width: 3px; height: 15px; flex: 0 0 3px;
  background: linear-gradient(180deg, var(--gold-200), var(--gold-600));
  box-shadow: 0 0 8px rgba(228, 190, 114, .7);
}
.panel__title {
  margin: 0; font-family: var(--font-song);
  font-size: 20px; font-weight: 700; letter-spacing: 2.6px; color: #FFF5E0;
}
.panel__en {
  margin-left: 2px; font-family: var(--font-num);
  font-size: 9.5px; letter-spacing: 1.8px; color: rgba(228, 190, 114, .42);
  text-transform: uppercase; transform: translateY(1px);
}
.panel__tool {
  margin-left: auto; display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 9px;
  font-size: 11px; letter-spacing: 1px; color: var(--txt-2);
  background: rgba(228, 190, 114, .07);
  border: 1px solid rgba(228, 190, 114, .22); border-radius: 2px;
  cursor: pointer; transition: .18s;
}
.panel__tool:hover { color: #FFF6E2; background: rgba(228, 190, 114, .18); border-color: rgba(240, 211, 155, .6); }
.panel__tool svg { width: 11px; height: 11px; }

.panel__bd {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column;
  padding: 12px 16px 14px; gap: 10px;
}
.panel__bd--tight { padding: 8px 12px 10px; }

/* 数据来源标注（点击“数据链路”后显示） */
.panel__src {
  display: none; position: absolute; left: 10px; right: 10px; bottom: 7px;
  padding: 4px 9px;
  font-size: 11px; line-height: 1.5; letter-spacing: .3px; color: #FFE7BC;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: rgba(28, 8, 10, .92);
  border: 1px dashed rgba(228, 190, 114, .55);
  border-radius: 2px;
}
.panel__src b { color: var(--gold-300); font-weight: 700; }
.panel__src em { font-style: normal; color: var(--jade-300); }
body.linkage .panel__src { display: block; }
body.linkage .panel { border-color: rgba(228, 190, 114, .45); }
body.linkage .panel__bd { padding-bottom: 38px; }

/* ============================ 通用小组件 ============================ */
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

.dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; display: inline-block; }

/* KPI 组 */
.kpis { display: grid; gap: 10px; }
.kpi {
  display: flex; flex-direction: column; gap: 2px;
  padding: 9px 12px;
  background: linear-gradient(180deg, rgba(255, 224, 168, .07), rgba(255, 224, 168, .015));
  border: 1px solid var(--line-soft);
  border-radius: 2px;
}
.kpi__val { font-family: var(--font-num); font-size: 26px; font-weight: 600; line-height: 1.15; color: var(--gold-200); font-feature-settings: "tnum"; }
.kpi__val small { font-size: 12px; font-weight: 400; color: var(--txt-3); margin-left: 3px; letter-spacing: 0; }
.kpi__lab { font-size: 12px; letter-spacing: 1px; color: var(--txt-2); }

/* 数字机具（履职总数里程牌） */
.odo { display: flex; gap: 9px; justify-content: center; }
.odo__cell {
  position: relative; width: 82px; height: 96px;
  display: grid; place-items: center;
  background:
    linear-gradient(180deg, rgba(255, 226, 172, .10), rgba(90, 16, 16, .55) 45%, rgba(48, 9, 11, .85)),
    #6E2A1C;
  border: 1px solid rgba(228, 190, 114, .52);
  box-shadow: inset 0 0 18px rgba(255, 190, 120, .10), 0 4px 14px rgba(0, 0, 0, .4);
}
.odo__cell::before, .odo__cell::after {
  content: ""; position: absolute; left: 8px; right: 8px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(228, 190, 114, .5), transparent);
}
.odo__cell::before { top: 6px; }
.odo__cell::after { bottom: 6px; }
.odo__digit {
  font-family: var(--font-num); font-size: 58px; font-weight: 600; line-height: 1;
  color: #FFF7E4; font-feature-settings: "tnum";
  text-shadow: 0 0 18px rgba(255, 206, 140, .55);
}

/* 环图 */
.ringwrap { display: flex; align-items: center; gap: 14px; }
.ring { width: 108px; height: 108px; flex: 0 0 auto; transform: rotate(-90deg); }
.ring__bg { fill: none; stroke: rgba(255, 226, 172, .12); stroke-width: 9; }
.ring__fg { fill: none; stroke: url(#gradRing); stroke-width: 9; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(228, 190, 114, .55)); }
.ring__fg--thin { stroke-width: 7; }
/* 分类环形图的分段：加深色描边阴影，让相邻色块在暗底上也能分开 */
.ring__seg { filter: drop-shadow(0 0 2.5px rgba(0, 0, 0, .55)); }

/* ============ 图表悬浮提示 ============ */
/* 字号只改 --tip-fs 一处：32px 为远距离观看（3m 以上）档位 */
.tip {
  --tip-fs: 32px;
  position: fixed; z-index: 60; pointer-events: none;
  min-width: 420px; max-width: 760px;
  padding: 24px 30px 26px;
  background: linear-gradient(180deg, rgba(52, 11, 13, .99), rgba(26, 5, 7, .99));
  border: 1px solid rgba(228, 190, 114, .68);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .68), inset 0 1px 0 rgba(255, 232, 190, .14);
  animation: tipIn .14s ease-out;
}
.tip[hidden] { display: none; }
.tip::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, rgba(228, 190, 114, .2), var(--gold-300), rgba(228, 190, 114, .2));
}
@keyframes tipIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tip__t {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  margin: 0 0 14px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(228, 190, 114, .26);
  font-family: var(--font-song); font-size: calc(var(--tip-fs) * 1.1); font-weight: 700;
  letter-spacing: 2px; color: #FFF6E2; line-height: 1.25;
}
.tip__t small {
  font-family: var(--font-num); font-size: calc(var(--tip-fs) * 0.66); font-weight: 400;
  letter-spacing: .5px; color: var(--txt-3); white-space: nowrap;
}
.tip__row {
  display: flex; align-items: center; gap: 16px;
  font-size: var(--tip-fs); line-height: 1.62; color: var(--txt-2); letter-spacing: .5px;
}
.tip__row b {
  margin-left: auto; padding-left: 24px;
  font-family: var(--font-num); font-size: calc(var(--tip-fs) * 1.06); font-weight: 600;
  color: #FFE9BE; font-feature-settings: "tnum";
}
.tip__dot { width: 16px; height: 16px; flex: 0 0 16px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(0, 0, 0, .35); }
.tip__hint {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(228, 190, 114, .24);
  font-size: calc(var(--tip-fs) * 0.72); color: var(--txt-3); letter-spacing: .4px;
}
/* 极小窗口（笔记本预览）时整体缩小，避免挡住半个屏 */
@media (max-width: 1100px) {
  .tip { --tip-fs: 18px; min-width: 240px; padding: 14px 18px 16px; }
}
.ringcenter { position: relative; display: grid; place-items: center; }
.ringcenter__lab {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font-family: var(--font-num); font-size: 25px; font-weight: 600; color: #FFF6E2; line-height: 1.1;
  /* 关键：中间数字只是视觉浮层，不能挡住环图的悬停 */
  pointer-events: none;
}
.ringcenter__lab small { display: block; font-family: var(--font-hei); font-size: 10.5px; letter-spacing: 1.6px; color: var(--txt-3); margin-top: 2px; }

/* 图例 */
.legend { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.legend__row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--txt-2); letter-spacing: .5px; }
.legend__row b { font-family: var(--font-num); font-size: 15px; font-weight: 600; color: #FFF3DC; margin-left: auto; font-feature-settings: "tnum"; }
.legend__row span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 印章式状态 */
.stamp {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 9px; transform: rotate(-3deg);
  font-family: var(--font-song); font-size: 12.5px; font-weight: 700; letter-spacing: 2.5px;
  border: 1.4px solid currentColor; border-radius: 2px;
  color: var(--jade-300); opacity: .95;
  box-shadow: 0 0 10px rgba(143, 211, 182, .18) inset;
  white-space: nowrap;
}
.stamp--wait { color: #F4B183; }
.stamp--doing { color: var(--gold-300); }

/* ============================ 屏 1：总览 ============================ */
/* 履职总数 */
.duty-head { display: flex; align-items: center; justify-content: space-between; }
.duty-head__lab { font-size: 13px; letter-spacing: 2px; color: var(--txt-3); }
.duty-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.duty-foot__item { display: flex; align-items: baseline; gap: 6px; }
.duty-foot__v { font-family: var(--font-num); font-size: 20px; font-weight: 600; color: var(--gold-200); }
.duty-foot__k { font-size: 11.5px; color: var(--txt-3); letter-spacing: .5px; }
.duty-foot__up { font-family: var(--font-num); font-size: 12px; color: var(--jade-300); }

/* 通知触达 */
.notice-read { display: flex; align-items: center; justify-content: space-between; flex: 1 1 auto; }
.notice-read__cell { text-align: center; }
.notice-read__v { font-family: var(--font-num); font-size: 24px; font-weight: 600; color: var(--gold-200); line-height: 1.2; }
.notice-read__k { font-size: 11.5px; color: var(--txt-3); letter-spacing: 1px; }

/* 趋势图容器 */
.chart { width: 100%; flex: 1 1 auto; min-height: 0; }
.chart[data-chart="age"] { flex: 0 1 auto; height: 232px; max-height: 232px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart__axis { font-family: var(--font-num); font-size: 10px; fill: rgba(232, 205, 170, .78); }
.chart__grid { stroke: rgba(232, 200, 140, .22); stroke-width: 1; stroke-dasharray: 2 4; }

.segmented { display: inline-flex; align-items: center; gap: 2px; }
.segmented button {
  height: 21px; padding: 0 10px; font-family: var(--font-hei);
  font-size: 11px; letter-spacing: 1.2px; color: var(--txt-3);
  background: transparent; border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: .16s;
}
.segmented button:hover { color: var(--txt); }
.segmented button[aria-selected="true"] {
  color: #FFF6E2;
  background: linear-gradient(180deg, rgba(228, 190, 114, .28), rgba(168, 42, 38, .18));
  border-color: rgba(228, 190, 114, .55);
}

/* 代表信息占比（双环） */
.split { display: flex; gap: 0; flex: 1 1 auto; min-height: 0; }
.split__half { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 2px 16px; }
.split__half:first-child { padding-left: 4px; border-right: 1px solid var(--line-soft); }
.split__cap { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 1.4px; color: var(--txt-2); }
.split__cap i { width: 5px; height: 5px; background: var(--gold-400); transform: rotate(45deg); }
.split__body { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-height: 0; }
.split .legend { flex: 0 0 138px; width: 138px; gap: 6px; }

/* 实时关注动态 */
/* ============ 通用自动滚动列表（实时动态 / 通知公告共用） ============ */
.scroll-list { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.scroll-list__track { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.scroll-list__group { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; }
.scroll-row { flex: 0 0 auto; height: var(--list-row-h, 104px); }
.scroll-list.is-scrolling .scroll-list__track { animation: listScroll var(--list-dur, 40s) linear infinite; will-change: transform; }
.scroll-list.is-scrolling:hover .scroll-list__track { animation-play-state: paused; }
/* 出图用：?static=1 时定格在起始位置 */
body.static-feed .scroll-list__track { animation-play-state: paused !important; }
@keyframes listScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, calc(-1 * var(--list-loop, 0px)), 0); }
}
/* 上下边缘渐隐，滚动时不出现硬切口 */
.scroll-list.is-scrolling::before, .scroll-list.is-scrolling::after {
  content: ""; position: absolute; left: 0; right: 0; height: 32px; z-index: 3; pointer-events: none;
}
.scroll-list.is-scrolling::before { top: 0; background: linear-gradient(180deg, rgba(74, 15, 17, 1) 0%, rgba(74, 15, 17, .92) 32%, rgba(74, 15, 17, 0) 100%); }
.scroll-list.is-scrolling::after { bottom: 0; background: linear-gradient(0deg, rgba(58, 10, 14, 1) 0%, rgba(58, 10, 14, .92) 32%, rgba(58, 10, 14, 0) 100%); }
/* 通知公告行更矮，渐隐相应收窄 */
.noticelist.is-scrolling::before, .noticelist.is-scrolling::after { height: 18px; }

/* 实时关注动态：行样式 */
.feed__row {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 8px 14px 8px 16px;
  background: linear-gradient(90deg, rgba(172, 48, 42, .30), rgba(60, 12, 15, .28) 62%, rgba(40, 9, 12, .18));
  border-left: 2px solid rgba(228, 190, 114, .55);
}
.feed__row--hot { border-left-color: var(--seal); background: linear-gradient(90deg, rgba(198, 62, 48, .38), rgba(70, 14, 16, .3) 62%, rgba(40, 9, 12, .18)); }
.feed__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.feed__top { display: flex; align-items: center; gap: 10px; }
.feed__time { font-family: var(--font-num); font-size: 11.5px; letter-spacing: .6px; color: rgba(240, 211, 155, .72); font-feature-settings: "tnum"; }
.feed__tag { padding: 0 7px; height: 17px; display: inline-flex; align-items: center; font-size: 10.5px; letter-spacing: 1px; color: var(--gold-300); border: 1px solid rgba(228, 190, 114, .35); border-radius: 2px; }
.feed__title {
  margin: 0; font-family: var(--font-song); font-size: 16.5px; font-weight: 700; letter-spacing: .8px; color: #FFF4DE;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.32;
}
.feed__desc { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--txt-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed__faces { display: flex; align-items: center; gap: 3px; flex: 0 0 auto; }
.face {
  position: relative; overflow: hidden;
  width: 26px; height: 32px; display: grid; place-items: center;
  font-family: var(--font-song); font-size: 12px; color: #2A0A0A;
  background: linear-gradient(180deg, #F3D9A4, #C89C55);
  border: 1px solid rgba(255, 240, 208, .55); border-radius: 2px;
}
/* 真实照片：填满小方框、按人脸位置裁切 */
.face img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 22%;
  filter: saturate(.94) contrast(1.03);
}
.face--more { background: rgba(255, 232, 190, .12); color: var(--gold-300); border-color: rgba(228, 190, 114, .45); font-family: var(--font-num); font-size: 10px; }

/* 监督履职三章 */
.supervise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.supervise__cell {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 4px 9px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(255, 216, 150, .10), transparent 70%), rgba(0, 0, 0, .13);
  border: 1px solid var(--line-soft);
}
.supervise__v { font-family: var(--font-num); font-size: 34px; font-weight: 600; line-height: 1; color: var(--gold-200); font-feature-settings: "tnum"; }
.supervise__v--jade { color: var(--jade-300); }
.supervise__v--seal { color: #F0A38A; }
.supervise__k { font-size: 11.5px; letter-spacing: 1.6px; color: var(--txt-3); }
.progress { height: 4px; background: rgba(255, 232, 190, .10); border-radius: 2px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-500), var(--gold-200)); }

/* 月度柱状 */
.bars { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; min-height: 0; }
.bars__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bars__chart { flex: 1 1 auto; min-height: 0; }
.bars__chart svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* ============================ 屏 2：代表 ============================ */
.kpis--4 { grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr; align-content: stretch; }
.kpis--4 .kpi { align-items: center; justify-content: center; text-align: center; padding: 8px 4px; }
.kpis--4 .kpi__val { font-size: 27px; }
.kpis--4 .kpi__val small { font-size: 11px; }
.kpis--4 .kpi__lab { font-size: 11.5px; letter-spacing: .5px; }

.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; flex: 0 0 auto; align-content: start; }
.chip {
  display: flex; align-items: center; justify-content: space-between;
  height: 38px; padding: 0 12px;
  background: linear-gradient(180deg, rgba(255, 226, 172, .07), rgba(255, 226, 172, .012));
  border: 1px solid var(--line-soft);
}
.chip__k { font-size: 11.5px; letter-spacing: .4px; color: var(--txt-2); white-space: nowrap; }
.chip__v { font-family: var(--font-num); font-size: 15px; font-weight: 600; color: var(--gold-200); font-feature-settings: "tnum"; }
.chip--zero .chip__v { color: rgba(216, 184, 146, .38); }

.genders { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gender {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: linear-gradient(90deg, rgba(255, 226, 172, .08), transparent);
  border-left: 2px solid rgba(228, 190, 114, .5);
}
.gender--m { border-left-color: rgba(143, 211, 182, .55); }
.gender__v { font-family: var(--font-num); font-size: 27px; font-weight: 600; color: var(--gold-200); line-height: 1; }
.gender__lab { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: var(--txt-3); letter-spacing: .5px; }
.gender__lab b { font-family: var(--font-num); font-size: 12.5px; color: var(--txt-2); font-weight: 600; }

/* 地图 */
.mapbox { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.map { position: relative; flex: 1 1 auto; min-height: 0; }
.map svg { display: block; width: 100%; height: 100%; }
.map__halo {
  position: absolute; left: 50%; top: 52%; width: 720px; height: 720px; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none; opacity: .55;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(228, 190, 114, .10) 0 1px, transparent 1px 34px),
    radial-gradient(circle at 50% 50%, rgba(214, 120, 60, .16), transparent 62%);
}
.map__pin-card {
  position: absolute; pointer-events: none;
  display: flex; flex-direction: column; gap: 1px;
  padding: 7px 12px;
  background: linear-gradient(180deg, rgba(52, 10, 12, .96), rgba(28, 6, 8, .96));
  border: 1px solid rgba(228, 190, 114, .6);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .5);
}
.map__pin-card b { font-family: var(--font-song); font-size: 15px; letter-spacing: 1.4px; color: #FFF4DE; }
.map__pin-card span { font-size: 11px; color: var(--gold-300); letter-spacing: .6px; }
.map__pin-card em { font-family: var(--font-num); font-style: normal; font-size: 19px; color: #FFF6E2; }
.map__legend {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 11px; color: var(--txt-3); letter-spacing: .6px;
}
.map__ramp { width: 128px; height: 6px; background: linear-gradient(90deg, #6E1418, #A63A2A, #D6803A, #E9C46A, #FFF0C8); border: 1px solid rgba(228, 190, 114, .35); }

/* 地图标注层：换乡镇时短促淡入淡出 */
.map-pin-layer { transition: opacity .16s ease; }
.map-pin-layer .ring { transform-box: fill-box; transform-origin: center; animation: pinRipple 2.8s ease-out infinite; }
@keyframes pinRipple {
  0%   { transform: scale(.45); opacity: .7; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

.rank { padding: 0 4px; flex: 0 0 152px; height: 152px; }
.rank .scroll-row { height: var(--list-row-h, 24px); }
.rank.is-scrolling::before, .rank.is-scrolling::after { height: 16px; }
.rank__row { display: grid; grid-template-columns: 84px 1fr 44px; align-items: center; gap: 10px; font-size: 12px; color: var(--txt-2); }
.rank__bar { height: 7px; background: rgba(255, 232, 190, .09); position: relative; overflow: hidden; }
.rank__bar > i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(228, 190, 114, .35), var(--gold-300)); }
.rank__v { text-align: right; font-family: var(--font-num); font-size: 14px; font-weight: 600; color: var(--gold-200); }

/* 竖排标语 */
.vslogan {
  position: absolute; right: 14px; top: 78px;
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--font-song); font-size: 15px; letter-spacing: 7px;
  color: rgba(240, 211, 155, .55);
  text-shadow: 0 0 14px rgba(255, 200, 120, .25);
}

/* 代表信息墙 */
.wall__tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wall__tabs button {
  height: 25px; padding: 0 11px; cursor: pointer;
  font-family: var(--font-hei); font-size: 11.5px; letter-spacing: .8px;
  color: var(--txt-3); background: rgba(255, 232, 190, .05);
  border: 1px solid rgba(228, 190, 114, .18); border-radius: 2px; transition: .16s;
}
.wall__tabs button:hover { color: var(--txt); }
.wall__tabs button[aria-selected="true"] {
  color: #2A0A08;
  background: linear-gradient(180deg, var(--gold-200), var(--gold-400));
  border-color: var(--gold-200); font-weight: 700;
}
.wall__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: 10px; flex: 1 1 auto; min-height: 0; }

/* 翻页微动效：旧卡错峰离场（14ms 递进），新卡错峰入场（36ms 递进），两段略有重叠避免面板空场 */
.wall__card.is-leaving { animation: cardOut .16s ease-in both; animation-delay: calc(var(--o, 0) * 14ms); }
.wall__card.is-entering { animation: cardIn .34s cubic-bezier(.22, .68, .32, 1) both; animation-delay: calc(var(--i, 0) * 36ms); }
@keyframes cardOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

/* 翻页指示（每页 6 人） */
.wall__pager { display: flex; align-items: center; justify-content: center; gap: 10px; flex: 0 0 auto; padding-top: 2px; }
.wall__dots { display: flex; align-items: center; gap: 6px; }
.wall__dots i {
  width: 20px; height: 4px; cursor: pointer; background: rgba(228, 190, 114, .20);
  transition: background .2s, box-shadow .2s;
}
.wall__dots i:hover { background: rgba(228, 190, 114, .45); }
.wall__dots i.on { background: linear-gradient(90deg, var(--gold-400), var(--gold-200)); box-shadow: 0 0 8px rgba(228, 190, 114, .55); }
.wall__pager span { font-family: var(--font-num); font-size: 10.5px; color: var(--txt-3); letter-spacing: .6px; font-feature-settings: "tnum"; }
.wall__card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 226, 172, .10), rgba(40, 9, 12, .5));
  border: 1px solid rgba(228, 190, 114, .30);
  transition: .18s;
}
.wall__card:hover { border-color: var(--gold-300); box-shadow: 0 0 0 1px rgba(240, 211, 155, .35); }
.wall__photo {
  position: relative; flex: 1 1 auto; min-height: 0;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 50% 12%, rgba(255, 232, 186, .26), transparent 64%),
    linear-gradient(165deg, #B0563A 0%, #8E4030 52%, #68301E 100%);
}
.wall__fig {
  position: absolute; left: 50%; bottom: 0; width: 112%; height: 92%;
  transform: translateX(-50%);
  color: rgba(255, 236, 200, .16);
}
/* 代表照片：按证件照比例裁切，顶部对齐保证人脸不被切到 */
.wall__img {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
  object-fit: cover; object-position: 50% 22%;
  filter: saturate(.94) contrast(1.02) brightness(.98);
}
.wall__photo span {
  position: relative; z-index: 0;
  font-family: var(--font-song); font-size: 40px; font-weight: 700;
  color: rgba(255, 242, 216, .90);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}
.wall__photo::after {
  z-index: 2;
}
.wall__badge { z-index: 3; }
.wall__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(20, 4, 6, .82) 100%);
}
.wall__badge {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  padding: 1px 6px; font-size: 10px; letter-spacing: .8px;
  color: #2A0A08; background: linear-gradient(180deg, var(--gold-200), var(--gold-400));
}
.wall__name {
  position: relative; z-index: 2;
  padding: 7px 8px 1px; text-align: center;
  background: linear-gradient(180deg, #8E3A22, #6E2A1A);
  font-family: var(--font-song); font-size: 14.5px; font-weight: 700; letter-spacing: 1.2px; color: #FFF4DE;
}
.wall__meta {
  position: relative; z-index: 2;
  padding: 0 8px 7px; text-align: center;
  background: #6E2A1A;
  font-size: 10.5px; color: var(--txt-3); letter-spacing: .4px;
}

/* 地图区块交互 */
.town { cursor: pointer; }
.town path { transition: fill .18s, stroke .18s; }
.town:hover path { stroke: #FFF6E2; stroke-width: 1.8; }
.town:hover text { fill: #FFF6E2 !important; }

.staff { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1 1 auto; }
.staff__card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 10px 8px; text-align: center;
  background: linear-gradient(180deg, rgba(255, 226, 172, .08), rgba(60, 12, 15, .32));
  border: 1px solid rgba(228, 190, 114, .26);
}
.staff__seal {
  width: 46px; height: 46px; display: grid; place-items: center;
  font-family: var(--font-song); font-size: 20px; color: #FFF0D2;
  background: linear-gradient(180deg, #B7332B, #7A1A18);
  border: 1px solid rgba(240, 211, 155, .55); border-radius: 3px;
}
.staff__name { font-family: var(--font-song); font-size: 16px; font-weight: 700; letter-spacing: 1.6px; color: #FFF4DE; }
.staff__role { font-size: 11.5px; color: var(--txt-3); letter-spacing: .4px; }

/* ============================ 屏 3：履职 ============================ */
.duo { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 8px; align-content: stretch; }
.duo__cell {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px;
  background: rgba(255, 226, 172, .05);
  border: 1px solid var(--line-soft);
}
.duo__ico { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; color: var(--gold-400); }
.duo__ico svg { width: 18px; height: 18px; }
.duo__k { font-size: 11.5px; color: var(--txt-2); letter-spacing: .4px; }
.duo__v { margin-left: auto; font-family: var(--font-num); font-size: 20px; font-weight: 600; color: var(--gold-200); font-feature-settings: "tnum"; }
.duo__v small { font-size: 10px; color: var(--txt-3); margin-left: 1px; }

.satisfy { display: flex; align-items: center; gap: 16px; }
.satisfy__block { display: flex; flex-direction: column; gap: 2px; }
.satisfy__v { font-family: var(--font-num); font-size: 30px; font-weight: 600; color: var(--gold-200); line-height: 1.05; }
.satisfy__v--jade { color: var(--jade-300); }
.satisfy__k { font-size: 11.5px; color: var(--txt-3); letter-spacing: .6px; }
.satisfy__bar { flex: 0 0 auto; display: flex; height: 10px; border: 1px solid rgba(228, 190, 114, .28); overflow: hidden; background: rgba(255, 232, 190, .06); }
.satisfy__bar i { display: block; height: 100%; }

.events { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1 1 auto; }
.events__cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(255, 216, 150, .10), transparent 68%), rgba(0, 0, 0, .12);
  border: 1px solid var(--line-soft);
}
.events__v { font-family: var(--font-num); font-size: 36px; font-weight: 600; color: var(--gold-200); line-height: 1; }
.events__v small { font-family: var(--font-hei); font-size: 12px; color: var(--txt-3); margin-left: 2px; }
.events__k { font-size: 11.5px; color: var(--txt-3); letter-spacing: 1.2px; }

.scan { display: flex; align-items: center; gap: 16px; flex: 1 1 auto; }
.scan__list { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; }
.scan__row { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 7px; border-bottom: 1px dashed rgba(228, 190, 114, .18); }
.scan__row:last-child { border-bottom: 0; padding-bottom: 0; }
.scan__k { font-size: 12px; color: var(--txt-2); letter-spacing: .8px; }
.scan__v { font-family: var(--font-num); font-size: 18px; font-weight: 600; color: var(--gold-200); }
.scan__v small { font-size: 10px; color: var(--txt-3); margin-left: 2px; }

.mix { display: flex; flex-direction: column; gap: 9px; flex: 1 1 auto; justify-content: space-around; }
.mix__row { display: flex; align-items: center; gap: 10px; }
.mix__k { width: 62px; flex: 0 0 62px; font-size: 11.5px; color: var(--txt-2); }
.mix__track { flex: 1 1 auto; height: 16px; background: rgba(255, 232, 190, .07); position: relative; border: 1px solid rgba(228, 190, 114, .14); }
.mix__track > i {
  position: absolute; inset: 0 auto 0 0;
  background: linear-gradient(90deg, rgba(166, 42, 36, .85), rgba(228, 190, 114, .85));
  box-shadow: 0 0 12px rgba(228, 190, 114, .25) inset;
}
.mix__pct { width: 62px; flex: 0 0 62px; text-align: right; font-family: var(--font-num); font-size: 13px; font-weight: 600; color: var(--gold-200); }
.mix__cnt { width: 44px; flex: 0 0 44px; font-size: 10.5px; color: var(--txt-3); text-align: right; }

/* 100% 构成条 */
.stackbar { display: flex; height: 14px; border: 1px solid rgba(228, 190, 114, .26); overflow: hidden; background: rgba(255, 232, 190, .05); }
.stackbar > i { display: block; height: 100%; }
.stackbar__cap { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: .6px; color: var(--txt-3); }
.stackbar__cap span { position: relative; padding-left: 10px; }
.stackbar__cap span::before { content: ""; position: absolute; left: 0; top: 4px; width: 5px; height: 5px; background: rgba(228, 190, 114, .7); }
.stackbar__cap span:nth-child(1)::before { background: #C98C46; }
.stackbar__cap span:nth-child(2)::before { background: #B4562F; }
.stackbar__cap span:nth-child(3)::before { background: #E7C57F; }

.noticelist { /* 视口由 .scroll-list 提供 */ }
.noticelist__row {
  display: flex; flex-direction: column; gap: 3px;
  padding: 6px 10px; justify-content: center;
  background: rgba(255, 226, 172, .04);
  border-left: 2px solid rgba(228, 190, 114, .35);
}
.noticelist__row:first-child { border-left-color: var(--gold-400); background: rgba(255, 226, 172, .08); }
.noticelist__top { display: flex; align-items: baseline; gap: 8px; }
.noticelist__t { flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: #FBE7C9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noticelist__d { font-family: var(--font-num); font-size: 10px; color: var(--txt-3); flex: 0 0 auto; }
.noticelist__meta { display: flex; gap: 12px; font-size: 10.5px; color: var(--txt-3); }
.noticelist__meta b { font-family: var(--font-num); font-weight: 600; color: var(--txt-2); }

/* ============================ 底部 ============================ */
.foot {
  position: relative; z-index: 5;
  height: 30px; flex: 0 0 30px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
.foot__band { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; color: rgba(228, 190, 114, .32); }
.foot__band svg { display: block; width: 100%; height: 100%; }
.foot__status { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .8px; color: var(--txt-3); }
.foot__status b { color: var(--jade-300); font-weight: 600; }
.foot__status .dot { background: var(--jade-300); box-shadow: 0 0 8px rgba(143, 211, 182, .85); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.foot__slogan {
  font-family: var(--font-song); font-size: 13px; letter-spacing: 3px;
  color: rgba(255, 235, 200, .62);
  display: flex; align-items: center; gap: 14px;
}
.foot__slogan i { width: 36px; height: 1px; background: linear-gradient(90deg, transparent, rgba(228, 190, 114, .6)); }
.foot__slogan i:last-child { background: linear-gradient(90deg, rgba(228, 190, 114, .6), transparent); }
.foot__slogan b { color: var(--gold-300); font-weight: 700; letter-spacing: 4px; }

/* 场景切换（收进标题栏右侧） */
.tabs { display: flex; align-items: center; gap: 8px; margin-right: 6px; }
.tabs button {
  position: relative; min-width: 92px; height: 30px; padding: 0 14px; cursor: pointer;
  font-family: var(--font-song); font-size: 13.5px; font-weight: 700; letter-spacing: 2px;
  color: var(--gold-300);
  background: linear-gradient(180deg, rgba(122, 24, 24, .55), rgba(58, 10, 12, .7));
  border: 1px solid rgba(228, 190, 114, .40);
  transition: .18s;
}
.tabs button:hover { color: #FFF6E2; border-color: var(--gold-300); }
.tabs button[aria-selected="true"] {
  color: #2A0A08; border-color: var(--gold-200);
  background: linear-gradient(180deg, #FFE9BE, #E0B46A);
  box-shadow: 0 0 14px rgba(228, 190, 114, .40), inset 0 1px 0 rgba(255, 255, 255, .4);
}

/* ============================ 动态详情（抽屉内） ============================ */
.feed__row { cursor: pointer; transition: background .16s, border-color .16s; }
.feed__row:hover { background: linear-gradient(90deg, rgba(206, 70, 52, .44), rgba(84, 20, 22, .42) 62%, rgba(48, 10, 13, .32)); }

.detail__head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.detail__head h4 {
  margin: 0; flex: 1; font-family: var(--font-song); font-size: 23px; font-weight: 700;
  line-height: 1.4; letter-spacing: 1px; color: #FFF6E2;
}
.detail__meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  padding: 13px 16px; margin-bottom: 16px;
  background: rgba(255, 226, 172, .05);
  border-left: 2px solid rgba(232, 200, 140, .45);
}
.detail__meta span { font-size: 12px; color: var(--txt-3); letter-spacing: .4px; }
.detail__meta b { margin-left: 8px; font-weight: 600; color: var(--txt); }

.detail__desc { margin: 0 0 18px; font-size: 13.5px; line-height: 1.95; color: var(--txt-2); }

.detail__sec {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
  font-size: 12px; letter-spacing: 1.6px; color: var(--gold-300);
}
.detail__sec::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(232, 200, 140, .40), transparent);
}

.timeline { list-style: none; margin: 0 0 20px; padding: 0; }
.timeline li {
  position: relative; padding: 0 0 15px 22px;
  border-left: 1px solid rgba(232, 200, 140, .22);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -4.5px; top: 2px;
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(232, 200, 140, .35);
}
.timeline li.on::before { background: var(--gold-300); box-shadow: 0 0 10px rgba(240, 211, 155, .85); }
.timeline b { display: block; font-size: 13.5px; font-weight: 600; color: var(--txt); letter-spacing: .4px; }
.timeline span { font-size: 11.5px; color: var(--txt-3); letter-spacing: .3px; }

.detail__faces { display: flex; flex-wrap: wrap; gap: 8px; }
.detail__face {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px; font-size: 12px; color: var(--txt-2);
  background: rgba(255, 226, 172, .06);
  border: 1px solid var(--line-soft);
}
/* 抽屉里的代表头像：小证件照，3:4 */
.detail__face img {
  width: 26px; height: 32px; object-fit: cover; object-position: 50% 18%;
  border: 1px solid rgba(255, 240, 208, .35);
  filter: saturate(.94) contrast(1.03);
}
.detail__face em { font-style: normal; font-family: var(--font-song); font-size: 13.5px; color: var(--gold-200); }
.detail__face--nophoto { padding-left: 11px; }

/* ============================ 联动明细抽屉 ============================ */
.drawer { position: absolute; inset: 0; z-index: 30; display: grid; grid-template-columns: 1fr 720px; }
.drawer[hidden] { display: none; }
.drawer__mask { background: rgba(20, 5, 6, .55); backdrop-filter: blur(2px); }
.drawer__panel {
  position: relative; display: flex; flex-direction: column;
  background:
    radial-gradient(760px 320px at 100% 0%, rgba(210, 80, 52, .22), transparent 70%),
    linear-gradient(180deg, #74301E 0%, #54210F 100%);
  border-left: 1px solid rgba(232, 200, 140, .5);
  box-shadow: -20px 0 60px rgba(0, 0, 0, .5);
  animation: slideIn .28s ease-out;
}
@keyframes slideIn { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer__hd {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 24px 16px; border-bottom: 1px solid var(--line-soft);
}
.drawer__hd h3 { margin: 0 0 5px; font-family: var(--font-song); font-size: 22px; font-weight: 700; letter-spacing: 2px; color: #FFF4DE; }
.drawer__hd p { margin: 0; font-size: 11.5px; color: var(--txt-3); letter-spacing: .4px; line-height: 1.6; }
.drawer__hd code { font-family: var(--font-num); color: var(--jade-300); font-size: 11.5px; letter-spacing: 0; }
.drawer__close {
  width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; cursor: pointer;
  color: var(--txt-2); background: rgba(255, 232, 190, .06);
  border: 1px solid rgba(228, 190, 114, .3); border-radius: 2px;
}
.drawer__close:hover { color: #FFF6E2; border-color: var(--gold-300); }
.drawer__bd { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 16px 24px; }
.drawer__ft {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 24px; border-top: 1px solid var(--line-soft); background: rgba(0, 0, 0, .18);
}
.drawer__hint { font-size: 11px; color: var(--txt-3); letter-spacing: .4px; }
.drawer__go {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 18px; cursor: pointer;
  font-family: var(--font-hei); font-size: 13px; letter-spacing: 1px; color: #2A0A08;
  background: linear-gradient(180deg, #FFE9BE, #DBAC60);
  border: 1px solid var(--gold-200); border-radius: 2px;
}
.drawer__go svg { width: 14px; height: 14px; }

.dtable { width: 100%; border-collapse: collapse; font-size: 12px; }
.dtable thead th {
  position: sticky; top: 0; z-index: 1;
  padding: 8px 10px; text-align: left; white-space: nowrap;
  font-family: var(--font-hei); font-weight: 600; font-size: 11.5px; letter-spacing: .8px;
  color: var(--gold-300);
  background: #5E2418; border-bottom: 1px solid rgba(228, 190, 114, .35);
}
.dtable tbody td { padding: 8px 10px; color: var(--txt-2); border-bottom: 1px solid rgba(228, 190, 114, .10); white-space: nowrap; }
.dtable tbody tr:hover td { background: rgba(255, 226, 172, .05); color: #FFF4DE; }
.dtable td.num { font-family: var(--font-num); font-feature-settings: "tnum"; color: var(--gold-200); }
.dtable .mini { display: inline-flex; padding: 1px 7px; font-size: 10.5px; letter-spacing: .6px; border: 1px solid currentColor; border-radius: 2px; color: var(--jade-300); }
.dtable .mini.warn { color: #F4B183; }

.drawer__note {
  margin: 0 0 12px; padding: 9px 12px; font-size: 11.5px; line-height: 1.7; color: var(--txt-3);
  background: rgba(255, 226, 172, .04); border-left: 2px solid rgba(228, 190, 114, .45);
}
.drawer__note b { color: var(--gold-300); }

/* 抽屉内分页条 */
.dpage {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft);
  font-size: 11.5px; color: var(--txt-3);
}
.dpage__nums { display: flex; align-items: center; gap: 5px; }
.dpage__nums span {
  min-width: 24px; height: 24px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-num); font-size: 11.5px; color: var(--txt-2);
  border: 1px solid rgba(228, 190, 114, .22); border-radius: 2px;
}
.dpage__nums span.on { color: #2A0A08; background: linear-gradient(180deg, var(--gold-200), var(--gold-400)); border-color: var(--gold-200); }

/* ============================ 响应式遮罩 ============================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
