/* @file app/web/static/css/portal-theme.css | @version V1.15.0 | @modified 2026-10-19 07:51 */

/*
 * 门户皮肤适配（行情复盘）
 * ---------------------------------------------------------------------------
 * app.js 会在加载后按本系统设置重写 html[data-theme]，因此这里不依赖 data-theme，
 * 直接按门户下发的 data-portal-scheme 覆盖 --c-* 变量（本文件在全部主题 css 之后加载，必胜出）：
 *   light → 青瓷浅（theme-jade 色值，与门户执衡青同色系）
 *   dark  → 夜间深色（theme-dark 色值）
 * 直接访问（无参数）时两个属性都不存在，本文件不生效。
 */

html[data-portal-scheme="light"] {
  --c-bg: #f4f8f7;
  --c-card: #ffffff;
  --c-header: #12332e;
  --c-header-text: #eaf5f1;
  --c-thead: #e9f1ef;
  --c-zebra: #f9fcfb;
  --c-hover: #e8f1ee;
  --c-border: #dfe8e5;
  --c-text: #1f2926;
  --c-title: #1f2926;
  --c-text-sub: #5e6b66;
  --c-primary: #0e9f8b;
  --c-primary-bg: rgba(14, 159, 139, .12);
  --c-up: #d4342c;
  --c-up-bg: rgba(212, 52, 44, .12);
  --c-down: #159b62;
  --c-down-bg: rgba(21, 155, 98, .12);
  --c-warn: #ff8f1f;
  --c-warn-bg: rgba(255, 143, 31, .15);
  --c-info: #3370ff;
  --c-tag-bg: rgba(14, 159, 139, .10);
  --c-low-heat: #6f93a8;
  --shadow: 0 1px 3px rgba(20, 60, 45, .08);
  --shadow-card: 0 1px 3px rgba(20, 60, 45, .08);
  --shadow-modal: 0 8px 24px rgba(20, 60, 45, .18);
}

html[data-portal-scheme="dark"] {
  --c-bg: #14161a;
  --c-card: #1e2127;
  --c-header: #0f1115;
  --c-header-text: #e6e8eb;
  --c-thead: #252a32;
  --c-zebra: #181b21;
  --c-hover: #262b34;
  --c-border: #33363e;
  --c-text: #e6e8eb;
  --c-title: #f0f2f5;
  --c-text-sub: #9aa0a8;
  --c-primary: #ff5a52;
  --c-primary-bg: rgba(255, 90, 82, .15);
  --c-up: #ff5a52;
  --c-up-bg: rgba(255, 90, 82, .15);
  --c-down: #2fbf7f;
  --c-down-bg: rgba(47, 191, 127, .15);
  --c-warn: #ffb04d;
  --c-warn-bg: rgba(255, 176, 77, .15);
  --c-info: #5c8dff;
  --c-tag-bg: rgba(255, 90, 82, .14);
  --c-low-heat: #5d7593;
  --shadow: 0 1px 3px rgba(0, 0, 0, .4);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, .4);
  --shadow-modal: 0 8px 24px rgba(0, 0, 0, .55);
}
