/* ============================================================
   水滴公益管理后台 · UI v8 「水滴蓝 · 轻量扁平 B 端」
   品牌蓝 #1677FF · 表头浅灰 · 斑马纹 · 悬停高亮 · 8px 栅格
   ============================================================ */
:root {
  --primary: #1677FF;
  --primary-hover: #4096FF;
  --primary-deep: #0958D9;
  --primary-light: #E8F3FF;
  --primary-bg: #F0F7FF;
  --success: #52C41A;
  --warning: #FAAD14;
  --danger: #FF4D4F;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --border: #EBEDF0;
  --border-strong: #D9DEE6;
  --text-0: #1F2329;
  --text-1: #4E5969;
  --text-2: #86909C;
  --text-3: #C0C6CF;
  --table-head-bg: #FAFBFC;
  --zebra: #F7F9FB;
  --row-hover: #F0F7FF;
  --radius-card: 10px;
  --radius-control: 6px;
  --shadow-card: 0 1px 3px rgba(31, 35, 41, .04), 0 4px 16px rgba(31, 35, 41, .05);
  --shadow-pop: 0 8px 24px rgba(31, 35, 41, .10);
  --shadow-modal: 0 12px 40px rgba(15, 30, 60, .18);
  --shadow-btn: 0 2px 6px rgba(22, 119, 255, .24);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Inter', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-0);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #D9DEE6; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #C0C6CF; }
::-webkit-scrollbar-track { background: transparent; }

/* ============ 登录页 ============ */
.login-page { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.login-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0B3A8C 0%, #1677FF 60%, #4096FF 100%);
}
.login-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.login-bg::after {
  content: ''; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: rgba(255,255,255,.10); filter: blur(100px); top: -10%; right: -8%;
}
.login-card {
  position: relative; width: 420px; max-width: 92vw;
  background: #fff; border-radius: 14px;
  padding: 44px 42px 34px;
  box-shadow: var(--shadow-modal);
  animation: rise .5s cubic-bezier(.2,.8,.3,1);
}
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.login-logo { text-align: center; margin-bottom: 24px; }
.login-logo-icon {
  width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 16px;
  background: var(--primary); color: #fff; font-size: 30px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(22,119,255,.35);
}
.login-logo-text { font-size: 22px; font-weight: 700; color: var(--text-0); }
.login-logo-sub { font-size: 12px; color: var(--text-2); margin-top: 4px; letter-spacing: 3px; }
.login-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.login-sub { font-size: 13px; color: var(--text-2); margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; color: var(--text-1); margin-bottom: 8px; font-weight: 500; }
.input-box input {
  width: 100%; height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius-control);
  padding: 0 14px; font-size: 14px; outline: none; background: #FAFBFC;
  transition: all .2s;
}
.input-box input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(22,119,255,.12); }
.login-error { min-height: 22px; color: var(--danger); font-size: 13px; margin-bottom: 6px; }
.login-tip { text-align: center; color: var(--text-3); font-size: 12px; margin-top: 18px; }

/* ============ 按钮 ============ */
.btn-gradient {
  border: none; cursor: pointer; color: #fff; font-size: 14px; font-weight: 600;
  height: 40px; padding: 0 20px; border-radius: var(--radius-control);
  background: var(--primary); box-shadow: var(--shadow-btn);
  transition: all .2s;
}
.btn-gradient:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(22,119,255,.3); }
.btn-gradient:active { transform: translateY(0); }
.btn-block { width: 100%; height: 44px; }
.btn-orange { background: var(--warning); box-shadow: 0 2px 6px rgba(250,173,20,.3); }
.btn-orange:hover { background: #FFC53D; }
.btn-green { background: var(--success); box-shadow: 0 2px 6px rgba(82,196,26,.3); }
.btn-green:hover { background: #73D13D; }
.btn-ghost {
  border: 1px solid var(--border-strong); background: #fff; color: var(--text-1);
  height: 36px; padding: 0 16px; border-radius: var(--radius-control); cursor: pointer; font-size: 13px;
  transition: all .2s;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 12.5px; }

/* ============ 布局 ============ */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 232px; flex-shrink: 0; display: flex; flex-direction: column;
  background: #fff; border-right: 1px solid var(--border);
  position: sticky; top: 0; height: 100vh;
}
.side-logo { display: flex; align-items: center; gap: 10px; padding: 22px 20px 18px; }
.side-logo-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff;
  box-shadow: 0 4px 12px rgba(22,119,255,.3);
}
.side-logo-text { font-size: 16px; font-weight: 700; color: var(--text-0); line-height: 1.2; }
.side-logo-text span { display: block; font-size: 11px; color: var(--text-3); font-weight: 400; letter-spacing: 2px; }
.side-nav { flex: 1; padding: 8px 12px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; margin-bottom: 4px;
  border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--text-1);
  transition: all .18s; position: relative; font-weight: 500;
}
.nav-item svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.nav-item:hover { background: var(--primary-bg); color: var(--primary); }
.nav-item.active { background: var(--primary); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(22,119,255,.28); }
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px;
  border-radius: 2px; background: #69B1FF;
}
.side-footer { padding: 14px 20px; font-size: 12px; color: var(--text-3); border-top: 1px solid var(--border); line-height: 1.7; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 60px; background: #fff;
  border-bottom: 1px solid var(--border); display: flex; align-items: center;
  justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 50;
}
.topbar-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.topbar-title::before { content: ''; width: 4px; height: 15px; border-radius: 2px; background: var(--primary); }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-link { color: var(--primary); text-decoration: none; font-size: 13px; }
.topbar-link:hover { color: var(--primary-hover); }
.admin-badge {
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.content { padding: 24px; }

/* ============ 统计卡片 ============ */
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 16px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 18px 20px; box-shadow: var(--shadow-card); position: relative; overflow: hidden;
  transition: all .22s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.stat-card.c-blue::before { background: var(--primary); }
.stat-card.c-green::before { background: var(--success); }
.stat-card.c-orange::before { background: var(--warning); }
.stat-card.c-purple::before { background: #722ED1; }
.stat-card.c-red::before { background: var(--danger); }
.stat-icon {
  position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 19px; color: #fff;
}
.c-blue .stat-icon { background: var(--primary); }
.c-green .stat-icon { background: var(--success); }
.c-orange .stat-icon { background: var(--warning); }
.c-purple .stat-icon { background: #722ED1; }
.c-red .stat-icon { background: var(--danger); }
.stat-label { font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.stat-value { font-size: 24px; font-weight: 700; letter-spacing: .2px; color: var(--text-0); }
.stat-value small { font-size: 12px; font-weight: 500; color: var(--text-2); margin-left: 2px; }
.stat-extra { font-size: 12px; color: var(--text-3); margin-top: 6px; }

/* ============ 面板 ============ */
.panel {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 20px 24px; margin-bottom: 16px;
}
.panel-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.panel-title::before { content: ''; width: 4px; height: 14px; border-radius: 2px; background: var(--primary); }
.panel-tools { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }

/* ============ 图表 ============ */
.chart-box { width: 100%; height: 240px; position: relative; }
.chart-svg { width: 100%; height: 100%; }

/* ============ 表格（核心） ============ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
table.data { width: 100%; border-collapse: collapse; }
table.data th {
  text-align: left; font-size: 12.5px; color: var(--text-1); font-weight: 600;
  padding: 0 16px; height: 46px; border-bottom: 1px solid var(--border); white-space: nowrap;
  background: var(--table-head-bg);
}
table.data td {
  padding: 13px 16px; border-bottom: 1px solid #F5F6F8;
  font-size: 13.5px; color: var(--text-0); vertical-align: middle;
  text-align: left;
}
/* 斑马纹 + 悬停整行浅蓝高亮 */
table.data tbody tr:nth-child(even) td { background: var(--zebra); }
table.data tbody tr:hover td { background: var(--row-hover); }
table.data tbody tr:last-child td { border-bottom: none; }
/* 对齐规范：文字左对齐（默认），金额右对齐，操作居中 */
table.data td.amt-cell { text-align: right; color: var(--primary); font-size: 15px; font-weight: 700; white-space: nowrap; }
table.data td.amt-cell .amt-sub { color: var(--text-3); font-size: 12px; font-weight: 400; }
table.data td.ops-cell { text-align: center; }
.ops-cell .row-actions { justify-content: center; }
/* 封面图：统一尺寸圆角居中裁剪，缺图显示占位 */
.cover-cell { width: 80px; }
.cover-cell img {
  width: 64px; height: 40px; border-radius: 6px; object-fit: cover; display: block;
  border: 1px solid var(--border);
}
.cover-ph {
  width: 64px; height: 40px; border-radius: 6px; border: 1px solid var(--border);
  background: #F2F4F7; color: var(--text-3);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
/* 进度条：浅灰轨道 + 品牌蓝 + 圆角，百分比在右侧 */
.prog-cell { white-space: nowrap; }
.prog-track {
  display: inline-block; vertical-align: middle; width: 80px; height: 8px;
  background: #F0F2F5; border-radius: 4px; overflow: hidden;
}
.prog-fill { height: 100%; background: var(--primary); border-radius: 4px; transition: width .4s ease; }
.prog-pct { display: inline-block; margin-left: 8px; font-size: 12px; color: var(--text-1); vertical-align: middle; }
/* 操作按钮视觉分层：编辑=品牌蓝 / 下架上架=灰 / 删除=红，悬停下划线 */
.row-actions { display: flex; gap: 16px; }
.link-btn {
  color: var(--primary); cursor: pointer; font-size: 13px; background: none; border: none;
  text-decoration: none; transition: color .15s; padding: 0;
}
.link-btn:hover { text-decoration: underline; }
.link-btn.neutral { color: var(--text-2); }
.link-btn.neutral:hover { color: var(--text-1); }
.link-btn.danger { color: var(--danger); }
.link-btn.danger:hover { color: #FF7875; }

/* ============ 标签 / 徽章（统一尺寸胶囊） ============ */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500; line-height: 1.4; white-space: nowrap;
}
.badge-active { background: var(--primary-light); color: var(--primary); }
.badge-pending { background: #FFF7E6; color: #D48806; }
.badge-closed { background: #F2F3F5; color: var(--text-2); }
.badge-success { background: #F0FBF4; color: #389E0D; }
.badge-failed { background: #FFF1F0; color: #CF1322; }
.badge-refunded { background: #F2F3F5; color: var(--text-2); }

/* ============ 筛选 tab ============ */
.filter-tabs { display: flex; gap: 10px; margin-bottom: 16px; }
.filter-tab {
  padding: 8px 18px; border-radius: 999px; font-size: 13px; cursor: pointer;
  background: #F0F2F5; color: var(--text-1); transition: all .2s; border: none;
}
.filter-tab:hover { background: var(--primary-light); color: var(--primary); }
.filter-tab.active { background: var(--primary); color: #fff; box-shadow: var(--shadow-btn); }

/* ============ 弹窗 ============ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 100;
  display: flex; align-items: center; justify-content: center; animation: fadeIn .22s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; border-radius: 12px; width: 680px; max-width: 94vw; max-height: 88vh;
  display: flex; flex-direction: column; box-shadow: var(--shadow-modal);
  animation: pop .28s cubic-bezier(.2,.9,.3,1.15);
}
@keyframes pop { from { transform: scale(.94) translateY(8px); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal.sm { width: 480px; }
.modal-head {
  padding: 18px 24px 14px; font-size: 16px; font-weight: 700; display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
}
.modal-head .close { margin-left: auto; cursor: pointer; color: var(--text-3); font-size: 20px; line-height: 1; transition: all .18s; background: none; border: none; }
.modal-head .close:hover { color: var(--danger); transform: rotate(90deg); }
.modal-body { padding: 16px 24px 20px; overflow-y: auto; flex: 1; }
.modal-foot { padding: 14px 24px 18px; display: flex; justify-content: flex-end; gap: 12px; border-top: 1px solid var(--border); }
.form-row { display: flex; gap: 14px; }
.form-row > * { flex: 1; }
.f-label { display: block; font-size: 13px; color: var(--text-1); margin: 14px 0 7px; font-weight: 500; }
.f-input, .f-select, .f-textarea {
  width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius-control);
  padding: 0 12px; font-size: 14px; outline: none; background: #FAFBFC; transition: all .2s;
  font-family: inherit; color: var(--text-0);
}
.f-input, .f-select { height: 40px; }
.f-textarea { padding: 9px 12px; min-height: 96px; resize: vertical; line-height: 1.6; }
.f-input:focus, .f-select:focus, .f-textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(22,119,255,.12); }

/* 图片上传 */
.upload-box {
  border: 1.5px dashed var(--border-strong); border-radius: 8px; min-height: 110px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all .2s; position: relative; overflow: hidden; background: #FAFBFC;
}
.upload-box:hover { border-color: var(--primary); background: var(--primary-bg); }
.upload-box img { max-width: 100%; max-height: 180px; display: block; }
.upload-box .upload-hint { color: var(--text-3); font-size: 13px; text-align: center; }
.upload-box .upload-hint b { color: var(--primary); display: block; font-size: 22px; font-weight: 400; margin-bottom: 4px; }

/* toast */
.toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 999;
  background: #1F2329; color: #fff; padding: 11px 20px; border-radius: 8px;
  font-size: 13.5px; box-shadow: var(--shadow-pop); animation: rise .28s;
}
.toast.ok { background: var(--success); }
.toast.err { background: var(--danger); }

/* ============ 支付设置（通道卡片） ============ */
.pay-modes { display: flex; flex-direction: column; gap: 12px; }
.pay-mode {
  display: flex; align-items: center; gap: 14px; padding: 15px 18px;
  border: 1px solid var(--border); border-radius: var(--radius-card); cursor: pointer;
  background: #fff; transition: all .2s; position: relative; overflow: hidden;
}
.pay-mode::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--primary); opacity: 0; transition: opacity .2s; }
.pay-mode:hover { border-color: #91CAFF; box-shadow: var(--shadow-card); transform: translateX(3px); }
.pay-mode.active { border-color: var(--primary); background: var(--primary-bg); box-shadow: 0 2px 10px rgba(22,119,255,.14); }
.pay-mode.active::after { opacity: 1; }
.pay-mode-icon {
  width: 44px; height: 44px; border-radius: 10px; background: #F0F2F5;
  display: flex; align-items: center; justify-content: center; font-size: 21px; flex-shrink: 0;
  transition: all .2s;
}
.pay-mode.active .pay-mode-icon { background: var(--primary); box-shadow: var(--shadow-btn); }
.pay-mode-name { font-size: 14.5px; font-weight: 700; color: var(--text-0); }
.pay-mode.active .pay-mode-name { color: var(--primary); }
.pay-mode-desc { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }

/* 空状态 */
.empty { text-align: center; color: var(--text-3); padding: 40px 0; font-size: 13.5px; }

/* 响应式 */
@media (max-width: 1200px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .sidebar { width: 74px; }
  .side-logo-text, .nav-item span { display: none; }
  .nav-item { justify-content: center; padding: 0; }
  .side-footer { display: none; }
  .content { padding: 16px 12px 24px; }
}
table.data td.num-cell { text-align: right; white-space: nowrap; }
.agent-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; background: var(--primary-light); color: var(--primary); font-weight: 600; white-space: nowrap; }

/* ============ 支付对接教程 ============ */
.tut-panel .panel-title { margin-bottom: 4px; }
.tut-item { border: 1px solid var(--border); border-radius: 10px; margin-top: 10px; overflow: hidden; background: #fff; transition: box-shadow .2s; }
.tut-item.open { box-shadow: var(--shadow-card); border-color: #91CAFF; }
.tut-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer; user-select: none; transition: background .15s; }
.tut-head:hover { background: var(--primary-bg); }
.tut-ico { width: 30px; height: 30px; border-radius: 8px; background: #F0F2F5; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.tut-item.open .tut-ico { background: var(--primary); }
.tut-name { font-size: 14px; font-weight: 700; color: var(--text-0); flex: 1; }
.tut-item.open .tut-name { color: var(--primary); }
.tut-arrow { color: var(--text-3); font-size: 13px; transition: transform .2s; }
.tut-item.open .tut-arrow { transform: rotate(180deg); }
.tut-body { display: none; padding: 4px 16px 16px 56px; }
.tut-item.open .tut-body { display: block; animation: rise .25s; }
.tut-step { display: flex; gap: 12px; margin-top: 14px; }
.tut-step-num { width: 22px; height: 22px; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.tut-step-main { flex: 1; min-width: 0; }
.tut-step-title { font-size: 13.5px; font-weight: 600; color: var(--text-0); line-height: 1.5; }
.tut-step-desc { font-size: 13px; color: var(--text-1); line-height: 1.7; margin-top: 4px; }
.tut-code { margin-top: 8px; background: #F7F9FB; border: 1px solid var(--border); border-radius: 6px; padding: 9px 12px; font-size: 12.5px; color: var(--text-0); font-family: Consolas, Monaco, monospace; word-break: break-all; }
.tut-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tut-link { display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 12.5px; color: var(--primary); text-decoration: none; transition: all .18s; }
.tut-link:hover { border-color: var(--primary); background: var(--primary-bg); transform: translateY(-1px); }
.tut-tip { margin-top: 14px; padding: 11px 14px; border-radius: 8px; font-size: 12.5px; line-height: 1.7; }
.tut-tip.warn { background: #FFF7E6; color: #AD6800; border: 1px solid #FFE7BA; }
.tut-tip.info { background: var(--primary-bg); color: #1D5FB8; border: 1px solid #C6E0FF; }

/* ============ 内容管理折叠菜单 ============ */
.nav-item .nav-arrow { margin-left: auto; font-size: 12px; color: var(--text-3); transition: transform .2s, color .2s; }
.nav-parent:hover .nav-arrow { color: var(--primary); }
.nav-parent.open .nav-arrow { transform: rotate(180deg); color: var(--primary); }
/* 子菜单容器：缩进 + 展开动画 */
.nav-children { overflow: hidden; }
.nav-children.open { animation: navSlide .22s ease; }
@keyframes navSlide { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* 子菜单项：字号稍小、缩进、行高略矮 */
.nav-item.nav-child { height: 40px; padding-left: 44px; font-size: 13px; color: var(--text-1); margin-bottom: 2px; }
.nav-item.nav-child svg { width: 16px; height: 16px; }
.nav-item.nav-child:hover { background: var(--primary-bg); color: var(--primary); }
/* 子菜单选中态与现有规则一致：蓝底白字 */
.nav-item.nav-child.active { background: var(--primary); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(22,119,255,.28); }
.nav-item.nav-child.active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: #69B1FF; }
/* 父菜单在子页面时的高亮态（浅蓝底+蓝字，区别于子项实心蓝） */
.nav-item.nav-parent.active { background: var(--primary-bg); color: var(--primary); font-weight: 600; }