/**
 * Allget 全站文字色阶（覆盖 Eduhub / style.css 内偏淡的 Bootstrap 语义色）
 *
 * 层级（与 Bootstrap 5.3 工具类对应）：
 * - 主正文：--bs-body-color（默认段落、标题未单独指定时）
 * - 次要说明：--bs-secondary-color（.text-body-secondary、部分组件内 muted）
 * - 更弱提示：--bs-tertiary-color（.text-body-tertiary）
 *
 * 加载顺序：必须在 /assets/css/style.css（或 style-rtl.css）之后。
 */

:root,
[data-bs-theme='light'] {
  /**
   * 与 Google Fonts 解耦：Roboto/Heebo 未加载时由系统字体呈现，避免外链阻塞加载指示器。
   */
  --bs-body-font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;

  /* 主正文：接近 BS 默认 #212529，略用深灰减轻刺眼 */
  --bs-body-color: #2c3035;
  --bs-body-color-rgb: 44, 48, 53;

  /* 次要：明显浅于正文，但保持可读（勿再用接近边框的浅灰） */
  --bs-secondary-color: #5c6368;
  --bs-secondary-color-rgb: 92, 99, 104;

  /* 第三层：列表提示、极弱辅助 */
  --bs-tertiary-color: rgba(44, 48, 53, 0.62);
  --bs-tertiary-color-rgb: 44, 48, 53;

  --bs-emphasis-color: #141619;
  --bs-emphasis-color-rgb: 20, 22, 25;
}

[data-bs-theme='dark'] {
  --bs-body-font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;

  /* 深色背景上的主字 */
  --bs-body-color: #e9ecef;
  --bs-body-color-rgb: 233, 236, 239;

  /* 次要说明：标准灰阶 muted，避免与主文对比过弱 */
  --bs-secondary-color: #adb5bd;
  --bs-secondary-color-rgb: 173, 181, 189;

  --bs-tertiary-color: rgba(233, 236, 239, 0.52);
  --bs-tertiary-color-rgb: 233, 236, 239;
}
