/* LiquidTab 预设站 —— 共用样式。
   刻意保持极简：不引外部字体/框架，因为部署环境可能完全离线，
   一个 CDN 链接打不开就会让整页变成纯文本。 */

:root {
  --bg: #0b0b0d;
  --card: #17171b;
  --card-2: #1e1e24;
  --line: #2a2a32;
  --ink: #f2f2f5;
  --sub: #9b9ba6;
  --accent: #5b8cff;
  --ok: #34c759;
  --warn: #ff9f0a;
  --err: #ff453a;
  --radius: 16px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f5f7;
    --card: #ffffff;
    --card-2: #f0f0f4;
    --line: #e2e2e8;
    --ink: #1c1c1e;
    --sub: #6b6b76;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 18px 72px;
}

header.top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

header.top h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.lead {
  color: var(--sub);
  margin: 0 0 26px;
  font-size: 14px;
}

.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--card-2);
  color: var(--sub);
  font-size: 12px;
  font-weight: 600;
}

.pill.ok   { background: rgba(52,199,89,0.16);  color: var(--ok); }
.pill.warn { background: rgba(255,159,10,0.16); color: var(--warn); }
.pill.err  { background: rgba(255,69,58,0.16);  color: var(--err); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
}

.card h2 {
  font-size: 17px;
  margin: 0 0 4px;
  font-weight: 650;
}

.card .meta {
  color: var(--sub);
  font-size: 13px;
}

.card .desc {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.spacer { flex: 1; }

button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--ink);
  cursor: pointer;
  transition: transform .08s ease, opacity .12s ease;
}

/* :hover 统一收进文件末尾的 @media (hover:hover) and (pointer:fine)：
   触屏上不门控的 hover 会"粘住"（点完一直保持悬停态）。 */
button:active { transform: scale(.97); }

button.primary {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

button.ok { background: var(--ok); border-color: transparent; color: #06210c; }
button.danger { background: var(--err); border-color: transparent; color: #fff; }

button:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

textarea, input[type="text"], input[type="password"], input[type="search"], select {
  font: inherit;
  width: 100%;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--ink);
  outline: none;
}

textarea:focus, input:focus, select:focus { border-color: var(--accent); }

select { cursor: pointer; }

.hint { color: var(--sub); font-size: 12.5px; margin: 8px 0 0; }

.empty {
  text-align: center;
  color: var(--sub);
  padding: 54px 20px;
  font-size: 14px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
  color: var(--sub);
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(10px);
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 100;
  max-width: 86vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- 审核页专用 ---- */

.groups {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.group-title {
  font-size: 13px;
  font-weight: 650;
  color: var(--sub);
  margin: 14px 0 8px;
}

.kv {
  display: grid;
  grid-template-columns: minmax(96px, 180px) 1fr;
  gap: 6px 14px;
  font-size: 13px;
}

.kv .k { color: var(--sub); }
.kv .v {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all;
}

.audit {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--sub);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

/* 搜索框弹性、排序按内容宽（原来写成 HTML 内联样式，
   内联的优先级高于样式表，手机断点里的覆盖根本不会生效）。 */
.tabs #search { flex: 1 1 200px; min-width: 0; }
.tabs button.active {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.login-box {
  max-width: 400px;
  margin: 60px auto;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  background: var(--card-2);
  padding: 1px 6px;
  border-radius: 6px;
}

/* ── 版本管理（fix70）────────────────────────────────── */

.rel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) {
  .rel-grid { grid-template-columns: 1fr; }
}

.rel-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.rel-field label {
  font-size: 13px;
  color: var(--sub);
}
.rel-field input[type="text"],
.rel-field input[type="number"],
.rel-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card-2);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
}
.rel-field input:focus,
.rel-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.rel-field textarea { resize: vertical; }

.rel-help {
  font-size: 12px;
  color: var(--sub);
  line-height: 1.5;
}

.rel-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  cursor: pointer;
}
.rel-check input { width: 16px; height: 16px; }

.rel-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.rel-primary:disabled { opacity: .45; cursor: not-allowed; }

.rel-danger { color: var(--err); border-color: rgba(255, 69, 58, .4); }
.rel-danger:disabled { opacity: .4; cursor: not-allowed; }

.rel-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--card-2);
  overflow: hidden;
  margin-top: 4px;
}
.rel-bar-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width .15s linear;
}

.rel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.rel-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--card-2);
}
.rel-row.is-published { border-color: rgba(52, 199, 89, .45); }
.rel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 15px;
}
.rel-meta {
  font-size: 12px;
  color: var(--sub);
  margin-top: 6px;
  word-break: break-all;
  line-height: 1.6;
}
.rel-notes {
  font-size: 13px;
  color: var(--ink);
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--card);
  border-radius: 8px;
  white-space: pre-wrap;
  line-height: 1.6;
  max-height: 220px;
  overflow-y: auto;
}
.rel-actions {
  margin-top: 12px;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---- fix72: 账号与我的配置 ---- */

/* 顶部导航链接用 pill 形态，和列表里的徽章同一套视觉 */
a.pill {
  text-decoration: none;
  color: var(--sub);
  border: 1px solid var(--line);
  background: var(--card-2);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
}
/* a.pill:hover 见文件末尾的指针能力查询块 */

/* 状态徽章的三种色：待审/已发布/已驳回 */
.pill.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.pill.ok   { color: var(--ok);   border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.pill.err  { color: var(--err);  border-color: color-mix(in srgb, var(--err) 40%, var(--line)); }

/* 登录框里的按钮并排，窄屏自动换行 */
.login-box .row button {
  flex: 1 1 auto;
  min-width: 120px;
}

/* 表单报错行：红字、不占位（内容是空的就 hidden） */
#authError,
#upError {
  color: var(--err);
  margin: 8px 0 0;
}

/* 驳回理由那一条要能换行，长理由不该被截断 */
.rel-notes {
  white-space: pre-wrap;
  word-break: break-word;
}

/* 编辑态里把卡片内边距收窄一点，避免和列表卡片混淆 */
.card .rel-actions {
  margin-top: 12px;
}

/* 移动端：网格字段单列 */
@media (max-width: 560px) {
  .rel-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────
   fix76 (需求⑨): 公告管理
   ───────────────────────────────────────────────────────────── */
.ann-grid {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}
.ann-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted, #888);
}
.ann-field input[type="text"],
.ann-field textarea,
.ann-field select {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: inherit;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  background: color-mix(in srgb, currentColor 4%, transparent);
  box-sizing: border-box;
}
.ann-field textarea {
  resize: vertical;
  line-height: 1.6;
  font-family: inherit;
}
.ann-field input[type="text"]:focus,
.ann-field textarea:focus,
.ann-field select:focus {
  outline: 2px solid color-mix(in srgb, currentColor 30%, transparent);
  outline-offset: 1px;
}
.ann-help {
  font-size: 12px;
  opacity: 0.66;
}
.ann-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding-top: 26px;
}
.ann-check input { width: 16px; height: 16px; }
.ann-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.ann-actions button {
  font: inherit;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  background: transparent;
  color: inherit;
  cursor: pointer;
}
/* .ann-actions button:hover 见末尾 */
.ann-actions button:disabled { opacity: 0.5; cursor: default; }
.ann-actions button.ann-primary {
  background: #2b6cff;
  border-color: #2b6cff;
  color: #fff;
}
/* .ann-actions button.ann-primary:hover 见末尾 */
.ann-actions button.ann-danger { color: #d9363e; border-color: color-mix(in srgb, #d9363e 40%, transparent); }
/* .ann-actions button.ann-danger:hover 见末尾 */

/* 公告行：草稿左侧留一条灰边，已发布留绿边 —— 扫一眼就能分清
   哪些用户真能看到，不用逐条读徽章文字。 */
.ann-row {
  padding: 14px 0 14px 14px;
  border-left: 3px solid color-mix(in srgb, currentColor 18%, transparent);
  margin-bottom: 12px;
}
.ann-row.is-published { border-left-color: #34c759; }
.ann-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 15px;
}
.ann-meta {
  font-size: 12px;
  opacity: 0.6;
  margin: 5px 0 8px;
}
.ann-body {
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  opacity: 0.9;
}
@media (max-width: 620px) {
  .ann-grid { grid-template-columns: 1fr; }
  .ann-check { padding-top: 0; }
}

/* ─────────────────────────────────────────────────────────────
   fix76 (需求⑩): 介绍页
   ───────────────────────────────────────────────────────────── */
.about-hero {
  margin: 28px 0 8px;
  padding: 26px 24px;
  border-radius: 20px;
  background: color-mix(in srgb, currentColor 4%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.about-badge {
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, #2b6cff 16%, transparent);
  color: #2b6cff;
  margin-bottom: 12px;
}
.about-hero h2 {
  font-size: 22px;
  margin: 0 0 12px;
  line-height: 1.35;
}
.about-hero p {
  font-size: 14.5px;
  line-height: 1.75;
  opacity: 0.86;
  margin: 0 0 10px;
}
.about-hero p:last-child { margin-bottom: 0; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 22px 0 8px;
}
.about-card {
  padding: 18px 18px 20px;
  border-radius: 16px;
  background: color-mix(in srgb, currentColor 4%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}
.about-card h3 {
  font-size: 15px;
  margin: 0 0 8px;
}
.about-card p {
  font-size: 13.5px;
  line-height: 1.7;
  opacity: 0.78;
  margin: 0;
}
.about-card code {
  font-size: 12.5px;
  padding: 1px 5px;
  border-radius: 5px;
  background: color-mix(in srgb, currentColor 12%, transparent);
}

.about-steps, .about-faq { margin: 30px 0 8px; }
.about-steps h2, .about-faq h2 {
  font-size: 18px;
  margin: 0 0 14px;
}
.about-steps ol {
  margin: 0;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.9;
  opacity: 0.86;
}
.about-steps li { margin-bottom: 6px; }
.about-steps strong { font-weight: 600; }

.about-faq details {
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  padding: 0 16px;
  margin-bottom: 10px;
  background: color-mix(in srgb, currentColor 3%, transparent);
}
.about-faq summary {
  cursor: pointer;
  font-size: 14.5px;
  padding: 14px 0;
  list-style: none;
  font-weight: 500;
}
.about-faq summary::-webkit-details-marker { display: none; }
.about-faq summary::after {
  content: '+';
  float: right;
  opacity: 0.5;
  font-weight: 400;
}
.about-faq details[open] summary::after { content: '−'; }
.about-faq details p {
  font-size: 13.5px;
  line-height: 1.75;
  opacity: 0.8;
  margin: 0 0 16px;
}

.about-foot {
  margin: 34px 0 10px;
  text-align: center;
}
@media (max-width: 560px) {
  .about-hero { padding: 20px 16px; }
  .about-hero h2 { font-size: 19px; }
}

/* ── fix79 (需求C/D/E/F)：管理员授权、站点配置、公告按钮 ───────────
 * 这几块共用一套小样式，都挂在现有 .card / .row / .muted 上，
 * 只补三个现有样式表里没有的东西：勾选行、字段行、按钮行。
 * 颜色一律走现有 CSS 变量，不新引调色板。 */

.muted {
  font-size: 13px;
  color: var(--muted, #888);
  line-height: 1.7;
}

/* 权限勾选：一行一个 checkbox + 说明，说明太长会换行而不是撑破卡片 */
.check-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  padding: 7px 0;
  cursor: pointer;
}
.check-line input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  align-self: center;
}

/* 站点配置的字段行：label 在上，输入框撑满，说明在下面 */
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
}
.field input[type="text"] {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: inherit;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  background: color-mix(in srgb, currentColor 4%, transparent);
  box-sizing: border-box;
}
.field input[type="text"]:focus {
  outline: 2px solid color-mix(in srgb, currentColor 30%, transparent);
  outline-offset: 1px;
}

/* 公告按钮编辑行：文字 / 链接 / 样式 / 删除 四件套，窄屏自动折行 */
.ann-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
  align-items: center;
}
.ann-btn-row input[type="text"] {
  flex: 1 1 140px;
  min-width: 0;
}
.ann-btn-row select {
  flex: 0 0 auto;
}
.ann-btn-row button {
  flex: 0 0 auto;
}

/* 管理员名单里每条是一个内嵌小卡片，和主卡片拉开层次 */
.card .card {
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, currentColor 3%, transparent);
}
.card .card h3 {
  font-size: 14px;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   fix86：手机端（真机触控）适配
   ─────────────────────────────────────────────────────────────
   这一段放在最后，靠层叠顺序覆盖上面的桌面值，不去改动原有规则，
   这样桌面端外观一个像素都不变。

   修的问题（都在 636×1400 真机/虚拟屏上截到过）：
     1. header.top 没有 flex-wrap，h1 和右侧 pill 抢宽度 → pill 里的
        中文被挤成一字一行，竖着堆成一列还被右边缘裁掉；
     2. 所有 :hover 在触屏上是"粘住"的：点完一直保持 hover 态；
     3. 点击时出现浏览器默认的灰蓝色高亮块，最像"网页"的一个信号；
     4. 输入框 14px < 16px，iOS 聚焦会强制放大页面且不还原；
     5. 按钮高 ~38px，低于触控推荐下限；
     6. 状态栏/浏览器顶栏颜色和页面背景不一致；
     7. 全面屏上下会被刘海/小白条压住内容。
   ═══════════════════════════════════════════════════════════════ */

/* -- 7. 安全区：viewport-fit=cover 让页面铺到边缘，再自己把内容缩回来 -- */
.wrap {
  padding-top: calc(28px + env(safe-area-inset-top, 0px));
  padding-left: calc(18px + env(safe-area-inset-left, 0px));
  padding-right: calc(18px + env(safe-area-inset-right, 0px));
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

/* -- 3. 干掉点击高亮；滚动回弹交给浏览器，页面内不做 pull-to-refresh -- */
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
html, body { overscroll-behavior-y: none; }

/* -- 5. 触控目标：控件不可选中文字，长按不弹复制菜单，单击零延迟 -- */
button, a.pill, .tabs button, select, summary {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* -- 1. 页头：允许折行，标题独占一行，pill 不再被压成一字一行 -- */
header.top {
  flex-wrap: wrap;
  row-gap: 10px;
}
header.top h1 {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
header.top .pill {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* -- 2. 所有 hover 只在真有指针（鼠标）的设备上生效 --
   (hover:hover) 指主输入设备能悬停；(pointer:fine) 排除触控笔和
   那些声称支持 hover 的安卓机。两个都要，缺一个就会在手机上粘住。 */
@media (hover: hover) and (pointer: fine) {
  button:hover { opacity: .86; }
  a.pill:hover {
    color: var(--ink);
    border-color: var(--accent);
  }
  .ann-actions button:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
  .ann-actions button.ann-primary:hover { background: #1f5be8; }
  .ann-actions button.ann-danger:hover { background: color-mix(in srgb, #d9363e 10%, transparent); }
}
/* 触屏上用按下反馈替代 hover：手指落下的瞬间就有变化，才不像网页 */
button:active { transform: scale(.97); opacity: .92; }

/* -- 4. 输入框 16px 起步：低于这个值 iOS 聚焦会自动放大整页且不还原 -- */
input, textarea, select { font-size: 16px; }
.rel-field input[type="text"],
.rel-field input[type="number"],
.rel-field textarea,
.ann-field input[type="text"],
.ann-field textarea,
.ann-field select,
.field input[type="text"] { font-size: 16px; }

/* -- 5. 按钮最小触控高度 44px（只对粗指针生效，鼠标仍然紧凑） -- */
@media (pointer: coarse) {
  button {
    min-height: 44px;
    padding: 11px 18px;
  }
  a.pill {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
  }
  .pager button { min-width: 88px; }
  /* select 在安卓上高度跟着字号走，显式给一下免得比输入框矮一截 */
  select { min-height: 44px; }
}

/* -- 6. 页面落到最底部时，toast 不要压在小白条上 -- */
.toast {
  bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  max-width: calc(100vw - 32px);
}

/* ── 窄屏排版：600px 以下重新排，不改结构 ───────────────────── */
@media (max-width: 600px) {
  .wrap {
    padding-top: calc(20px + env(safe-area-inset-top, 0px));
    padding-left: calc(14px + env(safe-area-inset-left, 0px));
    padding-right: calc(14px + env(safe-area-inset-right, 0px));
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  /* 标题单独占一行，导航 pill 落到第二行横向排列，放不下就换行 */
  header.top {
    align-items: center;
    column-gap: 8px;
    margin-bottom: 12px;
  }
  header.top h1 {
    flex: 1 1 100%;
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 2px;
  }
  header.top .pill,
  header.top a.pill {
    padding: 6px 12px;
    font-size: 13px;
  }

  .lead { margin-bottom: 20px; }

  /* 工具栏：搜索框和排序各占整行，别去分那点宽度 */
  .tabs { gap: 10px; margin-bottom: 16px; }
  .tabs #search,
  .tabs select {
    flex: 1 1 100%;
    width: 100%;
  }

  /* 卡片：外边框留给内容，内边距收窄，标题不再和徽章挤一行 */
  .card {
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 12px;
  }
  .card h2 { font-size: 16px; }
  .card .row > h2 { flex: 1 1 auto; min-width: 0; }

  /* 键值表在手机上两列太窄，改成上下两行 */
  .kv {
    grid-template-columns: 1fr;
    gap: 2px 0;
    font-size: 13px;
  }
  .kv .k { margin-top: 8px; }
  .kv .v { padding-bottom: 2px; }

  /* 分页按钮变大、均分整行 */
  .pager { gap: 10px; }
  .pager button { flex: 1 1 0; }

  /* 登录框不要 60px 的顶部留白 */
  .login-box { margin: 8px auto; }

  /* 表格类窄卡片：字段上下叠 */
  .rel-title { font-size: 14px; }
  .rel-actions button { flex: 1 1 auto; }
}

/* 更窄（≈360dp 小屏）时再收一档 */
@media (max-width: 380px) {
  header.top h1 { font-size: 20px; }
  .card { padding: 14px; }
  button { padding: 10px 14px; }
}
