/* ============ 活码台 · 共用样式 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #F4F5F7;
  --panel: #fff;
  --line: #E6E9EC;
  --line2: #F0F2F4;
  --ink: #1B2126;
  --ink2: #4A545E;
  --muted: #818B95;
  --accent: #0B72E7;
  --accent-d: #0964CC;
  --accent-soft: #EAF2FE;
  --ok: #12A05A;
  --ok-soft: #E8F6EE;
  --warn: #C07A17;
  --warn-soft: #FDF3E4;
  --danger: #D64545;
  --danger-soft: #FBEBEB;
  --r: 10px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", -apple-system, system-ui, sans-serif;
  --mono: ui-monospace, Consolas, "Courier New", monospace;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: inherit; font-size: 13px; color: inherit; }
button { cursor: pointer; border: none; background: none; }
input, select, textarea { outline: none; }
a { color: inherit; text-decoration: none; }

/* 顶栏 */
.top {
  height: 56px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 20px; gap: 14px;
  position: sticky; top: 0; z-index: 20;
}
.logo { display: flex; align-items: center; gap: 9px; padding-right: 14px; border-right: 1px solid var(--line); }
.logo-mark { width: 26px; height: 26px; border-radius: 7px; background: #0F1620; display: grid; place-items: center; }
.logo-mark svg { width: 14px; height: 14px; }
.logo-name { font-size: 14px; font-weight: 650; letter-spacing: .3px; }
.logo-name em { font-style: normal; color: var(--muted); font-weight: 400; font-size: 11.5px; margin-left: 5px; }
.top-nav { display: flex; gap: 2px; }
.top-nav a, .top-nav button.navbtn {
  padding: 7px 11px; border-radius: 7px; font-size: 12.5px; color: var(--ink2);
}
.top-nav .on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.top-nav a:hover, .top-nav button.navbtn:hover { background: #F3F5F7; }
.spacer { flex: 1; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: 8px; font-size: 12.5px; font-weight: 600; transition: .15s; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-d); }
.btn-line { background: #fff; border: 1px solid var(--line); color: var(--ink2); }
.btn-line:hover { border-color: #CFD6DD; background: #FAFBFC; }
.btn-danger { background: #fff; border: 1px solid #F0C9C9; color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }
.btn svg { width: 13px; height: 13px; }

/* 容器 */
.wrap { padding: 16px 20px 40px; max-width: 1440px; margin: 0 auto; }
.meta-line { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.meta-line b { color: var(--ink); font-weight: 600; }
.meta-line .dot { width: 3px; height: 3px; border-radius: 50%; background: #C9CFD6; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line2); }
.panel-head h2 { font-size: 13.5px; font-weight: 650; }
.panel-head .cnt { font-size: 11.5px; color: var(--muted); background: #F3F5F7; padding: 2px 7px; border-radius: 20px; }
body.admin #cutBar .cut-state.on { color: #0A7A32; background: #E8F8EE; font-weight: 600; }
body.admin #cutBar .cut-state.off { color: #C0392B; background: #FFF0EF; font-weight: 600; }
.panel-head .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.panel-foot { display: flex; align-items: center; padding: 10px 16px; gap: 8px; font-size: 11.5px; color: var(--muted); }

/* 表格 */
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
thead th {
  font-size: 11.5px; font-weight: 600; color: var(--muted); text-align: left;
  padding: 9px 12px; background: #FAFBFC; border-bottom: 1px solid var(--line2);
}
tbody td { padding: 9px 12px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #FCFDFE; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); font-size: 12.5px; }

/* 短域名合计行 */
tbody tr.host-sum-row { background: #FAFBFC; }
tbody tr.host-sum-row:hover { background: #FAFBFC; }
tbody tr.host-sum-row td { padding: 8px 12px; border-bottom: 1px solid var(--line2); font-size: 12px; color: var(--muted); vertical-align: middle; }
tbody tr.host-sum-row td.hs-label { font-weight: 600; color: var(--ink); }
tbody tr.host-sum-row td.hs-num i { display: none; font-style: normal; }
tbody tr.host-sum-row td b { font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr.host-sum-row td.hs-ctrl .cutpick { font-size: 11.5px; }
tbody tr.host-sum-row td.hs-clear .op { font-size: 13.5px; padding: 5px 6px; min-width: 0; font-weight: 400; background: none; border: 0; }
tbody tr.host-sum-row td.hs-black .op { font-size: 13.5px; padding: 5px 6px; }
tbody tr.host-sum-row td.hs-action .op {
  font-size: 11.5px; padding: 4px 6px; min-width: 0; font-weight: 400;
  background: none; border: 0; border-radius: 5px;
}
#linkCutBody td b { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* 活码单元格 */
.cell-code { display: flex; align-items: center; gap: 10px; min-width: 0; }
.qr { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 3px;
      background: #fff; flex: none; display: grid; place-items: center; overflow: hidden; }
.qr canvas, .qr img, .qr svg { width: 100%; height: 100%; display: block; }
.qr.empty-qr { color: #C1C9D1; font-size: 10px; }
.code-name { font-size: 12.8px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.code-entry { font-size: 11px; color: var(--muted); margin-top: 3px; font-family: var(--mono); display: flex; align-items: center; gap: 4px; min-width: 0; white-space: nowrap; overflow: hidden; }
.code-entry > span, .code-entry { text-overflow: ellipsis; }
.code-entry span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.copy-mini { color: #9AA5AF; display: inline-flex; padding: 1px; flex: none; }
.copy-mini:hover { color: var(--accent); }
.copy-mini svg { width: 11px; height: 11px; }

.url-txt { font-size: 11.5px; color: var(--ink2); font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

.lchips { display: flex; flex-wrap: wrap; gap: 4px; max-width: 176px; }
.lchip { font-size: 10.5px; line-height: 1.5; padding: 2px 6px; border-radius: 5px; border: 1px solid #D8E4F5;
         background: #EFF4FB; color: #2A6BC7; font-family: var(--mono); white-space: nowrap;
         max-width: 172px; overflow: hidden; text-overflow: ellipsis; }
.lchip.none { background: #F4F6F8; border-color: #E7EBEF; color: #98A2AC; font-family: inherit; }
.tthumb { width: 52px; height: 38px; border-radius: 8px; object-fit: cover; background: #F1F4F8;
          border: 1px solid #E3E8EE; cursor: zoom-in; display: block; }
.tthumb.noimg { cursor: default; display: grid; place-items: center; color: #A9B3BC; font-size: 11px; }
.url-forced { display: inline-block; font-size: 10px; color: var(--danger); background: var(--danger-soft); border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: middle; }

.mode-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; padding: 3px 7px; border-radius: 5px; background: #F2F5F8; color: var(--ink2); white-space: nowrap; }
.mode-tag i { width: 5px; height: 5px; border-radius: 50%; }
.mode-tag.direct i { background: var(--accent); }
.mode-tag.delay i { background: var(--ok); }
.mode-tag.click i { background: var(--warn); }

.time-cell { font-size: 11px; color: var(--ink2); line-height: 1.5; }
.time-cell small { display: block; color: var(--muted); }
.count-cell { display: flex; align-items: baseline; gap: 4px; }
.count-cell b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.count-cell span { font-size: 10.5px; color: var(--muted); }
.today-cell { font-size: 10.5px; color: var(--muted); margin-top: 1px; }

.st { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; }
.st i { width: 6px; height: 6px; border-radius: 50%; }
.st.run i { background: var(--ok); } .st.run { color: var(--ok); }
.st.paused i { background: var(--muted); } .st.paused { color: var(--muted); }
.st.end i { background: var(--danger); } .st.end { color: var(--danger); }
.st.wait i { background: var(--warn); } .st.wait { color: var(--warn); }
.st.draft i { background: #C89A2B; } .st.draft { color: #A87E1B; }

.switch { width: 32px; height: 17px; border-radius: 20px; background: #D5DCE3; position: relative; transition: .18s; cursor: pointer; flex: none; }
.switch.on { background: var(--ok); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%;
  background: #fff; transition: .18s; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.switch.on::after { left: 17px; }

.ops { display: flex; align-items: center; gap: 2px; }
.op { font-size: 11.5px; color: var(--accent); padding: 4px 6px; border-radius: 5px; white-space: nowrap; }
.op:hover { background: var(--accent-soft); }
.op.gray { color: var(--ink2); } .op.gray:hover { background: #F2F5F8; }
.op.red { color: var(--danger); } .op.red:hover { background: var(--danger-soft); }
.ops .divider { width: 1px; height: 14px; background: var(--line); margin: 0 2px; }

/* 表单 */
.field { margin-bottom: 10px; }
.field:last-child { margin-bottom: 0; }
.field > label { display: block; font-size: 11.5px; color: var(--ink2); margin-bottom: 5px; }
.field > label em { font-style: normal; color: var(--danger); margin-left: 2px; }
.inp { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 7px 10px; background: #fff; font-size: 12.5px; transition: .15s; }
.inp:focus { border-color: #8DBBF3; box-shadow: 0 0 0 3px rgba(11,114,231,.1); }
.inp.mono { font-family: var(--mono); font-size: 12px; }
textarea.inp { resize: vertical; min-height: 54px; line-height: 1.5; }
.sel { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%237B858F' stroke-width='1.6'/></svg>");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 11px; padding-right: 26px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.delay-save { display: flex; align-items: center; gap: 6px; }
.delay-save .inp { flex: 1; min-width: 0; }

/* 抽屉 */
.mask { position: fixed; inset: 0; background: rgba(16,24,32,.32); opacity: 0; pointer-events: none; transition: .2s; z-index: 40; }
.mask.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 460px; max-width: 94vw; background: #fff; z-index: 41;
  transform: translateX(102%); transition: .28s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column;
  box-shadow: -16px 0 40px -24px rgba(16,24,32,.4); }
.drawer.show { transform: none; }
.cfbox { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 460px; max-width: calc(100vw - 32px);
  max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 14px; z-index: 41; display: none;
  flex-direction: column; box-shadow: 0 24px 60px -18px rgba(16,24,32,.45); }
.dhead { padding: 14px 18px; border-bottom: 1px solid var(--line2); display: flex; align-items: center; gap: 10px; }
.dhead h3 { font-size: 14px; font-weight: 650; }
.dhead .sub { font-size: 11px; color: var(--muted); font-family: var(--mono); margin-top: 2px; }
.dhead .x { margin-left: auto; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; color: var(--muted); }
.dhead .x:hover { background: #F3F5F7; }
.dbody { flex: 1; overflow-y: auto; padding: 0 18px 18px; }
.dfoot { padding: 12px 18px; border-top: 1px solid var(--line2); display: flex; gap: 9px; }
.dfoot .btn { flex: 1; justify-content: center; height: 36px; }

.block { padding: 15px 0; border-bottom: 1px solid var(--line2); }
.block:last-child { border-bottom: none; }
.block-t { font-size: 11.5px; font-weight: 650; letter-spacing: .4px; margin-bottom: 11px; display: flex; align-items: center; gap: 7px; }
.block-t::before { content: ""; width: 3px; height: 11px; border-radius: 2px; background: var(--accent); }
.block-t .tip { margin-left: auto; font-weight: 400; color: var(--muted); font-size: 10.5px; letter-spacing: 0; }

/* 入口地址 */
.entry-line { display: flex; align-items: center; gap: 8px; }
.entry-box { flex: 1; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; height: 34px; }
.entry-box .pfx { background: #F5F7F9; padding: 0 9px; height: 100%; display: flex; align-items: center;
  font-size: 11.5px; color: var(--ink2); border-right: 1px solid var(--line); font-family: var(--mono); }
.entry-box input { border: none; flex: 1; padding: 0 9px; font-size: 12px; font-family: var(--mono); }
.qr-box { display: flex; gap: 12px; align-items: center; margin-top: 11px; }
.qr-big { width: 96px; height: 96px; border: 1px solid var(--line); border-radius: 9px; padding: 6px; background: #fff; flex: none;
  display: grid; place-items: center; overflow: hidden; }
.qr-big canvas, .qr-big img, .qr-big svg { width: 100%; height: 100%; }
.qr-info { font-size: 11px; color: var(--muted); line-height: 1.7; min-width: 0; }
.qr-info .entry-link { font-family: var(--mono); color: var(--ink); word-break: break-all; }
.qr-info a { color: var(--accent); display: block; margin-top: 4px; cursor: pointer; }

/* 跳转模式 */
.mode-list { display: flex; flex-direction: column; gap: 7px; }
.mode { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px;
  cursor: pointer; transition: .15s; background: #FCFDFE; }
.mode-main { display: flex; align-items: flex-start; gap: 9px; }
.mode-extra { display: none; margin: 10px 0 0 23px; padding-top: 9px; border-top: 1px dashed #DCE5EF; cursor: default; }
.mode.on .mode-extra { display: block; }
.mode:hover { border-color: #CFDCE8; }
.mode.on { border-color: #9FC7F2; background: var(--accent-soft); }
.radio { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #C3CBD3; flex: none; margin-top: 2px; position: relative; }
.mode.on .radio { border-color: var(--accent); }
.mode.on .radio::after { content: ""; position: absolute; inset: 2.5px; border-radius: 50%; background: var(--accent); }
.mode .mt { font-size: 12px; font-weight: 600; }
.mode .md { font-size: 10.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.mode.on .mt { color: #0A5FBF; }

/* 计数 */
.count-box { display: flex; align-items: center; gap: 14px; background: #FAFBFC; border: 1px solid var(--line2); border-radius: 9px; padding: 12px 14px; }
.count-box .big { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.count-box .lb { font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.count-box .vdiv { width: 1px; height: 30px; background: var(--line); }
.count-box .acts { margin-left: auto; display: flex; gap: 6px; }
.mini-btn { font-size: 11px; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 5px 9px; color: var(--ink2); }
.mini-btn:hover { border-color: #CFD6DD; background: #F7F9FB; }
.mini-btn.blue { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; padding: 7px 13px; }
.mini-btn.blue:hover { background: var(--accent-d); border-color: var(--accent-d); }
.mini-btn.red { background: var(--danger-soft); border-color: #F0C9C9; color: var(--danger); font-weight: 600; padding: 7px 12px; }
.mini-btn.red:hover { background: #F7DCDC; border-color: var(--danger); }

/* 中转页图片上传行 */
.imgrow { display: flex; align-items: center; gap: 10px; background: #F8FAFD; border: 1px solid #E7ECF3; border-radius: 9px; padding: 10px 12px; }
.imgbox { width: 56px; height: 56px; border-radius: 9px; overflow: hidden; background: #EFF3F8; border: 1px solid #DDE4EC; flex: none; }
.imgbox img { width: 100%; height: 100%; object-fit: cover; display: block; }
.imgbox.empty { border: 1px dashed #B9C6D6; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer; }
.imgbox.empty:hover { border-color: var(--accent); background: var(--accent-soft); }
.imgbox.empty .plus { font-size: 18px; color: var(--accent); line-height: 1; font-weight: 700; }
.imgbox.empty .lb { font-size: 10px; color: #8A96A4; }
.imgtip { font-size: 11px; color: #96A0AA; }
.imgtip.ok { color: var(--ok); font-weight: 600; }

.log-list { display: flex; flex-direction: column; gap: 9px; }
.log-i { display: flex; gap: 9px; font-size: 11px; }
.log-i .t { color: var(--muted); flex: none; font-family: var(--mono); }
.log-i .c { color: var(--ink2); min-width: 0; word-break: break-all; line-height: 1.5; }

/* 弹窗 */
.mmask { position: fixed; inset: 0; background: rgba(16,24,32,.36); display: grid; place-items: center; z-index: 50;
  opacity: 0; pointer-events: none; transition: .18s; }
.mmask.show { opacity: 1; pointer-events: auto; }
.modal { width: 420px; max-width: 92vw; background: #fff; border-radius: 12px; padding: 18px;
  box-shadow: 0 20px 50px -20px rgba(16,24,32,.5); transform: translateY(6px); transition: .18s; }
.mmask.show .modal { transform: none; }
.modal.hip-modal { width: 560px; }
.bl-add { display: flex; gap: 8px; margin: 10px 0 12px; }
.bl-add .inp { flex: 1; min-width: 0; }
.bl-add .btn { flex: none; height: 34px; padding: 0 16px; }
.hip-modal .hip-list, .hip-modal .hip-row, .hip-modal .hip-row > div { min-width: 0; }
.hip-modal .hip-meta { overflow-wrap: anywhere; }
.modal h4 { font-size: 14px; font-weight: 650; margin-bottom: 3px; }
.modal p { font-size: 11.5px; color: var(--muted); line-height: 1.6; margin-bottom: 13px; }
.modal .mfoot { display: flex; gap: 9px; margin-top: 14px; }
.modal .mfoot .btn { flex: 1; justify-content: center; height: 34px; }

/* 预览大图 */
.pmask { position: fixed; inset: 0; background: rgba(16,24,32,.42); display: grid; place-items: center; z-index: 55;
  opacity: 0; pointer-events: none; transition: .18s; }
.pmask.show { opacity: 1; pointer-events: auto; }
.pcard { background: #fff; border-radius: 14px; padding: 20px; text-align: center; width: 272px; }
.pcard .pq { width: 190px; height: 190px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin: 0 auto;
  display: grid; place-items: center; overflow: hidden; }
.pcard .pq canvas, .pcard .pq img, .pcard .pq svg { width: 100%; height: 100%; }
.pcard h5 { font-size: 13.5px; margin: 13px 0 4px; }
.pcard small { font-size: 11px; color: var(--muted); font-family: var(--mono); word-break: break-all; }
.pcard .pfoot { display: flex; gap: 8px; margin-top: 14px; }
.pcard .pfoot .btn { flex: 1; justify-content: center; height: 34px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 10px); background: #0F1620; color: #fff;
  font-size: 12px; padding: 8px 14px; border-radius: 8px; opacity: 0; transition: .2s; z-index: 60; pointer-events: none; max-width: 80vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 登录页 */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: linear-gradient(160deg, #EEF3FA 0%, #F7F8FA 55%, #EEF6F2 100%); }
.auth-card { width: 100%; max-width: 372px; background: #fff; border-radius: 16px; padding: 30px 28px;
  box-shadow: 0 20px 50px -24px rgba(20,40,70,.28); }
.auth-card .brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.auth-card .brand-row .logo-mark { width: 32px; height: 32px; border-radius: 9px; }
.auth-card .brand-row .logo-mark svg { width: 17px; height: 17px; }
.auth-card h1 { font-size: 17px; font-weight: 650; }
.auth-card .sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.auth-tabs { display: flex; background: #F3F5F7; border-radius: 9px; padding: 3px; margin-bottom: 16px; }
.auth-tabs button { flex: 1; height: 30px; border-radius: 7px; font-size: 12.5px; color: var(--muted); }
.auth-tabs button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.auth-card .inp { height: 38px; }
.auth-card .btn-primary { width: 100%; height: 40px; justify-content: center; font-size: 13.5px; margin-top: 16px; }
.auth-foot { margin-top: 14px; font-size: 11.5px; color: var(--muted); text-align: center; }
.auth-foot a { color: var(--accent); }
.form-err { font-size: 11.5px; color: var(--danger); min-height: 16px; margin-top: 8px; }

/* KPI */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.kpi .k { font-size: 11.5px; color: var(--muted); }
.kpi .v { font-size: 24px; font-weight: 700; margin-top: 8px; font-variant-numeric: tabular-nums; letter-spacing: -.4px; }
.kpi .v small { font-size: 11.5px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.kpi .s { font-size: 11px; color: var(--muted); margin-top: 6px; }

/* 最近7天 */
.days { display: flex; align-items: flex-end; gap: 10px; height: 132px; padding: 10px 16px 14px; }
.day-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; justify-content: flex-end; height: 100%; }
.day-bar { width: 100%; max-width: 26px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #4A9BF5, #0B72E7); min-height: 3px; }
.day-lab { font-size: 10px; color: var(--muted); }
.day-v { font-size: 10px; color: var(--ink2); font-variant-numeric: tabular-nums; }

/* 流量流 */
.flow { padding: 6px 14px 12px; }
.flow-i { display: flex; align-items: center; gap: 9px; padding: 8px 2px; border-bottom: 1px dashed var(--line2); font-size: 11.5px; }
.flow-i:last-child { border-bottom: none; }
.flow-i .t { color: var(--muted); font-family: var(--mono); width: 84px; flex: none; }
.flow-i .n { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-i .d { color: var(--muted); margin-left: auto; white-space: nowrap; }

/* ============ 左侧竖列导航（工作台 / 总后台共用） ============ */
.shell { display: flex; min-height: 100vh; }
.side {
  width: 232px; flex: none; background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; height: 100vh; position: sticky; top: 0; z-index: 18;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px; border-bottom: 1px solid var(--line2); }
.side-brand .logo-mark { width: 32px; height: 32px; border-radius: 9px; }
.side-brand .logo-mark svg { width: 17px; height: 17px; }
.side-brand .nm { font-size: 15px; font-weight: 700; letter-spacing: .3px; }
.side-brand .sb { font-size: 11.5px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 7px; }
.side-brand .uid { font-size: 10px; color: var(--accent); background: var(--accent-soft); border: 1px solid #D5E5FA;
  border-radius: 5px; padding: 1px 6px; font-family: var(--mono); letter-spacing: .4px; white-space: nowrap; }
.side-brand .uid:hover { background: #DCECFE; border-color: #BEDAF9; }

.side-nav { flex: 1; overflow-y: auto; padding: 10px; }
.side-group { font-size: 11.5px; font-weight: 600; color: #A7B0BA; letter-spacing: 1.4px; padding: 16px 12px 8px; }
.nav-i {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 12px; border-radius: 10px;
  font-size: 14px; color: var(--ink2); text-align: left; transition: .15s; margin-bottom: 3px;
}
.nav-i svg { width: 18.5px; height: 18.5px; flex: none; color: #96A2AE; }
.nav-i:focus, .nav-i:focus-visible { outline: none; }
.nav-i:hover { background: #F4F6F8; color: var(--ink); }
.nav-i.on {
  background: var(--accent-soft); color: var(--accent); font-weight: 600;
  box-shadow: inset 3px 0 0 var(--accent);
}
.nav-i.on svg { color: var(--accent); }
.nav-i .nbadge { margin-left: auto; font-size: 11.5px; background: #F1F3F5; color: var(--muted); border-radius: 10px; padding: 2px 7px; }
.nav-i.on .nbadge { background: #fff; color: var(--accent); box-shadow: 0 1px 3px rgba(16,24,32,.08); }
.nav-i .dash { width: 18.5px; height: 18.5px; flex: none; }

.side-foot { border-top: 1px solid var(--line2); padding: 10px; }
.side-user { display: flex; align-items: center; gap: 9px; padding: 8px 10px; font-size: 13px; color: var(--ink2); }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.side-user .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-i.quit { color: var(--muted); }
.nav-i.quit:hover { background: var(--danger-soft); color: var(--danger); }
.nav-i.quit:hover svg { color: var(--danger); }

.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.main-head { height: 56px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center;
  gap: 10px; padding: 0 20px; position: sticky; top: 0; z-index: 15; }
.main-head h1 { font-size: 14px; font-weight: 650; }
.main-head .sub { font-size: 11px; color: var(--muted); }
.main-head .spacer { flex: 1; }
.content { padding: 16px 20px 44px; width: 100%; max-width: 1180px; box-sizing: border-box; }

.views { display: none; }
.views.on { display: block; }

/* 域名页 */
.dom-line { display: flex; align-items: center; gap: 8px; }
.dom-input { flex: 1; }
.dom-card { padding: 16px; display: grid; gap: 12px; }
.dom-row { display: flex; gap: 8px; align-items: flex-start; }
.dom-row .field { flex: 1; }
.dom-note { font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.dom-host { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.copy-btn { font-size: 11px; color: var(--accent); border: 1px solid #CFE1FA; background: #F7FBFF;
  border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.copy-btn:hover { background: var(--accent-soft); }

@media (max-width: 1100px) {
  .kpi-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .side { width: 100%; height: auto; position: static; border-right: none; border-bottom: 1px solid var(--line); }
  .side-brand, .side-foot, .side-group { display: none; }
  .side-nav { display: flex; flex-wrap: wrap; padding: 8px; overflow: visible; }
  .nav-i { width: auto; }
  .main-head { position: static; }
  .content { padding: 12px 12px 32px; }
}





/* =====================================================================
   字号与手机适配（2026-11-23）
   桌面整体放大一档；窄屏导航变顶部横条，表格变卡片
   ===================================================================== */
body { font-size: 14.5px; }
button, input, select, textarea { font-size: 14px; }
.btn { height: 36px; font-size: 13.5px; padding: 0 14px; }
.logo-name { font-size: 16px; }
.logo-name em { font-size: 12px; }
.top-nav a, .top-nav button.navbtn { font-size: 14px; padding: 8px 12px; }
.meta-line { font-size: 13px; gap: 8px; }
.panel-head h2 { font-size: 15.5px; }
.panel-head .cnt { font-size: 12.5px; }
.panel-foot { font-size: 12.5px; }
thead th { font-size: 12.5px; padding: 10px 12px; }
tbody td { font-size: 13.5px; padding: 11px 12px; }
.code-name { font-size: 14.5px; }
.code-entry { font-size: 12.5px; }
.url-txt { font-size: 13px; }
.lchip { font-size: 11.5px; }
.mode-tag { font-size: 12px; }
.time-cell { font-size: 12.5px; }
.count-cell b { font-size: 17px; }
.count-cell span, .today-cell { font-size: 12px; }
.st { font-size: 12.5px; }
.op { font-size: 13.5px; padding: 5px 7px; }
.field > label { font-size: 12.5px; }
.inp { font-size: 14px; padding: 8px 11px; }
.inp.mono { font-size: 13.5px; }
.block-t { font-size: 12.5px; }
.block-t .tip { font-size: 11.5px; }
.mode .mt { font-size: 13.5px; }
.mode .md { font-size: 12px; }
.log-i { font-size: 12.5px; }
.side-brand .nm { font-size: 17px; }
.side-brand .sb { font-size: 13px; }
.side-brand .uid { font-size: 11px; }
.side-group { font-size: 12px; }
.nav-i { font-size: 15.5px; padding: 12px 12px; }
.side-user { font-size: 14px; }
.avatar { width: 30px; height: 30px; font-size: 13px; }
.main-head { height: 60px; }
.main-head h1 { font-size: 16.5px; }
.main-head .sub { font-size: 12.5px; }
.content { padding: 18px 24px 48px; max-width: 1280px; }
.kpi .k { font-size: 12.5px; }
.kpi .v { font-size: 27px; }
.kpi .s { font-size: 12px; }
.auth-card h1 { font-size: 19px; }
.auth-card .sub { font-size: 13px; }
.auth-card .inp { height: 42px; }
.auth-tabs button { height: 34px; font-size: 13.5px; }
.auth-card .btn-primary { height: 44px; font-size: 15px; }
.modal h4 { font-size: 16px; }
.modal p { font-size: 13px; }
.toast { font-size: 13.5px; padding: 10px 16px; }
.dhead h3 { font-size: 16px; }
.dhead .sub { font-size: 12px; }
.dhead .x { width: 32px; height: 32px; }
.block-t .tip { line-height: 1.4; }
.drawer { width: 500px; }
.cfbox { width: 500px; }

@media (max-width: 820px) {
  body { font-size: 15px; }

  /* 左侧导航 -> 顶部横向标签 */
  .shell { display: block; }
  .side {
    width: 100%; height: auto; position: sticky; top: 0;
    border-right: 0; border-bottom: 1px solid var(--line); z-index: 20;
    flex-direction: column;
  }
  .side-brand { display: flex; padding: 10px 14px 4px; border-bottom: 0; }
  .side-brand .logo-mark { width: 30px; height: 30px; border-radius: 8px; }
  .side-brand .nm { font-size: 16.5px; }
  .side-brand .sb { font-size: 12px; margin-top: 1px; }
  .side-nav {
    display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto;
    padding: 4px 12px 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-group, .side-foot { display: none; }
  .nav-i {
    width: auto; flex: 0 0 auto; margin: 0; padding: 9px 13px;
    font-size: 14.5px; gap: 7px; border-radius: 10px; white-space: nowrap;
    box-shadow: none !important;
  }
  .nav-i svg { width: 17px; height: 17px; }
  .nav-i.on { background: var(--accent-soft); box-shadow: none !important; }
  .main-head { height: auto; padding: 10px 14px; position: static; gap: 8px; }
  .main-head h1 { font-size: 17px; }
  .main-head .sub { display: none; }
  .main-head .btn { height: 34px; padding: 0 12px; font-size: 13px; }
  .content { padding: 12px 12px 40px; max-width: none; }

  .meta-line { font-size: 13px; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

  /* 面板：头部和脚变独立白卡，表格区拆成卡片 */
  .panel { background: transparent; border: 0; border-radius: 0; overflow: visible; }
  .panel-head {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 12px 14px; margin-bottom: 10px; flex-wrap: wrap; gap: 6px;
  }
  .panel-head h2 { font-size: 16px; }
  .panel-head .right { margin-left: 0; width: 100%; }
  .panel-head .right span { font-size: 12.5px !important; }
  .panel-foot {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    margin-top: 10px; padding: 11px 14px; font-size: 12.5px; line-height: 1.6;
  }

  table { display: block; width: 100%; table-layout: auto !important; }
  colgroup, thead, th { display: none !important; }
  tbody { display: block; }
  tbody tr {
    display: block; background: #fff; border: 1px solid var(--line);
    border-radius: 12px; padding: 2px 14px; margin-bottom: 10px;
  }
  tbody tr:hover { background: #fff; }
  tbody td {
    display: flex; align-items: flex-start; gap: 12px; width: 100% !important;
    padding: 10px 0; border-bottom: 1px dashed var(--line2);
    font-size: 14.5px; line-height: 1.5; word-break: break-word;
  }
  tbody td:last-child { border-bottom: 0; }
  tbody td::before {
    content: attr(data-label); flex: 0 0 82px; color: var(--muted);
    font-size: 12.5px; font-weight: 600; padding-top: 2px; line-height: 1.4;
  }
  tbody td[data-empty] { display: none; }
  tbody td > * { min-width: 0; }
  tbody tr.host-sum-row {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
    gap: 9px 14px; padding: 12px 14px; margin-bottom: 10px;
  }
  tbody tr.host-sum-row td {
    display: inline-flex; align-items: baseline; width: auto !important; gap: 6px;
    padding: 0; border: 0; font-size: 12px; line-height: 1.4;
  }
  tbody tr.host-sum-row td::before { flex: 0 0 auto; padding-top: 0; font-size: 12px; }
  tbody tr.host-sum-row td:first-child::before { display: none; }
  tbody tr.host-sum-row td.hs-empty { display: none; }
  tbody tr.host-sum-row td b { font-size: 16px; }
  tbody tr.host-sum-row td .cutpick { font-size: 12px; }
  .ops { flex-wrap: wrap; gap: 4px; }
  .op { font-size: 14px; padding: 6px 9px; background: #F4F7FB; border-radius: 7px; }
  .op.gray { background: #F4F6F8; }
  .op.red { background: var(--danger-soft); }
  .ops .divider { display: none; }
  .url-txt, .code-entry { white-space: normal; }
  .lchips { max-width: none; }
  .lchip { max-width: 100%; }

  /* 表单：单列，输入框加大，避免 iOS 聚焦缩放 */
  .row2 { grid-template-columns: 1fr; }
  .inp { font-size: 16px; padding: 10px 12px; height: auto; }
  .inp.mono { font-size: 15px; }
  .field > label { font-size: 13.5px; }
  .btn { height: 42px; font-size: 15px; }
  .mini-btn { font-size: 13.5px; padding: 8px 12px; }
  .switch { width: 42px; height: 24px; }
  .switch::after { width: 18px; height: 18px; }
  .switch.on::after { left: 21px; }
  .mode { padding: 12px 12px; }
  .mode .mt { font-size: 14.5px; }
  .mode .md { font-size: 12.5px; }
  .imgrow { flex-wrap: wrap; }

  /* 抽屉 / 弹窗全屏 */
  .drawer { width: 100%; max-width: 100%; }
  .cfbox {
    left: 0; top: 0; transform: none; width: 100%; max-width: 100%;
    height: 100%; max-height: 100%; border-radius: 0;
  }
  .dbody { padding: 0 14px 18px; }
  .dhead { padding: 12px 14px; position: sticky; top: 0; background: #fff; z-index: 2; }
  .dfoot { position: sticky; bottom: 0; background: #fff; padding: 10px 14px; }
  .dfoot .btn { height: 46px; }
  .modal { width: 100%; max-width: calc(100vw - 24px); padding: 18px 16px; }
  .modal.hip-modal { width: 100%; max-width: calc(100vw - 24px); }
  .bl-add { flex-wrap: wrap; }
  .bl-add .btn { width: 100%; }
  .modal .mfoot .btn { height: 44px; }

  .kpi-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 12px 14px; }
  .kpi .v { font-size: 24px; }
  .filters .inp, .up-search .inp { width: 100%; max-width: none; }
  .up-search { padding: 12px 14px 0; }
  .setting-grid { grid-template-columns: 1fr; }

  .auth-page { padding: 16px; }
  .auth-card { padding: 24px 20px; max-width: 100%; }
  .auth-card h1 { font-size: 20px; }
  .toast { bottom: 24px; font-size: 14px; max-width: 88vw; }
}

@media (max-width: 380px) {
  tbody td::before { flex-basis: 72px; }
  .nav-i { font-size: 14px; padding: 8px 11px; }
}

/* 手机端补丁：导航压到一屏内，避免横向溢出 */
@media (max-width: 820px) {
  body { overflow-x: hidden; }
  .side-nav { gap: 4px; padding: 2px 10px 8px; }
  .nav-i { font-size: 14px; padding: 8px 10px; gap: 6px; }
  .nav-i .nbadge { display: none; }
  .main-col { width: 100%; max-width: 100%; }
  .main-head { flex-wrap: wrap; }
  .meta-line { white-space: normal; }
  .panel-head .right { display: none; }
  .panel-head { align-items: center; }
}

@media (max-width: 820px) {
  .side-nav { flex-wrap: wrap; overflow-x: visible; row-gap: 6px; }
}

/* 手机端最终覆盖：导航一定换行，总后台加域名表单竖排 */
@media (max-width: 820px) {
  .side-nav { display: flex !important; flex-wrap: wrap !important; overflow: visible !important; }
  .nav-i { flex: 0 0 auto !important; font-size: 13.5px; padding: 7px 10px; }
  .nav-i svg { width: 16px; height: 16px; }
  .dom-row { display: flex !important; flex-direction: column; align-items: stretch; gap: 8px; }
  .dom-row .field { max-width: none !important; width: 100%; }
  .dom-row .btn { margin-top: 0 !important; width: 100%; justify-content: center; }
  .up-search .btn { width: 100%; }
}

/* 再放大一档（桌面 / 手机都要看得清） */
body { font-size: 15px; }
thead th { font-size: 13px; }
tbody td { font-size: 14.5px; }
.code-name { font-size: 15.5px; }
.code-entry { font-size: 13px; }
.url-txt { font-size: 13.5px; }
.op { font-size: 14px; }
.field > label { font-size: 13px; }
.inp { font-size: 14.5px; }
.panel-foot { font-size: 13px; }
.meta-line { font-size: 13.5px; }
.nav-i { font-size: 16px; }

@media (max-width: 820px) {
  body { font-size: 15.5px; }
  tbody td { font-size: 15.5px; }
  tbody td::before { font-size: 13px; flex-basis: 86px; }
  .nav-i { font-size: 14.5px; }
  .field > label { font-size: 14px; }
  .btn { font-size: 15.5px; }
  .op { font-size: 15px; }
  .meta-line { font-size: 13.5px; }
  .panel-foot { font-size: 13.5px; }
  .side-brand .nm { font-size: 17px; }
}

@media (max-width: 820px) {
  .dom-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
  .dom-row { display: grid !important; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
  .dom-row > .field:nth-child(1) { grid-column: 1; }
  .dom-row > .btn.btn-line { grid-column: 2; width: auto !important; height: 44px; margin: 0 !important; padding: 0 18px; }
  .dom-row > .field:nth-child(3),
  .dom-row > .field:nth-child(4),
  .dom-row > .btn.btn-primary { grid-column: 1 / -1; }
  .dom-row > .btn.btn-primary { width: 100% !important; margin: 0 !important; }
}

@media (max-width: 820px) {
  /* 站点表单全部竖排 */
  .dom-row { display: flex !important; flex-direction: column; align-items: stretch; gap: 8px; }
  .dom-row .field { max-width: none !important; width: 100%; }
  .dom-row .btn { margin-top: 0 !important; width: 100%; justify-content: center; }
  /* 只有「加短域名」保留 ID + 搜索同一行 */
  .dom-add { display: grid !important; grid-template-columns: 1fr auto; align-items: end; }
  .dom-add > .field:nth-child(1) { grid-column: 1; }
  .dom-add > .btn.btn-line { grid-column: 2; width: auto !important; height: 44px; padding: 0 18px; }
  .dom-add > .field:nth-child(3),
  .dom-add > .field:nth-child(4),
  .dom-add > .btn.btn-primary { grid-column: 1 / -1; }
}

/* 备用链接改成「跳转目标」里的一行，可直接改 */
.bak-edit { display: flex; align-items: center; gap: 5px; margin-top: 5px; }
.bak-k { flex: none; font-size: 10.5px; color: #96A0AA; }
.bak-inp {
  flex: 1; min-width: 0; font-family: var(--mono); font-size: 11.5px; color: #4A545E;
  border: 1px solid transparent; background: #F5F8FB; border-radius: 6px; padding: 3px 7px;
  transition: .15s;
}
.bak-inp::placeholder { color: #A9B3BC; font-family: var(--font); }
.bak-inp:focus { border-color: #8DBBF3; background: #fff; box-shadow: 0 0 0 2px rgba(11,114,231,.08); }

@media (max-width: 820px) {
  .bak-edit { margin-top: 8px; gap: 7px; }
  .bak-k { font-size: 12.5px; }
  .bak-inp { font-size: 16px; padding: 8px 10px; border-color: #E6E9EC; background: #fff; }
}

.tg-cell { min-width: 0; width: 100%; }
@media (max-width: 820px) {
  .tg-cell { width: 100%; }
  .tg-cell .url-txt { white-space: normal; word-break: break-all; }
  .bak-edit { display: flex; width: 100%; }
  .bak-inp { width: 100%; }
}

.tg-cell { flex: 1; min-width: 0; }

@media (max-width: 820px) {
  .tg-cell { flex: 1 1 auto !important; width: auto !important; }
  .bak-edit { width: auto !important; }
  .bak-inp { flex: 1 1 auto; width: auto; }
}

@media (max-width: 820px) {
  tbody td.tg-td { display: block; }
  tbody td.tg-td::before { display: block; flex: none; margin-bottom: 6px; padding-top: 0; }
}

/* 短域名列表：配置 / 停用 / 删除 竖排，省出横向空间 */
#lnBody .ops { flex-direction: column; align-items: flex-start; gap: 1px; }
#lnBody .ops .divider { display: none; }
#lnBody .op { padding: 2px 4px; line-height: 1.65; }
@media (max-width: 820px) {
  #lnBody .ops { flex-direction: column; align-items: flex-start; gap: 4px; }
  #lnBody .op { width: auto; }
}

#lnBody .op { line-height: 1.35; padding: 1px 4px; }
#lnBody .ops { gap: 0; }

/* 备用链接收成一行文字，点一下就能改，不再做成一个输入框 */
.bak-inp {
  background: transparent; border: 0; border-bottom: 1px dashed transparent;
  border-radius: 0; padding: 1px 0; color: #7E8892; font-size: 12.5px;
  box-shadow: none;
}
.bak-inp:hover { border-bottom-color: #C9D2DB; color: #4A545E; }
.bak-inp:focus { background: #fff; border-bottom-color: #8DBBF3; box-shadow: none; color: #1B2126; }
.bak-inp::placeholder { color: #AEB7C0; }
@media (max-width: 820px) {
  .bak-inp { font-size: 15px; padding: 2px 0; border-bottom-color: #DDE3E9; }
  .bak-k { font-size: 12px; color: #96A0AA; }
}

/* 跳转目标：主链接直接可改，右边一个「保存」 */
.tg-main { display: flex; align-items: center; gap: 6px; }
.url-inp {
  flex: 1; min-width: 0; height: 30px; border: 1px solid var(--line); border-radius: 6px;
  padding: 0 8px; font-size: 12.5px; color: #33404D; background: #fff;
}
.url-inp:focus { border-color: #8DBBF3; box-shadow: 0 0 0 2px rgba(11,114,231,.08); }
.url-inp::placeholder { color: #AEB7C0; font-family: var(--font); }
.save-mini {
  flex: none; height: 30px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 600;
  color: var(--accent); background: #F7FBFF; border: 1px solid #CFE1FA;
}
.save-mini:hover { background: var(--accent-soft); }
.save-mini:disabled { opacity: .55; cursor: default; }
@media (max-width: 820px) {
  .url-inp { font-size: 16px; height: 42px; padding: 0 10px; }
  .save-mini { height: 42px; padding: 0 14px; font-size: 14px; }
}

/* 主链接只显示到域名那么长，超出部分在框内裁掉；备用也给它一个框 */
.tg-main { display: flex; align-items: center; gap: 6px; }
.url-inp {
  flex: none !important; width: 212px !important; min-width: 0;
  height: 30px; border: 1px solid var(--line); border-radius: 6px;
  padding: 0 8px; font-size: 12.5px; color: #33404D; background: #fff;
}
.bak-edit { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.bak-inp {
  flex: 1 1 auto !important; width: auto; max-width: 182px;
  height: 30px; border: 1px solid var(--line) !important; border-radius: 6px;
  background: #fff; padding: 0 8px; font-size: 12.5px; color: #33404D;
  box-shadow: none;
}
.bak-inp:hover { border-color: #D3DCE5; color: #33404D; }
.bak-inp:focus { border-color: #8DBBF3; box-shadow: 0 0 0 2px rgba(11,114,231,.08); background: #fff; }
.bak-inp::placeholder { color: #AEB7C0; font-family: var(--font); }

@media (max-width: 820px) {
  .url-inp { width: 210px !important; height: 42px; font-size: 16px; padding: 0 10px; }
  .bak-edit { margin-top: 8px; gap: 8px; }
  .bak-k { font-size: 12px; }
  .bak-inp {
    flex: 1 1 auto !important; width: auto !important; max-width: none;
    height: 42px; font-size: 16px; padding: 0 10px;
  }
  /* 手机上三个操作改回横排 */
  #lnBody .ops { flex-direction: row !important; align-items: center; gap: 8px; }
  #lnBody .op { padding: 6px 10px; line-height: 1.2; width: auto; }
}

/* 跳转目标：主链接和备用上下两行同宽、右边缘对齐 */
.tg-cell { max-width: 266px; }
.tg-main { width: 100%; }
.url-inp { flex: 1 1 auto !important; width: auto !important; max-width: none !important; }
.bak-edit { width: 100%; }
.bak-inp { flex: 1 1 auto !important; width: auto !important; max-width: none !important; }
@media (max-width: 820px) {
  .tg-cell { max-width: none; }
}

/* 跳转目标重排：主链接一行、备用一行，两行等宽右对齐，备用标签放进框里 */
.tg-cell { display: grid !important; grid-template-columns: 1fr; width: 100% !important; max-width: 266px; }
.tg-main { display: grid !important; grid-template-columns: 1fr auto; width: 100%; gap: 6px; align-items: center; }
.tg-main .url-inp { width: 100% !important; min-width: 0; }
.bak-edit { position: relative; display: block; width: 100%; margin-top: 6px; }
.bak-edit .bak-k { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); pointer-events: none; z-index: 1; }
.bak-inp { width: 100% !important; max-width: none !important; padding-left: 38px !important; }
@media (max-width: 820px) {
  .tg-cell { max-width: none; }
  .tg-main .url-inp { height: 42px; font-size: 16px; }
  .bak-edit { margin-top: 8px; }
  .bak-edit .bak-k { left: 10px; font-size: 12px; }
  .bak-inp { height: 42px; font-size: 16px; padding-left: 44px !important; }
}

/* 状态栏与操作栏之间：单独的「清空点击」列 */
.st { white-space: nowrap; }
.clr-btn { font-size: 13px; color: #5C6A78; padding: 4px 7px; border-radius: 5px; white-space: nowrap; }
.clr-btn:hover { background: #F2F5F8; color: var(--accent); }
@media (max-width: 820px) {
  .clr-btn { font-size: 14px; padding: 6px 10px; background: #F4F6F8; border-radius: 7px; }
}

/* 状态与清空点击之间：查看 IP */
.ip-btn { font-size: 13px; color: var(--accent); padding: 4px 7px; border-radius: 5px; white-space: nowrap; }
.ip-btn:hover { background: var(--accent-soft); }
.ip-sum { font-size: 11.5px; color: #7E8892; padding: 8px 0 4px; }
.ip-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.ip-addr { font-family: var(--mono); font-size: 12.5px; color: #1B2126; }
.ip-meta { flex: none; font-size: 11px; color: #96A0AA; }
.ip-empty { padding: 28px 0; text-align: center; font-size: 13px; color: #8A949E; }
@media (max-width: 820px) {
  .ip-btn { font-size: 14px; padding: 6px 10px; background: #F4F7FB; border-radius: 7px; }
  .ip-sum { font-size: 12.5px; }
  .ip-addr { font-size: 15px; }
  .ip-meta { font-size: 12px; }
  .ip-empty { font-size: 14px; }
}

/* IP 列表：IP 下显示设备明细 */
.ip-main { min-width: 0; flex: 1; }
.ip-dev { font-size: 11px; color: #7E8892; margin-top: 3px; line-height: 1.35; word-break: break-word; }
.ip-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 11px; color: #96A0AA; }
.ip-meta b { font-size: 11.5px; font-weight: 600; color: #5C6A78; }
@media (max-width: 820px) {
  .ip-dev { font-size: 12.5px; margin-top: 4px; }
  .ip-meta { font-size: 12px; }
  .ip-meta b { font-size: 12.5px; }
}

/* IP 栏：查看IP / 清空IP 两行对应 */
.ip-ops { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.ip-ops .ip-btn, .ip-ops .ip-clr { font-size: 12.5px; padding: 2px 3px; line-height: 1.45; white-space: nowrap; }
.ip-clr { color: #8A949E; border-radius: 5px; }
.ip-clr:hover { background: #F4F6F8; color: var(--danger); }
@media (max-width: 820px) {
  .ip-ops { gap: 3px; }
  .ip-ops .ip-btn, .ip-ops .ip-clr { font-size: 14px; padding: 6px 10px; border-radius: 7px; background: #F4F7FB; }
  .ip-ops .ip-clr { background: #F4F6F8; }
}

/* 跳转链接自检：失效标红 + 红点 */
.url-field { display: flex; align-items: center; gap: 6px; min-width: 0; width: 100%; }
.url-field .url-inp { flex: 1 1 auto; width: auto !important; min-width: 0; }
.dead-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #E5484D; visibility: hidden; box-shadow: 0 0 0 2px #FDE8E8; }
.dead-dot.on { visibility: visible; animation: deadPulse 1.6s ease-in-out infinite; }
@keyframes deadPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.url-inp.dead { border-color: #F0BDBD !important; color: #C0362C !important; background: #FFF8F8 !important; }
.bak-inp.dead { border-color: #F0BDBD !important; color: #C0362C !important; background: #FFF8F8 !important; }
.dead-name { color: #C0362C; }
@media (max-width: 820px) {
  .dead-dot { width: 8px; height: 8px; }
}

/* 主链失效但已切备用：只提示，不算整个短域名失效 */
.link-note { margin-top: 4px; font-size: 10.5px; line-height: 1.35; color: #C0362C; }
@media (max-width: 820px) {
  .link-note { margin-top: 6px; font-size: 12px; }
}

/* 停用/启用改成操作后面单独一列的开关 */
.switch {
  position: relative; display: inline-block; width: 38px; height: 20px; border-radius: 999px;
  background: #D6DDE5; border: 0; padding: 0; transition: background .18s; vertical-align: middle;
}
.switch i {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(16,24,32,.18); transition: left .18s;
}
.switch.on { background: #22A06B; }
.switch.on i { left: 20px; }
.switch:hover { filter: brightness(.97); }
@media (max-width: 820px) {
  .switch { width: 46px; height: 26px; }
  .switch i { width: 20px; height: 20px; top: 3px; left: 3px; }
  .switch.on i { left: 23px; }
}

/* 去重列：同一台设备只计 1 次点击 */
.dd { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.dd-sw {
  position: relative; display: inline-block; width: 32px; height: 17px; border-radius: 999px;
  background: #D6DDE5; border: 0; padding: 0; transition: background .18s; cursor: pointer;
}
.dd-sw i {
  position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(16,24,32,.18); transition: left .18s;
}
.dd-sw.on { background: #22A06B; }
.dd-sw.on i { left: 17px; }
.dd-txt { font-size: 10.5px; color: #8A949E; }
.dd-sw.on + .dd-txt { color: #1D8A5C; }
@media (max-width: 820px) {
  .dd { gap: 6px; }
  .dd-sw { width: 40px; height: 22px; }
  .dd-sw i { width: 16px; height: 16px; top: 3px; left: 3px; }
  .dd-sw.on i { left: 21px; }
  .dd-txt { font-size: 12px; }
}

/* 用户端：联系管理员（只读） */
.ct-card {
  background: #F7F9FC; border: 1px solid #E5EBF2; border-radius: 12px;
  padding: 16px 16px 14px;
}
.ct-k { font-size: 12px; color: #818B95; margin-bottom: 8px; }
.ct-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ct-val { font-size: 18px; font-weight: 600; color: #0F1620; word-break: break-all; line-height: 1.4; }
.ct-copy {
  border: 1px solid #DCE6F0; background: #fff; color: #0B72E7;
  border-radius: 7px; padding: 4px 10px; font-size: 12px; cursor: pointer;
}
.ct-copy:hover { background: #EFF6FF; }
.ct-open {
  display: inline-block; margin-top: 12px; background: #0B72E7; color: #fff;
  border-radius: 9px; padding: 9px 14px; font-size: 13px; font-weight: 600;
}
.ct-open:hover { background: #0966CE; }
.ct-tip { margin-top: 12px; font-size: 12.5px; color: #8A6413; background: #FFF8E8; border-radius: 8px; padding: 9px 11px; line-height: 1.6; }
.ct-note { margin-top: 12px; font-size: 11.5px; color: #98A2AC; }
.ct-empty { padding: 26px 8px; text-align: center; font-size: 14px; color: #5C6A78; line-height: 1.8; }
.ct-empty span { font-size: 12px; color: #98A2AC; }
@media (max-width: 820px) {
  .ct-card { padding: 16px; }
  .ct-val { font-size: 20px; }
  .ct-copy { font-size: 13px; padding: 6px 12px; }
  .ct-open { display: block; text-align: center; padding: 12px 14px; font-size: 14px; }
  #ctBox {
    left: 50%; top: 50%; transform: translate(-50%,-50%);
    width: calc(100vw - 32px); max-width: 400px; height: auto; max-height: 78vh;
    border-radius: 14px;
  }
}

/* 顶部：居中的大标题 + 统计 */
.main-head.hero {
  height: auto; min-height: 104px; padding: 16px 76px 14px;
  flex-direction: column; justify-content: center; gap: 0;
}
.head-center { text-align: center; min-width: 0; }
.main-head.hero h1 { font-size: 30px; font-weight: 700; letter-spacing: .5px; line-height: 1.15; }
.head-meta {
  display: flex; justify-content: center; flex-wrap: wrap; row-gap: 4px;
  margin: 9px 0 0; font-size: 12.5px; color: var(--muted);
}
.head-meta b { color: var(--ink); font-weight: 600; }
.head-refresh { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 820px) {
  .main-head.hero { min-height: 0; padding: 14px 58px 11px; position: relative; top: auto; }
  .main-head.hero h1 { font-size: 23px; letter-spacing: 0; }
  .head-meta { font-size: 12px; gap: 6px 10px; margin-top: 7px; line-height: 1.45; }
  .head-meta .dot { display: none; }
  .head-refresh { right: 12px; top: 14px; transform: none; height: 32px; padding: 0 10px; font-size: 12.5px; }
}

/* ============ 用户端美化（只作用于 uapp，不影响总后台） ============ */
body.uapp {
  background:
    radial-gradient(720px 420px at 0% 0%, #E9F3FF 0%, rgba(233,243,255,0) 68%),
    radial-gradient(660px 420px at 100% 4%, #E8FAF5 0%, rgba(232,250,245,0) 68%),
    #F3F6FB;
}
body.uapp .side {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FBFF 100%);
  border-right-color: #E3EAF4;
}
body.uapp .side-brand {
  background: linear-gradient(135deg, #F4F9FF 0%, #EFFBF8 100%);
}
body.uapp .side-brand .logo-mark {
  background: linear-gradient(135deg, #0B72E7 0%, #13B2A3 100%);
  box-shadow: 0 5px 14px -7px rgba(11,114,231,.55);
}
body.uapp .nav-i.on {
  background: linear-gradient(135deg, #E9F2FF 0%, #EAFBF6 100%);
  box-shadow: inset 3px 0 0 #0B72E7;
}
body.uapp .side-user .avatar {
  background: linear-gradient(135deg, #DCEEFF, #DDF8EF);
  color: #0B63C8;
}

/* 顶部彩色横幅 */
body.uapp .main-head.hero {
  background: linear-gradient(120deg, #0A68D8 0%, #2F86F6 48%, #12B3A2 100%);
  border-bottom: 0;
  box-shadow: 0 10px 28px -16px rgba(11,95,200,.55);
}
body.uapp .main-head.hero h1 {
  color: #fff;
  text-shadow: 0 2px 14px rgba(5,45,95,.28);
}
body.uapp .main-head.hero h1::after {
  content: ""; display: block; width: 46px; height: 3px; margin: 9px auto 0;
  border-radius: 3px; background: linear-gradient(90deg, #fff, #BFF7EC);
  opacity: .9;
}
body.uapp .head-meta {
  gap: 8px; margin-top: 10px;
}
body.uapp .head-meta span {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  color: rgba(255,255,255,.88); background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
}
body.uapp .head-meta b { color: #fff; font-weight: 700; }
body.uapp .head-meta .dot { display: none; }
body.uapp .head-refresh {
  background: rgba(255,255,255,.94); color: #0B63C8; border: 0;
  box-shadow: 0 4px 14px -7px rgba(2,42,92,.4);
}
body.uapp .head-refresh:hover { background: #fff; color: #0957B1; }

/* 列表卡片 */
body.uapp .panel {
  background: rgba(255,255,255,.94);
  border-color: #E1EAF5;
  border-radius: 14px;
  box-shadow: 0 14px 36px -28px rgba(15,50,95,.42);
}
body.uapp .panel-head {
  background: linear-gradient(90deg, #F3F8FF 0%, #FFFFFF 56%, #F2FCF8 100%);
  border-bottom-color: #EAF1F9;
}
body.uapp .panel-head h2 { color: #0C3A68; }
body.uapp .panel-head .cnt { background: #E7F1FF; color: #0B63C8; }
body.uapp thead th {
  background: #EFF5FC;
  color: #5E728B;
  border-bottom-color: #E6EEF8;
}
body.uapp tbody tr:nth-child(even) { background: rgba(247,251,255,.6); }
body.uapp tbody tr:hover { background: #F3F9FF; }
body.uapp .code-name:not(.dead-name) { color: #10314F; }
body.uapp .code-entry span { color: #2C7BE0; }
body.uapp #lnBody .count-cell b { color: #0B63C8; }
body.uapp #lnBody .st {
  padding: 3px 8px; border-radius: 999px; font-weight: 600;
}
body.uapp #lnBody .st.run { background: #E6F8EE; }
body.uapp #lnBody .st.paused { background: #F1F4F8; }
body.uapp #lnBody .st.end { background: #FDECEC; }
body.uapp .panel-foot {
  background: linear-gradient(90deg, #FAFCFF, #F8FDFB);
  color: #6E8195;
  border-top: 1px solid #EFF4FA;
}
body.uapp .save-mini {
  background: #EAF3FF; border-color: #CFE1FA; color: #0B63C8;
}
body.uapp .save-mini:hover { background: #DCECFF; }

@media (max-width: 820px) {
  body.uapp .head-meta span { padding: 2px 8px; font-size: 11.5px; }
  body.uapp .main-head.hero h1::after { width: 38px; margin-top: 7px; }
  body.uapp .panel { border-radius: 12px; }
}

/* 「跳转目标」这几个字往右挪，和下面输入框对齐 */
body.uapp thead th:nth-child(3) { padding-left: 23px; }

/* ============ 登录页：短域名大标题 + 放大美化 ============ */
.login-top { padding: 16px 22px; z-index: 10; }
.login-top .logo-mark {
  width: 27px; height: 27px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, #0B72E7 0%, #13B2A3 100%);
}
.login-top .logo-mark svg { width: 15px; height: 15px; }
.login-mini {
  font-size: 15px; font-weight: 750; letter-spacing: .6px;
  color: #0B4C8F;
}
.auth-page {
  position: relative;
  background:
    radial-gradient(760px 460px at 8% 0%, rgba(47,134,246,.20) 0%, rgba(47,134,246,0) 62%),
    radial-gradient(720px 460px at 96% 100%, rgba(19,178,163,.18) 0%, rgba(19,178,163,0) 62%),
    linear-gradient(155deg, #F2F7FF 0%, #FAFBFD 52%, #F0FBF7 100%);
}
.auth-card {
  max-width: 408px;
  padding: 38px 34px 32px;
  border-radius: 22px;
  border: 1px solid rgba(207,224,244,.9);
  box-shadow:
    0 30px 70px -32px rgba(16,52,100,.34),
    0 2px 8px rgba(23,63,115,.04);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, #0B72E7 0%, #2F9BF2 46%, #13B2A3 100%);
}
.auth-card .brand-row {
  gap: 15px; margin-bottom: 26px; align-items: center;
}
.auth-card .brand-row .logo-mark {
  width: 48px; height: 48px; border-radius: 14px; flex: none;
  background: linear-gradient(135deg, #0B72E7 0%, #13B2A3 100%);
  box-shadow: 0 10px 22px -10px rgba(11,114,231,.65);
}
.auth-card .brand-row .logo-mark svg { width: 26px; height: 26px; }
.auth-card h1 {
  font-size: 33px; font-weight: 800; line-height: 1.06; letter-spacing: 1.8px;
  background: linear-gradient(105deg, #0A4F9E 0%, #0B72E7 45%, #0FAE9E 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-card h1::after {
  content: ""; display: block; width: 38px; height: 3px; margin-top: 9px;
  border-radius: 3px;
  background: linear-gradient(90deg, #0B72E7, #13B2A3);
}
.auth-card .sub {
  font-size: 12.5px; color: #66798F; margin-top: 7px; letter-spacing: .2px;
}
.auth-tabs { padding: 4px; border-radius: 11px; margin-bottom: 18px; }
.auth-tabs button { height: 34px; border-radius: 8px; font-size: 13px; }
.auth-card .inp { height: 43px; border-radius: 10px; }
.auth-card .btn-primary {
  height: 45px; border-radius: 11px; font-size: 14.5px; margin-top: 18px;
  background: linear-gradient(100deg, #0B72E7 0%, #1F8BEF 52%, #13B2A3 100%);
  border: 0;
  box-shadow: 0 10px 20px -12px rgba(11,114,231,.7);
}
.auth-card .btn-primary:hover { filter: brightness(1.04); }
.auth-card .btn-line { height: 42px; border-radius: 10px; }
.pwd-wrap { position: relative; }
.pwd-wrap .inp { width: 100%; padding-right: 58px; }
.pwd-eye {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  height: 31px; padding: 0 9px; border-radius: 7px;
  font-size: 11.5px; font-weight: 600; color: #72849A; background: transparent;
  transition: .15s;
}
.pwd-eye:hover { background: #F0F5FB; color: #0B63C8; }
.pwd-eye.on { color: #0B63C8; background: #EAF3FF; }
.auth-foot { font-size: 12px; }
.login-note { font-size: 11.5px; }
@media (max-width: 520px) {
  .login-top { padding: 13px 16px; }
  .auth-page { padding: 18px 14px; }
  .auth-card { padding: 30px 22px 26px; border-radius: 18px; }
  .auth-card .brand-row { gap: 12px; }
  .auth-card .brand-row .logo-mark { width: 42px; height: 42px; border-radius: 12px; }
  .auth-card .brand-row .logo-mark svg { width: 23px; height: 23px; }
  .auth-card h1 { font-size: 29px; letter-spacing: 1.2px; }
}

/* ============ 起点招牌 Logo ============ */
.logo-sign {
  display: inline-grid; place-items: center; flex: none;
  width: 28px; height: 42px; border-radius: 7px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 6px 5px, #F3D48B 0 1px, rgba(255,225,155,.55) 1.5px, rgba(255,225,155,0) 2.2px),
    radial-gradient(circle at calc(100% - 6px) 5px, #F3D48B 0 1px, rgba(255,225,155,.55) 1.5px, rgba(255,225,155,0) 2.2px),
    radial-gradient(circle at 6px calc(100% - 5px), #F3D48B 0 1px, rgba(255,225,155,.45) 1.5px, rgba(255,225,155,0) 2.2px),
    radial-gradient(circle at calc(100% - 6px) calc(100% - 5px), #F3D48B 0 1px, rgba(255,225,155,.45) 1.5px, rgba(255,225,155,0) 2.2px),
    linear-gradient(145deg, #08284C 0%, #0B4E92 52%, #0C7EAE 100%);
  border: 1px solid rgba(236,202,124,.92);
  box-shadow:
    0 5px 12px -6px rgba(4,30,70,.55),
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 0 0 2px rgba(255,255,255,.055),
    inset 0 -3px 7px rgba(1,18,45,.25);
}
.logo-sign::before {
  content: ""; position: absolute; left: 5px; right: 5px; top: 4px; height: 1px;
  background: linear-gradient(90deg, rgba(255,226,158,0), rgba(255,235,186,.8), rgba(255,226,158,0));
}
.logo-sign::after {
  content: ""; position: absolute; left: 5px; right: 5px; bottom: 4px; height: 1px;
  background: linear-gradient(90deg, rgba(255,226,158,0), rgba(255,225,155,.5), rgba(255,226,158,0));
}
.logo-sign b {
  position: relative; z-index: 1;
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: "STXingkai", "华文行楷", "LiSu", "隶书", "STKaiti", "KaiTi", serif;
  font-size: 13px; font-weight: 400; line-height: 1; letter-spacing: 1px;
  background: linear-gradient(180deg, #FFFDF2 0%, #FFEDB9 42%, #E9C46E 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(58,34,5,.75)) drop-shadow(0 0 7px rgba(255,222,142,.28));
}
.side-brand .logo-sign { width: 37px; height: 52px; border-radius: 8px; }
.side-brand .logo-sign b { font-size: 17px; letter-spacing: 2px; }
.side-brand .sb { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 4px; }
.side-brand .sb .wt {
  font-size: 13.5px; font-weight: 700; color: #20364F; letter-spacing: .3px;
  line-height: 1.2; white-space: nowrap;
}
body.uapp .side-brand .brand-txt { align-self: flex-start; margin-top: -3px; }
body.uapp .side-brand .uid {
  font-size: 11px; font-weight: 700; padding: 2px 8px;
  color: #0A56A8; background: linear-gradient(135deg, #E9F3FF 0%, #E6FAF5 100%);
  border-color: #BFDEFA;
  box-shadow: 0 3px 8px -6px rgba(11,95,200,.55);
}
.login-top .logo-sign { width: 28px; height: 42px; border-radius: 7px; }
.login-top .logo-sign b { font-size: 12.5px; letter-spacing: 1px; }
.auth-card .brand-row .logo-sign { width: 58px; height: 88px; border-radius: 12px; }
.auth-card .brand-row .logo-sign::before { left: 7px; right: 7px; top: 5px; }
.auth-card .brand-row .logo-sign::after { left: 7px; right: 7px; bottom: 5px; }
.auth-card .brand-row .logo-sign b { font-size: 30px; letter-spacing: 4px; }
@media (max-width: 520px) {
  .side-brand .logo-sign { width: 34px; height: 48px; }
  .side-brand .logo-sign b { font-size: 15.5px; letter-spacing: 1.5px; }
  .auth-card .brand-row .logo-sign { width: 52px; height: 78px; border-radius: 11px; }
  .auth-card .brand-row .logo-sign b { font-size: 26px; letter-spacing: 3px; }
}

/* ============ 退出登录确认弹窗 ============ */
.qbox {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 382px; max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid #E5EEF9; border-radius: 16px;
  z-index: 41; display: none; flex-direction: column; align-items: center;
  padding: 26px 26px 22px; text-align: center;
  box-shadow: 0 30px 70px -26px rgba(15,45,85,.42), 0 3px 10px rgba(20,50,90,.05);
}
.qbox .qicon {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 14px;
  color: #D9474C;
  background: linear-gradient(145deg, #FFF3F3 0%, #FFE7E8 100%);
  border: 1px solid #F7D2D4;
  box-shadow: 0 10px 22px -14px rgba(214,60,65,.45), inset 0 1px 0 #fff;
}
.qbox .qicon svg { width: 24px; height: 24px; }
.qbox h3 { font-size: 18px; font-weight: 700; color: #17293D; letter-spacing: .2px; }
.qbox p {
  font-size: 12.5px; color: #6B7C8F; line-height: 1.75;
  margin: 9px 0 20px; padding: 0 4px;
}
.qbar { display: flex; gap: 10px; width: 100%; }
.qbar .btn { flex: 1; height: 42px; justify-content: center; border-radius: 10px; font-size: 13.5px; }
.qbar .btn:focus { outline: none; }
.qbox .btn-danger {
  background: linear-gradient(100deg, #E5484D 0%, #D63C41 100%);
  border: 0; color: #fff;
  box-shadow: 0 9px 18px -12px rgba(214,60,65,.75);
}
.qbox .btn-danger:focus {
  box-shadow: 0 0 0 3px rgba(229,72,77,.22), 0 9px 18px -12px rgba(214,60,65,.75);
}
.qbox .btn-danger:hover { background: linear-gradient(100deg, #DB3F44 0%, #C93439 100%); }
@media (max-width: 520px) {
  .qbox { width: calc(100vw - 28px); padding: 24px 20px 20px; border-radius: 15px; }
  .qbox h3 { font-size: 17px; }
  .qbar .btn { height: 46px; font-size: 15px; }
}

/* 窄桌面：不缩字号，表格改为横向滑动查看全部列 */
@media (min-width: 821px) and (max-width: 1180px) {
  .ln-scroll {
    overflow-x: auto; overflow-y: hidden;
    padding-bottom: 3px;
    scrollbar-width: thin;
    scrollbar-color: #C8D6E6 #F4F8FD;
  }
  .ln-scroll::-webkit-scrollbar { height: 8px; }
  .ln-scroll::-webkit-scrollbar-track { background: #F4F8FD; border-radius: 4px; }
  .ln-scroll::-webkit-scrollbar-thumb { background: #C8D6E6; border-radius: 4px; }
  .ln-scroll table { min-width: 1080px; }
}

/* 手机端短域名卡片：把零碎字段并成 5 行，缩短卡片高度 */
@media (max-width: 820px) {
  #lnBody tr {
    display: grid; grid-template-columns: repeat(12, minmax(0,1fr));
    column-gap: 8px; padding: 10px 14px 9px;
  }
  #lnBody td {
    display: flex !important; flex-direction: column; align-items: flex-start;
    gap: 3px; width: auto !important; padding: 7px 0; border-bottom: 0;
  }
  #lnBody td::before {
    flex: none; display: block; font-size: 11px; font-weight: 600;
    color: #93A0B0; line-height: 1.3; padding: 0; margin: 0;
  }
  #lnBody td:nth-child(1) { grid-column: 1 / -1; padding-top: 0; padding-bottom: 8px; }
  #lnBody td:nth-child(2) { grid-column: 1 / 3; }
  #lnBody td:nth-child(3) { grid-column: 3 / -1; }
  #lnBody td:nth-child(4) { grid-column: 1 / 5; }
  #lnBody td:nth-child(5) { grid-column: 5 / 9; }
  #lnBody td:nth-child(6) { grid-column: 9 / -1; }
  #lnBody td:nth-child(7) { grid-column: 1 / 6; }
  #lnBody td:nth-child(8) { grid-column: 6 / 9; }
  #lnBody td:nth-child(9) { grid-column: 9 / -1; }
  #lnBody td:nth-child(10) { grid-column: 1 / 5; }
  #lnBody td:nth-child(11) { grid-column: 5 / -1; }
  #lnBody .ip-ops { flex-direction: row; align-items: center; gap: 4px; }
  #lnBody .ip-ops .ip-btn,
  #lnBody .ip-ops .ip-clr { padding: 5px 8px; font-size: 13px; }
  #lnBody .ops { flex-direction: row !important; align-items: center; gap: 6px; }
  #lnBody .op { padding: 6px 9px; font-size: 13.5px; }
  #lnBody .time-cell { font-size: 12px; line-height: 1.35; }
  #lnBody .count-cell b { font-size: 17px; }
  #lnBody .st { font-size: 12.5px; }
  #lnBody .save-mini { padding: 0 10px; font-size: 13.5px; }
}

/* ================= 总后台专用 ================= */

/* 站点表操作按钮改成可换行的小胶囊，避免最后两列挤出面板 */
body.admin #siteBody .ops {
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 5px;
}
body.admin #siteBody .ops .divider { display: none; }
body.admin #siteBody .ops .op {
  padding: 3px 6px;
  font-size: 11px;
  border: 1px solid #DCE5EF;
  border-radius: 6px;
  background: #F8FAFD;
  line-height: 1.4;
}
body.admin #siteBody .ops .op:hover { background: #EDF4FE; border-color: #C5DAF4; }
body.admin #siteBody .ops .op.red { color: #D64545; border-color: #F0D2D2; background: #FFF9F9; }

/* 用户额度：输入框和保存按钮排在一行 */
body.admin #userBody .q-inp { vertical-align: middle; }
body.admin #userBody td:nth-child(5) { white-space: nowrap; }

/* 总后台的表格在窄桌面也横向滑动，不压字号 */
@media (min-width: 821px) and (max-width: 1180px) {
  body.admin .ln-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 3px;
    scrollbar-width: thin;
    scrollbar-color: #C8D6E6 #F4F8FD;
  }
  body.admin .ln-scroll::-webkit-scrollbar { height: 8px; }
  body.admin .ln-scroll::-webkit-scrollbar-track { background: #F4F8FD; border-radius: 4px; }
  body.admin .ln-scroll::-webkit-scrollbar-thumb { background: #C8D6E6; border-radius: 4px; }
  body.admin .ln-scroll > table { min-width: 1180px; }
}

/* 手机端总后台：导航改成 3 列网格，全部菜单一屏可见 */
@media (max-width: 820px) {
  body.admin { overflow-x: hidden; }
  body.admin .side { position: sticky; }
  body.admin .side-nav {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 4px 12px 10px;
    overflow: visible !important;
  }
  body.admin .nav-i {
    width: 100% !important;
    flex: none !important;
    justify-content: center;
    gap: 4px;
    padding: 8px 5px;
    font-size: 12.5px;
    white-space: nowrap;
  }
  body.admin .nav-i svg { width: 15px; height: 15px; flex: none; }
  body.admin .main-head { justify-content: space-between; }
  body.admin .main-head .spacer { flex: 1 1 auto; }
  body.admin .main-head .btn { flex: none; }

  /* 加短域名表单：用户 ID + 搜索一行，其余整行 */
  body.admin .dom-add {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
  }
  body.admin .dom-add .dm-uid { grid-column: 1; max-width: none !important; width: 100%; }
  body.admin .dom-add .dm-search {
    grid-column: 2;
    width: auto !important;
    height: 44px;
    margin: 0 !important;
    padding: 0 16px;
  }
  body.admin .dom-add .dm-host,
  body.admin .dom-add .dm-note,
  body.admin .dom-add .dm-add-btn {
    grid-column: 1 / -1;
    max-width: none !important;
    width: 100%;
  }
  body.admin .dom-add .dm-add-btn { margin: 0 !important; }

  /* 截流设置：手机端输入框整行，避免撑破页面 */
  body.admin #cutBar .panel-head { flex-wrap: wrap; gap: 5px; }
  body.admin #cutBar .panel-head .right { display: none; }
  body.admin #cutBar .cut-line { align-items: center; gap: 7px 6px; }
  body.admin #cutBar .cut-line-top { align-items: center; gap: 5px; }
  body.admin #cutBar .cut-label { width: 56px; }
  body.admin #cutBar #cutPct { width: 60px !important; }
  body.admin #cutBar #cutUrl,
  body.admin #cutBar #cutUrl2 {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
  }
  body.admin #cutBar .cut-save { width: 50px; min-width: 50px; padding: 0 8px; }
  body.admin #cutBar .cut-line > .btn { margin-left: 0; }
  body.admin #cutBar .now-val { word-break: break-all; }
}

@media (max-width: 360px) {
  body.admin .nav-i { font-size: 11.5px; padding: 8px 3px; }
  body.admin .nav-i svg { width: 14px; height: 14px; }
}
