/* 口播稿体检 · 手机优先，PC 自动加宽。无外部字体/图片依赖。 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --ink: #16232e;
  --muted: #68768a;
  --line: #e3e8ef;
  --brand: #0f4c8a;
  --brand-d: #0b3a69;
  --bg: #f3f5f8;
  --green: #1a7f4e;
  --green-bg: #e8f6ee;
  --red: #c0392b;
  --red-bg: #fdecea;
  --amber: #9a6a00;
  --amber-bg: #fdf3dc;
  --radius: 14px;
}
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, #0f2a43, #123f66);
  color: #fff;
}
.brand { font-weight: 700; font-size: 17px; display: flex; align-items: baseline; gap: 8px; }
.brand-sub { font-size: 12px; font-weight: 400; opacity: .75; }
.linkbtn {
  background: transparent; border: 1px solid rgba(255,255,255,.5); color: #fff;
  border-radius: 8px; padding: 4px 10px; font-size: 13px;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 16px 14px 40px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 16px; margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(20, 45, 80, .05);
}
h1 { font-size: 20px; margin: 0 0 8px; }
.muted { color: var(--muted); font-size: 14px; }
.privacy { font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; margin-bottom: 0; }

.input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; font-size: 16px; font-family: inherit; color: var(--ink);
  background: #fbfcfe;
}
.input:focus { outline: 2px solid rgba(15,76,138,.25); border-color: var(--brand); background: #fff; }
.input.big { padding: 14px; font-size: 17px; }
.area { min-height: 42vh; resize: vertical; line-height: 1.7; }
.area.small { min-height: 90px; }
.lbl { display: block; font-weight: 600; margin: 16px 0 8px; font-size: 15px; }

.btn {
  display: inline-block; border: 1px solid var(--brand); background: var(--brand); color: #fff;
  border-radius: 10px; padding: 11px 18px; font-size: 16px; font-family: inherit;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-d); }
.btn.big { padding: 14px 20px; font-size: 17px; }
.btn.block { width: 100%; margin-top: 16px; }
.btn.danger { background: #fff; color: var(--red); border-color: var(--red); margin-top: 10px; width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.err { color: var(--red); background: var(--red-bg); border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.mockbadge { margin: 12px 0 0; font-size: 13px; color: var(--amber); background: var(--amber-bg);
  border-radius: 8px; padding: 8px 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 9px 16px; font-size: 15px; font-family: inherit; cursor: pointer;
}
.chip.sel { border-color: var(--brand); background: var(--brand); color: #fff; font-weight: 600; }

.checkline { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 4px; font-size: 14px; color: #33414f; }
.checkline input { margin-top: 4px; width: 18px; height: 18px; flex: none; }

/* 步骤条 */
.steps { margin: 14px 0 16px; }
.step {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 2px; position: relative;
}
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 15px; top: 38px; bottom: -6px;
  width: 2px; background: var(--line);
}
.dot {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: #eef1f5; color: var(--muted); font-weight: 700; font-size: 14px;
  border: 2px solid #eef1f5; z-index: 1;
}
.step.pass .dot { background: var(--green); border-color: var(--green); color: #fff; }
.step.run .dot { background: var(--brand); border-color: var(--brand); color: #fff;
  animation: pulse 1.3s infinite; }
.step.block .dot { background: var(--red); border-color: var(--red); color: #fff; }
.step.together .dot { background: #fff; border-color: var(--green); color: var(--green); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(15,76,138,.35);} 50% { box-shadow: 0 0 0 8px rgba(15,76,138,0);} }
.stepmeta { padding-top: 3px; }
.stepname { font-weight: 600; font-size: 15.5px; }
.stepsub { font-size: 13px; color: var(--muted); }
.step.pass .stepsub { color: var(--green); }
.step.block .stepsub { color: var(--red); }

.statusbox { border-radius: 10px; padding: 12px 14px; font-size: 15px; margin-bottom: 12px; }
.statusbox.run { background: #eaf2fb; color: var(--brand-d); }
.statusbox.block { background: var(--red-bg); color: var(--red); }
.statusbox.done { background: var(--green-bg); color: var(--green); }
.statusbox.error { background: var(--red-bg); color: var(--red); }
.spin {
  display: inline-block; width: 14px; height: 14px; margin-right: 8px;
  border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%;
  vertical-align: -2px; animation: rot 0.9s linear infinite;
}
@keyframes rot { to { transform: rotate(360deg); } }

.fixbox { border: 1px solid #f3c3bd; background: #fff8f7; border-radius: 10px; padding: 14px; }
.fixhead { font-weight: 700; color: var(--red); margin-bottom: 6px; }
.fixlist { margin: 0; padding-left: 20px; }
.fixlist li { margin-bottom: 8px; font-size: 14.5px; }
.fixlist .chk { color: var(--red); font-weight: 600; }
.fixlist .fx { color: #5a2a23; }
.override { margin-top: 12px; border-top: 1px dashed #e7b7b0; padding-top: 10px; font-size: 14px; }
.override summary { color: var(--muted); cursor: pointer; }

.logbox { margin-top: 14px; }
.logbox summary { color: var(--muted); font-size: 13.5px; cursor: pointer; }
.loglist { font-size: 12.5px; color: var(--muted); padding-left: 18px; margin: 8px 0 0; }
.loglist li { margin-bottom: 4px; word-break: break-all; }

/* 报告 */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 6px -2px 14px; overflow-x: auto; }
.tab {
  border: none; background: none; padding: 10px 14px; font-size: 15px; font-family: inherit;
  color: var(--muted); border-bottom: 2.5px solid transparent; white-space: nowrap; cursor: pointer;
}
.tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }
.publish-actions { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.publish {
  white-space: pre-wrap; word-break: break-word; background: #fbfcfe;
  border: 1px solid var(--line); border-radius: 10px; padding: 14px;
  font-family: inherit; font-size: 15.5px; line-height: 1.85; margin: 0;
}
.md { font-size: 15px; line-height: 1.8; }
.md h1, .md h2, .md h3 { line-height: 1.4; margin: 18px 0 8px; }
.md h2 { font-size: 17px; border-left: 4px solid var(--brand); padding-left: 8px; }
.md h3 { font-size: 15.5px; }
.md table { border-collapse: collapse; width: 100%; font-size: 13.5px; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.md th { background: #f5f7fa; }
.md blockquote { margin: 8px 0; padding: 4px 12px; border-left: 3px solid var(--line); color: var(--muted); }
.md code { background: #f1f3f6; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.md ul, .md ol { padding-left: 22px; }
.tablewrap { overflow-x: auto; }
.rcpt { border-collapse: collapse; width: 100%; font-size: 13px; }
.rcpt th, .rcpt td { border: 1px solid var(--line); padding: 7px 9px; text-align: left; word-break: break-all; }
.rcpt th { background: #f5f7fa; white-space: nowrap; }
.foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 8px 16px 28px; }

/* PC 端 */
@media (min-width: 820px) {
  .wrap { max-width: 820px; padding-top: 28px; }
  .card { padding: 28px 32px; }
  h1 { font-size: 23px; }
  .area { min-height: 300px; }
}

/* ---- 首页信任状 ---- */
.hero { text-align: center; padding: 6px 0 4px; }
.hero-badge {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: 1px;
  color: var(--brand); background: #eaf2fb; border-radius: 999px; padding: 4px 12px;
}
.hero-title { font-size: 25px; line-height: 1.35; margin: 12px 0 10px; letter-spacing: .5px; }
.hero-sub { font-size: 15px; color: #425061; margin: 0 auto 18px; max-width: 34em; text-align: left; }
.sub-h { font-size: 17px; margin: 18px 0 6px; }
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0 8px;
}
.stat {
  background: linear-gradient(135deg, #f4f8fd, #eef3fa); border: 1px solid #dde7f2;
  border-radius: 12px; padding: 12px 8px;
}
.stat-n { font-size: 24px; font-weight: 800; color: var(--brand); line-height: 1.2; }
.stat-l { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.stats-date { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---- 历史记录 ---- */
.history { border: 1px solid var(--line); border-radius: 12px; margin: 14px 0 4px; overflow: hidden; }
.history-head {
  background: #f5f7fa; font-size: 13.5px; font-weight: 700; color: #33414f;
  padding: 9px 14px; border-bottom: 1px solid var(--line);
}
.hist-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-bottom: 1px solid #f0f2f6; cursor: pointer;
  background: #fff;
}
.hist-item:last-child { border-bottom: none; }
.hist-item:active { background: #f7f9fc; }
.hist-main { min-width: 0; flex: 1; }
.hist-name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-meta { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.hist-tag { flex: none; font-size: 12.5px; border-radius: 999px; padding: 3px 10px; font-weight: 600; }
.hist-tag.done { background: var(--green-bg); color: var(--green); }
.hist-tag.running { background: #eaf2fb; color: var(--brand); }
.hist-tag.blocked { background: var(--amber-bg); color: var(--amber); }
.hist-tag.error { background: var(--red-bg); color: var(--red); }

/* ---- 打回人话卡片 ---- */
.fix-emoji { font-size: 30px; text-align: center; margin-bottom: 2px; }
.fixlead { font-size: 14.5px; color: #5a2a23; margin: 4px 0 10px; }
.fixfoot { font-size: 12.5px; color: var(--muted); text-align: center; margin: 10px 0 0; }
.fixbox .btn.block { margin-top: 12px; }

/* ---- 报告结论条 ---- */
.verdict {
  background: linear-gradient(135deg, #e8f6ee, #f0faf4);
  border: 1px solid #bfe4cf; border-radius: 12px;
  padding: 16px; margin-bottom: 16px; text-align: center;
}
.verdict-big { font-size: 21px; font-weight: 800; color: var(--green); }
.verdict-sub { font-size: 14px; color: #3d5b49; margin-top: 6px; text-align: left; }

/* 双模式切换 */
.mode-switch{display:flex;gap:8px;margin:14px 0 12px}
.mode-btn{flex:1;padding:10px 8px;border-radius:10px;border:1.5px solid var(--line);background:#fff;color:var(--muted);font-size:13px;font-weight:600;cursor:pointer;transition:.15s}
.mode-btn.sel{border-color:var(--brand);color:var(--brand);background:#eef4fb}
.area.short{min-height:110px}
.scout-box{margin-top:14px;padding:14px;border-radius:12px;background:#f7f8fb;border:1px solid var(--line,#e3e3e8)}
.scout-box h1{font-size:17px;margin:4px 0 10px}
.scout-box h2{font-size:14px;margin:14px 0 6px}
.scout-box ul{margin:6px 0;padding-left:20px}
.scout-cta{margin-top:14px;padding-top:12px;border-top:1px dashed var(--line,#e3e3e8)}

/* 公开方法库 */
.ghost-btn{background:#fff;color:var(--brand);border:1.5px solid var(--brand);margin-top:10px;font-weight:600}
.learn-stat{margin:10px 0 12px;font-size:13px}
.learn-list{display:flex;flex-direction:column;gap:10px}
.learn-card{border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:#fff}
.learn-card-h{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:8px}
.learn-topic{font-weight:700;font-size:15px;color:var(--ink)}
.learn-n{font-size:12px;color:var(--amber);white-space:nowrap}
.points{display:flex;flex-wrap:wrap;gap:6px}
.point{font-size:12.5px;background:#f1f5fa;color:#2b4a66;border-radius:20px;padding:4px 11px;line-height:1.5}
.learn-cta{margin-top:18px;padding:16px;border-radius:14px;background:linear-gradient(180deg,#f3f8fd,#eaf2fa);border:1px solid var(--line)}
.learn-cta-title{font-weight:800;font-size:16px;color:var(--brand);margin-bottom:6px}
.learn-cta .muted{font-size:13px;margin-bottom:12px}
.tab-hint{font-size:13.5px;background:#f3f8fd;border:1px solid var(--line);border-radius:8px;padding:9px 12px;margin:0 0 10px;line-height:1.7}

/* ---- 修订痕迹（发稿版） ---- */
.viewswitch{display:flex;gap:8px;margin:0 0 12px;flex-wrap:wrap}
.viewswitch .btn{flex:1 1 200px}
.tracked-summary{font-size:14px;font-weight:700;color:#9a5b00;background:#fff6e3;border:1px solid #f3d9a0;border-radius:8px;padding:9px 12px;margin:0 0 10px}
.publish.tracked{white-space:pre-wrap;word-break:break-word}
.trk-del{color:#b4231a;text-decoration:line-through;text-decoration-thickness:1.5px;background:#fdecea;border-radius:3px;padding:0 1px}
.trk-ins{color:#116c32;background:#e4f7eb;border-radius:3px;padding:0 2px;font-weight:600;text-decoration:none}
.trk-grp{margin:0 1px}
.trk-n{display:inline-flex;align-items:center;justify-content:center;min-width:17px;height:17px;padding:0 4px;margin:0 0 0 3px;background:#d97706;color:#fff;border-radius:9px;font-size:10.5px;font-weight:700;vertical-align:super;line-height:1}
.changelist-title{margin:18px 0 10px;font-size:16px}
.changelist{display:flex;flex-direction:column;gap:10px}
.chg-card{border:1px solid var(--line);border-radius:10px;padding:11px 13px;background:#fcfdff}
.chg-head{display:flex;align-items:center;gap:8px;margin-bottom:7px}
.chg-dim{font-weight:700;font-size:14.5px}
.chg-kind{font-size:12px;font-weight:700;border-radius:5px;padding:1px 8px;margin-left:auto}
.chg-kind.k-删{color:#b4231a;background:#fdecea}
.chg-kind.k-换{color:#9a5b00;background:#fff6e3}
.chg-kind.k-调{color:#1d4fb8;background:#e8f0fe}
.chg-kind.k-增{color:#116c32;background:#e4f7eb}
.ch-row{display:flex;gap:8px;font-size:14px;line-height:1.7;margin:3px 0;align-items:baseline}
.ch-row .ch-tag{flex:0 0 auto;font-size:11px;color:#fff;background:#9aa7b3;border-radius:4px;padding:0 6px;height:19px;line-height:19px}
.ch-old del{color:#b4231a;text-decoration-thickness:1.5px}
.ch-new ins{color:#116c32;text-decoration:none;font-weight:600}
.chg-why{margin-top:7px;background:#f3f8fd;border:1px solid var(--line);border-radius:8px;padding:8px 11px;font-size:13.5px;line-height:1.7}
