/* ============================================================
   薯条校园后台 · 全站共享设计系统 theme_ui.css v1
   四大风格：Bento Grid / 液态玻璃 2.0 / Aurora 极光 / Dark-first
   规则全部限定在 html[data-theme] 下：学生端公开页(无主题属性)零影响
   本文件在页面自身样式之后加载，同特异性规则以本文件为准
   ============================================================ */

/* ---------- 主题变量（与各页内联块一致，保证无内联块的页面也生效） ---------- */
html[data-theme="navy"]{--t-head:linear-gradient(135deg,#24466e 0%,#3a5a8c 60%,#4a6a9c 100%);--t-accent:#24466e;--t-accent2:#e8a33d;--t-body:linear-gradient(180deg,#eef1f7 0%,#f8fafc 100%);}
html[data-theme="indigo"]{--t-head:linear-gradient(135deg,#0e7a4e 0%,#12915e 60%,#34d399 100%);--t-accent:#0e7a4e;--t-accent2:#34d399;--t-body:linear-gradient(180deg,#f2faf5 0%,#f8fdfa 100%);}
html[data-theme="sunny"]{--t-head:linear-gradient(135deg,#ea6a0a 0%,#f59e0b 60%,#fbbf24 100%);--t-accent:#ea6a0a;--t-accent2:#fbbf24;--t-body:linear-gradient(180deg,#fff7ed 0%,#fffdf8 100%);--sunny-head:#ea6a0a;}
html[data-theme="dark"]{--t-head:linear-gradient(135deg,#1e1b4b 0%,#312e81 60%,#4338ca 100%);--t-accent:#818cf8;--t-accent2:#fbbf24;--t-body:#0f1011;}
html[data-theme="fresh"]{--t-head:linear-gradient(135deg,#3b82f6 0%,#38bdf8 100%);--t-accent:#3b82f6;--t-accent2:#f472b6;--t-body:linear-gradient(180deg,#eef5ff 0%,#f8fafc 100%);--sunny-head:#3b82f6;}

html[data-theme] body{background:var(--t-body);}
html[data-theme="dark"] body{color:#e5e7eb;}
html[data-theme] header{background:var(--t-head) !important;}
html[data-theme] .btn-primary{background:var(--t-accent) !important;border-color:var(--t-accent) !important;}

/* ---------- ① Bento Grid：统计区大小错落拼格 ---------- */
html[data-theme] .stats-row{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;}
html[data-theme] .stats-row .stat-card{flex:none;}
html[data-theme] .stats-row .stat-card.stat-pending{padding:18px 20px;}
html[data-theme] .stats-row .stat-card.stat-pending .stat-number{font-size:38px;font-weight:800;line-height:1.1;}
html[data-theme] .stats-row .stat-card.stat-pending .stat-label{font-size:14px;}
html[data-theme] .stats-row .stat-card .stat-number{font-weight:700;}
@media (max-width:640px){
  /* 三张统计卡手机端并排一行对齐（不再一大两小上下错落） */
  html[data-theme] .stats-row{grid-template-columns:repeat(3,1fr);}
  html[data-theme] .stats-row .stat-card{padding:10px 6px;}
  html[data-theme] .stats-row .stat-card.stat-pending{grid-column:auto;padding:12px 6px;padding-right:6px;}
  html[data-theme] .stats-row .stat-card.stat-pending .stat-number{font-size:22px;}
  html[data-theme] .stats-row .stat-card.stat-pending .stat-label{font-size:11px;}
  html[data-theme] .stats-row .stat-card .stat-number{font-size:19px;}
  html[data-theme] .stats-row .stat-card .stat-label{font-size:11px;white-space:nowrap;}
  html[data-theme] .stats-row .stat-card .stat-icon{font-size:20px;}
  html[data-theme] .stats-row .stat-card.stat-pending::after{display:none;}
}

/* ---------- 通用卡片：随主题变形 ---------- */
html[data-theme] .card{transition:transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s;}
html[data-theme="navy"] .card{border-radius:14px;border:none;box-shadow:0 2px 10px rgba(36,70,110,.08);border-top:3px solid var(--t-accent2);}
html[data-theme="indigo"] .card{border-radius:22px;border:none;box-shadow:0 3px 14px rgba(14,90,60,.10);}
html[data-theme="indigo"] .card:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(14,90,60,.16);}
html[data-theme="sunny"] .card{border-radius:6px;border:2px solid #fed7aa !important;box-shadow:4px 4px 0 rgba(234,106,10,.14) !important;}
html[data-theme="dark"] .card{border-radius:16px;border:1px solid #3f3f6b !important;}
html[data-theme="fresh"] .card{border-radius:20px;border:none;box-shadow:0 4px 18px rgba(59,130,246,.10);background:rgba(255,255,255,.92);}

/* ---------- 通用按钮：随主题变形 ---------- */
html[data-theme] .btn{font-weight:600;transition:all .25s cubic-bezier(.4,0,.2,1);}
html[data-theme="navy"] .btn{border-radius:12px;}
html[data-theme="indigo"] .btn{border-radius:999px;font-weight:800;}
html[data-theme="indigo"] .btn:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(14,122,78,.30);}
html[data-theme="sunny"] .btn{border-radius:8px;font-weight:800;box-shadow:3px 3px 0 rgba(180,70,0,.22);}
html[data-theme="sunny"] .btn:active{transform:translate(2px,2px);box-shadow:0 0 0 rgba(0,0,0,0);}
html[data-theme="dark"] .btn{border-radius:12px;box-shadow:0 0 0 1px rgba(129,140,248,.30);}
html[data-theme="dark"] .btn:hover{box-shadow:0 0 0 1px rgba(129,140,248,.6),0 0 18px rgba(129,140,248,.3);}
html[data-theme="fresh"] .btn{border-radius:999px;}
html[data-theme="fresh"] .btn-primary{background:linear-gradient(135deg,#3b82f6,#38bdf8) !important;border-color:transparent !important;}

/* ---------- 输入框：聚焦跟随主题主色 ---------- */
html[data-theme] input,
html[data-theme] select,
html[data-theme] textarea{transition:border-color .2s, box-shadow .2s;}
html[data-theme] input:focus,
html[data-theme] select:focus,
html[data-theme] textarea:focus{border-color:var(--t-accent);outline:none;}

/* ---------- ② 液态玻璃 2.0（dark）：细白边半透明面板 ---------- */
html[data-theme="dark"] .nav-tabs{background:rgba(26,27,32,.72) !important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.16);}
html[data-theme="dark"] .stat-card{border:1px solid rgba(129,140,248,.25) !important;}
html[data-theme="dark"] .stat-card .stat-number{color:#f4f4f5;}
html[data-theme="dark"] .stat-card .stat-label{color:#9ca3af;}

/* ---------- ③ Aurora 极光（fresh）：多团柔光晕 ---------- */
html[data-theme="fresh"] body{background:
  radial-gradient(900px 420px at 88% -6%, rgba(244,114,182,.22), transparent 62%),
  radial-gradient(820px 420px at -8% 28%, rgba(147,197,253,.32), transparent 60%),
  radial-gradient(700px 380px at 60% 110%, rgba(196,181,253,.25), transparent 60%),
  linear-gradient(165deg,#dbeafe 0%,#e0e7ff 30%,#ede9fe 58%,#fce7f3 100%) !important;}

/* ---------- ④ Dark-first（dark）：全局暗底语义色 ---------- */
html[data-theme="dark"] .hint{color:#9ca3af;}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{background:#232428;color:#e5e7eb;border-color:#3f3f6b;}

/* ============================================================
   v2 对齐与可读性（第 58 轮截图审查修复）
   ============================================================ */
/* ① Bento 大卡：右侧装饰水印，消除大片空白；数字区留出避让（仅桌面，手机三卡并排无水印） */
@media (min-width:641px){
  html[data-theme] .stats-row .stat-card.stat-pending{position:relative;overflow:hidden;padding-right:118px;}
  html[data-theme] .stats-row .stat-card.stat-pending::after{content:'⏳';position:absolute;right:16px;top:50%;transform:translateY(-50%);font-size:60px;opacity:.10;pointer-events:none;line-height:1;}
}

/* ② fresh 头部：还原「透明头部 + 极光浅底 + 深色字」设计，
   不再被通用头部渐变刷成亮蓝（亮蓝底白字/绿字可读性差） */
html[data-theme="fresh"] header{background:transparent !important;box-shadow:none;}
html[data-theme="fresh"] header h1{color:#1e293b !important;text-shadow:none !important;}
html[data-theme="fresh"] header p{color:#475569 !important;text-shadow:none !important;}

/* ③ sunny/fresh 头部状态胶囊：白底深字，任何头部配色下都可读 */
html[data-theme="sunny"] .status-bar .status-item{background:rgba(255,255,255,.85) !important;color:#9a3412 !important;font-weight:600;}
html[data-theme="sunny"] #hook-detail{background:rgba(255,255,255,.88);border-radius:14px;padding:8px 16px;display:inline-block;}
html[data-theme="sunny"] #hook-detail .hd-name{color:#9a3412;}
html[data-theme="sunny"] #hook-detail .hd-on{color:#15803d;}
html[data-theme="sunny"] #hook-detail .hd-off{color:#dc2626;}
html[data-theme="sunny"] #hook-detail .hd-warn{color:#b45309;}
html[data-theme="sunny"] #hook-detail .hd-idle{color:#94a3b8;}
html[data-theme="sunny"] #hook-detail .hd-camps{color:#b45309;}
html[data-theme="sunny"] #hook-detail .hd-act{border-color:#c2410c;color:#9a3412;}
html[data-theme="fresh"] .status-bar .status-item{background:rgba(255,255,255,.75) !important;color:#334155 !important;font-weight:600;}
html[data-theme="fresh"] #hook-detail{background:rgba(255,255,255,.72);border-radius:14px;padding:8px 16px;display:inline-block;}

/* ④ 移动端隐藏键盘流提示（手机无键盘，提示还占两行） */
@media (max-width:700px){
  .kbd-hint{display:none !important;}
  /* 手机端 tab 行禁止撑破视口：允许换行，页面不再横向溢出 */
  html[data-theme] .nav-tabs{flex-wrap:wrap;justify-content:flex-start;}
  html[data-theme] .nav-tab{flex:1 1 30%;text-align:center;white-space:nowrap;}
  /* 分页条：页码多时允许换行（443px 长条撑破 390 视口的元凶） */
  html[data-theme] .pagination{flex-wrap:wrap;row-gap:8px;}
  html[data-theme] .pagination a,
  html[data-theme] .pagination span{padding:6px 10px;}
  html[data-theme] body{overflow-x:hidden;}
}

/* ============================================================
   THEME6 六新主题（2026-09-17）：mohe/yehang/sujian/xiaguang/xuanzhi/muse
   变量与内联块一致；形变规则不与内联 !important 打架
   ============================================================ */

/* ---------- 主题变量 ---------- */
html[data-theme="mohe"]{--t-head:linear-gradient(135deg,#17171c 0%,#23232e 100%);--t-accent:#5eead4;--t-accent2:#e4e4e7;--t-body:#0a0a0c;}
html[data-theme="yehang"]{--t-head:linear-gradient(135deg,#0b1c33 0%,#123a63 100%);--t-accent:#22d3ee;--t-accent2:#f59e0b;--t-body:#070f1c;}
html[data-theme="sujian"]{--t-head:linear-gradient(135deg,#4f5df6 0%,#7b8bf5 100%);--t-accent:#4f5df6;--t-accent2:#0f9d76;--t-body:#f5f6fa;}
html[data-theme="xiaguang"]{--t-head:linear-gradient(135deg,#7c6cf6 0%,#e05fa0 100%);--t-accent:#7c6cf6;--t-accent2:#e05fa0;--t-body:linear-gradient(160deg,#efe6ff 0%,#ffe7f2 55%,#e3f0ff 100%);}
html[data-theme="xuanzhi"]{--t-head:linear-gradient(135deg,#1668dc 0%,#4096ff 100%);--t-accent:#1668dc;--t-accent2:#faad14;--t-body:#f7f8fa;}
html[data-theme="muse"]{--t-head:linear-gradient(135deg,#2c2115 0%,#4a3524 100%);--t-accent:#f59e0b;--t-accent2:#e8ddce;--t-body:#191309;}

/* ---------- 暗色三主题（mohe/yehang/muse）：全局暗底语义色 ---------- */
html[data-theme="mohe"] body,
html[data-theme="yehang"] body,
html[data-theme="muse"] body{color-scheme:dark;}
html[data-theme="mohe"] .hint,
html[data-theme="yehang"] .hint,
html[data-theme="muse"] .hint{color:#8b8b94;}

/* ---------- 卡片形变 ---------- */
html[data-theme="mohe"] .card{border-radius:10px;border:1px solid #2c2c34;box-shadow:0 2px 12px rgba(0,0,0,.5);}
html[data-theme="yehang"] .card{border-radius:12px;border:1px solid #1d3557;box-shadow:0 0 16px rgba(34,211,238,.10);}
html[data-theme="yehang"] .card:hover{border-color:#22d3ee;}
html[data-theme="sujian"] .card{border-radius:12px;border:none;box-shadow:0 2px 10px rgba(15,23,42,.06);}
html[data-theme="sujian"] .card:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(79,93,246,.10);}
html[data-theme="xiaguang"] .card{border-radius:16px;border:1px solid rgba(255,255,255,.85);box-shadow:0 8px 24px rgba(124,108,246,.14);background:rgba(255,255,255,.72);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);}
html[data-theme="xuanzhi"] .card{border-radius:6px;border:1px solid #e5e7eb;box-shadow:0 1px 2px rgba(0,0,0,.04);}
html[data-theme="xuanzhi"] .card:hover{border-color:#1668dc;}
html[data-theme="muse"] .card{border-radius:12px;border:1px solid #4a3524;box-shadow:0 2px 14px rgba(0,0,0,.45);}

/* ---------- 按钮形变 ---------- */
html[data-theme="mohe"] .btn{border-radius:8px;}
html[data-theme="mohe"] .btn-primary{background:linear-gradient(135deg,#5eead4,#2dd4bf) !important;border-color:transparent !important;color:#0a0a0c !important;}
html[data-theme="yehang"] .btn{border-radius:8px;}
html[data-theme="yehang"] .btn-primary{background:linear-gradient(135deg,#22d3ee,#0ea5b7) !important;border-color:transparent !important;}
html[data-theme="yehang"] .btn-primary:hover{box-shadow:0 0 14px rgba(34,211,238,.45);}
html[data-theme="sujian"] .btn{border-radius:8px;font-weight:600;}
html[data-theme="sujian"] .btn-primary{background:linear-gradient(135deg,#4f5df6,#7b8bf5) !important;border-color:transparent !important;}
html[data-theme="xiaguang"] .btn{border-radius:999px;}
html[data-theme="xiaguang"] .btn-primary{background:linear-gradient(135deg,#7c6cf6,#e05fa0) !important;border-color:transparent !important;}
html[data-theme="xuanzhi"] .btn{border-radius:4px;}
html[data-theme="muse"] .btn{border-radius:10px;}
html[data-theme="muse"] .btn-primary{background:linear-gradient(135deg,#f59e0b,#d97706) !important;border-color:transparent !important;color:#191309 !important;}

/* ---------- 导航 tabs 造型 ---------- */
html[data-theme="mohe"] .nav-tabs{background:rgba(19,19,24,.72);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid #2c2c34;}
html[data-theme="yehang"] .nav-tabs{background:rgba(12,25,48,.72);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid #1d3557;}
html[data-theme="sujian"] .nav-tabs{background:#ffffff;border:1px solid #e8eaf6;box-shadow:0 2px 10px rgba(15,23,42,.06);}
html[data-theme="xiaguang"] .nav-tabs{background:rgba(255,255,255,.55);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.85);}
html[data-theme="xuanzhi"] .nav-tabs{background:#ffffff;border:1px solid #e5e7eb;}
html[data-theme="muse"] .nav-tabs{background:rgba(36,28,17,.72);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid #4a3524;}

/* ---------- 统计卡数字/标签可读性（暗色三主题） ---------- */
html[data-theme="mohe"] .stat-card .stat-number{color:#f4f4f5;}
html[data-theme="mohe"] .stat-card .stat-label{color:#8b8b94;}
html[data-theme="yehang"] .stat-card .stat-number{color:#e0f2fe;}
html[data-theme="yehang"] .stat-card .stat-label{color:#5b7392;}
html[data-theme="muse"] .stat-card .stat-number{color:#f5ecd9;}
html[data-theme="muse"] .stat-card .stat-label{color:#a89a83;}

/* ---------- 头部状态胶囊（浅色 SaaS 两主题：白底深字，参照 sunny） ---------- */
html[data-theme="sujian"] .status-bar .status-item{background:rgba(255,255,255,.85) !important;color:#3730a3 !important;font-weight:600;}
html[data-theme="xuanzhi"] .status-bar .status-item{background:rgba(255,255,255,.85) !important;color:#0958d9 !important;font-weight:600;}
html[data-theme="xiaguang"] .status-bar .status-item{background:rgba(255,255,255,.75) !important;color:#5b4bc4 !important;font-weight:600;}

/* ---------- 暗色主题白块收尾（2026-09-17 第二轮）：toolbar / bottom-nav / 清除 / 拒绝 / 确认弹窗 ---------- */
/* dark 为存量遗漏，一并修复 */
html[data-theme="dark"] .toolbar,
html[data-theme="mohe"] .toolbar{background:#131318 !important;border:1px solid #2c2c34;box-shadow:0 2px 12px rgba(0,0,0,.5);}
html[data-theme="yehang"] .toolbar{background:#0c1930 !important;border:1px solid #1d3557;}
html[data-theme="muse"] .toolbar{background:#241c11 !important;border:1px solid #4a3524;}

html[data-theme="dark"] .bottom-nav,
html[data-theme="mohe"] .bottom-nav{background:rgba(19,19,24,.95) !important;border:1px solid #2c2c34;}
html[data-theme="yehang"] .bottom-nav{background:rgba(12,25,48,.95) !important;border:1px solid #1d3557;}
html[data-theme="muse"] .bottom-nav{background:rgba(36,28,17,.95) !important;border:1px solid #4a3524;}
html[data-theme="dark"] .bottom-nav-item,
html[data-theme="mohe"] .bottom-nav-item,
html[data-theme="yehang"] .bottom-nav-item,
html[data-theme="muse"] .bottom-nav-item{color:#8b8b94;}
html[data-theme="dark"] .bottom-nav-item:hover,
html[data-theme="mohe"] .bottom-nav-item:hover,
html[data-theme="yehang"] .bottom-nav-item:hover,
html[data-theme="muse"] .bottom-nav-item:hover{background:rgba(255,255,255,.06);color:var(--t-accent);}
html[data-theme="dark"] .bottom-nav-item.active,
html[data-theme="mohe"] .bottom-nav-item.active{color:#5eead4;background:rgba(94,234,212,.10);}
html[data-theme="yehang"] .bottom-nav-item.active{color:#22d3ee;background:rgba(34,211,238,.10);}
html[data-theme="muse"] .bottom-nav-item.active{color:#f59e0b;background:rgba(245,158,11,.10);}

html[data-theme="dark"] button[onclick="clearSearch()"],
html[data-theme="mohe"] button[onclick="clearSearch()"]{background:#1a1a21 !important;color:#e4e4e7 !important;border:1px solid #2c2c34 !important;}
html[data-theme="yehang"] button[onclick="clearSearch()"]{background:#10203a !important;color:#dbeafe !important;border:1px solid #1d3557 !important;}
html[data-theme="muse"] button[onclick="clearSearch()"]{background:#2b2216 !important;color:#ece1cf !important;border:1px solid #4a3524 !important;}

html[data-theme="dark"] .btn-reject-ol,
html[data-theme="mohe"] .btn-reject-ol{background:#1a1a21 !important;color:#f87171 !important;}
html[data-theme="yehang"] .btn-reject-ol{background:#10203a !important;color:#f87171 !important;}
html[data-theme="muse"] .btn-reject-ol{background:#2b2216 !important;color:#f87171 !important;}

html[data-theme="dark"] #custom-confirm-modal > div,
html[data-theme="mohe"] #custom-confirm-modal > div{background:#1a1a21 !important;}
html[data-theme="yehang"] #custom-confirm-modal > div{background:#10203a !important;}
html[data-theme="muse"] #custom-confirm-modal > div{background:#2b2216 !important;}
html[data-theme="dark"] #custom-confirm-text,
html[data-theme="mohe"] #custom-confirm-text{color:#e4e4e7 !important;}
html[data-theme="yehang"] #custom-confirm-text{color:#dbeafe !important;}
html[data-theme="muse"] #custom-confirm-text{color:#ece1cf !important;}
html[data-theme="dark"] #custom-confirm-cancel,
html[data-theme="mohe"] #custom-confirm-cancel{background:#26262e !important;color:#e4e4e7 !important;}
html[data-theme="yehang"] #custom-confirm-cancel{background:#1d3557 !important;color:#dbeafe !important;}
html[data-theme="muse"] #custom-confirm-cancel{background:#4a3524 !important;color:#ece1cf !important;}

/* tab 卡片 emoji 图标底（非 active 白底）与刷新按钮（#f0f2f5）暗色化 */
html[data-theme="dark"] .tab-card:not(.active) .tab-card-icon,
html[data-theme="mohe"] .tab-card:not(.active) .tab-card-icon{background:#1a1a21 !important;box-shadow:none;}
html[data-theme="yehang"] .tab-card:not(.active) .tab-card-icon{background:#10203a !important;box-shadow:none;}
html[data-theme="muse"] .tab-card:not(.active) .tab-card-icon{background:#2b2216 !important;box-shadow:none;}
html[data-theme="dark"] .refresh-btn,
html[data-theme="mohe"] .refresh-btn{background:#1a1a21 !important;color:#e4e4e7 !important;border:1px solid #2c2c34;}
html[data-theme="yehang"] .refresh-btn{background:#10203a !important;color:#dbeafe !important;border:1px solid #1d3557;}
html[data-theme="muse"] .refresh-btn{background:#2b2216 !important;color:#ece1cf !important;border:1px solid #4a3524;}
html[data-theme="dark"] .tab-card .tab-card-icon,
html[data-theme="mohe"] .tab-card .tab-card-icon{background:rgba(255,255,255,.08) !important;}
html[data-theme="yehang"] .tab-card .tab-card-icon{background:rgba(34,211,238,.10) !important;}
html[data-theme="muse"] .tab-card .tab-card-icon{background:rgba(245,158,11,.10) !important;}

/* ============================================================
   侧栏外壳 side_shell（2026-09-17 UI 改版第一批）
   桌面端 fixed 左栏；配色走主题变量，暗色 4 主题单独覆写面板色
   ============================================================ */
.side-shell{position:fixed;top:0;left:0;bottom:0;width:216px;z-index:90;
  display:flex;flex-direction:column;padding:18px 12px;overflow-y:auto;
  background:#ffffff;border-right:1px solid #e5e7eb;box-shadow:2px 0 14px rgba(15,23,42,.04);}
body.side-shell-on{padding-left:216px;}
body.side-shell-on .bottom-nav.ss-hide{display:none !important;}
.ss-logo{display:flex;align-items:center;gap:10px;padding:4px 10px 18px;}
.ss-mark{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;
  background:var(--t-accent-dim,rgba(36,70,110,.10));color:var(--t-accent);font-weight:700;}
.ss-logo b{font-size:15px;letter-spacing:.5px;color:#1e293b;}
.ss-nav{display:flex;flex-direction:column;gap:2px;}
.ss-item{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;
  color:#475569;text-decoration:none;font-size:13.5px;transition:all .15s;border:1px solid transparent;}
.ss-item svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8;flex-shrink:0;}
.ss-item:hover{background:#f1f5f9;color:#0f172a;}
.ss-item.on{background:var(--t-accent-dim,rgba(36,70,110,.08));color:#0f172a;border-color:var(--t-accent);font-weight:600;}
.ss-item.on svg{stroke:var(--t-accent);}
.ss-k{margin-left:auto;font-style:normal;font-family:'JetBrains Mono','SF Mono',Consolas,monospace;
  font-size:10.5px;color:#94a3b8;border:1px solid #e2e8f0;border-radius:4px;padding:0 5px;line-height:16px;}
.ss-foot{margin-top:auto;padding:10px;border-top:1px solid #e5e7eb;font-size:12px;color:#64748b;
  display:flex;align-items:center;gap:6px;}
.ss-dot{width:7px;height:7px;border-radius:50%;background:#94a3b8;flex-shrink:0;}
.ss-dot.ok{background:#10b981;animation:ss-breath 2.4s infinite;}
.ss-dot.bad{background:#ef4444;}
@keyframes ss-breath{50%{opacity:.35}}
.ss-logout{margin-left:auto;color:#94a3b8;text-decoration:none;font-size:12px;}
.ss-logout:hover{color:#ef4444;}

/* ---- 暗色主题侧栏覆写（dark/mohe/yehang/muse） ---- */
html[data-theme="dark"] .side-shell{background:#1a1b1e;border-right-color:#2c2c34;}
html[data-theme="dark"] .ss-logo b,html[data-theme="dark"] .ss-item.on{color:#e5e7eb;}
html[data-theme="dark"] .ss-item{color:#9ca3af;}
html[data-theme="dark"] .ss-item:hover{background:#232428;color:#e5e7eb;}
html[data-theme="dark"] .ss-item.on{background:rgba(129,140,248,.12);border-color:#4f527a;}
html[data-theme="dark"] .ss-k{color:#6b7280;border-color:#3f3f6b;}
html[data-theme="dark"] .ss-foot{border-top-color:#2c2c34;color:#9ca3af;}

html[data-theme="mohe"] .side-shell{background:#131318;border-right-color:#2c2c34;}
html[data-theme="mohe"] .ss-logo b,html[data-theme="mohe"] .ss-item.on{color:#e4e4e7;}
html[data-theme="mohe"] .ss-item{color:#8b8b94;}
html[data-theme="mohe"] .ss-item:hover{background:#1a1a21;color:#e4e4e7;}
html[data-theme="mohe"] .ss-item.on{background:rgba(94,234,212,.10);border-color:#2c2c34;}
html[data-theme="mohe"] .ss-item.on svg{stroke:#5eead4;}
html[data-theme="mohe"] .ss-k{color:#55555e;border-color:#2c2c34;}
html[data-theme="mohe"] .ss-foot{border-top-color:#2c2c34;color:#8b8b94;}

html[data-theme="yehang"] .side-shell{background:#0c1930;border-right-color:#1d3557;}
html[data-theme="yehang"] .ss-logo b,html[data-theme="yehang"] .ss-item.on{color:#dbeafe;}
html[data-theme="yehang"] .ss-item{color:#5b7392;}
html[data-theme="yehang"] .ss-item:hover{background:#10203a;color:#dbeafe;}
html[data-theme="yehang"] .ss-item.on{background:rgba(34,211,238,.10);border-color:#1d3557;}
html[data-theme="yehang"] .ss-item.on svg{stroke:#22d3ee;}
html[data-theme="yehang"] .ss-k{color:#3e5573;border-color:#1d3557;}
html[data-theme="yehang"] .ss-foot{border-top-color:#1d3557;color:#5b7392;}

html[data-theme="muse"] .side-shell{background:#241c11;border-right-color:#4a3524;}
html[data-theme="muse"] .ss-logo b,html[data-theme="muse"] .ss-item.on{color:#ece1cf;}
html[data-theme="muse"] .ss-item{color:#a89a83;}
html[data-theme="muse"] .ss-item:hover{background:#2b2216;color:#ece1cf;}
html[data-theme="muse"] .ss-item.on{background:rgba(245,158,11,.10);border-color:#4a3524;}
html[data-theme="muse"] .ss-item.on svg{stroke:#f59e0b;}
html[data-theme="muse"] .ss-k{color:#7a6c55;border-color:#4a3524;}
html[data-theme="muse"] .ss-foot{border-top-color:#4a3524;color:#a89a83;}

/* 各主题 on 态 accent 指示（浅色主题） */
html[data-theme="navy"] .ss-mark{background:rgba(36,70,110,.10);}html[data-theme="navy"] .ss-item.on{border-color:#24466e;}
html[data-theme="indigo"] .ss-item.on{border-color:#0e7a4e;}
html[data-theme="sunny"] .ss-item.on{border-color:#ea6a0a;}
html[data-theme="fresh"] .ss-item.on{border-color:#3b82f6;}
html[data-theme="sujian"] .ss-item.on{border-color:#4f5df6;}
html[data-theme="xiaguang"] .ss-item.on{border-color:#7c6cf6;}
html[data-theme="xuanzhi"] .ss-item.on{border-color:#1668dc;}

/* 窄屏兜底：侧栏不注入也不会出现，双保险 */
@media (max-width:1023px){.side-shell{display:none;}body.side-shell-on{padding-left:0;}body.side-shell-on .bottom-nav.ss-hide{display:flex !important;}}

/* ============================================================
   首页双栏工作台 workbench（2026-09-17 UI 改版第二批）
   ============================================================ */
.wb-cols{display:grid;grid-template-columns:minmax(0,1.75fr) 340px;gap:16px;align-items:start;}
.wb-cols.wb-single{grid-template-columns:minmax(0,1fr);}
.wb-cols.wb-single .wb-side{display:none !important;}
.wb-side{display:flex;flex-direction:column;gap:14px;position:sticky;top:16px;min-width:0;}
.wb-card{background:#ffffff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 2px 12px rgba(15,23,42,.05);overflow:hidden;}
.wb-hd{display:flex;align-items:center;gap:8px;padding:11px 14px;border-bottom:1px solid #f1f5f9;font-size:13px;color:#475569;}
.wb-hd b{font-size:13.5px;color:#0f172a;}
.wb-pill{margin-left:auto;font-size:11px;padding:2px 8px;border-radius:99px;border:1px solid #e2e8f0;color:#64748b;white-space:nowrap;}
.wb-pill.wb-live{color:#059669;border-color:#a7f3d0;}
.wb-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#10b981;margin-right:4px;animation:ss-breath 2.4s infinite;}
.wb-empty{padding:14px;font-size:12px;color:#94a3b8;}
.wb-today-grid{display:grid;grid-template-columns:repeat(3,1fr);padding:12px 10px;gap:6px;}
.wt-item{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 4px;border-radius:10px;background:#f8fafc;}
.wt-item span{font-size:11px;color:#64748b;}
.wt-num{font-style:normal;font-size:20px;font-weight:700;color:#0f172a;font-family:'JetBrains Mono','SF Mono',Consolas,monospace;}
.wt-num.wt-ok{color:#059669;}.wt-num.wt-no{color:#dc2626;}
.wb-row{display:flex;gap:10px;padding:9px 14px;border-bottom:1px dashed #f1f5f9;}
.wb-row:last-child{border-bottom:none;}
.wb-tm{font-family:'JetBrains Mono','SF Mono',Consolas,monospace;font-size:11px;color:#94a3b8;width:56px;flex-shrink:0;padding-top:2px;}
.wb-rb{flex:1;min-width:0;}
.wb-rt{font-size:12.5px;font-weight:600;}
.wb-rt.wb-ok{color:#059669;}.wb-rt.wb-no{color:#dc2626;}
.wb-rm{font-size:11px;color:#94a3b8;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.wb-brow{display:flex;align-items:center;gap:8px;padding:8px 14px;border-bottom:1px solid #f8fafc;font-size:12px;}
.wb-brow:last-child{border-bottom:none;}
.wb-bid{color:#334155;font-weight:600;max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.wb-btag{font-size:10.5px;padding:1px 7px;border-radius:4px;background:#f1f5f9;border:1px solid #e2e8f0;color:#64748b;}

/* ---- 暗色主题右栏覆写 ---- */
html[data-theme="dark"] .wb-card,html[data-theme="mohe"] .wb-card{background:#131318;border-color:#2c2c34;box-shadow:0 2px 12px rgba(0,0,0,.5);}
html[data-theme="yehang"] .wb-card{background:#0c1930;border-color:#1d3557;box-shadow:0 0 16px rgba(34,211,238,.08);}
html[data-theme="muse"] .wb-card{background:#241c11;border-color:#4a3524;box-shadow:0 2px 14px rgba(0,0,0,.45);}
html[data-theme="dark"] .wb-hd b,html[data-theme="mohe"] .wb-hd b{color:#e5e7eb;}
html[data-theme="yehang"] .wb-hd b{color:#dbeafe;}
html[data-theme="muse"] .wb-hd b{color:#ece1cf;}
html[data-theme="dark"] .wb-hd,html[data-theme="mohe"] .wb-hd{color:#8b8b94;border-bottom-color:#20202a;}
html[data-theme="yehang"] .wb-hd{color:#5b7392;border-bottom-color:#10203a;}
html[data-theme="muse"] .wb-hd{color:#a89a83;border-bottom-color:#33291a;}
html[data-theme="dark"] .wb-pill,html[data-theme="mohe"] .wb-pill{color:#8b8b94;border-color:#2c2c34;}
html[data-theme="yehang"] .wb-pill{color:#5b7392;border-color:#1d3557;}
html[data-theme="muse"] .wb-pill{color:#a89a83;border-color:#4a3524;}
html[data-theme="dark"] .wt-item,html[data-theme="mohe"] .wt-item{background:#1a1a21;}
html[data-theme="yehang"] .wt-item{background:#10203a;}
html[data-theme="muse"] .wt-item{background:#2b2216;}
html[data-theme="dark"] .wt-item span,html[data-theme="mohe"] .wt-item span{color:#8b8b94;}
html[data-theme="yehang"] .wt-item span{color:#5b7392;}
html[data-theme="muse"] .wt-item span{color:#a89a83;}
html[data-theme="dark"] .wt-num,html[data-theme="mohe"] .wt-num{color:#f4f4f5;}
html[data-theme="yehang"] .wt-num{color:#e0f2fe;}
html[data-theme="muse"] .wt-num{color:#f5ecd9;}
html[data-theme="dark"] .wb-row,html[data-theme="mohe"] .wb-row{border-bottom-color:#20202a;}
html[data-theme="yehang"] .wb-row{border-bottom-color:#10203a;}
html[data-theme="muse"] .wb-row{border-bottom-color:#33291a;}
html[data-theme="dark"] .wb-tm,html[data-theme="mohe"] .wb-tm{color:#55555e;}
html[data-theme="yehang"] .wb-tm{color:#3e5573;}
html[data-theme="muse"] .wb-tm{color:#7a6c55;}
html[data-theme="dark"] .wb-rm,html[data-theme="mohe"] .wb-rm{color:#8b8b94;}
html[data-theme="yehang"] .wb-rm{color:#5b7392;}
html[data-theme="muse"] .wb-rm{color:#a89a83;}
html[data-theme="dark"] .wb-bid{color:#e4e4e7;}
html[data-theme="yehang"] .wb-bid{color:#dbeafe;}
html[data-theme="muse"] .wb-bid{color:#ece1cf;}
html[data-theme="dark"] .wb-btag,html[data-theme="mohe"] .wb-btag{background:#1a1a21;border-color:#2c2c34;color:#8b8b94;}
html[data-theme="yehang"] .wb-btag{background:#10203a;border-color:#1d3557;color:#5b7392;}
html[data-theme="muse"] .wb-btag{background:#2b2216;border-color:#4a3524;color:#a89a83;}
html[data-theme="dark"] .wb-empty,html[data-theme="mohe"] .wb-empty{color:#55555e;}
html[data-theme="yehang"] .wb-empty{color:#3e5573;}
html[data-theme="muse"] .wb-empty{color:#7a6c55;}

/* ---- 队列卡片悬停操作（桌面鼠标环境；按钮占位不变、仅淡入） ---- */
@media (min-width:1024px) and (hover:hover){
  body.side-shell-on .post-card .post-actions{opacity:0;transform:translateY(6px);transition:opacity .18s,transform .18s;}
  body.side-shell-on .post-card:hover .post-actions{opacity:1;transform:none;}
  body.side-shell-on .post-card{transition:box-shadow .2s,transform .2s;}
  body.side-shell-on .post-card:hover{box-shadow:0 6px 20px rgba(15,23,42,.10);}
}

/* ---- 今日概览：今日新帖环比行 ---- */
.wt-extra{padding:9px 14px;border-top:1px dashed #f1f5f9;font-size:12px;color:#64748b;}
.wt-extra b{color:#0f172a;font-weight:700;}
.wt-extra b.wt-up{color:#059669;}
.wt-extra b.wt-down{color:#dc2626;}
html[data-theme="dark"] .wt-extra,html[data-theme="mohe"] .wt-extra{border-top-color:#20202a;color:#8b8b94;}
html[data-theme="yehang"] .wt-extra{border-top-color:#10203a;color:#5b7392;}
html[data-theme="muse"] .wt-extra{border-top-color:#33291a;color:#a89a83;}
html[data-theme="dark"] .wt-extra b,html[data-theme="mohe"] .wt-extra b{color:#e4e4e7;}
html[data-theme="yehang"] .wt-extra b{color:#dbeafe;}
html[data-theme="muse"] .wt-extra b{color:#ece1cf;}

/* ---- Ctrl K 命令面板（side_shell，非首页） ---- */
.ss-cmdk{position:fixed;inset:0;z-index:999;background:rgba(15,23,42,.35);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);display:flex;align-items:flex-start;justify-content:center;padding-top:14vh;}
.ss-cmdk-box{width:min(520px,92vw);background:#ffffff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 18px 50px rgba(15,23,42,.22);overflow:hidden;}
.ss-cmdk-in{width:100%;box-sizing:border-box;border:none;outline:none;padding:15px 18px;font-size:15px;color:#0f172a;background:transparent;border-bottom:1px solid #f1f5f9;}
.ss-cmdk-list{max-height:320px;overflow-y:auto;padding:6px;}
.ss-ci{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;color:#334155;text-decoration:none;font-size:13.5px;}
.ss-ci i{font-style:normal;margin-left:auto;font-size:11px;color:#94a3b8;}
.ss-ci:hover,.ss-ci.on{background:#f1f5f9;}
.ss-ci.on{background:var(--t-accent-dim,rgba(36,70,110,.08));}
.ss-cmdk-empty{padding:16px;font-size:12.5px;color:#94a3b8;text-align:center;}
html[data-theme="dark"] .ss-cmdk-box,html[data-theme="mohe"] .ss-cmdk-box{background:#131318;border-color:#2c2c34;}
html[data-theme="yehang"] .ss-cmdk-box{background:#0c1930;border-color:#1d3557;}
html[data-theme="muse"] .ss-cmdk-box{background:#241c11;border-color:#4a3524;}
html[data-theme="dark"] .ss-cmdk-in,html[data-theme="mohe"] .ss-cmdk-in{color:#e4e4e7;border-bottom-color:#20202a;}
html[data-theme="yehang"] .ss-cmdk-in{color:#dbeafe;border-bottom-color:#10203a;}
html[data-theme="muse"] .ss-cmdk-in{color:#ece1cf;border-bottom-color:#33291a;}
html[data-theme="dark"] .ss-cmdk-in::placeholder,html[data-theme="mohe"] .ss-cmdk-in::placeholder{color:#55555e;}
html[data-theme="dark"] .ss-ci,html[data-theme="mohe"] .ss-ci{color:#8b8b94;}
html[data-theme="yehang"] .ss-ci{color:#5b7392;}
html[data-theme="muse"] .ss-ci{color:#a89a83;}
html[data-theme="dark"] .ss-ci:hover,html[data-theme="dark"] .ss-ci.on,html[data-theme="mohe"] .ss-ci:hover,html[data-theme="mohe"] .ss-ci.on{background:#1a1a21;color:#e4e4e7;}
html[data-theme="yehang"] .ss-ci:hover,html[data-theme="yehang"] .ss-ci.on{background:#10203a;color:#dbeafe;}
html[data-theme="muse"] .ss-ci:hover,html[data-theme="muse"] .ss-ci.on{background:#2b2216;color:#ece1cf;}

/* ============================================================
   第四批：config / cluster 内容区卡片化（2026-09-17）
   纯 CSS 改造：不动两页 HTML 结构，只升级既有 .section / .sum-card / .node-card
   ============================================================ */
body.side-shell-on .section{border-radius:14px;border:1px solid #e5e7eb;box-shadow:0 2px 10px rgba(15,23,42,.05);transition:box-shadow .2s;}
body.side-shell-on .section:hover{box-shadow:0 6px 18px rgba(15,23,42,.08);}
body.side-shell-on .config-page{max-width:980px;}

/* config 页内子页切换器（button 型 bottom-nav）桌面端造型升级 */
body.side-shell-on .bottom-nav:not(.ss-hide){background:#ffffff;border:1px solid #e5e7eb;box-shadow:0 2px 10px rgba(15,23,42,.05);}
body.side-shell-on button.bottom-nav-item{color:#64748b;}
body.side-shell-on button.bottom-nav-item.active{color:#0f172a;background:#f1f5f9;}

/* ---- 暗色主题：config .section 与表单控件 ---- */
html[data-theme="dark"] .section,html[data-theme="mohe"] .section{background:#131318 !important;border:1px solid #2c2c34;box-shadow:0 2px 12px rgba(0,0,0,.5);}
html[data-theme="yehang"] .section{background:#0c1930 !important;border:1px solid #1d3557;box-shadow:0 0 16px rgba(34,211,238,.08);}
html[data-theme="muse"] .section{background:#241c11 !important;border:1px solid #4a3524;box-shadow:0 2px 14px rgba(0,0,0,.45);}
html[data-theme="dark"] .section-title,html[data-theme="mohe"] .section-title{color:#e4e4e7;}
html[data-theme="yehang"] .section-title{color:#dbeafe;}
html[data-theme="muse"] .section-title{color:#ece1cf;}
html[data-theme="dark"] .section-description,html[data-theme="mohe"] .section-description{color:#8b8b94 !important;}
html[data-theme="yehang"] .section-description{color:#5b7392 !important;}
html[data-theme="muse"] .section-description{color:#a89a83 !important;}
html[data-theme="dark"] .section input:not([type="button"]):not([type="submit"]),
html[data-theme="dark"] .section select,html[data-theme="dark"] .section textarea,
html[data-theme="mohe"] .section input:not([type="button"]):not([type="submit"]),
html[data-theme="mohe"] .section select,html[data-theme="mohe"] .section textarea{background:#1a1a21 !important;color:#e4e4e7 !important;border-color:#2c2c34 !important;}
html[data-theme="yehang"] .section input:not([type="button"]):not([type="submit"]),
html[data-theme="yehang"] .section select,html[data-theme="yehang"] .section textarea{background:#10203a !important;color:#dbeafe !important;border-color:#1d3557 !important;}
html[data-theme="muse"] .section input:not([type="button"]):not([type="submit"]),
html[data-theme="muse"] .section select,html[data-theme="muse"] .section textarea{background:#2b2216 !important;color:#ece1cf !important;border-color:#4a3524 !important;}
/* config 页内子页切换器暗色 */
html[data-theme="dark"] .bottom-nav:not(.ss-hide),html[data-theme="mohe"] .bottom-nav:not(.ss-hide){background:#131318 !important;border:1px solid #2c2c34;}
html[data-theme="yehang"] .bottom-nav:not(.ss-hide){background:#0c1930 !important;border:1px solid #1d3557;}
html[data-theme="muse"] .bottom-nav:not(.ss-hide){background:#241c11 !important;border:1px solid #4a3524;}
html[data-theme="dark"] button.bottom-nav-item,html[data-theme="mohe"] button.bottom-nav-item{color:#8b8b94;}
html[data-theme="dark"] button.bottom-nav-item.active,html[data-theme="mohe"] button.bottom-nav-item.active{color:#e4e4e7;background:#1a1a21;}
html[data-theme="yehang"] button.bottom-nav-item{color:#5b7392;}
html[data-theme="yehang"] button.bottom-nav-item.active{color:#dbeafe;background:#10203a;}
html[data-theme="muse"] button.bottom-nav-item{color:#a89a83;}
html[data-theme="muse"] button.bottom-nav-item.active{color:#ece1cf;background:#2b2216;}

/* ---- cluster：sum-card / node-card 统一造型 + 暗色 ---- */
html[data-theme] .sum-card{border-radius:14px;}
html[data-theme="dark"] .sum-card,html[data-theme="mohe"] .sum-card{background:#131318 !important;border:1px solid #2c2c34;}
html[data-theme="yehang"] .sum-card{background:#0c1930 !important;border:1px solid #1d3557;}
html[data-theme="muse"] .sum-card{background:#241c11 !important;border:1px solid #4a3524;}
html[data-theme="dark"] .sum-label,html[data-theme="mohe"] .sum-label{color:#8b8b94 !important;}
html[data-theme="yehang"] .sum-label{color:#5b7392 !important;}
html[data-theme="muse"] .sum-label{color:#a89a83 !important;}
html[data-theme="dark"] .node-card,html[data-theme="mohe"] .node-card{background:#131318 !important;border:1px solid #2c2c34;}
html[data-theme="yehang"] .node-card{background:#0c1930 !important;border:1px solid #1d3557;}
html[data-theme="muse"] .node-card{background:#241c11 !important;border:1px solid #4a3524;}
html[data-theme="dark"] .node-card .node-name,html[data-theme="mohe"] .node-card .node-name{color:#e4e4e7 !important;}
html[data-theme="yehang"] .node-card .node-name{color:#dbeafe !important;}
html[data-theme="muse"] .node-card .node-name{color:#ece1cf !important;}
html[data-theme="dark"] .group-item,html[data-theme="mohe"] .group-item{background:#1a1a21 !important;color:#c7c7cc !important;}
html[data-theme="yehang"] .group-item{background:#10203a !important;color:#a5f3fc !important;}
html[data-theme="muse"] .group-item{background:#2b2216 !important;color:#e8ddce !important;}
html[data-theme="dark"] .sub,html[data-theme="mohe"] .sub{color:#8b8b94 !important;}
html[data-theme="yehang"] .sub{color:#5b7392 !important;}
html[data-theme="muse"] .sub{color:#a89a83 !important;}

/* config 页残留暗化：关键词/白名单列表容器、模式切换按钮、关键词药丸 */
html[data-theme="dark"] .keywords-list,html[data-theme="mohe"] .keywords-list{background:#1a1a21 !important;border-color:#2c2c34 !important;}
html[data-theme="yehang"] .keywords-list{background:#10203a !important;border-color:#1d3557 !important;}
html[data-theme="muse"] .keywords-list{background:#2b2216 !important;border-color:#4a3524 !important;}
html[data-theme="dark"] .keywords-list .keyword-tag,
html[data-theme="mohe"] .keywords-list .keyword-tag{background:#26262e !important;color:#e4e4e7 !important;}
html[data-theme="yehang"] .keywords-list .keyword-tag{background:#1d3557 !important;color:#dbeafe !important;}
html[data-theme="muse"] .keywords-list .keyword-tag{background:#4a3524 !important;color:#ece1cf !important;}
html[data-theme="dark"] #mode-single-btn,html[data-theme="dark"] #mode-multi-btn,
html[data-theme="mohe"] #mode-single-btn,html[data-theme="mohe"] #mode-multi-btn{background:#1a1a21 !important;color:#8b8b94 !important;}
html[data-theme="yehang"] #mode-single-btn,html[data-theme="yehang"] #mode-multi-btn{background:#10203a !important;color:#5b7392 !important;}
html[data-theme="muse"] #mode-single-btn,html[data-theme="muse"] #mode-multi-btn{background:#2b2216 !important;color:#a89a83 !important;}
html[data-theme="dark"] #mode-multi-btn.active,html[data-theme="mohe"] #mode-multi-btn.active{background:rgba(94,234,212,.15) !important;color:#5eead4 !important;}

/* ============================================================
   主题氛围细节（2026-09-17 第五批）：从 V1-V6 演示版搬运的标志性效果
   ============================================================ */
/* V4 霞光：三团柔光斑（靛/粉/琥珀），玻璃拟态氛围 */
html[data-theme="xiaguang"] body{background:
  radial-gradient(520px 520px at -6% -8%, rgba(165,180,252,.50), transparent 64%),
  radial-gradient(460px 460px at 106% 32%, rgba(249,168,212,.45), transparent 64%),
  radial-gradient(420px 420px at 42% 108%, rgba(252,211,77,.35), transparent 64%),
  linear-gradient(160deg,#efe6ff 0%,#ffe7f2 55%,#e3f0ff 100%) !important;}
/* V3 夜航：青色网格底纹 + 缓慢扫描线，指挥舱 HUD 氛围 */
html[data-theme="yehang"] body::before{content:'';position:fixed;inset:0;z-index:0;pointer-events:none;background:
  linear-gradient(rgba(56,189,248,.045) 1px,transparent 1px),
  linear-gradient(90deg,rgba(56,189,248,.045) 1px,transparent 1px);
  background-size:44px 44px;}
html[data-theme="yehang"] body::after{content:'';position:fixed;left:0;right:0;height:120px;top:-120px;z-index:0;pointer-events:none;
  background:linear-gradient(rgba(34,211,238,0),rgba(34,211,238,.05));animation:ss-scan 9s linear infinite;}
@keyframes ss-scan{to{transform:translateY(calc(100vh + 240px))}}
/* 各主题滚动条配色（V1/V6/V3 细节） */
html[data-theme="mohe"] ::-webkit-scrollbar-thumb{background:#2c2c30;}
html[data-theme="muse"] ::-webkit-scrollbar-thumb{background:#4a4032;}
html[data-theme="yehang"] ::-webkit-scrollbar-thumb{background:#15304f;}
html[data-theme="xiaguang"] ::-webkit-scrollbar-thumb{background:rgba(124,108,246,.35);}
/* V6 暮色：侧栏 logo 金琥珀渐变 mark */
html[data-theme="muse"] .ss-mark{background:linear-gradient(135deg,#f0b429,#d98324) !important;color:#3a2c10 !important;}
/* V4 霞光：侧栏 logo 靛紫 mark */
html[data-theme="xiaguang"] .ss-mark{background:rgba(124,108,246,.15) !important;color:#7c6cf6 !important;}
@media (prefers-reduced-motion:reduce){
  html[data-theme="yehang"] body::after{animation:none;}
  .ss-dot.ok{animation:none;}
}

/* ============================================================
   主题级独立布局（2026-09-17 第六批）
   V1/V3（mohe/yehang）= 左侧栏；V2/V4/V5/V6（sujian/xiaguang/xuanzhi/muse）= 顶部导航
   同一套 DOM，按主题用 CSS 重排 .side-shell 与 body 留白
   ============================================================ */
@media (min-width:1024px){
  html[data-theme="sujian"] body.side-shell-on,
  html[data-theme="xiaguang"] body.side-shell-on,
  html[data-theme="xuanzhi"] body.side-shell-on,
  html[data-theme="muse"] body.side-shell-on{padding-left:0;padding-top:58px;}
  html[data-theme="sujian"] .side-shell,
  html[data-theme="xiaguang"] .side-shell,
  html[data-theme="xuanzhi"] .side-shell,
  html[data-theme="muse"] .side-shell{
    top:0;left:0;right:0;bottom:auto;width:auto;height:58px;flex-direction:row;align-items:center;
    gap:10px;padding:0 18px;overflow:visible;border-right:none;
    box-shadow:0 2px 10px rgba(15,23,42,.06);}
  html[data-theme="sujian"] .ss-logo,
  html[data-theme="xiaguang"] .ss-logo,
  html[data-theme="xuanzhi"] .ss-logo,
  html[data-theme="muse"] .ss-logo{padding:0;flex-shrink:0;}
  html[data-theme="sujian"] .ss-logo b,
  html[data-theme="xiaguang"] .ss-logo b,
  html[data-theme="xuanzhi"] .ss-logo b,
  html[data-theme="muse"] .ss-logo b{white-space:nowrap;}
  html[data-theme="sujian"] .ss-nav,
  html[data-theme="xiaguang"] .ss-nav,
  html[data-theme="xuanzhi"] .ss-nav,
  html[data-theme="muse"] .ss-nav{flex-direction:row;gap:2px;overflow-x:auto;flex:1;scrollbar-width:none;}
  html[data-theme="sujian"] .ss-item,
  html[data-theme="xiaguang"] .ss-item,
  html[data-theme="xuanzhi"] .ss-item,
  html[data-theme="muse"] .ss-item{white-space:nowrap;padding:7px 11px;border-radius:8px;flex-shrink:0;}
  html[data-theme="sujian"] .ss-k,
  html[data-theme="xiaguang"] .ss-k,
  html[data-theme="xuanzhi"] .ss-k,
  html[data-theme="muse"] .ss-k{display:none;}
  html[data-theme="sujian"] .ss-foot,
  html[data-theme="xiaguang"] .ss-foot,
  html[data-theme="xuanzhi"] .ss-foot,
  html[data-theme="muse"] .ss-foot{margin-left:0;padding:0 0 0 10px;border-top:none;flex-shrink:0;background:transparent;}
  html[data-theme="sujian"] .ss-logout,
  html[data-theme="xiaguang"] .ss-logout,
  html[data-theme="xuanzhi"] .ss-logout,
  html[data-theme="muse"] .ss-logout{margin-left:10px;}
  /* 顶栏下 Cmdk/浮动元素让位 */
  html[data-theme="sujian"] .ss-cmdk,
  html[data-theme="xiaguang"] .ss-cmdk,
  html[data-theme="xuanzhi"] .ss-cmdk,
  html[data-theme="muse"] .ss-cmdk{padding-top:9vh;}
  /* wb-side sticky 顶距适配顶栏 */
  html[data-theme="sujian"] .wb-side,
  html[data-theme="xiaguang"] .wb-side,
  html[data-theme="xuanzhi"] .wb-side,
  html[data-theme="muse"] .wb-side{top:72px;}
}
