/* 日间版：白底浅色。默认仍是夜间深色；在「我的 · 底色」里切换，存在本机（anthony_color_mode）。
 * 色板只在这里换；写死的颜色由 scripts/gen-light-theme.js 生成到 theme-light.generated.css。
 * 金色只用于发送、底栏「问红尘」和会员锁；其余标题和标签走中性色。 */
html.theme-light {
  color-scheme: light;
  --bg: #f3f4f6;
  --bg-2: #ebedf0;
  --bg-nav: #ffffff;
  --card: #ffffff;
  --card-inset: #f5f6f8;
  --card-hover: #eeeff1;
  --line: rgba(26, 26, 26, 0.08);
  --text: #1a1a1a;
  --text-content: #1a1a1a;
  --text-list: #1a1a1a;
  --text-strong: #1a1a1a;
  --muted: #3c3c3e;
  --text-aux: #6c6c70;
  --text-faint: #6c6c70;
  --think-label: #6c6c70;
  --icon-muted: #6c6c70;
  /* Gold only for send, 问红尘, member lock. Other --gold* tokens are neutral. */
  --gold-fill: #6e4e14;
  --gold-ink: #fffaf0;
  --gold: #1a1a1a;
  --gold-rgb: 26, 26, 26;
  --gold-soft: #6c6c70;
  --gold-title: #1a1a1a;
  --gold-text: #3c3c3e;
  --gold-muted: #6c6c70;
  --gold-border: rgba(26, 26, 26, 0.08);
  --gold-border-hi: rgba(26, 26, 26, 0.14);
  --gold-selected-bg: #ebedf0;
  --gold-glow: rgba(0, 0, 0, 0);
  --user: #ebedf0;
  --bot: #ffffff;
  --ok: #3f7a3a;
  --danger: #b04a3c;
  --shadow: 0 1px 2px rgba(26, 26, 26, 0.07), 0 6px 16px rgba(26, 26, 26, 0.10);
  --shadow-card: var(--shadow);
  --shadow-inset: 0 1px 2px rgba(26, 26, 26, 0.06), 0 3px 10px rgba(26, 26, 26, 0.07);
  --card-edge: 1px solid rgba(26, 26, 26, 0.06);
}

html.theme-light, html.theme-light.theme-comfort {
  --text-content: #1a1a1a;
  --text-list: #1a1a1a;
}
html.theme-light body { background: var(--bg); color: var(--text); }

/* Form controls: light fields, dark text */
html.theme-light input, html.theme-light select, html.theme-light textarea {
  background-color: #ffffff; color: var(--text); border-color: rgba(42, 38, 32, 0.18);
}
html.theme-light input::placeholder, html.theme-light textarea::placeholder { color: var(--text-aux); }

/* 命盘 */
html.theme-light #mingpanSheet { --mp-dim: var(--text-aux); }
html.theme-light #mingpanSheet input[type=text], html.theme-light #mingpanSheet select { background: #ffffff; }
html.theme-light .mp-good { color: #3f7a3a; }
html.theme-light .mp-bad { color: #a4552f; }
html.theme-light .mp-swatch { background: var(--bg-2); }
html.theme-light .mp-fold-inner { background: var(--bg-2); }
html.theme-light .mp-add { border-color: var(--line); }

/* 沉浸模式 header entry stays visible on white; the immersive screen itself keeps its own dark look */
html.theme-light .sl-btn { border-color: rgba(42, 38, 32, 0.14); background: rgba(42, 38, 32, 0.03); color: var(--text-faint); }

/* 底色 switcher swatches */
.ui-color-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.ui-color-opt { display: flex; align-items: center; justify-content: center; gap: var(--space-sm); }
.ui-color-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line); }
.ui-color-dot.is-dark { background: #1c1c24; }
.ui-color-dot.is-light { background: #f3f4f6; border-color: rgba(26, 26, 26, 0.2); }

/* 首页问红尘假输入框：深色版是黑色半透明凹槽，日间换白底 */
html.theme-light .hb-fake-input { background: var(--card-inset); color: var(--text-aux); border-color: var(--line); }

/* 关于页（about.html 内联样式） */
html.theme-light body.about-page { background: var(--bg); color: var(--text); }
html.theme-light .about-back, html.theme-light .about-back a { color: var(--text-aux); }
html.theme-light .about-back a:hover { color: var(--text); }
html.theme-light .about-doc h1 { color: var(--text-strong); }
html.theme-light .about-doc h2 { color: var(--text); }
html.theme-light .about-doc p, html.theme-light .about-doc li, html.theme-light .about-doc strong { color: var(--text); }
html.theme-light .about-doc a { color: var(--gold); }
html.theme-light .about-en { border-top-color: var(--line); }
html.theme-light .about-quote { color: var(--gold) !important; }
html.theme-light .about-sign { color: var(--gold-muted); }
html.theme-light .about-muted { color: var(--text-aux); }

html.theme-light .hb,
html.theme-light .scene-card { box-shadow: var(--shadow-card, var(--shadow)); border: var(--card-edge, 0); }
html.theme-light .ld-card,
html.theme-light .tr-card { box-shadow: var(--shadow-inset, var(--shadow)); border: var(--card-edge, 0); }
html.theme-light .home-mode-btn.on { box-shadow: var(--shadow); }
