/*
 * theme_202600001 design tokens — 极简暗黑 / 深紫夜空风.
 * Readable override of the --tpl-* custom properties inlined in
 * asset/css/public-head-main.css (:root / .bstem). Loaded after head.css,
 * so same-specificity cascade lets these values win without touching the
 * minified core stylesheet. Edit here to re-skin this tenant.
 *
 * --tpl-bg-elevated is consumed with a fallback (e.g. var(--tpl-bg-elevated,#fff))
 * across several component stylesheets but was never declared upstream in
 * template/default — declaring it here is what actually makes card surfaces
 * follow this theme instead of silently falling back to white.
 *
 * Contrast checked against WCAG 2.1 (script-verified, sRGB relative luminance):
 *   text on bg-base       12.0:1   text-strong on bg-base   16.3:1
 *   accent on bg-base       4.2:1   white on accent (btn)     4.3:1
 *   text on bg-elevated     9.9:1
 */
:root {
  /* accent / brand — 深紫 */
  --tpl-accent: #8a5cf6;
  --tpl-accent-hover: #a78bfa;
  --tpl-accent-muted: rgba(138, 92, 246, .24);

  /* text */
  --tpl-text: #cbd5e1;
  --tpl-text-strong: #f1f5f9;
  --tpl-text-muted: #94a3b8;
  --tpl-text-subtle: #64748b;
  --tpl-text-on-inverse: #fff;
  --tpl-social-name: #93c5fd;

  /* borders / surfaces — 夜空深蓝黑 */
  --tpl-border: #334155;
  --tpl-border-soft: #26324a;
  --tpl-bg-base: #0f172a;
  --tpl-bg-muted: #16202f;
  --tpl-bg-elevated: #1e293b;
  --tpl-bg-login: #1e293b;

  /* radius — 大圆角 */
  --tpl-radius: 16px;
  --tpl-radius-cover: 12px;
  --tpl-radius-nav-bottom: 16px;

  /* layout (unchanged from default) */
  --tpl-head-pc-wide-min: 1500px;
  --tpl-search-hot-poster-col: 76px;
  --tpl-search-hot-poster-v-w: 52px;
  --tpl-search-hot-poster-v-h: 74px;
  --tpl-search-hot-poster-h-w: 72px;
  --tpl-poster-h-ratio: 69/40;
  --tpl-poster-h-pad: 57.97101%;
  --tpl-poster-v-ratio: 20/29;
  --tpl-poster-v-pad: 145%;
  --site-head-mobile-body-pad: 87px;
  --site-head-mobile-body-pad-type-show: 140px;
  --site-head-mobile-body-pad-single: 54px;
  --site-head-z-index: 100100;

  /* typography (unchanged from default) */
  --tpl-font-heading: 14px;
  --tpl-line-heading: 20px;
  --tpl-font-body: 12px;
  --tpl-line-body: 18px;
}

/* deeper night mode (toggled via .bstem on the body) — 同一套紫色识别色，背景更深，用于弱光环境 */
.bstem,
body.bstem {
  --tpl-accent: #8a5cf6;
  --tpl-accent-hover: #a78bfa;
  --tpl-accent-muted: rgba(138, 92, 246, .28);
  --tpl-text: #e2e8f0;
  --tpl-text-strong: #f8fafc;
  --tpl-text-muted: #94a3b8;
  --tpl-text-subtle: #64748b;
  --tpl-social-name: #93c5fd;
  --tpl-text-on-inverse: #fff;
  --tpl-border: #27324a;
  --tpl-border-soft: #1c2438;
  --tpl-bg-base: #05070f;
  --tpl-bg-muted: #0b0f1c;
  --tpl-bg-elevated: #12172a;
  --tpl-bg-login: #12172a;
}
