/* ============================================================
   金饭碗 · 主题系统 v2（2026-10-24）
   ------------------------------------------------------------
   设计语言：以「金饭碗」为母题 —— 温润、可信、有贵气，但不浮夸
   · 去线框：不再用 1px 灰边框划分区域，改「柔和投影 + 极浅描边 + 大圆角」
   · 层级靠光影与留白，不靠线
   · 数字与金额用等宽数字，强调「收益」的可信感
   八套皮肤（用户定稿 v2d · 全可切换，classic 原样兜底）：
     品牌色 brand  —— 默认，logo 金蓝相配：深蓝 #1a56db 主色（页头/侧栏/选中/主按钮）+ 金 #f59e0b 点缀（CTA/强调/指示条）
     拾金   shijin —— 温润米金，全暖色调，B 端控制台基调，最爱的暖色
     小清新 clean  —— K12 刷题风：深蓝 hero + 暖米白 + 鎏金，清爽通透
     暖橘   orange —— 温润橘调，暖色活力
     青创   fresh  —— 青绿通透，清爽创业气质
     深墨金 night  —— 深墨暗金，夜间与沉浸
     灰金   graygold —— 雅致浅灰 + 沉稳金，高级灰调，干净克制
     经典   classic —— 现有界面原有外观，整层保留作兜底
   切换：<html data-gj-theme="shijin|night|clean|...">（默认无属性=品牌色）
   B 端控制台：见文末 --gj-console-* 一组 token（深顶栏 / 深侧栏 / 浅工作区）
   ============================================================ */

/* ---------- 品牌色（默认 · logo 金蓝相配：深蓝为主，金色点缀） ---------- */
:root {
  --gj-brand: #1a56db;
  --gj-brand-d: #1e40af;
  --gj-on-brand: #ffffff;
  --gj-brand-l: #e8f0ff;
  --gj-gold: #f59e0b;
  --gj-gold-l: #fffaeb;
  --gj-blue: #1a56db;
  --gj-blue-l: #e8f0ff;
  --gj-ink: #111827;
  --gj-ink-2: #4b5563;
  --gj-ink-3: #6b7280;
  --gj-line: #e8ecf3;
  --gj-line-2: #e8eef9;
  --gj-bg: #f6f8fc;
  --gj-surface: #ffffff;
  --gj-surface-2: #f1f5fb;
  --gj-ok: #0f766e;
  --gj-warn: #b45309;
  --gj-danger: #b91c1c;
  --gj-danger-l: #fee2e2;
  --gj-ok-l: #dcfce7;
  --gj-shadow-s: 0 1px 2px rgba(15, 23, 42, .06);
  --gj-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 28px rgba(15, 23, 42, .08);
  --gj-shadow-h: 0 2px 6px rgba(15, 23, 42, .07), 0 18px 44px rgba(26, 86, 219, .14);
  --gj-radius: 16px;
  --gj-radius-s: 11px;
  --gj-radius-pill: 999px;
  --gj-grad-brand: linear-gradient(135deg, #2563eb 0%, #1a56db 55%, #1e40af 100%);
  --gj-grad-soft: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
  --gj-act-shadow: 0 8px 20px rgba(26, 86, 219, .22);
  --gj-act-shadow-lg: 0 10px 26px rgba(26, 86, 219, .35);

  /* B 端控制台（系统级骨架 · 深蓝海军 chrome + 金色指示条） */
  --gj-console-top: linear-gradient(135deg, #12203f 0%, #0b142e 100%);
  --gj-console-side: linear-gradient(180deg, #152449 0%, #0f1c3d 100%);
  --gj-console-fg: #dce6ff;
  --gj-console-dim: #94a6d0;
  --gj-console-dimmer: #7587b3;
  --gj-console-active: #1d3370;
  --gj-console-div: #2c4684;
  --gj-console-head: #e8eefb;
  --gj-console-work: #f6f8fc;
  --gj-console-card: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
  --gj-console-glow: rgba(26, 86, 219, .10);

  /* ---------- 兼容别名：旧版静态变量 → 指向 gj 令牌 ----------
     使 portal_theme.css 通用类（.card/.btn/.tag/.geo-block/.notice/th/table）
     及全站 var(--blue)/var(--line) 等引用自动跟随当前皮肤；
     默认值与 legacy 完全对齐，品牌色皮肤外观不变。 */
  --blue: var(--gj-brand);
  --blue-d: var(--gj-brand-d);
  --line: var(--gj-line);
  --brand: var(--gj-warn);
  --gold: var(--gj-gold);
  --orange: var(--gj-warn);
  --ink: var(--gj-ink);
  --gray: var(--gj-ink-2);
  --gray-l: var(--gj-ink-3);
  --bg: var(--gj-bg);
  --radius: var(--gj-radius);
}

/* ---------- 拾金（温润米金 · B 端基调） ---------- */
[data-gj-theme="shijin"],
[data-gj-theme="amber"] {
  --gj-brand: #b45309;
  --gj-brand-d: #92400e;
  --gj-on-brand: #ffffff;
  --gj-brand-l: #fdf3e3;
  --gj-gold: #f59e0b;
  --gj-gold-l: #fffaeb;
  --gj-blue: #1a56db;
  --gj-blue-l: #e8f0ff;
  --gj-ink: #1c1917;
  --gj-ink-2: #44403c;
  --gj-ink-3: #8a8178;
  --gj-line: #eae4dc;
  --gj-line-2: #f2ede6;
  --gj-bg: #faf7f2;
  --gj-surface: #ffffff;
  --gj-surface-2: #f7f3ed;
  --gj-ok: #0f766e;
  --gj-warn: #b45309;
  --gj-danger: #b91c1c;
  --gj-danger-l: #fee2e2;
  --gj-ok-l: #dcfce7;
  --gj-shadow-s: 0 1px 2px rgba(28, 25, 23, .05);
  --gj-shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 10px 28px rgba(28, 25, 23, .06);
  --gj-shadow-h: 0 2px 6px rgba(28, 25, 23, .06), 0 18px 44px rgba(180, 83, 9, .13);
  --gj-radius: 16px;
  --gj-radius-s: 11px;
  --gj-radius-pill: 999px;
  --gj-grad-brand: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  --gj-grad-soft: linear-gradient(180deg, #ffffff 0%, #fdf9f3 100%);
  --gj-act-shadow: 0 8px 20px rgba(180, 83, 9, .22);
  --gj-act-shadow-lg: 0 10px 26px rgba(180, 83, 9, .35);

  --gj-console-top: linear-gradient(135deg, #3a2b1e 0%, #1e1712 100%);
  --gj-console-side: linear-gradient(180deg, #2a2018 0%, #211912 100%);
  --gj-console-fg: #f5ead6;
  --gj-console-dim: #a89a83;
  --gj-console-dimmer: #8a7a62;
  --gj-console-active: #3a2c1f;
  --gj-console-div: #4a3626;
  --gj-console-head: #f4ece0;
  --gj-console-work: #faf7f2;
  --gj-console-card: linear-gradient(180deg, #ffffff 0%, #fdf7ee 100%);
  --gj-console-glow: rgba(245, 158, 11, .10);
}

/* ---------- 深墨金（深墨暗金 · 夜间沉浸） ---------- */
[data-gj-theme="night"] {
  --gj-brand: #f59e0b;
  --gj-brand-d: #d97706;
  --gj-on-brand: #1c1917;
  --gj-brand-l: rgba(245, 158, 11, .14);
  --gj-gold: #fbbf24;
  --gj-gold-l: rgba(251, 191, 36, .1);
  --gj-blue: #7ba4f5;
  --gj-blue-l: rgba(123, 164, 245, .14);
  --gj-ink: #edeae5;
  --gj-ink-2: #c7c3bd;
  --gj-ink-3: #8f8a84;
  --gj-line: #2b2e35;
  --gj-line-2: #23262c;
  --gj-bg: #121316;
  --gj-surface: #1a1c21;
  --gj-surface-2: #22252b;
  --gj-ok: #34d399;
  --gj-warn: #fbbf24;
  --gj-danger: #f87171;
  --gj-danger-l: rgba(248, 113, 113, .14);
  --gj-ok-l: rgba(52, 211, 153, .12);
  --gj-shadow-s: 0 1px 2px rgba(0, 0, 0, .4);
  --gj-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .45);
  --gj-shadow-h: 0 2px 8px rgba(0, 0, 0, .45), 0 20px 48px rgba(245, 158, 11, .12);
  --gj-radius: 16px;
  --gj-radius-s: 11px;
  --gj-radius-pill: 999px;
  --gj-grad-brand: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  --gj-grad-soft: linear-gradient(180deg, #1a1c21 0%, #15171b 100%);
  --gj-act-shadow: 0 8px 20px rgba(245, 158, 11, .25);
  --gj-act-shadow-lg: 0 10px 26px rgba(245, 158, 11, .35);

  --gj-console-top: linear-gradient(135deg, #191b20 0%, #121316 100%);
  --gj-console-side: linear-gradient(180deg, #14161a 0%, #101215 100%);
  --gj-console-fg: #edeae5;
  --gj-console-dim: #8f8a84;
  --gj-console-dimmer: #6f6b66;
  --gj-console-active: #23262c;
  --gj-console-div: #2b2e35;
  --gj-console-head: #22252b;
  --gj-console-work: #121316;
  --gj-console-card: linear-gradient(180deg, #1a1c21 0%, #16181c 100%);
  --gj-console-glow: rgba(245, 158, 11, .07);
}

/* ---------- 经典（保留现有界面的原有外观：本主题下 C 端内容区皮肤整层失效） ---------- */
[data-gj-theme="classic"] {
  --gj-brand: #1a56db;
  --gj-brand-d: #1e40af;
  --gj-on-brand: #ffffff;
  --gj-brand-l: #e8f0ff;
  --gj-gold: #f59e0b;
  --gj-gold-l: #fffbeb;
  --gj-blue: #1a56db;
  --gj-blue-l: #eff6ff;
  --gj-ink: #111827;
  --gj-ink-2: #374151;
  --gj-ink-3: #6b7280;
  --gj-line: #e8ecf3;
  --gj-line-2: #eef2f7;
  --gj-bg: #f7f9fc;
  --gj-surface: #ffffff;
  --gj-surface-2: #f8fafc;
  --gj-ok: #15803d;
  --gj-warn: #b45309;
  --gj-danger: #b91c1c;
  --gj-danger-l: #fee2e2;
  --gj-ok-l: #dcfce7;
  --gj-shadow-s: 0 1px 2px rgba(15, 23, 42, .06);
  --gj-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 28px rgba(15, 23, 42, .08);
  --gj-shadow-h: 0 2px 6px rgba(15, 23, 42, .07), 0 18px 44px rgba(26, 86, 219, .14);
  --gj-radius: 16px;
  --gj-radius-s: 11px;
  --gj-radius-pill: 999px;
  --gj-grad-brand: linear-gradient(135deg, #2563eb 0%, #1a56db 55%, #1e40af 100%);
  --gj-grad-soft: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
  --gj-act-shadow: 0 8px 20px rgba(26, 86, 219, .22);
  --gj-act-shadow-lg: 0 10px 26px rgba(26, 86, 219, .35);

  /* B 端控制台（系统级骨架 · 深蓝海军 chrome + 金色指示条） */
  --gj-console-top: linear-gradient(135deg, #12203f 0%, #0b142e 100%);
  --gj-console-side: linear-gradient(180deg, #152449 0%, #0f1c3d 100%);
  --gj-console-fg: #dce6ff;
  --gj-console-dim: #94a6d0;
  --gj-console-dimmer: #7587b3;
  --gj-console-active: #1d3370;
  --gj-console-div: #2c4684;
  --gj-console-head: #e8eefb;
  --gj-console-work: #f6f8fc;
  --gj-console-card: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
  --gj-console-glow: rgba(26, 86, 219, .10);
}


/* ---------- 暖橘（温润橘调 · 暖色活力） ---------- */
[data-gj-theme="orange"] {
  --gj-brand: #ea580c;
  --gj-brand-d: #c2410c;
  --gj-on-brand: #ffffff;
  --gj-brand-l: #fff1e9;
  --gj-gold: #f59e0b;
  --gj-gold-l: #fff8eb;
  --gj-blue: #1a56db;
  --gj-blue-l: #e8f0ff;
  --gj-ink: #1c1917;
  --gj-ink-2: #44403c;
  --gj-ink-3: #8a8178;
  --gj-line: #f1ddd0;
  --gj-line-2: #f8ece2;
  --gj-bg: #fff8f3;
  --gj-surface: #ffffff;
  --gj-surface-2: #fdf3ea;
  --gj-ok: #0f766e;
  --gj-warn: #b45309;
  --gj-danger: #c2410c;
  --gj-danger-l: #fde8df;
  --gj-ok-l: #dcfce7;
  --gj-shadow-s: 0 1px 2px rgba(28, 25, 23, .05);
  --gj-shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 10px 28px rgba(234, 88, 12, .08);
  --gj-shadow-h: 0 2px 6px rgba(28, 25, 23, .06), 0 18px 44px rgba(234, 88, 12, .16);
  --gj-radius: 16px;
  --gj-radius-s: 11px;
  --gj-radius-pill: 999px;
  --gj-grad-brand: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --gj-grad-soft: linear-gradient(180deg, #ffffff 0%, #fff3eb 100%);
  --gj-act-shadow: 0 8px 20px rgba(234, 88, 12, .22);
  --gj-act-shadow-lg: 0 10px 26px rgba(234, 88, 12, .32);
  --gj-console-top: linear-gradient(135deg, #3a2418 0%, #1e120b 100%);
  --gj-console-side: linear-gradient(180deg, #2a1c12 0%, #211510 100%);
  --gj-console-fg: #f6e7da;
  --gj-console-dim: #b09885;
  --gj-console-dimmer: #8f7662;
  --gj-console-active: #3a261a;
  --gj-console-div: #4a3324;
  --gj-console-head: #f4ebe2;
  --gj-console-work: #fff8f3;
  --gj-console-card: linear-gradient(180deg, #ffffff 0%, #fff4ec 100%);
  --gj-console-glow: rgba(249, 115, 22, .10);
}

/* ---------- 青创清爽（青绿通透 · 清爽创业气质） ---------- */
[data-gj-theme="fresh"] {
  --gj-brand: #0d9488;
  --gj-brand-d: #0f766e;
  --gj-on-brand: #ffffff;
  --gj-brand-l: #e6f7f4;
  --gj-gold: #f59e0b;
  --gj-gold-l: #fff8eb;
  --gj-blue: #0e7490;
  --gj-blue-l: #e6f4f7;
  --gj-ink: #0f172a;
  --gj-ink-2: #334155;
  --gj-ink-3: #7c8aa0;
  --gj-line: #dcece9;
  --gj-line-2: #eef5f3;
  --gj-bg: #f2faf8;
  --gj-surface: #ffffff;
  --gj-surface-2: #eef6f4;
  --gj-ok: #0f766e;
  --gj-warn: #b45309;
  --gj-danger: #be123c;
  --gj-danger-l: #fde7ec;
  --gj-ok-l: #d7f3ec;
  --gj-shadow-s: 0 1px 2px rgba(15, 23, 42, .05);
  --gj-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px rgba(13, 148, 136, .08);
  --gj-shadow-h: 0 2px 6px rgba(15, 23, 42, .06), 0 18px 44px rgba(13, 148, 136, .16);
  --gj-radius: 16px;
  --gj-radius-s: 11px;
  --gj-radius-pill: 999px;
  --gj-grad-brand: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  --gj-grad-soft: linear-gradient(180deg, #ffffff 0%, #effaf7 100%);
  --gj-act-shadow: 0 8px 20px rgba(13, 148, 136, .22);
  --gj-act-shadow-lg: 0 10px 26px rgba(13, 148, 136, .32);
  --gj-console-top: linear-gradient(135deg, #123832 0%, #0b211d 100%);
  --gj-console-side: linear-gradient(180deg, #163a33 0%, #0f2a25 100%);
  --gj-console-fg: #d9f2ec;
  --gj-console-dim: #8fb3ac;
  --gj-console-dimmer: #6f968f;
  --gj-console-active: #123a33;
  --gj-console-div: #1c4a42;
  --gj-console-head: #e6f4f0;
  --gj-console-work: #f2faf8;
  --gj-console-card: linear-gradient(180deg, #ffffff 0%, #eef8f5 100%);
  --gj-console-glow: rgba(13, 148, 136, .10);
}

/* ---------- 小清新（K12 刷题风 · 深蓝 hero + 暖米白 + 鎏金） ---------- */
[data-gj-theme="clean"] {
  --gj-brand: #2563eb;
  --gj-brand-d: #1d4ed8;
  --gj-on-brand: #ffffff;
  --gj-brand-l: #e9f0fe;
  --gj-gold: #F5B841;
  --gj-gold-l: #fdf3da;
  --gj-blue: #2563eb;
  --gj-blue-l: #e9f0fe;
  --gj-ink: #2a2620;
  --gj-ink-2: #5b5346;
  --gj-ink-3: #746c5e;
  --gj-line: #ece3d4;
  --gj-line-2: #f2ebdd;
  --gj-bg: #f5f1e8;
  --gj-surface: #fffdf8;
  --gj-surface-2: #faf5ea;
  --gj-ok: #0f9d7a;
  --gj-warn: #c98a1e;
  --gj-danger: #d2493d;
  --gj-danger-l: #fbe7e3;
  --gj-ok-l: #d9f3ea;
  --gj-shadow-s: 0 1px 2px rgba(60, 50, 30, .05);
  --gj-shadow: 0 1px 2px rgba(60, 50, 30, .04), 0 10px 28px rgba(60, 50, 30, .07);
  --gj-shadow-h: 0 2px 6px rgba(60, 50, 30, .06), 0 18px 44px rgba(37, 99, 235, .12);
  --gj-radius: 16px;
  --gj-radius-s: 11px;
  --gj-radius-pill: 999px;
  --gj-grad-brand: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --gj-grad-soft: linear-gradient(180deg, #ffffff 0%, #f7f2e8 100%);
  --gj-act-shadow: 0 8px 20px rgba(37, 99, 235, .20);
  --gj-act-shadow-lg: 0 10px 26px rgba(37, 99, 235, .32);

  --gj-console-top: linear-gradient(135deg, #1e2c4d 0%, #14203f 100%);
  --gj-console-side: linear-gradient(180deg, #213055 0%, #182546 100%);
  --gj-console-fg: #dce6ff;
  --gj-console-dim: #94a6d0;
  --gj-console-dimmer: #7587b3;
  --gj-console-active: #1d3370;
  --gj-console-div: #2c4684;
  --gj-console-head: #e8eefb;
  --gj-console-work: #f5f1e8;
  --gj-console-card: linear-gradient(180deg, #fffdf8 0%, #f7f2e8 100%);
  --gj-console-glow: rgba(37, 99, 235, .10);
}

/* ---------- 灰金（雅致浅灰 + 沉稳金 · 高级灰调克制，浅底非暗色） ---------- */
[data-gj-theme="graygold"] {
  --gj-brand: #4b5563;
  --gj-brand-d: #374151;
  --gj-on-brand: #ffffff;
  --gj-brand-l: #eef0f3;
  --gj-gold: #b8860b;
  --gj-gold-l: #fbf3e0;
  --gj-blue: #4b5563;
  --gj-blue-l: #eef0f3;
  --gj-ink: #1f2430;
  --gj-ink-2: #4b5260;
  --gj-ink-3: #696e76;
  --gj-line: #e6e8ec;
  --gj-line-2: #eef0f3;
  --gj-bg: #f3f4f6;
  --gj-surface: #ffffff;
  --gj-surface-2: #f7f8fa;
  --gj-ok: #4f7a6a;
  --gj-warn: #b8860b;
  --gj-danger: #a13d3d;
  --gj-danger-l: #f7e6e6;
  --gj-ok-l: #e3efe9;
  --gj-shadow-s: 0 1px 2px rgba(31, 36, 48, .06);
  --gj-shadow: 0 1px 2px rgba(31, 36, 48, .05), 0 10px 28px rgba(31, 36, 48, .08);
  --gj-shadow-h: 0 2px 6px rgba(31, 36, 48, .07), 0 18px 44px rgba(75, 85, 99, .15);
  --gj-radius: 16px;
  --gj-radius-s: 11px;
  --gj-radius-pill: 999px;
  --gj-grad-brand: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  --gj-grad-soft: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
  --gj-act-shadow: 0 8px 20px rgba(75, 85, 99, .22);
  --gj-act-shadow-lg: 0 10px 26px rgba(75, 85, 99, .35);

  --gj-console-top: linear-gradient(135deg, #2a2e36 0%, #1c1f26 100%);
  --gj-console-side: linear-gradient(180deg, #262a32 0%, #1d2026 100%);
  --gj-console-fg: #e4e7ec;
  --gj-console-dim: #9aa0aa;
  --gj-console-dimmer: #7c828d;
  --gj-console-active: #2c313b;
  --gj-console-div: #3a3f49;
  --gj-console-head: #e8eaef;
  --gj-console-work: #f3f4f6;
  --gj-console-card: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
  --gj-console-glow: rgba(184, 134, 11, .10);
}

/* ============================================================
   组件级重绘（去线框感）—— 三套主题共用，颜色全部取自 token
   使用 :where() 降特异性，页面原有更具体规则仍可覆盖
   ============================================================ */

/* 页面底色与正文 */
html body {
  background: var(--gj-bg) !important;
  color: var(--gj-ink);
}
html body * {
  border-color: var(--gj-line);
}

/* ---- 卡片：投影替代边框 ---- */
:where(.card, .panel, .box, .sheet, .blk, .block, .kpi, .stat, .sbox, .gcard, .qa, .item-card) {
  background: var(--gj-surface);
  border: 1px solid var(--gj-line-2);
  border-radius: var(--gj-radius);
  box-shadow: var(--gj-shadow);
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
:where(.card, .panel, .box, .sheet, .blk, .block, .kpi, .gcard):hover {
  box-shadow: var(--gj-shadow-h);
  border-color: var(--gj-line);
}

/* ---- 表格：去网格线，行悬停 ---- */
:where(.card, .panel, .box) table,
table.tb, table.tb2 {
  border-collapse: separate;
  border-spacing: 0;
}
:where(.card, .panel, .box) table th,
table.tb th {
  background: var(--gj-surface-2);
  border: 0;
  border-bottom: 1px solid var(--gj-line);
  color: var(--gj-ink-3);
  font-weight: 600;
  letter-spacing: .2px;
}
:where(.card, .panel, .box) table td,
table.tb td {
  border: 0;
  border-bottom: 1px solid var(--gj-line-2);
  color: var(--gj-ink-2);
}
:where(.card, .panel, .box) table tbody tr:hover td,
table.tb tbody tr:hover td {
  background: var(--gj-brand-l);
}
:where(.card, .panel, .box) table tr:last-child td { border-bottom: 0; }

/* ---- 按钮：实心渐变 / 幽灵描边，胶囊圆角 ---- */
:where(.btn, button.btn, .btn-primary, .btn-ok) {
  border-radius: var(--gj-radius-s);
  border-width: 1px;
  font-weight: 600;
  transition: transform .16s ease, box-shadow .18s ease, filter .18s ease;
}
:where(.btn:not(.btn-ghost):not(.ghost), .btn-primary):not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: var(--gj-act-shadow);
  filter: brightness(1.03);
}
:where(.btn-ghost, .btn.ghost, .btn.ghost-btn, .btn.sm.ghost) {
  background: var(--gj-surface);
  border: 1px solid var(--gj-line);
  color: var(--gj-ink-2);
}
:where(.btn-ghost, .btn.ghost, .btn.ghost-btn):hover {
  border-color: var(--gj-brand);
  color: var(--gj-brand);
  background: var(--gj-brand-l);
}

/* ---- 输入类：浅底无框感 ---- */
:where(input[type="text"], input[type="search"], input[type="tel"], input[type="number"],
      input[type="password"], input[type="email"], select, textarea) {
  background: var(--gj-surface);
  border: 1px solid var(--gj-line);
  border-radius: var(--gj-radius-s);
  color: var(--gj-ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
:where(input, select, textarea):focus {
  outline: none;
  border-color: var(--gj-brand);
  box-shadow: 0 0 0 3px var(--gj-brand-l);
}

/* ---- 应用页头 / 页签栏 ---- */
:where(.app-top, .page-header, .topbar) {
  background: color-mix(in srgb, var(--gj-surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--gj-line);
}
:where(.tags-view .tag) {
  background: var(--gj-surface);
  border: 1px solid var(--gj-line);
  border-radius: var(--gj-radius-pill);
  color: var(--gj-ink-2);
}
:where(.tags-view .tag.on) {
  background: var(--gj-grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--gj-act-shadow);
}

/* ---- 侧栏 ---- */
:where(.side) {
  background: var(--gj-surface);
  border: 1px solid var(--gj-line-2);
  border-radius: var(--gj-radius);
  box-shadow: var(--gj-shadow-s);
}
:where(.side .item) {
  border-radius: var(--gj-radius-s);
  color: var(--gj-ink-2);
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
:where(.side .item:hover) {
  background: var(--gj-brand-l);
  color: var(--gj-brand);
}
:where(.side .item.on) {
  background: var(--gj-grad-brand);
  color: #fff;
  box-shadow: var(--gj-act-shadow);
}

/* ---- 金额 / 数字：等宽，强调可信 ---- */
:where(.money, .amt, .v, .kpi .v, .stat .v, td.hl, .num) {
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

/* ---- 徽标 / 状态胶囊 ---- */
:where(.tag, .badge, .pill, .st) {
  border-radius: var(--gj-radius-pill);
}
:where(.tag.ok, .badge.ok) { background: rgba(15, 118, 110, .1); color: var(--gj-ok); }

/* ---- 滚动条 ---- */
:where(body)::-webkit-scrollbar { width: 10px; height: 10px; }
:where(body)::-webkit-scrollbar-thumb {
  background: var(--gj-line);
  border-radius: 999px;
  border: 2px solid var(--gj-bg);
}
:where(body)::-webkit-scrollbar-thumb:hover { background: var(--gj-ink-3); }

/* ============================================================
   墨夜专属修正（暗色下把残留的白底/深字纠正）
   ============================================================ */
[data-gj-theme="night"] :where(.card, .panel, .box, .sheet, .blk, .block, .kpi, .stat, .sbox, .gcard) {
  background: var(--gj-surface) !important;
  border-color: var(--gj-line-2) !important;
  color: var(--gj-ink);
}
[data-gj-theme="night"] :where(header, .app-top, .page-header, .topbar, .hd) {
  background: var(--gj-surface) !important;
  border-color: var(--gj-line) !important;
  color: var(--gj-ink);
}
[data-gj-theme="night"] :where(.side) {
  background: var(--gj-surface-2) !important;
  border-color: var(--gj-line) !important;
}
[data-gj-theme="night"] :where(.side .item) { color: var(--gj-ink-2); }
[data-gj-theme="night"] :where(input, select, textarea) {
  background: var(--gj-surface-2) !important;
  color: var(--gj-ink) !important;
  border-color: var(--gj-line) !important;
}
[data-gj-theme="night"] :where(table) th { background: var(--gj-surface-2); color: var(--gj-ink-3); }
[data-gj-theme="night"] :where(table) td { color: var(--gj-ink-2); border-color: var(--gj-line-2); }
[data-gj-theme="night"] :where(.tags-view .tag) { background: var(--gj-surface-2); color: var(--gj-ink-2); }
[data-gj-theme="night"] :where(h1, h2, h3, h4, b, strong) { color: var(--gj-ink); }
[data-gj-theme="night"] :where(p, span, div, li, td, label) { border-color: var(--gj-line); }
/* 暗色下图片略降对比，避免刺眼 */
[data-gj-theme="night"] :where(img) { filter: brightness(.92) contrast(.98); }

/* ============================================================
   主题切换器（右下浮钮 + 面板）
   ============================================================ */
.gj-theme-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2400;
  height: 40px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: var(--gj-grad-brand);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: var(--gj-act-shadow-lg);
  transition: transform .18s ease, box-shadow .18s ease;
}
.gj-theme-fab:hover { transform: translateY(-2px) scale(1.04); }
/* 胶囊内当前皮肤色点（覆盖面板选项里 22px 的大点） */
.gj-theme-fab .gj-theme-dot { width: 16px; height: 16px; border-color: rgba(255,255,255,.55); }
.gj-theme-fab-tx { display: block; padding-top: 1px; }

.gj-theme-panel {
  position: fixed;
  right: 18px;
  bottom: 76px;
  z-index: 2401;
  width: 232px;
  padding: 14px;
  border-radius: var(--gj-radius);
  background: var(--gj-surface);
  border: 1px solid var(--gj-line);
  box-shadow: var(--gj-shadow-h);
  max-height: 72vh;
  overflow: auto;
  display: none;
}
.gj-theme-panel.on { display: block; }
.gj-theme-panel h4 {
  font-size: 12px;
  color: var(--gj-ink-3);
  font-weight: 600;
  letter-spacing: .4px;
  margin: 0 0 10px;
}
.gj-theme-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--gj-radius-s);
  cursor: pointer;
  border: 1px solid transparent;
  margin-bottom: 6px;
  transition: background .15s ease, border-color .15s ease;
}
.gj-theme-opt:hover { background: var(--gj-surface-2); }
.gj-theme-opt.on { border-color: var(--gj-brand); background: var(--gj-brand-l); }
.gj-theme-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: none;
  border: 1px solid rgba(0, 0, 0, .08);
}
.gj-theme-opt b { font-size: 13px; color: var(--gj-ink); font-weight: 600; display: block; }
.gj-theme-opt i { font-size: 11px; color: var(--gj-ink-3); font-style: normal; }

/* 移动端：浮钮避开左下菜单按钮（mobile.js 在左下） */
@media (max-width: 920px) {
  .gj-theme-fab { height: 38px; padding: 0 13px 0 10px; right: 12px; bottom: 14px; font-size: 12.5px; }
  .gj-theme-fab .gj-theme-dot { width: 14px; height: 14px; }
  .gj-theme-panel { right: 12px; bottom: 60px; width: 210px; }
}

/* 低配设备关闭毛玻璃 */
@media (prefers-reduced-motion: reduce) {
  .gj-theme-fab, :where(.card, .gcard, .kpi) { transition: none !important; }
}

/* ============================================================
   v1.1 补充：门户/落地页容器（2026-10-24）
   ============================================================ */
:where(.board, .feat, .step, .qa-item, .plan-card, .price-card, .card2, .item-card, .flow, .cell) {
  background: var(--gj-surface);
  border: 1px solid var(--gj-line-2);
  border-radius: var(--gj-radius);
  box-shadow: var(--gj-shadow);
  transition: box-shadow .22s ease, transform .22s ease;
}
:where(.board, .feat, .step, .plan-card, .price-card, .card2):hover {
  box-shadow: var(--gj-shadow-h);
  transform: translateY(-2px);
}
/* 夜间：板块级容器不再铺白，露出页面底色 */
[data-gj-theme="night"] :where(section, .sec, .band, .board-wrap, .board-grid, .wrap, .panel-wrap) {
  background-color: transparent !important;
}
[data-gj-theme="night"] :where(.board, .feat, .step, .qa-item, .plan-card, .price-card, .card2) {
  background: var(--gj-surface) !important;
  border-color: var(--gj-line-2) !important;
}

/* ============================================================
   v2 补充：跟随系统开关（2026-10-24）
   ============================================================ */
.gj-theme-follow {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 10px; border-radius: var(--gj-radius-s); cursor: pointer;
  border: 1px solid var(--gj-line); margin-bottom: 6px; background: var(--gj-surface-2);
  transition: background .15s ease, border-color .15s ease;
}
.gj-theme-follow:hover { border-color: var(--gj-brand); }
.gj-theme-follow.on { border-color: var(--gj-brand); background: var(--gj-brand-l); }
.gj-theme-follow-tx b { font-size: 13px; color: var(--gj-ink); font-weight: 600; display: block; }
.gj-theme-follow-tx i { font-size: 11px; color: var(--gj-ink-3); font-style: normal; }
.gj-theme-follow-tr {
  width: 38px; height: 20px; border-radius: 999px; background: var(--gj-line);
  flex: none; position: relative; transition: background .18s ease;
}
.gj-theme-follow.on .gj-theme-follow-tr { background: var(--gj-grad-brand); }
.gj-theme-follow-tr i {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .18s ease;
}

/* ============================================================
   v2 补充：C 端页面底色优先于诺依皮肤（2026-10-24）
   portal_ruoyi_skin.css 用 html.gj-ruoyi body 把底色钉成 #f0f2f5，
   会盖掉本主题的页面底色；此处用同等特异性 + 靠后的加载顺序夺回。
   B 端控制台页由 b_console.css 单独接管，不受影响。
   ============================================================ */
html.gj-ruoyi body { background: var(--gj-bg) !important; color: var(--gj-ink); }
html.gj-ruoyi body .main { background: var(--gj-bg) !important; }
html.gj-ruoyi[data-bg="mesh"] body { background-image: none !important; }

/* ============================================================
   v2 补充：深墨金 × 诺依皮肤（2026-10-24）
   career / opc_incubator 等页引入了 admin_skin / portal_ruoyi_skin，
   其 html.gj-ruoyi 前缀特异性更高，会顶掉夜间卡片变色；此处对等夺回。
   ============================================================ */
html[data-gj-theme="night"].gj-ruoyi :where(.card, .panel, .box, .sheet, .blk, .block, .kpi, .stat, .sbox, .gcard, .item-card, .board, .feat, .step, .plan-card, .price-card, .card2, .qa-item) {
  background: var(--gj-surface) !important;
  border-color: var(--gj-line-2) !important;
  color: var(--gj-ink) !important;
  box-shadow: var(--gj-shadow) !important;
}
html[data-gj-theme="night"].gj-ruoyi body :where(h1, h2, h3, h4, h5, b, strong, th, legend, summary) {
  color: var(--gj-ink) !important;
}
html[data-gj-theme="night"].gj-ruoyi body :where(p, span, li, td, label, small, dt, dd, i, em) {
  color: var(--gj-ink-2);
}
html[data-gj-theme="night"].gj-ruoyi body :where(input, select, textarea) {
  background: var(--gj-surface-2) !important;
  color: var(--gj-ink) !important;
  border-color: var(--gj-line) !important;
}
html[data-gj-theme="night"].gj-ruoyi body :where(table) th {
  background: var(--gj-surface-2) !important;
  color: var(--gj-ink-3) !important;
}
html[data-gj-theme="night"].gj-ruoyi body :where(.btn:not(.btn-primary):not(.btn-ok), button.btn:not(.btn-primary)) {
  background: var(--gj-surface-2) !important;
  color: var(--gj-ink) !important;
  border-color: var(--gj-line) !important;
}
html[data-gj-theme="night"].gj-ruoyi body :where(header, .app-top, .page-header, .topbar) {
  background: var(--gj-surface) !important;
  color: var(--gj-ink) !important;
  border-color: var(--gj-line) !important;
}

/* ============================================================
   B 端控制台令牌组（portal_ruoyi_skin.css / admin_skin.css 消费）
   这批变量此前从未被定义，var() 永远落到白底兜底 → 页签栏/正文底色
   不跟随皮肤。默认块 = 原兜底值（B 端默认外观零变化），各皮肤覆盖。
   ============================================================ */
html.gj-ruoyi {
  --gj-primary: #409EFF;
  --gj-primary-d: #337ecc;
  --gj-navbar-bg: #ffffff;
  --gj-navbar-text: #303133;
  --gj-content-bg: #f0f2f5;
  --gj-card-bg: #ffffff;
  --gj-border: #d8dce5;
  --gj-side-bg: #304156;
  --gj-side-bg2: #28333e;
  --gj-side-text: #bfcbd9;
  --gj-side-active: #409EFF;
}
html.gj-ruoyi[data-gj-theme="shijin"] {
  --gj-primary: #b45309;
  --gj-primary-d: #92400e;
  --gj-navbar-bg: #ffffff;
  --gj-navbar-text: #1c1917;
  --gj-content-bg: #faf7f2;
  --gj-card-bg: #ffffff;
  --gj-border: #eae4dc;
  --gj-side-bg: #3f3428;
  --gj-side-bg2: #332a20;
  --gj-side-text: #e2d6c0;
  --gj-side-active: #f59e0b;
}
html.gj-ruoyi[data-gj-theme="night"] {
  --gj-primary: #f59e0b;
  --gj-primary-d: #d97706;
  --gj-navbar-bg: #1a1c21;
  --gj-navbar-text: #edeae5;
  --gj-content-bg: #121316;
  --gj-card-bg: #1a1c21;
  --gj-border: #2b2e35;
  --gj-side-bg: #14161a;
  --gj-side-bg2: #101215;
  --gj-side-text: #a8a29a;
  --gj-side-active: #f59e0b;
}
html.gj-ruoyi[data-gj-theme="orange"] {
  --gj-primary: #ea580c;
  --gj-primary-d: #c2410c;
  --gj-navbar-bg: #ffffff;
  --gj-navbar-text: #1c1917;
  --gj-content-bg: #fff8f3;
  --gj-card-bg: #ffffff;
  --gj-border: #f1ddd0;
  --gj-side-bg: #452615;
  --gj-side-bg2: #371e10;
  --gj-side-text: #f0dcc8;
  --gj-side-active: #f97316;
}
html.gj-ruoyi[data-gj-theme="fresh"] {
  --gj-primary: #0d9488;
  --gj-primary-d: #0f766e;
  --gj-navbar-bg: #ffffff;
  --gj-navbar-text: #0f172a;
  --gj-content-bg: #f2faf8;
  --gj-card-bg: #ffffff;
  --gj-border: #dcece9;
  --gj-side-bg: #134e4a;
  --gj-side-bg2: #0f3d3a;
  --gj-side-text: #ccf0ea;
  --gj-side-active: #2dd4bf;
}
html.gj-ruoyi[data-gj-theme="graygold"] {
  --gj-primary: #4b5563;
  --gj-primary-d: #374151;
  --gj-navbar-bg: #ffffff;
  --gj-navbar-text: #1f2430;
  --gj-content-bg: #f3f4f6;
  --gj-card-bg: #ffffff;
  --gj-border: #e6e8ec;
  --gj-side-bg: #2a2e36;
  --gj-side-bg2: #1d2026;
  --gj-side-text: #d3d7de;
  --gj-side-active: #b8860b;
}

/* ============================================================
   经典皮肤结构补偿层：c_console.css 整层对 classic 失效，
   导致 .card/.task/.home-act/.kpi 等卡片体系裸奔（无线框）。
   此处按 c_console 的结构参数补回「有线框的经典卡片」外观。
   ============================================================ */
html.gj-ruoyi[data-gj-theme="classic"] .card,
[data-gj-theme="classic"] .card{
  background: var(--gj-surface) !important; border:1px solid var(--gj-line) !important;
  border-radius:12px; padding:20px 22px; margin-bottom:16px;
  box-shadow: none;
}
[data-gj-theme="classic"] .card > h2{
  font-size:17px; font-weight:700; color: var(--gj-ink); margin:0 0 10px;
}
[data-gj-theme="classic"] .gcard{
  background: var(--gj-surface); border:1px solid var(--gj-line);
  border-radius:12px; padding:20px 22px; margin-bottom:16px;
}
[data-gj-theme="classic"] .gcard > h2{
  display:flex; align-items:center; gap:8px;
  font-size:17px; font-weight:700; color: var(--gj-ink); margin:0 0 12px;
}
html.gj-ruoyi[data-gj-theme="classic"] .kpi,
[data-gj-theme="classic"] .kpi{
  background: var(--gj-surface-2) !important; border:1px solid var(--gj-line-2) !important;
  border-radius:10px; padding:14px 16px;
}
[data-gj-theme="classic"] .stat-mini{
  background: var(--gj-surface-2); border:1px solid var(--gj-line-2);
  border-radius:10px; padding:11px 13px;
}
[data-gj-theme="classic"] .sec-t, [data-gj-theme="classic"] .sec-title{
  font-size:15px; font-weight:700; color: var(--gj-ink); margin:0 0 8px;
}
[data-gj-theme="classic"] .home-act{
  display:flex; align-items:flex-start; gap:11px;
  background: var(--gj-surface); border:1px solid var(--gj-line);
  border-radius:12px; padding:13px 14px; cursor:pointer;
}
[data-gj-theme="classic"] .home-act:hover{ border-color: var(--gj-brand); }
[data-gj-theme="classic"] .home-act .ha-ic{
  flex:none; width:36px; height:36px; border-radius:9px;
  background: var(--gj-surface-2); display:flex; align-items:center; justify-content:center;
  font-size:16px; line-height:1; font-style:normal;
}
[data-gj-theme="classic"] .home-act .ha-nm{ font-size:14px; font-weight:700; color: var(--gj-ink); }
[data-gj-theme="classic"] .home-act .ha-ds{ font-size:12.3px; color: var(--gj-ink-3); line-height:1.65; margin:3px 0 0; }
[data-gj-theme="classic"] .home-act.hot{ border-color:#93c5fd; background:#f5f9ff; }
[data-gj-theme="classic"] .task{
  position:relative; background: var(--gj-surface);
  border:1px solid var(--gj-line); border-radius:12px; padding:16px 16px 13px;
}
[data-gj-theme="classic"] .task:hover{ border-color: var(--gj-brand); }
[data-gj-theme="classic"] .task .no{ font-size:11px; color: var(--gj-ink-3); letter-spacing:.1em; }
[data-gj-theme="classic"] .task .ic{ display:block; font-size:22px; margin:6px 0 8px; line-height:1; }
[data-gj-theme="classic"] .task .nm{ font-size:14.5px; font-weight:700; color: var(--gj-ink); }
[data-gj-theme="classic"] .task .ds{ font-size:12.3px; color: var(--gj-ink-3); line-height:1.65; margin-top:4px; }
[data-gj-theme="classic"] .task .ft{
  display:flex; align-items:center; justify-content:space-between;
  margin-top:10px; padding-top:9px; border-top:1px solid var(--gj-line-2);
  font-size:11.5px; color: var(--gj-ink-3);
}
[data-gj-theme="classic"] .task.done{ background: var(--gj-surface-2); }
[data-gj-theme="classic"] .qbox{
  background: var(--gj-surface); border:1px solid var(--gj-line);
  border-radius:12px; padding:22px;
}
[data-gj-theme="classic"] .qmeta{ font-size:12.5px; color: var(--gj-ink-3); }
[data-gj-theme="classic"] .qbar{ height:6px; background: var(--gj-line-2); border-radius:999px; }
[data-gj-theme="classic"] .qbar i{ background: var(--gj-brand); border-radius:999px; }
[data-gj-theme="classic"] .qtext{ font-size:17px; font-weight:700; line-height:1.65; color: var(--gj-ink); }
[data-gj-theme="classic"] .qscene{
  font-size:13.5px; color: var(--gj-ink-2); background: var(--gj-surface-2);
  border-left:3px solid var(--gj-gold); border-radius:0 8px 8px 0; padding:12px 14px;
}
[data-gj-theme="classic"] .empty{ text-align:center; color: var(--gj-ink-3); font-size:13px; padding:26px 14px; }
[data-gj-theme="classic"] .report-table{ width:100%; border-collapse:collapse; }
[data-gj-theme="classic"] .report-table th, [data-gj-theme="classic"] .report-table td{
  border:1px solid var(--gj-line); padding:8px 10px; text-align:left;
  font-size:12.5px; color: var(--gj-ink-2);
}
[data-gj-theme="classic"] .report-table th{ background: var(--gj-surface-2); color: var(--gj-ink-3); }
[data-gj-theme="classic"] .mask{ background: rgba(15, 23, 42, .45); }

/* ============================================================
   全站 emoji 字体兜底：Noto Emoji（OFL 授权）按页面实际用码点子集化，
   仅 57KB。放在字体栈最前，页面用到的 emoji 一律由本字体渲染，
   彻底解决个别 Windows 环境缺字形显示「口」的问题；颜色随 CSS currentColor。
   → ← ★ ✓ ✕ 等文本符号不在本字体，自动落到系统文本字体（原本正常）。
   ============================================================ */
@font-face{
  font-family:'GJ Emoji';
  src:url(fonts/GJEmoji.woff2?v=20261026k) format('woff2');
  font-display:swap;
  unicode-range:U+2197,U+23F0-23F1,U+2693,U+2696,U+2699,U+26A0-26A1,U+2705,U+2708,U+270D,U+270F,U+2714,U+2716,U+2728,U+274C,U+2753-2754,U+2757,U+2B1C,U+2B50,U+FE0F,U+1F193,U+1F331,U+1F381,U+1F389,U+1F392-1F393,U+1F3A4,U+1F3A7-1F3A8,U+1F3AC,U+1F3AF,U+1F3C5,U+1F3DB,U+1F3DE,U+1F3E0,U+1F3E2,U+1F3EA,U+1F3EC,U+1F423,U+1F449,U+1F44B,U+1F451,U+1F457,U+1F464-1F465,U+1F48E,U+1F49A,U+1F4A0-1F4A1,U+1F4AC,U+1F4B0,U+1F4B2,U+1F4BB-1F4BC,U+1F4C1,U+1F4C4-1F4C5,U+1F4C8,U+1F4CA-1F4CE,U+1F4D1,U+1F4D6,U+1F4D8,U+1F4DA,U+1F4DC-1F4DE,U+1F4E1-1F4E2,U+1F4E5-1F4E6,U+1F4E8,U+1F4F7,U+1F4F9,U+1F504,U+1F50C-1F50D,U+1F510-1F514,U+1F517,U+1F527,U+1F52C,U+1F535,U+1F552,U+1F5A5,U+1F5C2,U+1F5D3,U+1F5FA,U+1F64B,U+1F680,U+1F6AA,U+1F6CE,U+1F6DF-1F6E1,U+1F916,U+1F91D,U+1F94A,U+1F95A,U+1F9D1,U+1F9E0,U+1F9E9-1F9EA,U+1F9EC-1F9EE,U+1F9F0-1F9F2,U+1F9FE,U+1FA7A,U+1FA91,U+1FA99,U+1FAAA;
}
html{
  font-family:'GJ Emoji', -apple-system, BlinkMacSystemFont,
    'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Roboto, sans-serif;
}
/* 关键：portal_theme.css 的 body{font-family:-apple-system…} 会覆盖 html 继承，
   导致正文里的 emoji 全部回落到系统字体（部分 Windows 把 🤖 等渲染成空白方框）。
   这里把 emoji 字体一并前置到 body 与表单控件，保证图标在所有页面/皮肤下都用 GJ Emoji 渲染。 */
html body,
html body button,
html body input,
html body select,
html body textarea,
html body .btn,
html body a,
html body label,
html body td,
html body th,
html.gj-ruoyi body{
  font-family:'GJ Emoji', -apple-system, BlinkMacSystemFont,
    'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Roboto, sans-serif;
}
/* 等宽区域（代码/日志）不吃 emoji 字体，保持原样 */
html body pre,
html body code,
html body kbd,
html body samp,
html body .mono,
html body [class*="mono"]{
  font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, 'Courier New', monospace;
}

/* ---------- 英雄卡背景令牌：深底 CTA/hero 块跨皮肤安全 ---------- */
:root{ --gj-hero-bg: linear-gradient(135deg,#1e293b,#0f172a); }
[data-gj-theme="night"]{ --gj-hero-bg: linear-gradient(135deg,#332a15,#15171b); }
[data-gj-theme="shijin"]{ --gj-hero-bg: linear-gradient(135deg,#3f3428,#29221a); }
[data-gj-theme="orange"]{ --gj-hero-bg: linear-gradient(135deg,#4a2c1a,#2b1a10); }
[data-gj-theme="fresh"]{ --gj-hero-bg: linear-gradient(135deg,#134e4a,#0b2e2b); }
[data-gj-theme="clean"]{ --gj-hero-bg: linear-gradient(135deg,#1E3A6E,#1a56db); }
[data-gj-theme="graygold"]{ --gj-hero-bg: linear-gradient(135deg,#3a3f47,#262b32); }

/* ---------- 羊皮纸鎏金（古典证书质感 · 第9套） ---------- */
[data-gj-theme="parchment"] {
  --gj-brand: #8a6d1f;
  --gj-brand-d: #6d5514;
  --gj-on-brand: #fffaf0;
  --gj-brand-l: #f4ead0;
  --gj-gold: #b8912f;
  --gj-gold-l: #fbf3da;
  --gj-blue: #7a5a1e;
  --gj-blue-l: #f0e6ce;
  --gj-ink: #3b2f1e;
  --gj-ink-2: #5c4f3a;
  --gj-ink-3: #6f5d3e;
  --gj-line: #e4d6b6;
  --gj-line-2: #efe5cd;
  --gj-bg: #f1e7d2;
  --gj-surface: #fbf5e6;
  --gj-surface-2: #f5ecd7;
  --gj-ok: #4d7c4a;
  --gj-warn: #9a6b12;
  --gj-danger: #a13a2a;
  --gj-danger-l: #f3ddd3;
  --gj-ok-l: #dfe9d4;
  --gj-shadow-s: 0 1px 2px rgba(59,47,30,.08);
  --gj-shadow: 0 1px 2px rgba(59,47,30,.06), 0 10px 28px rgba(120,95,40,.10);
  --gj-shadow-h: 0 2px 6px rgba(59,47,30,.08), 0 18px 44px rgba(139,109,31,.18);
  --gj-radius: 14px;
  --gj-radius-s: 10px;
  --gj-radius-pill: 999px;
  --gj-grad-brand: linear-gradient(135deg,#8a6d1f 0%,#b8912f 100%);
  --gj-grad-soft: linear-gradient(180deg,#fdf8ec 0%,#f4ead0 100%);
  --gj-act-shadow: 0 8px 20px rgba(139,109,31,.22);
  --gj-act-shadow-lg: 0 10px 26px rgba(139,109,31,.35);
  --gj-console-top: linear-gradient(135deg,#3a2f1c 0%,#241d10 100%);
  --gj-console-side: linear-gradient(180deg,#2e2615 0%,#231c0f 100%);
  --gj-console-fg: #f3e9cf;
  --gj-console-dim: #b0a17c;
  --gj-console-dimmer: #8f8060;
  --gj-console-active: #3d3119;
  --gj-console-div: #4d3e22;
  --gj-console-head: #f5ecd6;
  --gj-console-work: #f1e7d2;
  --gj-console-card: linear-gradient(180deg,#fbf5e6 0%,#f6eeda 100%);
  --gj-console-glow: rgba(184,145,47,.12);
}
[data-gj-theme="parchment"] :where(h1,h2,h3){ font-family:"Songti SC","STSong",SimSun,Georgia,serif; letter-spacing:.5px; }

/* ---------- 深蓝鎏金（深蓝+鎏金 · 第10套） ---------- */
[data-gj-theme="navygold"] {
  --gj-brand: #d4af37;
  --gj-brand-d: #b8912f;
  --gj-on-brand: #0e1a2b;
  --gj-brand-l: #22344d;
  --gj-gold: #e6c667;
  --gj-gold-l: #2a3a52;
  --gj-blue: #6ea8fe;
  --gj-blue-l: #1b2f49;
  --gj-ink: #eaf1fb;
  --gj-ink-2: #b9c6d8;
  --gj-ink-3: #93a3b8;
  --gj-line: #26384f;
  --gj-line-2: #1f2f44;
  --gj-bg: #0e1a2b;
  --gj-surface: #14243a;
  --gj-surface-2: #1b2f49;
  --gj-ok: #4fb286;
  --gj-warn: #e6c667;
  --gj-danger: #e57373;
  --gj-danger-l: #3a1f22;
  --gj-ok-l: #16352a;
  --gj-shadow-s: 0 1px 2px rgba(0,0,0,.30);
  --gj-shadow: 0 1px 2px rgba(0,0,0,.30), 0 12px 30px rgba(0,0,0,.38);
  --gj-shadow-h: 0 2px 6px rgba(0,0,0,.35), 0 20px 48px rgba(212,175,55,.18);
  --gj-radius: 14px;
  --gj-radius-s: 10px;
  --gj-radius-pill: 999px;
  --gj-grad-brand: linear-gradient(135deg,#b8912f 0%,#e6c667 100%);
  --gj-grad-soft: linear-gradient(180deg,#14243a 0%,#0e1a2b 100%);
  --gj-act-shadow: 0 8px 20px rgba(212,175,55,.25);
  --gj-act-shadow-lg: 0 10px 26px rgba(212,175,55,.40);
  --gj-console-top: linear-gradient(135deg,#0b1524 0%,#0e1a2b 100%);
  --gj-console-side: linear-gradient(180deg,#0b1524 0%,#0a1220 100%);
  --gj-console-fg: #eaf1fb;
  --gj-console-dim: #9fb0c6;
  --gj-console-dimmer: #7d8ea3;
  --gj-console-active: #1b2f49;
  --gj-console-div: #26384f;
  --gj-console-head: #eaf1fb;
  --gj-console-work: #0e1a2b;
  --gj-console-card: linear-gradient(180deg,#14243a 0%,#122032 100%);
  --gj-console-glow: rgba(212,175,55,.12);
}

/* ===== 结构化升级：六套概念皮肤（羊皮纸/深蓝金/青创/小清新/灰金/墨金）；经典 classic 不参与 ===== */
html[data-gj-theme="parchment"] .card,
html[data-gj-theme="navygold"] .card,
html[data-gj-theme="fresh"] .card,
html[data-gj-theme="clean"] .card,
html[data-gj-theme="graygold"] .card,
html[data-gj-theme="night"] .card{
  position:relative;
  border-radius:var(--gj-radius) !important;
  box-shadow:var(--gj-shadow) !important;
  border:1px solid var(--gj-line) !important;
}
html[data-gj-theme="parchment"] .card>h2,
html[data-gj-theme="navygold"] .card>h2,
html[data-gj-theme="fresh"] .card>h2,
html[data-gj-theme="clean"] .card>h2,
html[data-gj-theme="graygold"] .card>h2,
html[data-gj-theme="night"] .card>h2{
  position:relative; padding-left:14px;
}
html[data-gj-theme="parchment"] .card>h2::before,
html[data-gj-theme="navygold"] .card>h2::before,
html[data-gj-theme="fresh"] .card>h2::before,
html[data-gj-theme="clean"] .card>h2::before,
html[data-gj-theme="graygold"] .card>h2::before,
html[data-gj-theme="night"] .card>h2::before{
  content:""; position:absolute; left:0; top:50%; transform:translateY(-50%);
  width:4px; height:1.05em; border-radius:2px;
  background:linear-gradient(180deg,var(--gj-gold),var(--gj-brand));
}
/* 注：原「页头金饰条」与下方「四角角饰」争用同一个 ::before，已合并为四角角饰（2026-11-03） */
/* ===== 主题图标砖 v3（2026-11-03）=====
   v2 的图标自带金色徽章、颜色写死，换皮肤纹丝不动。
   v3：SVG 只留线条（stroke=currentColor），底色/圆角/描边交给下面这层，
   每套皮肤给一套独立的图标砖语言 → 换皮肤图标跟着变。
   因为图标颜色取 currentColor，只要改容器 color，线条自动跟着变。 */
.hq-ic.giwrap{
  background: var(--gj-gold-l) !important;
  border:1px solid var(--gj-line-2) !important;
  border-radius:50% !important;
  color: var(--gj-brand) !important;
  box-shadow:none !important; padding:0 !important;
  display:inline-flex; align-items:center; justify-content:center;
}
.hq-ic.giwrap .gi{ width:24px; height:24px; display:block; }
.ic.giic{
  display:inline-flex; align-items:center; justify-content:center;
  background: var(--gj-gold-l); color: var(--gj-brand);
  border-radius:8px;
}
.ic.giic .gi{ width:17px; height:17px; display:block; }
.ha-ic .gi{ width:24px; height:24px; }

/* ===== 报告页四角金色边饰（六套概念皮肤；classic 不参与） ===== */
html[data-gj-theme="parchment"] .report-cover.frame::before,
html[data-gj-theme="navygold"] .report-cover.frame::before,
html[data-gj-theme="fresh"] .report-cover.frame::before,
html[data-gj-theme="clean"] .report-cover.frame::before,
html[data-gj-theme="graygold"] .report-cover.frame::before,
html[data-gj-theme="night"] .report-cover.frame::before{
  content:""; position:absolute; inset:10px; height:auto; border-radius:8px; z-index:1; pointer-events:none; opacity:.92;
  background:
    linear-gradient(var(--gj-gold),var(--gj-gold)) left top / 16px 2px no-repeat,
    linear-gradient(var(--gj-gold),var(--gj-gold)) left top / 2px 16px no-repeat,
    linear-gradient(var(--gj-gold),var(--gj-gold)) right top / 16px 2px no-repeat,
    linear-gradient(var(--gj-gold),var(--gj-gold)) right top / 2px 16px no-repeat,
    linear-gradient(var(--gj-gold),var(--gj-gold)) left bottom / 16px 2px no-repeat,
    linear-gradient(var(--gj-gold),var(--gj-gold)) left bottom / 2px 16px no-repeat,
    linear-gradient(var(--gj-gold),var(--gj-gold)) right bottom / 16px 2px no-repeat,
    linear-gradient(var(--gj-gold),var(--gj-gold)) right bottom / 2px 16px no-repeat;
}
/* ===== 页头卡片：主内容区首张卡强化为"页头卡"（六套；classic 不参与） ===== */
html[data-gj-theme="parchment"] .main > .card:first-child,
html[data-gj-theme="navygold"] .main > .card:first-child,
html[data-gj-theme="fresh"] .main > .card:first-child,
html[data-gj-theme="clean"] .main > .card:first-child,
html[data-gj-theme="graygold"] .main > .card:first-child,
html[data-gj-theme="night"] .main > .card:first-child{
  background-image:linear-gradient(180deg, var(--gj-brand-l) 0%, var(--gj-surface) 46%) !important;
  border-radius:var(--gj-radius) !important;
  box-shadow:var(--gj-shadow-h) !important;
}
/* 侧栏矢量图标尺寸（颜色/底色见上方「主题图标砖 v3」） */
.ic.giic .gi{ width:17px; height:17px; display:block; }

/* ============================================================
   皮肤结构语言 v2（2026-11-03）
   ------------------------------------------------------------
   为什么需要这一层：
     v1 里六套皮肤共用同一套结构规则（圆角只在 12/14/16 之间微调、
     按钮全站同一造型、边框全是 1px solid），切换皮肤看起来
     「只是换了个颜色」——这正是用户反复反馈的问题。
   本层给每套皮肤独立的五件套：
     ① 边框形态  ② 圆角尺度  ③ 阴影语言  ④ 标题装饰  ⑤ 按钮造型
   特异性：html[data-gj-theme=X] body .card = (0,2,2)
           压过 c_console.css 的 html:not([...]) .card = (0,2,1)
   经典 classic 不参与（保留原有外观）。
   ============================================================ */

/* ========== 1. 拾金：无边框 + 大圆角 + 胶囊按钮（温润纸感） ========== */
html[data-gj-theme="shijin"] body .card,
html[data-gj-theme="shijin"] body .gcard{
  border:0 !important;
  border-radius:18px !important;
  box-shadow:0 2px 4px rgba(120,95,40,.05), 0 14px 32px rgba(120,95,40,.11) !important;
}
html[data-gj-theme="shijin"] body .card>h2,
html[data-gj-theme="shijin"] body .gcard>h2{
  position:relative !important; padding-left:15px !important; padding-bottom:9px !important;
  border-bottom:1px solid var(--gj-line-2) !important;
}
html[data-gj-theme="shijin"] body .card>h2::before,
html[data-gj-theme="shijin"] body .gcard>h2::before{
  position:absolute !important; left:0 !important; top:0 !important;
  width:5px !important; height:1.25em !important; border-radius:3px !important;
  background:linear-gradient(180deg,var(--gj-gold),var(--gj-brand)) !important;
}
html[data-gj-theme="shijin"] body .btn{
  border-radius:999px !important; border:0 !important;
  background:linear-gradient(135deg,var(--gj-brand),var(--gj-gold)) !important;
  color:var(--gj-on-brand) !important;
  box-shadow:0 6px 16px rgba(139,109,31,.26) !important;
}
html[data-gj-theme="shijin"] body .btn-ghost,
html[data-gj-theme="shijin"] body .btn.ghost{
  background:transparent !important; color:var(--gj-brand) !important;
  border:1px solid var(--gj-brand) !important; box-shadow:none !important;
}

/* ========== 2. 小清新：顶部蓝条 + 中圆角 + 方角实心蓝按钮 ========== */
html[data-gj-theme="fresh"] body .card,
html[data-gj-theme="fresh"] body .gcard{
  border:1px solid var(--gj-line) !important;
  border-top:3px solid var(--gj-blue) !important;
  border-radius:16px !important;
  box-shadow:0 1px 2px rgba(15,23,42,.05), 0 8px 20px rgba(15,23,42,.06) !important;
}
html[data-gj-theme="fresh"] body .card>h2,
html[data-gj-theme="fresh"] body .gcard>h2{
  position:relative !important; padding-left:0 !important; padding-bottom:10px !important;
  border-bottom:2px solid var(--gj-blue-l) !important;
}
html[data-gj-theme="fresh"] body .card>h2::before,
html[data-gj-theme="fresh"] body .gcard>h2::before{
  position:absolute !important; left:0 !important; bottom:-2px !important; top:auto !important;
  width:46px !important; height:2px !important; border-radius:2px !important;
  background:var(--gj-blue) !important;
}
html[data-gj-theme="fresh"] body .btn{
  border-radius:10px !important; border:0 !important;
  background:var(--gj-blue) !important; color:#fff !important;
  box-shadow:0 4px 12px rgba(26,86,219,.22) !important;
}
html[data-gj-theme="fresh"] body .btn-ghost,
html[data-gj-theme="fresh"] body .btn.ghost{
  background:var(--gj-blue-l) !important; color:var(--gj-blue) !important;
  border:1px solid transparent !important; box-shadow:none !important;
}

/* ========== 3. 暖橘：左侧粗色边 + 中圆角（编辑式排版） ========== */
html[data-gj-theme="orange"] body .card,
html[data-gj-theme="orange"] body .gcard{
  border:1px solid var(--gj-line) !important;
  border-left:5px solid var(--gj-brand) !important;
  border-radius:12px !important;
  box-shadow:0 1px 2px rgba(120,60,20,.06), 0 8px 20px rgba(120,60,20,.07) !important;
}
html[data-gj-theme="orange"] body .card>h2,
html[data-gj-theme="orange"] body .gcard>h2{
  padding-left:0 !important; letter-spacing:.3px !important;
}
html[data-gj-theme="orange"] body .card>h2::before,
html[data-gj-theme="orange"] body .gcard>h2::before{ content:none !important; }
html[data-gj-theme="orange"] body .btn{
  border-radius:12px !important; border:0 !important;
  background:linear-gradient(135deg,var(--gj-brand),var(--gj-gold)) !important;
  color:#fff !important; box-shadow:0 6px 14px rgba(200,110,30,.26) !important;
}
html[data-gj-theme="orange"] body .btn-ghost,
html[data-gj-theme="orange"] body .btn.ghost{
  background:transparent !important; color:var(--gj-brand) !important;
  border:1px solid var(--gj-brand) !important; box-shadow:none !important;
}

/* ========== 4. 青创清爽：扁平无影 + 小圆角 + 左侧青边 + 幽灵按钮 ========== */
html[data-gj-theme="clean"] body .card,
html[data-gj-theme="clean"] body .gcard{
  border:1px solid var(--gj-line) !important;
  border-left:3px solid var(--gj-ok) !important;
  border-radius:8px !important;
  box-shadow:none !important;
}
html[data-gj-theme="clean"] body .card:hover,
html[data-gj-theme="clean"] body .gcard:hover{
  border-left-color:var(--gj-brand) !important;
  box-shadow:0 2px 10px rgba(15,23,42,.06) !important;
}
html[data-gj-theme="clean"] body .card>h2,
html[data-gj-theme="clean"] body .gcard>h2{ padding-left:0 !important; }
html[data-gj-theme="clean"] body .card>h2::before,
html[data-gj-theme="clean"] body .gcard>h2::before{
  position:static !important; width:7px !important; height:7px !important;
  border-radius:2px !important; transform:none !important;
  background:var(--gj-ok) !important;
}
html[data-gj-theme="clean"] body .btn{
  border-radius:8px !important;
  background:transparent !important; color:var(--gj-ok) !important;
  border:1.5px solid var(--gj-ok) !important; box-shadow:none !important;
}
html[data-gj-theme="clean"] body .btn:hover{
  background:var(--gj-ok) !important; color:#fff !important;
}
html[data-gj-theme="clean"] body .btn-primary{
  background:var(--gj-ok) !important; color:#fff !important; border-color:var(--gj-ok) !important;
}

/* ========== 5. 灰金：直角双线框 + 零圆角 + 方正按钮（克制排版） ========== */
html[data-gj-theme="graygold"] body .card,
html[data-gj-theme="graygold"] body .gcard{
  border:1px solid var(--gj-line) !important;
  border-radius:2px !important;
  box-shadow:none !important;
  outline:1px solid var(--gj-line-2) !important;
  outline-offset:3px !important;
}
html[data-gj-theme="graygold"] body .card>h2,
html[data-gj-theme="graygold"] body .gcard>h2{
  padding-left:0 !important; letter-spacing:1.6px !important;
  text-transform:none !important;
  padding-bottom:9px !important;
  border-bottom:1px solid var(--gj-line) !important;
}
html[data-gj-theme="graygold"] body .card>h2::before,
html[data-gj-theme="graygold"] body .gcard>h2::before{ content:none !important; }
html[data-gj-theme="graygold"] body .btn{
  border-radius:2px !important; border:0 !important;
  background:var(--gj-ink) !important; color:#fff !important;
  letter-spacing:.6px !important; box-shadow:none !important;
}
html[data-gj-theme="graygold"] body .btn-ghost,
html[data-gj-theme="graygold"] body .btn.ghost{
  background:transparent !important; color:var(--gj-ink) !important;
  border:1px solid var(--gj-line) !important;
}

/* ========== 6. 深墨金：金线暗卡 + 大圆角 + 胶囊发光按钮 ========== */
html[data-gj-theme="night"] body .card,
html[data-gj-theme="night"] body .gcard{
  border:1px solid rgba(212,175,55,.34) !important;
  border-radius:14px !important;
  box-shadow:0 2px 6px rgba(0,0,0,.45), 0 18px 44px rgba(0,0,0,.5),
             0 0 0 1px rgba(212,175,55,.10) inset !important;
}
html[data-gj-theme="night"] body .card>h2,
html[data-gj-theme="night"] body .gcard>h2{
  position:relative !important; padding-left:15px !important;
}
html[data-gj-theme="night"] body .card>h2::before,
html[data-gj-theme="night"] body .gcard>h2::before{
  position:absolute !important; left:0 !important; top:50% !important;
  transform:translateY(-50%) !important;
  width:4px !important; height:1.05em !important; border-radius:2px !important;
  background:linear-gradient(180deg,#f0d47a,#b8912f) !important;
  box-shadow:0 0 8px rgba(240,212,122,.55) !important;
}
html[data-gj-theme="night"] body .btn{
  border-radius:999px !important;
  background:linear-gradient(135deg,#2a2415,#3a3018) !important;
  border:1px solid #d4af37 !important; color:#f0d47a !important;
  box-shadow:0 0 12px rgba(212,175,55,.20) !important;
}
html[data-gj-theme="night"] body .btn-primary{
  background:linear-gradient(135deg,#b8912f,#d4af37) !important;
  color:#201a0c !important;
  box-shadow:0 6px 20px rgba(212,175,55,.32) !important;
}

/* ========== 7. 羊皮纸：双线证书框 + 小方角 + 标题上下金线 ========== */
html[data-gj-theme="parchment"] body .card,
html[data-gj-theme="parchment"] body .gcard{
  border:1px solid var(--gj-brand) !important;
  border-radius:4px !important;
  box-shadow:inset 0 0 0 3px var(--gj-surface), inset 0 0 0 4px var(--gj-gold),
             0 2px 8px rgba(120,95,40,.10) !important;
}
html[data-gj-theme="parchment"] body .card>h2,
html[data-gj-theme="parchment"] body .gcard>h2{
  padding-left:0 !important; padding-top:7px !important; padding-bottom:7px !important;
  border-top:1px solid var(--gj-gold) !important;
  border-bottom:1px solid var(--gj-gold) !important;
  font-family:"Songti SC","STSong",SimSun,Georgia,serif !important;
  letter-spacing:1.4px !important;
}
html[data-gj-theme="parchment"] body .card>h2::before,
html[data-gj-theme="parchment"] body .gcard>h2::before{ content:none !important; }
html[data-gj-theme="parchment"] body .btn{
  border-radius:2px !important;
  background:var(--gj-brand) !important; color:#fdf6e3 !important;
  border:1px solid var(--gj-brand-d) !important;
  letter-spacing:1.2px !important; box-shadow:none !important;
}
html[data-gj-theme="parchment"] body .btn-ghost,
html[data-gj-theme="parchment"] body .btn.ghost{
  background:transparent !important; color:var(--gj-brand) !important;
  border:1px solid var(--gj-brand) !important;
}

/* ========== 8. 深蓝金：四角金线 + 大圆角 + 金渐变胶囊 ========== */
html[data-gj-theme="navygold"] body .card,
html[data-gj-theme="navygold"] body .gcard{
  position:relative !important;
  border:1px solid rgba(212,175,55,.42) !important;
  border-radius:16px !important;
  box-shadow:0 3px 8px rgba(0,0,0,.35), 0 20px 48px rgba(0,0,0,.42) !important;
}
html[data-gj-theme="navygold"] body .card>h2,
html[data-gj-theme="navygold"] body .gcard>h2{
  position:relative !important; padding-left:0 !important;
  padding-top:6px !important;
}
html[data-gj-theme="navygold"] body .card>h2::before,
html[data-gj-theme="navygold"] body .gcard>h2::before{
  position:absolute !important; left:0 !important; top:0 !important;
  width:34px !important; height:2px !important; border-radius:1px !important;
  background:linear-gradient(90deg,#d4af37,rgba(212,175,55,0)) !important;
}
html[data-gj-theme="navygold"] body .btn{
  border-radius:999px !important;
  background:linear-gradient(135deg,#b8912f,#e6c667) !important;
  color:#0e1a2b !important; border:0 !important;
  box-shadow:0 6px 18px rgba(212,175,55,.30) !important;
}
html[data-gj-theme="navygold"] body .btn-ghost,
html[data-gj-theme="navygold"] body .btn.ghost{
  background:transparent !important; color:#e6c667 !important;
  border:1px solid rgba(212,175,55,.6) !important;
}

/* ========== 9. 品牌色：默认皮肤，卡片保持克制，按钮统一胶囊金 ← 让默认也有辨识度 ========== */
html:not([data-gj-theme]) body .btn,
html[data-gj-theme="brand"] body .btn{
  border-radius:10px !important;
  background:linear-gradient(135deg,var(--gj-brand),var(--gj-gold)) !important;
  color:var(--gj-on-brand) !important; border:0 !important;
}
html:not([data-gj-theme]) body .btn-ghost,
html:not([data-gj-theme]) body .btn.ghost,
html[data-gj-theme="brand"] body .btn-ghost,
html[data-gj-theme="brand"] body .btn.ghost{
  background:transparent !important; color:var(--gj-brand) !important;
  border:1px solid var(--gj-line) !important; box-shadow:none !important;
}

/* ============================================================
   修正层（2026-11-03）：v1 的「页头卡」规则
     html[data-gj-theme=X] .main > .card:first-child  →  特异性 (0,3,2)
   会盖掉上面 v2 各皮肤的圆角/边框/阴影。这里按同构再声明一次 (0,3,3)，
   保证首张卡与其余卡片视觉一致，只额外保留「页头渐变底」。
   ============================================================ */
html[data-gj-theme="shijin"] body .main > .card:first-child{
  border:0 !important; border-radius:18px !important;
  box-shadow:0 2px 4px rgba(120,95,40,.05), 0 16px 36px rgba(120,95,40,.14) !important;
}
html[data-gj-theme="fresh"] body .main > .card:first-child{
  border:1px solid var(--gj-line) !important; border-top:3px solid var(--gj-blue) !important;
  border-radius:16px !important;
  box-shadow:0 2px 4px rgba(15,23,42,.05), 0 10px 24px rgba(15,23,42,.08) !important;
}
html[data-gj-theme="orange"] body .main > .card:first-child{
  border:1px solid var(--gj-line) !important; border-left:5px solid var(--gj-brand) !important;
  border-radius:12px !important;
  box-shadow:0 1px 2px rgba(120,60,20,.06), 0 10px 24px rgba(120,60,20,.09) !important;
}
html[data-gj-theme="clean"] body .main > .card:first-child{
  border:1px solid var(--gj-line) !important; border-left:3px solid var(--gj-ok) !important;
  border-radius:8px !important; box-shadow:none !important;
}
html[data-gj-theme="graygold"] body .main > .card:first-child{
  border:1px solid var(--gj-line) !important; border-radius:2px !important;
  box-shadow:none !important; outline:1px solid var(--gj-line-2) !important; outline-offset:3px !important;
}
html[data-gj-theme="night"] body .main > .card:first-child{
  border:1px solid rgba(212,175,55,.36) !important; border-radius:14px !important;
  box-shadow:0 2px 6px rgba(0,0,0,.45), 0 20px 46px rgba(0,0,0,.52),
             0 0 0 1px rgba(212,175,55,.12) inset !important;
}
html[data-gj-theme="parchment"] body .main > .card:first-child{
  border:1px solid var(--gj-brand) !important; border-radius:4px !important;
  box-shadow:inset 0 0 0 3px var(--gj-surface), inset 0 0 0 4px var(--gj-gold),
             0 3px 10px rgba(120,95,40,.12) !important;
}
html[data-gj-theme="navygold"] body .main > .card:first-child{
  border:1px solid rgba(212,175,55,.46) !important; border-radius:16px !important;
  box-shadow:0 3px 8px rgba(0,0,0,.35), 0 22px 50px rgba(0,0,0,.45) !important;
}


/* ---- 各皮肤图标砖语言 ---- */
html[data-gj-theme="brand"] body .hq-ic.giwrap,
html:not([data-gj-theme]) .hq-ic.giwrap{
  background: var(--gj-gold-l) !important; border:0 !important;
  border-radius:50% !important; color: var(--gj-brand) !important;
}
html[data-gj-theme="shijin"] body .hq-ic.giwrap{
  background: var(--gj-gold-l) !important; border:1px solid var(--gj-line-2) !important;
  border-radius:50% !important; color: var(--gj-brand) !important;
  box-shadow:0 2px 6px rgba(139,109,31,.10) !important;
}
html[data-gj-theme="fresh"] body .hq-ic.giwrap{
  background: var(--gj-blue-l) !important; border:0 !important;
  border-radius:11px !important; color: var(--gj-blue) !important;
}
html[data-gj-theme="orange"] body .hq-ic.giwrap{
  background: var(--gj-gold-l) !important; border:0 !important;
  border-radius:13px !important; color: var(--gj-brand) !important;
}
html[data-gj-theme="clean"] body .hq-ic.giwrap{
  background: transparent !important; border:1.5px solid var(--gj-ok) !important;
  border-radius:8px !important; color: var(--gj-ok) !important;
}
html[data-gj-theme="graygold"] body .hq-ic.giwrap{
  background: transparent !important; border:1px solid var(--gj-line) !important;
  border-radius:2px !important; color: var(--gj-ink-2) !important;
}
html[data-gj-theme="night"] body .hq-ic.giwrap{
  background: rgba(212,175,55,.12) !important;
  border:1px solid rgba(212,175,55,.42) !important;
  border-radius:12px !important; color:#f0d47a !important;
  box-shadow:0 0 10px rgba(212,175,55,.14) !important;
}
html[data-gj-theme="parchment"] body .hq-ic.giwrap{
  background: var(--gj-gold-l) !important; border:1px solid var(--gj-gold) !important;
  border-radius:4px !important; color: var(--gj-brand) !important;
}
html[data-gj-theme="navygold"] body .hq-ic.giwrap{
  background: rgba(212,175,55,.14) !important;
  border:1px solid rgba(212,175,55,.5) !important;
  border-radius:50% !important; color:#e6c667 !important;
}
html[data-gj-theme="classic"] body .hq-ic.giwrap{
  background: transparent !important; border:0 !important;
  border-radius:0 !important; color: var(--gj-ink) !important;
}

/* 侧栏图标砖：同语言，尺寸小一号 */
html[data-gj-theme="shijin"] body .ic.giic,
html[data-gj-theme="brand"] body .ic.giic,
html:not([data-gj-theme]) .ic.giic{ background: var(--gj-gold-l); color: var(--gj-brand); border-radius:50%; }
html[data-gj-theme="fresh"] body .ic.giic{ background: var(--gj-blue-l); color: var(--gj-blue); border-radius:7px; }
html[data-gj-theme="orange"] body .ic.giic{ background: var(--gj-gold-l); color: var(--gj-brand); border-radius:8px; }
html[data-gj-theme="clean"] body .ic.giic{ background: transparent; color: var(--gj-ok); border:1px solid var(--gj-ok); border-radius:6px; }
html[data-gj-theme="graygold"] body .ic.giic{ background: transparent; color: var(--gj-ink-2); border:1px solid var(--gj-line); border-radius:2px; }
html[data-gj-theme="night"] body .ic.giic{ background: rgba(212,175,55,.12); color:#f0d47a; border:1px solid rgba(212,175,55,.38); border-radius:8px; }
html[data-gj-theme="parchment"] body .ic.giic{ background: var(--gj-gold-l); color: var(--gj-brand); border:1px solid var(--gj-gold); border-radius:4px; }
html[data-gj-theme="navygold"] body .ic.giic{ background: rgba(212,175,55,.14); color:#e6c667; border:1px solid rgba(212,175,55,.45); border-radius:50%; }
html[data-gj-theme="classic"] body .ic.giic{ background: transparent; color: var(--gj-ink); border:0; border-radius:0; }

/* ===== 运行时 emoji→图标 槽位（全站通用）=====
   emoji 是「文字大小」，替换成 SVG 后必须按 1em 跟随字号，
   否则会撑大或缩成看不见的一点。 */
.gi-slot{
  display:inline-flex !important; align-items:center; justify-content:center;
  vertical-align:-0.15em; line-height:1; margin:0 .04em;
}
.gi-slot .gi{ width:1.1em; height:1.1em; display:block; color:inherit; }
h1 .gi-slot, h2 .gi-slot, h3 .gi-slot, h4 .gi-slot{ margin-right:.38em; vertical-align:-.12em; }
h1 .gi-slot .gi, h2 .gi-slot .gi, h3 .gi-slot .gi, h4 .gi-slot .gi{ width:1em; height:1em; }
.btn .gi-slot .gi, button .gi-slot .gi{ width:1.05em; height:1.05em; }

/* ============================================================
   门户图标砖（2026-11-03）
   ------------------------------------------------------------
   门户页的图标由 portal_icons.js 生成为 .gj-ic 裸线条（1em/currentColor），
   只有颜色跟随文字，没有"图标砖"，视觉上又细又弱，和 AI智慧就业平台
   那套图标语言完全不是一回事。
   这里用 :has() 只给「容器里只有图标」的独立图标位套上砖，
   正文里内联的 .gj-ic 保持 1em 不动，避免误伤。
   ============================================================ */

/* 线条加重：1.8 在 14px 下偏细，2.05 更接近设计稿 */
.gj-ic svg{ stroke-width:2.05 !important; }

/* 独立图标位 → 图标砖（形状/配色按皮肤） */
.bd-ico:has(.gj-ic),
.ico:has(.gj-ic),
.svc .ico:has(.gj-ic),
.card .ico:has(.gj-ic),
.stat-ic:has(.gj-ic),
.sec-ico:has(.gj-ic){
  display:inline-flex !important; align-items:center; justify-content:center;
  width:44px; height:44px; flex:none;
  background: var(--gj-gold-l);
  color: var(--gj-brand);
  border:1px solid var(--gj-line-2);
  border-radius:12px;
  box-sizing:border-box;
}
.bd-ico:has(.gj-ic) .gj-ic svg,
.ico:has(.gj-ic) .gj-ic svg,
.svc .ico:has(.gj-ic) .gj-ic svg,
.card .ico:has(.gj-ic) .gj-ic svg,
.stat-ic:has(.gj-ic) .gj-ic svg,
.sec-ico:has(.gj-ic) .gj-ic svg{
  width:22px !important; height:22px !important;
}

/* ---- 按皮肤换砖形 ---- */
html:not([data-gj-theme]) .bd-ico:has(.gj-ic),
html:not([data-gj-theme]) .ico:has(.gj-ic),
html[data-gj-theme="brand"] .bd-ico:has(.gj-ic),
html[data-gj-theme="brand"] .ico:has(.gj-ic),
html[data-gj-theme="shijin"] .bd-ico:has(.gj-ic),
html[data-gj-theme="shijin"] .ico:has(.gj-ic){
  border-radius:50%; border-color:var(--gj-line);
  box-shadow:0 2px 8px rgba(139,109,31,.10);
}
html[data-gj-theme="fresh"] .bd-ico:has(.gj-ic),
html[data-gj-theme="fresh"] .ico:has(.gj-ic){
  background: var(--gj-blue-l); color: var(--gj-blue);
  border-color:transparent; border-radius:11px;
}
html[data-gj-theme="orange"] .bd-ico:has(.gj-ic),
html[data-gj-theme="orange"] .ico:has(.gj-ic){
  border-radius:13px; border-color:transparent;
}
html[data-gj-theme="clean"] .bd-ico:has(.gj-ic),
html[data-gj-theme="clean"] .ico:has(.gj-ic){
  background: transparent; color: var(--gj-ok);
  border:1.5px solid var(--gj-ok); border-radius:8px;
}
html[data-gj-theme="graygold"] .bd-ico:has(.gj-ic),
html[data-gj-theme="graygold"] .ico:has(.gj-ic){
  background: transparent; color: var(--gj-ink-2);
  border:1px solid var(--gj-line); border-radius:2px;
}
html[data-gj-theme="night"] .bd-ico:has(.gj-ic),
html[data-gj-theme="night"] .ico:has(.gj-ic){
  background: rgba(212,175,55,.12); color:#f0d47a;
  border-color:rgba(212,175,55,.42); border-radius:12px;
}
html[data-gj-theme="parchment"] .bd-ico:has(.gj-ic),
html[data-gj-theme="parchment"] .ico:has(.gj-ic){
  background: var(--gj-gold-l); color: var(--gj-brand);
  border-color: var(--gj-gold); border-radius:4px;
}
html[data-gj-theme="navygold"] .bd-ico:has(.gj-ic),
html[data-gj-theme="navygold"] .ico:has(.gj-ic){
  background: rgba(212,175,55,.14); color:#e6c667;
  border-color:rgba(212,175,55,.5); border-radius:50%;
}
html[data-gj-theme="classic"] .bd-ico:has(.gj-ic),
html[data-gj-theme="classic"] .ico:has(.gj-ic){
  background: transparent; color: var(--gj-ink);
  border-color:transparent; border-radius:0; box-shadow:none;
}
