/* ============================================================================
 *  盛航云控制台 · 样式
 *  设计基调沿用门户：品牌蓝渐变 / 大圆角 / 轻阴影
 *  但控制台信息密度更高，所以间距和字号比门户收紧
 * ==========================================================================*/

:root {
  --brand: #1d4ed8;
  --brand-2: #3b82f6;
  --brand-3: #06b6d4;
  --brand-grad: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 50%, #06b6d4 100%);
  --brand-deep: #0d3383;
  --ink: #0b1b3a;
  --ink-2: #33415c;
  --muted: #6b7a99;
  --line: #e8eef8;
  --line-2: #f1f5fb;
  --bg: #f3f6fc;
  --card: #fff;
  --ok: #00a870;
  --ok-bg: #e8f8f1;
  --warn: #ff9500;
  --warn-bg: #fff5e6;
  --danger: #e54545;
  --danger-bg: #feecec;
  --info-bg: #eaf1ff;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-xs: 6px;
  --shadow: 0 2px 10px rgba(15, 40, 90, .05);
  --shadow-md: 0 8px 24px rgba(15, 40, 90, .09);
  --shadow-lg: 0 20px 50px rgba(15, 40, 90, .16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --side-w: 224px;
  --head-h: 58px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.6;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================================
 *  顶部栏
 * ==========================================================================*/
.cs-head {
  height: var(--head-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 20px;
  padding: 0 20px;
  position: sticky; top: 0; z-index: 100;
}
.cs-logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; color: var(--ink); }
.cs-logo img { width: 26px; height: 26px; }
.cs-logo:hover { text-decoration: none; }
.cs-logo .cs-tag {
  font-size: 11px; font-weight: 500; color: var(--brand);
  background: var(--info-bg); padding: 1px 7px; border-radius: 20px;
}

.cs-head-nav { display: flex; gap: 4px; margin-left: 8px; }
.cs-head-nav a {
  padding: 6px 12px; border-radius: var(--radius-sm); font-size: 13.5px;
  color: var(--ink-2); font-weight: 500;
}
.cs-head-nav a:hover { background: var(--line-2); text-decoration: none; }
.cs-head-nav a.on { background: var(--info-bg); color: var(--brand); }

.cs-head-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.cs-balance {
  display: flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, #f7faff, #eef4ff);
  border: 1px solid #dce6f8; border-radius: 20px;
  padding: 5px 14px; font-size: 13px;
}
.cs-balance b { color: var(--brand); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.cs-balance span { color: var(--muted); font-size: 12px; }

.cs-icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; cursor: pointer;
  position: relative; color: var(--ink-2); font-size: 15px;
}
.cs-icon-btn:hover { background: var(--line-2); }
.cs-icon-btn .badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--danger); color: #fff;
  border-radius: 8px; font-size: 10px; line-height: 16px;
  text-align: center; font-weight: 600;
}

.cs-user-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px; border-radius: 20px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-size: 13.5px; color: var(--ink-2);
}
.cs-user-btn:hover { background: var(--line-2); }
.cs-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-grad); color: #fff;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 600;
}

/* 下拉菜单 */
.cs-menu {
  position: absolute; top: calc(var(--head-h) - 6px); right: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); min-width: 210px; padding: 6px;
  z-index: 200;
}
.cs-menu a, .cs-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 11px; border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--ink-2); text-align: left;
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.cs-menu a:hover, .cs-menu button:hover { background: var(--line-2); text-decoration: none; }
.cs-menu .sep { height: 1px; background: var(--line); margin: 5px 0; }
.cs-menu .danger { color: var(--danger); }
.cs-menu .cs-menu-head {
  padding: 10px 11px 8px; border-bottom: 1px solid var(--line); margin-bottom: 5px;
}
.cs-menu .cs-menu-head b { display: block; font-size: 14px; color: var(--ink); }
.cs-menu .cs-menu-head span { font-size: 12px; color: var(--muted); }

/* ============================================================================
 *  布局
 * ==========================================================================*/
.cs-wrap { display: flex; min-height: calc(100vh - var(--head-h)); }

.cs-side {
  width: var(--side-w); flex: 0 0 var(--side-w);
  background: #fff; border-right: 1px solid var(--line);
  padding: 14px 10px; position: sticky; top: var(--head-h);
  height: calc(100vh - var(--head-h)); overflow-y: auto;
}
.cs-side-group { margin-bottom: 6px; }
.cs-side-group > i {
  display: block; font-style: normal; font-size: 11.5px; font-weight: 600;
  color: #9aa8c4; padding: 12px 12px 6px; letter-spacing: .04em;
}
.cs-side a {
  display: flex; align-items: center; gap: 10px;
  padding: 8.5px 12px; border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--ink-2); font-weight: 500;
  margin-bottom: 1px;
}
.cs-side a:hover { background: var(--line-2); text-decoration: none; }
.cs-side a.on {
  background: var(--info-bg); color: var(--brand); font-weight: 600;
  box-shadow: inset 2px 0 0 var(--brand);
}
.cs-side a .ico { width: 17px; text-align: center; opacity: .82; font-size: 14.5px; }
.cs-side a .n {
  margin-left: auto; font-size: 11px; background: var(--danger); color: #fff;
  padding: 0 6px; border-radius: 9px; min-width: 17px; text-align: center;
  line-height: 17px; font-weight: 600;
}

.cs-body { flex: 1; min-width: 0; padding: 22px 26px 60px; }

/* ============================================================================
 *  页头
 * ==========================================================================*/
.cs-title { display: flex; align-items: center; gap: 12px; margin: 0 0 4px; flex-wrap: wrap; }
.cs-title h1 { font-size: 21px; margin: 0; font-weight: 700; letter-spacing: -.01em; }
.cs-title .sub { font-size: 13px; color: var(--muted); }
.cs-page-desc { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; }
.cs-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================================================================
 *  卡片
 * ==========================================================================*/
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 16px; overflow: hidden;
}
.card-h {
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.card-h h2, .card-h h3 { font-size: 15px; margin: 0; font-weight: 600; }
.card-h .tip { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.card-h .r { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-b { padding: 18px; }
.card-b.tight { padding: 0; }

/* ============================================================================
 *  按钮
 * ==========================================================================*/
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 500; font-family: inherit;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  cursor: pointer; white-space: nowrap; transition: .15s;
  line-height: 1.5;
}
.btn:hover { background: var(--line-2); text-decoration: none; border-color: #d8e2f2; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--brand-grad); color: #fff; border-color: transparent;
  box-shadow: 0 3px 12px rgba(29, 78, 216, .22);
}
.btn-primary:hover { background: var(--brand-grad); filter: brightness(1.06); border-color: transparent; }

.btn-danger { color: var(--danger); border-color: #f7d4d4; }
.btn-danger:hover { background: var(--danger-bg); }

.btn-ok { background: var(--ok); color: #fff; border-color: transparent; }
.btn-ok:hover { background: #009060; }

.btn-sm { padding: 5px 11px; font-size: 12.5px; border-radius: var(--radius-xs); }
.btn-lg { padding: 11px 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-link { border: 0; background: none; color: var(--brand); padding: 4px 6px; }
.btn-link:hover { background: var(--info-bg); }

/* ============================================================================
 *  统计块
 * ==========================================================================*/
.stat-grid {
  display: grid; gap: 14px; margin-bottom: 16px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat::after {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.07), transparent 70%);
}
.stat .l { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.stat .v {
  font-size: 25px; font-weight: 700; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
.stat .v small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.stat .d { font-size: 12px; color: var(--muted); margin-top: 5px; }
.stat .d .up { color: var(--ok); }
.stat .d .down { color: var(--danger); }
.stat.brand { background: var(--brand-grad); border-color: transparent; }
.stat.brand .l, .stat.brand .d { color: rgba(255,255,255,.82); }
.stat.brand .v { color: #fff; }
.stat.brand .v small { color: rgba(255,255,255,.75); }

/* ============================================================================
 *  表格
 * ==========================================================================*/
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th {
  text-align: left; padding: 11px 14px; font-weight: 600;
  color: var(--muted); font-size: 12.5px; background: #fafcff;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.tbl td {
  padding: 12px 14px; border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tr:hover td { background: #fafcff; }
table.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl .mono { font-family: var(--mono); font-size: 12.5px; }
table.tbl .nowrap { white-space: nowrap; }
.tbl-empty { padding: 50px 20px; text-align: center; color: var(--muted); }
.tbl-empty .ico { font-size: 34px; opacity: .3; display: block; margin-bottom: 10px; }

/* ============================================================================
 *  标签
 * ==========================================================================*/
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 20px;
  font-size: 12px; font-weight: 500; line-height: 1.7; white-space: nowrap;
}
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.warn { background: var(--warn-bg); color: #c47a00; }
.tag.err { background: var(--danger-bg); color: var(--danger); }
.tag.info { background: var(--info-bg); color: var(--brand); }
.tag.gray { background: #f0f3f8; color: var(--muted); }
.tag.purple { background: #f3ecff; color: #7c3aed; }

/* ============================================================================
 *  表单
 * ==========================================================================*/
.field { margin-bottom: 15px; }
.field > label {
  display: block; font-size: 13px; font-weight: 500;
  margin-bottom: 6px; color: var(--ink-2);
}
.field > label .req { color: var(--danger); margin-left: 2px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; display: block; font-style: normal; }
.field .err { font-size: 12px; color: var(--danger); margin-top: 5px; }

/* 单选卡片（开票类型、抬头类型这种"选项 + 一句话说明"）
   原生 radio 塞不下一行解释文字，所以做成卡片 */
.radio-card {
  display: flex; flex-direction: column; gap: 3px;
  flex: 1 1 150px; min-width: 140px;
  padding: 11px 14px; cursor: pointer;
  border: 1.5px solid #e2e9f5; border-radius: var(--radius-sm);
  background: #fff; transition: .15s;
}
.radio-card:hover { border-color: #c5d8f5; background: #fafcff; }
.radio-card.on { border-color: var(--brand); background: var(--info-bg); }
.radio-card.on b { color: var(--brand); }
.radio-card b { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.radio-card span { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.radio-card.sm { flex: 0 0 auto; min-width: 84px; align-items: center; padding: 9px 18px; }

.input, .select, .textarea {
  width: 100%; padding: 9px 12px;
  border: 1px solid #dbe3f0; border-radius: var(--radius-sm);
  font-size: 13.5px; font-family: inherit; color: var(--ink);
  background: #fff; transition: .15s; outline: none;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.input:disabled { background: #f7f9fc; color: var(--muted); }
.input.mono { font-family: var(--mono); font-size: 13px; }
.textarea { min-height: 100px; resize: vertical; line-height: 1.65; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7a99' d='M6 8.5L1.5 4h9z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }

.form-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* 复选/单选 */
.check { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 13.5px; }
.check input { margin-top: 3px; accent-color: var(--brand); width: 15px; height: 15px; }
.check .t { color: var(--ink-2); }
.check .t small { display: block; color: var(--muted); font-size: 12px; }

/* 开关 */
.switch { position: relative; display: inline-block; width: 42px; height: 23px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .sl {
  position: absolute; inset: 0; background: #cbd5e1; border-radius: 23px;
  transition: .22s; cursor: pointer;
}
.switch .sl::before {
  content: ''; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .22s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch input:checked + .sl { background: var(--brand); }
.switch input:checked + .sl::before { transform: translateX(19px); }

/* ============================================================================
 *  弹窗
 * ==========================================================================*/
.modal-mask {
  position: fixed; inset: 0; background: rgba(11,27,58,.45);
  backdrop-filter: blur(2px); z-index: 900;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn .16s;
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(14px); } }

.modal {
  background: #fff; border-radius: var(--radius); width: 100%;
  max-width: 520px; max-height: 88vh; overflow: hidden;
  box-shadow: var(--shadow-lg); animation: slideUp .2s;
  display: flex; flex-direction: column;
}
.modal.wide { max-width: 760px; }
.modal.narrow { max-width: 400px; }
.modal-h {
  padding: 17px 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; flex: 0 0 auto;
}
.modal-h h3 { margin: 0; font-size: 16px; font-weight: 600; }
.modal-h .x {
  margin-left: auto; width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: none; cursor: pointer; font-size: 19px;
  color: var(--muted); line-height: 1;
}
.modal-h .x:hover { background: var(--line-2); color: var(--ink); }
.modal-b { padding: 20px; overflow-y: auto; flex: 1; }
.modal-f {
  padding: 14px 20px; border-top: 1px solid var(--line);
  display: flex; gap: 9px; justify-content: flex-end; flex: 0 0 auto;
  background: #fafcff;
}

/* ============================================================================
 *  提示
 * ==========================================================================*/
.toast-wrap {
  position: fixed; top: 76px; right: 20px; z-index: 1000;
  display: flex; flex-direction: column; gap: 9px; pointer-events: none;
}
.toast {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 12px 16px; min-width: 250px; max-width: 380px;
  display: flex; align-items: flex-start; gap: 10px;
  animation: slideIn .22s; pointer-events: auto; font-size: 13.5px;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } }
.toast .ti { font-size: 15px; line-height: 1.4; flex: 0 0 auto; }
.toast.ok { border-left: 3px solid var(--ok); }
.toast.ok .ti { color: var(--ok); }
.toast.err { border-left: 3px solid var(--danger); }
.toast.err .ti { color: var(--danger); }
.toast.warn { border-left: 3px solid var(--warn); }
.toast.warn .ti { color: var(--warn); }
.toast .tc { flex: 1; }
.toast .tc b { display: block; margin-bottom: 2px; }
.toast .tc p { margin: 0; color: var(--muted); font-size: 12.5px; }

/* 空状态 */
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty .ico { font-size: 44px; opacity: .28; display: block; margin-bottom: 12px; }
.empty h3 { margin: 0 0 6px; font-size: 15px; color: var(--ink-2); font-weight: 600; }
.empty p { margin: 0 0 16px; font-size: 13.5px; }

/* 加载 */
.loading { padding: 46px; text-align: center; color: var(--muted); font-size: 13.5px; }
.spinner {
  width: 26px; height: 26px; border: 2.5px solid var(--line);
  border-top-color: var(--brand); border-radius: 50%;
  animation: spin .7s linear infinite; margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 页面级加载条 */
#pageBar {
  position: fixed; top: 0; left: 0; height: 2.5px; z-index: 1100;
  background: var(--brand-grad); width: 0; transition: width .25s, opacity .3s;
  box-shadow: 0 0 8px rgba(59,130,246,.6);
}

/* ============================================================================
 *  代码块 / 复制框
 * ==========================================================================*/
.code-box {
  background: #0f1d3a; color: #d6e2f5; border-radius: var(--radius-sm);
  padding: 14px 16px; font-family: var(--mono); font-size: 12.5px;
  line-height: 1.75; overflow-x: auto; position: relative;
  white-space: pre; margin: 0;
}
.code-box .cp {
  position: absolute; top: 9px; right: 9px;
  background: rgba(255,255,255,.11); color: #cfe0ff; border: 0;
  border-radius: var(--radius-xs); padding: 4px 10px;
  font-size: 11.5px; cursor: pointer; font-family: inherit;
}
.code-box .cp:hover { background: rgba(255,255,255,.2); }

.key-reveal {
  background: #fffbf0; border: 1px solid #ffe0a3;
  border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 14px;
}
.key-reveal .kt { font-size: 13px; font-weight: 600; color: #a06800; margin-bottom: 8px; }
.key-reveal .kv {
  display: flex; gap: 8px; align-items: center;
}
.key-reveal .kv code {
  flex: 1; background: #fff; border: 1px solid #ffe0a3; border-radius: var(--radius-xs);
  padding: 9px 12px; font-family: var(--mono); font-size: 13px;
  word-break: break-all; color: var(--ink);
}
.key-reveal .kn { font-size: 12px; color: #a06800; margin-top: 8px; }

/* ============================================================================
 *  进度条
 * ==========================================================================*/
.bar { height: 7px; background: var(--line); border-radius: 6px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand-grad); border-radius: 6px; transition: width .5s; }
.bar.warn > i { background: linear-gradient(90deg, #ffb020, #ff8a00); }
.bar.err > i { background: linear-gradient(90deg, #ff6b6b, #e54545); }

/* ============================================================================
 *  图表（纯 CSS 柱状图）
 *  ★ .col 必须撑满 .chart 的高度，否则柱子上的 height:% 没有参照，
 *    会全部塌成 min-height（踩过这个坑）
 * ==========================================================================*/
.chart { display: flex; align-items: stretch; gap: 5px; height: 170px; padding: 10px 0 0; }
.chart .col {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; gap: 6px; min-width: 0; height: 100%;
}
.chart .cb {
  width: 100%; max-width: 46px; background: var(--brand-grad);
  border-radius: 5px 5px 0 0; transition: .4s; position: relative;
  flex: 0 0 auto;
}
.chart .col:hover .cb { filter: brightness(1.15); }
.chart .cl { font-size: 10.5px; color: var(--muted); white-space: nowrap; flex: 0 0 auto; }
.chart .cb .cv {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  font-size: 11px; color: var(--ink-2); white-space: nowrap; margin-bottom: 3px;
  opacity: 0; transition: .15s; font-variant-numeric: tabular-nums;
}
.chart .col:hover .cb .cv { opacity: 1; }

/* ============================================================================
 *  分页
 * ==========================================================================*/
.pager {
  display: flex; align-items: center; justify-content: center;
  gap: 5px; padding: 16px; flex-wrap: wrap;
}
.pager button {
  min-width: 32px; height: 32px; padding: 0 9px;
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius-xs);
  font-size: 13px; cursor: pointer; color: var(--ink-2); font-family: inherit;
}
.pager button:hover:not(:disabled) { background: var(--line-2); }
.pager button.on { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 600; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.pager .info { font-size: 12.5px; color: var(--muted); margin-right: 8px; }

/* ============================================================================
 *  Tab
 * ==========================================================================*/
.tabs { display: flex; gap: 3px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button {
  padding: 10px 15px; border: 0; background: none; cursor: pointer;
  font-size: 13.5px; color: var(--muted); font-family: inherit;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
  font-weight: 500;
}
.tabs button:hover { color: var(--ink-2); }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

/* ============================================================================
 *  信息行（详情页）
 * ==========================================================================*/
.info-list { display: grid; gap: 0; }
.info-row {
  display: flex; gap: 14px; padding: 11px 0;
  border-bottom: 1px solid var(--line-2); font-size: 13.5px;
}
.info-row:last-child { border-bottom: 0; }
.info-row .k { width: 130px; flex: 0 0 130px; color: var(--muted); }
.info-row .v { flex: 1; word-break: break-all; }
.info-row .v.mono { font-family: var(--mono); font-size: 12.5px; }

/* ============================================================================
 *  响应式
 * ==========================================================================*/
.cs-mobile-toggle { display: none; }

@media (max-width: 900px) {
  .cs-side {
    position: fixed; left: 0; top: var(--head-h); z-index: 150;
    transform: translateX(-100%); transition: transform .25s;
    box-shadow: var(--shadow-lg); width: 250px; flex-basis: 250px;
  }
  .cs-side.open { transform: translateX(0); }
  .cs-mobile-toggle { display: grid; }
  .cs-head-nav { display: none; }
  .cs-body { padding: 16px 14px 50px; }
  .stat-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
  .stat { padding: 13px 14px; }
  .stat .v { font-size: 21px; }
  .modal { max-width: 100%; }
}

@media (max-width: 560px) {
  .cs-balance { display: none; }
  .cs-title h1 { font-size: 18px; }
  .info-row { flex-direction: column; gap: 3px; }
  .info-row .k { width: auto; flex: none; font-size: 12.5px; }
}

/* 打印 */
@media print {
  .cs-side, .cs-head, .cs-actions, .pager, .toast-wrap { display: none !important; }
  .cs-body { padding: 0; }
  .card { box-shadow: none; border-color: #ddd; }
}
