/* ===================================================
   短剧合规工作台 · 付费墙与判定意见书
   追加在 style.css 末尾
   =================================================== */

/* ---------- 额度条 ---------- */
.quota {
  margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line-soft);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12px; color: var(--tx-3);
}
.quota .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 20px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 12px; color: var(--tx-2); font-variant-numeric: tabular-nums;
}
.quota .pill b { color: var(--tx); font-weight: 600; }
.quota .pill.pro { background: var(--green-dim); border-color: rgba(53,201,138,.3); color: #62d9a8; }
.quota .pill.out { background: var(--amber-dim); border-color: rgba(224,168,58,.3); color: #e8bf6b; }
.quota .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ---------- 报告区 ---------- */
.rp {
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft);
}
.rp-head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.rp-head h3 { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.rp-head .seal {
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-dim);
  padding: 2px 8px; border-radius: 4px;
}
.rp-head .no { margin-left: auto; font-size: 11.5px; color: var(--tx-3); font-variant-numeric: tabular-nums; }

.rp-sec { margin-bottom: 16px; }
.rp-sec > h4 {
  font-size: 12px; color: var(--tx-3); font-weight: 500;
  letter-spacing: .06em; margin-bottom: 8px;
  display: flex; align-items: center; gap: 7px;
}
.rp-sec > h4::before {
  content: ''; width: 3px; height: 11px; border-radius: 2px; background: var(--blue);
}
.rp-list { list-style: none; }
.rp-list li {
  position: relative; padding-left: 18px; font-size: 13px;
  color: var(--tx-2); line-height: 1.65; margin-bottom: 6px;
}
.rp-list li::before {
  content: ''; position: absolute; left: 5px; top: 9px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--tx-3);
}
.rp-list li b { color: var(--tx); font-weight: 500; }
.rp-txt { font-size: 13px; color: var(--tx-2); line-height: 1.75; }
.rp-txt + .rp-txt { margin-top: 7px; }

/* ---------- 锁定态 ---------- */
.fade-box { position: relative; max-height: 132px; overflow: hidden; }
.fade-box .blurred { filter: blur(4px); opacity: .42; pointer-events: none; user-select: none; }
.fade-box::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 96px;
  background: linear-gradient(to bottom, rgba(20,23,31,0), var(--surface) 78%);
}
.unlock {
  margin-top: 4px; padding: 18px 20px;
  background: var(--surface-2); border: 1px dashed var(--line);
  border-radius: var(--radius-sm); text-align: center;
}
.unlock p { font-size: 12.5px; color: var(--tx-2); line-height: 1.7; }
.unlock p b { color: var(--tx); }
.unlock .act { margin-top: 13px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-sm {
  padding: 8px 18px; border-radius: var(--radius-sm); font-size: 13px;
  border: 1px solid transparent; transition: .16s; font-weight: 500;
}
.btn-sm.primary { background: var(--blue); color: #fff; }
.btn-sm.primary:hover { background: #3f7fe8; }
.btn-sm.line { background: transparent; color: var(--tx); border-color: var(--line); }
.btn-sm.line:hover { border-color: #33405a; background: var(--surface-3); }

.own-bar {
  margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line-soft);
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  font-size: 12px; color: var(--tx-3);
}
.own-bar .sp { flex: 1; }

/* ---------- 意见书结论与落款 ---------- */
.rp-concl {
  font-size: 13px; color: var(--tx); line-height: 1.8;
  padding: 13px 16px; margin-bottom: 18px;
  background: var(--surface-2); border-left: 2px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.rp-concl b { font-weight: 600; }
.rp-sign {
  margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line-soft);
  font-size: 11.5px; color: var(--tx-3); line-height: 1.85;
}
.rp-sign .line2 { margin-top: 4px; font-variant-numeric: tabular-nums; }

/* ---------- 内容红线自检（左栏 04） ---------- */
.field label .opt {
  margin-left: 7px; font-size: 10.5px; letter-spacing: .04em;
  color: var(--tx-3); background: var(--surface-3);
  padding: 1px 7px; border-radius: 20px; vertical-align: 1px;
}
/* 单列：红线名字最长 13 字（“豪门与保镖题材的结构性红线”），双列在 380px 卡里必折行 */
.rl-pick { display: grid; grid-template-columns: 1fr; gap: 5px; }
/* 必须带 .rl-pick 前缀：style.css 里 `.field label { display:block }` 权重 (0,1,1) 会压掉 .rl-opt 的 flex */
.rl-pick .rl-opt {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; margin: 0;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 12.5px; color: var(--tx-2); line-height: 1.45;
  cursor: pointer; transition: .14s;
}
.rl-pick .rl-opt:hover { border-color: #33405a; color: var(--tx); }
.rl-pick .rl-opt input {
  flex: 0 0 14px; width: 14px; height: 14px; margin: 0;
  accent-color: var(--red); cursor: pointer;
}
.rl-pick .rl-opt .nm { flex: 1; min-width: 0; }
.rl-pick .rl-opt .ct {
  flex: 0 0 auto; font-size: 10.5px; color: var(--tx-3);
  font-variant-numeric: tabular-nums;
}
.rl-pick .rl-opt.on {
  border-color: rgba(224, 101, 95, .42); background: var(--red-dim); color: var(--tx);
}
.rl-pick .rl-opt.on .ct { color: #ec8983; }
.rl-pick-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 9px; font-size: 11.5px; color: var(--tx-3);
}
.rl-pick-foot a { color: #8ab8fb; }
.rl-pick-foot #rl-count.on { color: #ec8983; }

.result-hit {
  margin-top: 11px; padding-left: 10px; font-size: 12px;
  color: #ec8983; border-left: 2px solid rgba(224, 101, 95, .5);
  line-height: 1.6;
}
.result-hit b { font-weight: 600; }

/* ---------- 意见书：命中红线 ---------- */
.rp-hit { list-style: none; margin-top: 4px; }
.rp-hit li {
  padding: 9px 0; font-size: 13px; line-height: 1.6;
  border-bottom: 1px dashed var(--line-soft);
}
.rp-hit li:last-child { border-bottom: 0; padding-bottom: 0; }
.rp-hit .hn { color: var(--tx); font-weight: 500; }
.rp-hit .hm { display: block; font-size: 11.5px; color: var(--tx-3); margin-top: 3px; }
.rp-hit .hm b { color: #ec8983; font-weight: 500; }
.rp-hit .hf { display: block; font-size: 12px; color: var(--tx-2); margin-top: 5px; }
.rp-hit .hf b { color: var(--green); font-weight: 500; }

/* ---------- 弹层 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 120;
  display: none; align-items: center; justify-content: center; padding: 24px;
  background: rgba(6, 8, 12, .78); backdrop-filter: blur(6px);
}
.modal.on { display: flex; }
.modal-card {
  width: 100%; max-width: 660px; max-height: 90vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 30px 32px 26px;
  box-shadow: 0 24px 64px rgba(0,0,0,.55);
  animation: pop .18s ease-out;
}
/* 只做位移不做淡入：避免低性能设备上首帧透出背景 */
@keyframes pop { from { transform: translateY(10px) scale(.985); } }
.modal-close {
  float: right; background: none; border: none; color: var(--tx-3);
  font-size: 20px; line-height: 1; padding: 0 0 8px 12px;
}
.modal-close:hover { color: var(--tx); }
.modal-card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.modal-card .sub { color: var(--tx-2); font-size: 13px; margin-top: 8px; line-height: 1.7; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 18px; }
.tier {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 15px; background: var(--surface-2);
}
.tier.main { border-color: rgba(79,143,247,.45); background: rgba(79,143,247,.07); }
.tier .tn { font-size: 12.5px; color: var(--tx-2); }
.tier .tp { font-size: 21px; font-weight: 600; margin: 5px 0 2px; letter-spacing: -0.02em; }
.tier .tp small { font-size: 11.5px; font-weight: 400; color: var(--tx-3); margin-left: 2px; }
.tier .td { font-size: 11.5px; color: var(--tx-3); line-height: 1.6; margin-top: 6px; }

.activate { display: flex; gap: 9px; margin-top: 6px; }
.activate .input { flex: 1; font-family: ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.activate .input.bad { border-color: var(--red); }
.act-msg { font-size: 12px; margin-top: 9px; min-height: 17px; }
.act-msg.ok { color: var(--green); }
.act-msg.no { color: var(--red); }

.buy { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.buy-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.buy-qr {
  width: 96px; height: 96px; border-radius: 8px; background: var(--surface-3);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--tx-3); text-align: center; line-height: 1.5; flex: 0 0 96px;
}
.buy-qr img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.buy-info { font-size: 12.5px; color: var(--tx-2); line-height: 1.85; flex: 1; min-width: 200px; }
.buy-info b { color: var(--tx); font-weight: 500; }
.modal-fine { font-size: 11.5px; color: var(--tx-3); line-height: 1.7; margin-top: 18px; }

/* ---------- 打印（判定意见书） ---------- */
@page { size: A4; margin: 16mm 15mm; }

@media print {
  .judge-grid { display: block !important; }
  .result { border: 1px solid #999 !important; background: #fff !important; color: #000 !important; border-radius: 0 !important; padding: 0 12pt !important; }
  .result * { color: #000 !important; }
  .result-head { border-color: #999 !important; padding: 9pt 0 10pt !important; }
  .result-class { font-size: 20pt !important; }
  .result-desc { color: #333 !important; }
  .step { border-color: #ccc !important; }
  .step-t span { color: #333 !important; }
  .step-n { background: #eee !important; border: 1px solid #bbb !important; }
  .basis { background: #f4f4f4 !important; border: 1px solid #ddd !important; }
  .rp-sec > h4::before { background: #000 !important; }
  .rp-list li::before { background: #666 !important; }
  .result-body { padding: 10pt 0 !important; }
  .fade-box, .unlock, .own-bar, .quota { display: none !important; }
  .rp-head .seal { background: #eee !important; border: 1px solid #bbb !important; }
  .rp-concl { background: #f7f7f7 !important; border-left: 2px solid #333 !important; }
  .rp-hit .badge { background: #eee !important; border: 1px solid #bbb; }
  .rp-hit .hm b, .rp-hit .hf b { color: #000 !important; }
  .rp-sec { page-break-inside: avoid; }
  .rp-sign { border-top: 1px solid #999 !important; color: #444 !important; page-break-inside: avoid; }
}

@media (max-width: 900px) {
  .tiers { grid-template-columns: 1fr; }
  .modal-card { padding: 24px 20px 20px; }
}

/* 窄屏红线自检：条目本身已单列，这里只放大触摸目标 */
@media (max-width: 560px) {
  .rl-pick .rl-opt { padding: 11px 12px; font-size: 13px; }
  .rp-hit li { padding: 10px 0; }
}
