:root {
  --aa-ink: #182338;
  --aa-muted: #6a768c;
  --aa-card: rgba(255,255,255,.88);
  --aa-top: rgba(255,255,255,.72);
  --aa-line: rgba(190, 210, 235, .65);
  --aa-row: rgba(247, 250, 253, .78);
  --aa-shadow: 0 12px 36px rgba(40, 90, 160, .10);
  --aa-radius: 14px;
  --aa-radius-sm: 10px;
  --aa-accent: #3a7fd4;
  --aa-accent-2: #1a4f96;
  --aa-link: #1d5ebd;
  --aa-sider-from: #0c1e3a;
  --aa-sider-to: #1a4a86;
  --aa-ico-bg: rgba(232,240,251,.95);
  --aa-green: #1a7a52;
  --aa-red: #b23b32;
  --aa-warn: #9a7420;
  --aa-pie-short: #6E9FBF;
  --aa-pie-mid: #D2A679;
  --aa-pie-long: #8FBB9A;
  --aa-content-max: none;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: var(--aa-ink);
  background-color: #e8eef6;
  background-image:
    radial-gradient(900px 480px at 8% -10%, rgba(255,255,255,.7), transparent 55%),
    radial-gradient(700px 420px at 100% 0%, rgba(180, 205, 235, .28), transparent 50%),
    linear-gradient(135deg, #d7e4f5 0%, #e8f0fa 45%, #f3f7fc 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.aa-card-soft {
  background: linear-gradient(165deg, rgba(255,255,255,.92) 0%, rgba(248,251,255,.84) 100%);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    var(--aa-shadow);
}
.diag-parallel {
  display: grid !important;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.15fr);
  gap: 16px;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 22px !important;
  align-items: stretch;
}
.diag-parallel > [class*="col-"] {
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.diag-pie-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px;
}
.diag-pie-card > h5 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.diag-pie-card > h5::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--aa-pie-short), var(--aa-pie-long));
}
.diag-pie-card .chart-box-diag {
  flex: 1 1 auto;
  min-height: 220px;
  height: auto;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(244,248,252,.9), rgba(255,255,255,.35));
  padding: 8px;
}
.diag-ratio-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.diag-ratio-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--aa-line);
  color: var(--aa-muted);
}
.diag-ratio-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.diag-bucket-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.diag-bucket-card {
  margin-bottom: 0 !important;
  padding: 16px 18px 18px !important;
  position: relative;
  overflow: hidden;
}
.diag-bucket-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--aa-accent);
  opacity: .45;
}
.diag-bucket-card.is-over::before { background: var(--aa-warn); opacity: .7; }
.diag-bucket-card.is-under::before { background: var(--aa-red); opacity: .65; }
.diag-bucket-card.is-ok::before { background: var(--aa-green); opacity: .65; }
.diag-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.diag-metric {
  text-align: center;
  padding: 8px 6px;
  border-radius: 10px;
  background: rgba(245, 249, 253, .9);
  border: 1px solid rgba(200, 216, 236, .45);
}
.diag-metric .lbl {
  font-size: 11px;
  color: var(--aa-muted);
  margin-bottom: 4px;
}
.diag-metric .val {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.diag-bucket-card .small {
  margin-top: 2px;
  line-height: 1.55;
}
.diag-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.diag-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(58, 127, 212, .08);
  color: var(--aa-accent-2);
  border: 1px solid rgba(58, 127, 212, .16);
}
.diag-parallel + .aa-card {
  margin-top: 2px;
}
.opt-bucket-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.opt-bucket-chip {
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255,255,255,.85), rgba(240,246,255,.7));
  border: 1px solid rgba(170, 195, 230, 0.45);
}
/* 完整报告外框：双线证书风，屏幕与导出统一 */
#reportArea {
  --report-frame: #1a3a6b;
  --report-accent: #c4a35a;
  --report-frame-soft: rgba(26, 58, 107, .14);
  --report-a4-w: 210mm;
  width: var(--report-a4-w);
  max-width: min(var(--report-a4-w), 100%);
  margin: 0 auto;
  padding: 8px 0 28px;
  box-sizing: border-box;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
/* 报告分区仅为语义包裹，不强制换页。
   若内容刚好溢出一页再叠加 page-break-after，会多出一整页空白。 */
.report-page {
  position: relative;
  width: 100%;
  min-height: 0;
  break-after: auto;
  page-break-after: auto;
  box-sizing: border-box;
  background: #fff;
  border: 1.5px solid var(--report-frame, #1a3a6b);
  border-radius: 2px;
  padding: 12mm 11mm;
  box-shadow:
    0 12px 40px rgba(26, 58, 107, .07),
    inset 0 0 0 3px #fff,
    inset 0 0 0 4.25px var(--report-frame, #1a3a6b),
    inset 0 0 0 5.5px #fff,
    inset 0 0 0 6px rgba(196, 163, 90, .55);
}
/* 保留包裹类名兼容；打印/预览一律通栏，避免 column-count 拆散标题与表格 */
.report-a4-cols {
  column-count: 1;
  column-gap: 0;
  column-rule: none;
  display: block;
}
.report-span-all {
  display: block;
  width: 100%;
  break-inside: auto;
  page-break-inside: auto;
}
#reportArea .report-page .aa-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 12px !important;
}
#reportArea h4,
#reportArea h5 {
  break-after: avoid;
  page-break-after: avoid;
}
@media (max-width: 860px) {
  #reportArea {
    width: 100%;
    max-width: 100%;
    padding: 4px;
  }
  .report-page {
    padding: 14px 12px;
  }
}
.report-frame-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
/* 外角双折线 + 金色角点 */
.rf-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  box-sizing: border-box;
}
.rf-corner::before,
.rf-corner::after {
  content: '';
  position: absolute;
  box-sizing: border-box;
}
.rf-corner::before {
  width: 5px;
  height: 5px;
  background: var(--report-accent, #c4a35a);
  box-shadow: 0 0 0 1px rgba(26, 58, 107, .28);
}
.rf-tl {
  top: 6px;
  left: 6px;
  border-top: 2px solid var(--report-frame, #1a3a6b);
  border-left: 2px solid var(--report-frame, #1a3a6b);
}
.rf-tl::before { top: -1px; left: -1px; }
.rf-tl::after {
  top: 4px; left: 4px;
  width: 10px; height: 10px;
  border-top: 1px solid var(--report-accent, #c4a35a);
  border-left: 1px solid var(--report-accent, #c4a35a);
}
.rf-tr {
  top: 6px;
  right: 6px;
  border-top: 2px solid var(--report-frame, #1a3a6b);
  border-right: 2px solid var(--report-frame, #1a3a6b);
}
.rf-tr::before { top: -1px; right: -1px; }
.rf-tr::after {
  top: 4px; right: 4px;
  width: 10px; height: 10px;
  border-top: 1px solid var(--report-accent, #c4a35a);
  border-right: 1px solid var(--report-accent, #c4a35a);
}
.rf-bl {
  bottom: 6px;
  left: 6px;
  border-bottom: 2px solid var(--report-frame, #1a3a6b);
  border-left: 2px solid var(--report-frame, #1a3a6b);
}
.rf-bl::before { bottom: -1px; left: -1px; }
.rf-bl::after {
  bottom: 4px; left: 4px;
  width: 10px; height: 10px;
  border-bottom: 1px solid var(--report-accent, #c4a35a);
  border-left: 1px solid var(--report-accent, #c4a35a);
}
.rf-br {
  bottom: 6px;
  right: 6px;
  border-bottom: 2px solid var(--report-frame, #1a3a6b);
  border-right: 2px solid var(--report-frame, #1a3a6b);
}
.rf-br::before { bottom: -1px; right: -1px; }
.rf-br::after {
  bottom: 4px; right: 4px;
  width: 10px; height: 10px;
  border-bottom: 1px solid var(--report-accent, #c4a35a);
  border-right: 1px solid var(--report-accent, #c4a35a);
}
/* 角部外侧小花饰 */
.rf-flourish {
  position: absolute;
  width: 28px;
  height: 10px;
  color: var(--report-accent, #c4a35a);
  font-size: 8px;
  line-height: 1;
  letter-spacing: -1px;
  opacity: .9;
}
.rf-flourish::before {
  content: '❖';
  display: block;
  text-align: center;
}
.rf-f-tl { top: 2px; left: 30px; }
.rf-f-tr { top: 2px; right: 30px; }
.rf-f-bl { bottom: 2px; left: 30px; }
.rf-f-br { bottom: 2px; right: 30px; }
/* 中线饰件：双线 + 中心花纹 */
.rf-edge {
  position: absolute;
  pointer-events: none;
}
.rf-top,
.rf-bottom {
  left: 18%;
  right: 18%;
  height: 14px;
}
.rf-top { top: 5px; }
.rf-bottom { bottom: 5px; }
.rf-top::before,
.rf-bottom::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  background:
    linear-gradient(90deg, transparent 0%, var(--report-frame, #1a3a6b) 10%, var(--report-frame, #1a3a6b) 90%, transparent 100%) center / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 8%, rgba(196, 163, 90, .7) 22%, rgba(196, 163, 90, .7) 78%, transparent 92%) center / 100% 1px no-repeat;
  background-position: center 0, center 2px;
}
.rf-top::after,
.rf-bottom::after {
  content: '❖';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 0 8px;
  font-size: 10px;
  line-height: 1;
  color: var(--report-accent, #c4a35a);
  text-shadow: -10px 0 0 rgba(26, 58, 107, .35), 10px 0 0 rgba(26, 58, 107, .35);
}
.rf-left,
.rf-right {
  top: 16%;
  bottom: 16%;
  width: 14px;
}
.rf-left { left: 5px; }
.rf-right { right: 5px; }
.rf-left::before,
.rf-right::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background:
    linear-gradient(180deg, transparent 0%, var(--report-frame, #1a3a6b) 12%, var(--report-frame, #1a3a6b) 88%, transparent 100%) center / 1px 100% no-repeat,
    linear-gradient(180deg, transparent 10%, rgba(196, 163, 90, .7) 24%, rgba(196, 163, 90, .7) 76%, transparent 90%) center / 1px 100% no-repeat;
  background-position: 0 center, 2px center;
}
.rf-left::after,
.rf-right::after {
  content: '❖';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 5px 0;
  font-size: 9px;
  line-height: 1;
  color: var(--report-accent, #c4a35a);
}
/* 边线四分位点缀 */
.rf-mark {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fff;
  border: 1px solid var(--report-accent, #c4a35a);
  transform: rotate(45deg);
  box-sizing: border-box;
}
.rf-mt1 { top: 8px; left: 28%; }
.rf-mt2 { top: 8px; right: 28%; }
.rf-mb1 { bottom: 8px; left: 28%; }
.rf-mb2 { bottom: 8px; right: 28%; }
.rf-ml1 { left: 8px; top: 28%; }
.rf-ml2 { left: 8px; bottom: 28%; }
.rf-mr1 { right: 8px; top: 28%; }
.rf-mr2 { right: 8px; bottom: 28%; }
.report-page + .report-page {
  margin-top: 18px;
}
.report-note { display: none; }
@media (max-width: 900px) {
  .opt-bucket-strip { grid-template-columns: 1fr; }
}
a { color: var(--aa-link); text-decoration: none; }
a:hover { color: var(--aa-accent-2); }

.aa-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
}
.aa-sider {
  width: 228px;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(90, 150, 230, .28), transparent 55%),
    radial-gradient(90% 50% at 100% 100%, rgba(30, 90, 180, .35), transparent 50%),
    linear-gradient(180deg, var(--aa-sider-from), var(--aa-sider-to));
  color: #fff;
  padding: 18px 12px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 2;
  box-shadow: 8px 0 28px rgba(8, 28, 60, .18);
  border-right: 1px solid rgba(140, 180, 230, .22);
}
.aa-sider .brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 4px 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.aa-sider .brand-text {
  min-width: 0;
}
.aa-sider .brand-en {
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .04em;
  color: #fff;
  white-space: nowrap;
  line-height: 1.2;
}
.aa-sider .brand-cn {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  color: rgba(255,255,255,.6);
  line-height: 1.3;
  white-space: nowrap;
}
.aa-sider .brand-sub {
  font-size: 11px; font-weight: 400; color: rgba(255,255,255,.55);
  margin-top: 2px;
  letter-spacing: .02em;
}
.aa-sider .nav-ico {
  display: none;
  width: 28px; height: 28px; border-radius: 8px;
  align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,.12);
  flex-shrink: 0;
}
.aa-sider .nav-txt { min-width: 0; }
.aa-topbar-left {
  display: flex; align-items: center; gap: 10px; min-width: 0;
}
.aa-sider-toggle {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid rgba(160, 190, 230, .45);
  background: rgba(255,255,255,.72);
  color: var(--aa-ink);
  display: inline-grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.aa-sider-toggle:hover {
  background: #fff;
  border-color: rgba(90, 150, 230, .55);
  box-shadow: 0 4px 12px rgba(30, 70, 130, .1);
}
/* 侧栏折叠：只留图标，主区变宽 */
.aa-shell.aa-sider-collapsed .aa-sider {
  width: 64px;
  padding: 14px 8px;
}
.aa-shell.aa-sider-collapsed .aa-sider .brand {
  justify-content: center;
  padding: 6px 0 14px;
}
.aa-shell.aa-sider-collapsed .aa-sider .brand-en,
.aa-shell.aa-sider-collapsed .aa-sider .brand-cn,
.aa-shell.aa-sider-collapsed .aa-sider .brand-text,
.aa-shell.aa-sider-collapsed .aa-sider .nav-label,
.aa-shell.aa-sider-collapsed .aa-sider .nav-txt,
.aa-shell.aa-sider-collapsed .aa-sider .foot-user {
  display: none;
}
.aa-shell.aa-sider-collapsed .aa-sider .nav-ico {
  display: inline-flex;
}
.aa-shell.aa-sider-collapsed .aa-sider a {
  justify-content: center;
  padding: 10px 8px;
  gap: 0;
}
.aa-shell.aa-sider-collapsed .aa-sider a:hover {
  padding-left: 8px;
}
.aa-shell.aa-sider-collapsed .aa-sider .foot a {
  justify-content: center;
  width: 100%;
  margin-top: 4px;
}
.aa-sider .brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, #5a9aef, var(--aa-accent-2));
  display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 17px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 8px 18px rgba(20, 80, 160, .35);
  animation: aa-mark-glow 3.6s ease-in-out infinite;
  flex-shrink: 0;
}
.aa-sider .nav-label {
  font-size: 11px; letter-spacing: 1px; color: rgba(255,255,255,.45);
  padding: 10px 10px 6px; text-transform: uppercase;
}
.aa-sider a {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.78);
  padding: 10px 12px;
  border-radius: var(--aa-radius-sm);
  margin-bottom: 4px;
  font-size: 14px;
  transition: background .2s ease, color .2s ease, padding-left .2s ease, box-shadow .2s ease;
}
.aa-sider a:hover, .aa-sider a.active {
  background: linear-gradient(90deg, rgba(255,255,255,.16), rgba(90,150,230,.12));
  color: #fff;
  box-shadow: inset 3px 0 0 rgba(255,255,255,.9), 0 6px 16px rgba(10, 40, 90, .18);
  backdrop-filter: blur(8px);
}
.aa-sider .foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
  color: rgba(255,255,255,.58);
}
.aa-sider .foot a { display: inline-flex; margin-top: 8px; box-shadow: none; background: transparent; padding: 6px 0; }

.aa-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0;
  position: relative;
  /* 不要给主区设高 z-index，否则 Bootstrap 弹窗会被 backdrop 盖住点不了 */
  overflow: visible;
}
.aa-topbar {
  height: 56px;
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(245,249,255,.58));
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid rgba(190, 210, 235, .4);
  box-shadow: 0 8px 20px rgba(30, 70, 130, .04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 5;
  flex-shrink: 0;
}
.aa-topbar .env {
  background: rgba(255,255,255,.7);
  color: #2f6fed;
  border: 1px solid rgba(100, 150, 220, .28);
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  animation: aa-env-pulse 3.2s ease-in-out infinite;
  backdrop-filter: blur(8px);
}
.aa-content {
  flex: 1;
  width: 100%;
  max-width: var(--aa-content-max);
  margin: 0;
  padding: 16px 14px 24px;
  position: relative;
  overflow: visible;
}

/* 入场 / 悬停动效 */
@keyframes aa-rise {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes aa-env-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 109, 237, 0); }
  50% { box-shadow: 0 0 0 6px rgba(47, 109, 237, .08); }
}
@keyframes aa-mark-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 8px 18px rgba(20, 80, 160, .35); }
  50% { box-shadow: 0 0 0 1px rgba(255,255,255,.28), 0 8px 22px rgba(60, 130, 220, .5); }
}
.aa-content > * {
  animation: aa-rise .48s cubic-bezier(.22,.7,.25,1) both;
}
.aa-content > *:nth-child(1) { animation-delay: .03s; }
.aa-content > *:nth-child(2) { animation-delay: .09s; }
.aa-content > *:nth-child(3) { animation-delay: .15s; }
.aa-content > *:nth-child(4) { animation-delay: .21s; }
.aa-content > *:nth-child(5) { animation-delay: .27s; }
.aa-content > *:nth-child(n+6) { animation-delay: .32s; }

.aa-card {
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.aa-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.75) inset,
    0 18px 44px rgba(40, 90, 160, .14);
  border-color: rgba(160, 195, 235, .7);
}
.aa-top {
  position: relative;
  z-index: 1;
  padding: 4px 2px 2px;
}
.aa-top h1 {
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}
.aa-sider a {
  transition: background .2s ease, color .2s ease, padding-left .2s ease;
}
.aa-sider a:hover {
  padding-left: 10px;
}
.btn-brand, .btn-accent,
.btn-outline-secondary, .btn-outline-primary, .btn-ghost {
  transition: filter .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn-brand:hover, .btn-accent:hover {
  box-shadow: 0 8px 18px rgba(26, 79, 150, .25);
}
.aa-table tbody tr {
  transition: background .15s ease;
}
.aa-table .col-ops a {
  transition: color .15s ease, opacity .15s ease;
}
.aa-table .col-ops a:hover {
  opacity: .82;
}

@media (prefers-reduced-motion: reduce) {
  .aa-content > *,
  .aa-topbar .env {
    animation: none !important;
  }
  .aa-card:hover { transform: none; }
  .aa-sider a:hover { padding-left: 12px; }
}

.aa-top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-bottom: 18px;
}
.aa-top h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.25;
}
.aa-top .sub { margin: 6px 0 0; color: var(--aa-muted); font-size: 13px; line-height: 1.45; }
.page-next-card {
  margin-top: 18px;
  margin-bottom: 8px;
  padding: 0;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(170, 195, 230, .55);
  box-shadow: 0 12px 32px rgba(26, 58, 107, .07);
  overflow: hidden;
}
.page-next-card-hd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 18px 22px;
  background: linear-gradient(120deg, #1f4f8a 0%, #2f7de1 58%, #4a9be8 100%);
  color: #fff;
}
.page-next-kicker {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .78;
  margin-bottom: 4px;
}
.page-next-card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 740;
  letter-spacing: .02em;
  color: #fff;
}
.page-next-card-desc {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255,255,255,.82);
  max-width: 36em;
}
.page-next-steps {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 4px;
}
.page-next-steps li {
  position: relative;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(255,255,255,.7);
  border-radius: 999px;
}
.page-next-steps li + li::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 50%;
  width: 1px;
  height: 12px;
  margin-top: -6px;
  background: rgba(255,255,255,.22);
}
.page-next-steps li.is-done { color: rgba(255,255,255,.88); }
.page-next-steps li.is-current {
  background: #fff;
  color: #1f4f8a;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}
.page-next-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr);
  gap: 0;
}
.page-next-col {
  padding: 18px 22px 20px;
  border-right: 1px solid rgba(210,222,238,.9);
}
.page-next-aside {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(180deg, #f5f9ff, #eef4fb);
}
.page-next-label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  color: #5a6b82;
  margin-bottom: 6px;
}
.page-next-aside-text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #5a6b82;
}
.page-next-cta {
  width: 100%;
  font-weight: 740;
  letter-spacing: .02em;
  box-shadow: 0 10px 22px rgba(47,125,225,.28);
}
.page-next-back {
  display: inline-block;
  text-align: center;
  font-size: 13px;
  color: #5a6b82;
  text-decoration: none;
}
.page-next-back:hover { color: #1f4f8a; }
.page-next-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.page-next-card-compact .page-next-card-hd {
  background: linear-gradient(120deg, #1a3a6b 0%, #2f7de1 100%);
}
.page-next-card-compact .page-next-cta {
  width: auto;
  min-width: 168px;
}
.page-next-slim {
  margin-top: 18px;
  margin-bottom: 8px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(170, 195, 230, .55);
  box-shadow: 0 8px 22px rgba(40, 90, 160, .06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}
.page-next-slim-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.page-next-slim-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #1f4f8a;
  background: rgba(47,125,225,.1);
  border: 1px solid rgba(47,125,225,.18);
}
.page-next-slim-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 720;
  color: var(--aa-ink);
  line-height: 1.3;
}
.page-next-slim-copy span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--aa-muted);
  line-height: 1.45;
}
.page-next-cta-slim {
  min-width: 148px;
  font-weight: 720;
  box-shadow: 0 6px 14px rgba(47,125,225,.22);
}
.page-next-report {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  gap: 0;
  overflow: hidden;
}
.page-next-report-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(210, 222, 238, .9);
  background: linear-gradient(180deg, rgba(245,249,255,.95), rgba(255,255,255,.6));
}
.page-next-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(47,125,225,.08);
  border: 1px solid rgba(47,125,225,.12);
}
.page-next-pills span {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  color: #7a8ba3;
}
.page-next-pills span.is-done { color: #3d6fa8; }
.page-next-pills span.is-on {
  background: #fff;
  color: #1f4f8a;
  box-shadow: 0 2px 6px rgba(47,125,225,.12);
}
.page-next-report-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 0;
}
.page-next-report-fields {
  padding: 14px 18px 16px;
  border-right: 1px solid rgba(210, 222, 238, .9);
  min-width: 0;
}
.page-next-report-fields .form-select {
  margin-bottom: 10px;
  max-width: 480px;
}
.page-next-report-fields .page-next-label + .report-intro-preview {
  margin-top: 0;
}
.page-next-report-actions {
  padding: 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  background: rgba(247, 250, 252, .85);
}
.page-next-report-actions .page-next-cta-slim {
  width: 100%;
  min-width: 0;
}
.page-next-report .page-next-back {
  text-align: center;
}
.page-next-foot {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  border: 1px dashed rgba(170,195,230,.7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.page-next-foot-tip {
  font-size: 12.5px;
  color: var(--aa-muted);
  line-height: 1.5;
}
.report-intro-preview {
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-line;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7fafc;
  border: 1px solid var(--aa-line);
  max-height: 140px;
  overflow: auto;
  color: #2a3a52;
}
@media (max-width: 900px) {
  .page-next-grid { grid-template-columns: 1fr; }
  .page-next-col { border-right: 0; border-bottom: 1px solid rgba(210,222,238,.9); }
}
@media (max-width: 900px) {
  .page-next-report-body { grid-template-columns: 1fr; }
  .page-next-report-fields { border-right: 0; border-bottom: 1px solid rgba(210,222,238,.9); }
}
@media (max-width: 768px) {
  .page-next-card-hd { align-items: stretch; }
  .page-next-actions { width: 100%; }
  .page-next-card-compact .page-next-cta,
  .page-next-cta-slim { flex: 1; }
  .page-next-steps { width: 100%; justify-content: stretch; }
  .page-next-steps li { flex: 1; text-align: center; }
  .page-next-slim-copy { width: 100%; }
  .page-next-report-top { align-items: flex-start; }
}

.aa-card {
  background: var(--aa-card);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: var(--aa-radius);
  padding: 16px 16px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.65) inset,
    0 14px 40px rgba(40, 90, 160, .11);
  margin-bottom: 12px;
}
.aa-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  margin-bottom: 16px;
}
.aa-card-head h5 { margin: 0; }
.aa-card h5 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
}
.aa-muted { color: var(--aa-muted); }

.btn-brand, .btn-accent {
  background: linear-gradient(180deg, var(--aa-accent), var(--aa-accent-2));
  border: none;
  color: #fff;
  font-weight: 650;
  border-radius: var(--aa-radius-sm);
  transform: none !important;
}
.btn-brand:hover, .btn-accent:hover { filter: brightness(1.05); color: #fff; transform: none !important; }
.btn-brand:active, .btn-accent:active,
.btn-outline-secondary:active, .btn-outline-primary:active, .btn-ghost:active {
  transform: none !important;
  box-shadow: none !important;
}
.btn-outline-secondary, .btn-outline-primary, .btn-ghost {
  background: rgba(255,255,255,.78);
  border: 1px solid var(--aa-line);
  color: var(--aa-ink);
  border-radius: var(--aa-radius-sm);
  transform: none !important;
  backdrop-filter: blur(8px);
}
.btn-outline-secondary:hover, .btn-outline-primary:hover, .btn-ghost:hover {
  background: #fff; color: var(--aa-ink); transform: none !important;
}

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-item {
  padding: 18px; border-radius: calc(var(--aa-radius) - 4px);
  background: rgba(255,255,255,.45);
  border: 1px solid var(--aa-line);
}
.stat-item .num { font-size: 28px; font-weight: 700; color: var(--aa-accent-2); }
.bucket-box {
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255,255,255,.72), rgba(240,246,252,.55));
  border: 1px solid var(--aa-line);
  height: 100%;
}
.badge {
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 999px;
  padding: .35em .7em;
}

.auth-wrap {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow: hidden;
  background-color: #0c1e3a;
  background-image:
    linear-gradient(108deg, rgba(4, 18, 43, .94) 0%, rgba(7, 32, 67, .84) 42%, rgba(11, 46, 86, .54) 100%),
    radial-gradient(760px 520px at 20% 13%, rgba(58, 145, 239, .26), transparent 68%),
    radial-gradient(620px 420px at 92% 12%, rgba(234, 196, 94, .12), transparent 64%),
    url("/assets/img/workspace-bg.jpg");
  background-position: center;
  background-size: cover;
}
.auth-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .38;
  background-image:
    linear-gradient(rgba(139, 191, 246, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 191, 246, .07) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse 78% 72% at 18% 48%, #000 0%, transparent 78%);
}
.auth-wrap::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -120px;
  bottom: -200px;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 190, 255, .3), rgba(53, 119, 204, .08) 43%, transparent 69%);
}
.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(241,247,255,.9));
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  border-radius: 16px;
  padding: 26px 28px 22px;
  border: 1px solid rgba(255,255,255,.88);
  box-shadow: 0 26px 72px rgba(2, 14, 35, .45), 0 1px 0 rgba(255,255,255,.86) inset;
}
.auth-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1d66c7, #55a5f5 62%, #c7a45b);
}
.auth-card h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -.02em;
  margin: 0 0 6px;
}
.auth-card h1::before {
  content: "资";
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, #3e93ef, #1753a5);
  box-shadow: 0 6px 15px rgba(30, 104, 200, .28);
}
.auth-card .aa-muted { color: #71819a !important; }
.auth-card .form-label { margin-bottom: 4px; font-weight: 600; color: #35445c; font-size: 13px; }
.auth-card .mb-3 { margin-bottom: 0.7rem !important; }
.auth-card .mb-4 { margin-bottom: 0.85rem !important; }
.auth-card .mt-3 { margin-top: 0.7rem !important; }
.auth-card .form-control {
  min-height: 42px;
  border-color: #d9e4f2;
  background: rgba(255,255,255,.88);
  box-shadow: none;
}
.auth-card .form-control:focus {
  border-color: #67a7f2;
  box-shadow: 0 0 0 3px rgba(58, 127, 212, .13);
}
.auth-card .btn-brand { min-height: 42px; font-weight: 700; letter-spacing: .04em; }

.table > :not(caption) > * > * { vertical-align: middle; }
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table thead th {
  color: var(--aa-muted);
  font-size: 12px;
  font-weight: 600;
  border-bottom-color: var(--aa-line);
  white-space: nowrap;
}
.table td { border-bottom-color: var(--aa-line); font-size: 13px; }
.table tbody tr:hover { background: var(--aa-row); }
.table tbody tr:last-child > * { border-bottom-color: transparent; }

/* 客户档案 / 列表页（对齐后台表格节奏） */
.list-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
  margin: 0;
}
.list-toolbar .form-control {
  width: 260px;
  max-width: 100%;
  flex: 0 1 260px;
  height: 38px;
  background: #fff !important;
}
.list-toolbar .btn {
  height: 38px;
  padding-inline: 16px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.list-meta {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 12px;
  color: var(--aa-muted);
  white-space: nowrap;
}
.aa-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  table-layout: auto;
}
.aa-table th {
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--aa-muted);
  line-height: 1.4;
  padding: 12px 14px;
  border-bottom: 1px solid var(--aa-line);
  white-space: nowrap;
}
.aa-table td {
  padding: 14px 14px;
  border-bottom: 1px solid var(--aa-line);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--aa-ink);
  vertical-align: middle;
  white-space: nowrap;
}
.aa-table tbody tr:hover { background: var(--aa-row); }
.aa-table tbody tr:last-child td { border-bottom: 0; }
.aa-table .col-ops { white-space: nowrap; }
.ops-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.ops-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  color: var(--aa-ink) !important;
  background: #f3f6fb;
  border: 1px solid #e2e8f2;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.ops-btn:hover {
  background: #e8eef8;
  border-color: #cfd9e8;
  color: var(--aa-accent-2) !important;
}
.ops-btn-primary {
  color: var(--aa-link) !important;
  background: rgba(47, 125, 225, .08);
  border-color: rgba(47, 125, 225, .18);
}
.ops-btn-primary:hover {
  background: rgba(47, 125, 225, .14);
  border-color: rgba(47, 125, 225, .28);
  color: var(--aa-accent-2) !important;
}
.ops-btn-accent {
  color: #fff !important;
  background: linear-gradient(180deg, var(--aa-accent), var(--aa-accent-2));
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(26, 79, 150, .18);
}
.ops-btn-accent:hover {
  filter: brightness(1.05);
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(26, 79, 150, .24);
}
.aa-table .cell-muted,
.aa-table .cell-strong,
.aa-table .cell-num {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--aa-ink);
}
.list-empty {
  padding: 42px 12px;
  text-align: center;
  color: var(--aa-muted);
  font-size: 13px;
}

.badge-soft { background: rgba(47,125,225,.12); color: #1d5ebd; }
.badge-warn { background: rgba(201,164,92,.18); color: var(--aa-warn); }
.badge-danger { background: #fdeceb; color: var(--aa-red); }
.badge-ok { background: #e6f6ee; color: var(--aa-green); }

.form-control, .form-select {
  background: rgba(255,255,255,.86) !important;
  border-color: var(--aa-line) !important;
  border-radius: var(--aa-radius-sm) !important;
}
.alert { border-radius: var(--aa-radius-sm); }
.chart-box { height: 280px; overflow: hidden; }
.chart-box-sm { height: 240px; }
.chart-box-lg { height: 320px; }
.chart-panel { overflow: hidden; }
.report-stack > [class*="col-"] + [class*="col-"] { margin-top: 2px; }
.report-structure { display: flex; flex-direction: column; gap: 12px; }
.report-structure-panel { height: auto; overflow: visible; }
.report-structure-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  max-width: 520px;
  margin: 0 auto;
}
.report-pie-box {
  flex: 0 0 auto;
  width: 200px;
  height: 200px;
  max-width: 200px;
  margin: 0;
  overflow: visible;
}
.report-pie-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  width: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.report-pie-legend li {
  display: grid;
  grid-template-columns: 12px auto auto auto;
  align-items: baseline;
  column-gap: 10px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--aa-ink);
}
.report-pie-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
  align-self: center;
}
.report-pie-name { font-weight: 600; white-space: nowrap; }
.report-pie-amt {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #243247;
  white-space: nowrap;
  text-align: right;
  min-width: 5.5em;
}
.report-pie-pct {
  font-variant-numeric: tabular-nums;
  color: #5a6b82;
  min-width: 3.4em;
  text-align: right;
  white-space: nowrap;
}
.report-structure-ratio { font-size: 12px; }
.report-hero {
  text-align: center;
  padding-top: 18px;
  padding-bottom: 14px;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.report-doc-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .18em;
  color: #7a8aa3;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.report-doc-eyebrow::before,
.report-doc-eyebrow::after {
  content: '';
  width: 52px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c4a35a 40%, #1a3a6b 100%);
}
.report-doc-eyebrow::after {
  background: linear-gradient(90deg, #1a3a6b, #c4a35a 60%, transparent);
}
.report-main-title {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 760;
  letter-spacing: .06em;
  margin: 0 0 10px;
  color: #142f58;
}
.report-main-title::after {
  content: '';
  display: block;
  width: 88px;
  height: 3px;
  margin: 14px auto 0;
  background:
    linear-gradient(90deg, transparent, #1a3a6b 18%, #c4a35a 50%, #1a3a6b 82%, transparent);
  border-radius: 2px;
  position: relative;
}
.report-hero-meta {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .02em;
  color: #5a6b82;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(26, 58, 107, .04);
  border: 1px solid rgba(26, 58, 107, .08);
}
#reportArea h4 {
  font-size: 18px;
  font-weight: 720;
  margin-bottom: 10px;
  color: #142f58;
  padding: 2px 0 2px 12px;
  border-left: 3px solid #1a3a6b;
  background: linear-gradient(90deg, rgba(26, 58, 107, .05), transparent 55%);
  position: relative;
}
#reportArea h4::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 10px;
  transform: translateY(-50%);
  background: #c4a35a;
}
#reportArea h5 {
  font-size: 15px;
  font-weight: 680;
  color: #1a3a6b;
}
#reportArea p {
  font-size: 14px;
}
.report-intro {
  position: relative;
  text-align: left;
  max-width: none;
  margin: 10px 0 0;
  padding: 16px 22px 18px;
  background: transparent;
  border: none;
  box-shadow: none;
}
.report-intro-q {
  position: absolute;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 72px;
  line-height: 1;
  color: rgba(26, 79, 150, 0.28);
  pointer-events: none;
  user-select: none;
}
.report-intro-q-open {
  top: -6px;
  left: 2px;
}
.report-intro-q-close {
  right: 2px;
  bottom: -18px;
}
.report-intro-body {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #2a3a52;
  background: transparent;
  border: none;
  border-radius: 0;
  white-space: pre-line;
}
.report-principle-table {
  table-layout: fixed;
  width: 100%;
}
.report-principle-table .col-asset { width: 16%; }
.report-principle-table .col-ratio { width: 10%; }
.report-principle-table .col-attr { width: 22%; }
.report-principle-table .col-usage { width: 26%; }
.report-principle-table .col-store { width: 26%; }
.report-principle-table thead th {
  background: #1f4f8a;
  color: #fff;
  text-align: center;
  font-size: 12px;
  vertical-align: middle;
}
.report-principle-table td {
  font-size: 12px;
  vertical-align: top;
  line-height: 1.5;
  word-break: break-word;
}
.report-principle-table tbody td:first-child {
  font-weight: 650;
  white-space: nowrap;
}
.report-diag-board {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
.report-diag-pie {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--aa-line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.report-diag-pie .chart-panel-title {
  margin: 0;
  font-size: 13px;
  text-align: left;
  width: 100%;
}
.report-diag-pie-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  width: 100%;
  min-width: 0;
  padding: 6px 0 4px;
}
.report-diag-pie .report-pie-box {
  width: 220px;
  max-width: 220px;
  height: 220px;
  flex: 0 0 220px;
  margin: 0;
}
.report-diag-pie .report-pie-legend {
  flex: 0 1 300px;
  width: auto;
  min-width: 220px;
  max-width: 340px;
  gap: 10px;
}
.report-diag-pie .report-pie-legend li {
  grid-template-columns: 10px minmax(0, 1fr) auto auto;
  column-gap: 8px;
  font-size: 13px;
}
/* A4 幅面下三列过挤，账户卡改为纵向通栏 */
.report-diag-buckets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.report-bucket-card {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--aa-line);
  border-top: 3px solid #8FBB9A;
  border-left: 1px solid var(--aa-line);
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  grid-template-areas:
    "hd hd"
    "amt metrics"
    "advice advice";
  column-gap: 12px;
  row-gap: 6px;
  min-width: 0;
  overflow: visible;
  align-items: start;
}
.report-bucket-card.is-over { border-top-color: #d2a679; }
.report-bucket-card.is-under { border-top-color: #c0392b; }
.report-bucket-card.is-ok { border-top-color: #15a36a; }
.report-bucket-hd {
  grid-area: hd;
  display: flex;
  align-items: center;
  gap: 6px;
}
.report-bucket-hd strong {
  flex: 1;
  font-size: 13px;
  line-height: 1.3;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.report-bucket-hd .badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  line-height: 1.2;
  margin-left: 0;
}
.report-bucket-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.report-bucket-amt {
  grid-area: amt;
  font-size: 20px;
  font-weight: 720;
  color: var(--aa-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
  align-self: center;
}
.report-bucket-metrics {
  grid-area: metrics;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(245, 248, 252, .95);
  font-size: 12px;
  line-height: 1.4;
  color: #6a7b92;
  align-self: center;
}
.report-bucket-metrics span {
  display: inline-flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}
.report-bucket-metrics em {
  font-style: normal;
  color: #6a7b92;
}
.report-bucket-metrics b {
  font-weight: 650;
  color: #243247;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.report-bucket-advice {
  grid-area: advice;
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(247, 250, 253, .9);
  border: 1px solid rgba(26, 58, 107, .06);
  font-size: 12.5px;
  line-height: 1.7;
  color: #3a4a63;
  overflow: visible;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
@media (max-width: 560px) {
  .report-bucket-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hd"
      "amt"
      "metrics"
      "advice";
  }
  .report-diag-pie-body {
    flex-direction: column;
    gap: 10px;
  }
  .report-diag-pie .report-pie-legend {
    max-width: none;
    width: 100%;
  }
}
.report-struct-opt-table thead th { text-align: center; vertical-align: middle; }
.report-struct-opt-table td {
  vertical-align: middle !important;
  text-align: center;
}
.report-struct-opt-table td:nth-child(1),
.report-struct-opt-table td:nth-child(2),
.report-struct-opt-table td:nth-child(3) { white-space: nowrap; }
.report-struct-opt-table td:nth-child(4) {
  font-size: 11.5px;
  line-height: 1.45;
  text-align: center;
}
.report-yield-section {
  display: block;
}
.report-yield-board {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.7fr);
  gap: 12px;
  align-items: stretch;
}
.report-yield-plans {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.report-yield-plan {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--aa-line);
  break-inside: avoid;
  page-break-inside: avoid;
}
.report-yield-plan-hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  break-after: avoid;
  page-break-after: avoid;
}
.report-yield-plan-hd strong { font-size: 13px; }
.report-yield-plan-hd span { font-size: 12px; color: #6a7b92; white-space: nowrap; }
.report-yield-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.report-yield-metrics .lbl { font-size: 11px; color: #6a7b92; margin-bottom: 2px; }
.report-yield-metrics .val {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.report-yield-metrics .val.is-after { color: #1a6bb5; }
.report-yield-total {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 16px 14px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(230,246,238,.92), rgba(255,255,255,.7));
  border: 1px solid rgba(21,122,76,.22);
}
.report-yield-total.is-neg {
  background: linear-gradient(145deg, rgba(255,236,236,.92), rgba(255,255,255,.7));
  border-color: rgba(192,57,43,.25);
}
.report-yield-total .lbl { font-size: 12px; color: #6a7b92; }
.report-yield-total .num {
  font-size: 28px;
  font-weight: 760;
  line-height: 1.2;
  margin: 6px 0;
  font-variant-numeric: tabular-nums;
}
.report-yield-total .sub { font-size: 12px; color: #6a7b92; }
@media (max-width: 992px) {
  .report-yield-board { grid-template-columns: 1fr; }
}
.report-closing-title {
  text-align: center;
  font-size: 20px;
  font-weight: 760;
  letter-spacing: .08em;
  color: #1a3a6b;
  margin: 0 0 14px;
}
.report-closing-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(240,246,255,.95), rgba(255,255,255,.9));
  border: 1px solid rgba(47,125,225,.18);
}
.report-closing-deco {
  color: #c7a45b;
  font-size: 12px;
  opacity: .85;
  flex-shrink: 0;
}
.report-closing-text {
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  color: #2a3a52;
  max-width: 640px;
  margin: 0;
}
.report-finale {
  margin-top: 18px;
  padding: 0;
  text-align: center;
  break-inside: avoid;
  page-break-inside: avoid;
}
.report-finale-frame {
  --finale-ink: #1a3a6b;
  --finale-accent: #c4a35a;
  position: relative;
  display: block;
  padding: 20px 28px 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(26, 58, 107, .18);
  box-shadow:
    inset 0 0 0 3px #fff,
    inset 0 0 0 4px rgba(26, 58, 107, .12);
  break-inside: avoid;
  page-break-inside: avoid;
}
.report-finale-head {
  margin-bottom: 12px;
}
.report-finale-ornament-top {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
}
.report-finale-ornament-top::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--finale-accent, #c4a35a);
  transform: rotate(45deg);
  box-shadow:
    -14px 0 0 -1px rgba(26, 58, 107, .35),
    14px 0 0 -1px rgba(26, 58, 107, .35);
}
.report-finale-title {
  margin: 0 0 8px;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  font-size: 20px !important;
  font-weight: 720 !important;
  letter-spacing: .32em;
  text-indent: .32em;
  color: #142f58 !important;
}
.report-finale-title::before { display: none !important; }
.report-finale-rule {
  width: 72px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #1a3a6b 18%, #c4a35a 50%, #1a3a6b 82%, transparent);
}
.report-finale-body {
  max-width: none;
  margin: 0 auto;
  padding: 0 4px;
}
.report-finale-text {
  margin: 0 0 14px;
  padding: 0 6px;
  max-width: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.85;
  color: #3a4a62;
  text-align: justify;
  text-indent: 2em;
  white-space: normal;
  writing-mode: horizontal-tb;
  overflow: visible;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
  text-wrap: pretty;
}
.report-finale-text.is-emphasis {
  margin: 4px auto 0;
  padding: 8px 16px;
  max-width: none;
  width: fit-content;
  text-align: center;
  text-indent: 0;
  color: #142f58;
  font-weight: 650;
  background: rgba(26, 58, 107, .04);
  border-radius: 6px;
  border-left: 2px solid #c4a35a;
  border-right: 2px solid #c4a35a;
  white-space: nowrap;
}
.report-finale-text:last-child { margin-bottom: 0; }
.report-finale-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 2px;
}
.report-finale-foot-line {
  position: relative;
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26, 58, 107, .4), transparent);
}
.report-finale-seal {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .5em;
  text-indent: .5em;
  color: #1a3a6b;
}
.report-finale-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  box-sizing: border-box;
  border-color: rgba(26, 58, 107, .4);
}
.report-finale-corner::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--finale-accent, #c4a35a);
}
.report-finale-corner-tl {
  top: 8px; left: 8px;
  border-top: 1.5px solid rgba(26, 58, 107, .4);
  border-left: 1.5px solid rgba(26, 58, 107, .4);
}
.report-finale-corner-tl::after { top: -1px; left: -1px; }
.report-finale-corner-tr {
  top: 8px; right: 8px;
  border-top: 1.5px solid rgba(26, 58, 107, .4);
  border-right: 1.5px solid rgba(26, 58, 107, .4);
}
.report-finale-corner-tr::after { top: -1px; right: -1px; }
.report-finale-corner-bl {
  bottom: 8px; left: 8px;
  border-bottom: 1.5px solid rgba(26, 58, 107, .4);
  border-left: 1.5px solid rgba(26, 58, 107, .4);
}
.report-finale-corner-bl::after { bottom: -1px; left: -1px; }
.report-finale-corner-br {
  bottom: 8px; right: 8px;
  border-bottom: 1.5px solid rgba(26, 58, 107, .4);
  border-right: 1.5px solid rgba(26, 58, 107, .4);
}
.report-finale-corner-br::after { bottom: -1px; right: -1px; }
#reportArea.is-pdf-export .report-finale-frame {
  box-shadow:
    inset 0 0 0 2px #fff,
    inset 0 0 0 3px rgba(26, 58, 107, .12);
  padding: 14px 16px 12px;
  background: #fff;
  border: 1px solid rgba(26, 58, 107, .18);
}
#reportArea.is-pdf-export .report-finale-title {
  font-size: 17px !important;
  margin-bottom: 6px;
  color: #142f58 !important;
}
#reportArea.is-pdf-export .report-finale-text {
  white-space: normal !important;
  overflow: visible;
  font-size: 12.5px;
  letter-spacing: 0;
  line-height: 1.7;
  writing-mode: horizontal-tb !important;
  margin-bottom: 10px;
  text-align: justify;
  text-indent: 2em;
  color: #3a4a62;
}
#reportArea.is-pdf-export .report-finale-text.is-emphasis {
  margin: 4px auto 0;
  padding: 6px 10px;
  text-align: center;
  text-indent: 0;
}
#reportArea.is-pdf-export .report-finale-corner {
  width: 12px;
  height: 12px;
}
.report-target-ratio {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(47,125,225,.06);
  border: 1px solid rgba(47,125,225,.16);
  font-size: 13px;
  font-weight: 600;
}
.report-opt-disclaimer {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.5;
  color: #6a7b92;
}
.report-closing {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(245,248,252,.9);
  border: 1px solid var(--aa-line);
  font-size: 13px;
  line-height: 1.75;
  color: #2a3a52;
}
/* 结构优化表：单元格水平+垂直居中（打印同屏一致） */
#opt-form.aa-card { padding: 14px 16px; }
.opt-toolbar { gap: 10px !important; margin-bottom: 8px !important; }
.opt-bucket-strip { gap: 8px; }
.opt-bucket-chip { padding: 8px 10px; }
.curve-host { display: flex; flex-direction: column; gap: 14px; }
.curve-plan-block {
  padding: 10px 12px 8px;
  border: 1px solid rgba(180, 198, 220, .45);
  border-radius: 12px;
  background: rgba(255,255,255,.45);
}
.curve-plan-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--aa-ink);
  margin-bottom: 6px;
}
#reportArea.is-pdf-export .curve-plan-block {
  padding: 6px 8px;
  background: #fff;
  break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 8px;
}
/* 走势图高度单独定，避免被 .chart-box-lg 覆盖导致 resize 错位 */
#reportArea.is-pdf-export .curve-plan-box.chart-box-lg,
#reportArea.is-pdf-export .curve-plan-box {
  height: 240px !important;
}

/* html2pdf 导出：页面内预览态不再强行缩窄（避免左右裁切）；真正导出用 #pdf-export-mount */
#reportArea.is-pdf-export {
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: #fff;
  color: #182338;
}
#pdf-export-mount {
  font-family: inherit;
  color: #182338;
}
#pdf-export-clone.is-pdf-export {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  background: #fff;
  color: #182338;
}
#pdf-export-mount .table-responsive,
#pdf-export-mount .report-opt-table-wrap {
  overflow: visible !important;
  width: 100% !important;
}
#pdf-export-mount table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}
#pdf-export-mount .report-principle-table th,
#pdf-export-mount .report-principle-table td {
  font-size: 10px !important;
  word-break: break-word;
  white-space: normal !important;
  padding: 4px 5px !important;
}
#pdf-export-mount .report-diag-pie .report-pie-box {
  width: 160px !important;
  max-width: 160px !important;
  height: 160px !important;
  flex-basis: 160px !important;
}
#reportArea.is-pdf-export .aa-card {
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: #fff !important;
  border: 1px solid #d5deea !important;
  margin-bottom: 10px !important;
  padding: 10px 12px !important;
}
#reportArea.is-pdf-export .stat-grid { gap: 8px; }
#reportArea.is-pdf-export .stat-item { padding: 10px 12px; }
#reportArea.is-pdf-export .stat-item .num,
#reportArea.is-pdf-export .stat-item .num[style] { font-size: 18px !important; }
#reportArea.is-pdf-export .bucket-box { padding: 8px 10px; }
#reportArea.is-pdf-export .bucket-box .fs-5 { font-size: 15px; }
#reportArea.is-pdf-export .bucket-box .aa-muted,
#reportArea.is-pdf-export .bucket-box .mt-2 { font-size: 11px !important; line-height: 1.4; }
#reportArea.is-pdf-export .chart-box-sm { height: 170px !important; }
#reportArea.is-pdf-export .chart-box-lg { height: 230px !important; }
#reportArea.is-pdf-export .report-structure { gap: 8px; }
#reportArea.is-pdf-export .report-structure-visual { gap: 18px; max-width: 440px; }
#reportArea.is-pdf-export .report-pie-box {
  width: 160px;
  max-width: 160px;
  height: 160px !important;
}
#reportArea.is-pdf-export .report-pie-legend { gap: 8px; }
#reportArea.is-pdf-export .report-pie-legend li { font-size: 11px; column-gap: 8px; }
#reportArea.is-pdf-export .report-diag-board {
  gap: 8px;
  margin-bottom: 8px;
}
#reportArea.is-pdf-export .report-diag-pie { padding: 8px 10px; }
#reportArea.is-pdf-export .report-diag-pie-body {
  /* 导出窗口可能小于 992px；不能继承移动端的上下堆叠，否则会制造大块空白。 */
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 4px 0;
}
#reportArea.is-pdf-export .report-diag-pie .report-pie-box {
  width: 170px;
  max-width: 170px;
  height: 170px !important;
  flex-basis: 170px;
}
#reportArea.is-pdf-export .report-diag-pie .report-pie-legend {
  flex: 0 1 300px;
  width: auto;
  min-width: 220px;
  max-width: 340px;
}
/* 导出改为纵向堆叠：并排三卡时 html2pdf 易在卡片中间撕开，留下半截边框 */
#reportArea.is-pdf-export .report-diag-buckets {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  gap: 8px;
  align-items: stretch;
}
#reportArea.is-pdf-export .report-bucket-card {
  padding: 8px 10px;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
  /* 单卡整块保留，避免话术被分页从中间切断 */
  break-inside: avoid !important;
  page-break-inside: avoid !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
#reportArea.is-pdf-export .report-diag-pie,
#reportArea.is-pdf-export .report-diag-pie-body {
  break-inside: avoid !important;
  page-break-inside: avoid !important;
}
#reportArea.is-pdf-export .report-bucket-amt { font-size: 15px; }
#reportArea.is-pdf-export .report-bucket-metrics {
  gap: 2px;
  padding: 4px 6px;
  font-size: 10.5px;
}
#reportArea.is-pdf-export .report-bucket-advice {
  font-size: 11px;
  line-height: 1.5;
  overflow: visible !important;
  max-height: none !important;
  white-space: normal !important;
  word-break: break-word;
}
/* 长文块统一：可换行、不裁切、可跨页 */
#reportArea.is-pdf-export .report-intro-body,
#reportArea.is-pdf-export .report-struct-opt-table td,
#reportArea.is-pdf-export .report-opt-table td,
#reportArea.is-pdf-export .report-saved-compare td,
#reportArea.is-pdf-export p {
  overflow: visible !important;
  max-height: none !important;
  white-space: pre-line;
  word-break: break-word;
}
#reportArea.is-pdf-export .report-struct-opt-table td,
#reportArea.is-pdf-export .report-opt-table td,
#reportArea.is-pdf-export .report-saved-compare td,
#reportArea.is-pdf-export .report-principle-table td {
  white-space: normal !important;
}
#reportArea.is-pdf-export .report-struct-opt-table td:nth-child(4) {
  max-width: none;
}
#reportArea.is-pdf-export .chart-panel,
#reportArea.is-pdf-export .chart-box {
  overflow: visible !important;
}
#reportArea.is-pdf-export .chart-panel,
#reportArea.is-pdf-export .curve-plan-block {
  break-inside: avoid;
  page-break-inside: avoid;
}
/* 大容器允许自然跨页；若将整段报告设为不可分页，html2pdf 会提前换页并留下大块空白。 */
#reportArea.is-pdf-export .aa-card {
  break-inside: auto;
  page-break-inside: auto;
}
/* 收益优化：标题+路径卡+汇总尽量整块；单条路径绝不可拆开 */
#reportArea.is-pdf-export .report-yield-section {
  break-inside: avoid;
  page-break-inside: avoid;
}
#reportArea.is-pdf-export .report-yield-board {
  grid-template-columns: 1fr;
  break-inside: avoid;
  page-break-inside: avoid;
}
#reportArea.is-pdf-export .report-yield-plan,
#reportArea.is-pdf-export .report-yield-total {
  break-inside: avoid !important;
  page-break-inside: avoid !important;
}
#reportArea.is-pdf-export .report-struct-opt-table {
  break-inside: avoid;
  page-break-inside: avoid;
}
#reportArea.is-pdf-export .report-struct-opt-table tr {
  break-inside: avoid;
  page-break-inside: avoid;
}
#reportArea.is-pdf-export .opt-metric-num { font-size: 13px; }
#reportArea.is-pdf-export .opt-plan-grid { gap: 8px; }
#reportArea.is-pdf-export .opt-plan-metrics { gap: 6px; }
#reportArea.is-pdf-export .table { font-size: 11px; margin-bottom: 0; }
#reportArea.is-pdf-export .table th,
#reportArea.is-pdf-export .table td { padding: 4px 6px !important; }
#reportArea.is-pdf-export .table-responsive,
#reportArea.is-pdf-export .report-opt-table-wrap {
  overflow: visible !important;
  width: 100% !important;
}
#reportArea.is-pdf-export .report-opt-table {
  width: 100% !important;
  table-layout: fixed;
  font-size: 9px !important;
}
#reportArea.is-pdf-export .report-opt-table th,
#reportArea.is-pdf-export .report-opt-table td {
  padding: 3px 4px !important;
  line-height: 1.25 !important;
  font-size: 9px !important;
  white-space: normal !important;
  word-break: break-word;
}
#reportArea.is-pdf-export .report-opt-table thead {
  display: table-header-group;
}
#reportArea.is-pdf-export .report-opt-table tr {
  break-inside: avoid !important;
  page-break-inside: avoid !important;
}
#reportArea.is-pdf-export .report-saved-compare {
  break-inside: auto;
  page-break-inside: auto;
  margin-top: 8px !important;
  overflow: visible !important;
}
#reportArea.is-pdf-export tr {
  break-inside: auto;
  page-break-inside: auto;
}
#reportArea.is-pdf-export .report-opt-table tr {
  break-inside: avoid !important;
  page-break-inside: avoid !important;
}
#reportArea.is-print-ready .table-responsive,
#reportArea.is-print-ready .report-opt-table-wrap {
  overflow: visible !important;
}
#reportArea.is-pdf-export .report-main-title,
#reportArea.is-pdf-export h2 { font-size: 22px !important; margin-bottom: 6px !important; }
#reportArea.is-pdf-export h4 { font-size: 16px !important; margin-bottom: 8px !important; }
#reportArea.is-pdf-export h5 { font-size: 14px !important; }
#reportArea.is-pdf-export p { font-size: 13px; }
#reportArea.is-pdf-export .report-intro {
  border: none !important;
  background: transparent !important;
  padding: 18px 28px 20px;
}
#reportArea.is-pdf-export .report-intro-q { font-size: 56px; }
#reportArea.is-pdf-export .report-intro-body {
  font-size: 13px !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}
#reportArea.is-pdf-export .mb-3 { margin-bottom: 0.6rem !important; }
#reportArea.is-pdf-export .mt-3 { margin-top: 0.5rem !important; }
#reportArea.is-pdf-export {
  max-width: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
#reportArea.is-pdf-export .report-page {
  break-after: auto;
  page-break-after: auto;
  border: 1.25px solid #1a3a6b;
  border-radius: 0;
  padding: 14px 12px 12px;
  box-sizing: border-box;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  background: #fff;
  box-shadow:
    inset 0 0 0 3px #fff,
    inset 0 0 0 4.25px #1a3a6b,
    inset 0 0 0 5.5px #fff,
    inset 0 0 0 6px rgba(196, 163, 90, .55);
}
#reportArea.is-pdf-export .rf-corner { width: 16px; height: 16px; }
#reportArea.is-pdf-export .rf-tl { top: 4px; left: 4px; }
#reportArea.is-pdf-export .rf-tr { top: 4px; right: 4px; }
#reportArea.is-pdf-export .rf-bl { bottom: 4px; left: 4px; }
#reportArea.is-pdf-export .rf-br { bottom: 4px; right: 4px; }
#reportArea.is-pdf-export .rf-top { top: 3px; }
#reportArea.is-pdf-export .rf-bottom { bottom: 3px; }
#reportArea.is-pdf-export .rf-left { left: 3px; }
#reportArea.is-pdf-export .rf-right { right: 3px; }
#reportArea.is-pdf-export .rf-f-tl { top: 1px; left: 22px; }
#reportArea.is-pdf-export .rf-f-tr { top: 1px; right: 22px; }
#reportArea.is-pdf-export .rf-f-bl { bottom: 1px; left: 22px; }
#reportArea.is-pdf-export .rf-f-br { bottom: 1px; right: 22px; }
#reportArea.is-pdf-export .rf-top::after,
#reportArea.is-pdf-export .rf-bottom::after { font-size: 9px; padding: 0 6px; }
#reportArea.is-pdf-export .rf-mark { width: 5px; height: 5px; }
#reportArea.is-pdf-export .report-doc-eyebrow {
  font-size: 9px;
  letter-spacing: .14em;
  margin-bottom: 4px;
  gap: 8px;
}
#reportArea.is-pdf-export .report-doc-eyebrow::before,
#reportArea.is-pdf-export .report-doc-eyebrow::after {
  width: 36px;
}
#reportArea.is-pdf-export .report-hero-meta {
  padding: 2px 10px;
  font-size: 12px;
}
#reportArea.is-pdf-export .report-diag-pie,
#reportArea.is-pdf-export .report-diag-pie-body,
#reportArea.is-pdf-export .report-pie-box {
  overflow: visible !important;
}
#reportArea.is-pdf-export .report-bucket-hd strong {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
#reportArea.is-pdf-export,
#reportArea.is-pdf-export .aa-card,
#reportArea.is-pdf-export .report-intro,
#reportArea.is-pdf-export .report-intro-body,
#reportArea.is-pdf-export .report-bucket-advice,
#reportArea.is-pdf-export .report-finale,
#reportArea.is-pdf-export .report-finale-text,
#reportArea.is-pdf-export .report-finale-frame {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}
#reportArea.is-pdf-export .report-hero {
  padding-top: 12px;
  padding-bottom: 10px;
}
#reportArea.is-pdf-export .aa-card {
  margin-bottom: 8px !important;
  padding: 10px 12px !important;
}
#reportArea.is-pdf-export #reportCurveHint { display: none; }
#reportArea.is-pdf-export .aa-muted.mb-3,
#reportArea.is-pdf-export p.aa-muted { font-size: 12px; margin-bottom: 6px !important; }
.chart-panel {
  padding: 14px 14px 8px;
  border-radius: calc(var(--aa-radius) - 4px);
  background: rgba(255,255,255,.4);
  border: 1px solid var(--aa-line);
  height: 100%;
}
.chart-panel-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--aa-ink);
  margin-bottom: 8px;
}
.opt-kpi .stat-item { transition: border-color .2s ease, box-shadow .2s ease; }
.opt-kpi .stat-item:hover {
  border-color: rgba(47,125,225,.35);
  box-shadow: 0 6px 16px rgba(20,60,120,.08);
}
.opt-kpi-total {
  background: linear-gradient(145deg, rgba(230,246,238,.85), rgba(255,255,255,.5));
  border-color: rgba(21,122,76,.2);
}
.opt-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  align-items: stretch;
}
.opt-plan-card { transition: border-color .2s ease, box-shadow .2s ease; }
.opt-plan-card:hover {
  border-color: rgba(47,125,225,.35);
  box-shadow: 0 6px 16px rgba(20,60,120,.08);
}
.opt-plan-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
/* 报告/PDF：金额上下分行，避免三列挤折行 */
.opt-plan-metrics-rows {
  grid-template-columns: 1fr;
  gap: 6px;
}
.opt-plan-metrics-rows > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(180, 198, 220, .45);
}
.opt-plan-metrics-rows > div:last-child { border-bottom: 0; }
.opt-plan-metrics-rows .opt-metric-num {
  font-size: 15px;
  text-align: right;
}
.opt-metric-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--aa-accent-2);
  line-height: 1.25;
  white-space: nowrap;
  word-break: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}
.opt-metric-after { color: #2f7de1; }
.opt-plan-charts {
  padding-top: 4px;
  border-top: 1px solid var(--aa-line);
}
.opt-plan-charts-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--aa-text);
  margin: 10px 0 12px;
}

.track-card { min-height: 420px; }
.calc-table-wrap { max-height: 520px; overflow: auto; }
.calc-table-wrap-lg { max-height: 640px; }
.calc-table-wrap .cell-err { color: var(--aa-red); font-weight: 600; }
.xls-sheet {
  border: 1px solid var(--aa-line);
  border-radius: calc(var(--aa-radius) - 4px);
  background: rgba(255,255,255,.55);
  overflow: hidden;
}
.xls-sheet-title {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(47,125,225,.08);
  border-bottom: 1px solid var(--aa-line);
}
.xls-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.xls-grid td {
  border: 1px solid var(--aa-line);
  padding: 8px 10px;
  vertical-align: middle;
}
.xls-label {
  width: 16%;
  color: var(--aa-muted);
  background: rgba(250,251,253,.9);
  white-space: nowrap;
}
.xls-input {
  background: rgba(210,230,255,.45);
  font-weight: 600;
  color: var(--aa-ink);
}
.xls-readonly {
  background: rgba(255,255,255,.7);
  color: var(--aa-ink);
}
.xls-demo thead th {
  position: sticky;
  top: 0;
  background: #eef4fc;
  z-index: 1;
}

/* 年金利益演示：通栏列表，跟其他页一致 */
.ins-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: calc(100vh - 120px);
}
.ins-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
}
.ins-head h1 { margin: 0; font-size: 22px; line-height: 1.25; }
.ins-head .sub { margin: 6px 0 0; color: var(--aa-muted); font-size: 13px; line-height: 1.45; max-width: 42em; }
.ins-head-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
.ins-banner {
  margin-bottom: 0 !important;
  padding: 14px 18px !important;
}
.ins-banner strong { font-size: 14px; }
.ins-panel {
  padding: 0;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 0 !important;
}
.ins-panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--aa-line);
  background: linear-gradient(180deg, rgba(248,250,253,.98), rgba(242,246,251,.95));
  flex-shrink: 0;
}
.ins-panel-title { font-size: 15px; font-weight: 700; }
.ins-panel-count {
  font-size: 12px;
  color: var(--aa-muted);
  background: #fff;
  border: 1px solid var(--aa-line);
  border-radius: 999px;
  padding: 2px 10px;
}
.ins-table {
  width: 100%;
  border-collapse: collapse;
}
.ins-table th,
.ins-table td {
  padding: 16px 22px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(227,232,240,.9);
}
.ins-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--aa-muted);
  background: rgba(248,250,253,.98);
  text-align: left;
}
.ins-table tbody tr:last-child td { border-bottom: 0; }
.ins-table tbody tr:hover td { background: rgba(47,125,225,.035); }
.ins-table .col-status { width: 110px; white-space: nowrap; }
.ins-table .col-action { width: 130px; white-space: nowrap; text-align: right; }
.ins-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--aa-ink);
  line-height: 1.4;
}
.ins-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--aa-muted);
  line-height: 1.4;
}
.ins-dot {
  display: inline-block;
  font-size: 13px;
  color: var(--aa-muted);
}
.ins-dot.ok { color: var(--aa-green); font-weight: 600; }
.ins-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 650;
  color: #fff;
  background: linear-gradient(180deg, var(--aa-accent), var(--aa-accent-2));
  border-radius: 8px;
  padding: 7px 14px;
  text-decoration: none;
  white-space: nowrap;
}
.ins-link:hover { filter: brightness(1.05); color: #fff; }
.ins-muted { color: var(--aa-muted); font-size: 13px; }
.ins-empty {
  padding: 48px 22px;
  text-align: center;
  color: var(--aa-muted);
  font-size: 13px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 992px) {
  .diag-parallel {
    grid-template-columns: 1fr;
  }
  .diag-pie-card { min-height: 320px; }
}
@media (max-width: 900px) {
  .aa-content { padding: 12px 10px 20px; }
  .aa-card-head { flex-wrap: wrap; }
  .list-toolbar { flex-wrap: wrap; width: 100%; }
  .list-toolbar .form-control { width: 100%; flex: 1 1 100%; }
  .list-meta { margin-left: 0; width: 100%; }
}

/* OnlyOffice 页细节样式在 ins_oo.php 内联，避免缓存导致顶栏竖排 */

@media print {
  @page {
    size: A4 portrait;
    margin: 10mm 12mm;
  }
  html, body {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    background: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .no-print { display: none !important; }
  .aa-sider, .aa-topbar, .aa-sider-foot, .ad-sider { display: none !important; }
  .aa-shell {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    position: static !important;
  }
  .aa-main, .aa-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    overflow: visible !important;
    animation: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    flex: none !important;
    position: static !important;
  }
  .pdf-chart-snap {
    display: block !important;
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  .aa-content > * { animation: none !important; }
  #reportArea {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    overflow: visible !important;
  }
  .report-page {
    break-after: auto;
    page-break-after: auto;
    border: 1.5px solid #1a3a6b !important;
    border-radius: 0 !important;
    padding: 14px 12px 12px !important;
    box-shadow:
      inset 0 0 0 3px #fff,
      inset 0 0 0 4.25px #1a3a6b,
      inset 0 0 0 5.5px #fff,
      inset 0 0 0 6px rgba(196, 163, 90, .55) !important;
  }
  .report-intro {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 16px 28px 18px;
  }
  .report-intro-q { font-size: 56px !important; }
  .report-intro-body {
    font-size: 13px !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
  }
  .report-finale-text {
    white-space: normal !important;
    writing-mode: horizontal-tb !important;
    overflow: visible !important;
    font-size: 12.5px !important;
    line-height: 1.65 !important;
  }
  .table-responsive,
  .report-opt-table-wrap {
    overflow: visible !important;
    width: 100% !important;
  }
  .report-opt-table {
    width: 100% !important;
    table-layout: fixed;
    font-size: 9px !important;
  }
  .report-opt-table th,
  .report-opt-table td {
    word-break: break-word;
    white-space: normal !important;
    padding: 3px 4px !important;
    line-height: 1.25 !important;
  }
  .report-opt-table thead {
    display: table-header-group;
  }
  .report-opt-table tr {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
  .report-saved-compare {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .aa-card {
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #fff !important;
    border: 1px solid #d5deea !important;
    /* 大卡片不要 avoid，否则整块被挤/裁切 */
    break-inside: auto;
    page-break-inside: auto;
    margin-bottom: 8px !important;
    padding: 10px 12px !important;
  }
  .stat-grid { gap: 8px; }
  .stat-item {
    break-inside: avoid;
    page-break-inside: avoid;
    padding: 8px 10px !important;
  }
  .stat-item .num,
  .stat-item .num[style] { font-size: 18px !important; }
  .report-bucket-row { --bs-gutter-y: 0.45rem; }
  .bucket-box {
    break-inside: avoid;
    page-break-inside: avoid;
    padding: 8px 10px !important;
  }
  .chart-panel {
    break-inside: avoid;
    page-break-inside: avoid;
    height: auto !important;
    overflow: visible !important;
    background: #fff !important;
  }
  .chart-box,
  .chart-box-sm,
  .chart-box-lg {
    overflow: visible !important;
  }
  .chart-box-sm { height: 240px !important; }
  .chart-box-lg { height: 300px !important; }
  .report-structure { break-inside: auto; page-break-inside: auto; }
  .report-bucket-card {
    break-inside: auto;
    page-break-inside: auto;
    overflow: visible !important;
  }
  .report-bucket-advice,
  .report-intro-body {
    overflow: visible !important;
    max-height: none !important;
    word-break: break-word;
  }
  .report-structure-visual { gap: 18px; max-width: 460px; }
  .report-pie-box {
    width: 170px !important;
    max-width: 170px !important;
    height: 170px !important;
  }
  .report-pie-legend li { font-size: 12px; }
  .chart-box canvas {
    max-width: 100% !important;
  }
  .opt-plan-grid { gap: 8px; }
  .opt-metric-num { font-size: 13px !important; }
  .report-yield-section {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .report-yield-board {
    grid-template-columns: 1fr !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .report-yield-plan,
  .report-yield-total {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
  .report-yield-plan-hd {
    break-after: avoid !important;
    page-break-after: avoid !important;
  }
  .report-struct-opt-table {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .report-struct-opt-table th,
  .report-struct-opt-table td {
    text-align: center !important;
    vertical-align: middle !important;
  }
  .report-note { display: none !important; }
  .table { font-size: 11px; }
  .table th, .table td { padding: 5px 6px !important; }
  .report-main-title,
  h2 { font-size: 22px !important; }
  h4 { font-size: 16px !important; margin-bottom: 8px !important; }
  h5 { font-size: 14px !important; }
  #reportArea p { font-size: 13px !important; }
  #reportCurveHint { display: none !important; }
  .mb-3 { margin-bottom: 0.55rem !important; }
}
/* 面谈辅助资料：卡片表单式清单 */
.aid-form-panel { margin-bottom: 16px; }
.aid-form-panel .aa-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(30, 55, 90, .08);
}
.aid-filter-form .form-label {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #35445c;
}
.aid-hint {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--aa-muted, #6a7b92);
  line-height: 1.5;
}
.aid-list { display: flex; flex-direction: column; gap: 12px; }
.aid-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(30, 55, 90, .1);
  border-radius: 12px;
  background: #fff;
}
.aid-item-top { display: flex; gap: 12px; min-width: 0; flex: 1; }
.aid-item-index {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(47, 125, 225, .1);
  color: #1f4f9a;
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.aid-item-main { min-width: 0; flex: 1; }
.aid-item-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.aid-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--aa-ink, #182338);
  line-height: 1.4;
  word-break: break-word;
}
.aid-remark {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--aa-muted, #6a7b92);
  line-height: 1.45;
  word-break: break-word;
}
.aid-kind {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(47, 125, 225, .1);
  color: #1f4f9a;
  font-size: 12px;
  font-weight: 600;
}
.aid-cat {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(20, 120, 90, .1);
  color: #0f6b4c;
  font-size: 12px;
  font-weight: 600;
}
.aid-cat.aid-subcat {
  background: rgba(47, 125, 225, .1);
  color: #1f4f9a;
}
.aid-module-off {
  padding: 48px 20px;
  text-align: center;
}
.aid-module-off-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(180, 80, 40, .12);
  color: #a04520;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
}
.aid-module-off-desc {
  margin: 14px auto 0;
  max-width: 420px;
  font-size: 14px;
  color: var(--aa-muted, #6a7b92);
  line-height: 1.55;
}
.aid-ext-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(30, 55, 90, .06);
  color: #4a5b73;
  font-size: 11px;
  font-weight: 600;
}
.aid-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px 150px;
  gap: 10px 16px;
  margin-top: 8px;
}
.aid-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.aid-field-label {
  font-size: 11px;
  font-weight: 600;
  color: #7a8aa0;
  letter-spacing: .02em;
}
.aid-field-value {
  font-size: 13px;
  color: #334155;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aid-item-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.ops-btn-disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
  background: #f1f4f8;
  color: #6a7b92;
  border-color: #d7dee8;
}
.aid-preview-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.aid-preview-head { min-width: 0; flex: 1; }
.aid-preview-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(47, 125, 225, .28);
  background: rgba(47, 125, 225, .08);
  font-size: 13px;
  color: #1f4f9a;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.3;
  transition: background .15s ease, border-color .15s ease;
}
.aid-preview-back:hover {
  background: rgba(47, 125, 225, .14);
  border-color: rgba(47, 125, 225, .45);
  color: #154085;
  text-decoration: none;
}
.aid-preview-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--aa-ink, #182338);
  line-height: 1.3;
  word-break: break-word;
}
.aid-preview-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  min-width: 0;
}
.aid-preview-fname {
  min-width: 0;
  flex: 1 1 180px;
  max-width: 100%;
  font-size: 12px;
  color: var(--aa-muted, #6a7b92);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aid-preview-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  padding-top: 22px;
}
.aid-preview-card {
  padding: 0;
  overflow: hidden;
  min-height: 0;
}
.aid-preview-loading {
  padding: 48px 24px;
  text-align: center;
  color: var(--aa-muted, #6a7b92);
  font-size: 14px;
}
.aid-preview-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 200px);
  min-height: 520px;
  border: 0;
  background: #f5f7fb;
}
.aid-preview-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 52vh;
  background: #f5f7fb;
}
.aid-preview-image {
  max-width: 100%;
  max-height: calc(100vh - 220px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(20, 40, 80, .12);
}
.aid-preview-text {
  margin: 0;
  padding: 20px 24px;
  max-height: calc(100vh - 200px);
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.6;
  color: #1f2937;
  background: #fff;
}
/* 操作指引 */
.guide-flow-card { margin-bottom: 14px; padding: 14px 18px; }
.guide-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #1f4f9a;
}
.guide-flow i {
  font-style: normal;
  color: #9aabbf;
  font-weight: 500;
}
.guide-flow span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(47, 125, 225, .1);
}
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.guide-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 0;
  padding: 16px 18px;
}
.guide-step-no {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, #2f7de1, #1f5fbc);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-step-body { min-width: 0; flex: 1; }
.guide-step-body h5 {
  margin: 2px 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--aa-ink, #182338);
}
.guide-step-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #4a5b73;
}
.guide-step-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #2f7de1;
  text-decoration: none;
}
.guide-step-link:hover { text-decoration: underline; }
.guide-note {
  margin-bottom: 8px;
}
.guide-note ul {
  margin: 0;
  padding-left: 1.15em;
  font-size: 13px;
  line-height: 1.7;
  color: #4a5b73;
}
.guide-note li + li { margin-top: 4px; }

@media (max-width: 900px) {
  .aid-form-panel .aa-card-head { flex-wrap: wrap; }
  .aid-filter-form .d-flex { width: 100%; }
  .aid-item { flex-direction: column; }
  .aid-item-actions { flex-direction: row; width: 100%; }
  .aid-fields { grid-template-columns: 1fr 1fr; }
  .aid-field:first-child { grid-column: 1 / -1; }
  .aid-field-value { white-space: normal; word-break: break-all; }
  .aid-preview-toolbar { flex-direction: column; }
  .aid-preview-actions { padding-top: 0; width: 100%; }
}
