/* ============================================================
   错题本模块样式
   主色靛蓝 #5B6CFF / 辅助 #7C4DFF / 强调琥珀 #FFB020
   ============================================================ */
:root {
  --wb-primary: #5B6CFF;
  --wb-primary-2: #7C4DFF;
  --wb-accent: #FFB020;
  --wb-tint: #EEF1FF;
  --wb-text: #1F2430;
  --wb-sub: #6B7280;
  --wb-ok: #10B981;
  --wb-err: #FF6B6B;
  --wb-warn: #F59E0B;
}

.card.accent-wrongbook {
  border-color: #C9CFFF;
  background: linear-gradient(135deg, #fff, #F3F5FF);
}

/* ---------- 头部与按钮 ---------- */
.wb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 16px; }
.wb-top-title { font-size: 1.35rem; font-weight: 800; color: var(--wb-text); }
.wb-btn-primary {
  background: linear-gradient(135deg, var(--wb-primary), var(--wb-primary-2));
  color: #fff; border: none; border-radius: 14px; padding: 12px 20px;
  font-size: .95rem; font-weight: 700; font-family: inherit; cursor: pointer;
  min-height: 48px; box-shadow: 0 6px 18px rgba(91,108,255,.28); transition: all .18s;
}
.wb-btn-primary:active { transform: scale(.96); }
.wb-btn-primary:disabled { opacity: .45; pointer-events: none; box-shadow: none; }
.wb-btn-ghost {
  background: #fff; color: var(--wb-primary); border: 2px solid #DDE2FF;
  border-radius: 14px; padding: 12px 18px; font-size: .92rem; font-weight: 700;
  font-family: inherit; cursor: pointer; min-height: 48px; transition: all .18s;
}
.wb-btn-ghost:active { transform: scale(.96); }
.wb-btn-block { width: 100%; }
.wb-btn-grow { flex: 1; }

/* ---------- 四宫格统计 ---------- */
.wb-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.wb-num-card {
  background: #fff; border-radius: 16px; padding: 14px 6px; text-align: center;
  box-shadow: 0 4px 16px rgba(31,36,48,.06);
}
.wb-num { font-size: 1.5rem; font-weight: 900; color: var(--wb-primary); line-height: 1.2; }
.wb-num-label { font-size: .68rem; color: var(--wb-sub); margin-top: 4px; }

/* ---------- 快捷入口 ---------- */
.wb-quick-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.wb-quick-card {
  display: flex; align-items: center; gap: 14px; background: #fff;
  border-radius: 18px; padding: 16px 18px; cursor: pointer;
  box-shadow: 0 4px 16px rgba(31,36,48,.06); transition: all .18s;
}
.wb-quick-card:active { transform: scale(.98); }
.wbq-icon { font-size: 1.7rem; }
.wbq-body { flex: 1; }
.wbq-title { font-size: 1rem; font-weight: 700; color: var(--wb-text); }
.wbq-desc { font-size: .76rem; color: var(--wb-sub); margin-top: 2px; }
.wbq-arrow { font-size: 1.4rem; color: #C4C9D4; }

/* ---------- 区块 ---------- */
.wb-section { margin-bottom: 20px; }
.wb-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.wb-section-head h3 { font-size: 1rem; font-weight: 800; color: var(--wb-text); }
.wb-more { font-size: .82rem; color: var(--wb-primary); cursor: pointer; font-weight: 600; }
.wb-footer-links { display: flex; gap: 10px; margin-top: 8px; }
.wb-link-btn {
  flex: 1; background: #fff; border: 2px solid #E6E9F5; border-radius: 14px;
  padding: 14px; font-size: .9rem; font-weight: 700; color: var(--wb-text);
  font-family: inherit; cursor: pointer; min-height: 48px;
}
.wb-empty { text-align: center; color: var(--wb-sub); font-size: .86rem; padding: 28px 12px; }
.wb-tip {
  background: #FFF8E8; border: 1px solid #FFE2A8; color: #8A6100;
  border-radius: 12px; padding: 10px 14px; font-size: .78rem; line-height: 1.6; margin-bottom: 14px;
}
.wb-hint, .wb-hint-sm { font-size: .78rem; color: var(--wb-sub); line-height: 1.6; }
.wb-hint-sm { font-size: .72rem; margin-top: 4px; }
.wb-warn { color: #B26A00 !important; font-weight: 700; }

/* ---------- 上传 ---------- */
.wb-upload-zone {
  border: 2px dashed #C9CFFF; border-radius: 20px; background: var(--wb-tint);
  padding: 34px 16px; text-align: center; cursor: pointer; transition: all .2s; margin-bottom: 14px;
}
.wb-upload-zone:active { transform: scale(.99); background: #E5E9FF; }
.wb-upload-icon { font-size: 2rem; color: var(--wb-primary); font-weight: 300; display: block; }
.wb-upload-text { font-size: .95rem; font-weight: 700; color: var(--wb-text); margin-top: 6px; }
.wb-upload-sub { font-size: .72rem; color: var(--wb-sub); margin-top: 4px; }
.wb-thumb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.wb-thumb {
  position: relative; aspect-ratio: 1/1; border-radius: 14px; overflow: hidden;
  background: #F4F6FC; border: 1px solid #DDE2FF;
}
.wb-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.wb-thumb-seq {
  position: absolute; top: 6px; left: 6px; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 6px; background: rgba(31,36,48,.62); color: #fff;
  font-size: .66rem; font-weight: 800; display: inline-flex;
  align-items: center; justify-content: center; z-index: 1;
}
.wb-thumb-size {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 8px 3px;
  font-size: .6rem; color: #fff; text-align: left;
  background: linear-gradient(to top, rgba(31,36,48,.72), rgba(31,36,48,0));
  z-index: 1;
}
.wb-thumb-del {
  position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--wb-err); color: #fff; border: none; font-size: 1rem; line-height: 1;
  cursor: pointer; box-shadow: 0 2px 8px rgba(255,107,107,.4);
}

/* ---------- 表单 ---------- */
.wb-form { display: flex; flex-direction: column; }
.wb-label { font-size: .8rem; font-weight: 700; color: var(--wb-sub); margin: 12px 0 6px; }
.wb-input {
  width: 100%; border: 2px solid #E6E9F5; border-radius: 12px; padding: 12px 14px;
  font-size: .92rem; font-family: inherit; color: var(--wb-text); background: #fff;
  outline: none; min-height: 46px; transition: border-color .18s;
}
.wb-input:focus { border-color: var(--wb-primary); }
.wb-textarea { min-height: 74px; resize: vertical; line-height: 1.5; }
.wb-seg { display: flex; gap: 8px; }
.wb-seg-btn {
  flex: 1; background: #fff; border: 2px solid #E6E9F5; border-radius: 12px;
  padding: 11px 8px; font-size: .88rem; font-weight: 700; color: var(--wb-sub);
  font-family: inherit; cursor: pointer; min-height: 46px; transition: all .18s;
}
.wb-seg-btn.active { border-color: var(--wb-primary); color: var(--wb-primary); background: var(--wb-tint); }
.wb-seg-small .wb-seg-btn { padding: 8px 6px; font-size: .8rem; min-height: 38px; }
.wb-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

/* ---------- 识别进度 ---------- */
.wb-progress { margin-top: 16px; background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 4px 16px rgba(31,36,48,.06); }
.wb-progress-bar { height: 8px; background: #EEF1FF; border-radius: 6px; overflow: hidden; }
.wb-progress-bar > span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--wb-primary), var(--wb-primary-2));
  border-radius: 6px; transition: width .4s ease; animation: wbPulse 1.6s ease-in-out infinite;
}
@keyframes wbPulse { 0%,100% { opacity: 1; } 50% { opacity: .62; } }
.wb-progress-text { font-size: .82rem; color: var(--wb-sub); margin-top: 10px; }
.wb-page-dots { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.wb-dot {
  width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: .72rem; font-weight: 700;
  background: #F0F2F8; color: var(--wb-sub);
}
.wb-dot.ok { background: rgba(16,185,129,.14); color: var(--wb-ok); }
.wb-dot.bad { background: rgba(255,107,107,.14); color: var(--wb-err); }
.wb-dot.doing { background: rgba(91,108,255,.16); color: var(--wb-primary); animation: wbPulse 1.2s infinite; }

/* ---------- 校对卡片 ---------- */
.wb-review-summary {
  display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--wb-sub);
  background: #fff; border-radius: 14px; padding: 12px 16px; margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(31,36,48,.06);
}
.wb-review-summary b { color: var(--wb-primary); font-size: .95rem; }
.wb-review-card {
  background: #fff; border-radius: 18px; padding: 16px; margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(31,36,48,.06); border-left: 4px solid transparent;
}
.wb-review-card.wb-lowconf { border-left-color: var(--wb-accent); background: linear-gradient(90deg, #FFFBF2 0%, #fff 40%); }
.wb-rv-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.wb-seq {
  min-width: 26px; height: 26px; padding: 0 8px; border-radius: 8px; background: var(--wb-primary);
  color: #fff; font-size: .76rem; font-weight: 800; display: inline-flex;
  align-items: center; justify-content: center;
}
.wb-page { font-size: .7rem; color: var(--wb-sub); }
.wb-conf { font-size: .68rem; color: var(--wb-ok); background: rgba(16,185,129,.1); padding: 3px 8px; border-radius: 6px; }
.wb-conf.low { color: #B26A00; background: rgba(255,176,32,.16); }
.wb-rv-del { margin-left: auto; background: none; border: none; color: var(--wb-err); font-size: .76rem; font-weight: 700; cursor: pointer; font-family: inherit; }
.wb-opts { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.wb-opt { font-size: .78rem; background: #F4F6FC; color: var(--wb-text); padding: 5px 10px; border-radius: 8px; }
.wb-ans-row { display: flex; gap: 10px; margin-top: 8px; }
.wb-ans-col { flex: 1; }
.wb-ans-col label { font-size: .7rem; color: var(--wb-sub); display: block; margin-bottom: 4px; }
.wb-select-row { display: flex; gap: 10px; margin-top: 10px; }
.wb-select-row .wb-input { font-size: .8rem; padding: 10px 8px; }
.wb-fixed-bar {
  position: sticky; bottom: 0; display: flex; gap: 10px; padding: 12px 0 4px;
  background: linear-gradient(to top, rgba(247,248,252,1) 70%, rgba(247,248,252,0));
}

/* ---------- 筛选与错题卡 ---------- */
.wb-filter-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; -webkit-overflow-scrolling: touch; }
.wb-filter-scroll::-webkit-scrollbar { display: none; }
.wb-chip {
  white-space: nowrap; background: #fff; border: 2px solid #E6E9F5; border-radius: 999px;
  padding: 8px 16px; font-size: .8rem; font-weight: 700; color: var(--wb-sub);
  font-family: inherit; cursor: pointer; min-height: 40px; transition: all .18s;
}
.wb-chip.active { border-color: var(--wb-primary); color: var(--wb-primary); background: var(--wb-tint); }
.wb-search-row { display: flex; gap: 8px; margin-bottom: 10px; }
.wb-search-row .wb-input { flex: 1; }
.wb-stat-bar {
  font-size: .76rem; color: var(--wb-sub); background: #fff; border-radius: 12px;
  padding: 10px 14px; margin-bottom: 12px; line-height: 1.6;
}
.wb-stat-bar b { color: var(--wb-primary); }
.wb-stat-note { display: block; font-size: .68rem; color: #9AA0AC; margin-top: 2px; }
.wb-card-list { display: flex; flex-direction: column; gap: 12px; }
.wb-q-card {
  background: #fff; border-radius: 18px; padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(31,36,48,.06); border-left: 4px solid #DDE2FF;
}
.wb-q-card.wb-subj-math { border-left-color: #3B82F6; }
.wb-q-card.wb-subj-chinese { border-left-color: #FF6B6B; }
.wb-q-card.wb-subj-english { border-left-color: #10B981; }
.wb-q-card.wb-mastered { opacity: .62; }
.wb-q-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.wb-tag { font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.wb-tag-subj { background: #EEF1FF; color: #4B5BD6; }
.wb-tag-kp { background: #F1F3F9; color: #4A5160; }
.wb-tag-none { background: #FFF4E5; color: #B26A00; }
.wb-tag-err { background: #FFEDED; color: #D84545; }
.wb-tag-warn { background: #FFF4E5; color: #B26A00; }
.wb-q-date { margin-left: auto; font-size: .68rem; color: #9AA0AC; }
.wb-q-stem { font-size: .92rem; color: var(--wb-text); line-height: 1.55; font-weight: 600; word-break: break-word; }
.wb-q-ans { display: flex; gap: 12px; margin-top: 8px; font-size: .8rem; font-weight: 700; }
.wb-bad { color: var(--wb-err); }
.wb-good { color: var(--wb-ok); }
.wb-q-actions { display: flex; gap: 8px; margin-top: 12px; }
.wb-mini-btn {
  background: #F5F7FD; border: none; border-radius: 10px; padding: 9px 14px;
  font-size: .76rem; font-weight: 700; color: var(--wb-sub); font-family: inherit;
  cursor: pointer; min-height: 38px; transition: all .18s;
}
.wb-mini-btn.on { background: rgba(16,185,129,.14); color: var(--wb-ok); }
.wb-mini-btn.danger { color: var(--wb-err); }
.wb-mini-btn:active { transform: scale(.95); }

/* ---------- 试卷卡 ---------- */
.wb-paper-card { background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 4px 16px rgba(31,36,48,.06); }
.wb-paper-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.wb-status { margin-left: auto; font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: #F1F3F9; color: var(--wb-sub); }
.wb-status-recognizing { background: rgba(91,108,255,.14); color: var(--wb-primary); }
.wb-status-recognized { background: rgba(255,176,32,.16); color: #B26A00; }
.wb-status-confirmed { background: rgba(16,185,129,.14); color: var(--wb-ok); }
.wb-status-failed { background: rgba(255,107,107,.14); color: var(--wb-err); }
.wb-paper-title { font-size: 1rem; font-weight: 800; color: var(--wb-text); }
.wb-paper-meta { font-size: .74rem; color: var(--wb-sub); margin-top: 4px; line-height: 1.6; }

/* ---------- 分析 ---------- */
.wb-weak-row { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 4px 16px rgba(31,36,48,.05); flex-wrap: wrap; }
.wb-weak-name { font-size: .84rem; font-weight: 700; color: var(--wb-text); min-width: 92px; }
.wb-weak-bar-wrap { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 90px; }
.wb-weak-bar {
  height: 12px; border-radius: 6px; min-width: 6px;
  background: linear-gradient(90deg, var(--wb-primary), var(--wb-primary-2));
  transition: width .6s cubic-bezier(.2,.8,.3,1); animation: wbGrow .6s ease;
}
@keyframes wbGrow { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
.wb-weak-count { font-size: .78rem; font-weight: 800; color: var(--wb-accent); }
.wb-weak-actions { display: flex; gap: 6px; }
.wb-summary { background: #fff; border-radius: 14px; padding: 14px; font-size: .84rem; color: var(--wb-text); line-height: 1.65; margin-bottom: 10px; }
.wb-pattern-card { background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 10px; box-shadow: 0 4px 16px rgba(31,36,48,.05); }
.wb-pattern-card.wb-speculative { background: #FFFCF5; }
.wb-pattern-title { font-size: .9rem; font-weight: 800; color: var(--wb-text); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.wb-pattern-line { font-size: .8rem; color: var(--wb-sub); line-height: 1.65; }
.wb-pattern-ev { font-size: .7rem; color: #9AA0AC; margin-top: 6px; }
.wb-chart { display: flex; align-items: flex-end; gap: 6px; height: 130px; background: #fff; border-radius: 14px; padding: 14px 10px 8px; box-shadow: 0 4px 16px rgba(31,36,48,.05); }
.wb-trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.wb-trend-bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.wb-trend-bar { width: 60%; min-height: 3px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--wb-primary), #A9B4FF); transition: height .5s ease; }
.wb-trend-val { font-size: .64rem; font-weight: 700; color: var(--wb-sub); margin-top: 4px; }
.wb-trend-label { font-size: .58rem; color: #9AA0AC; }
.wb-dist-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wb-dist-name { font-size: .8rem; font-weight: 700; min-width: 44px; color: var(--wb-text); }
.wb-dist-bar-wrap { flex: 1; height: 10px; background: #F0F2F8; border-radius: 5px; overflow: hidden; }
.wb-dist-bar { height: 100%; border-radius: 5px; background: var(--wb-primary); }
.wb-dist-bar.wb-subj-math { background: #3B82F6; }
.wb-dist-bar.wb-subj-chinese { background: #FF6B6B; }
.wb-dist-bar.wb-subj-english { background: #10B981; }
.wb-dist-val { font-size: .76rem; font-weight: 800; color: var(--wb-sub); min-width: 22px; text-align: right; }

/* ---------- 练习预览 ---------- */
.wb-practice-info { background: #fff; border-radius: 18px; padding: 18px; margin-bottom: 16px; box-shadow: 0 4px 16px rgba(31,36,48,.06); }
.wb-practice-title { font-size: 1.05rem; font-weight: 800; color: var(--wb-text); }
.wb-practice-meta { font-size: .78rem; color: var(--wb-sub); margin-top: 6px; }
.wb-practice-kps { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.wb-preview-item { display: flex; gap: 10px; background: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; box-shadow: 0 4px 16px rgba(31,36,48,.05); }
.wb-preview-stem { font-size: .86rem; font-weight: 600; color: var(--wb-text); line-height: 1.5; }
.wb-kp-card { background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 8px; box-shadow: 0 4px 16px rgba(31,36,48,.05); }
.wb-kp-name { font-size: .88rem; font-weight: 800; color: var(--wb-primary); margin-bottom: 6px; }
.wb-kp-summary { font-size: .8rem; color: var(--wb-sub); line-height: 1.65; }
.wb-video-item {
  display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 14px;
  padding: 12px 14px; margin-bottom: 8px; text-decoration: none;
  box-shadow: 0 4px 16px rgba(31,36,48,.05);
}
.wb-video-icon {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; background: var(--wb-tint); color: var(--wb-primary); font-size: 1rem;
}
.wb-video-body { flex: 1; }
.wb-video-title { font-size: .86rem; font-weight: 700; color: var(--wb-text); line-height: 1.4; }

/* ---------- 手动录入弹窗 ---------- */
.wb-modal {
  position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 120%);
  width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto;
  background: #fff; border-radius: 24px 24px 0 0; padding: 22px 20px 28px;
  z-index: 260; transition: transform .32s cubic-bezier(.2,.8,.3,1);
  box-shadow: 0 -8px 40px rgba(31,36,48,.18);
}
.wb-modal.show { transform: translate(-50%, 0); }
.wb-modal-title { font-size: 1.1rem; font-weight: 800; color: var(--wb-text); margin-bottom: 6px; text-align: center; }
.wb-modal-actions { display: flex; gap: 10px; margin-top: 20px; }

@media (max-width: 360px) {
  .wb-grid4 { grid-template-columns: repeat(2, 1fr); }
  .wb-thumb-grid { grid-template-columns: repeat(2, 1fr); }
  .wb-ans-row, .wb-select-row { flex-direction: column; }
  .wb-weak-name { min-width: 72px; font-size: .78rem; }
}

/* ---------- 只识别错题 开关 ---------- */
.wb-toggle-row {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 2px solid #E6E9F5; border-radius: 16px;
  padding: 14px 16px; margin-top: 16px; cursor: pointer; transition: all .18s;
}
.wb-toggle-row:active { transform: scale(.99); }
.wb-toggle-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.wb-toggle-box {
  flex: none; width: 44px; height: 26px; border-radius: 13px;
  background: #DDE1EC; position: relative; transition: background .2s; margin-top: 2px;
}
.wb-toggle-box::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 4px rgba(31,36,48,.25); transition: transform .2s;
}
.wb-toggle-row input:checked + .wb-toggle-box { background: linear-gradient(135deg, var(--wb-primary), var(--wb-primary-2)); }
.wb-toggle-row input:checked + .wb-toggle-box::after { transform: translateX(18px); }
.wb-toggle-body { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.wb-toggle-title { font-size: .88rem; font-weight: 700; color: var(--wb-text); }
.wb-toggle-desc { font-size: .72rem; color: var(--wb-sub); line-height: 1.5; }

/* 试卷卡片上的模式标记 */
.wb-status-mode {
  font-size: .66rem; font-weight: 700; padding: 3px 8px; border-radius: 6px;
  background: rgba(255,176,32,.16); color: #B26A00; white-space: nowrap;
}

/* ---------- 原图裁切缩略图（纯前端裁切） ---------- */
.wb-crop {
  position: relative; width: 100%; border-radius: 12px; margin: 10px 0 6px;
  overflow: hidden; background: #F4F6FC; border: 1px solid #E6E9F5;
  cursor: pointer; transition: transform .15s;
}
.wb-crop:active { transform: scale(.985); }
.wb-crop img {
  position: absolute; max-width: none; height: auto; display: block;
  -webkit-user-drag: none; user-select: none;
}
.wb-rv-orig {
  background: none; border: none; color: var(--wb-primary);
  font-size: .74rem; font-weight: 700; font-family: inherit; cursor: pointer; padding: 0 4px;
}

/* ---------- 原图查看器 ---------- */
.wb-viewer-hint { font-size: .76rem; color: var(--wb-sub); margin-bottom: 10px; line-height: 1.6; }
.wb-viewer {
  position: relative; width: 100%; background: #fff; border-radius: 16px;
  overflow: hidden; box-shadow: 0 4px 20px rgba(31,36,48,.1); margin-bottom: 12px;
}
.wb-viewer img { display: block; width: 100%; height: auto; }
.wb-viewer-marks { position: absolute; inset: 0; }
.wb-mark {
  position: absolute; border-radius: 6px; cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
.wb-mark.bad {
  border: 2px solid rgba(255,107,107,.95);
  background: rgba(255,107,107,.14);
  box-shadow: 0 0 0 1px rgba(255,255,255,.6) inset;
}
.wb-mark.ok {
  border: 2px dashed rgba(16,185,129,.8);
  background: rgba(16,185,129,.08);
}
.wb-mark:active { background: rgba(255,107,107,.28); }
.wb-mark-label {
  position: absolute; top: -11px; left: -2px;
  background: var(--wb-err); color: #fff; font-size: .6rem; font-weight: 800;
  padding: 1px 6px; border-radius: 6px; white-space: nowrap;
}
.wb-mark.ok .wb-mark-label { background: var(--wb-ok); }
.wb-viewer-legend {
  display: flex; gap: 16px; font-size: .72rem; color: var(--wb-sub); margin-bottom: 8px;
}
.wb-viewer-legend span { display: inline-flex; align-items: center; gap: 5px; }
.wb-dot-legend { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.wb-dot-legend.bad { background: rgba(255,107,107,.85); }
.wb-dot-legend.mark { background: #FFB020; }
