/* R2.1 设计基线；颜色仅在本文件定义。 */
:root {
  color-scheme: light;
  --ink: #192C48;
  --bg: #F0F6FD;
  --surface: #FFFFFF;
  --muted: #5D6C82;
  --line: #E9EEF5;
  --control: #E5EDFA;
  --input: #F3F7FD;
  --accent: #1959CF;
  --blue: #1663E8;
  --green: #137954;
  --gold: #946015;
  --danger: #B52F49;
  --warning: #946015;
  --ios-pink: #FF2D55;
  --heart-tint: #B54F73;
  --feature-orange: #FF9500;
  --feature-purple: #AF52DE;
  --feature-cyan: #32ADE6;
  --feature-gray: #8E8E93;
  --button-white: #FFFFFF;
  --video-bg: #000000;
  --invisible-badge: #756B57;
  --font-base: 14px;
  --font-title: 1.571429rem;
  --font-profile: 1.428571rem;
  --font-subtitle: 1.214286rem;
  --font-value: 26px;
  --font-input: 16px;
  --font-body: 1rem;
  --font-button: .928571rem;
  --font-secondary: .785714rem;
  --font-meta: .642857rem;
  --radius-surface: 11px;
  --radius-honor: 13px;
  --radius-chip: 10px;
  --radius-button: 7px;
  --radius-input: 8px;
  --radius-sheet: 24px;
  --radius-pc-card: 12px;
  --radius-pill: 5px;
  --space-1: 2px;
  --space-2: 4px;
  --space-3: 8px;
  --space-4: 10px;
  --space-5: 12px;
  --space-6: 16px;
  --space-7: 24px;
  --border-surface: 0.7px;
  --height-chip: 35px;
  --height-button: 36px;
  --height-primary: 40px;
  --height-input: 44px;
  --height-rank: 46px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #EDF3FC;
    --bg: #101A29;
    --surface: #1A293E;
    --muted: #AFBED2;
    --line: #34475F;
    --control: #25374E;
    --input: #142238;
    --accent: #92BDFF;
    --green: #8AE2BD;
    --gold: #EFD098;
    --danger: #FFA1B2;
    --warning: #F1CC8E;
    --ios-pink: #FF375F;
    --heart-tint: #EDA8C2;
    --feature-orange: #FF9F0A;
    --feature-purple: #BF5AF2;
    --feature-cyan: #64D2FF;
    --feature-gray: #8E8E93;
  --invisible-badge: #756B57;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #EDF3FC;
  --bg: #101A29;
  --surface: #1A293E;
  --muted: #AFBED2;
  --line: #34475F;
  --control: #25374E;
  --input: #142238;
  --accent: #92BDFF;
  --green: #8AE2BD;
  --gold: #EFD098;
  --danger: #FFA1B2;
  --warning: #F1CC8E;
    --ios-pink: #FF375F;
    --heart-tint: #EDA8C2;
    --feature-orange: #FF9F0A;
    --feature-purple: #BF5AF2;
    --feature-cyan: #64D2FF;
    --feature-gray: #8E8E93;
  --invisible-badge: #756B57;
}
@media (min-width: 768px) {
  :root { --height-rank: 52px; }
}
@media (min-width: 1600px) {
  :root { --font-base: 15px; --font-value: 32px; }
}
@media (min-width: 2240px) {
  :root { --font-base: 16px; }
}
/* 主按钮白字沿用浅色 surface 的官方值，不新增调色板颜色。 */
.action.primary, #menu button.active { --surface: #FFFFFF; }

/* iOS 原生分段选中白字；令牌只在此定义。 */
.chip[aria-pressed="true"], .feature-icon, .invisible-badge { --button-white: #FFFFFF; }
