/* ============================================================
   南方集团信息化系统（内部）— 全站样式
   配色取自集团 logo：金黄 → 青绿 → 深蓝（山形渐变）
   ============================================================ */

:root {
  --navy: #16243a;
  --navy-2: #1e3350;
  --navy-3: #2a4568;
  --teal: #1f8a92;
  --teal-dark: #156b72;
  --teal-soft: #e6f3f4;
  --gold: #d99a2b;
  --gold-dark: #b47f1c;
  --gold-soft: #fdf4e3;
  --red: #b8232d;
  --red-soft: #fdf2f2;
  --green: #2f8f5b;
  --green-soft: #eaf6ef;
  --blue: #2f6fb3;
  --blue-soft: #eaf1f9;
  --purple-soft: #f2eefb;
  --purple: #6a4fb3;

  --ink: #14171c;
  --ink-2: #3c4450;
  --ink-3: #6b7480;
  --paper: #ffffff;
  --bg: #f4f6f9;
  --bg-2: #eef1f5;
  --line: #e3e7ec;
  --line-strong: #ccd4dd;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(20, 23, 28, .05), 0 2px 8px rgba(20, 23, 28, .04);
  --shadow: 0 2px 6px rgba(20, 23, 28, .06), 0 12px 32px rgba(20, 23, 28, .08);
  --shadow-lg: 0 20px 60px rgba(20, 23, 28, .18);
  --grad: linear-gradient(135deg, #f0b429 0%, #1f9e8f 55%, #1b4f8a 100%);
  --grad-soft: linear-gradient(135deg, rgba(240, 180, 41, .16), rgba(31, 158, 143, .14) 55%, rgba(27, 79, 138, .14));

  --sans: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
  --serif: "Songti SC", "SimSun", Georgia, "Noto Serif SC", serif;
  --header-h: 60px;
  --side-w: 220px;
}

[data-theme="dark"] {
  --ink: #e9eef5;
  --ink-2: #bcc7d4;
  --ink-3: #8d99a8;
  --paper: #151d28;
  --bg: #0d131b;
  --bg-2: #101823;
  --line: #26313f;
  --line-strong: #35445a;
  --teal-soft: #14312f;
  --gold-soft: #33280f;
  --red-soft: #33191b;
  --green-soft: #14301f;
  --blue-soft: #16263a;
  --purple-soft: #241f38;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 8px 28px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; }
p { margin: 0 0 .8em; }
code {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px;
  padding: 1px 6px; font-family: ui-monospace, Consolas, monospace; font-size: .92em;
}

/* ---------------- 通用布局 ---------------- */

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; gap: 10px; align-items: center; }
.row-between { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.wrap-gap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.center { text-align: center; }
.right { text-align: right; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.strong { font-weight: 700; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.nowrap { white-space: nowrap; }
.mt0 { margin-top: 0; } .mt1 { margin-top: 8px; } .mt2 { margin-top: 16px; } .mt3 { margin-top: 24px; }
.mb1 { margin-bottom: 8px; } .mb2 { margin-bottom: 16px; } .mb3 { margin-bottom: 24px; }
.hide { display: none !important; }
.gap-sm { gap: 6px; }

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink);
  border-radius: var(--radius-sm); padding: 8px 16px; font-size: 14px; font-family: inherit;
  cursor: pointer; transition: .16s ease; white-space: nowrap; text-decoration: none;
}
.btn:hover { border-color: var(--ink-3); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #23180a; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { background: #9c1c25; border-color: #9c1c25; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-2); border-color: transparent; }
.btn-sm { padding: 5px 11px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 12px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { padding: 7px 10px; }

/* ---------------- 卡片 ---------------- */

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); margin-bottom: 16px; overflow: hidden;
}
.card-head {
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.card-head h2, .card-head h3 { margin: 0; font-size: 16px; }
.card-head .sub { font-size: 13px; color: var(--ink-3); font-weight: 400; }
.card-body { padding: 18px; }
.card-body.tight { padding: 12px 14px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--line); background: var(--bg-2); }

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

.stat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.stat .n { font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.2; }
[data-theme="dark"] .stat .n { color: var(--ink); }
.stat .k { font-size: 13px; color: var(--ink-3); }
.stat.accent .n { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------- 标签 / 徽章 ---------------- */

.tag {
  display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px;
  background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line); line-height: 1.7;
  white-space: nowrap;
}
.tag-teal { background: var(--teal-soft); color: var(--teal-dark); border-color: transparent; }
.tag-gold { background: var(--gold-soft); color: var(--gold-dark); border-color: transparent; }
.tag-red { background: var(--red-soft); color: var(--red); border-color: transparent; }
.tag-green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.tag-blue { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.tag-purple { background: var(--purple-soft); color: var(--purple); border-color: transparent; }
.tag-navy { background: var(--navy); color: #fff; border-color: transparent; }
.role-super { background: var(--grad); color: #fff; border-color: transparent; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--paper); cursor: pointer; font-size: 13px;
  font-family: inherit; color: var(--ink-2); transition: .14s;
}
.chip:hover { border-color: var(--teal); color: var(--teal-dark); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------------- 表单 ---------------- */

.field { margin-bottom: 14px; }
.label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--ink-2); }
.label .req { color: var(--red); }
.hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.input, .select, .textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px; background: var(--paper); color: var(--ink); transition: .14s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft);
}
.textarea { min-height: 90px; resize: vertical; line-height: 1.6; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .span-2 { grid-column: span 2; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line-strong);
  border-radius: 999px; font-size: 13px; cursor: pointer; background: var(--paper); user-select: none;
}
.check input { margin: 0; accent-color: var(--teal); }
.check.on { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-dark); font-weight: 600; }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 14px; border: 1px solid transparent; }
.alert-info { background: var(--teal-soft); color: var(--teal-dark); }
.alert-warn { background: var(--gold-soft); color: var(--gold-dark); }
.alert-error { background: var(--red-soft); color: var(--red); }
.alert-ok { background: var(--green-soft); color: var(--green); }

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

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.table th, table.table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.table th { background: var(--bg-2); font-size: 13px; color: var(--ink-3); font-weight: 600; white-space: nowrap; position: sticky; top: 0; z-index: 1; }
table.table tbody tr:hover { background: var(--bg-2); }
table.table tbody tr:last-child td { border-bottom: none; }
table.table td.num { color: var(--ink-3); font-size: 13px; width: 42px; }

/* ---------------- 列表项 / 成员卡 ---------------- */

.list { display: flex; flex-direction: column; }
.list-item { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; }
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--bg-2); }

.avatar {
  width: 40px; height: 40px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 15px; background: var(--grad); letter-spacing: .5px;
}
.avatar.lg { width: 56px; height: 56px; border-radius: 16px; font-size: 20px; }
.avatar.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }

.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.member-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
  box-shadow: var(--shadow-sm); cursor: pointer; transition: .16s;
}
.member-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--teal); }

/* ---------------- 顶栏 / 侧栏（内部系统） ---------------- */

.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--side-w); flex: none; background: var(--navy); color: #cfd8e3;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { padding: 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.09); }
.sidebar .brand img { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 9px; padding: 2px; }
.sidebar .brand b { color: #fff; font-size: 15px; display: block; line-height: 1.3; }
.sidebar .brand span { font-size: 11px; color: #93a3b8; }
.nav { padding: 10px 8px; overflow-y: auto; flex: 1; }
.nav-group { font-size: 11px; color: #7c8ca3; padding: 12px 12px 4px; letter-spacing: .06em; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: #cfd8e3;
  font-size: 14px; cursor: pointer; border: none; background: none; width: 100%; text-align: left; font-family: inherit;
  transition: .14s; text-decoration: none; position: relative;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.nav-item.active { background: var(--teal); color: #fff; font-weight: 600; }
.nav-item .ico { width: 18px; text-align: center; font-size: 15px; }
.nav-item .dot {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: var(--red); color: #fff; font-size: 11px; border-radius: 999px; padding: 0 6px; line-height: 17px;
}
.sidebar .side-foot { padding: 12px; border-top: 1px solid rgba(255,255,255,.09); font-size: 12px; color: #8e9fb5; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--header-h); background: var(--paper); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; padding: 0 18px; position: sticky; top: 0; z-index: 30;
}
.topbar h1 { font-size: 16px; margin: 0; }
.topbar .spacer { flex: 1; }
.content { padding: 18px; max-width: 1280px; width: 100%; }
.bottom-nav { display: none; }

.icon-btn {
  border: 1px solid var(--line); background: var(--paper); border-radius: 10px; width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; color: var(--ink-2);
  position: relative;
}
.icon-btn:hover { border-color: var(--teal); color: var(--teal-dark); }
.icon-btn .dot {
  position: absolute; top: -5px; right: -5px; background: var(--red); color: #fff; border-radius: 999px;
  font-size: 10px; min-width: 17px; height: 17px; line-height: 17px; text-align: center; padding: 0 4px;
}

/* ---------------- 弹窗 / 提示 ---------------- */

.modal-mask {
  position: fixed; inset: 0; background: rgba(12, 18, 28, .55); display: flex; align-items: center;
  justify-content: center; padding: 18px; z-index: 100; backdrop-filter: blur(2px);
}
.modal {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 620px; max-height: 88vh; display: flex; flex-direction: column; overflow: hidden;
}
.modal.wide { max-width: 900px; }
.modal.narrow { max-width: 420px; }
.modal-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: var(--bg-2); }

.toast-wrap { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: var(--navy); color: #fff; padding: 10px 20px; border-radius: 999px; font-size: 14px;
  box-shadow: var(--shadow); animation: toastIn .2s ease; max-width: 90vw;
}
.toast.ok { background: var(--green); }
.toast.err { background: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------------- Markdown 内容 ---------------- */

.md { font-size: 15px; line-height: 1.8; word-wrap: break-word; }
.md h1 { font-size: 20px; margin: 1.2em 0 .6em; padding-bottom: .3em; border-bottom: 1px solid var(--line); }
.md h2 { font-size: 18px; margin: 1.3em 0 .5em; color: var(--navy); }
[data-theme="dark"] .md h2 { color: var(--ink); }
.md h3 { font-size: 16px; margin: 1.1em 0 .4em; color: var(--teal-dark); }
.md h4 { font-size: 15px; margin: 1em 0 .3em; }
.md ul, .md ol { padding-left: 1.4em; margin: 0 0 .9em; }
.md li { margin-bottom: .25em; }
.md blockquote {
  margin: 0 0 .9em; padding: 8px 14px; border-left: 3px solid var(--teal);
  background: var(--teal-soft); border-radius: 0 8px 8px 0; color: var(--ink-2);
}
.md hr { border: none; border-top: 1px solid var(--line); margin: 1.4em 0; }
.md table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 1em; }

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

.empty { padding: 40px 20px; text-align: center; color: var(--ink-3); font-size: 14px; }
.empty .big { font-size: 32px; display: block; margin-bottom: 8px; opacity: .55; }
.spinner {
  width: 18px; height: 18px; border: 2px solid var(--line-strong); border-top-color: var(--teal);
  border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: -3px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 留言板 ---------------- */

.post { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: none; }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.post-title { font-weight: 600; font-size: 15px; }
.reply { padding: 12px 16px; border-top: 1px dashed var(--line); background: var(--bg-2); }
.reply .md { font-size: 14px; }

/* ---------------- 任务清单 ---------------- */

.task {
  display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: flex-start;
}
.task:last-child { border-bottom: none; }
.task .box {
  width: 22px; height: 22px; flex: none; border: 2px solid var(--line-strong); border-radius: 7px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: transparent; font-size: 13px; margin-top: 2px;
  background: var(--paper); transition: .14s;
}
.task .box:hover { border-color: var(--teal); }
.task.done .box { background: var(--green); border-color: var(--green); color: #fff; }
.task.done .task-title { text-decoration: line-through; color: var(--ink-3); }
.task-title { font-weight: 600; }
.progress { height: 8px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: var(--grad); border-radius: 999px; transition: width .3s; }

/* ---------------- 公开页面 ---------------- */

.public-top {
  height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 20px;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
[data-theme="dark"] .public-top { background: rgba(13, 19, 27, .88); }
.public-top img.logo { height: 34px; width: 34px; object-fit: contain; border-radius: 9px; background: #fff; padding: 2px; }
.public-top .name { font-weight: 700; font-size: 16px; }
.public-top .name small { display: block; font-weight: 400; font-size: 11px; color: var(--ink-3); }
.public-top .links { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.hero {
  position: relative; overflow: hidden; color: #fff; padding: 70px 0 60px;
  background: var(--navy);
}
.hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .32; }
.hero .veil { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(22,36,58,.94), rgba(27,79,138,.72) 55%, rgba(31,158,143,.55)); }
.hero .inner { position: relative; }
.hero h1 { font-size: 34px; margin-bottom: .3em; letter-spacing: .01em; }
.hero p { font-size: 16px; color: #dfe7f1; max-width: 720px; }
.hero .kpis { display: flex; gap: 26px; margin-top: 26px; flex-wrap: wrap; }
.hero .kpis div b { font-size: 26px; display: block; background: linear-gradient(120deg, #ffd978, #7ce0d3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .kpis div span { font-size: 13px; color: #c4d2e2; }

.section { padding: 44px 0; }
.section-title { font-size: 22px; margin-bottom: 6px; }
.section-sub { color: var(--ink-3); margin-bottom: 22px; font-size: 14px; }

.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); height: 100%; }
.feature .ico { font-size: 24px; margin-bottom: 8px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { font-size: 13.5px; color: var(--ink-3); margin: 0; }

.notice-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.notice-item:last-child { border-bottom: none; }

.public-foot { padding: 28px 0; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; background: var(--paper); }

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

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

@media (max-width: 780px) {
  body { font-size: 14.5px; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 90; transform: translateX(-100%);
    transition: transform .22s ease; box-shadow: var(--shadow-lg); height: 100%;
  }
  .sidebar.open { transform: none; }
  .sidebar-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 80; }
  .content { padding: 12px 12px 88px; }
  .topbar { padding: 0 12px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  /* 统计数字卡片在手机上排两列，省一半滚动 */
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 12px; }
  .stat .n { font-size: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 15px; }
  .section { padding: 30px 0; }
  .card-body { padding: 14px; }
  .modal { max-width: 100%; max-height: 92vh; }
  .member-grid { grid-template-columns: 1fr; }

  /* 表格在手机上变成卡片 */
  table.table.responsive thead { display: none; }
  table.table.responsive tbody tr {
    display: block; border: 1px solid var(--line); border-radius: var(--radius-sm);
    margin-bottom: 10px; padding: 8px 12px; background: var(--paper);
  }
  table.table.responsive tbody tr:hover { background: var(--paper); }
  table.table.responsive td { display: flex; gap: 10px; border: none; padding: 4px 0; font-size: 14px; }
  table.table.responsive td::before {
    content: attr(data-label); flex: none; width: 88px; color: var(--ink-3); font-size: 12.5px; padding-top: 2px;
  }

  /* 手机底部导航 */
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: var(--paper); border-top: 1px solid var(--line); padding: 4px 0 calc(4px + env(safe-area-inset-bottom));
  }
  .bottom-nav a {
    flex: 1; text-align: center; padding: 6px 0; font-size: 11px; color: var(--ink-3); text-decoration: none;
    display: flex; flex-direction: column; align-items: center; gap: 1px;
  }
  .bottom-nav a .ico { font-size: 18px; }
  .bottom-nav a.active { color: var(--teal-dark); font-weight: 600; }
}

@media print {
  .sidebar, .topbar, .bottom-nav, .public-top, .no-print { display: none !important; }
  .content { padding: 0; }
  body { background: #fff; }
}
