/* ==========================================================================
   ZTOJ 暗色主题（dark.css）
   --------------------------------------------------------------------------
   只在 <html class="theme--dark"> 下生效，亮色样式完全不受影响。

   配色思路抄苹果的深色模式：
     - 底：近黑（#0b0e13），带两层极淡的冷色柔光，不做纯平黑
     - 面：卡片 / 面板比底色亮两档（#171c23），靠「亮度差 + 1px 描边」分层，
           不用投影堆叠（暗底上投影几乎看不见，只会发灰）
     - 字：主文字 #f0f4fa，正文 #c8d2df，次要 #93a1b3，最淡 #6d7b8d
     - 强调色：亮蓝 #6cb0ff（暗底上深蓝 #0F3D75 几乎看不见，必须提亮）
     - 状态色统一提亮一档（绿 #4ade80、红 #f87171、琥珀 #fbbf24），否则暗底发闷

   顺序：基础 → 导航 → 卡片/表格/正文 → 表单/按钮 → 首页部件 → 站内组件
        → 各插件页面（日报 / 学习报告 / 反馈 / 讲义 / 在线表 / 后台）
   ========================================================================== */

html.theme--dark {
  color-scheme: dark;

  /* 覆盖 ztoj.css 的浅色 token */
  --zt-blue: #1c5b96;
  --zt-blue-hi: #2a72b8;
  --zt-blue-lo: rgba(108, 176, 255, .14);
  --zt-ink: #f0f4fa;
  --zt-text: #c8d2df;
  --zt-muted: #93a1b3;
  --zt-faint: #6d7b8d;
  --zt-line: rgba(255, 255, 255, .10);
  --zt-line-2: rgba(255, 255, 255, .06);
  --zt-card: #171c23;
  --zt-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 30px rgba(0, 0, 0, .32);
  --zt-glass: rgba(30, 37, 47, .72);
  --zt-glass-line: rgba(255, 255, 255, .10);

  /* 暗色专用 */
  --ztd-bg: #0b0e13;
  --ztd-surface: rgba(25, 31, 39, .86);
  --ztd-solid: #171c23;
  --ztd-solid-2: #1d232c;
  --ztd-line: rgba(255, 255, 255, .10);
  --ztd-line-soft: rgba(255, 255, 255, .06);
  --ztd-ink: #f0f4fa;
  --ztd-text: #c8d2df;
  --ztd-muted: #93a1b3;
  --ztd-faint: #6d7b8d;
  --ztd-accent: #6cb0ff;
  --ztd-accent-2: #8ec6ff;
  --ztd-hover: rgba(255, 255, 255, .06);
  --ztd-tint: rgba(108, 176, 255, .10);
}

/* ------------------------------ 基础 ------------------------------ */
html.theme--dark body {
  background-color: var(--ztd-bg) !important;
  background-image:
    radial-gradient(90vmax 55vmax at 18% -14%, rgba(38, 84, 148, .30) 0%, rgba(38, 84, 148, 0) 62%),
    radial-gradient(70vmax 48vmax at 100% 0%, rgba(18, 82, 78, .16) 0%, rgba(18, 82, 78, 0) 58%) !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed, fixed !important;
  color: var(--ztd-text);
}

html.theme--dark a { color: var(--ztd-accent); }
html.theme--dark a:hover { color: var(--ztd-accent-2); }
/* 按钮、导航、菜单的链接颜色各自有规则，别被上面那条盖掉 */
html.theme--dark a.button,
html.theme--dark a.menu__link,
html.theme--dark a.nav__item,
html.theme--dark a.pager__item { color: inherit; }

/* 标题：首页「学习任务」那种裸 h1 会被主题的深色规则压住，这里提到 body 一层并加 !important */
html.theme--dark body h1, html.theme--dark body h2, html.theme--dark body h3,
html.theme--dark body h4, html.theme--dark body h5, html.theme--dark body h6 {
  color: var(--ztd-ink) !important;
}
html.theme--dark hr { border-color: rgba(255, 255, 255, .10); }
html.theme--dark ::selection { background: rgba(108, 176, 255, .32); color: #fff; }
html.theme--dark ::-webkit-scrollbar { width: 12px; height: 12px; }
html.theme--dark ::-webkit-scrollbar-track { background: transparent; }
html.theme--dark ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .16); border-radius: 8px;
  border: 3px solid transparent; background-clip: content-box;
}
html.theme--dark ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .26); background-clip: content-box; }

/* ------------------------------ 导航 ------------------------------ */
html.theme--dark nav.nav {
  background: rgba(11, 14, 19, .74) !important;
  -webkit-backdrop-filter: blur(26px) saturate(1.8);
  backdrop-filter: blur(26px) saturate(1.8);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07) !important;
}
html.theme--dark nav.nav .nav__item { color: #a7b3c2; }
html.theme--dark nav.nav .nav__item:hover { color: #fff !important; }
html.theme--dark nav.nav .nav__item.nav--active { color: #fff; font-weight: 600; }
html.theme--dark nav.nav--shadow { background: none !important; box-shadow: none !important; }
html.theme--dark .nav--shadow { box-shadow: none !important; }

html.theme--dark .header--mobile {
  background: rgba(11, 14, 19, .82) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07) !important;
}
html.theme--dark .header--mobile .hamburger-inner,
html.theme--dark .header--mobile .hamburger-inner::before,
html.theme--dark .header--mobile .hamburger-inner::after { background-color: #c8d2df; }

/* 「更多」下拉：面板自己渲染，不在 .dropdown-target 里 */
html.theme--dark .zt-nav-more .zt-menu-panel {
  background: rgba(24, 30, 38, .97);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .58);
}
html.theme--dark .zt-nav-more .zt-menu-panel a { color: #c3cedb; }
html.theme--dark .zt-nav-more .zt-menu-panel a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
html.theme--dark .zt-nav-more .zt-menu-panel a.nav--active { color: #fff; background: rgba(255, 255, 255, .07); }

/* 右上角用户下拉 */
html.theme--dark .dropdown-target.menu {
  background: rgba(24, 30, 38, .97) !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .62) !important;
}
html.theme--dark .dropdown-target.menu .menu__link { color: #c3cedb; }
html.theme--dark .dropdown-target.menu .menu__link .icon { color: #8b98a9; }
html.theme--dark .dropdown-target.menu .menu__link:hover { background: rgba(255, 255, 255, .08) !important; color: #fff; }
html.theme--dark .dropdown-target.menu .menu__link:hover .icon { color: #fff; }
html.theme--dark .dropdown-target.menu .menu__seperator { background: rgba(255, 255, 255, .10); }
html.theme--dark .drop-content .menu__link:hover { background: rgba(255, 255, 255, .08) !important; color: #fff !important; }

/* 右侧（后台 / 设置）菜单 */
html.theme--dark .section.side .menu__link { color: #b3bfcd; }
html.theme--dark .section.side .menu__link:hover { color: #fff; background: rgba(255, 255, 255, .07); }
html.theme--dark .section.side .menu__link.active,
html.theme--dark .section.side .menu__link.active:hover {
  color: #fff !important;
  background: linear-gradient(180deg, #2a72b8, #1c548f) !important;
}

/* ------------------------------ 卡片 / 表格 / 正文 ------------------------------ */
html.theme--dark .slideout-panel { background: transparent !important; }

html.theme--dark .section:not(.section--contest):not(.immersive--content) {
  background: var(--ztd-surface) !important;
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  backdrop-filter: blur(30px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05),
              0 1px 2px rgba(0, 0, 0, .40),
              0 18px 44px rgba(0, 0, 0, .34) !important;
}
html.theme--dark .section__header { border-bottom-color: rgba(255, 255, 255, .07) !important; }
html.theme--dark .section__title { color: var(--ztd-ink); }
html.theme--dark .section__body { color: var(--ztd-text); }

/* 表头 / 斑马纹 / 悬停：一律用「白上加白」的透明度，不要在暗底上铺浅色块 */
html.theme--dark .data-table { background: transparent !important; }
html.theme--dark .section .data-table thead th,
html.theme--dark .section table thead th,
html.theme--dark .section .data-table th,
html.theme--dark .data-table thead th {
  background: rgba(255, 255, 255, .05) !important;
  color: #b9c5d3 !important;
  border-bottom-color: rgba(255, 255, 255, .09) !important;
}
html.theme--dark .data-table td,
html.theme--dark .data-table th,
html.theme--dark .section table td,
html.theme--dark .section table th { border-color: rgba(255, 255, 255, .08) !important; color: var(--ztd-text); }
html.theme--dark .data-table tr:nth-child(2n),
html.theme--dark .data-table tbody tr:nth-child(2n) { background: rgba(255, 255, 255, .028) !important; }
html.theme--dark .data-table tbody tr:hover { background: rgba(255, 255, 255, .07) !important; }

html.theme--dark .section__list__item { border-bottom-color: rgba(255, 255, 255, .07) !important; }
html.theme--dark .section__list__item:hover { background: rgba(255, 255, 255, .05); }
html.theme--dark .section__list__item.highlight { border-left-color: var(--ztd-accent) !important; }

/* 题面 / 正文 */
html.theme--dark .problem-content,
html.theme--dark .problem-content p,
html.theme--dark .problem-content li,
html.theme--dark .problem-content td,
html.theme--dark .problem-content blockquote { color: var(--ztd-text) !important; }
html.theme--dark .problem-content h1, html.theme--dark .problem-content h2,
html.theme--dark .problem-content h3, html.theme--dark .problem-content h4,
html.theme--dark .problem-content h5, html.theme--dark .problem-content h6 { color: var(--ztd-ink) !important; }
html.theme--dark .typo,
html.theme--dark .typo p, html.theme--dark .typo li, html.theme--dark .typo td { color: var(--ztd-text); }
html.theme--dark .typo h1, html.theme--dark .typo h2, html.theme--dark .typo h3,
html.theme--dark .typo h4, html.theme--dark .typo h5, html.theme--dark .typo h6 { color: var(--ztd-ink); }
html.theme--dark .typo code {
  background: rgba(255, 255, 255, .08); color: #e6edf6;
  border: 1px solid rgba(255, 255, 255, .07); border-radius: 4px;
}
html.theme--dark .typo pre { background: #0e131a !important; border-color: rgba(255, 255, 255, .08); }
html.theme--dark .typo pre code { background: none; border: none; }
html.theme--dark .typo blockquote {
  background: rgba(108, 176, 255, .07); border-left-color: var(--ztd-accent);
}
html.theme--dark .section dl.horizontal dt,
html.theme--dark .section dl.large.horizontal dt { color: var(--ztd-ink); }

/* 表格里常见的实白小块（如「学习任务」表） */
html.theme--dark .section table,
html.theme--dark .section td,
html.theme--dark .section th { background-color: transparent; }
html.theme--dark .section table tbody tr { background: transparent; }

/* ------------------------------ 表单 / 按钮 ------------------------------ */
html.theme--dark .textbox,
html.theme--dark input.textbox,
html.theme--dark textarea.textbox,
html.theme--dark select.textbox,
html.theme--dark .select,
html.theme--dark select,
html.theme--dark input[type="text"]:not(.button),
html.theme--dark input[type="password"],
html.theme--dark input[type="email"],
html.theme--dark input[type="number"],
html.theme--dark input[type="search"],
html.theme--dark input[type="date"],
html.theme--dark input[type="datetime-local"],
html.theme--dark textarea {
  background: #131920 !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  color: var(--ztd-ink) !important;
  box-shadow: none !important;
}
html.theme--dark select option { background: #131920; color: var(--ztd-ink); }
html.theme--dark .textbox:focus,
html.theme--dark input:focus,
html.theme--dark textarea:focus,
html.theme--dark select:focus {
  border-color: rgba(108, 176, 255, .65) !important;
  box-shadow: 0 0 0 3px rgba(108, 176, 255, .16) !important;
}
html.theme--dark ::placeholder { color: #6d7b8d !important; }
html.theme--dark label { color: var(--ztd-text); }

html.theme--dark .button,
html.theme--dark a.button,
html.theme--dark button.button {
  background: rgba(255, 255, 255, .07) !important;
  border-color: rgba(255, 255, 255, .14) !important;
  color: #dde6f1 !important;
  text-shadow: none;
}
html.theme--dark .button:hover,
html.theme--dark a.button:hover,
html.theme--dark button.button:hover { background: rgba(255, 255, 255, .13) !important; color: #fff !important; }
html.theme--dark .button.primary,
html.theme--dark a.button.primary,
html.theme--dark button.button.primary {
  background: linear-gradient(180deg, #2a75b8 0%, #1b5590 100%) !important;
  border-color: rgba(120, 180, 240, .45) !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35) !important;
}
html.theme--dark .button.primary:hover,
html.theme--dark a.button.primary:hover,
html.theme--dark button.button.primary:hover { background: linear-gradient(180deg, #3a85c8 0%, #225f9c 100%) !important; }

html.theme--dark .checkbox input,
html.theme--dark .radio input {
  background: #131920 !important; border-color: rgba(255, 255, 255, .22) !important;
}
html.theme--dark .checkbox input:checked,
html.theme--dark .radio input:checked {
  background: var(--ztd-accent) !important; border-color: var(--ztd-accent) !important;
}
html.theme--dark .pager__item { color: #b9c5d3; border-color: rgba(255, 255, 255, .14); }
html.theme--dark .pager__item.current { color: #fff !important; border-color: var(--ztd-accent) !important; background: rgba(108, 176, 255, .16); }
html.theme--dark .pager__item.link:hover { color: #fff !important; border-color: var(--ztd-accent) !important; }

/* ------------------------------ 页脚 ------------------------------ */
html.theme--dark:not(.layout--immersive) .footer { color: #6d7b8d !important; }
html.theme--dark:not(.layout--immersive) .footer a,
html.theme--dark:not(.layout--immersive) .footer a:visited { color: #8b98a9 !important; }
html.theme--dark:not(.layout--immersive) .footer a:hover { color: #cfe1f5 !important; }

/* ------------------------------ 首页部件 ------------------------------ */
/* 今日运势 */
html.theme--dark .ck-md { color: var(--ztd-muted); }
html.theme--dark .ck-lunar { color: #d9ab72; }
html.theme--dark .ck-fu {
  background: rgba(217, 74, 82, .10) !important;
  border-color: rgba(217, 74, 82, .26) !important;
}
html.theme--dark .ck-fu .lb { color: #d0a279; }
html.theme--dark .ck-fu .vv { color: #ff8d84; }
/* 运势那条是内联的品牌色，直接换色会丢掉语义，用提亮的方式处理 */
html.theme--dark .ck-luck { filter: brightness(1.45) saturate(1.05); }
html.theme--dark .ck-days { color: var(--ztd-muted); }
html.theme--dark .ck-race-mini {
  color: #ff9d96 !important;
  background: rgba(248, 113, 113, .14);
  border-color: rgba(248, 113, 113, .28);
}

/* 首页右侧「活跃用户」「常用网站」这类小列表 */
html.theme--dark .section.side .section__body,
html.theme--dark .section.side .typo { color: var(--ztd-text); }
html.theme--dark .section.side .typo a { color: var(--ztd-accent); }

/* ------------------------------ 站内组件（ztoj.css） ------------------------------ */
html.theme--dark .zt-btn {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .14);
  color: #dde6f1;
  box-shadow: none;
}
html.theme--dark .zt-btn:hover { background: rgba(255, 255, 255, .13); color: #fff; }
html.theme--dark .zt-btn:active,
html.theme--dark .zt-btn.is-active { background: #2a72b8; border-color: #2a72b8; color: #fff; }
html.theme--dark .zt-btn--primary { background: linear-gradient(180deg, #2a75b8, #1b5590); border-color: rgba(120, 180, 240, .45); color: #fff; }
html.theme--dark .zt-btn--primary:hover { background: linear-gradient(180deg, #3a85c8, #225f9c); }
html.theme--dark .zt-card { background: var(--ztd-surface); border-color: rgba(255, 255, 255, .08); }
html.theme--dark .zt-title { color: var(--ztd-ink); }
html.theme--dark .zt-sub { color: var(--ztd-muted); }
html.theme--dark .zt-input,
html.theme--dark .zt-select {
  background: #131920; color: var(--ztd-ink); border-color: rgba(255, 255, 255, .14);
}
html.theme--dark .zt-tag { background: rgba(255, 255, 255, .08); color: #c8d2df; }
html.theme--dark .zt-tag--blue { background: rgba(108, 176, 255, .16); color: var(--ztd-accent-2); }
html.theme--dark .zt-note { color: var(--ztd-muted); }
html.theme--dark .zt-note--ok { color: #4ade80; }
html.theme--dark .zt-note--bad { color: #f87171; }

/* 记录页标签 / 比赛卡片 / 比赛页签 */
html.theme--dark .zt-tab { color: #a7b3c2; }
html.theme--dark .zt-tab:hover { color: #fff; background: rgba(255, 255, 255, .07); }
html.theme--dark .zt-tab.on { color: #fff; background: rgba(108, 176, 255, .18); }
html.theme--dark .zt-ctab { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #b9c5d3; }
html.theme--dark .zt-ctab:hover { background: rgba(255, 255, 255, .11); color: #fff; border-color: rgba(255, 255, 255, .2); }
html.theme--dark .zt-ctab.on { background: #2a72b8; border-color: #2a72b8; color: #fff; }
/* 注意这里用 background 简写：浅色版是 background: rgba(255,255,255,.72)，
   只改 background-image 的话底色还是白的 */
html.theme--dark .zt-ccard.is-done {
  background: linear-gradient(135deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .03) 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #c8d2df;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .32);
}
html.theme--dark .zt-cempty { background: rgba(255, 255, 255, .04); color: var(--ztd-muted); }
html.theme--dark .zt-contest-toggle {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .10);
  color: #a7b3c2;
}
html.theme--dark .zt-contest-toggle:hover { background: rgba(255, 255, 255, .12); color: #fff; }
html.theme--dark .zt-contest-toggle b { color: var(--ztd-accent); }
/* 比赛卡里的链接自带颜色（白字 / 白底蓝字），别被「暗色下链接变亮蓝」那条规则改掉 */
html.theme--dark .zt-ccard a { color: inherit; }
html.theme--dark .zt-ccard__title { color: #fff !important; }
html.theme--dark .zt-ccard.is-done .zt-ccard__title { color: var(--ztd-ink) !important; }
html.theme--dark .zt-ccard__go { background: #fff !important; color: #0F3D75 !important; }
html.theme--dark .zt-ccard.is-done .zt-ccard__go { background: rgba(255, 255, 255, .92) !important; color: #0F3D75 !important; }
html.theme--dark .zt-ccard.is-done .zt-ccard__title { color: var(--ztd-ink); }
html.theme--dark .zt-ccard.is-done .zt-ccard__title:hover { color: var(--ztd-accent); }
html.theme--dark .zt-ccard.is-done .zt-ccard__meta { color: var(--ztd-muted); }
html.theme--dark .zt-ccard.is-done .zt-ccard__badge { color: #c8d2df; background: rgba(255, 255, 255, .10); }
html.theme--dark .zt-ccard.is-done .zt-ccard__go {
  background: rgba(255, 255, 255, .09) !important; color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .14);
}
html.theme--dark .zt-cempty { color: var(--ztd-muted); }
html.theme--dark .zt-cnew { box-shadow: none; }

/* 总结列表的斑马纹（JS 打的 .zt-alt） */
html.theme--dark .sm-card { background: transparent; border-color: rgba(255, 255, 255, .08); }
html.theme--dark .sm-card.zt-alt:not(.is-pinned) { background: rgba(255, 255, 255, .04) !important; }
html.theme--dark .sm-card:not(.is-pinned):hover { background: rgba(255, 255, 255, .075) !important; border-color: rgba(255, 255, 255, .16) !important; }
html.theme--dark .sm-card.is-star:not(.is-pinned) { background-image: none !important; }

/* 我的文件（#md-root） */
html.theme--dark body #md-root { color: var(--ztd-text); }
html.theme--dark body #md-root #md-head,
html.theme--dark body #md-root .md-btn { border-color: rgba(255, 255, 255, .13); background: rgba(255, 255, 255, .06); color: #c8d2df; }
html.theme--dark body #md-root .md-btn:hover { background: rgba(255, 255, 255, .11); color: #fff; }
html.theme--dark body #md-root .md-btn.pri { background: #2a72b8; border-color: #2a72b8; color: #fff; }
html.theme--dark body #md-root .md-row:hover { background: rgba(255, 255, 255, .06); }
html.theme--dark body #md-root .md-row.sel { background: rgba(108, 176, 255, .16); }
html.theme--dark body #md-root .md-nm,
html.theme--dark body #md-root .md-nm a { color: #c8d2df !important; }
html.theme--dark body #md-root .md-row.folder .md-nm { color: var(--ztd-ink); }
html.theme--dark body #md-root .md-sz,
html.theme--dark body #md-root .md-tm,
html.theme--dark body #md-root .md-path { color: var(--ztd-muted); }
html.theme--dark body #md-root .md-ops a { color: var(--ztd-muted); }
html.theme--dark body #md-root .md-ops a:hover { background: rgba(255, 255, 255, .10); color: #fff; }
html.theme--dark body #md-root .md-ops a.del:hover { background: rgba(248, 113, 113, .16); color: #ff9d96; }
html.theme--dark body #md-root #md-crumb .cur { color: var(--ztd-ink); }
html.theme--dark body #md-root #md-crumb .sep { color: #4a5665; }
html.theme--dark body #md-search,
html.theme--dark body #md-target,
html.theme--dark body #md-move-target,
html.theme--dark body #md-pwd-input {
  background: #131920; border-color: rgba(255, 255, 255, .14); color: var(--ztd-ink);
}
html.theme--dark body #md-pv-mask,
html.theme--dark body #md-pwd-mask { background: rgba(4, 7, 11, .72); }

/* ------------------------------ Markdown 正文（题解 / 报告 / 讲义共用） ------------------------------ */
html.theme--dark .aidiag-md { color: var(--ztd-text); }
html.theme--dark .aidiag-md h1, html.theme--dark .aidiag-md h2,
html.theme--dark .aidiag-md h3, html.theme--dark .aidiag-md h4,
html.theme--dark .aidiag-md h5, html.theme--dark .aidiag-md h6,
html.theme--dark .aidiag-md strong, html.theme--dark .aidiag-md b { color: var(--ztd-ink); }
html.theme--dark .aidiag-md code { background: rgba(255, 255, 255, .09); color: #9ecbff; }
html.theme--dark .aidiag-md pre {
  background: #0e131a; border-color: rgba(255, 255, 255, .09); color: #dbe4ef;
}
html.theme--dark .aidiag-md pre code { background: none; color: inherit; }
html.theme--dark .aidiag-md th, html.theme--dark .aidiag-md td { border-color: rgba(255, 255, 255, .10); }
html.theme--dark .aidiag-md th { background: rgba(255, 255, 255, .05); color: #b9c5d3; }
html.theme--dark .aidiag-md blockquote {
  background: rgba(108, 176, 255, .07); border-left-color: rgba(108, 176, 255, .5); color: #b9c5d3;
}
html.theme--dark .aidiag-md hr { border-top-color: rgba(255, 255, 255, .10); }
html.theme--dark .aidiag-md a { color: var(--ztd-accent); }

/* ------------------------------ 每日做题日报 ------------------------------ */
html.theme--dark .dp-wrap {
  --ink: #f0f4fa; --muted: #93a1b3; --line: rgba(255, 255, 255, .10);
  --blue: #4f97dd; --blue2: #6cb0ff; --teal: #38bdf8; --green: #4ade80; --amber: #fbbf24; --red: #f87171;
}
html.theme--dark .dp-dates a { background: rgba(255, 255, 255, .06); color: #a7b3c2; }
html.theme--dark .dp-dates a:hover { background: rgba(255, 255, 255, .11); color: #fff; }
html.theme--dark .dp-dates a.on { background: linear-gradient(180deg, #2a75b8, #1b5590); color: #fff; box-shadow: none; }
html.theme--dark .dp-stat,
html.theme--dark .dp-card {
  background: var(--ztd-solid); border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .32);
}
html.theme--dark .dp-stat b { color: var(--c, #6cb0ff); }
html.theme--dark .dp-stat span { color: #c8d2df; }
html.theme--dark .dp-stat em { color: var(--ztd-muted); }
html.theme--dark .dp-card h3 { color: var(--ztd-ink); }
html.theme--dark .dp-good .t,
html.theme--dark .dp-good .x,
html.theme--dark .dp-ttl,
html.theme--dark .dp-habit .t { color: var(--ztd-ink) !important; }
html.theme--dark .dp-good .x,
html.theme--dark .dp-habit .x { color: #a9b9cc !important; }
html.theme--dark .dp-good { border-bottom-color: rgba(255, 255, 255, .07) !important; }
html.theme--dark .dp-num-li,
html.theme--dark .dp-note,
html.theme--dark .dp-lesson-body,
html.theme--dark .dp-unp { color: #c8d2df !important; }
html.theme--dark .dp-num-li i { background: rgba(108, 176, 255, .16); color: #8ec6ff; }
html.theme--dark .dp-unpassed span {
  background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .10); color: #c8d2df;
}
html.theme--dark .dp-cheer {
  background: rgba(251, 191, 36, .08); border-color: rgba(251, 191, 36, .18); color: #e8d5b8;
}
html.theme--dark .dp-habit .star.lv-ok { background: rgba(74, 222, 128, .16); color: #6ee7a0; }
html.theme--dark .dp-habit .star.lv-note { background: rgba(108, 176, 255, .16); color: #8ec6ff; }
html.theme--dark .dp-prob .n { color: var(--ztd-ink); }
html.theme--dark .dp-card h3 span { color: var(--ztd-muted); }
html.theme--dark .dp-table thead th { background: rgba(255, 255, 255, .05); color: #b9c5d3; }
html.theme--dark .dp-table td { color: var(--ztd-text); border-bottom-color: rgba(255, 255, 255, .06); }
html.theme--dark .dp-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .028); }
html.theme--dark .dp-table tbody tr:hover { background: rgba(255, 255, 255, .07); }
html.theme--dark .dp-table td:first-child { color: var(--ztd-ink); }
html.theme--dark .dp-table a { color: var(--ztd-accent); }
html.theme--dark .dp-num { color: #c8d2df; }
html.theme--dark .dp-dim { color: var(--ztd-muted); }
html.theme--dark .dp-tabs { background: rgba(255, 255, 255, .06); }
html.theme--dark .dp-tabs button { color: #a7b3c2; }
html.theme--dark .dp-tabs button:hover { color: #fff; }
html.theme--dark .dp-tabs button.on { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; }
html.theme--dark .dp-tag.idle { background: rgba(255, 255, 255, .08); color: #b9c5d3; }
html.theme--dark .dp-tag.warn { background: rgba(248, 113, 113, .14); color: #ff9d96; }
html.theme--dark .dp-tag.ok { background: rgba(74, 222, 128, .14); color: #6ee7a0; }
html.theme--dark .dp-chip.ok { background: rgba(74, 222, 128, .14); color: #6ee7a0; }
html.theme--dark .dp-chip.no { background: rgba(248, 113, 113, .14); color: #ff9d96; }
html.theme--dark .dp-chip.weak { background: rgba(251, 191, 36, .14); color: #fbbf24; }
html.theme--dark .dp-list li { color: var(--ztd-text); }
html.theme--dark .dp-prob .n { color: var(--ztd-ink); }
html.theme--dark .dp-prob .meta { color: var(--ztd-muted); }
html.theme--dark .dp-prob .note { color: #a9b9cc; background: rgba(108, 176, 255, .07); }
html.theme--dark .dp-prob .t.ok { background: rgba(74, 222, 128, .14); color: #6ee7a0; }
html.theme--dark .dp-prob .t.no { background: rgba(248, 113, 113, .14); color: #ff9d96; }
html.theme--dark .dp-empty { color: var(--ztd-muted); }
html.theme--dark .dp-habit-note { color: var(--ztd-muted); }
html.theme--dark .dp-code { background: #0d1218 !important; }
html.theme--dark .dp-cheer { color: #a9b9cc; }
/* 日报里几处写死的近黑字（名单、习惯名、一句话），暗底上会看不见 */
html.theme--dark .dp-habit { color: var(--ztd-ink); }
html.theme--dark .dp-star .who { color: var(--ztd-ink); }
html.theme--dark .dp-star .txt { color: #a9b9cc; }
html.theme--dark .dp-warn { color: #a9b9cc; border-bottom-color: rgba(248, 113, 113, .18); }
html.theme--dark .dp-warn b { color: var(--ztd-ink); }
html.theme--dark .dp-week .v { color: var(--ztd-muted); }
html.theme--dark .dp-ai-loading { color: var(--ztd-muted); }
html.theme--dark .dp-card h3 { color: var(--ztd-ink); }

/* ------------------------------ 学习报告详情 ------------------------------ */
html.theme--dark #sreport-content { color: var(--ztd-text); }
html.theme--dark #sreport-content .rp-sec {
  background: rgba(25, 31, 39, .72);
  border-color: rgba(255, 255, 255, .10);
}
html.theme--dark #sreport-content .rp-t { background: rgba(108, 176, 255, .14); color: var(--ztd-accent-2); }
html.theme--dark #sreport-content .rp-no { color: #7f8da0; background: rgba(255, 255, 255, .07); }
html.theme--dark #sreport-content h2,
html.theme--dark #sreport-content h3,
html.theme--dark #sreport-content strong { color: var(--ztd-ink); }
html.theme--dark #sreport-content p,
html.theme--dark #sreport-content li { color: var(--ztd-text); }
html.theme--dark #sreport-content thead th { background: rgba(255, 255, 255, .05); color: #b9c5d3; }
html.theme--dark #sreport-content tbody td { border-color: rgba(255, 255, 255, .08); }
html.theme--dark #sreport-content tbody tr:nth-child(even) { background: rgba(255, 255, 255, .028); }
html.theme--dark #sreport-content tbody tr:hover { background: rgba(255, 255, 255, .07); }
html.theme--dark #sreport-content tbody td:first-child { color: var(--ztd-ink); }
html.theme--dark #sreport-content blockquote { background: rgba(108, 176, 255, .08); }
html.theme--dark #sreport-content code { background: rgba(255, 255, 255, .08); color: #e6edf6; }
html.theme--dark #sreport-content pre { background: #0e131a; }
html.theme--dark #sreport-content .rp-mx { background: rgba(255, 255, 255, .035); border-color: rgba(255, 255, 255, .09); }
html.theme--dark #sreport-content .rp-mx-head { border-bottom-color: rgba(255, 255, 255, .09); }
html.theme--dark #sreport-content .rp-mx .nm { color: var(--ztd-ink); }
html.theme--dark #sreport-content .rp-mx .k { color: var(--ztd-muted); }
html.theme--dark #sreport-content .rp-mx .c.ok { background: rgba(74, 222, 128, .16); color: #6ee7a0; }
html.theme--dark #sreport-content .rp-mx .c.part { background: rgba(251, 191, 36, .16); color: #fbbf24; }
html.theme--dark #sreport-content .rp-mx .c.zero { background: rgba(248, 113, 113, .16); color: #ff9d96; }
html.theme--dark #sreport-content .rp-mx .c.none { background: rgba(255, 255, 255, .07); color: #64748b; }
html.theme--dark #sreport-content .rp-mx .sc { color: #b9c5d3; }
html.theme--dark #sreport-content .rp-mx .sc b { color: var(--ztd-accent-2); }
html.theme--dark #sreport-content .rp-mx-idle { color: var(--ztd-muted); }
html.theme--dark .rp-head .rp-meta { color: var(--ztd-muted); }
html.theme--dark .rp-toc a { background: rgba(255, 255, 255, .06); color: #b9c5d3; }
html.theme--dark .rp-toc a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
/* 学习报告列表页（表单盒 / 报告行 / 标签 / 模式提示条） */
html.theme--dark .sr-form { background: rgba(255, 255, 255, .035); border-color: rgba(255, 255, 255, .10); }
html.theme--dark .sr-item { background: var(--ztd-solid); border-color: rgba(255, 255, 255, .08); }
html.theme--dark .sr-ava { background: rgba(108, 176, 255, .14); color: #8ec6ff; }
html.theme--dark .sr-tag { background: rgba(255, 255, 255, .09); color: #b9c5d3; }
html.theme--dark .sr-tag--green { background: rgba(74, 222, 128, .16); color: #6ee7a0; }
html.theme--dark .sr-empty { color: var(--ztd-muted); border-color: rgba(255, 255, 255, .12); }
html.theme--dark .sr-step { background: rgba(108, 176, 255, .14); color: #8ec6ff; }
html.theme--dark .sr-stu-list { background: #1a2028; border-color: rgba(255, 255, 255, .14); }
html.theme--dark .sr-mode { background: rgba(108, 176, 255, .10); color: #a9c9ee; border-color: rgba(108, 176, 255, .26); }
html.theme--dark .sr-mode--ok { background: rgba(74, 222, 128, .10); color: #6ee7a0; border-color: rgba(74, 222, 128, .26); }
html.theme--dark .sr-mode--info { background: rgba(108, 176, 255, .10); color: #9ecbff; border-color: rgba(108, 176, 255, .26); }
html.theme--dark .sr-mode--bad { background: rgba(248, 113, 113, .12); color: #ff9d96; border-color: rgba(248, 113, 113, .28); }

/* ------------------------------ 题目同步（problemsync） ------------------------------ */
html.theme--dark .ps-card { background: var(--ztd-solid); border-color: rgba(255, 255, 255, .08); box-shadow: none; }
html.theme--dark .ps-head h1 { color: var(--ztd-ink); }
html.theme--dark .ps-note { color: var(--ztd-muted); }
html.theme--dark .ps-note b { color: #c8d2df; }
html.theme--dark .ps-row { border-color: rgba(255, 255, 255, .10); }
html.theme--dark .ps-row:nth-child(even) { background: rgba(255, 255, 255, .03); }
html.theme--dark .ps-dom { background: rgba(108, 176, 255, .16); color: #8ec6ff; }
html.theme--dark .ps-ttl { color: var(--ztd-ink); }
html.theme--dark .ps-st.same { background: rgba(74, 222, 128, .16); color: #6ee7a0; }
html.theme--dark .ps-st.diff { background: rgba(251, 191, 36, .16); color: #fbbf24; }
html.theme--dark .ps-empty { color: var(--ztd-muted); border-color: rgba(255, 255, 255, .12); }
html.theme--dark .ps-ok { background: rgba(74, 222, 128, .10); border-color: rgba(74, 222, 128, .26); color: #6ee7a0; }
html.theme--dark .ps-pill--ghost {
  background: transparent !important; color: #8ec6ff !important; border-color: rgba(108, 176, 255, .35);
}
html.theme--dark .ps-pill--ghost:hover { background: rgba(108, 176, 255, .12) !important; }

/* ------------------------------ 反馈 ------------------------------ */
html.theme--dark .fb-card,
html.theme--dark .fb-tips {
  background: var(--ztd-solid); border-color: rgba(255, 255, 255, .08); box-shadow: none;
}
html.theme--dark .fb-head h1,
html.theme--dark .fb-empty b,
html.theme--dark .fb-title,
html.theme--dark .fb-tips h3 { color: var(--ztd-ink); }
html.theme--dark .fb-tabs { background: rgba(255, 255, 255, .03); border-bottom-color: rgba(255, 255, 255, .08); }
html.theme--dark .fb-tabs a { color: #b3bfcd; }
html.theme--dark .fb-tabs a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
html.theme--dark .fb-tabs a.on { background: rgba(108, 176, 255, .16); color: #fff; }
html.theme--dark .fb-tabs input,
html.theme--dark .fb-tabs button {
  background: #131920; border-color: rgba(255, 255, 255, .14); color: var(--ztd-ink);
}
html.theme--dark .fb-item:hover { background: rgba(255, 255, 255, .07) !important; }
html.theme--dark .fb-meta { color: var(--ztd-muted); }
html.theme--dark .fb-tips { color: #b3bfcd; }
html.theme--dark .fb-tips .more { color: var(--ztd-muted); border-top-color: rgba(255, 255, 255, .10); }
html.theme--dark .fb-label { color: #c8d2df; }
html.theme--dark .fb-input,
html.theme--dark .fb-textarea {
  background: #131920; border-color: rgba(255, 255, 255, .14); color: var(--ztd-ink);
}
html.theme--dark .fb-body { color: #c8d2df; }
html.theme--dark .fb-rtext { background: rgba(255, 255, 255, .05); color: #c8d2df; }
html.theme--dark .fb-reply.admin .fb-rtext { background: rgba(248, 113, 113, .07); }
html.theme--dark .fb-av { background: rgba(108, 176, 255, .14); color: var(--ztd-accent-2); }
html.theme--dark .fb-reply.admin .fb-av { background: rgba(248, 113, 113, .14); color: #ff9d96; }
html.theme--dark .fb-rhead b { color: #dbe4ef; }
html.theme--dark .fb-sep { background: rgba(255, 255, 255, .09); }
html.theme--dark .fb-err { background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .28); color: #ff9d96; }
html.theme--dark .fb-pager a, html.theme--dark .fb-pager span { color: var(--ztd-accent); }
html.theme--dark .fb-pager .cur { background: rgba(108, 176, 255, .16); color: #fff; }

/* 反馈：胶囊按钮 / 类型徽标 / 类型卡片 / 选题目 */
html.theme--dark .fb-pill {
  background: linear-gradient(180deg, #2a75b8, #1b5590);
  border-color: rgba(120, 180, 240, .45);
  box-shadow: none;
}
html.theme--dark .fb-pill:hover { background: linear-gradient(180deg, #3a85c8, #225f9c); border-color: rgba(120, 180, 240, .6); }
html.theme--dark .fb-item:nth-child(even) { background: rgba(255, 255, 255, .028); }
html.theme--dark .fb-type { background: rgba(108, 176, 255, .16); color: #8ec6ff; }
html.theme--dark .fb-type.t-site { background: rgba(56, 189, 248, .16); color: #7dd3fc; }
html.theme--dark .fb-type.t-course { background: rgba(74, 222, 128, .16); color: #6ee7a0; }
html.theme--dark .fb-type.t-other { background: rgba(148, 163, 184, .18); color: #cbd5e1; }
html.theme--dark .fb-st.open { background: rgba(251, 191, 36, .16); color: #fbbf24; }
html.theme--dark .fb-st.done { background: rgba(74, 222, 128, .16); color: #6ee7a0; }
html.theme--dark .fb-dom { background: rgba(255, 255, 255, .09); color: #a9b6c6; }
html.theme--dark .fb-user { color: var(--ztd-muted); }
html.theme--dark .fb-rel {
  background: rgba(108, 176, 255, .10); border-color: rgba(108, 176, 255, .24); color: #a9b9cc;
}
html.theme--dark .fb-rel:hover { background: rgba(108, 176, 255, .16); color: #fff; }
html.theme--dark .fb-rel b { color: var(--ztd-accent-2); }
html.theme--dark .fb-rel .lb { color: var(--ztd-muted); }
html.theme--dark .fb-type-card { background: var(--ztd-solid-2); border-color: rgba(255, 255, 255, .10); }
html.theme--dark .fb-type-card:hover { background: rgba(255, 255, 255, .06); border-color: var(--c); }
html.theme--dark .fb-type-card b { color: var(--c); }
html.theme--dark .fb-type-card span { color: var(--ztd-muted); }
html.theme--dark .fb-type-card.on { background: var(--ct); box-shadow: inset 0 0 0 1px var(--c); }
html.theme--dark .fb-type-card.t-problem { --c: #6cb0ff; --ct: rgba(108, 176, 255, .10); }
html.theme--dark .fb-type-card.t-site { --c: #38bdf8; --ct: rgba(56, 189, 248, .10); }
html.theme--dark .fb-type-card.t-course { --c: #4ade80; --ct: rgba(74, 222, 128, .10); }
html.theme--dark .fb-type-card.t-other { --c: #a9b6c6; --ct: rgba(148, 163, 184, .10); }
html.theme--dark .fb-prob { background: rgba(255, 255, 255, .035); border-color: rgba(255, 255, 255, .10); }
html.theme--dark .fb-prob-list { background: #1a2028; border-color: rgba(255, 255, 255, .14); box-shadow: 0 18px 44px rgba(0, 0, 0, .6); }
html.theme--dark .fb-prob-list .it { color: #c8d2df; }
html.theme--dark .fb-prob-list .it:hover,
html.theme--dark .fb-prob-list .it.cur { background: rgba(255, 255, 255, .08); }
html.theme--dark .fb-prob-list .it .pid { color: #7f8da0; }
html.theme--dark .fb-prob-list .it .df { background: rgba(251, 191, 36, .16); color: #fbbf24; }
html.theme--dark .fb-chip {
  background: rgba(108, 176, 255, .12); border-color: rgba(108, 176, 255, .30); color: #cfe2f7;
}
html.theme--dark .fb-chip .pid { color: #8ec6ff; }
html.theme--dark .fb-actions button,
html.theme--dark .fb-actions a.btn {
  background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); color: #dde6f1;
}
html.theme--dark .fb-actions button:hover { background: rgba(255, 255, 255, .13); color: #fff; }
html.theme--dark .fb-actions button.primary {
  background: linear-gradient(180deg, #2a75b8, #1b5590); border-color: rgba(120, 180, 240, .45); color: #fff;
}
html.theme--dark .fb-actions button.danger { color: #ff9d96; border-color: rgba(248, 113, 113, .32); background: transparent; }
html.theme--dark .fb-actions button.danger:hover { background: rgba(248, 113, 113, .12); }
/* 反馈正文渲染 markdown 之后（标题 / 表格 / 引用 / 代码） */
html.theme--dark .fb-body.is-md, html.theme--dark .fb-rtext.is-md { color: #c8d2df; }
html.theme--dark .fb-body.is-md h1, html.theme--dark .fb-body.is-md h2,
html.theme--dark .fb-body.is-md h3, html.theme--dark .fb-body.is-md h4,
html.theme--dark .fb-rtext.is-md h1, html.theme--dark .fb-rtext.is-md h2,
html.theme--dark .fb-rtext.is-md h3, html.theme--dark .fb-rtext.is-md h4 { color: var(--ztd-ink); }
html.theme--dark .fb-body.is-md th, html.theme--dark .fb-body.is-md td,
html.theme--dark .fb-rtext.is-md th, html.theme--dark .fb-rtext.is-md td {
  border-color: rgba(255, 255, 255, .14); color: #c8d2df;
}
html.theme--dark .fb-body.is-md th, html.theme--dark .fb-rtext.is-md th {
  background: rgba(255, 255, 255, .05); color: #b9c5d3;
}
html.theme--dark .fb-body.is-md blockquote, html.theme--dark .fb-rtext.is-md blockquote {
  background: rgba(108, 176, 255, .07); border-left-color: rgba(108, 176, 255, .5); color: #b9c5d3;
}
html.theme--dark .fb-body.is-md :not(pre) > code,
html.theme--dark .fb-rtext.is-md :not(pre) > code { background: rgba(255, 255, 255, .10); color: #9ecbff; }
html.theme--dark .fb-body.is-md pre, html.theme--dark .fb-rtext.is-md pre {
  background: #0e131a; border-color: rgba(255, 255, 255, .10); color: #dbe4ef;
}

/* ------------------------------ 讲义 ------------------------------ */
html.theme--dark .hd-wrap { background: var(--ztd-solid); border-color: rgba(255, 255, 255, .09); }
html.theme--dark .hd-top,
html.theme--dark .hd-bar { background: rgba(255, 255, 255, .035); border-bottom-color: rgba(255, 255, 255, .08); }
html.theme--dark .hd-top .hd-h { color: var(--ztd-ink); }
html.theme--dark .hd-left { background: rgba(255, 255, 255, .02); border-right-color: rgba(255, 255, 255, .08); }
html.theme--dark .hd-book { color: #c8d2df; }
html.theme--dark .hd-book:hover { background: rgba(255, 255, 255, .07); }
html.theme--dark .hd-book.on { background: rgba(108, 176, 255, .18); color: var(--ztd-accent-2); }
html.theme--dark .hd-row { color: #c8d2df; }
html.theme--dark .hd-row:hover { background: rgba(255, 255, 255, .06); }
html.theme--dark .hd-row.on { background: rgba(108, 176, 255, .18); color: var(--ztd-accent-2); }
html.theme--dark .hd-row.in-path:not(.on) { background: rgba(108, 176, 255, .08); }
html.theme--dark .hd-row.in-path:not(.on) .ttl { color: var(--ztd-accent); }
html.theme--dark .hd-row .acts a:hover { background: rgba(255, 255, 255, .10); color: #fff; }
html.theme--dark .hd-btn { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .13); color: #c8d2df; }
html.theme--dark .hd-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .2); }
html.theme--dark .hd-seg { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .13); }
html.theme--dark .hd-doc { background: var(--ztd-solid); color: var(--ztd-text); }
html.theme--dark .hd-doc h1, html.theme--dark .hd-doc h2,
html.theme--dark .hd-doc h3, html.theme--dark .hd-doc h4 { color: var(--ztd-ink); }
html.theme--dark .hd-doc code { background: rgba(255, 255, 255, .08); color: #e6edf6; }
html.theme--dark .hd-doc pre { background: #0e131a !important; }
html.theme--dark .hd-doc table th { background: rgba(255, 255, 255, .05); }
html.theme--dark .hd-doc table td, html.theme--dark .hd-doc table th { border-color: rgba(255, 255, 255, .1); }
html.theme--dark .hd-src { background: #0f141a !important; color: #dbe4ef !important; border-color: rgba(255, 255, 255, .12) !important; }
html.theme--dark .hd-menu { background: rgba(24, 30, 38, .98); border-color: rgba(255, 255, 255, .1); box-shadow: 0 18px 42px rgba(0, 0, 0, .6); }
html.theme--dark .hd-menu a, html.theme--dark .hd-menu button { color: #c8d2df; }
html.theme--dark .hd-menu a:hover, html.theme--dark .hd-menu button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
html.theme--dark .hd-dlg { background: #1a2028; border-color: rgba(255, 255, 255, .1); }
html.theme--dark .hd-dlg-h { color: var(--ztd-ink); }
html.theme--dark .hd-mask { background: rgba(4, 7, 11, .7); }

/* ------------------------------ 在线用户表 / 后台表格 ------------------------------ */
html.theme--dark .zt-ol-table th { background: rgba(255, 255, 255, .05); color: #b9c5d3; border-bottom-color: rgba(255, 255, 255, .09); }
html.theme--dark .zt-ol-table td { color: var(--ztd-text); border-bottom-color: rgba(255, 255, 255, .07); }
html.theme--dark .zt-ol-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .026); }
html.theme--dark .zt-ol-table tbody tr:hover { background: rgba(255, 255, 255, .07); }
html.theme--dark .zt-ol-btn { background: rgba(108, 176, 255, .14); color: var(--ztd-accent-2); }
html.theme--dark .zt-ol-empty { color: var(--ztd-muted); }

html.theme--dark .zt-u-table th { background: rgba(255, 255, 255, .05); color: #b9c5d3; border-bottom-color: rgba(255, 255, 255, .09); }
html.theme--dark .zt-u-table td { color: var(--ztd-text); border-bottom-color: rgba(255, 255, 255, .07); }
html.theme--dark .zt-u-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .026); }
html.theme--dark .zt-u-table tbody tr:hover { background: rgba(255, 255, 255, .07); }
html.theme--dark .zt-u-name { color: var(--ztd-ink); }
html.theme--dark .zt-u-bio { color: var(--ztd-muted); }
html.theme--dark .zt-u-act a { color: var(--ztd-accent); }
html.theme--dark .zt-u-bar { background: rgba(255, 255, 255, .03); border-bottom-color: rgba(255, 255, 255, .08); }

html.theme--dark .zt-m-bar,
html.theme--dark .zt-m-sum { background: rgba(255, 255, 255, .03); border-bottom-color: rgba(255, 255, 255, .08); }
html.theme--dark .zt-m-bar input,
html.theme--dark .zt-m-bar select { background: #131920; border-color: rgba(255, 255, 255, .14); color: var(--ztd-ink); }
html.theme--dark .message-card { background: #171c23; border-color: rgba(255, 255, 255, .08); }
html.theme--dark .message-card .messagepad__message__body { color: var(--ztd-text); }
html.theme--dark .zt-m-tools label { color: #b3bfcd; }

/* 消息中心 / 站内信 */
html.theme--dark .messagepad__list-item.active { background: rgba(108, 176, 255, .14) !important; border-color: var(--ztd-accent) !important; }
html.theme--dark .messagepad__message__body { background: rgba(255, 255, 255, .04); color: var(--ztd-text); }

/* ------------------------------ 深色下的小修饰 ------------------------------ */
/* 沉浸式（登录 / 注册）页本来就是深底，暗色下只需要把输入框统一 */
html.theme--dark.layout--immersive body { background-color: #080b10 !important; background-image: none !important; }
html.theme--dark.layout--immersive #panel { background-color: #080b10 !important; }
html.theme--dark.layout--immersive .immersive--content { background: rgba(24, 30, 38, .92); border-color: rgba(255, 255, 255, .1); }
html.theme--dark img { color-scheme: dark; }

/* --------------------- 反馈：审核印章 / 列表按钮 / 提示条 --------------------- */
/* 印章原本用 multiply 混色贴在白底上，深色底会把红色乘成近黑，这里改成正常混合 + 提亮红 */
html.theme--dark .fb-stamp,
html.theme--dark .fb-mark { mix-blend-mode: normal; color: #ff8b7a; opacity: .92; }
html.theme--dark .fb-stamp.rej,
html.theme--dark .fb-mark.rej { color: #9fb0c4; opacity: .85; }
/* 印章中间的白色横条是 SVG 里写死的 fill，深色下要换成深底，否则白条上压浅色字看不清 */
html.theme--dark .fb-stamp svg rect { fill: #171c23; }
html.theme--dark .fb-ops button {
  background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #d4dde8;
}
html.theme--dark .fb-ops button.ok { color: #7ee2a8; border-color: rgba(126, 226, 168, .38); }
html.theme--dark .fb-ops button.ok:hover { background: #1f7a4d; border-color: #1f7a4d; color: #fff; }
html.theme--dark .fb-ops button.no { color: #ff9d96; border-color: rgba(255, 157, 150, .38); }
html.theme--dark .fb-ops button.no:hover { background: #9c2b26; border-color: #9c2b26; color: #fff; }
html.theme--dark .fb-actions button,
html.theme--dark .fb-actions a.btn {
  background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #d4dde8;
}
html.theme--dark .fb-actions button.primary { background: #2f6fbf; border-color: #2f6fbf; color: #fff; }
html.theme--dark .fb-actions button.primary:hover { background: #3d80d6; border-color: #3d80d6; }
html.theme--dark .fb-actions button.ok.on { background: #1f7a4d; border-color: #1f7a4d; color: #fff; }
html.theme--dark .fb-actions button.no.on { background: #9c2b26; border-color: #9c2b26; color: #fff; }
html.theme--dark .fb-note {
  background: rgba(180, 83, 9, .14); border-color: rgba(180, 83, 9, .38); color: #f0c48a;
}
html.theme--dark .fb-note b { color: #ffcf8a; }

/* --------------------- 总结：标题 / 摘要 / 玻璃按钮 / 分页 / 输入框 --------------------- */
html.theme--dark .sm-title { color: #e6edf6; }
html.theme--dark .sm-title:hover { color: #9ecbff; }
html.theme--dark .sm-card.is-star .sm-title { color: #ffc978; }
html.theme--dark .sm-card.is-star .sm-title:hover { color: #ffd9a0; }
html.theme--dark .sm-snip { color: #a9b7c6; }
html.theme--dark .sm-meta,
html.theme--dark .sm-tip,
html.theme--dark .sm-pg-info { color: #8b98a7; }
html.theme--dark .sm-person-name { color: #e6edf6; }
html.theme--dark .sm-person-count { background: rgba(255, 255, 255, .08); color: #b3bfcd; }
html.theme--dark .sm-tag { background: rgba(255, 255, 255, .08); color: #b3bfcd; }
html.theme--dark .sm-tag.dom { background: rgba(56, 132, 200, .18); color: #9ecbff; }
html.theme--dark .sm-tag.pub { background: rgba(21, 128, 61, .22); color: #86e0a8; }
html.theme--dark .sm-btn {
  background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14);
  color: #d4dde8; box-shadow: none;
}
html.theme--dark .sm-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .24); }
html.theme--dark .sm-btn.on,
html.theme--dark .sm-btn.pub { background: #2f6fbf; border-color: #2f6fbf; color: #fff; }
html.theme--dark .sm-btn.on:hover,
html.theme--dark .sm-btn.pub:hover { background: #3d80d6; border-color: #3d80d6; }
html.theme--dark .sm-btn.danger { color: #ff9d96; border-color: rgba(255, 157, 150, .26); }
html.theme--dark .sm-btn.danger:hover { background: #9c2b26; border-color: #9c2b26; color: #fff; }
html.theme--dark .sm-pg {
  background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #d4dde8;
}
html.theme--dark .sm-pg:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .24); }
html.theme--dark .sm-pager { border-top-color: rgba(255, 255, 255, .08); color: #8b98a7; }
html.theme--dark .sm-pg-jump input,
html.theme--dark .sm-pg-size select,
html.theme--dark .sm-pub-ops .sm-coin,
html.theme--dark .sm-search input[type=text],
html.theme--dark .sm-filter input[type=text] {
  background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #e6edf6;
}
html.theme--dark .sm-clear { color: #8b98a7; }
html.theme--dark .sm-clear:hover { color: #ff9d96; }
