/* 收官专题 · 演示汇报模式（PPT 式 16:9 舞台）。
   设计稿固定 1600×900 逻辑像素，由 --s 等比缩放到视口；字号按设计稿给，
   投屏到 1920×1080 时整体放大 1.2 倍，正文字号约等于 PPT 的 19pt。 */

.fb-deck {
  --d-ink: #17233a; --d-ink2: #4b5a72; --d-ink3: #8694a8;
  --d-blue: #1f5fa8; --d-blue-d: #123f75; --d-blue-l: #eaf2fc;
  --d-line: #e2e8f0; --d-line2: #eef2f7;
  --d-red: #cf3540; --d-green: #12855a; --d-amber: #c98211;
  position: fixed; inset: 0; z-index: 900; display: none;
  background: radial-gradient(120% 120% at 50% 0%, #16273f 0%, #0a1220 62%, #070c14 100%);
  font-family: inherit; color: var(--d-ink);
  -webkit-font-smoothing: antialiased;
}
.fb-deck.on { display: block; }

/* ---------- 舞台与翻页轨道 ---------- */
.fb-deck-stage {
  position: absolute; left: 50%; top: 50%;
  width: 1600px; height: 900px;
  transform: translate(-50%, -50%) scale(var(--s, 1));
  transform-origin: center center;
  background: #fff; border-radius: 4px; overflow: hidden;
  box-shadow: 0 48px 140px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06);
}
.fb-deck.on .fb-deck-stage { animation: fb-deck-in .42s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes fb-deck-in { from { opacity: 0; transform: translate(-50%, -50%) scale(calc(var(--s, 1) * .965)); } to { opacity: 1; } }

.fb-deck-track { display: flex; width: 1600px; height: 900px; transition: transform .52s cubic-bezier(.22, .72, .2, 1); will-change: transform; }
.fb-slide {
  position: relative; flex: 0 0 1600px; width: 1600px; height: 900px;
  display: flex; flex-direction: column; padding: 54px 72px 46px;
  background: #fff; overflow: hidden;
}
/* 内容随翻页淡入，避免上一页残影。 */
.fb-slide > * { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
.fb-slide.is-on > * { opacity: 1; transform: none; }
.fb-slide.is-on > *:nth-child(2) { transition-delay: .04s; }
.fb-slide.is-on > *:nth-child(3) { transition-delay: .08s; }
.fb-slide.is-on > *:nth-child(4) { transition-delay: .12s; }

/* ---------- 页眉 ---------- */
.fb-slide-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; padding-bottom: 22px; }
.fb-ttl { min-width: 0; }
.fb-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 16px; letter-spacing: .1em; color: var(--d-ink3); text-transform: uppercase; }
.fb-eyebrow i { font-style: normal; display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 24px; padding: 0 7px; font-size: 14px; font-weight: 700; letter-spacing: .02em; color: #fff; background: var(--d-blue); border-radius: 4px; }
/* h2 用 .fb-deck 前缀压过 readability.css 的 .platform-layout :is(h2,…)（0-2-1），
   否则演示页标题会被全局规则压成 17px 深色。 */
.fb-deck .fb-slide h2 { margin: 12px 0 0; font-size: 40px; line-height: 1.28; font-weight: 700; letter-spacing: -.02em; color: var(--d-ink); }
.fb-deck .fb-slide h2 em { font-style: normal; color: var(--d-red); }
.fb-deck .fb-slide h2 small { font-size: 24px; font-weight: 500; color: var(--d-ink2); letter-spacing: 0; }

.fb-slide-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 20px; }
.fb-slide-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 16px; font-size: 13.5px; line-height: 1.6; color: var(--d-ink3); }
.fb-slide-foot .pg { flex: 0 0 auto; font-variant-numeric: tabular-nums; letter-spacing: .04em; }

/* ---------- P1 总览页（标题 + 三行判断 + 四指标模块卡） ---------- */
.fb-slide.fb-overview { padding: 42px 72px 26px; gap: 8px; }
.fb-mhead h2 { margin: 0; font-size: 36px; }

.fb-omod-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 13px; }
.fb-omod { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 13px 18px 11px; background: #fff; border: 1px solid #dfe6ee; border-top: 3px solid var(--c); border-radius: 9px; box-shadow: 0 1px 2px rgba(23, 37, 63, .04); }
.fb-omod-h { display: flex; align-items: baseline; gap: 9px; }
.fb-omod-h b { font-size: 21px; font-weight: 700; letter-spacing: -.01em; color: var(--d-ink); }
.fb-omod-h i { font-style: normal; padding: 1px 6px; font-size: 12px; font-weight: 600; color: var(--d-blue); background: var(--d-blue-l); border-radius: 4px; }
.fb-omod-h span { margin-left: auto; font-size: 28px; font-weight: 700; letter-spacing: -.03em; color: var(--c); font-variant-numeric: tabular-nums; }
.fb-omod-bar { width: 100%; height: auto; display: block; margin: 6px 0 2px; }
.fb-omod-s { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding-top: 9px; border-top: 1px solid var(--d-line2); }
.fb-omod-s span { display: block; font-size: 12px; color: var(--d-ink3); white-space: nowrap; }
.fb-omod-s b { display: block; margin-top: 3px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--d-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fb-omod-s b.down { color: var(--d-red); }
.fb-omod-t { display: flex; gap: 18px; margin-top: auto; padding-top: 7px; font-size: 12.5px; color: var(--d-ink3); }
.fb-omod-t i { font-style: normal; }
.fb-omod-t i.bad { color: var(--d-red); font-weight: 600; }

/* ---------- P2—P5 指标页（参照汇报 PPT：标题 + 三行判断 + 中排两图 + 全宽分省） ---------- */
.fb-slide.fb-metric { padding: 42px 72px 26px; gap: 8px; }
.fb-slide.fb-metric .fb-mhead h2 { font-size: 36px; }
.fb-mhead h2 b { color: var(--d-blue-d); }
.fb-mhead h2 i { font-style: normal; margin: 0 14px; color: #c3cedc; font-weight: 400; }
.fb-mhead h2 em { font-style: normal; color: var(--d-red); }

.fb-look { padding: 8px 14px 9px; background: #f4f8fd; border: 1px solid #dde9f6; border-left: 3px solid var(--d-blue); border-radius: 7px; }
.fb-look-cap { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.fb-look-cap b { font-size: 13px; font-weight: 700; color: var(--d-blue-d); }
.fb-look-cap span { font-size: 12px; color: var(--d-ink3); }
.fb-look-cap .fb-mini-reset { margin-left: auto; }
.fb-look-body { outline: none; border-radius: 4px; }
.fb-look-body:focus { background: #fff; box-shadow: 0 0 0 3px rgba(43, 108, 184, .12); }
.fb-look-row { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.fb-look-row i { font-style: normal; font-size: 15px; font-weight: 700; color: var(--d-ink); white-space: nowrap; }
.fb-look-row p { margin: 0; font-size: 14px; line-height: 1.45; color: #23324a; }
.fb-look-row b { font-weight: 700; color: var(--d-blue-d); white-space: nowrap; }
.fb-look-row b.ok { color: var(--d-green); }
.fb-look-row b.bad { color: var(--d-red); }

.fb-mid { display: grid; grid-template-columns: 700px minmax(0, 1fr); gap: 14px; }
.fb-mcard { min-width: 0; background: #fff; border: 1px solid #dfe6ee; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 2px rgba(23, 37, 63, .04); }
.fb-mcard-t { display: flex; align-items: baseline; gap: 12px; padding: 5px 14px; line-height: 1.3; background: var(--d-blue-d); color: #fff; }
.fb-mcard-t b { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.fb-mcard-t span { font-size: 12.5px; color: rgba(255, 255, 255, .82); white-space: nowrap; }
.fb-mcard-t span i { font-style: normal; font-weight: 700; color: #ffc9cd; }
.fb-mcard svg { width: 100%; height: auto; display: block; padding: 2px 4px 0; box-sizing: border-box; }
.fb-mcard-prov { flex: 1; min-height: 0; }
.fb-prov-notes { display: flex; gap: 14px; margin-left: auto; }
.fb-prov-notes i { font-style: normal; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.fb-prov-notes i.ok { color: #9df0c6; }
.fb-prov-notes i.bad { color: #ffc4c9; }
.fb-slide.fb-metric .fb-slide-foot { padding-top: 2px; }
.fb-mcard svg { flex-shrink: 0; }

.fb-quote { position: relative; padding: 16px 18px 16px 20px; background: #f5f9ff; border: 1px solid #dbe8f9; border-left: 3px solid var(--d-blue); border-radius: 8px; }
.fb-quote .cap { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.fb-quote .cap b { font-size: 15px; font-weight: 700; color: var(--d-blue-d); }
.fb-quote .cap span { font-size: 12.5px; color: var(--d-ink3); }
.fb-quote .txt { font-size: 16.5px; line-height: 1.72; color: #23324a; outline: none; border-radius: 4px; }
.fb-quote .txt:focus { background: #fff; box-shadow: 0 0 0 3px rgba(43, 108, 184, .12); }
.fb-quote .txt b { color: var(--d-blue-d); font-weight: 700; }
.fb-quote .txt .fb-warn { color: var(--d-red); }
.fb-quote .txt strong { color: var(--d-red); font-weight: 700; }
.fb-quote .txt b, .fb-quote .txt strong { white-space: nowrap; }

.fb-stat3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fb-stat3 > div { padding: 13px 14px; background: #fbfcfe; border: 1px solid var(--d-line2); border-radius: 8px; min-width: 0; }
.fb-stat3 span { display: block; font-size: 13px; color: var(--d-ink3); white-space: nowrap; }
.fb-stat3 b { display: block; margin-top: 5px; font-size: 26px; font-weight: 700; letter-spacing: -.035em; color: var(--d-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fb-stat3 b.down { color: var(--d-red); }
.fb-stat3 em { display: block; margin-top: 2px; font-style: normal; font-size: 12px; color: var(--d-ink3); }

/* ---------- P6 存在问题（页眉只留 eyebrow；下滑省份用表格通报） ---------- */
.fb-issues .fb-slide-top { padding-bottom: 10px; }
.fb-dtable { flex-shrink: 0; margin-top: 6px; display: flex; flex-direction: column; border: 1px solid var(--d-line2); border-radius: 7px; overflow: hidden; }
/* 横向双排：每行两组「省份 + 下调金额」；富余空间平分给中间与右侧，两组居中排布。 */
.fb-dtr { display: grid; grid-template-columns: 54px 92px minmax(14px, 1fr) 54px 92px minmax(14px, 1fr); gap: 8px; align-items: center; padding: 0 12px; font-size: 12px; line-height: 1.25; border-top: 1px solid var(--d-line2); }
.fb-dtr:first-child { border-top: 0; }
.fb-dth { padding: 3px 12px; font-size: 11.5px; font-weight: 600; color: var(--d-ink3); background: #f7f9fc; }
.fb-dtr .nm { font-weight: 600; color: var(--d-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-dtr .v { text-align: left; font-weight: 700; color: var(--d-red); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* 全省入表后卡片变高：问题页整体收紧，保证 21 省的双排表完整放下。 */
.fb-slide.fb-issues .fb-slide-body { gap: 12px; }
.fb-slide.fb-issues .fb-quote { padding: 8px 16px 8px 18px; }
.fb-slide.fb-issues .fb-quote .txt { font-size: 15.5px; line-height: 1.55; }
.fb-slide.fb-issues .fb-risk-h { padding-bottom: 3px; }
.fb-slide.fb-issues .fb-risk-h b { font-size: 17px; }
.fb-slide.fb-issues .fb-risk-body { padding-top: 5px; gap: 4px; }
.fb-slide.fb-issues .fb-dtable { margin-top: 2px; }
.fb-risk-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 13px; }
.fb-risk { display: flex; flex-direction: column; min-height: 0; padding: 11px 16px 9px; background: #fbfcfe; border: 1px solid var(--d-line2); border-top: 3px solid #b9c8dd; border-radius: 9px; overflow: hidden; }
.fb-risk-h { display: flex; align-items: baseline; gap: 10px; padding-bottom: 5px; border-bottom: 1px solid var(--d-line2); }
.fb-risk-h b { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.fb-risk-h span { font-size: 13px; color: var(--d-ink3); }
.fb-risk-h em { margin-left: auto; font-style: normal; font-size: 13px; font-weight: 600; color: var(--d-red); white-space: nowrap; }
.fb-risk-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 5px; padding-top: 7px; }
.fb-risk-lbl { font-size: 12px; font-weight: 600; letter-spacing: .03em; color: var(--d-ink3); }
.fb-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.fb-tag { display: inline-flex; align-items: baseline; gap: 4px; padding: 1px 7px; font-size: 13px; color: var(--c); background: #fdf4f5; border-radius: 5px; white-space: nowrap; }
.fb-tag b { font-weight: 700; font-variant-numeric: tabular-nums; }
.fb-tag.more { color: var(--d-ink3); background: #f1f3f7; }

/* ---------- 恢复默认按钮（页内小按钮） ---------- */
.fb-mini-reset { margin-left: auto; padding: 2px 8px; font-size: 11.5px; color: var(--d-ink2); background: #fff; border: 1px solid var(--d-line); border-radius: 5px; cursor: pointer; }
.fb-mini-reset:hover { color: var(--d-blue); border-color: var(--d-blue); }

/* ---------- HUD：进度、翻页、全屏、退出 ---------- */
.fb-deck-progress { position: fixed; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .1); z-index: 906; }
.fb-deck-progress i { display: block; height: 100%; width: 12.5%; background: linear-gradient(90deg, #3d7fd4, #6faaf0); transition: width .45s cubic-bezier(.22, .72, .2, 1); }

/* HUD 移到右上角，避免压住分省图最后一行数据与页脚。 */
.fb-deck-hud { position: fixed; right: 22px; top: 18px; z-index: 907; display: flex; align-items: center; gap: 4px; padding: 5px; background: rgba(10, 19, 32, .74); border: 1px solid rgba(255, 255, 255, .14); border-radius: 11px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0, 0, 0, .36); }
.fb-deck-hud button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 30px; color: #dbe6f4; background: transparent; border: 0; border-radius: 7px; cursor: pointer; transition: background .14s ease, color .14s ease; }
.fb-deck-hud button:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.fb-deck-hud button:disabled { opacity: .3; cursor: default; }
.fb-deck-hud svg { width: 16px; height: 16px; }
.fb-pager { min-width: 64px; text-align: center; font-size: 13px; color: #a9b8cb; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.fb-pager b { font-size: 14px; font-weight: 700; color: #fff; }
.fb-hud-sep { width: 1px; height: 18px; margin: 0 2px; background: rgba(255, 255, 255, .16); }

.fb-deck-arrow { position: fixed; top: 50%; z-index: 906; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 76px; margin-top: -38px; color: #cddcee; background: rgba(12, 22, 36, .5); border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; cursor: pointer; opacity: 0; transition: opacity .2s ease, background .16s ease, color .16s ease; }
.fb-deck-arrow.prev { left: 18px; }
.fb-deck-arrow.next { right: 18px; }
.fb-deck:hover .fb-deck-arrow { opacity: 1; }
.fb-deck-arrow:hover { color: #fff; background: rgba(31, 95, 168, .72); }
.fb-deck-arrow:disabled { opacity: 0; pointer-events: none; }
.fb-deck-arrow svg { width: 20px; height: 20px; }

/* 首屏提示：进入后 3 秒内提示键盘操作，放顶部避免遮挡图表。 */
.fb-deck-hint { position: fixed; left: 50%; top: 18px; z-index: 907; transform: translateX(-50%); padding: 8px 16px; font-size: 12.5px; color: #cbd8e9; background: rgba(10, 19, 32, .74); border: 1px solid rgba(255, 255, 255, .12); border-radius: 99px; backdrop-filter: blur(10px); animation: fb-hint 5s ease forwards; pointer-events: none; }
@keyframes fb-hint { 0%, 72% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- 入口按钮 ---------- */
.fb-deck-launch { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; font-size: 14px; font-weight: 600; color: #fff; background: #16233c; border: 0; border-radius: 9px; cursor: pointer; box-shadow: 0 6px 18px -8px rgba(22, 35, 60, .7); transition: background .16s ease, transform .16s ease; }
.fb-deck-launch:hover { background: #1f3357; transform: translateY(-1px); }
.fb-deck-launch svg { width: 15px; height: 15px; }
#analytics > .page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .fb-deck-arrow { display: none; }
  .fb-deck-hud { right: 10px; bottom: 12px; transform: scale(.9); transform-origin: right bottom; }
  #analytics > .page-heading { align-items: flex-start; }
}
