/* AI星球 · 暗黑奢金科技风（AI PLANET）
 * 设计稿规范：docs 级唯一色值来源；组件内禁止写死色值，一律引用 CSS 变量。
 * 色板：深空黑 #0A101B / 卡片 #0F1219 #171D27 / 提升层 #252B36
 *       香槟金 #D6A66D（primary）/ 深金 #A96F38 / 古铜 #B98249 / 浅金 #E8C28D / 高光 #F2D4A0
 * 品牌渐变仅用于：一级主按钮 / 发布按钮 / Logo / 选中态强调。
 */
:root {
  /* ===== 品牌金 ===== */
  --gold-dark: #a96f38;             /* 深金 · gold-dark */
  --gold-bronze: #b98249;           /* 古铜 · bronze */
  --gold: #d6a66d;                  /* 香槟金 · primary */
  --gold-light: #e8c28d;            /* 浅金 · gold-light */
  --gold-highlight: #f2d4a0;        /* 高光 · highlight */
  --on-gold: #241b0d;               /* 金色底上的文字（深棕） */

  --brand-1: #d6a66d;
  --brand-2: #e8c28d;
  /* 品牌香槟金按钮 · 110° */
  --brand-gradient: linear-gradient(110deg, #a96f38 0%, #e8c28d 65%, #a96f38 100%);
  /* Logo 金属香槟金 · 135° */
  --logo-gradient: linear-gradient(135deg, #8d592f 0%, #f2d4a0 45%, #a96f38 100%);
  /* 渐变描边 / 金属边框 · 135° */
  --border-gradient: linear-gradient(135deg, #8d592f 0%, #e8c28d 50%, #f2d4a0 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(169, 111, 56, 0.18) 0%, rgba(232, 194, 141, 0.16) 100%);
  /* 柔和金色光晕（blur 20 与 8 双层） */
  --brand-glow: 0 0 20px rgba(214, 166, 109, 0.42), 0 0 8px rgba(214, 166, 109, 0.30);
  --brand-glow-soft: 0 0 12px rgba(214, 166, 109, 0.22);
  --text-on-brand: var(--on-gold);

  /* ===== 背景层级 ===== */
  --bg-0: #0a101b;                  /* 深空黑蓝 · 全局背景 */
  --bg-0-gradient: linear-gradient(135deg, #0a101b 0%, #0f1219 55%, #080d15 100%);
  --bg-1: #0f1219;                  /* 次级背景 / 底部导航 */
  --bg-2: #171d27;                  /* 卡片 */
  --bg-3: #252b36;                  /* 提升层 / 次级按钮底 */
  --bg-panel: #111722;              /* 弹窗 / 面板 */
  --bg-disabled: #14181d;           /* 禁用底 */
  --bg-mask: rgba(5, 7, 11, 0.75);

  /* ===== 文字 ===== */
  --text-1: #f2f0ec;                /* 主文字 */
  --text-2: #d4d0ca;                /* 次文字 */
  --text-3: #9297a1;                /* 弱提示 / 默认图标 */
  --text-disabled: #626b78;         /* 禁用 */

  /* ===== 边框 / 分割 ===== */
  --line: #252b36;
  --line-strong: #303744;

  /* ===== 功能色 ===== */
  --success: #7fc98f;
  --warning: #e0b25c;
  --danger: #e07a6c;
  --info: #8fa6bf;

  /* ===== 卡片 / 按钮尺寸（通用 tokens） ===== */
  --card-radius: 16px;
  --btn-radius: 14px;
  --panel-radius: 20px;
  --page-pad: 20px;
  --card-gap: 12px;
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --card-shadow-active: 0 2px 10px rgba(0, 0, 0, 0.3);
  /* 重点卡片：香槟金弱描边（border-box） */
  --card-gold-border: 1px solid rgba(214, 166, 109, 0.42);

  /* ===== TabBar ===== */
  --tabbar-bg: #0f1219;
  --tabbar-blur: none;

  /* ===== 状态 ===== */
  --c-open: #d6a66d;                /* 进行中 · 香槟金 */
  --c-pending: #e0b25c;
  --c-done: #7fc98f;
  --c-mute: #9297a1;

  /* ===== 字体 ===== */
  --font-sans: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC',
    'Helvetica Neue', 'Microsoft YaHei', sans-serif;

  /* ===== 旧变量别名（过渡用，新代码禁用） ===== */
  --brand: var(--brand-1);
  --brand-2-alias: var(--brand-2);
  --text-main: var(--text-1);
  --text-sub: var(--text-2);
  --text-muted: var(--text-3);
  --card-bg: var(--bg-2);
  --page-bg: var(--bg-0);
}