/* 安信航 · 舱位运价管理系统 —— 深藏青 + 香槟金 */
:root {
  --navy-900: #0b1526;
  --navy-800: #101d33;
  --navy-700: #16263f;
  --navy-600: #1e3352;
  --navy-500: #2b4468;
  --gold: #c8a96a;
  --gold-soft: #e2cfa2;
  --gold-dim: rgba(200, 169, 106, .16);
  --ink: #17202e;
  --ink-2: #3c4a60;
  --muted: #7b8798;
  --line: #e6e9ef;
  --bg: #f5f6f9;
  --card: #ffffff;
  --green: #1f8a5b;
  --green-bg: #e8f6ef;
  --amber: #a8711a;
  --amber-bg: #fdf3e2;
  --red: #b33a3a;
  --red-bg: #fbeaea;
  --blue: #255e9c;
  --blue-bg: #e9f1fb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 29, 51, .05), 0 8px 24px rgba(16, 29, 51, .06);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: .2px; }
p { margin: 0 0 10px; }
small, .small { font-size: 12px; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mono { font-variant-numeric: tabular-nums; font-family: "SF Mono", Consolas, "Roboto Mono", monospace; }

/* ------------------------------------------------------------ 布局 */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 238px;
  flex: 0 0 238px;
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800) 45%, var(--navy-700));
  color: #dbe3f0;
  padding: 22px 14px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 6px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), #a9873f);
  color: var(--navy-900); font-weight: 800; letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  box-shadow: 0 6px 16px rgba(200,169,106,.28);
}
.brand-text strong { display: block; color: #fff; font-size: 14px; letter-spacing: .5px; }
.brand-text span { font-size: 11px; color: #93a2ba; letter-spacing: .6px; }
.nav { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-title {
  font-size: 11px; color: #7f8ea7; letter-spacing: 1.4px; padding: 0 10px 4px;
  text-transform: uppercase;
}
.nav-title::before { content: ""; display: inline-block; width: 3px; height: 9px; background: var(--gold); margin-right: 7px; border-radius: 2px; opacity: .85; }
.nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  color: #c3cfe2; padding: 7px 10px; border-radius: 8px; font-size: 13px;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.nav a.active { background: var(--gold-dim); color: var(--gold-soft); box-shadow: inset 2px 0 0 var(--gold); }
.nav a .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .5; }
.sidebar-footer { border-top: 1px solid rgba(255,255,255,.08); padding: 14px 8px 0; font-size: 12px; color: #93a2ba; display: flex; flex-direction: column; gap: 8px; }
.sidebar-user { display: flex; align-items: center; gap: 9px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: rgba(200,169,106,.18);
  color: var(--gold-soft); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px;
  border: 1px solid rgba(200,169,106,.35);
}
.logout-btn { background: none; border: 0; color: #93a2ba; cursor: pointer; padding: 0; font-size: 12px; text-align: left; }
.logout-btn:hover { color: #fff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: sticky; top: 0; z-index: 20;
}
.crumb { font-size: 12px; color: var(--muted); letter-spacing: .3px; }
.crumb strong { color: var(--ink); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.role-chip { border: 1px solid var(--line); background: #fff; padding: 4px 10px; border-radius: 999px; color: var(--ink-2); }
.content { padding: 24px 28px 48px; max-width: 1480px; width: 100%; margin: 0 auto; }

/* ------------------------------------------------------------ 页头 */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; letter-spacing: .3px; }
.page-head .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.section-title { font-size: 15px; margin: 26px 0 12px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--gold); }
.section-title .small { font-weight: 400; }

/* ------------------------------------------------------------ 卡片 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card + .card { margin-top: 16px; }
.card-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-head h3 { font-size: 14px; }
.card-head .small { color: var(--muted); }
.card-body { padding: 18px; }
.card-body.tight { padding: 12px 18px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--line); background: #fbfcfe; display: flex; justify-content: flex-end; gap: 8px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  position: relative; overflow: hidden;
}
.stat::after { content: ""; position: absolute; right: -18px; top: -18px; width: 54px; height: 54px; border-radius: 50%; background: var(--gold-dim); }
.stat .label { color: var(--muted); font-size: 12px; letter-spacing: .4px; }
.stat .value { font-size: 26px; font-weight: 700; letter-spacing: .4px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .value small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.stat.gold .value { color: #9a7a35; }
.stat.red .value { color: var(--red); }
.stat.green .value { color: var(--green); }

/* ------------------------------------------------------------ 表格 */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .6px; background: #fafbfd; text-transform: uppercase; white-space: nowrap; }
.table tbody tr:hover { background: #fafbfd; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .strong { font-weight: 600; }
.table .sub { display: block; font-size: 11px; color: var(--muted); }
.table tr.is-link { cursor: pointer; }
.table tr.row-warn td { background: #fffaf3; }
.table tr.row-muted td { color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; line-height: 1.7; white-space: nowrap; }
.badge-ok { background: var(--green-bg); color: var(--green); }
.badge-info { background: var(--blue-bg); color: var(--blue); }
.badge-warn { background: var(--amber-bg); color: var(--amber); }
.badge-danger { background: var(--red-bg); color: var(--red); }
.badge-muted { background: #eef1f5; color: #64748b; }
.badge-gold { background: var(--gold-dim); color: #8a6c2f; }

/* ------------------------------------------------------------ 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 13px; cursor: pointer; font-family: inherit; line-height: 1.4; white-space: nowrap;
  transition: transform .12s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { background: #f7f8fb; text-decoration: none; color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, #d3b474, var(--gold)); border-color: #b8965a; color: #23190a; font-weight: 600; box-shadow: 0 6px 16px rgba(200,169,106,.25); }
.btn-primary:hover { background: linear-gradient(135deg, #dcc083, #c9aa6b); color: #1b1307; }
.btn-dark { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.btn-dark:hover { background: var(--navy-600); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--blue); padding: 4px 6px; }
.btn-ghost:hover { background: var(--blue-bg); }
.btn-danger { color: var(--red); border-color: #f0cccc; background: #fffafa; }
.btn-danger:hover { background: var(--red-bg); }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.inline-form { display: inline; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ------------------------------------------------------------ 表单 */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.filters .field { margin: 0; }
.filters input, .filters select { min-width: 130px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label { font-size: 12px; color: var(--ink-2); font-weight: 500; letter-spacing: .2px; }
.field .help { font-size: 11px; color: var(--muted); }
.field .errorlist { list-style: none; padding: 0; margin: 2px 0 0; color: var(--red); font-size: 11px; }
input, select, textarea {
  font-family: inherit; font-size: 13px; color: var(--ink); background: #fff;
  border: 1px solid #d9dee7; border-radius: 8px; padding: 8px 10px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,169,106,.18); }
input[type="checkbox"], input[type="radio"] { width: auto; }
textarea { line-height: 1.6; resize: vertical; }
select[multiple] { padding: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 16px; }
.form-grid .span-2 { grid-column: span 2; }
.form-narrow { max-width: 640px; }

/* ------------------------------------------------------------ 页签/碎片 */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs a.active { color: var(--ink); border-bottom-color: var(--gold); font-weight: 600; }
.tabs a:hover { text-decoration: none; color: var(--ink); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; background: #f1f4f9; color: var(--ink-2); font-size: 11px; }
.chip-gold { background: var(--gold-dim); color: #85682c; }
.chip-red { background: var(--red-bg); color: var(--red); }
.dot-sep { color: #c9d0dc; padding: 0 4px; }

.empty { text-align: center; padding: 42px 20px; color: var(--muted); }
.empty strong { display: block; color: var(--ink-2); font-weight: 600; margin-bottom: 4px; }
.empty .mark { width: 44px; height: 44px; border-radius: 50%; background: #eef1f6; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; color: #9aa6b6; font-size: 18px; }

/* ------------------------------------------------------------ 提示条 */
.messages { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.msg { padding: 10px 14px; border-radius: 10px; font-size: 13px; border: 1px solid transparent; }
.msg-success { background: var(--green-bg); color: var(--green); border-color: #cbe8da; }
.msg-error { background: var(--red-bg); color: var(--red); border-color: #f0cccc; }
.msg-warning { background: var(--amber-bg); color: var(--amber); border-color: #f2e0c2; }
.msg-info, .msg-debug { background: var(--blue-bg); color: var(--blue); border-color: #cfe0f4; }

/* ------------------------------------------------------------ 海运卡片 */
.voyage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.voyage-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.voyage-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(16,29,51,.09); }
.vc-head { padding: 14px 16px 12px; background: linear-gradient(180deg, #fbfcfe, #fff); border-bottom: 1px solid var(--line); }
.vc-route { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.vc-route .arrow { color: var(--gold); font-weight: 400; }
.vc-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; color: var(--muted); font-size: 11px; }
.vc-body { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.vc-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.vc-price .big { font-size: 20px; font-weight: 700; color: #8a6c2f; }
.vc-price .unit { font-size: 11px; color: var(--muted); }
.vc-sos { display: flex; flex-wrap: wrap; gap: 6px; }
.so-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px dashed #d7dee9; border-radius: 7px; font-size: 11px; color: var(--ink-2); background: #fbfcfe; }
.so-chip.claimed { border-style: solid; color: var(--muted); background: #f5f7fa; text-decoration: line-through; }
.vc-foot { padding: 10px 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fcfdff; }
.free-strong { color: var(--green); font-weight: 700; }

.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 18px; }
.offer-card { background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: #fff; border-radius: var(--radius); padding: 16px 18px; position: relative; overflow: hidden; }
.offer-card::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: rgba(200,169,106,.14); }
.offer-card .reason { font-size: 11px; color: var(--gold-soft); letter-spacing: 1px; }
.offer-card .title { font-size: 16px; font-weight: 600; margin: 4px 0 2px; }
.offer-card .sub { font-size: 12px; color: #b8c5d8; }
.offer-card a { color: var(--gold-soft); font-size: 12px; }

/* ------------------------------------------------------------ 线路链 */
.route-chain { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.route-chain .node { background: #f1f4f9; border: 1px solid var(--line); border-radius: 7px; padding: 4px 9px; color: var(--ink-2); }
.route-chain .edge { color: var(--gold); font-size: 11px; display: inline-flex; align-items: center; gap: 2px; }
.route-chain .edge::before, .route-chain .edge::after { content: ""; width: 14px; height: 1px; background: #d9c9a4; }
.route-chain .node.key { background: var(--gold-dim); border-color: #e6d6b3; color: #7d6129; font-weight: 600; }

/* ------------------------------------------------------------ 报价结果 */
.quote-hero { background: linear-gradient(135deg, var(--navy-900), var(--navy-600)); color: #fff; border-radius: var(--radius); padding: 20px 22px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: flex-end; }
.quote-hero .label { color: #a9b8ce; font-size: 12px; letter-spacing: .5px; }
.quote-hero .total { font-size: 30px; font-weight: 700; color: var(--gold-soft); letter-spacing: .5px; }
.quote-hero .total small { font-size: 12px; color: #a9b8ce; font-weight: 400; margin-left: 6px; }
.quote-hero .fx { color: #9fb0c8; font-size: 11px; }
.breakdown { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.breakdown .item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fcfdff; }
.breakdown .item .label { font-size: 11px; color: var(--muted); }
.breakdown .item .amount { font-weight: 600; font-variant-numeric: tabular-nums; }
.real-cost { color: var(--amber); font-size: 11px; }

.combo { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; grid-template-columns: 1fr auto; gap: 12px; background: #fff; }
.combo + .combo { margin-top: 10px; }
.combo.best { border-color: #e0cda4; box-shadow: 0 8px 22px rgba(200,169,106,.12); }
.combo .rank { font-size: 11px; color: var(--gold); letter-spacing: 1px; }
.combo .name { font-weight: 600; }
.combo .price { text-align: right; font-size: 20px; font-weight: 700; color: #8a6c2f; font-variant-numeric: tabular-nums; }
.combo .price small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }

/* ------------------------------------------------------------ 公告 */
.notice-list { display: flex; flex-direction: column; }
.notice-item { display: flex; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.notice-item:last-child { border-bottom: 0; }
.notice-item:hover { background: #fbfcfe; }
.notice-item .type-mark { width: 40px; height: 40px; border-radius: 10px; background: #f1f4f9; color: var(--ink-2); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; flex: 0 0 40px; }
.notice-item.urgent .type-mark { background: var(--red-bg); color: var(--red); }
.notice-item .body { flex: 1; min-width: 0; }
.notice-item .title { font-weight: 600; font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.notice-item .excerpt { color: var(--muted); font-size: 12px; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notice-item .meta { color: var(--muted); font-size: 11px; margin-top: 6px; display: flex; gap: 10px; flex-wrap: wrap; }
.unread-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); display: inline-block; }
.article { font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.article h1, .article h2, .article h3 { color: var(--ink); margin: 18px 0 8px; }
.article p { margin: 0 0 12px; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 12px; }
.attachment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.attachment { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; background: #fcfdff; font-size: 12px; }
.attachment .icon { width: 32px; height: 32px; border-radius: 8px; background: var(--gold-dim); color: #85682c; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }
.attachment img { width: 100%; height: auto; border-radius: 8px; display: block; }
.attachment .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------ 邮件预览 */
.mail { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.mail-head { padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fbfcfe; font-size: 12px; color: var(--muted); display: grid; gap: 4px; }
.mail-head b { color: var(--ink-2); font-weight: 600; }
.mail-body { padding: 18px; white-space: pre-wrap; font-size: 13px; line-height: 1.8; color: var(--ink-2); font-family: var(--font); }

/* ------------------------------------------------------------ 时间线 */
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 14px 12px; font-size: 12px; }
.tl-item::before { content: ""; position: absolute; left: -18px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px #fff; }
.tl-item .when { color: var(--muted); font-size: 11px; }

/* ------------------------------------------------------------ 登录 */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: var(--navy-900); }
.login-art { position: relative; padding: 56px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(1000px 600px at 20% 10%, #1c3355, var(--navy-900) 60%); overflow: hidden; }
.login-art::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(200,169,106,.22); box-shadow: 0 0 0 60px rgba(200,169,106,.04), 0 0 0 120px rgba(200,169,106,.03); }
.login-art h1 { font-size: 34px; line-height: 1.35; letter-spacing: .6px; max-width: 480px; }
.login-art h1 em { font-style: normal; color: var(--gold-soft); }
.login-art p { color: #a9b8ce; max-width: 420px; font-size: 13px; }
.login-art .foot { font-size: 11px; color: #7f8ea7; letter-spacing: .4px; position: relative; z-index: 1; }
.login-form-wrap { background: #fff; display: flex; align-items: center; justify-content: center; padding: 40px 28px; }
.login-card { width: 100%; max-width: 360px; }
.login-card h2 { font-size: 22px; margin-bottom: 4px; }
.login-card .sub { color: var(--muted); font-size: 12px; margin-bottom: 24px; }
.login-card .btn { margin-top: 6px; }
.demo-box { margin-top: 24px; border-top: 1px dashed var(--line); padding-top: 14px; font-size: 11px; color: var(--muted); }
.demo-box table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.demo-box td { padding: 3px 0; }
.demo-box code { background: #f2f4f8; padding: 1px 5px; border-radius: 4px; color: var(--ink-2); }

/* ------------------------------------------------------------ 分页 */
.pager { display: flex; gap: 4px; align-items: center; justify-content: center; padding: 16px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: var(--ink-2); padding: 0 8px; }
.pager a:hover { background: #f5f7fa; text-decoration: none; }
.pager .current { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.pager .disabled { opacity: .45; }

/* ------------------------------------------------------------ 权限矩阵 */
.matrix { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 12px; }
.matrix th, .matrix td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.matrix th { font-size: 11px; color: var(--muted); font-weight: 600; background: #fafbfd; }
.matrix td.name, .matrix th.name { text-align: left; white-space: nowrap; }
.matrix tr:hover td { background: #fbfcfe; }
.matrix .check { width: 16px; height: 16px; accent-color: #a9873f; }
.matrix .all-row td { background: var(--gold-dim); color: #7d6129; font-size: 11px; }

/* ------------------------------------------------------------ 其他 */
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.grid-2.even { grid-template-columns: 1fr 1fr; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 6px 12px; font-size: 13px; }
.kv dt { color: var(--muted); font-size: 12px; }
.kv dd { margin: 0; color: var(--ink); }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.list-plain li:last-child { border-bottom: 0; }
.hint-box { background: #fbf8f1; border: 1px solid #efe4cc; border-radius: 10px; padding: 12px 14px; font-size: 12px; color: #7d6129; }
.hint-box strong { color: #6a5122; }
.alert-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--amber-bg); color: var(--amber); font-size: 12px; }
.alert-row.danger { background: var(--red-bg); color: var(--red); }
.alert-row.info { background: var(--blue-bg); color: var(--blue); }
.alert-row + .alert-row { margin-top: 8px; }

@media (max-width: 1100px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { flex-direction: column; }
  .sidebar { width: 100%; flex: none; height: auto; position: relative; padding: 14px; }
  .nav { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .nav-group { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .nav-title { display: none; }
  .content { padding: 16px; }
  .topbar { padding: 12px 16px; }
  .login-page { grid-template-columns: 1fr; }
  .login-art { display: none; }
}
