/* ============================================================================
 * style.css — 无依赖、可离线打开
 * ========================================================================== */

:root {
  --ink:      #1a1d21;
  --ink-2:    #55606d;
  --muted:    #8a949f;
  --line:     #e3e7eb;
  --bg:       #f6f7f9;
  --card:     #ffffff;
  --accent:   #2f5d8a;
  --accent-d: #24486b;
  --danger:   #b03a2e;
  --danger-bg:#fdf1ef;
  --info:     #2f5d8a;
  --info-bg:  #eef4fa;
  --warn:     #8a6d1f;
  --warn-bg:  #fdf8e8;
  --ok:       #2e6b4f;
  --radius:   10px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  position: sticky; top: 0; z-index: 20;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand-tag  { color: var(--muted); font-size: 13px; margin-left: 10px; }
.stamp { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- intro ---------- */
.intro { padding: 32px 0 8px; }
.intro h1 { font-size: 26px; line-height: 1.35; margin: 0 0 12px; letter-spacing: -.02em; }
.lede { font-size: 16px; color: var(--ink-2); margin: 0 0 10px; max-width: 60em; }
.muted { color: var(--muted); }
.footnote { font-size: 13px; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; padding: 22px 0 40px; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
}
.panel h2 { font-size: 15px; margin: 0 0 14px; letter-spacing: .01em; }
.panel h2:not(:first-child) { margin-top: 26px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 匿名摘要 ---------- */
.share-box {
  margin-top: 16px; padding: 16px 18px;
  border: 1px solid #cfe0ee; background: #f6fafd; border-radius: 10px;
}
.share-note { font-size: 12.5px; color: var(--ink-2); margin: 0 0 14px; }
.share-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.share-cols b { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.share-cols ul { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); }
.share-cols li { margin-bottom: 3px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.share-preview {
  margin: 14px 0 0; padding: 12px; max-height: 320px; overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  font-size: 11.5px; line-height: 1.5; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre; color: #33404d;
}

/* ---------- 真实成本率 ---------- */
.rate-hero {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 16px 18px; background: #f6fafd; border: 1px solid #d3e3f0; border-radius: 10px;
}
.rate-num { font-size: 34px; font-weight: 650; color: var(--accent); line-height: 1; }
.rate-desc { font-size: 13px; color: var(--ink-2); line-height: 1.7; }

/* ---------- 费用 VAT ---------- */
.vat-box {
  border: 1px solid #ecdcb8; background: #fdfaf1; border-radius: 10px;
  padding: 12px 16px; max-width: 420px;
}
.vat-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; color: var(--ink-2); padding: 4px 0;
}
.vat-row.total {
  border-top: 1px solid #ecdcb8; margin-top: 6px; padding-top: 9px;
  font-weight: 600; color: var(--ink);
}
.vat-row b { font-variant-numeric: tabular-nums; }

/* ---------- 环比对比 ---------- */
.mom-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
  margin-bottom: 12px; background: #fff;
}
.mom-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; margin-bottom: 10px; font-size: 13.5px; flex-wrap: wrap;
}
.mom-rate { font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 20px; }
.mom-rate.up   { background: var(--danger-bg); color: var(--danger); }
.mom-rate.down { background: #e6f0e9; color: #2e6b4f; }
.mom-grid {
  display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 13px; margin-bottom: 8px;
}
.mom-grid > div { display: flex; align-items: baseline; gap: 7px; }
.mom-grid b { font-variant-numeric: tabular-nums; }
.mom-deltas { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; }
.mom-delta {
  background: #f4f6f8; border-radius: 6px; padding: 3px 9px;
  font-variant-numeric: tabular-nums;
}
.mom-delta.up   { background: #fdf0ee; color: #9c3a2a; }
.mom-delta.down { background: #eef6f0; color: #2e6b4f; }

/* ---------- 反馈表单 ---------- */
.feedback-box {
  margin-top: 20px; padding: 18px 20px;
  border: 1px solid #d8e3ec; border-radius: 10px; background: #fbfdff;
}
.feedback-box h4 { margin: 0 0 6px; font-size: 15px; }
.feedback-lead { margin: 0 0 14px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.fb-field { display: block; margin-bottom: 12px; }
.fb-field > span { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; }
.fb-field textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 13px;
  resize: vertical; background: #fff; color: var(--ink);
}
.fb-field textarea:focus { outline: 2px solid #bcd8ee; outline-offset: -1px; border-color: #9cc4e4; }
.fb-check {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--ink-2); margin-bottom: 12px; line-height: 1.5;
}
.fb-check input { margin-top: 2px; flex: 0 0 auto; }
.fb-details { margin-bottom: 14px; font-size: 12.5px; }
.fb-details summary { cursor: pointer; color: var(--accent); }
.fb-details summary:hover { text-decoration: underline; }
.fb-details .share-preview { max-height: 240px; margin-top: 10px; }
.fb-status { margin: 10px 0 0; font-size: 12.5px; line-height: 1.6; min-height: 1em; }
.fb-status.ok   { color: #2e6b4f; }
.fb-status.warn { color: #8a6d1f; }
.fb-status.err  { color: var(--danger); }

/* 首屏常驻反馈区：弱化视觉重量，但一直可见 */
#feedbackPanel { padding: 18px 20px; }
#feedbackPanel .hint { margin: 0 0 12px; }
#feedbackPanel .feedback-box { margin-top: 0; background: #fff; }
#feedbackPanel .feedback-box .feedback-lead { display: none; }
.fb-attach-note { color: var(--muted); font-size: 12px; }

/* ---------- 说明折叠 ---------- */
.intro-more { margin-top: 12px; font-size: 13.5px; }
.intro-more summary {
  cursor: pointer; color: var(--accent); font-size: 13.5px;
  list-style: none; display: inline-block;
}
.intro-more summary::-webkit-details-marker { display: none; }
.intro-more summary::before { content: '▸ '; font-size: 11px; }
.intro-more[open] summary::before { content: '▾ '; }
.intro-more summary:hover { text-decoration: underline; }
.intro-more p { margin: 10px 0 0; color: var(--ink-2); line-height: 1.7; }

/* ---------- 右下角按钮组 ---------- */
.fab-group {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; flex-direction: column; align-items: flex-end; gap: 9px;
}
.fb-fab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 15px; border-radius: 22px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 550;
  color: #fff; background: var(--accent);
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 3px 14px rgba(43, 108, 176, .28);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.fb-fab:hover { transform: translateY(-1px); box-shadow: 0 5px 18px rgba(43, 108, 176, .34); }
.fb-fab:active { transform: translateY(0); }
/* 打赏按钮次要一些：用暖色但不是主色，避免比工具本身还抢眼 */
.fb-fab-tip {
  background: #b8823a;
  box-shadow: 0 3px 14px rgba(184, 130, 58, .26);
}
.fb-fab-tip:hover { background: #a5732f; box-shadow: 0 5px 18px rgba(184, 130, 58, .32); }
@media (max-width: 560px) {
  .fab-group { right: 12px; bottom: 12px; }
  .fb-fab { padding: 9px 13px; }
}

/* ---------- 打赏内容 ---------- */
.tip-box { font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }
.tip-lead { margin: 0 0 16px; }
.tip-amounts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.tip-amount {
  display: inline-flex; align-items: baseline; gap: 3px;
  min-width: 76px; justify-content: center;
  padding: 11px 18px; border-radius: 10px; text-decoration: none;
  background: #fdf8f0; border: 1px solid #ecdcb8; color: #8a5d1f;
  font-size: 16px; font-weight: 620; font-variant-numeric: tabular-nums;
  transition: background .15s, border-color .15s, transform .15s;
}
.tip-amount:hover { background: #faf1e2; border-color: #dcc48f; transform: translateY(-1px); }
.tip-cur { font-size: 11.5px; font-weight: 500; opacity: .75; }
.tip-other { margin: 0 0 14px; font-size: 13px; }
.tip-other a { color: var(--accent); text-decoration: none; }
.tip-other a:hover { text-decoration: underline; }
.tip-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.tip-btn {
  display: inline-block; text-decoration: none;
  padding: 11px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  background: var(--accent); color: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  transition: background .15s, transform .15s;
}
.tip-btn:hover { background: #24598f; transform: translateY(-1px); }
/* 爱发电用暖色，和 PayPal 区分开 */
.tip-afdian { background: #c8553d; }
.tip-afdian:hover { background: #ad4632; }
.tip-note {
  margin: 0; padding: 11px 13px; border-radius: 8px;
  background: #f4f7fa; color: var(--ink-2); font-size: 12.5px; line-height: 1.65;
}

/* ---------- 反馈弹窗 ---------- */
.fb-modal { position: fixed; inset: 0; z-index: 70; display: flex;
            align-items: center; justify-content: center; padding: 20px; }
.fb-modal[hidden] { display: none; }
.fb-modal-mask { position: absolute; inset: 0; background: rgba(20, 30, 40, .42); }
.fb-modal-panel {
  position: relative; z-index: 1; width: 100%; max-width: 560px;
  max-height: calc(100vh - 40px); overflow-y: auto;
  background: #fff; border-radius: 14px; padding: 24px 26px 22px;
  box-shadow: 0 18px 50px rgba(16, 28, 40, .26);
}
.fb-modal-panel h3 { margin: 0 0 8px; font-size: 17px; }
.fb-modal-panel .hint { margin: 0 0 16px; }
.fb-modal-x {
  position: absolute; top: 10px; right: 12px; width: 30px; height: 30px;
  border: 0; background: transparent; cursor: pointer; font-size: 22px;
  line-height: 1; color: var(--muted); border-radius: 6px;
}
.fb-modal-x:hover { background: #f0f4f8; color: var(--ink); }
.fb-modal-panel .feedback-box { border: 0; background: transparent; padding: 0; margin: 0; }

/* 页脚的文字按钮 */
.link-btn {
  border: 0; background: transparent; padding: 0; cursor: pointer;
  font: inherit; color: var(--accent); text-decoration: underline;
}
.link-btn:hover { color: #24598f; }

/* 分享面板底部的反馈引导（不再放第二份表单） */
.share-feedback-cta {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2); line-height: 1.7;
}
.share-feedback-cta b { color: var(--ink); }
.share-feedback-cta .btn { margin-top: 10px; display: inline-block; }
@media (max-width: 640px) { .share-cols { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

label { display: block; font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
input[type="text"], input[type="number"], input[type="date"], select {
  width: 100%; margin-top: 5px; padding: 8px 10px;
  font: inherit; font-size: 14px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 7px; background: #fff;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
input::placeholder { color: #b9c1c9; }

.hint { font-size: 12.5px; color: var(--muted); margin: 0 0 12px; }

/* ---------- CSV 上传 ---------- */
.upload-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin-top: 18px;
}
.upload-head {
  display: flex; flex-wrap: wrap; gap: 16px 24px;
  align-items: flex-start; justify-content: space-between; margin-bottom: 16px;
}
.upload-head h2 { font-size: 15px; margin: 0 0 4px; }
.upload-sub { margin: 0; font-size: 12.5px; color: var(--muted); }

.currency-field { display: flex; flex-direction: column; gap: 5px; min-width: 170px; }
.currency-field label { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.currency-field select { margin-top: 0; }

/* 上传区：虚线框 + 拖放反馈 */
.upload-drop {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding: 18px 20px; border: 1.5px dashed #ccd5de; border-radius: 10px;
  background: #fbfcfd; transition: border-color .15s, background .15s;
}
.upload-drop.dragging { border-color: var(--accent); background: #f2f7fc; }
.drop-hint { font-size: 12.5px; color: var(--muted); }

/* 隐藏原生 file input，用 label 做统一风格按钮 */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.file-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; padding: 10px 18px; cursor: pointer; margin: 0;
  font-weight: 550; user-select: none; max-width: 100%;
}
.file-btn > span:last-child {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px;
}
.file-btn-icon { font-size: 16px; line-height: 1; }
.file-btn:hover { background: var(--accent-d); border-color: var(--accent-d); }
.visually-hidden:focus-visible + .file-btn { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 折叠的导出说明 */
.howto { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.howto > summary {
  cursor: pointer; font-size: 13px; color: var(--accent); font-weight: 550;
  list-style: none; display: flex; align-items: center; gap: 6px; user-select: none;
}
.howto > summary::-webkit-details-marker { display: none; }
.howto > summary::before {
  content: '▸'; font-size: 11px; transition: transform .15s; display: inline-block;
}
.howto[open] > summary::before { transform: rotate(90deg); }
.howto > summary:hover { color: var(--accent-d); }
.howto-body { padding: 14px 0 2px; }
.howto-lead { margin: 0 0 14px; font-size: 13px; color: var(--ink-2); }
.howto-list { margin: 0; padding: 0; list-style: none; counter-reset: h; }
.howto-list > li {
  position: relative; padding: 0 0 14px 30px; counter-increment: h;
}
.howto-list > li::before {
  content: counter(h); position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%; background: #eef1f4; color: var(--ink-2);
  font-size: 11.5px; font-weight: 650; display: flex; align-items: center; justify-content: center;
}
.howto-list > li:not(:last-child)::after {
  content: ''; position: absolute; left: 9.5px; top: 24px; bottom: 2px;
  width: 1px; background: var(--line);
}
.howto-title { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.howto-desc { font-size: 12.5px; color: var(--ink-2); }
.howto-foot {
  margin: 4px 0 0; padding-top: 12px; border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--muted);
}
.howto-foot code {
  background: #f1f3f5; border-radius: 4px; padding: 1px 5px; font-size: 11.5px;
}
.tag {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px;
  border-radius: 20px; margin-left: 6px; vertical-align: 1px;
}
.tag-best { background: #e6f0e9; color: #2e6b4f; }
.tag-warn { background: var(--warn-bg); color: var(--warn); }

.csv-status { margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.csv-status.ok  { background: #f2f8f4; border: 1px solid #cfe6d8; color: #245a3f;
                  border-radius: 8px; padding: 10px 12px; }
.csv-status.err { background: var(--danger-bg); border: 1px solid #f0cfc9; color: var(--danger);
                  border-radius: 8px; padding: 10px 12px; }

/* 已载入文件的小标签 */
.loaded-files { margin-top: 12px; }
.file-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.file-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: #eef3f8; border: 1px solid #d5e0eb; border-radius: 20px;
  padding: 4px 6px 4px 12px; font-size: 12.5px; color: var(--ink-2);
}
.file-chip b { font-weight: 600; color: #2f5d8a; }
.chip-meta { color: var(--muted); font-size: 11.5px; }
.chip-x {
  border: 0; background: transparent; cursor: pointer; color: var(--muted);
  font-size: 15px; line-height: 1; padding: 0 4px; border-radius: 50%;
}
.chip-x:hover { background: #dbe5ef; color: var(--danger); }
.panel-title { font-size: 15px; margin: 0 0 14px; }
.check-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.check-label input[type="checkbox"] { width: auto; margin: 0; }

/* ---------- 店铺体检 ---------- */
#shopCheck h3.sub {
  font-size: 12.5px; color: var(--muted); font-weight: 600;
  margin: 18px 0 10px; letter-spacing: .02em;
}
#shopCheck h3.sub:first-child { margin-top: 0; }
.mini-table { display: flex; flex-direction: column; gap: 8px; }
.mini-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 12.5px; }
.mini-label { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-track { background: #eef1f4; border-radius: 5px; height: 8px; overflow: hidden; min-width: 20px; }
.mini-track i { display: block; height: 100%; background: var(--accent); border-radius: 5px; }
.mini-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 550; white-space: nowrap; }
.mini-val .muted { font-weight: 400; font-size: 11px; }
.saving { background: #f7f9fb; border-radius: 8px; padding: 11px 13px; margin-bottom: 9px; }
.saving-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; margin-bottom: 4px; }
.saving-head span { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--accent); white-space: nowrap; }
.saving p { margin: 0; font-size: 12.5px; color: var(--ink-2); }
@media (max-width: 640px) {
  .mini-row { grid-template-columns: 92px minmax(0, 1fr) auto; font-size: 12px; }
  .file-btn > span:last-child { max-width: 180px; }
}

.custom-fee-row { display: grid; grid-template-columns: 1fr 130px 34px; gap: 8px; margin-bottom: 8px; }

/* ---------- buttons ---------- */
.btn {
  font: inherit; font-size: 14px; padding: 9px 14px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  cursor: pointer; transition: background .12s, border-color .12s;
}
.btn:hover { background: #f1f3f5; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-d); border-color: var(--accent-d); }
.btn-ghost { background: #fff; }
.btn-sm { font-size: 12.5px; padding: 6px 10px; }
.icon-btn { border: 1px solid var(--line); background: #fff; border-radius: 7px; cursor: pointer; font-size: 15px; line-height: 1; color: var(--muted); }
.icon-btn:hover { color: var(--danger); border-color: var(--danger); }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }

/* ---------- notices ---------- */
.notice {
  border: 1px solid #f0dfa8; background: var(--warn-bg); color: #5d4a12;
  border-radius: var(--radius); padding: 13px 16px; margin-top: 18px; font-size: 13.5px;
}
.notice code { background: #fff; border: 1px solid #e8dcae; border-radius: 4px; padding: 1px 5px; font-size: 12.5px; }

/* ---------- stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.stat-label { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-value { font-size: 21px; font-weight: 650; margin: 3px 0 2px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.stat-sub {
  font-size: 11.5px; color: var(--muted);
  /* 小屏时说明文字只占一行并省略，完整内容在 title 里悬停可见 */
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- findings ---------- */
.finding-group { margin-bottom: 22px; }
.finding-group h3 { font-size: 13.5px; margin: 0 0 3px; display: flex; align-items: center; gap: 8px; }
.finding-group .count {
  font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 20px;
  background: #eef1f4; color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.group-hint { font-size: 12.5px; color: var(--muted); margin: 0 0 11px; }

.finding { border-left: 3px solid var(--line); padding: 11px 0 11px 14px; margin-bottom: 12px; }
.finding h4 { font-size: 14px; margin: 0 0 5px; font-weight: 620; }
.finding p { margin: 0 0 7px; font-size: 13.5px; color: var(--ink-2); }
.finding p:last-child { margin-bottom: 0; }
.finding-meta { font-size: 11.5px; color: var(--muted); margin-bottom: 5px; font-variant-numeric: tabular-nums; }
.finding .action { background: #f7f9fb; border-radius: 7px; padding: 9px 11px; font-size: 13px; }

.g-C .finding { border-left-color: var(--danger); }
.g-C h3 { color: var(--danger); }
.g-A .finding { border-left-color: var(--info); }
.g-A h3 { color: var(--info); }
.g-B .finding { border-left-color: var(--warn); }
.g-B h3 { color: var(--warn); }

/* ---------- breakdown bars ---------- */
.bar-row {
  display: grid; grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 10px; align-items: center; margin-bottom: 9px; font-size: 13px; min-width: 0;
}
.bar-label { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { background: #eef1f4; border-radius: 5px; height: 9px; overflow: hidden; min-width: 20px; }
.bar-fill { background: var(--accent); height: 100%; border-radius: 5px; }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; font-weight: 550; white-space: nowrap; }
.bar-value .muted { font-weight: 400; font-size: 11.5px; }

/* 窄屏：进一步压缩标签列，优先保证数字完整可见 */
@media (max-width: 640px) {
  .bar-row { grid-template-columns: 96px minmax(0, 1fr) auto; font-size: 12.5px; gap: 8px; }
}
@media (max-width: 400px) {
  .bar-row { grid-template-columns: 78px minmax(0, 1fr) auto; font-size: 12px; }
  .bar-value .muted { display: none; }   /* 极窄时隐藏占比，保住金额 */
}

/* ---------- table ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 0 8px 8px 0; border-bottom: 1px solid var(--line); }
td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
td:last-child, th:last-child { text-align: right; padding-right: 0; }
.pill { font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 20px; background: #eef1f4; color: var(--ink-2); }

.empty { color: var(--muted); font-size: 13.5px; margin: 4px 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 20px 0 40px; font-size: 12.5px; color: var(--ink-2); }
.site-footer p { margin: 0 0 7px; max-width: 70em; }
