/* ============================================================================
   彩昌文具 CMS · 管理端样式
   取站点品牌色：墨蓝 #1b2340 / 珊瑚 #ff5a49 / 米白 #fff7f2
   ========================================================================== */

:root {
  --ink: #1b2340;
  --ink-2: #2c3557;
  --ink-3: #5b6588;
  --coral: #ff5a49;
  --coral-dark: #e8432f;
  --coral-soft: #fff0ed;
  --paper: #fff7f2;
  --line: #eae3dd;
  --line-2: #f2ece7;
  --ok: #18a06a;
  --warn: #e39100;
  --bad: #d9463c;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(27, 35, 64, .04), 0 8px 24px rgba(27, 35, 64, .06);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

/* 有些块用了 display:grid，会盖过 UA 的 [hidden]，这里强制一下 */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--coral-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

/* ---------- 登录 ---------- */

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(900px 460px at 15% 0%, #2b3559 0%, transparent 60%),
    radial-gradient(700px 500px at 90% 100%, #40232a 0%, transparent 55%),
    var(--ink);
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 18px;
  padding: 32px 30px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

.login-card h1 {
  font-size: 19px;
  margin: 0 0 4px;
  letter-spacing: .2px;
}

.login-card p.sub {
  margin: 0 0 22px;
  color: var(--ink-3);
  font-size: 12.5px;
}

.login-card .field { margin-bottom: 14px; }

.login-card .btn-block {
  width: 100%;
  margin-top: 6px;
  padding: 11px;
  font-size: 14.5px;
}

.login-err {
  color: var(--bad);
  font-size: 12.5px;
  min-height: 18px;
  margin-top: 10px;
}

/* ---------- 骨架 ---------- */

.shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}

.side {
  background: var(--ink);
  color: #cfd6ea;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.side-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.side-logo b {
  display: block;
  color: #fff;
  font-size: 15px;
  letter-spacing: .4px;
}

.side-logo span {
  display: block;
  font-size: 11.5px;
  color: #8892b0;
  margin-top: 3px;
}

.nav { padding: 12px 10px; flex: 1; }

.nav-group { margin-bottom: 14px; }

.nav-group > em {
  display: block;
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #6d7796;
  padding: 6px 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  color: #cfd6ea;
  font-size: 13.5px;
  cursor: pointer;
  user-select: none;
  transition: background .15s, color .15s;
}

.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }

.nav-item.active {
  background: linear-gradient(90deg, rgba(255, 90, 73, .22), rgba(255, 90, 73, .06));
  color: #fff;
  box-shadow: inset 2px 0 0 var(--coral);
}

.nav-item svg.ico { width: 16px; height: 16px; flex: none; opacity: .85; }
.nav-item.active svg.ico { opacity: 1; color: #ffb3a8; }

.nav-item .count {
  margin-left: auto;
  font-size: 11px;
  color: #8892b0;
  background: rgba(255, 255, 255, .07);
  padding: 1px 6px;
  border-radius: 20px;
}

.side-foot {
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 12px;
  color: #8892b0;
}

.side-foot a { color: #cfd6ea; }

.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  background: rgba(255, 247, 242, .88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar h2 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: .2px;
}

.topbar .crumb {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: -2px;
}

.topbar .spacer { flex: 1; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.hamburger { display: none; }

.page { padding: 22px 28px 60px; max-width: 1240px; width: 100%; }

/* ---------- 通用块 ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  overflow: hidden;
}

.card-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
}

.card-hd h3 { margin: 0; font-size: 14px; font-weight: 650; }
.card-hd .sub { font-size: 12px; color: var(--ink-3); }
.card-hd .spacer { flex: 1; }
.card-bd { padding: 16px 18px; }
.card-bd.tight { padding: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}

.btn:hover { border-color: #d6cec7; background: #fffdfc; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 90, 73, .22);
}

.btn-primary:hover { background: var(--coral-dark); border-color: var(--coral-dark); }

.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-3); }
.btn-ghost:hover { background: rgba(27, 35, 64, .05); color: var(--ink); }

.btn-danger { color: var(--bad); border-color: #f0d3d0; background: #fff8f7; }
.btn-danger:hover { background: #fdeceb; border-color: #e6b9b5; }

.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 7px; }

.field { margin-bottom: 14px; }

.field > label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 5px;
}

.field > label .req { color: var(--coral); }

.input, .select, .textarea {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.input:focus, .select:focus, .textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 90, 73, .12);
}

.textarea { resize: vertical; min-height: 84px; line-height: 1.65; }

.hint { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.5; }
.hint.warn { color: var(--warn); }
.hint.bad { color: var(--bad); }

.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }

/* ---------- 统计卡 ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.stat .k { font-size: 12px; color: var(--ink-3); }
.stat .v { font-size: 26px; font-weight: 700; letter-spacing: -.5px; margin-top: 2px; }
.stat .v small { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 2px; }
.stat .t { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.stat.accent { border-color: #ffd9d3; background: linear-gradient(180deg, #fff, #fff8f6); }
.stat.accent .v { color: var(--coral-dark); }

/* ---------- 表格 ---------- */

.table { width: 100%; border-collapse: collapse; }

.table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .4px;
  color: var(--ink-3);
  padding: 10px 14px;
  background: #fdfaf8;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
  position: sticky;
  top: 0;
}

.table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}

.table tbody tr:hover { background: #fffcfb; }
.table tbody tr:last-child td { border-bottom: 0; }

.thumb {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  background: #f4efeb;
  border: 1px solid var(--line-2);
  display: block;
}

.thumb.sm { width: 30px; height: 30px; border-radius: 6px; }

.cell-title { font-weight: 600; }
.cell-sub { font-size: 11.5px; color: var(--ink-3); }
.mono { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

.badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 20px;
  font-size: 11.5px;
  background: #f1eeec;
  color: var(--ink-2);
  white-space: nowrap;
}

.badge.ok { background: #e7f7f0; color: #12724f; }
.badge.warn { background: #fdf3df; color: #8a5c00; }
.badge.bad { background: #fdeceb; color: #a8322a; }
.badge.info { background: #eaf0fd; color: #2a4d9c; }
.badge.auto { background: var(--coral-soft); color: var(--coral-dark); }

.tag-list { display: flex; flex-wrap: wrap; gap: 5px; }

/* ---------- 工具条 ---------- */

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.toolbar .input, .toolbar .select { width: auto; min-width: 150px; }
.toolbar .spacer { flex: 1; }

.seg {
  display: inline-flex;
  background: #f3efec;
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}

.seg button {
  border: 0;
  background: transparent;
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--ink-3);
  cursor: pointer;
}

.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); font-weight: 600; }

/* ---------- 抽屉 ---------- */

.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 26, 45, .38);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 60;
}

.drawer-mask.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 560px;
  max-width: 94vw;
  background: #fff;
  box-shadow: -18px 0 50px rgba(20, 26, 45, .18);
  transform: translateX(102%);
  transition: transform .24s cubic-bezier(.32, .72, .3, 1);
  z-index: 61;
  display: flex;
  flex-direction: column;
}

.drawer.open { transform: translateX(0); }

.drawer-hd {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-hd h3 { margin: 0; font-size: 15px; }
.drawer-hd .spacer { flex: 1; }

.drawer-bd { padding: 18px 20px; overflow-y: auto; flex: 1; }

.drawer-ft {
  padding: 12px 20px;
  border-top: 1px solid var(--line-2);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  background: #fffdfc;
}

/* ---------- 键值对编辑器 ---------- */

.kv-row {
  display: grid;
  grid-template-columns: 130px 1fr 30px;
  gap: 8px;
  margin-bottom: 8px;
  align-items: start;
}

.kv-row .btn-ghost { padding: 6px; }

/* ---------- 图片选择 ---------- */

.img-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.img-field .preview {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f7f3f0 center/cover no-repeat;
  flex: none;
}

.img-field .grow { flex: 1; min-width: 0; }

.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  max-height: 52vh;
  overflow-y: auto;
  padding: 2px;
}

.picker-grid .pick {
  border: 2px solid transparent;
  border-radius: 9px;
  overflow: hidden;
  cursor: pointer;
  background: #f7f3f0;
  aspect-ratio: 1;
}

.picker-grid .pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.picker-grid .pick:hover { border-color: #f0c4bd; }
.picker-grid .pick.sel { border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); }

/* ---------- SEO ---------- */

.score-wrap { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }

.score-ring { position: relative; width: 108px; height: 108px; flex: none; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
}
.score-ring .num small { font-size: 10.5px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-top: 2px; }

.bars { flex: 1; min-width: 240px; }

.bar-row { display: grid; grid-template-columns: 68px 1fr 38px; gap: 10px; align-items: center; margin-bottom: 9px; font-size: 12.5px; }
.bar-row .track { display: block; height: 7px; border-radius: 6px; background: #f1ece8; overflow: hidden; }
.bar-row .fill { display: block; height: 7px; border-radius: 6px; background: linear-gradient(90deg, #ff8a7a, var(--coral)); }
.bar-row .fill.good { background: linear-gradient(90deg, #4fd39b, var(--ok)); }
.bar-row .fill.mid { background: linear-gradient(90deg, #f6c76b, var(--warn)); }

.flags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

.issue-group { border-top: 1px solid var(--line-2); }
.issue-group:first-child { border-top: 0; }

.issue-group > header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  background: #fdfaf8;
  cursor: pointer;
  font-size: 13px;
}

.issue-group > header:hover { background: #fbf5f1; }
.issue-group > header .file { font-family: var(--mono); font-size: 12px; }
.issue-group > header .n { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }

.issue {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  padding: 9px 18px;
  border-top: 1px dashed var(--line-2);
  font-size: 12.8px;
}

.issue .fix { color: var(--ink-3); font-size: 12px; margin-top: 2px; }

.hist { display: flex; flex-direction: column; gap: 8px; }

.hist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-size: 12.8px;
}

.hist-item .sc { font-weight: 700; font-size: 16px; width: 34px; }

/* ---------- 询盘 ---------- */

.inq-item {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-2);
  font-size: 12.8px;
}

.inq-item:last-child { border-bottom: 0; }
.inq-item .hd { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.inq-item .hd b { font-size: 13px; }
.inq-item .meta { color: var(--ink-3); font-size: 11.5px; }
.inq-item .msg { margin-top: 6px; color: var(--ink-2); white-space: pre-wrap; }

.timeline { position: relative; padding-left: 18px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

.tl-item { position: relative; padding-bottom: 14px; font-size: 12.8px; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--coral);
}

.tl-item .t { color: var(--ink-3); font-size: 11.5px; }

/* ---------- 发布 ---------- */

pre.log {
  margin: 0;
  padding: 14px 16px;
  background: #161d33;
  color: #cfd8ef;
  border-radius: 10px;
  font: 12px/1.7 var(--mono);
  overflow: auto;
  max-height: 380px;
  white-space: pre-wrap;
  word-break: break-all;
}

.publish-state {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fdfaf8;
  border: 1px solid var(--line-2);
  margin-bottom: 16px;
}

.publish-state .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); flex: none; }
.publish-state.ok .dot { background: var(--ok); box-shadow: 0 0 0 4px #e7f7f0; }
.publish-state.bad .dot { background: var(--bad); box-shadow: 0 0 0 4px #fdeceb; }

/* ---------- 空状态 / 加载 ---------- */

.empty {
  padding: 44px 20px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}

.empty .big { font-size: 26px; margin-bottom: 8px; opacity: .5; }

.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}

.spinner.dark { border-color: rgba(27, 35, 64, .18); border-top-color: var(--ink); }

@keyframes spin { to { transform: rotate(360deg); } }

.loading-row { padding: 26px; text-align: center; color: var(--ink-3); }

/* ---------- Toast ---------- */

.toasts {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 90;
  align-items: center;
}

.toast {
  background: var(--ink);
  color: #fff;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  animation: pop .18s ease-out;
  max-width: 80vw;
}

.toast.ok { background: #12724f; }
.toast.bad { background: #a8322a; }

@keyframes pop {
  from { opacity: 0; transform: translateY(6px) scale(.98); }
  to { opacity: 1; transform: none; }
}

/* ---------- SERP 预览 ---------- */

.serp {
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  font-family: Arial, sans-serif;
}

.serp .t { color: #1a0dab; font-size: 17px; line-height: 1.3; margin-bottom: 2px; }
.serp .u { color: #006621; font-size: 12px; margin-bottom: 3px; }
.serp .d { color: #545454; font-size: 12.5px; line-height: 1.55; }

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }

  .side {
    position: fixed;
    inset: 0 auto 0 0;
    width: 250px;
    z-index: 70;
    transform: translateX(-102%);
    transition: transform .22s;
  }

  .side.open { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .3); }

  .hamburger {
    display: inline-flex;
    border: 0;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    padding: 2px 6px;
  }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .page { padding: 16px 16px 60px; }
  .topbar { padding: 12px 16px; }
  .drawer { width: 100vw; }
  .table th:nth-child(n+4), .table td:nth-child(n+4) { display: none; }
}

/* ---------- 媒体库 ---------- */

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.media-grid.drag { outline: 2px dashed var(--coral); outline-offset: 4px; border-radius: var(--radius); }

.media-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.media-card .ph {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--paper);
}

.media-card .bd { padding: 9px 10px 10px; display: flex; flex-direction: column; gap: 6px; }

.media-card .nm {
  font-size: 12px;
  font-family: var(--mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-card .mt {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-3);
}

.media-card .ops { display: flex; gap: 6px; }
.media-card .ops .btn { flex: 1; padding: 4px 6px; font-size: 11.5px; }

.warn-text { color: var(--warn); }

/* ---------- 站点健康 ---------- */

.health-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }

.health-item { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; }

.health-item .dot-h {
  width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; flex: none;
  background: var(--ok);
}

.health-item.warn .dot-h { background: var(--warn); }
.health-item.bad .dot-h { background: var(--bad); }
.health-item .nm { font-size: 12.8px; font-weight: 600; }
.health-item .dt { font-size: 11.6px; color: var(--ink-3); word-break: break-all; }

/* ---------- 询盘 / 多语言 ---------- */

.dot-new {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral);
}

.i18n-table td { padding-top: 8px; padding-bottom: 8px; }
.i18n-table .k-text { font-size: 12.8px; line-height: 1.6; color: var(--ink); }
.i18n-table .i18n-in { font-size: 12.8px; }
.i18n-table textarea.i18n-in { font-family: var(--mono); font-size: 12px; line-height: 1.5; }

.btn-danger { color: var(--bad); border-color: #f3d2cf; }
.btn-danger:hover:not(:disabled) { background: #fdf1f0; }
.btn-danger:disabled { opacity: .45; cursor: not-allowed; }

@media (max-width: 1280px) {
  .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .health-list { grid-template-columns: 1fr; }

  /* 询盘表：保留客户、状态、打开按钮 */
  .table.inq-table th, .table.inq-table td { display: table-cell; }
  .table.inq-table th:nth-child(3), .table.inq-table td:nth-child(3),
  .table.inq-table th:nth-child(5), .table.inq-table td:nth-child(5) { display: none; }

  .table-scroll table { min-width: 680px; }

  /* 账号表：只藏姓名与最近登录，按钮必须留着 */
  .table.users-table th, .table.users-table td { display: table-cell; }
  .table.users-table th:nth-child(2), .table.users-table td:nth-child(2),
  .table.users-table th:nth-child(4), .table.users-table td:nth-child(4) { display: none; }

  .page-head { flex-wrap: wrap; gap: 8px; }
  .toolbar { flex-wrap: wrap; }
  .toolbar .input, .toolbar .select { width: 100% !important; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .card { border-radius: 12px; }
  .radio-cards, .seg { flex-wrap: wrap; }
}

.toolbar-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.table-scroll { overflow-x: auto; }

/* 窄屏卡片标题不换行（「站点健康」曾断成两行） */
@media (max-width: 900px) {
  .card-hd h3 { white-space: nowrap; font-size: 15px; }
  .card-hd { gap: 8px; }
}
