/* ============================================================
   知遇直播 · 主持工作台 / 管理后台 样式
   ============================================================ */
:root {
  --primary: #ff4d6d;
  --primary-dark: #e63956;
  --primary-soft: #fff0f3;
  --gold: #f6b73c;
  --gold-soft: #fff8e8;
  --ink: #2b2233;
  --ink-2: #5a5360;
  --muted: #8a8290;
  --bg: #f7f4f6;
  --card: #fff;
  --line: #efe6ea;
  --shadow: 0 8px 24px rgba(43, 34, 51, .06);
  --shadow-lg: 0 22px 60px rgba(43, 34, 51, .16);
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
[hidden] { display: none !important; }

/* ---------------- 按钮 ---------------- */
.hbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: .2s; white-space: nowrap;
}
.hbtn-primary { background: linear-gradient(135deg, var(--primary), #ff8fa3); color: #fff; }
.hbtn-primary:hover { box-shadow: 0 8px 20px rgba(255, 77, 109, .32); transform: translateY(-1px); }
.hbtn-outline { background: #fff; color: var(--primary); border-color: #ffc2ce; }
.hbtn-outline:hover { background: var(--primary-soft); }
.hbtn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.hbtn-ghost:hover { background: #fff; border-color: #dcd2d8; }
.hbtn-gold { background: linear-gradient(135deg, #f9c85a, var(--gold)); color: #6b4400; }
.hbtn-gold:hover { box-shadow: 0 8px 20px rgba(246, 183, 60, .35); transform: translateY(-1px); }
.hbtn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.hbtn-block { width: 100%; }
.hbtn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.topbar-inner {
  width: min(1180px, 94%); margin: 0 auto; height: 66px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; }
.brand em { color: var(--primary); font-style: normal; }
.brand small { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .12em; display: block; }
.topbar-right { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.topbar-right a.link { color: var(--ink-2); }
.topbar-right a.link:hover { color: var(--primary); }
.top-user { display: flex; align-items: center; gap: 10px; }
.top-user img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.top-user strong { font-size: 15px; }

/* ---------------- 主持入口 ---------------- */
.entry { width: min(1060px, 92%); margin: 0 auto; padding: 54px 0 80px; }
.entry-head { text-align: center; margin-bottom: 40px; }
.pill {
  display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; color: var(--primary-dark); background: var(--primary-soft);
  border: 1px solid #ffd9e1; margin-bottom: 16px;
}
.entry-head h1 { font-size: 34px; letter-spacing: -.5px; margin-bottom: 10px; }
.entry-head p { color: var(--muted); font-size: 15px; }
.host-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px;
}
.host-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px 18px 22px; text-align: center; cursor: pointer; transition: .25s;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.host-card::after {
  content: ''; position: absolute; inset: 0; border-radius: 20px; pointer-events: none;
  box-shadow: inset 0 0 0 0 rgba(255, 77, 109, 0); transition: .25s;
}
.host-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(255, 77, 109, .18); border-color: #ffd0da; }
.host-card:hover::after { box-shadow: inset 0 0 0 2px rgba(255, 77, 109, .35); }
.host-card .ring {
  width: 104px; height: 104px; margin: 0 auto 14px; border-radius: 50%; padding: 4px;
  background: linear-gradient(135deg, #ffb3c4, #ff8fa3, #f6b73c);
}
.host-card .ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; }
.host-card h3 { font-size: 17px; margin-bottom: 2px; }
.host-card span { font-size: 12px; color: var(--muted); }
.host-card .enter-hint {
  margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--primary);
  opacity: 0; transform: translateY(6px); transition: .25s;
}
.host-card:hover .enter-hint { opacity: 1; transform: none; }
.entry-tip { text-align: center; color: var(--muted); font-size: 13px; margin-top: 34px; }
.entry-tip a { color: var(--primary); font-weight: 600; }

.loading, .empty {
  text-align: center; color: var(--muted); font-size: 14px; padding: 42px 0;
  grid-column: 1 / -1;
}

/* ---------------- 弹窗 ---------------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-mask { position: absolute; inset: 0; background: rgba(43, 34, 51, .45); backdrop-filter: blur(4px); animation: fadeIn .2s; }
.modal-box {
  position: relative; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
  width: min(440px, 100%); max-height: 92vh; overflow: auto; animation: popIn .26s cubic-bezier(.2, .9, .3, 1.2);
}
.modal-box.wide { width: min(880px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 12px; }
.modal-head h2 { font-size: 18px; }
.modal-head p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%; border: none; background: #f5f1f3;
  color: var(--ink-2); font-size: 18px; cursor: pointer; line-height: 1; flex: none;
}
.modal-close:hover { background: var(--primary-soft); color: var(--primary); }
.modal-body { padding: 6px 22px 22px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

/* 主持人密码弹窗 */
.pwd-host { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.pwd-host img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.pwd-host strong { font-size: 17px; display: block; }
.pwd-host span { font-size: 12.5px; color: var(--muted); }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field label .req { color: var(--primary); }
.field input[type="text"], .field input[type="password"], .field input[type="number"],
.field input[type="datetime-local"], .field input[type="month"], .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; font-family: inherit; color: var(--ink); background: #fdfbfc; transition: .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(255, 77, 109, .1);
}
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-msg { font-size: 13px; padding: 9px 12px; border-radius: 9px; margin-bottom: 12px; }
.form-msg.err { background: #fff1f2; color: #c0264a; }
.form-msg.ok { background: #edfbf3; color: #15803d; }

/* ---------------- 主持工作台 ---------------- */
.work-wrap { width: min(1180px, 94%); margin: 0 auto; padding: 26px 0 80px; }
.summary {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin: 22px 0 30px;
}
.summary .cell {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.summary .cell::after {
  content: ''; position: absolute; right: -18px; bottom: -18px; width: 76px; height: 76px;
  border-radius: 50%; background: var(--primary-soft); opacity: .8;
}
.summary .cell span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.summary .cell strong { display: block; font-size: 26px; letter-spacing: -.5px; margin-top: 4px; position: relative; z-index: 1; }
.summary .cell.gold::after { background: var(--gold-soft); }
.summary .cell.gold strong { color: #b97f10; }

.section-title { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 16px; flex-wrap: wrap; }
.section-title h2 { font-size: 19px; }
.section-title span { font-size: 12.5px; color: var(--muted); }
.section-title b { color: var(--primary-dark); }

.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.room-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); transition: .22s; display: flex; flex-direction: column; gap: 12px;
}
.room-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(43, 34, 51, .1); border-color: #ffd7e0; }
.room-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.room-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.room-title h3 { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drag-handle {
  flex: none; width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--muted); background: #f7f2f4; font-size: 15px; letter-spacing: -1px; cursor: grab;
  touch-action: none; user-select: none; transition: .18s;
}
.drag-handle:hover { color: var(--primary-dark); background: var(--primary-soft); }
.drag-handle:active { cursor: grabbing; }
.room-count {
  font-size: 12px; font-weight: 700; color: var(--primary-dark); background: var(--primary-soft);
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.room-company {
  font-size: 11.5px; font-weight: 700; color: #8f1a37; background: var(--primary-soft);
  border-radius: 999px; padding: 2px 9px; white-space: nowrap;
}
.room-meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.room-meta b { color: var(--ink); font-weight: 700; }
.room-thumbs { display: flex; gap: 6px; }
.room-thumbs img {
  width: 46px; height: 60px; border-radius: 7px; object-fit: cover; cursor: pointer;
  border: 1px solid var(--line); transition: .2s;
}
.room-thumbs img:hover { transform: scale(1.05); border-color: var(--primary); }
.room-thumbs .more {
  width: 46px; height: 60px; border-radius: 7px; background: #f7f2f4; color: var(--muted);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.room-actions { display: flex; gap: 8px; margin-top: auto; }
.room-actions .hbtn { flex: 1; }

/* 拖拽排序状态 */
body.dragging-room { user-select: none; cursor: grabbing; }
body.dragging-room .room-card:hover { transform: none; }
.room-card.drag-placeholder { opacity: .35; border-style: dashed; border-color: var(--primary); }
.drag-ghost {
  position: fixed; z-index: 9999; pointer-events: none; opacity: .94;
  transform: scale(1.03) rotate(-1deg); box-shadow: 0 24px 60px rgba(43, 34, 51, .3);
  border-color: #ffd0da; margin: 0;
}

/* ---------------- 上传流程 ---------------- */
.steps { display: flex; gap: 8px; margin-bottom: 16px; }
.steps .step {
  flex: 1; font-size: 12px; font-weight: 700; color: var(--muted); text-align: center;
  padding: 7px 4px; border-radius: 8px; background: #f7f2f4;
}
.steps .step.on { background: var(--primary-soft); color: var(--primary-dark); }
.dropzone {
  border: 2px dashed #ffc9d5; border-radius: 14px; background: #fffafb; padding: 34px 20px;
  text-align: center; cursor: pointer; transition: .2s;
}
.dropzone:hover, .dropzone.dragover { background: #fff2f5; border-color: var(--primary); }
.dropzone .ico { font-size: 32px; margin-bottom: 8px; }
.dropzone strong { display: block; font-size: 15px; margin-bottom: 4px; }
.dropzone span { font-size: 12.5px; color: var(--muted); }
.upload-preview { display: flex; gap: 14px; }
.upload-preview .shot {
  width: 120px; flex: none; border-radius: 10px; overflow: hidden; border: 1px solid var(--line);
  background: #f7f2f4;
}
.upload-preview .shot img { width: 100%; height: 210px; object-fit: cover; object-position: top; }
.upload-preview .meta { flex: 1; min-width: 0; }
.ocr-state {
  font-size: 12.5px; padding: 9px 12px; border-radius: 9px; background: #f6f3ff; color: #6d5bd0;
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.ocr-state.ok { background: #edfbf3; color: #15803d; }
.ocr-state.warn { background: #fff8e8; color: #a9701a; }
.spinner {
  width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(109, 91, 208, .25);
  border-top-color: #6d5bd0; animation: spin .8s linear infinite; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.raw-text {
  font-size: 11.5px; color: var(--muted); background: #faf7f8; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; max-height: 76px; overflow: auto; white-space: pre-wrap;
  margin-top: 8px; display: none;
}
.raw-text.show { display: block; }

/* ---------------- 图片列表 ---------------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.shot-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.shot-card .pic { position: relative; cursor: zoom-in; background: #f7f2f4; }
.shot-card .pic img { width: 100%; height: 190px; object-fit: cover; object-position: top; }
.shot-card .pic .del {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%;
  border: none; background: rgba(0, 0, 0, .5); color: #fff; cursor: pointer; font-size: 14px; line-height: 1;
  opacity: 0; transition: .2s;
}
.shot-card:hover .pic .del { opacity: 1; }
.shot-card .info { padding: 9px 10px; font-size: 12px; color: var(--ink-2); }
.shot-card .info b { display: block; font-size: 12.5px; color: var(--ink); }
.shot-card .info span { color: var(--muted); }

/* ---------------- 灯箱 ---------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(20, 14, 18, .88);
  display: flex; align-items: center; justify-content: center; padding: 30px; cursor: zoom-out;
}
.lightbox img { max-width: 92%; max-height: 92vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }

/* ---------------- 消息提示 ---------------- */
.toast-wrap { position: fixed; top: 22px; right: 22px; z-index: 400; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--primary); border-radius: 10px; padding: 11px 16px;
  font-size: 13.5px; box-shadow: 0 10px 30px rgba(43, 34, 51, .14); animation: slideIn .25s;
  max-width: 320px;
}
.toast.ok { border-left-color: #22c55e; }
.toast.err { border-left-color: #ef4444; }
.toast.out { animation: slideOut .25s forwards; }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes slideOut { to { opacity: 0; transform: translateX(30px); } }

/* ============================================================
   管理后台
   ============================================================ */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(circle at 20% 10%, #ffe4ea, transparent 42%),
              radial-gradient(circle at 85% 80%, #fff3d6, transparent 40%), #f7f4f6;
}
.login-card { width: min(380px, 100%); background: #fff; border-radius: 22px; padding: 34px 30px 28px; box-shadow: var(--shadow-lg); text-align: center; }
.login-card img { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 16px; }
.login-card h1 { font-size: 20px; margin-bottom: 4px; }
.login-card p.sub { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }

.shell { display: flex; min-height: 100vh; }
.side {
  width: 232px; flex: none; background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px; border-bottom: 1px solid var(--line); font-weight: 800; }
.side-brand img { width: 32px; height: 32px; border-radius: 9px; }
.side-brand small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; letter-spacing: .08em; }
.side-nav { padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.navlink {
  padding: 11px 14px; border-radius: 10px; font-size: 14px; font-weight: 600;
  color: var(--ink-2); cursor: pointer; display: flex; align-items: center; gap: 9px;
}
.navlink:hover { background: #faf5f7; }
.navlink.active { background: linear-gradient(135deg, var(--primary), #ff7d95); color: #fff; box-shadow: 0 8px 18px rgba(255, 77, 109, .28); }
.side-foot { margin-top: auto; padding: 14px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.side-foot .who { display: flex; align-items: center; justify-content: space-between; }
.side-foot a { color: var(--primary); font-weight: 600; }

.main { flex: 1; min-width: 0; padding: 26px 30px 60px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 22px; }
.page-head p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.panel { display: none; }
.panel.active { display: block; animation: fadeIn .25s; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat-box span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat-box strong { display: block; font-size: 24px; margin-top: 2px; }
.stat-box.gold strong { color: #b97f10; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .grow { flex: 1; }
.month-picker { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.month-picker label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.month-picker input, .month-picker select { border: none; background: transparent; font-size: 14px; font-family: inherit; font-weight: 600; color: var(--ink); outline: none; }

.table-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
  text-align: left; padding: 12px 14px; background: #faf7f8; color: var(--ink-2);
  font-size: 12.5px; font-weight: 700; white-space: nowrap; border-bottom: 1px solid var(--line);
}
table.data td { padding: 11px 14px; border-bottom: 1px solid #f6f1f3; color: var(--ink-2); }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: #fffafb; }
table.data td.money { font-weight: 700; color: var(--primary-dark); }
table.data td.heat { font-weight: 700; color: #b97f10; }
table.data .thumb { width: 34px; height: 46px; border-radius: 5px; object-fit: cover; object-position: top; cursor: zoom-in; border: 1px solid var(--line); }
table.data .empty-row td { text-align: center; color: var(--muted); padding: 34px 0; }

.host-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.host-item {
  display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}
.host-item .top { display: flex; align-items: center; gap: 12px; }
.host-item img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .1); }
.host-item .grow { flex: 1; min-width: 0; }
.host-item strong { font-size: 15.5px; display: block; line-height: 1.4; }
.host-item span { font-size: 12px; color: var(--muted); }
.host-item .ops { display: flex; gap: 6px; }
.host-item .ops .hbtn { flex: 1; padding: 7px 4px; font-size: 12.5px; }

.company-list { display: flex; flex-direction: column; gap: 14px; }
.company-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.company-item .head { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid #f6f1f3; }
.company-item .head strong { font-size: 15.5px; }
.company-item .head .count { font-size: 12px; color: var(--muted); }
.company-item .head .ops { margin-left: auto; display: flex; gap: 6px; }
.rooms { padding: 12px 18px 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.room-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  background: #faf7f8; border: 1px solid var(--line); font-size: 13px; font-weight: 600;
}
.room-chip .num { font-size: 11px; color: var(--muted); font-weight: 600; }
.room-chip button { border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; line-height: 1; }
.room-chip button:hover { color: var(--primary); }
.room-chip.add { border-style: dashed; color: var(--primary); cursor: pointer; background: #fff; }

/* ---------------- OCR 设置 ---------------- */
.ocr-badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700;
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted);
}
.ocr-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #d9d2d6; }
.ocr-badge.on { background: #edfbf3; border-color: #b7e7c9; color: #15803d; }
.ocr-badge.on .dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.ocr-badge.off { background: #fff7ed; border-color: #fbdcb5; color: #b45309; }
.ocr-badge.off .dot { background: #f59e0b; }

.ocr-tips { font-size: 12.5px; color: var(--muted); line-height: 1.9; margin-top: 4px; }
.ocr-tips b { color: var(--ink-2); }
.ocr-tips code {
  background: #f6f3f5; border: 1px solid var(--line); border-radius: 6px;
  padding: 1px 6px; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.ocr-result { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.ocr-kv {
  flex: 1 1 140px; max-width: 250px; background: #faf7f8; border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px;
}
.ocr-kv span { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.ocr-kv strong { font-size: 14px; word-break: break-all; }
.ocr-raw {
  max-height: 220px; overflow: auto; background: #faf7f8; border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; font-size: 12.5px; line-height: 1.85;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-all;
}
.ocr-note { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }
.ocr-env {
  display: flex; flex-direction: column; gap: 6px; margin-top: 14px;
  background: #faf7f8; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 12.5px; color: var(--ink-2);
}
.ocr-env .warn { color: var(--danger); word-break: break-all; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 860px) {
  .entry-head h1 { font-size: 26px; }
  .host-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
  .host-card { padding: 20px 12px 16px; }
  .host-card .ring { width: 84px; height: 84px; }
  .field-row { grid-template-columns: 1fr; }
  .upload-preview { flex-direction: column; }
  .upload-preview .shot { width: 100%; }
  .upload-preview .shot img { height: 160px; }
  .side { width: 66px; }
  .side-brand span, .side-brand small, .navlink .txt, .side-foot .who span { display: none; }
  .navlink { justify-content: center; padding: 12px 6px; }
  .main { padding: 18px 16px 50px; }
  .table-card { overflow-x: auto; }
  table.data { min-width: 620px; }
}
