/* breakdown 页面专用样式（爆款拆解） */
.bd-page [hidden] { display: none !important; }
.bd-page .btn:disabled { opacity: .55; cursor: not-allowed; }
.bd-hd-tip { font-size: 12px; font-weight: 400; color: var(--mute); }
/* 公用 .pill 不换行；这页里的类型 / 平台是 AI 或后端给的字，可能很长，手机上要能折行 */
.bd-page .pill { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }

/* ---------- 输入卡 ---------- */
.bd-input { margin-bottom: 16px; }
.bd-input .panel-hd { padding: 10px 14px; }
.bd-tabs { padding: 3px; }
.bd-tabs .tab { height: 32px; padding: 0 16px; }
.bd-tabs .tab .ic { width: 15px; height: 15px; }
.bd-url { min-height: 112px; font-size: 14px; }
.bd-url-ft { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; margin-top: 8px; }
.bd-hint { color: var(--mute); font-size: 12.5px; }
.bd-detect { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: #0e9a59; }
.bd-detect.warn { color: #c26a00; }
.bd-detect .ic { width: 14px; height: 14px; }
.bd-go-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.bd-go { height: 40px; padding: 0 22px; font-size: 15px; }
.bd-kbd { font-size: 12px; }
.bd-formerr { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; background: #ffecea; color: var(--red); font-size: 13px; }

.bd-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 180px; padding: 24px 16px; text-align: center; cursor: pointer;
  border: 2px dashed #cfd8ea; border-radius: 12px; background: #fafbfd; color: var(--sub);
  transition: border-color .15s, background .15s;
}
.bd-drop:hover, .bd-drop.over { border-color: var(--brand); background: var(--brand-soft); }
.bd-drop .ic { width: 34px; height: 34px; color: var(--brand); }
.bd-drop b { font-size: 15px; color: var(--text); }
.bd-drop small { color: var(--mute); font-size: 12.5px; }
.bd-drop.busy { pointer-events: none; opacity: .55; }
.bd-up { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fafbfd; }
.bd-up-top { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
.bd-up-top .ic { width: 16px; height: 16px; color: var(--brand); }
.bd-up-top .mute { flex: none; font-variant-numeric: tabular-nums; }
.bd-up-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bd-bar { height: 8px; margin-top: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bd-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .2s; }
.bd-up-pct { margin-top: 6px; font-size: 12.5px; color: var(--sub); font-variant-numeric: tabular-nums; }

/* ---------- 最近拆过的 ---------- */
.bd-hist-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.bd-hi {
  position: relative; display: flex; min-width: 0; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s, box-shadow .15s;
}
.bd-hi:hover { border-color: #c9d5f5; box-shadow: 0 4px 14px rgba(59, 108, 246, .08); }
.bd-hi.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.bd-hi-main { flex: 1; min-width: 0; display: flex; gap: 10px; padding: 8px 36px 8px 8px; }
.bd-hi-th {
  position: relative; flex: none; width: 56px; height: 74px; border-radius: 7px; overflow: hidden;
  display: grid; place-items: center; background: #161b2b; color: #4a5575;
}
.bd-hi-th .ic { width: 22px; height: 22px; }
.bd-hi-th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bd-hi-th.bad img { display: none; }
.bd-hi-th i {
  position: absolute; right: 3px; bottom: 3px; font-style: normal; font-size: 10.5px; line-height: 15px;
  padding: 0 4px; border-radius: 4px; background: rgba(0, 0, 0, .6); color: #fff; font-variant-numeric: tabular-nums;
}
.bd-hi-bd { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.bd-hi-bd b {
  font-weight: 600; font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bd-hi:hover .bd-hi-bd b { color: var(--brand); }
.bd-hi-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.bd-hi-bd small { font-size: 12px; }
.bd-hi-del { position: absolute; right: 4px; top: 4px; width: 28px; height: 28px; }
.bd-hi-del .ic { width: 15px; height: 15px; }
.bd-hi-del:hover { color: var(--red); background: #ffefed; }

.bd-hist-fold { margin-top: 16px; }
.bd-hist-fold > summary { list-style: none; cursor: pointer; border-bottom: 0; }
.bd-hist-fold > summary::-webkit-details-marker { display: none; }
.bd-hist-fold > summary h3 { flex: 1; }
.bd-hist-fold[open] > summary { border-bottom: 1px solid var(--line-2); }
.bd-chev { width: 16px; height: 16px; color: var(--mute); transition: transform .2s; }
.bd-hist-fold[open] .bd-chev { transform: rotate(180deg); }

/* ---------- 进度 ---------- */
.bd-prog { margin-bottom: 16px; }
.bd-prog-hd { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.bd-ttl { flex: 1; min-width: 0; }
.bd-ttl > b {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 15.5px; line-height: 1.5; overflow-wrap: anywhere;
}
.bd-ttl-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 5px; font-size: 12.5px; color: var(--mute); }
.bd-fn { min-width: 0; overflow-wrap: anywhere; }

.bd-steps { list-style: none; margin: 0; padding: 16px 12px 4px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bd-st { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.bd-st::before { content: ""; position: absolute; top: 13px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.bd-st:first-child::before { display: none; }
.bd-st.ok::before, .bd-st.run::before, .bd-st.err::before { background: #9ddcbc; }
.bd-st-dot {
  position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--line); color: var(--mute); font-size: 12.5px; font-weight: 600;
}
.bd-st-dot .ic { width: 15px; height: 15px; }
.bd-st.run .bd-st-dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.bd-st.ok .bd-st-dot { border-color: var(--green); background: var(--green); color: #fff; }
.bd-st.err .bd-st-dot { border-color: var(--red); background: var(--red); color: #fff; }
.bd-st b { max-width: 100%; margin-top: 3px; font-size: 13px; font-weight: 500; color: var(--sub); overflow-wrap: anywhere; }
.bd-st.run b { color: var(--brand); font-weight: 600; }
.bd-st.err b { color: var(--red); }
.bd-st small { font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.bd-st em { max-width: 100%; font-style: normal; font-size: 11.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bd-state { display: flex; align-items: center; gap: 8px; padding: 10px 18px 4px; font-size: 13.5px; color: var(--sub); }
.bd-state:last-child { padding-bottom: 14px; }
.bd-state .ic { width: 16px; height: 16px; flex: none; }
.bd-state.run { color: var(--brand); }
.bd-state.ok { color: #0e9a59; }
.bd-state.warn { color: #c26a00; }
.bd-state b { font-variant-numeric: tabular-nums; }
.bd-state-tip { margin: 0; padding: 2px 18px 14px 42px; font-size: 12.5px; color: var(--mute); line-height: 1.6; }
.bd-err {
  display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px 12px; margin: 10px 18px 16px; padding: 12px 14px;
  border-radius: 10px; background: #fff4f2; border: 1px solid #ffd9d4;
}
.bd-err > .ic { width: 18px; height: 18px; color: var(--red); margin-top: 1px; }
.bd-err-bd { flex: 1; min-width: 200px; }
.bd-err-bd b { color: var(--red); }
.bd-err-bd p { margin: 3px 0 0; line-height: 1.6; overflow-wrap: anywhere; }
.bd-err-bd small { display: block; margin-top: 6px; color: var(--sub); font-size: 12.5px; line-height: 1.6; }

/* ---------- 两栏 ---------- */
.bd-cols { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: 16px; align-items: start; }
/* 两栏里面也是 grid：列宽必须写死 minmax(0,1fr)，不然关键画面那一长条会把整栏撑宽（手机上会横着滚） */
.bd-left {
  position: sticky; top: 16px; max-height: calc(100vh - 92px); overflow-y: auto; min-width: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; scrollbar-width: thin;
}
.bd-right { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }

.bd-vbox { overflow: hidden; }
.bd-video { display: flex; justify-content: center; align-items: center; min-height: 200px; background: #0f1320; }
.bd-vid { display: block; width: 100%; max-height: 70vh; background: #000; }
.bd-vid-v { width: auto; max-width: 100%; height: min(70vh, 640px); }
.bd-vid-h { height: auto; }
.bd-vph { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 16px; color: #8b95b3; font-size: 13px; text-align: center; }
.bd-vph .ic { width: 26px; height: 26px; }
.bd-meta { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; }
.bd-chip {
  display: inline-flex; align-items: baseline; gap: 4px; max-width: 100%; padding: 2px 8px; border-radius: 6px;
  font-size: 12.5px; background: var(--line-2); color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.bd-chip i { flex: none; font-style: normal; font-size: 11.5px; color: var(--mute); }
.bd-chip.hot { background: #fff1ed; color: #d4480a; }
.bd-chip.hot i { color: #e5680a; }

.bd-frames { display: flex; gap: 8px; overflow-x: auto; padding: 12px; scrollbar-width: thin; }
.bd-frame {
  position: relative; flex: none; width: 72px; aspect-ratio: 9 / 16; border-radius: 7px; overflow: hidden;
  background: #161b2b; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .12s;
}
.bd-frames.h .bd-frame { width: 128px; aspect-ratio: 16 / 9; }
.bd-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bd-frame.bad img { visibility: hidden; }
.bd-frame:hover { outline-color: var(--brand); }
.bd-frame i {
  position: absolute; left: 3px; bottom: 3px; font-style: normal; font-size: 10.5px; line-height: 15px;
  padding: 0 4px; border-radius: 4px; background: rgba(0, 0, 0, .6); color: #fff; font-variant-numeric: tabular-nums;
}

.bd-tx { position: relative; max-height: 360px; overflow-y: auto; padding: 6px 8px 10px; scrollbar-width: thin; }
.bd-tx-list { list-style: none; margin: 0; padding: 0; }
.bd-seg { width: 100%; display: flex; gap: 8px; padding: 5px 8px; border-radius: 7px; text-align: left; font-size: 13.5px; line-height: 1.6; }
.bd-seg:hover { background: #f5f7fc; }
.bd-seg.on { background: var(--brand-soft); }
.bd-seg time { flex: none; padding-top: 1px; font-size: 12px; color: var(--brand); font-variant-numeric: tabular-nums; }
.bd-seg span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.bd-tx-plain { margin: 0; padding: 8px; font-size: 13.5px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- 报告 ---------- */
.bd-rhd { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bd-rhd h2 { margin: 0; font-size: 17px; }
.bd-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.bd-sum {
  padding: 16px 18px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(120deg, #2f63f0 0%, #4b7bff 45%, #7a63ff 100%); box-shadow: 0 8px 22px rgba(59, 108, 246, .22);
}
.bd-sum span { font-size: 12px; opacity: .85; letter-spacing: .5px; }
.bd-sum p { margin: 4px 0 0; font-size: 16.5px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }

.bd-card { min-width: 0; }
.bd-card-hd { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.bd-card-hd h3 { margin: 0; font-size: 15px; }
.bd-card-hd .bd-hd-tip { margin-left: auto; }
.bd-no {
  flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; background: var(--brand-soft); color: var(--brand);
}
.bd-no .ic { width: 15px; height: 15px; }
.bd-card-bd { display: grid; gap: 12px; min-width: 0; padding: 14px 16px 16px; }
.bd-card .empty .btn { margin-top: 4px; }
.bd-sub { margin-bottom: 6px; font-size: 12.5px; color: var(--mute); }
.bd-p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--sub); white-space: pre-line; overflow-wrap: anywhere; }

.bd-quote {
  margin: 0; padding: 10px 14px; border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0; background: #f6f8fe;
  font-size: 15px; line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere;
}
.bd-kv { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 8px 12px; margin: 0; font-size: 13.5px; }
.bd-kv dt { color: var(--mute); }
.bd-kv dd { margin: 0; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.bd-ul { margin: 0; padding-left: 1.2em; white-space: normal; }
.bd-ul li + li { margin-top: 2px; }
.bd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bd-cchip {
  max-width: 100%; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; line-height: 1.5; text-align: left;
  background: var(--brand-soft); color: var(--brand); overflow-wrap: anywhere;
}
button.bd-cchip:hover { background: #dfe8ff; }
.bd-cchip.plain { background: var(--line-2); color: var(--sub); }

.bd-score { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.bd-score .bd-sub { margin: 0; }
.bd-score b { font-size: 20px; line-height: 1; color: var(--orange); font-variant-numeric: tabular-nums; }
.bd-score small { margin-left: -6px; font-size: 12px; color: var(--mute); }
.bd-dots { display: inline-flex; gap: 4px; }
.bd-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.bd-dots.s i.on { background: var(--orange); }
.bd-dots.w { gap: 3px; margin-top: 5px; }
.bd-dots.w i { width: 8px; height: 8px; }
.bd-dots.w i.on { background: var(--red); }

.bd-formula { padding: 10px 14px; border-radius: 8px; background: #fff8e8; color: #7a4f00; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.bd-formula span { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 400; color: #b07a16; }
.bd-segbar { display: flex; gap: 2px; height: 12px; border-radius: 99px; overflow: hidden; }
.bd-segbar button { height: 100%; min-width: 4px; background: var(--rc); transition: filter .12s; }
.bd-segbar button:hover { filter: brightness(1.12); }
.bd-tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.bd-tl-row {
  width: 100%; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: baseline; gap: 4px 10px;
  padding: 7px 8px; border-radius: 8px; text-align: left;
}
.bd-tl-row[data-act]:hover { background: #f5f7fc; }
.bd-tl-row time { font-size: 12px; color: var(--mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bd-tl-row span { font-size: 13.5px; line-height: 1.6; overflow-wrap: anywhere; }
.bd-role { max-width: 8em; font-style: normal; font-size: 12px; line-height: 20px; padding: 0 8px; border-radius: 6px; overflow-wrap: anywhere; color: #fff; background: var(--rc); }
.bd-r0 { --rc: #8391ad; }
.bd-r1 { --rc: #f0473a; }
.bd-r2 { --rc: #ff8a1f; }
.bd-r3 { --rc: #7a5af8; }
.bd-r4 { --rc: #3b6cf6; }
.bd-r5 { --rc: #12b76a; }
.bd-r6 { --rc: #e0a100; }
.bd-r7 { --rc: #64748b; }
.bd-r8 { --rc: #e8458b; }

.bd-rbar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; font-size: 12px; color: #fff; }
.bd-rbar span { min-width: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; }
.bd-rbar .o, .bd-rleg .o { background: #f0473a; }
.bd-rbar .m, .bd-rleg .m { background: var(--brand); }
.bd-rbar .e, .bd-rleg .e { background: var(--brand-2); }
.bd-rleg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--sub); }
.bd-rleg span { display: inline-flex; align-items: center; gap: 5px; }
.bd-rleg i { width: 9px; height: 9px; border-radius: 3px; }
.bd-stats { padding: 0; }

.bd-vf { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bd-vf li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.bd-rank {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--line-2); color: var(--sub); font-size: 13px; font-weight: 700;
}
.bd-vf li:nth-child(1) .bd-rank { background: var(--red); color: #fff; }
.bd-vf li:nth-child(2) .bd-rank { background: var(--orange); color: #fff; }
.bd-vf li:nth-child(3) .bd-rank { background: var(--amber); color: #fff; }
.bd-vf li > div > b { font-size: 14px; line-height: 26px; overflow-wrap: anywhere; }
.bd-vf p { margin: 0; font-size: 13px; line-height: 1.65; color: var(--sub); overflow-wrap: anywhere; }

.bd-copylist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bd-copylist li {
  display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px 9px 12px;
  border: 1px solid var(--line-2); border-radius: 9px; background: #fafbfd;
}
.bd-copylist li span { flex: 1; min-width: 0; padding-top: 3px; font-size: 13.5px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.bd-copylist .btn { flex: none; }
.bd-avoid li { background: #fff7ec; border-color: #ffe3bf; }
.bd-tips { margin: 0; padding-left: 1.4em; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.7; }
.bd-tips li { overflow-wrap: anywhere; }

.bd-rawnote { display: flex; align-items: flex-start; gap: 6px; margin: 0; padding: 8px 12px; border-radius: 8px; background: #fff7ec; color: #95500a; font-size: 12.5px; line-height: 1.6; }
.bd-rawnote .ic { width: 15px; height: 15px; flex: none; margin-top: 2px; }

.bd-wait { padding: 20px 18px; }
.bd-wait-hd { display: flex; align-items: center; gap: 8px; color: var(--brand); font-size: 15px; }
.bd-wait-hd .ic { width: 18px; height: 18px; }
.bd-wait p { margin: 8px 0 16px; color: var(--sub); font-size: 13px; line-height: 1.7; }
.bd-sk { display: grid; gap: 10px; }
.bd-sk i {
  display: block; height: 12px; border-radius: 4px; animation: sk 1.2s infinite;
  background: linear-gradient(90deg, #eef1f6 0%, #f7f8fb 50%, #eef1f6 100%); background-size: 200% 100%;
}
.bd-sk i:nth-child(2) { width: 86%; }
.bd-sk i:nth-child(3) { width: 72%; }
.bd-sk i:nth-child(4) { width: 55%; }

/* ---------- 手机 / 窄屏 ---------- */
@media (max-width: 860px) {
  .bd-cols { grid-template-columns: minmax(0, 1fr); }
  .bd-left { position: static; max-height: none; overflow: visible; }
  .bd-vid-v { height: min(62vh, 560px); }
  .bd-hist-list { grid-template-columns: minmax(0, 1fr); }
  .bd-go { flex: 1; justify-content: center; }
  .bd-kbd { display: none; }
  .bd-prog-hd { flex-wrap: wrap; padding: 12px 14px; }
  .bd-steps { padding: 14px 4px 4px; }
  .bd-st b { font-size: 12px; }
  .bd-st small { font-size: 11px; }
  .bd-st em { display: none; }
  .bd-state { padding-left: 14px; padding-right: 14px; }
  .bd-state-tip { padding-left: 14px; padding-right: 14px; }
  .bd-err { margin-left: 14px; margin-right: 14px; }
  .bd-err .btn { width: 100%; justify-content: center; }
  .bd-acts { width: 100%; }
  .bd-acts .btn { flex: 1; justify-content: center; }
  .bd-kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .bd-kv dd + dt { margin-top: 8px; }
  .bd-tl-row { grid-template-columns: auto minmax(0, 1fr); }
  .bd-tl-row span { grid-column: 1 / -1; }
  .bd-card-bd { padding: 12px 14px 14px; }
}

/* ---------- 洗文案：报告头上的按钮 + 「洗好的文案」卡 ---------- */
.bd-wash-wrap { display: inline-flex; }
.bd-wash-btn { background: linear-gradient(135deg, #ff7a1a, #f0473a); }
.bd-page .btn.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.bd-rw { border: 1px solid #ffd9bf; box-shadow: 0 8px 22px rgba(255, 122, 26, .10); }
.bd-rw-hd .bd-no { background: #fff1e6; color: #e8620a; }
.bd-rw-hd-r { margin-left: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.bd-rw-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; }
.bd-rw-badge .ic { width: 14px; height: 14px; }
.bd-rw-badge.ok { background: #e7f8ef; color: #0e9a59; }
.bd-rw-badge.warn { background: #fff4e5; color: #c26a00; }

.bd-rw-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px 0; scrollbar-width: thin; }
.bd-rw-tab {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px;
  border-radius: 99px; font-size: 12.5px; background: var(--line-2); color: var(--sub);
}
.bd-rw-tab.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.bd-rw-tab .ic { width: 13px; height: 13px; }
.bd-rw-tab i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); }
.bd-rw-tab i.ok { background: var(--green); }
.bd-rw-tab i.warn { background: var(--orange); }
.bd-rw-tab i.bad { background: var(--red); }
.bd-rw-params { font-size: 12.5px; color: var(--mute); line-height: 1.6; overflow-wrap: anywhere; }

.bd-rw-run { display: flex; align-items: center; gap: 10px; color: var(--brand); }
.bd-rw-run > .ic { width: 20px; height: 20px; flex: none; }
.bd-rw-run b { font-size: 14.5px; }
.bd-rw-run small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--mute); font-variant-numeric: tabular-nums; }
.bd-rw-run.wait { color: #c26a00; }   /* AI 额度用完在歇着：跟上面进度条里的提醒同一个橙色 */
.bd-rw-tip { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--mute); }
.bd-rw-err { margin: 0; }

.bd-rw-scores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bd-rw-score { display: grid; gap: 4px; align-content: start; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: #fafbfd; }
.bd-rw-score.ok { background: #f1fbf5; border-color: #c9efd9; }
.bd-rw-score.bad { background: #fff8ef; border-color: #ffe0bd; }
.bd-rw-score > span { font-size: 12.5px; color: var(--sub); }
.bd-rw-score b { font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bd-rw-score.ok b { color: #0e9a59; }
.bd-rw-score.bad b { color: #e8620a; }
.bd-rw-score .pill { justify-self: start; font-size: 12px; }
.bd-rw-score small { font-size: 12px; line-height: 1.55; color: var(--mute); overflow-wrap: anywhere; }

.bd-rw-copy { padding: 14px 16px; border-radius: 10px; background: #fffdf8; border: 1px solid #f3e7cf; }
.bd-rw-title { margin: 0 0 8px; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.bd-rw-hookbox { margin-bottom: 8px; padding: 8px 12px; border-radius: 8px; background: #fff3c4; font-weight: 600; line-height: 1.7; overflow-wrap: anywhere; }
.bd-rw-hookbox span { display: block; font-size: 12px; font-weight: 400; color: #9a6b00; }
.bd-rw-text { font-size: 15px; line-height: 1.9; }
.bd-rw-text p { margin: 0 0 8px; overflow-wrap: anywhere; }
.bd-rw-hook { padding: 1px 2px; border-radius: 4px; background: #fff3c4; font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.bd-rw-stat { margin-top: 4px; font-size: 12.5px; color: var(--mute); }
.bd-rw-stat .bd-rw-hook { font-weight: 400; }
.bd-rw-stat .over { font-weight: 600; color: #c26a00; }
.bd-rw mark { padding: 0 1px; color: inherit; background: #ffe7e4; border-bottom: 2px solid var(--red); }
.bd-rw mark.lib { background: #f1eaff; border-bottom-color: #7a5af8; }

.bd-rw-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.bd-rw-cmp { display: grid; gap: 8px; }
.bd-rw-cmp .bd-sub { margin: 4px 0 0; }
.bd-rw-cmp .bd-sub mark { margin-right: 6px; font-size: 12px; }
.bd-rw-hits { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bd-rw-hits li { padding: 8px 12px; border-radius: 8px; background: #fafbfd; border: 1px solid var(--line-2); font-size: 13.5px; line-height: 1.65; }
.bd-rw-hits p { margin: 0; overflow-wrap: anywhere; }
.bd-rw-hits p i { margin-right: 6px; font-style: normal; font-size: 12px; color: var(--mute); }
.bd-rw-hits small { display: block; margin-top: 2px; font-size: 12px; color: #c26a00; overflow-wrap: anywhere; }
.bd-rw-ok { display: flex; align-items: flex-start; gap: 6px; margin: 0; padding: 8px 12px; border-radius: 8px; background: #e7f8ef; color: #0e9a59; font-size: 13px; line-height: 1.6; }
.bd-rw-ok .ic { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.bd-rw-notes { margin: 0; padding-left: 1.3em; font-size: 13px; line-height: 1.7; color: var(--sub); }
.bd-rw-notes li { overflow-wrap: anywhere; }
.bd-rw-log > summary { display: inline-flex; align-items: center; gap: 4px; list-style: none; cursor: pointer; font-size: 12.5px; color: var(--mute); }
.bd-rw-log > summary::-webkit-details-marker { display: none; }
.bd-rw-log[open] .bd-chev { transform: rotate(180deg); }
.bd-rw-log ol { margin: 6px 0 0; padding-left: 1.4em; font-size: 12.5px; line-height: 1.8; color: var(--sub); font-variant-numeric: tabular-nums; }

/* 洗文案弹窗（弹窗挂在页面外面，所以不带 .bd-page 前缀） */
.bd-rwf { display: grid; gap: 16px; }
.bd-rwf [hidden] { display: none !important; }
.bd-rwf .btn:disabled { opacity: .6; cursor: progress; }
.bd-rwf-lbl { margin-bottom: 8px; font-size: 13px; color: var(--sub); }
.bd-rwf-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bd-rwf-opt { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; }
.bd-rwf-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.bd-rwf-opt input { margin-top: 4px; accent-color: var(--brand); }
.bd-rwf-opt b { display: block; font-size: 14px; }
.bd-rwf-opt small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.5; color: var(--mute); }
.bd-rwf-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.bd-rwf-seg label { position: relative; cursor: pointer; }
.bd-rwf-seg input { position: absolute; opacity: 0; pointer-events: none; }
.bd-rwf-seg span { display: inline-flex; flex-direction: column; align-items: center; padding: 6px 14px; border: 1.5px solid var(--line); border-radius: 9px; font-size: 13.5px; }
.bd-rwf-seg small { font-size: 11.5px; color: var(--mute); }
.bd-rwf-seg input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.bd-rwf-seg input:focus-visible + span { box-shadow: 0 0 0 3px var(--brand-soft); }
.bd-rwf-note { display: flex; gap: 6px; margin: 0; padding: 10px 12px; border-radius: 8px; background: #fff8e8; color: #7a4f00; font-size: 12.5px; line-height: 1.65; }
.bd-rwf-note .ic { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.bd-rwf .bd-formerr { margin: 0; }
.bd-rwf-ft { display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 860px) {
  .bd-wash-wrap { flex: 1; }
  .bd-wash-wrap .btn { flex: 1; justify-content: center; }
  .bd-rw-scores, .bd-rwf-modes { grid-template-columns: minmax(0, 1fr); }
  .bd-rw-score b { font-size: 26px; }
  .bd-rw-copy { padding: 12px; }
  .bd-rw-btns .btn { flex: 1 1 auto; justify-content: center; }
  .bd-rwf-ft .btn { flex: 1; justify-content: center; }
}
