/* IPXray
   昏暗木头店面 + 牛皮纸卷宗 + 横线账页 + 铜牌抽屉柜 */
:root {
  --wood-0: #140d08;
  --wood-1: #1f150e;
  --wood-2: #2e2016;
  --wood-3: #4a3322;
  --brass: #c9973f;
  --brass-hi: #f0c879;
  --brass-lo: #7a5a24;
  --kraft: #c49a62;
  --kraft-dk: #a57d48;
  --paper: #f1e5c9;
  --paper-2: #e7d7b2;
  --rule: rgba(110, 82, 48, .34);
  --ink: #2a1f15;
  --ink-2: #4e3d29;
  --ink-3: #6b573d;
  --red: #a8322a;
  --green: #3f6b4f;
  --amber: #a86d1c;
  --font: "Baloo 2", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "LXGW WenKai", "PingFang SC", serif;
  --mono: var(--font);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.25 0 0 0 0 0.12 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--wood-0); }
body {
  margin: 0; min-height: 100vh; color: var(--paper); font: 16px/1.65 var(--font); font-variant-numeric: tabular-nums;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255, 186, 102, .16), transparent 70%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.18) 0 1px, transparent 1px 7px, rgba(255,255,255,.015) 7px 8px, transparent 8px 23px),
    linear-gradient(180deg, var(--wood-1), var(--wood-0) 60%);
}
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55)); z-index: 0; }
a { color: inherit; }
button, input { font-family: var(--font); }

.lamp { position: fixed; top: -120px; left: 50%; width: 900px; height: 520px; transform: translateX(-50%); pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 50% 20%, rgba(255, 196, 120, .14), transparent 60%); }
@media (prefers-reduced-motion: no-preference) { .lamp { animation: flicker 7s infinite; } }
@keyframes flicker { 0%, 100% { opacity: 1 } 47% { opacity: 1 } 48% { opacity: .82 } 49% { opacity: 1 } 73% { opacity: .93 } 74% { opacity: 1 } }

header, main, footer { position: relative; z-index: 1; }

/* ---------- 招牌 ---------- */
.shopfront { max-width: 1120px; margin: 0 auto; padding: 28px 16px 8px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.signboard {
  text-decoration: none; display: inline-flex; flex-direction: column; align-items: center; padding: 10px 28px 8px;
  background: linear-gradient(180deg, #3b2617, #2a1a10); border: 2px solid var(--brass-lo); border-radius: 6px;
  box-shadow: inset 0 0 0 4px #24170e, inset 0 0 0 5px rgba(201,151,63,.45), 0 10px 24px rgba(0,0,0,.5);
  transform: rotate(-1.2deg);
}
.sign-name { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: 2px; color: var(--brass-hi); text-shadow: 0 1px 0 #000, 0 0 18px rgba(240,200,121,.25); }
.sign-small { font-size: 12px; letter-spacing: 3px; color: #cfae7a; opacity: .85; }

.ledger-form { flex: 1; max-width: 500px; min-width: 260px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 4px;
  background: var(--paper) var(--noise); color: var(--ink); box-shadow: 0 8px 20px rgba(0,0,0,.45); transform: rotate(.6deg); }
.ledger-form label { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.ledger-form input { flex: 1; min-width: 0; border: 0; border-bottom: 1.5px dashed var(--ink-3); background: transparent; color: var(--ink); font-size: 17px; padding: 4px 2px; }
.ledger-form input:focus { outline: none; border-bottom-color: var(--red); }
.ledger-form input::placeholder { color: var(--ink-3); }
.ledger-form button { border: 2px solid var(--red); color: var(--red); background: transparent; border-radius: 4px; padding: 3px 12px; font-size: 15px; font-weight: 700; cursor: pointer; transform: rotate(-3deg); letter-spacing: 1px; }
.ledger-form button:hover { background: rgba(168,50,42,.1); }

main { max-width: 1120px; margin: 0 auto; padding: 16px 16px 24px; }

/* ---------- 柜台上的卷宗 ---------- */
.folder { position: relative; margin-top: 22px; }
.folder-tab { position: absolute; top: -24px; left: 26px; padding: 3px 16px 6px; font-size: 13px; letter-spacing: 1px; color: #4a3218;
  background: var(--kraft) var(--noise); border-radius: 8px 8px 0 0; }
.pages { display: grid; grid-template-columns: 1.45fr 1fr; gap: 0; padding: 14px; border-radius: 4px 10px 10px 10px;
  background: var(--kraft) var(--noise); box-shadow: 0 18px 40px rgba(0,0,0,.55), inset 0 0 40px rgba(90,60,25,.35); }
.page { background: var(--paper) var(--noise); color: var(--ink); padding: 28px 24px 22px; position: relative; min-height: 280px; }
.page-left { border-radius: 3px 0 0 3px; box-shadow: inset -14px 0 18px -14px rgba(80,55,25,.45); transform: rotate(-.4deg); }
.page-right { border-radius: 0 3px 3px 0; box-shadow: inset 14px 0 18px -14px rgba(80,55,25,.45); display: flex; flex-direction: column; align-items: center; }
.page-left::before { content: ""; position: absolute; top: -12px; left: 32px; width: 14px; height: 28px; border: 2.5px solid #9aa0a6; border-radius: 8px; border-bottom-color: transparent; transform: rotate(-8deg); opacity: .8; pointer-events: none; }
.field-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.field-label { font-size: 13.5px; letter-spacing: 1px; color: var(--ink-3); }
.mask-btn { border: 1.5px solid var(--kraft-dk); color: var(--ink-2); background: rgba(196, 154, 98, .16); border-radius: 4px; padding: 2px 10px; font-size: 13px; font-weight: 700; cursor: pointer; letter-spacing: .5px; transition: background .15s, color .15s, border-color .15s; }
.mask-btn:hover { border-color: var(--ink-2); background: rgba(196, 154, 98, .28); }
.mask-btn[aria-pressed="true"] { border-color: var(--red); color: var(--red); background: rgba(168, 50, 42, .1); }
.hint { font-size: 12.5px; letter-spacing: 0; opacity: .85; margin-left: 4px; }
.ip { font-size: clamp(28px, 5.4vw, 46px); font-weight: 700; line-height: 1.15; margin: 4px 0 10px; word-break: break-all; color: var(--ink); }
.loc { color: var(--ink-2); margin-top: 8px; font-size: 15px; }

/* 吊牌标签 */
.tags { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.tag-label { position: relative; display: inline-block; padding: 2px 10px 2px 14px; font-size: 13px; color: var(--ink); background: #f8efd9; border: 1px solid #b89c70;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%); transform: rotate(var(--r, -2deg)); }
.tag-label.good { background: #dde7cf; } .tag-label.bad { background: #efcfc4; } .tag-label.warn { background: #f1dfb4; }

.notes { list-style: none; margin: 6px 0 0; padding: 0; }
.notes li { padding: 5px 0; border-bottom: 1px solid var(--rule); position: relative; font-size: 15px; color: var(--ink-2); }
.notes li.bad { color: var(--red); }
.notes li.good { color: var(--green); }

/* 黄铜表盘 */
.dial { width: 100%; max-width: 260px; margin-top: 6px; }
.dial-zone { fill: none; stroke-width: 10; }
.z-bad { stroke: #b0473a; } .z-mid { stroke: #c9973f; } .z-good { stroke: #5c8a5f; }
.dial line.tick { stroke: var(--ink); stroke-width: 1.6; }
.dial line.tick.minor { stroke-width: .8; opacity: .55; }
.dial text { font-size: 9px; fill: var(--ink-2); text-anchor: middle; font-family: var(--font); }
.needle { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; transform-box: view-box; transform-origin: 110px 120px; transform: rotate(-90deg); transition: transform 1.4s cubic-bezier(.3, 1.6, .5, 1); }
.cap { fill: var(--brass); stroke: var(--brass-lo); stroke-width: 2; }
.dial-read { margin-top: -6px; color: var(--ink); }
.dial-read b { font-size: 38px; font-weight: 800; }
.dial-read span { color: var(--ink-3); margin-left: 4px; }
.conf { font-size: 14px; color: var(--ink-3); margin-top: 12px; }

/* 首屏的位置暴露结论 + 进度 */
.expo-box { width: 100%; margin-top: 16px; padding-top: 14px; border-top: 1.5px dashed var(--rule); }
.expo-row { display: flex; align-items: baseline; gap: 12px; margin: 2px 0 8px; }
.expo-level { font-size: 34px; font-weight: 800; line-height: 1.1; color: var(--ink-3); }
.expo-level.bad { color: var(--red); } .expo-level.warn { color: var(--amber); } .expo-level.good { color: var(--green); }
.expo-sub { font-size: 15px; color: var(--ink-2); }
.progress { height: 6px; border-radius: 99px; background: rgba(110, 82, 48, .18); overflow: hidden; }
.progress span { display: block; width: 0; height: 100%; background: var(--brass); transition: width .4s ease; }
.progress-text { font-size: 13.5px; color: var(--ink-3); margin-top: 4px; }

/* 印章 */
.stamp { margin-top: 8px; padding: 4px 18px 4px 24px; font-size: 22px; font-weight: 700; letter-spacing: 6px; color: var(--ink-3); border: 3px double currentColor; border-radius: 6px;
  transform: rotate(-8deg); mix-blend-mode: multiply; opacity: .9; }
.stamp.good, .stamp.warn, .stamp.bad { color: #faf4e4; border: 2px solid rgba(0, 0, 0, .28); mix-blend-mode: normal; opacity: 1;
  box-shadow: inset 0 0 0 2px rgba(250, 244, 228, .48), 0 4px 12px rgba(0, 0, 0, .24); text-shadow: 0 1px 1px rgba(0, 0, 0, .28); }
.stamp.good { background: #1f7a44; border-color: #155931; }
.stamp.lv-excellent { background: #166534; border-color: #0e4422; box-shadow: inset 0 0 0 2px rgba(250, 244, 228, .55), 0 4px 14px rgba(22, 101, 52, .38); }
.stamp.lv-good { background: #1f7a44; border-color: #155931; }
.stamp.lv-ok { background: #4a7c44; border-color: #34592f; }
.stamp.warn, .stamp.lv-low { background: #b7791f; border-color: #875712; }
.stamp.lv-mid { background: #c2571a; border-color: #8f3c0f; }
.stamp.bad, .stamp.lv-high { background: #a6231c; border-color: #771611; }
@media (prefers-reduced-motion: no-preference) { .stamp.done { animation: thump .35s ease-out; } }
@keyframes thump { 0% { transform: rotate(-8deg) scale(1.8); opacity: 0 } 70% { transform: rotate(-8deg) scale(.94); opacity: 1 } 100% { transform: rotate(-8deg) scale(1) } }

/* ---------- 同网段邻居门牌墙 ---------- */
.door-wall { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; max-width: 520px; padding: 10px; background: #5a3f29; border-radius: 4px; box-shadow: inset 0 2px 6px rgba(0,0,0,.5); }
.cell { aspect-ratio: 1; border-radius: 2px; background: #efe3c6; box-shadow: inset 0 -1px 0 rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: #3a2814; cursor: default; }
.cell.dc { background: #a39377; }
.cell.bad { background: #b33a2e; }
.cell.me { background: linear-gradient(180deg, var(--brass-hi), var(--brass)); outline: 2px solid #2a1f15; outline-offset: 1px; position: relative; z-index: 1; }
.cell.bad.me { background: #b33a2e; color: #fff; }
.door-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.door-legend span { display: inline-flex; align-items: center; gap: 6px; }
.door-legend .cell { width: 14px; height: 14px; display: inline-block; outline-offset: 0; }

/* ---------- IP 位置地图 ---------- */
.mapboard { margin-top: 34px; padding: 14px; border-radius: 6px; background: var(--kraft) var(--noise); box-shadow: 0 16px 34px rgba(0,0,0,.5), inset 0 0 30px rgba(90,60,25,.3); }
.map-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.map-panel { display: flex; flex-direction: column; min-width: 0; padding: 12px; border-radius: 4px; background: var(--paper) var(--noise); box-shadow: 0 4px 10px rgba(60,40,15,.35); }
.map-panel.hidden + .map-panel, .map-grid:has(> .map-panel.hidden) { grid-template-columns: minmax(0, 1fr); }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 0 2px 10px; color: var(--ink); }
.panel-head h2 { margin: 0; font-size: 20px; letter-spacing: 2px; }
.panel-head span { font-size: 15px; color: var(--ink-2); }
.panel-head span b { color: var(--red); }
.leaf { height: 340px; border-radius: 3px; border: 2px solid #6b4a26; background: #e7d7b2; }
.leaf-wait { height: 100%; display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 15px; }
.facts { list-style: none; margin: 10px 0 0; padding: 0; }
.facts li { display: flex; gap: 10px; padding: 6px 2px; border-bottom: 1px solid var(--rule); font-size: 14.5px; color: var(--ink); }
.facts li:last-child { border-bottom: 0; }
.facts li span { flex: none; width: 76px; color: var(--ink-3); }
.facts li.bad b { color: var(--red); }
.leaf .leaflet-tile { filter: sepia(.35) saturate(.85) contrast(.95); }
.leaf .leaflet-tile-container img { outline: 1px solid transparent; }
.leaf .leaflet-control-attribution { font-size: 11px; background: rgba(241,229,201,.85); color: #4e3d29; }
.leaf .leaflet-control-attribution a { color: #6b3f12; }
.leaf .leaflet-popup-content-wrapper, .leaf .leaflet-popup-tip { background: var(--paper); color: var(--ink); font-family: var(--font); }
.leaf .leaflet-popup-content { font-size: 15px; line-height: 1.5; margin: 10px 14px; }
.leaf .leaflet-tooltip { font-family: var(--font); font-size: 13.5px; color: var(--ink); background: var(--paper); border-color: #b89c70; }
.guess-pin { background: none; border: 0; }
.guess-pin span { width: 34px; height: 34px; border-radius: 50%; border: 2.5px dashed #a8322a; background: rgba(241,229,201,.9); color: #a8322a; display: flex; align-items: center; justify-content: center; font: 800 20px/1 var(--font); box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.infer-label { background: none; border: 0; color: #a8322a; font: 700 13px/22px var(--font); text-align: center; white-space: nowrap; text-shadow: 0 0 3px #f1e5c9, 0 0 3px #f1e5c9; }
.ip-pin { background: none; border: 0; filter: drop-shadow(0 3px 2px rgba(0,0,0,.45)); }
@media (max-width: 820px) { .map-grid { grid-template-columns: minmax(0, 1fr); } .leaf { height: 280px; } .door-wall { gap: 2px; padding: 6px; } .cell { font-size: 8px; } }

/* ---------- 结案报告（横线账页） ---------- */
.casebook { margin-top: 34px; padding: 26px 28px 30px; color: var(--ink); position: relative; border-radius: 2px;
  background: linear-gradient(90deg, transparent 52px, rgba(168,50,42,.35) 52px 53px, transparent 53px), var(--paper) var(--noise);
  box-shadow: 0 16px 34px rgba(0,0,0,.5); transform: rotate(.25deg); }
.casebook::before { content: ""; position: absolute; top: -12px; left: 50%; width: 120px; height: 26px; transform: translateX(-50%) rotate(-2deg); background: rgba(236, 222, 180, .7); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.casebook-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding-left: 40px; margin-bottom: 8px; }
.casebook-head h2 { margin: 0; font-size: 26px; letter-spacing: 4px; }
.casebook-head span { color: var(--ink-3); font-size: 15px; }
.casebook .body { padding-left: 40px; }
.verdict-line { font-size: 17px; margin: 4px 0 12px; }
.ledger { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.ledger tr.pending td { color: var(--ink-3); }
.ledger th { text-align: left; font-weight: 400; font-size: 13.5px; letter-spacing: 1px; color: var(--ink-3); padding: 6px 8px; border-bottom: 1.5px solid var(--ink-2); }
.ledger td { padding: 6px 8px; height: 34px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.ledger td.dim { color: var(--ink-3); font-size: 14.5px; }
.mini-stamp { display: inline-block; padding: 0 8px; border: 2px solid currentColor; border-radius: 4px; font-size: 14px; font-weight: 700; letter-spacing: 2px; transform: rotate(-4deg); mix-blend-mode: multiply; }
.mini-stamp.bad { color: var(--red); } .mini-stamp.good { color: var(--green); } .mini-stamp.na { color: var(--ink-3); border-style: dashed; }
.strength { font-weight: 700; } .strength.高 { color: var(--red); } .strength.中 { color: var(--amber); }
.final-seal { position: absolute; right: 34px; bottom: 18px; width: 118px; height: 118px; border-radius: 50%; border: 4px double var(--red); color: var(--red);
  display: flex; align-items: center; justify-content: center; text-align: center; font-size: 28px; font-weight: 700; letter-spacing: 6px; text-indent: 6px; line-height: 1.15;
  transform: rotate(-14deg); mix-blend-mode: multiply; opacity: .85; pointer-events: none; }
.final-seal.good { color: var(--green); border-color: var(--green); } .final-seal.warn { color: var(--amber); border-color: var(--amber); }
.casebook .scroll { overflow-x: auto; padding-bottom: 120px; }
.casebook .scroll table { min-width: 760px; }

/* ---------- 证物柜 ---------- */
.cabinet { margin-top: 40px; padding: 18px; border-radius: 8px; background: linear-gradient(180deg, #3a2819, #2a1c12) ; border: 2px solid #120b06;
  box-shadow: inset 0 0 0 6px #23170e, inset 0 0 0 7px rgba(201,151,63,.25), 0 20px 40px rgba(0,0,0,.5); }
.cabinet-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 14px; }
.cabinet-head h2 { margin: 0; font-size: 22px; letter-spacing: 6px; color: var(--brass-hi); }
.cabinet-head button { background: transparent; color: #d8bb86; border: 1px solid var(--brass-lo); border-radius: 4px; padding: 3px 12px; cursor: pointer; font-size: 14px; }
.cabinet-head button:hover { border-color: var(--brass); color: var(--brass-hi); }
.drawers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.drawer { border-radius: 4px; background: #1a110a; }
.drawer.open { grid-column: 1 / -1; }
.front { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 0; border-radius: 4px; cursor: pointer; text-align: left; color: var(--paper);
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 1px, transparent 1px 11px), linear-gradient(180deg, #5a3f29, #47311f);
  box-shadow: inset 0 1px 0 rgba(255,220,170,.12), inset 0 -3px 0 rgba(0,0,0,.35), 0 2px 0 #120b06; transition: transform .25s ease; }
.front:hover { filter: brightness(1.08); }
.drawer.open .front { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255,220,170,.12), 0 8px 14px rgba(0,0,0,.55); }
.plate { flex: none; padding: 3px 12px; min-width: 112px; text-align: center; border-radius: 3px; font-size: 15px; font-weight: 700; color: #3a2a12; letter-spacing: 1px;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass) 55%, var(--brass-lo)); box-shadow: 0 1px 0 rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.4); }
.front .tag { flex: 1; min-width: 0; font-size: 15px; color: #f0e0c0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.front .tag.ok { color: #b9d6a4; } .front .tag.warn { color: #f0c46b; } .front .tag.bad { color: #ff9c86; }
.knob { flex: none; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--brass-hi), var(--brass-lo)); box-shadow: 0 2px 3px rgba(0,0,0,.6); }
.drawer > .body { display: none; margin: 0 10px 12px; padding: 18px 20px; color: var(--ink); background: var(--paper) var(--noise); border-radius: 0 0 3px 3px; box-shadow: inset 0 8px 12px -8px rgba(60,40,15,.6); }
.drawer.open > .body { display: block; overflow-x: auto; }
.loading { color: var(--ink-3); font-style: italic; }
.casebook .loading { color: var(--ink-3); }

/* 抽屉里的纸张内容 */
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--ink-3); font-weight: 400; white-space: nowrap; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
.kv th { width: 32%; }
.mono { word-break: break-all; }
.muted { color: var(--ink-3); }
.st { font-weight: 700; white-space: nowrap; }
.st.pass { color: var(--green); } .st.warn { color: var(--amber); } .st.fail { color: var(--red); } .st.info, .st.na { color: var(--ink-3); }
.note { font-size: 14.5px; color: var(--ink-2); margin: 12px 0 0; padding: 8px 12px; background: rgba(196,154,98,.18); border-left: 3px solid var(--kraft-dk); }
.summary { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.big { font-size: 28px; font-weight: 800; }
.badge { font-size: 12.5px; padding: 1px 10px; border: 1.5px solid currentColor; border-radius: 3px; color: var(--ink-2); font-weight: 700; }
.badge.good { color: var(--green); } .badge.warn { color: var(--amber); } .badge.bad { color: var(--red); }
.bar2 { height: 8px; border-radius: 99px; background: #e9c9a8; overflow: hidden; margin: 4px 0 6px; }
.bar2 span { display: block; height: 100%; background: var(--green); }
.scroll { overflow-x: auto; }
.error { color: var(--red); }
.hidden { display: none !important; }
.drawer a { color: #6b3f12; }

/* ---------- 告示 ---------- */
.notice { max-width: 1120px; margin: 0 auto; padding: 8px 16px 40px; color: #cdb48c; font-size: 14px; }
.notice b { color: var(--brass-hi); letter-spacing: 2px; }
.notice .sources { opacity: .8; font-size: 13px; }

/* ---------- 手机 ---------- */
@media (max-width: 820px) {
  .pages { grid-template-columns: 1fr; }
  .page-left, .page-right { border-radius: 3px; transform: none; box-shadow: none; }
  .page-right { border-top: 1px dashed var(--rule); }
  .drawers { grid-template-columns: minmax(0, 1fr); }
  .casebook { padding: 22px 16px 26px; }
  .casebook-head, .casebook .body { padding-left: 14px; }
  .casebook { background: linear-gradient(90deg, transparent 22px, rgba(168,50,42,.35) 22px 23px, transparent 23px), var(--paper) var(--noise); }
  .final-seal { width: 92px; height: 92px; font-size: 19px; right: 16px; }
  .sign-name { font-size: 32px; }
  .plate { min-width: 96px; }
}
