/* ===========================================================
   柬埔寨创新创业协会 财务系统
   视觉基调：取自会徽的七彩环（红橙黄绿蓝紫），正文保持克制
   =========================================================== */

:root {
  --c-red:    #E23744;
  --c-orange: #F58220;
  --c-yellow: #F7C948;
  --c-green:  #3BB273;
  --c-cyan:   #23B5D3;
  --c-blue:   #2D7DD2;
  --c-purple: #8E5AD6;

  --brand:    #1F2937;
  --brand-2:  #374151;

  --bg:       #F5F6F8;
  --panel:    #FFFFFF;
  --panel-2:  #FAFBFC;
  --line:     #E5E7EB;
  --line-2:   #F0F1F3;

  --text:     #1F2937;
  --text-2:   #4B5563;
  --muted:    #9CA3AF;
  --muted-2:  #6B7280;

  --up:       #E23744;   /* 涨/增：红 */
  --down:     #3BB273;   /* 跌/减：绿 */

  --radius:   12px;
  --radius-s: 8px;
  --shadow:   0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.06);
  --shadow-l: 0 8px 32px rgba(16,24,40,.12);

  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC",
          "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 数字使用等宽，表格不跳动 */
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.money { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; }
.money.up { color: var(--up); }
.money.down { color: var(--down); }

/* ============ 登录页 ============ */
.login-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 12% 18%, rgba(239,68,68,.10), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(45,125,210,.10), transparent 42%),
    radial-gradient(circle at 78% 88%, rgba(142,90,214,.10), transparent 42%),
    radial-gradient(circle at 22% 86%, rgba(59,178,115,.10), transparent 42%),
    var(--bg);
}

.login-card {
  width: 100%; max-width: 400px;
  background: var(--panel);
  border-radius: 18px;
  box-shadow: var(--shadow-l);
  padding: 40px 36px 32px;
  border: 1px solid var(--line);
}

.login-logo {
  width: 96px; height: 96px; border-radius: 50%;
  margin: 0 auto 20px; display: block;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0,0,0,.10);
}

.login-title { font-size: 20px; font-weight: 700; text-align: center; letter-spacing: .5px; }
.login-sub {
  text-align: center; color: var(--muted-2); font-size: 12px;
  margin-top: 6px; letter-spacing: 1.2px; text-transform: uppercase;
}
.login-km { text-align: center; color: var(--muted); font-size: 12px; margin-top: 8px; line-height: 1.5; }

.login-form { margin-top: 28px; }
.login-hint {
  margin-top: 18px; padding: 10px 12px;
  background: var(--panel-2); border: 1px solid var(--line-2);
  border-radius: var(--radius-s); font-size: 12px; color: var(--muted-2); text-align: center;
}

/* ============ 主框架 ============ */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 216px; flex-shrink: 0;
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: fixed; top: 0; bottom: 0; left: 0;
  z-index: 40;
}

.sidebar-head {
  padding: 18px 16px 16px;
  border-bottom: 1px solid var(--line-2);
  display: flex; gap: 11px; align-items: center;
}
.sidebar-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.sidebar-org { font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.sidebar-org small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 500; letter-spacing: .3px; }

/* 七彩环装饰条 */
.ring-bar {
  height: 4px;
  background: linear-gradient(90deg,
    var(--c-red) 0%, var(--c-orange) 16.6%, var(--c-yellow) 33.3%,
    var(--c-green) 50%, var(--c-cyan) 66.6%, var(--c-blue) 83.3%, var(--c-purple) 100%);
}

.nav { flex: 1; overflow-y: auto; padding: 10px 8px; }
.nav-group { margin-bottom: 4px; }
.nav-label {
  font-size: 10.5px; color: var(--muted); font-weight: 600;
  padding: 12px 12px 6px; letter-spacing: 1px; text-transform: uppercase;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; margin-bottom: 1px;
  border-radius: var(--radius-s);
  color: var(--text-2); cursor: pointer;
  font-size: 13.5px; transition: background .12s, color .12s;
  border: none; background: none; width: 100%; text-align: left;
  font-family: inherit;
}
.nav-item:hover { background: var(--panel-2); color: var(--text); }
.nav-item.active { background: #EEF2FF; color: var(--brand); font-weight: 600; }
.nav-item .ico { width: 17px; height: 17px; flex-shrink: 0; opacity: .75; }
.nav-item.active .ico { opacity: 1; }

.sidebar-foot {
  padding: 12px; border-top: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 9px;
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.user-meta { min-width: 0; flex: 1; }
.user-meta b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta span { font-size: 10.5px; color: var(--muted); }

.main { flex: 1; margin-left: 216px; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 56px; background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 30;
}
.topbar h1 { font-size: 16px; font-weight: 650; }
.topbar .spacer { flex: 1; }
.topbar-date { font-size: 12px; color: var(--muted-2); }
.menu-toggle { display: none; }

.content { padding: 22px 24px 48px; flex: 1; }

/* ============ 卡片 / 面板 ============ */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 10px;
}
.card-head h3 { font-size: 14px; font-weight: 650; }
.card-head .spacer { flex: 1; }
.card-body { padding: 18px; }
.card-body.tight { padding: 0; }

.grid { display: grid; gap: 16px; }
.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)); }
@media (max-width: 1200px) { .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 900px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ============ 统计块 ============ */
.stat {
  background: var(--panel); 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; left: 0; top: 0; bottom: 0; width: 3px;
}
.stat.red::after    { background: var(--c-red); }
.stat.orange::after { background: var(--c-orange); }
.stat.green::after  { background: var(--c-green); }
.stat.blue::after   { background: var(--c-blue); }
.stat.purple::after { background: var(--c-purple); }
.stat.cyan::after   { background: var(--c-cyan); }

.stat-label { font-size: 12px; color: var(--muted-2); display: flex; align-items: center; gap: 6px; }
.stat-value { font-size: 24px; font-weight: 700; margin-top: 6px; letter-spacing: -.4px; }
.stat-value .cur { font-size: 15px; font-weight: 600; color: var(--muted-2); margin-right: 2px; }
.stat-foot { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

/* ============ 表格 ============ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  background: var(--panel-2);
  padding: 10px 14px; text-align: left;
  font-weight: 600; color: var(--text-2); font-size: 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap; position: sticky; top: 0;
}
tbody td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--panel-2); }
td.right, th.right { text-align: right; }
td.center, th.center { text-align: center; }
.t-sub { color: var(--muted); font-size: 11.5px; }

/* ============ 徽章 ============ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600; line-height: 1.7;
  white-space: nowrap;
}
.badge.gray   { background: #F3F4F6; color: var(--muted-2); }
.badge.green  { background: #E7F6EE; color: #1E7A4B; }
.badge.red    { background: #FDECEE; color: #B4232E; }
.badge.blue   { background: #E8F1FC; color: #1B5FAF; }
.badge.orange { background: #FEF0E1; color: #B8620F; }
.badge.purple { background: #F1EAFB; color: #6B3FB5; }
.badge.cyan   { background: #E4F6FB; color: #147E96; }

/* 业务类型色标 */
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot.income  { background: var(--c-green); }
.dot.expense { background: var(--c-red); }
.dot.transfer{ background: var(--c-blue); }
.dot.other   { background: var(--muted); }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 15px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: var(--panel);
  color: var(--text); font-size: 13px; font-weight: 550;
  cursor: pointer; font-family: inherit;
  transition: background .12s, border-color .12s, opacity .12s;
  white-space: nowrap;
}
.btn:hover { background: var(--panel-2); border-color: #D5D9E0; }
.btn:active { transform: translateY(.5px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.danger { background: #fff; border-color: #F3C2C7; color: #B4232E; }
.btn.danger:hover { background: #FDF2F3; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted-2); }
.btn.ghost:hover { background: var(--panel-2); color: var(--text); }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.btn.lg { padding: 11px 22px; font-size: 14.5px; width: 100%; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* 七色按钮（收款码用） */
.btn-c {
  border: none; color: #fff; font-weight: 600;
  padding: 7px 16px; border-radius: var(--radius-s); cursor: pointer; font-family: inherit; font-size: 13px;
}
.btn-c.red { background: var(--c-red); }
.btn-c.orange { background: var(--c-orange); }
.btn-c.yellow { background: var(--c-yellow); color: #7A5200; }
.btn-c.green { background: var(--c-green); }
.btn-c.cyan { background: var(--c-cyan); }
.btn-c.blue { background: var(--c-blue); }
.btn-c.purple { background: var(--c-purple); }

/* ============ 表单 ============ */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 16px; }
.form-grid.one { grid-template-columns: 1fr; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 800px) { .form-grid, .form-grid.three { grid-template-columns: 1fr; } }
.field.span2 { grid-column: span 2; }
@media (max-width: 800px) { .field.span2 { grid-column: span 1; } }

.field label {
  display: block; font-size: 12.5px; font-weight: 550;
  color: var(--text-2); margin-bottom: 5px;
}
.field label .req { color: var(--c-red); margin-left: 2px; }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

input[type=text], input[type=password], input[type=number], input[type=date],
input[type=email], input[type=tel], input[type=search], select, textarea {
  width: 100%; padding: 8px 11px;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  font-size: 13.5px; font-family: inherit; color: var(--text);
  background: var(--panel); transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: #9BB5E8;
  box-shadow: 0 0 0 3px rgba(45,125,210,.10);
}
input:disabled, select:disabled { background: var(--panel-2); color: var(--muted-2); cursor: not-allowed; }
textarea { resize: vertical; min-height: 72px; line-height: 1.6; }
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='%239CA3AF' d='M6 8.5L2 4h8z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }
.amount-input { font-family: var(--mono); font-size: 17px !important; font-weight: 600; }

/* 记账行编辑器 */
.lines { border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.line-head, .line-row {
  display: grid; grid-template-columns: 88px 1fr 1fr 130px 34px;
  gap: 8px; align-items: center; padding: 8px 10px;
}
.line-head { background: var(--panel-2); font-size: 11.5px; color: var(--muted-2); font-weight: 600; border-bottom: 1px solid var(--line); }
.line-row { border-bottom: 1px solid var(--line-2); }
.line-row:last-child { border-bottom: none; }
.line-row input, .line-row select { padding: 6px 9px; font-size: 13px; }
@media (max-width: 1000px) {
  .line-head { display: none; }
  .line-row { grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
  .line-row > *:nth-child(5) { grid-column: 2; justify-self: end; }
}
.del-line {
  width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--panel); color: var(--muted-2); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1;
}
.del-line:hover { background: #FDF2F3; color: #B4232E; border-color: #F3C2C7; }

.balance-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: var(--radius-s);
  margin-top: 14px; font-size: 13px;
}
.balance-bar.ok { background: #F0FAF4; border-color: #C7EBD9; }
.balance-bar.bad { background: #FDF2F3; border-color: #F3C2C7; }

/* ============ 分段控件 ============ */
.segment { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 2px; gap: 2px; }
.segment button {
  border: none; background: none; padding: 5px 14px; border-radius: 6px;
  font-size: 12.5px; font-weight: 550; color: var(--muted-2); cursor: pointer; font-family: inherit;
}
.segment button.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.segment button:hover:not(.on) { color: var(--text); }

/* ============ 工具栏 ============ */
.toolbar {
  display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--line-2);
}
.toolbar .field { min-width: 140px; }
.toolbar .spacer { flex: 1; }

.filter-inline { display: flex; gap: 8px; align-items: center; }
.filter-inline input, .filter-inline select { width: auto; min-width: 150px; }

/* ============ 表格内工具 ============ */
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.icon-btn {
  width: 26px; height: 26px; border-radius: 6px; border: 1px solid transparent;
  background: none; cursor: pointer; color: var(--muted-2);
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: var(--panel-2); color: var(--text); border-color: var(--line); }

/* ============ 弹窗 ============ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(17,24,39,.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 20px;
  backdrop-filter: blur(2px);
}
.modal {
  background: var(--panel); border-radius: 14px; box-shadow: var(--shadow-l);
  width: 100%; max-width: 560px; max-height: 88vh; display: flex; flex-direction: column;
}
.modal.wide { max-width: 860px; }
.modal-head {
  padding: 16px 20px; border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 10px;
}
.modal-head h3 { font-size: 15px; font-weight: 650; }
.modal-head .spacer { flex: 1; }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-foot {
  padding: 14px 20px; border-top: 1px solid var(--line-2);
  display: flex; gap: 10px; justify-content: flex-end;
}

/* ============ 提示 ============ */
.toast-wrap {
  position: fixed; top: 18px; right: 18px; z-index: 200;
  display: flex; flex-direction: column; gap: 8px; max-width: 380px;
}
.toast {
  padding: 11px 15px; border-radius: var(--radius-s);
  background: var(--brand); color: #fff; font-size: 13px;
  box-shadow: var(--shadow-l); animation: slideIn .2s ease-out;
  display: flex; align-items: center; gap: 8px;
}
.toast.err { background: #B4232E; }
.toast.ok  { background: #1E7A4B; }
@keyframes slideIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

.alert {
  padding: 11px 14px; border-radius: var(--radius-s);
  font-size: 13px; margin-bottom: 14px;
  display: flex; gap: 9px; align-items: flex-start;
}
.alert.err  { background: #FDF2F3; border: 1px solid #F3C2C7; color: #8A1C25; }
.alert.warn { background: #FEF7E7; border: 1px solid #F7DFB0; color: #8A5A05; }
.alert.info { background: #EEF4FD; border: 1px solid #C9DDF6; color: #1B4E8A; }
.alert.ok   { background: #F0FAF4; border: 1px solid #C7EBD9; color: #15603A; }

/* ============ 空状态 ============ */
.empty { text-align: center; padding: 52px 20px; color: var(--muted); }
.empty-icon { font-size: 34px; opacity: .35; margin-bottom: 10px; }
.empty p { font-size: 13.5px; }

/* ============ 进度条 / 迷你图 ============ */
.bar-track { height: 6px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; transition: width .4s ease; }

.chart { width: 100%; height: 210px; }
.chart-legend { display: flex; gap: 16px; justify-content: center; font-size: 12px; color: var(--muted-2); margin-top: 6px; }
.chart-legend span { display: flex; align-items: center; gap: 5px; }

/* ============ 二维码卡片 ============ */
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.qr-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.qr-card-top { height: 4px; }
.qr-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.qr-card h4 { font-size: 14px; font-weight: 650; margin-bottom: 3px; }
.qr-card .qr-meta { font-size: 11.5px; color: var(--muted); margin-bottom: 12px; }
.qr-img-wrap {
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-s);
  padding: 10px; display: flex; justify-content: center; margin-bottom: 12px;
}
.qr-img-wrap svg, .qr-img-wrap img { width: 100%; max-width: 200px; height: auto; display: block; }
.qr-card-foot { margin-top: auto; display: flex; gap: 7px; }
.qr-card-foot .btn { flex: 1; }

/* ============ 公开收款页 ============ */
.pay-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(circle at 15% 20%, rgba(239,68,68,.09), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(45,125,210,.09), transparent 40%),
    radial-gradient(circle at 80% 85%, rgba(59,178,115,.09), transparent 40%),
    radial-gradient(circle at 20% 85%, rgba(247,201,72,.10), transparent 40%),
    var(--bg);
}
.pay-card {
  width: 100%; max-width: 400px; background: var(--panel);
  border-radius: 18px; box-shadow: var(--shadow-l); overflow: hidden;
  border: 1px solid var(--line);
}
.pay-head { padding: 26px 24px 22px; text-align: center; }
.pay-logo { width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 14px; object-fit: cover; box-shadow: 0 3px 14px rgba(0,0,0,.10); }
.pay-title { font-size: 18px; font-weight: 700; }
.pay-sub { font-size: 12px; color: var(--muted-2); margin-top: 5px; line-height: 1.5; }
.pay-amount-box {
  margin: 0 24px; padding: 18px; background: var(--panel-2);
  border: 1px solid var(--line-2); border-radius: var(--radius); text-align: center;
}
.pay-amount-box .lbl { font-size: 12px; color: var(--muted-2); }
.pay-amount-box .val { font-size: 32px; font-weight: 700; font-family: var(--mono); margin-top: 3px; letter-spacing: -.5px; }
.pay-form { padding: 22px 24px 24px; }
.pay-form .field { margin-bottom: 14px; }
.pay-foot { text-align: center; padding: 14px 24px 20px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.pay-success { padding: 40px 28px; text-align: center; }
.pay-success .ring {
  width: 62px; height: 62px; border-radius: 50%; background: #E7F6EE;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
  font-size: 30px; color: #1E7A4B;
}
.pay-success h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.pay-success .rcpt {
  margin: 18px 0; padding: 12px; background: var(--panel-2);
  border: 1px dashed var(--line); border-radius: var(--radius-s);
  font-family: var(--mono); font-size: 13px; word-break: break-all;
}

/* ============ 分页 ============ */
.pager {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 12px 18px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted-2);
}

/* ============ 详情描述列表 ============ */
.desc { display: grid; grid-template-columns: 96px 1fr; gap: 9px 14px; font-size: 13px; }
.desc dt { color: var(--muted-2); font-size: 12.5px; }
.desc dd { font-weight: 500; }

/* ============ 杂项 ============ */
.muted { color: var(--muted); }
.small { font-size: 12px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt0 { margin-top: 0; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.flex { display: flex; } .items-center { align-items: center; } .gap8 { gap: 8px; } .gap12 { gap: 12px; }
.flex1 { flex: 1; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--line-2); margin: 16px 0; }

@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-l); }
  .main { margin-left: 0; }
  .menu-toggle { display: inline-flex; }
  .content { padding: 16px 14px 40px; }
  .topbar { padding: 0 14px; }
  .topbar-date { display: none; }
}
