/**
 * input: 无；html[data-theme=light|dark]
 * output: :root / [data-theme] 色板、毛玻璃、圆角、滚动条 token
 * pos: homepage 视觉地基；白模为暗色反色
 * 一旦我被更新，务必更新我的开头注释，以及所属的文件夹的 md。
 */

:root,
[data-theme='dark'] {
  --hp-bg: #0a090b;
  --hp-ink: #ffffff;
  --hp-ink-muted: rgba(255, 255, 255, 0.45);
  --hp-ink-dim: rgba(255, 255, 255, 0.72);

  --hp-glass: rgba(18, 16, 20, 0.48);
  --hp-glass-strong: rgba(18, 16, 20, 0.62);
  --hp-glass-user: rgba(36, 32, 42, 0.58);
  --hp-glass-blur: 18px;
  --hp-glass-saturate: 1.25;
  --hp-stroke: rgba(255, 255, 255, 0.14);
  --hp-stroke-strong: rgba(255, 255, 255, 0.22);
  --hp-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);

  --hp-radius-sm: 12px;
  --hp-radius: 16px;
  --hp-radius-lg: 24px;
  --hp-radius-pill: 999px;

  --hp-scroll-thumb: rgba(255, 255, 255, 0.22);
  --hp-scroll-thumb-hover: rgba(255, 255, 255, 0.36);

  --hp-accent: #ffffff;
  --hp-accent-ink: #0a090b;

  --hp-header-bg: rgba(0, 0, 0, 0.92);
  --hp-header-border: rgba(255, 255, 255, 0.13);
  --hp-beian: rgba(255, 255, 255, 0.14);
  --hp-beian-hover: rgba(255, 255, 255, 0.32);

  --hp-card-accent: #e8d5b5;
  --hp-card-accent-soft: rgba(232, 213, 181, 0.12);
  --hp-card-surface: rgba(255, 255, 255, 0.04);
  --hp-card-surface-strong: rgba(255, 255, 255, 0.06);
}

/* 白模：当前暗色的反色 */
[data-theme='light'] {
  --hp-bg: #f5f4f2;
  --hp-ink: #0a090b;
  --hp-ink-muted: rgba(10, 9, 11, 0.42);
  --hp-ink-dim: rgba(10, 9, 11, 0.7);

  --hp-glass: rgba(255, 255, 255, 0.72);
  --hp-glass-strong: rgba(255, 255, 255, 0.88);
  --hp-glass-user: rgba(248, 246, 250, 0.9);
  --hp-glass-blur: 18px;
  --hp-glass-saturate: 1.15;
  --hp-stroke: rgba(10, 9, 11, 0.16);
  --hp-stroke-strong: rgba(10, 9, 11, 0.28);
  --hp-shadow: 0 8px 28px rgba(10, 9, 11, 0.12);

  --hp-scroll-thumb: rgba(10, 9, 11, 0.2);
  --hp-scroll-thumb-hover: rgba(10, 9, 11, 0.36);

  --hp-accent: #0a090b;
  --hp-accent-ink: #ffffff;

  /* 与 --hp-bg / 星空 paper 同色，避免 sticky 白条接缝 */
  --hp-header-bg: var(--hp-bg);
  --hp-header-border: rgba(10, 9, 11, 0.1);
  --hp-beian: rgba(10, 9, 11, 0.22);
  --hp-beian-hover: rgba(10, 9, 11, 0.45);

  --hp-card-accent: #6b5438;
  --hp-card-accent-soft: rgba(107, 84, 56, 0.12);
  --hp-card-surface: rgba(10, 9, 11, 0.04);
  --hp-card-surface-strong: rgba(10, 9, 11, 0.06);
}
