/* 在页面根元素设置 data-brand-theme，即可同步切换界面和 Logo 配色。 */
:root {
  --brand-primary: #075976;
  --brand-hover: #06465e;
  --brand-glow: #2ee8ff;
  --brand-logo-filter: none;
  --brand-ink: color-mix(in srgb, var(--brand-primary) 36%, #151d29);
  --brand-muted: color-mix(in srgb, var(--brand-primary) 24%, #536173);
  --brand-paper: color-mix(in srgb, var(--brand-primary) 3%, white);
  --brand-line: color-mix(in srgb, var(--brand-primary) 15%, #edf2f6);
  --brand-soft: color-mix(in srgb, var(--brand-primary) 10%, white);
  --brand-panel: color-mix(in srgb, var(--brand-primary) 60%, #112735);
}

:root[data-brand-theme="red"] {
  --brand-primary: #9c3446;
  --brand-hover: #772538;
  --brand-glow: #ff4d6a;
  --brand-logo-filter: hue-rotate(171deg) saturate(1.4);
}

:root[data-brand-theme="yellow"] {
  --brand-primary: #795607;
  --brand-hover: #604305;
  --brand-glow: #ffd63d;
  --brand-logo-filter: hue-rotate(239deg) saturate(1.45);
}

:root[data-brand-theme="green"] {
  --brand-primary: #146042;
  --brand-hover: #104b34;
  --brand-glow: #43ff9b;
  --brand-logo-filter: hue-rotate(300deg) saturate(1.2);
}

:root[data-brand-theme="blue"] {
  --brand-primary: #255491;
  --brand-hover: #193f76;
  --brand-glow: #4b9dff;
  --brand-logo-filter: hue-rotate(31deg) saturate(1.35);
}

:root[data-brand-theme="purple"] {
  --brand-primary: #65469a;
  --brand-hover: #4c2e7c;
  --brand-glow: #cf82ff;
  --brand-logo-filter: hue-rotate(99deg) saturate(1.3);
}

.site-logo { filter: var(--brand-logo-filter); }
