/* 知晓OPC · 生成页 / 关于页样式（依赖 main.css 设计变量） */

/* 无障碍：仅供屏幕阅读器与 SEO 的隐藏标题 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.app-main { padding: 130px 0 100px; min-height: 100vh; }

/* ---------- 生成页标题 ---------- */
.wiz-head { text-align: center; margin-bottom: 34px; }
.wiz-head h1 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 36px); font-weight: 900; color: var(--ink); margin-bottom: 10px; }
.wiz-head p { font-size: 14.5px; color: var(--ink-3); line-height: 1.8; }

/* ---------- 步骤指示器 ---------- */
.wizard { max-width: 1080px; margin: 0 auto; }
.wiz-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 56px;
}
.wiz-step {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  position: relative; width: 120px;
}
.wiz-step .n {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 16px;
  background: var(--paper-2); color: var(--ink-3);
  transition: all 0.4s var(--ease);
}
.wiz-step .t { font-size: 13px; color: var(--ink-3); transition: color 0.3s; }
.wiz-step.active .n {
  background: var(--cinnabar); border-color: var(--cinnabar); color: #fff;
  box-shadow: 0 4px 14px rgba(182, 58, 42, 0.35);
}
.wiz-step.active .t { color: var(--ink); font-weight: 600; }
.wiz-step.done .n { background: var(--jade); border-color: var(--jade); color: #fff; }
.wiz-line { flex: 1; max-width: 90px; height: 1.5px; background: var(--hairline); margin: 0 6px 26px; position: relative; overflow: hidden; }
.wiz-line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--jade); transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.wiz-line.done::after { transform: scaleX(1); }

/* ---------- 面板 ---------- */
.panel {
  background: var(--paper-2);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 44px 48px;
  box-shadow: var(--shadow-sm);
  animation: panelIn 0.5s var(--ease);
}
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.panel h2 { font-family: var(--serif); font-size: 26px; font-weight: 900; margin-bottom: 8px; }
.panel .sub { color: var(--ink-3); font-size: 14.5px; margin-bottom: 32px; }

/* ---------- 报表类型选择 ---------- */
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 28px; }
.type-card {
  border: 1.5px solid var(--hairline); border-radius: 14px;
  padding: 26px 24px; cursor: pointer; background: var(--paper);
  transition: all 0.3s var(--ease); position: relative;
}
.type-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.type-card.sel {
  border-color: var(--cinnabar);
  background: linear-gradient(160deg, rgba(182, 58, 42, 0.05), rgba(176, 141, 70, 0.06));
  box-shadow: 0 6px 20px rgba(182, 58, 42, 0.12);
}
.type-card.sel::after {
  content: "✓"; position: absolute; top: 14px; right: 16px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--cinnabar); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.type-card h3 { font-family: var(--serif); font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.type-card p { font-size: 13.5px; color: var(--ink-3); }

.form-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.form-field { flex: 1; min-width: 180px; }
.form-field label {
  display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  margin-bottom: 8px;
}
.form-field select, .form-field input[type="text"], .form-field input[type="email"], .form-field textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--hairline); border-radius: 10px;
  background: var(--paper); font-size: 15px; font-family: var(--sans);
  color: var(--ink); outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-field select:focus, .form-field input:focus, .form-field textarea:focus {
  border-color: var(--cinnabar);
  box-shadow: 0 0 0 3px rgba(182, 58, 42, 0.1);
}

.panel-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 36px; }
.panel-actions .spacer { flex: 1; }

/* ---------- 上传 ---------- */
.dropzone {
  border: 2px dashed var(--hairline); border-radius: 14px;
  padding: 40px 28px; text-align: center; cursor: pointer;
  transition: all 0.3s var(--ease);
  background: var(--paper);
  margin-bottom: 22px;
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--cinnabar);
  background: linear-gradient(160deg, rgba(182, 58, 42, 0.04), rgba(176, 141, 70, 0.05));
}
.dropzone .dz-ico {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px;
  background: linear-gradient(145deg, rgba(182,58,42,.1), rgba(176,141,70,.14));
  display: flex; align-items: center; justify-content: center; color: var(--cinnabar);
}
.dropzone h3 { font-family: var(--serif); font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.dropzone p { font-size: 13.5px; color: var(--ink-3); }
.dz-optional { color: var(--ink-3); font-weight: 400; }

.file-list { list-style: none; margin-bottom: 8px; }
.file-item {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 11px 16px; margin-bottom: 8px;
  background: var(--paper); border: 1px solid var(--hairline-2);
  border-radius: 10px; font-size: 13.5px;
  animation: panelIn .35s var(--ease);
}
.file-item .fi-ico {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: rgba(46, 110, 94, 0.1); color: var(--jade);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.file-item .fi-name { flex: 1; min-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.file-item .fi-size { color: var(--ink-3); font-size: 12px; }
.file-item .fi-del {
  border: none; background: none; cursor: pointer; color: var(--ink-3);
  font-size: 16px; padding: 2px 6px; border-radius: 6px;
  transition: all .2s;
}
.file-item .fi-del:hover { color: var(--cinnabar); background: rgba(182,58,42,.08); }

/* 类型切换段控：字号加大、颜色区分（银行流水=朱砂 / 上期报表=青玉） */
.fi-kind {
  display: inline-flex; flex-shrink: 0;
  border: 1px solid var(--hairline); border-radius: 9px; overflow: hidden;
}
.fi-kind button {
  border: none; background: var(--paper-2); cursor: pointer;
  padding: 6px 12px; font-size: 14px; font-weight: 700;
  font-family: var(--sans); color: var(--ink-3);
  transition: all .2s;
}
.fi-kind button + button { border-left: 1px solid var(--hairline); }
.fi-kind button:hover { color: var(--ink-2); }
.fi-kind .k-bank.sel { background: rgba(182,58,42,.12); color: var(--cinnabar); }
.fi-kind .k-prior.sel { background: rgba(46,110,94,.12); color: var(--jade); }

/* 税局标准模板下载区 */
.tpl-downloads {
  margin: 6px 0 4px;
  border: 1px dashed var(--hairline);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(176,141,70,.05), rgba(46,110,94,.03));
  padding: 18px 20px;
}
.tpl-tip { font-size: 13.5px; color: var(--ink-2); font-weight: 600; margin-bottom: 14px; }
.tpl-tip::before { content: "推荐 "; color: var(--gold); font-weight: 700; }
.tpl-dl-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.tpl-dl {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 10px;
  background: var(--paper); border: 1px solid var(--hairline-2);
  text-decoration: none; color: inherit;
  transition: all .28s var(--ease);
}
.tpl-dl:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(24,27,34,.07); }
.tpl-dl .tpl-ico {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: rgba(176,141,70,.14); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700;
}
.tpl-dl .tpl-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tpl-dl .tpl-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.tpl-dl .tpl-sub { font-size: 12px; color: var(--ink-3); }

/* ---------- 分析过程 ---------- */
.analyze-stage { text-align: center; padding: 20px 0 8px; }
.analyze-ring {
  width: 84px; height: 84px; margin: 0 auto 26px; position: relative;
}
.analyze-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid var(--hairline-2);
  border-top-color: var(--cinnabar);
  animation: spin 0.9s linear infinite;
}
.analyze-ring::after {
  content: "懂"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 30px; font-weight: 900; color: var(--cinnabar);
}
.analyze-stage h2 { margin-bottom: 6px; }
.analyze-stage .sub { margin-bottom: 28px; }

.log-list {
  max-width: 620px; margin: 0 auto; text-align: left;
  font-family: var(--mono); font-size: 13px;
}
.log-line {
  display: flex; gap: 12px; padding: 9px 14px;
  border-left: 2px solid var(--gold-light);
  margin-bottom: 6px;
  background: var(--paper); border-radius: 0 8px 8px 0;
  animation: panelIn .4s var(--ease);
  color: var(--ink-2);
}
.log-line .ls { color: var(--gold); font-weight: 700; flex-shrink: 0; }

/* ---------- 结果 ---------- */
.result-summary {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px;
}
.stat-card {
  background: var(--paper); border: 1px solid var(--hairline-2);
  border-radius: 12px; padding: 18px 20px;
}
.stat-card .sl { font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.stat-card .sv { font-family: var(--serif); font-size: 24px; font-weight: 900; }
.stat-card .sv.red { color: var(--cinnabar); }
.stat-card .sv.green { color: var(--jade); }

.result-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.rtab {
  border: 1px solid var(--hairline); background: var(--paper);
  padding: 9px 20px; border-radius: 24px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: all .25s;
}
.rtab:hover { border-color: var(--ink-3); }
.rtab.sel { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.rtable-wrap { overflow-x: auto; border: 1px solid var(--hairline-2); border-radius: 12px; background: #fff; }
.rtable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rtable th {
  text-align: left; padding: 12px 16px; font-size: 12.5px; color: var(--ink-3);
  background: rgba(24,27,34,.03); border-bottom: 1px solid var(--hairline-2);
  white-space: nowrap;
}
.rtable td { padding: 10px 16px; border-bottom: 1px solid var(--hairline-2); white-space: normal; }
.rtable tr:last-child td { border-bottom: none; }
.rtable td.num, .rtable th.num { font-family: var(--serif); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.rtable td.ln, .rtable th.ln { text-align: center; white-space: nowrap; color: var(--ink-3); width: 44px; }
.rtable tr.strong td { font-weight: 700; background: rgba(216,195,154,.12); }

/* 银行流水—会计科目对照表预览 */
.rtable td.dir, .rtable th.dir { text-align: center; white-space: nowrap; width: 48px; }
.maprt td.it { min-width: 96px; }
.rtable tr.rt-review td { background: rgba(182,58,42,.07); }
.maprt-sum { margin-top: 0; }
.maprt-sum td.it { width: auto; }
.map-sub { margin: 20px 0 8px; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.rt-review-tag { display: inline-block; background: rgba(182,58,42,.1); color: var(--cinnabar); padding: 1px 8px; border-radius: 10px; font-weight: 600; }

/* 税务申报表口径（资产负债表左右并排 8 列、利润表 4 列）——一次看全，不横向滚动 */
.taxrt td, .taxrt th { padding: 8px 12px; }
.taxrt td.it { color: var(--ink); }
.taxrt td.it.hd { font-weight: 600; color: var(--ink-2); }
.taxbs { table-layout: fixed; min-width: 860px; }
/* 行次窄、金额列够宽（容纳百万级带千分位金额，如 3,042,572.62 不溢出撞列），
   项目列吃掉剩余宽度并留足 2 行显示「负债和所有者权益（或股东权益）总计」这类长标签 */
.taxbs th:nth-child(1), .taxbs th:nth-child(5), .taxbs td.ln { width: 32px; }
.taxbs th:nth-child(3), .taxbs th:nth-child(4),
.taxbs th:nth-child(7), .taxbs th:nth-child(8), .taxbs td.num { width: 124px; }
.taxbs td.it, .taxbs th:nth-child(2), .taxbs th:nth-child(6) { width: auto; }
.taxbs td.it { padding-left: 8px; padding-right: 8px; }
.taxbs td.num, .taxbs th.num { padding-left: 16px; padding-right: 10px; }
/* 镜像官方模板：非叶子行（合计/小标题/空行）着底色，与其他有底色行同色，按侧独立着色 */
.taxbs td.sh { background: rgba(216,195,154,.12); font-weight: 700; }

/* 报表组内的子表切换（资产负债表 / 利润表 / 现金流量表）：胶囊更小一号、置于表格上方 */
.sub-tabs {
  display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 16px;
  border-bottom: 1px solid var(--hairline-2); background: rgba(24,27,34,.02);
}
.stab {
  border: 1px solid var(--hairline); background: #fff;
  padding: 6px 14px; border-radius: 18px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--ink-2); transition: all .2s;
}
.stab:hover { border-color: var(--ink-3); }
.stab.sel { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* 日常带标注财务报表：单列/双侧金额 + 「说明/来源」列 + 编制说明块 */
.rtable-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px 6px; font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--ink); }
.rtable-title span { font-family: inherit; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.dailyrt td, .dailyrt th { padding: 8px 12px; }
.dailyrt td.note { font-size: 12.5px; color: var(--ink-3); min-width: 160px; }
.dailyrt td.sh { background: rgba(216,195,154,.12); font-weight: 700; }
.dailyrt td.hd { color: var(--ink-2); }
/* 资产负债表双侧 10 列一屏看全：行次/金额定宽紧凑、项目列定宽贴金额、说明列吃剩余宽度并折行 */
.dailybs { table-layout: fixed; font-size: 12.5px; }
.dailybs td, .dailybs th { padding: 8px 8px; }
.dailybs th:nth-child(1), .dailybs th:nth-child(6), .dailybs td.ln { width: 26px; padding-left: 4px; padding-right: 4px; }
.dailybs th:nth-child(2), .dailybs th:nth-child(7) { width: 136px; } /* 留足「其中：库存商品」缩进项一行显示 */
.dailybs td.it { padding-left: 6px; padding-right: 4px; }
.dailybs th:nth-child(3), .dailybs th:nth-child(4), .dailybs th:nth-child(8), .dailybs th:nth-child(9),
.dailybs td.num { width: 78px; padding-left: 4px; padding-right: 8px; }
.dailybs th:nth-child(5), .dailybs th:nth-child(10) { min-width: 160px; width: auto; }
.dailybs td.note { min-width: 0; font-size: 12px; line-height: 1.55; word-break: break-all; color: var(--ink-3); }
.dailybs td.sh { background: rgba(216,195,154,.12); font-weight: 700; }
.rtable-notes { padding: 12px 16px 6px; font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.rtable-notes b { display: block; margin-bottom: 4px; color: var(--ink); }
.rtable-notes ol { margin: 0; padding-left: 20px; }

/* ---------- 记账凭证卡片（伽玛账范式：抬头 / 表格 / 合计含大写 / 签字栏） ---------- */
.vouchers { display: flex; flex-direction: column; gap: 22px; padding: 4px; }
.voucher {
  border: 1px solid var(--hairline-2); border-radius: 10px;
  background: #fff; padding: 16px 18px 12px;
}
.voucher .vh { display: flex; align-items: baseline; justify-content: center; position: relative; margin-bottom: 10px; }
.voucher .vh-title { font-family: var(--serif); font-size: 18px; font-weight: 900; letter-spacing: .12em; color: var(--ink); }
.voucher .vh-attach { position: absolute; right: 0; font-size: 12px; color: var(--ink-3); }
.voucher .vmeta { display: flex; justify-content: space-between; gap: 16px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 10px; flex-wrap: wrap; }
.voucher .vtable { border: 1px solid var(--hairline-2); }
.voucher .vtable th, .voucher .vtable td { border-right: 1px solid var(--hairline-2); }
.voucher .vtable th:last-child, .voucher .vtable td:last-child { border-right: none; }
.voucher .vtable th { text-align: center; }
.voucher .vtable td { height: 34px; }
.voucher .vtotal td { background: rgba(216,195,154,.14); }
.voucher .vfoot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); padding: 10px 2px 2px; }
.rtable .conf { font-size: 11.5px; padding: 2px 9px; border-radius: 12px; font-weight: 600; }
.rtable .conf.high { background: rgba(46,110,94,.1); color: var(--jade); }
.rtable .conf.medium { background: rgba(176,141,70,.14); color: var(--gold); }
.rtable .conf.review { background: rgba(182,58,42,.1); color: var(--cinnabar); }
.rtable-note { font-size: 12.5px; color: var(--ink-3, #8a8378); line-height: 1.7; padding: 12px 16px 2px; }

.warn-box {
  border: 1px solid rgba(176,141,70,.4); background: rgba(216,195,154,.12);
  border-radius: 10px; padding: 14px 18px; font-size: 13.5px; color: var(--ink-2);
  margin-bottom: 24px;
}
.warn-box li { margin-left: 18px; }

.result-banner {
  display: flex; align-items: center; gap: 14px;
  background: rgba(46,110,94,.08); border: 1px solid rgba(46,110,94,.25);
  border-radius: 12px; padding: 16px 20px; margin-bottom: 28px;
  font-size: 14.5px; color: var(--jade); font-weight: 600;
}
.result-banner .ok-ico {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--jade); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}

/* ---------- 下载专区 ---------- */
.dl-center {
  margin-top: 32px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(176,141,70,.05), rgba(182,58,42,.03));
  padding: 26px 28px;
}
.dl-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 22px;
}
.dl-head-txt h3 { font-family: var(--serif); font-size: 20px; font-weight: 900; margin-bottom: 5px; }
.dl-head-txt p { font-size: 13px; color: var(--ink-3); }
.dl-all { white-space: nowrap; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.dl-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 12px;
  background: var(--paper); border: 1px solid var(--hairline-2);
  text-decoration: none; color: inherit;
  transition: all .28s var(--ease);
}
.dl-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 8px 22px rgba(24,27,34,.08); }
.dl-ico {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 19px; font-weight: 700;
}
.dl-ico.tax { background: rgba(182,58,42,.12); color: var(--cinnabar); }
.dl-ico.report { background: rgba(176,141,70,.16); color: var(--gold); }
.dl-ico.trial { background: rgba(46,110,94,.12); color: var(--jade); }
.dl-ico.vouchers { background: rgba(24,27,34,.07); color: var(--ink-2); }
.dl-ico.analysis { background: rgba(176,141,70,.12); color: var(--gold); }
.dl-ico.mapping { background: rgba(46,110,94,.14); color: var(--jade); }
.dl-body { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dl-name { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.dl-desc { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.dl-dl {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-2); color: var(--ink-3); font-size: 15px;
  transition: all .28s var(--ease);
}
.dl-card:hover .dl-dl { background: var(--cinnabar); color: #fff; }

/* ---------- 块③ 三层校验：反转平衡呈现 + 下载拦截态 + 分析过程下钻 ---------- */
/* 横幅不平衡态：由翠绿转朱红告警 */
.result-banner.warn {
  background: rgba(182,58,42,.07); border-color: rgba(182,58,42,.28); color: var(--cinnabar-deep);
}
.result-banner.warn .ok-ico { background: var(--cinnabar); }

/* 税务申报表卡不平衡时禁用：灰化 + 去交互 + 去 hover 抬升 */
.dl-card.disabled {
  opacity: .55; pointer-events: none; background: rgba(24,27,34,.03);
  border-style: dashed;
}
.dl-card.disabled:hover { transform: none; box-shadow: none; border-color: var(--hairline-2); }
.dl-card.disabled .dl-ico { filter: grayscale(1); }
.dl-blocked { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 600; color: var(--cinnabar); }
.dl-all-note { margin-top: 6px; font-size: 12px; color: var(--cinnabar); font-weight: 600; }

/* 分析过程三层下钻（原生 details/summary） */
.verify-wrap { display: flex; flex-direction: column; gap: 14px; padding: 4px; }
.vf-sec { border: 1px solid var(--hairline-2); border-radius: 12px; background: #fff; overflow: hidden; }
.vf-sec > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; cursor: pointer; list-style: none; font-weight: 700;
  background: rgba(24,27,34,.02); user-select: none;
}
.vf-sec > summary::-webkit-details-marker { display: none; }
.vf-sec > summary::before {
  content: "▸"; margin-right: 8px; color: var(--ink-3); font-size: 12px;
  transition: transform .2s var(--ease);
}
.vf-sec[open] > summary::before { transform: rotate(90deg); }
.vf-t { flex: 1; font-family: var(--serif); font-size: 15.5px; color: var(--ink); }
.vf-badge { flex-shrink: 0; font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 12px; white-space: nowrap; }
.vf-badge.ok { background: rgba(46,110,94,.1); color: var(--jade); }
.vf-badge.red { background: rgba(182,58,42,.1); color: var(--cinnabar); }
.vf-body { padding: 14px 18px 16px; font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.vf-body > p { margin-bottom: 8px; }
.vf-body b { color: var(--ink); font-family: var(--serif); }
.vf-amber {
  border: 1px solid rgba(176,141,70,.4); background: rgba(216,195,154,.12);
  border-radius: 8px; padding: 10px 14px; font-size: 12.5px; color: var(--ink-2); margin-top: 6px;
}

/* L2 每科目审计轨迹 */
.vf-sub { border: 1px solid var(--hairline-2); border-radius: 9px; margin-bottom: 8px; overflow: hidden; }
.vf-sub:last-child { margin-bottom: 0; }
.vf-sub > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; cursor: pointer; list-style: none; font-size: 13.5px;
}
.vf-sub > summary::-webkit-details-marker { display: none; }
.vf-sub-name { font-weight: 700; color: var(--ink); flex: none; }
.vf-sub-formula {
  flex: 1; min-width: 0; margin-right: auto;
  font-family: var(--serif); font-variant-numeric: tabular-nums;
  font-size: 12px; color: var(--ink-3); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.vf-sub-end { flex: none; font-family: var(--serif); font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.vf-trail { border-top: 1px solid var(--hairline-2); }
.vf-trail th, .vf-trail td { padding: 7px 12px; font-size: 12.5px; }
.vf-empty { text-align: center; color: var(--ink-3); }

/* L3 会计等式卡 */
.vf-eq { grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; }
.vf-eq .stat-card { background: #fff; }
.vf-retained { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.vf-rrow { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.vf-rl { min-width: 128px; font-weight: 700; color: var(--ink); }
.vf-rrow .sv { font-family: var(--serif); font-size: 18px; font-weight: 900; }
.vf-rn { font-size: 12px; color: var(--ink-3); }
.vf-eq-ok { color: var(--jade); font-weight: 700; }
.vf-eq-bad {
  color: var(--cinnabar-deep); font-weight: 700;
  border-left: 3px solid var(--cinnabar); padding-left: 12px; line-height: 1.7;
}

/* ---------- 关于页 ---------- */
.about-hero { padding: 150px 0 60px; text-align: center; }
.about-hero .seal { margin-bottom: 24px; }
.about-hero h1 { font-family: var(--serif); font-size: clamp(34px, 4.5vw, 50px); font-weight: 900; margin-bottom: 16px; }
.about-hero p { color: var(--ink-3); font-size: 16.5px; letter-spacing: .2em; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 {
  font-family: var(--serif); font-size: 26px; font-weight: 900;
  margin: 56px 0 18px; padding-left: 18px; border-left: 4px solid var(--cinnabar);
}
.prose p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 16px; line-height: 1.95; }

/* ---------- 面包屑（内容页「帮助中心」集群） ---------- */
.breadcrumb { margin: 0 0 26px; padding-bottom: 14px; border-bottom: 1px solid var(--hairline); font-size: 13px; color: var(--ink-3); }
.breadcrumb a { color: var(--ink-3); text-decoration: none; transition: color .25s; }
.breadcrumb a:hover { color: var(--cinnabar); }
.breadcrumb .sep { margin: 0 8px; opacity: .55; }
.breadcrumb .cur { color: var(--ink-2); font-weight: 600; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-ways { display: flex; flex-direction: column; gap: 14px; }
.contact-way {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--hairline-2);
  border-radius: 12px; padding: 20px 22px;
  transition: all .3s var(--ease);
}
.contact-way:hover { transform: translateX(6px); border-color: var(--gold-light); }
.contact-way .cw-ico {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(145deg, rgba(182,58,42,.09), rgba(176,141,70,.12));
  display: flex; align-items: center; justify-content: center; color: var(--cinnabar);
}
.contact-way h3 { font-family: var(--serif); font-size: 16px; font-weight: 700; }
.contact-way p { font-size: 13px; color: var(--ink-3); }

/* ---------- 问题反馈弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(24,27,34,.42); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: panelIn .25s var(--ease);
}
.modal-mask[hidden] { display: none; }
.modal-card {
  position: relative; width: 100%; max-width: 460px;
  background: var(--paper-2); border: 1px solid var(--hairline);
  border-radius: 18px; padding: 30px 30px 26px;
  box-shadow: var(--shadow-lg);
  animation: panelIn .3s var(--ease);
}
.modal-card h3 { font-family: var(--serif); font-size: 22px; font-weight: 900; margin-bottom: 6px; }
.modal-sub { font-size: 13.5px; color: var(--ink-3); margin-bottom: 20px; line-height: 1.7; }
.modal-close {
  position: absolute; top: 16px; right: 18px;
  border: none; background: none; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--ink-3);
  width: 30px; height: 30px; border-radius: 8px; transition: all .2s;
}
.modal-close:hover { color: var(--cinnabar); background: rgba(182,58,42,.08); }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }

.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: var(--paper);
  padding: 13px 26px; border-radius: 12px; font-size: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0; transition: all .45s var(--ease); z-index: 400;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--cinnabar-deep); }

@media (max-width: 760px) {
  .panel { padding: 30px 22px; }
  .type-grid, .contact-grid { grid-template-columns: 1fr; }
  .result-summary { grid-template-columns: repeat(2, 1fr); }
  .wiz-step { width: 84px; }
  .wiz-step .t { font-size: 11.5px; }
  .dl-grid { grid-template-columns: 1fr; }
  .dl-all { width: 100%; text-align: center; justify-content: center; }
}
