/**
 * CSS 全局变量定义 + 主题切换
 * 主题模式: light(默认) / red(全红) / gray(全灰) / dark(深色)
 * 切换方式: <html data-theme="xxx">  由 PHP 从 jlr_config.site_theme 输出
 *
 * 架构:
 *   :root                    = 浅色默认（各板块独立特色色）
 *   html[data-theme="red"]   = 全红主题
 *   html[data-theme="gray"] = 全灰主题
 *   html[data-theme="dark"] = 深色主题
 *   ColorHelper::generateCssVariables() 仅输出后台手动改值的覆盖层
 */

/* ============================================================
   通用变量（非颜色类，所有主题共用）
   ============================================================ */
:root {
    /* ===== 排版 ===== */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                   "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue",
                   Helvetica, Arial, sans-serif;
    --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

    --font-size-xs: 12px;
    --font-size-sm: 13px;
    --font-size-base: 14px;
    --font-size-md: 15px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-2xl: 20px;
    --font-size-3xl: 24px;

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --line-height-tight: 1.2;
    --line-height-base: 1.5;
    --line-height-loose: 1.8;

    /* ===== 间距 ===== */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-base: 16px;
    --spacing-lg: 20px;
    --spacing-xl: 24px;
    --spacing-2xl: 32px;
    --spacing-3xl: 40px;

    /* ===== 圆角 ===== */
    --radius-sm: 2px;
    --radius-base: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    --radius-full: 9999px;

    /* ===== 组件尺寸 ===== */
    --height-sm: 28px;
    --height-base: 32px;
    --height-md: 36px;
    --height-lg: 40px;
    --height-xl: 48px;

    /* ===== 阴影 ===== */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-base: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);

    /* ===== 动画时长 ===== */
    --duration-fast: 0.15s;
    --duration-base: 0.25s;
    --duration-slow: 0.4s;
    --ease-base: cubic-bezier(0.4, 0, 0.2, 1);

    /* ===== 层级 ===== */
    --z-index-dropdown: 1000;
    --z-index-sticky: 1020;
    --z-index-fixed: 1030;
    --z-index-modal-backdrop: 1040;
    --z-index-modal: 1050;
    --z-index-popover: 1060;
    --z-index-tooltip: 1070;
    --z-index-toast: 1080;
}

/* ============================================================
   主题 1: LIGHT 浅色（默认） — 各板块独立特色色
   ============================================================ */
:root,
html[data-theme="light"] {
    /* ===== 全局基础 ===== */
    --page-bg: #F7F9FB;
    --card-bg: #FFFFFF;
    --border: #E2E8F0;

    /* ===== 按钮 & 链接（全局主色 - 靛蓝） ===== */
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --color-primary: #2563EB;
    --color-primary-hover: #1D4ED8;
    --color-primary-light: #EBF8FF;
    --color-primary-dark: #1E40AF;

    --color-btn-primary: #2563EB;
    --color-btn-hover: #1D4ED8;
    --color-link: #2563EB;
    --color-link-hover: #1D4ED8;
    --color-tag: #E53E3E;

    --color-secondary: #f59e0b;
    --color-secondary-hover: #d97706;
    --color-secondary-light: #fffbeb;

    /* ===== 功能色（不变） ===== */
    --danger: #E53E3E;
    --danger-hover: #ff7875;
    --success: #38A169;
    --warning: #D69E2E;
    --info: #3182CE;
    --price-color: #C53030;

    --color_danger: #E53E3E;
    --color_danger_hover: #ff7875;
    --color-error: #E53E3E;
    --color-error-light: #fff1f0;
    --color_success: #38A169;
    --color_warning: #D69E2E;
    --color_info: #3182CE;
    --color_price: #C53030;

    /* ===== 标签色 ===== */
    --tag-hot: #FDE2E2;
    --tag-new: #EBF8FF;
    --tag-recommend: #FAF089;
    --tag-free: #E6FFFA;

    --color_tag_hot: #FDE2E2;
    --color_tag_new: #EBF8FF;
    --color_tag_recommend: #FAF089;
    --color_tag_free: #E6FFFA;

    /* ===== 文字 ===== */
    --text-main: #2D3748;
    --text-secondary: #718096;
    --text-placeholder: #A0AEC0;
    --text-disabled: #CBD5E0;
    --text-white: #ffffff;

    --color_text_main: #2D3748;
    --color_text_secondary: #718096;

    /* ===== 背景 & 边框 ===== */
    --bg-body: #F7F9FB;
    --bg-page: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #EDF2F7;
    --bg-active: #E2E8F0;
    --color_bg_body: #F7F9FB;
    --color_bg_hover: #EDF2F7;
    --color_bg_active: #E2E8F0;
    --color_bg_card: #FFFFFF;
    --color_border_light: #EDF2F7;

    --border-base: #E2E8F0;
    --border-light: #EDF2F7;
    --border-dark: #CBD5E0;

    /* ===== 板块配色（各有特色） ===== */
    --section-home: #2A4365;        --section-home-hover: #2C5282;  --section-home-light: #EDF2F7;  --section-home-dark: #1A365D;
    --section-venue: #0d9488;       --section-venue-hover: #0f766e; --section-venue-light: #ccfbf1;  --section-venue-dark: #134e4a;
    --section-shop: #236B59;        --section-shop-hover: #1A4731;  --section-shop-light: #E8F4F1;  --section-shop-dark: #143D31;
    --section-supplier: #cf1322;    --section-supplier-hover: #a8071a; --section-supplier-light: #fff1f0; --section-supplier-dark: #820014;
    --section-job: #1A4B91;         --section-job-hover: #2C5282;   --section-job-light: #E6F0FF;   --section-job-dark: #0F2B54;
    --section-resume: #553C9A;      --section-resume-hover: #44337A; --section-resume-light: #F0EDFF; --section-resume-dark: #2C1A54;
    --section-doc: #334155;         --section-doc-hover: #1E293B;   --section-doc-light: #F1F5F9;   --section-doc-dark: #0F172A;
    --section-forum: #a0d911;       --section-forum-hover: #7cb305; --section-forum-light: #f4ffb8; --section-forum-dark: #5b8c00;
    --section-user: #2B6CB0;        --section-user-hover: #2C5282;  --section-user-light: #EBF8FF;  --section-user-dark: #1A365D;
    --section-guestbook: #3182CE;   --section-guestbook-hover: #2B6CB0; --section-guestbook-light: #EBF8FF; --section-guestbook-dark: #2A4365;
    --section-service-join: #08979c; --section-service-join-hover: #006d75; --section-service-join-light: #e6fffb; --section-service-join-dark: #003d3f;
    --warning-dark: #92400e;

    /* ===== 板块渐变 ===== */
    --gradient-home: linear-gradient(135deg, #2A4365 0%, #4299E1 100%);
    --gradient-venue: linear-gradient(135deg, #0d9488 0%, #2dd4bf 100%);
    --gradient-shop: linear-gradient(135deg, #236B59 0%, #38A169 100%);
    --gradient-supplier: linear-gradient(135deg, #cf1322 0%, #f5222d 100%);
    --gradient-job: linear-gradient(135deg, #1A4B91 0%, #4299E1 100%);
    --gradient-resume: linear-gradient(135deg, #553C9A 0%, #805AD5 100%);
    --gradient-doc: linear-gradient(135deg, #334155 0%, #64748B 100%);
    --gradient-forum: linear-gradient(135deg, #a0d911 0%, #d4f56b 100%);
    --gradient-user: linear-gradient(135deg, #2B6CB0 0%, #63B3ED 100%);

    /* ===== 渐变辅助 ===== */
    --gradient-home-from: #2A4365; --gradient-home-to: #4299E1;
    --gradient-venue-from: #0d9488; --gradient-venue-to: #2dd4bf;
    --gradient-shop-from: #236B59; --gradient-shop-to: #38A169;
    --gradient-supplier-from: #cf1322; --gradient-supplier-to: #f5222d;
    --gradient-job-from: #1A4B91; --gradient-job-to: #4299E1;
    --gradient-resume-from: #553C9A; --gradient-resume-to: #805AD5;
    --gradient-doc-from: #334155; --gradient-doc-to: #64748B;
    --gradient-forum-from: #a0d911; --gradient-forum-to: #d4f56b;
    --gradient-user-from: #2B6CB0; --gradient-user-to: #63B3ED;

    /* ===== 首页栏目配色 ===== */
    --block-hot-job: #1A4B91;
    --block-recommend-resume: #553C9A;
    --block-hot-shop: #236B59;
    --block-hot-venue: #0d9488;
    --block-hot-doc: #334155;
    --block-hot-supplier: #cf1322;
    --block-notice: #2A4365;
    --block-hot-forum: #a0d911;

    /* ===== 通用浅色 ===== */
    --section-light: #EDF2F7;

    /* ===== 页脚 ===== */
    --footer-bg: #1a4a3a;
    --footer-text: #8ce0c5;
    --footer-text-light: #b3f0d4;
    --footer-border: #006650;
    --footer-qrcode-bg: #006650;

    --color_footer_bg: #1a4a3a;
    --color_footer_text: #8ce0c5;
    --color_footer_text_light: #b3f0d4;
    --color_footer_border: #006650;
    --color_footer_qrcode_bg: #006650;
}

/* ============================================================
   主题 2: RED 全红 — 所有板块统一中国红
   ============================================================ */
html[data-theme="red"] {
    --primary: #cf1322;
    --primary-hover: #a8071a;
    --color-primary: #cf1322;
    --color-primary-hover: #a8071a;
    --color-primary-light: #fff1f0;
    --color-primary-dark: #820014;

    --color-btn-primary: #cf1322;
    --color-btn-hover: #a8071a;
    --color-link: #cf1322;
    --color-link-hover: #820014;
    --color-tag: #cf1322;

    --color-secondary: #ff7875;
    --color-secondary-hover: #ff4d4f;
    --color-secondary-light: #fff1f0;

    --danger: #cf1322;
    --danger-hover: #ff4d4f;
    --success: #ff4d4f;
    --warning: #ff7875;
    --info: #ff4d4f;
    --price-color: #cf1322;

    --color_danger: #cf1322;
    --color-error: #cf1322;
    --color-error-light: #fff1f0;
    --color_success: #ff4d4f;
    --color_warning: #ff7875;
    --color_info: #ff4d4f;
    --color_price: #cf1322;

    --tag-hot: #fff1f0; --tag-new: #fff2f0; --tag-recommend: #fff1f0; --tag-free: #fff1f0;
    --color_tag_hot: #fff1f0; --color_tag_new: #fff2f0; --color_tag_recommend: #fff1f0; --color_tag_free: #fff1f0;

    --text-main: #820014;
    --text-secondary: #a8071a;
    --color_text_main: #820014;
    --color_text_secondary: #a8071a;

    --bg-body: #fff1f0;
    --bg-card: #fff2f0;
    --bg-hover: #ffccc7;
    --bg-active: #ffa39e;
    --border-light: #ffa39e;
    --color_bg_body: #fff1f0;
    --color_bg_hover: #ffccc7;
    --color_bg_active: #ffa39e;
    --color_bg_card: #fff2f0;
    --color_border_light: #ffa39e;

    /* 板块统一红色 */
    --section-home:#cf1322;--section-home-hover:#a8071a;--section-home-light:#fff1f0;--section-home-dark:#820014;
    --section-venue:#cf1322;--section-venue-hover:#a8071a;--section-venue-light:#fff1f0;--section-venue-dark:#820014;
    --section-shop:#cf1322;--section-shop-hover:#a8071a;--section-shop-light:#fff1f0;--section-shop-dark:#820014;
    --section-supplier:#cf1322;--section-supplier-hover:#a8071a;--section-supplier-light:#fff1f0;--section-supplier-dark:#820014;
    --section-job:#cf1322;--section-job-hover:#a8071a;--section-job-light:#fff1f0;--section-job-dark:#820014;
    --section-resume:#cf1322;--section-resume-hover:#a8071a;--section-resume-light:#fff1f0;--section-resume-dark:#820014;
    --section-doc:#cf1322;--section-doc-hover:#a8071a;--section-doc-light:#fff1f0;--section-doc-dark:#820014;
    --section-forum:#a0d911;--section-forum-hover:#7cb305;--section-forum-light:#f4ffb8;--section-forum-dark:#5b8c00;
    --section-user:#cf1322;--section-user-hover:#a8071a;--section-user-light:#fff1f0;--section-user-dark:#820014;
    --section-guestbook:#cf1322;--section-guestbook-hover:#a8071a;--section-guestbook-light:#fff1f0;--section-guestbook-dark:#820014;
    --section-service-join:#cf1322;--section-service-join-hover:#a8071a;--section-service-join-light:#fff1f0;--section-service-join-dark:#820014;
    --warning-dark:#820014;

    --gradient-home:linear-gradient(135deg,#cf1322 0%,#ff4d4f 100%);
    --gradient-venue:linear-gradient(135deg,#cf1322 0%,#ff4d4f 100%);
    --gradient-shop:linear-gradient(135deg,#cf1322 0%,#ff4d4f 100%);
    --gradient-supplier:linear-gradient(135deg,#cf1322 0%,#ff4d4f 100%);
    --gradient-job:linear-gradient(135deg,#cf1322 0%,#ff4d4f 100%);
    --gradient-resume:linear-gradient(135deg,#cf1322 0%,#ff4d4f 100%);
    --gradient-doc:linear-gradient(135deg,#cf1322 0%,#ff4d4f 100%);
    --gradient-forum:linear-gradient(135deg,#cf1322 0%,#ff4d4f 100%);
    --gradient-user:linear-gradient(135deg,#cf1322 0%,#ff4d4f 100%);

    --gradient-home-from:#cf1322;--gradient-home-to:#ff4d4f;
    --gradient-venue-from:#cf1322;--gradient-venue-to:#ff4d4f;
    --gradient-shop-from:#cf1322;--gradient-shop-to:#ff4d4f;
    --gradient-supplier-from:#cf1322;--gradient-supplier-to:#ff4d4f;
    --gradient-job-from:#cf1322;--gradient-job-to:#ff4d4f;
    --gradient-resume-from:#cf1322;--gradient-resume-to:#ff4d4f;
    --gradient-doc-from:#cf1322;--gradient-doc-to:#ff4d4f;
    --gradient-forum-from:#cf1322;--gradient-forum-to:#ff4d4f;
    --gradient-user-from:#cf1322;--gradient-user-to:#ff4d4f;

    --block-hot-job:#cf1322;--block-recommend-resume:#cf1322;--block-hot-shop:#cf1322;--block-hot-venue:#cf1322;
    --block-hot-doc:#cf1322;--block-hot-supplier:#cf1322;--block-notice:#cf1322;--block-hot-forum:#cf1322;

    --section-light: #fff1f0;

    --footer-bg:#5a1a1a;--footer-text:#ffa39e;--footer-text-light:#ffccc7;--footer-border:#820014;--footer-qrcode-bg:#820014;
    --color_footer_bg:#5a1a1a;--color_footer_text:#ffa39e;--color_footer_text_light:#ffccc7;--color_footer_border:#820014;--color_footer_qrcode_bg:#820014;
}

/* ============================================================
   主题 3: GRAY 全灰 — 国家大事纪念
   ============================================================ */
html[data-theme="gray"] {
    --primary: #8c8c8c;
    --primary-hover: #737373;
    --color-primary: #8c8c8c;
    --color-primary-hover: #737373;
    --color-primary-light: #f0f0f0;
    --color-primary-dark: #595959;

    --color-btn-primary: #8c8c8c;
    --color-btn-hover: #737373;
    --color-link: #8c8c8c;
    --color-link-hover: #595959;
    --color-tag: #8c8c8c;

    --color-secondary: #bfbfbf;
    --color-secondary-hover: #a6a6a6;
    --color-secondary-light: #f5f5f5;

    --danger:#8c8c8c;--danger-hover:#a6a6a6;--success:#8c8c8c;--warning:#8c8c8c;--info:#8c8c8c;--price-color:#8c8c8c;
    --color_danger:#8c8c8c;--color_error:#8c8c8c;--color_error_light:#f0f0f0;--color_success:#8c8c8c;--color_warning:#8c8c8c;--color_info:#8c8c8c;--color_price:#8c8c8c;

    --tag-hot:#f0f0f0;--tag-new:#f0f0f0;--tag-recommend:#f0f0f0;--tag-free:#f0f0f0;
    --color_tag_hot:#f0f0f0;--color_tag_new:#f0f0f0;--color_tag_recommend:#f0f0f0;--color_tag_free:#f0f0f0;

    --text-main: #595959;
    --text-secondary: #8c8c8c;
    --color_text_main: #595959;
    --color_text_secondary: #8c8c8c;

    --bg-body:#f5f5f5;--bg-card:#fafafa;--bg-hover:#e8e8e8;--bg-active:#d9d9d9;--border-light:#d9d9d9;
    --color_bg_body:#f5f5f5;--color_bg_hover:#e8e8e8;--color_bg_active:#d9d9d9;--color_bg_card:#fafafa;--color_border_light:#d9d9d9;

    /* 板块统一灰色 */
    --section-home:#8c8c8c;--section-home-hover:#737373;--section-home-light:#f0f0f0;--section-home-dark:#595959;
    --section-venue:#8c8c8c;--section-venue-hover:#737373;--section-venue-light:#f0f0f0;--section-venue-dark:#595959;
    --section-shop:#8c8c8c;--section-shop-hover:#737373;--section-shop-light:#f0f0f0;--section-shop-dark:#595959;
    --section-supplier:#8c8c8c;--section-supplier-hover:#737373;--section-supplier-light:#f0f0f0;--section-supplier-dark:#595959;
    --section-job:#8c8c8c;--section-job-hover:#737373;--section-job-light:#f0f0f0;--section-job-dark:#595959;
    --section-resume:#8c8c8c;--section-resume-hover:#737373;--section-resume-light:#f0f0f0;--section-resume-dark:#595959;
    --section-doc:#8c8c8c;--section-doc-hover:#737373;--section-doc-light:#f0f0f0;--section-doc-dark:#595959;
    --section-forum:#8c8c8c;--section-forum-hover:#737373;--section-forum-light:#f0f0f0;--section-forum-dark:#595959;
    --section-user:#8c8c8c;--section-user-hover:#737373;--section-user-light:#f0f0f0;--section-user-dark:#595959;
    --section-guestbook:#8c8c8c;--section-guestbook-hover:#737373;--section-guestbook-light:#f0f0f0;--section-guestbook-dark:#595959;
    --section-service-join:#8c8c8c;--section-service-join-hover:#737373;--section-service-join-light:#f0f0f0;--section-service-join-dark:#595959;
    --warning-dark:#595959;

    --gradient-home:linear-gradient(135deg,#8c8c8c 0%,#bfbfbf 100%);
    --gradient-venue:linear-gradient(135deg,#8c8c8c 0%,#bfbfbf 100%);
    --gradient-shop:linear-gradient(135deg,#8c8c8c 0%,#bfbfbf 100%);
    --gradient-supplier:linear-gradient(135deg,#8c8c8c 0%,#bfbfbf 100%);
    --gradient-job:linear-gradient(135deg,#8c8c8c 0%,#bfbfbf 100%);
    --gradient-resume:linear-gradient(135deg,#8c8c8c 0%,#bfbfbf 100%);
    --gradient-doc:linear-gradient(135deg,#8c8c8c 0%,#bfbfbf 100%);
    --gradient-forum:linear-gradient(135deg,#8c8c8c 0%,#bfbfbf 100%);
    --gradient-user:linear-gradient(135deg,#8c8c8c 0%,#bfbfbf 100%);

    --gradient-home-from:#8c8c8c;--gradient-home-to:#bfbfbf;
    --gradient-venue-from:#8c8c8c;--gradient-venue-to:#bfbfbf;
    --gradient-shop-from:#8c8c8c;--gradient-shop-to:#bfbfbf;
    --gradient-supplier-from:#8c8c8c;--gradient-supplier-to:#bfbfbf;
    --gradient-job-from:#8c8c8c;--gradient-job-to:#bfbfbf;
    --gradient-resume-from:#8c8c8c;--gradient-resume-to:#bfbfbf;
    --gradient-doc-from:#8c8c8c;--gradient-doc-to:#bfbfbf;
    --gradient-forum-from:#8c8c8c;--gradient-forum-to:#bfbfbf;
    --gradient-user-from:#8c8c8c;--gradient-user-to:#bfbfbf;

    --block-hot-job:#8c8c8c;--block-recommend-resume:#8c8c8c;--block-hot-shop:#8c8c8c;--block-hot-venue:#8c8c8c;
    --block-hot-doc:#8c8c8c;--block-hot-supplier:#8c8c8c;--block-notice:#8c8c8c;--block-hot-forum:#8c8c8c;

    --section-light: #f0f0f0;

    --footer-bg:#3a3a3a;--footer-text:#bfbfbf;--footer-text-light:#999;--footer-border:#595959;--footer-qrcode-bg:#595959;
    --color_footer_bg:#3a3a3a;--color_footer_text:#bfbfbf;--color_footer_text_light:#999;--color_footer_border:#595959;--color_footer_qrcode_bg:#595959;
}

/* ============================================================
   主题 4: DARK 深色 — 靛蓝主色 + 暗色系
   ============================================================ */
html[data-theme="dark"] {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --color-primary: #6366f1;
    --color-primary-hover: #4f46e5;
    --color-primary-light: #1e1b4b;
    --color-primary-dark: #312e81;

    --color-btn-primary: #6366f1;
    --color-btn-hover: #4f46e5;
    --color-link: #818cf8;
    --color-link-hover: #a5b4fc;
    --color-tag: #f59e0b;

    --color-secondary: #f59e0b;
    --color-secondary-hover: #d97706;
    --color-secondary-light: #78350f;

    --danger: #f87171;
    --danger-hover: #fca5a5;
    --success: #34d399;
    --warning: #fbbf24;
    --info: #60a5fa;
    --price-color: #fb7185;

    --color_danger:#f87171;--color_error:#f87171;--color_error_light:#450a0a;--color_success:#34d399;--color_warning:#fbbf24;--color_info:#60a5fa;--color_price:#fb7185;

    --tag-hot:#450a0a;--tag-new:#0c4a6e;--tag-recommend:#78350f;--tag-free:#064e3b;
    --color_tag_hot:#450a0a;--color_tag_new:#0c4a6e;--color_tag_recommend:#78350f;--color_tag_free:#064e3b;

    --text-main: #e5e7eb;
    --text-secondary: #9ca3af;
    --text-placeholder: #6b7280;
    --text-disabled: #4b5563;
    --color_text_main: #e5e7eb;
    --color_text_secondary: #9ca3af;

    --bg-body: #0f172a;
    --bg-page: #1e293b;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    --bg-active: #475569;
    --border-light: #334155;
    --color_bg_body:#0f172a;--color_bg_hover:#334155;--color_bg_active:#475569;--color_bg_card:#1e293b;--color_border_light:#334155;

    --border-base: #334155;
    --border: #334155;

    /* 板块配色（深色变体 - 靛蓝家族） */
    --section-home:#818cf8;--section-home-hover:#6366f1;--section-home-light:#1e1b4b;--section-home-dark:#312e81;
    --section-venue:#fb923c;--section-venue-hover:#ea580c;--section-venue-light:#431407;--section-venue-dark:#7c2d12;
    --section-shop:#2dd4bf;--section-shop-hover:#14b8a6;--section-shop-light:#042f2e;--section-shop-dark:#134e4a;
    --section-supplier:#f87171;--section-supplier-hover:#ef4444;--section-supplier-light:#450a0a;--section-supplier-dark:#7f1d1d;
    --section-job:#60a5fa;--section-job-hover:#3b82f6;--section-job-light:#1e3a5f;--section-job-dark:#1e40af;
    --section-resume:#c084fc;--section-resume-hover:#a855f7;--section-resume-light:#3b0764;--section-resume-dark:#581c87;
    --section-doc:#94a3b8;--section-doc-hover:#64748b;--section-doc-light:#1e293b;--section-doc-dark:#0f172a;
    --section-forum:#bef264;--section-forum-hover:#84cc16;--section-forum-light:#1a2e05;--section-forum-dark:#365314;
    --section-user:#38bdf8;--section-user-hover:#0ea5e9;--section-user-light:#0c4a6e;--section-user-dark:#075985;
    --section-guestbook:#38bdf8;--section-guestbook-hover:#0ea5e9;--section-guestbook-light:#0c4a6e;--section-guestbook-dark:#075985;
    --section-service-join:#2dd4bf;--section-service-join-hover:#14b8a6;--section-service-join-light:#042f2e;--section-service-join-dark:#134e4a;
    --warning-dark:#78350f;

    --gradient-home:linear-gradient(135deg,#312e81 0%,#6366f1 100%);
    --gradient-venue:linear-gradient(135deg,#7c2d12 0%,#ea580c 100%);
    --gradient-shop:linear-gradient(135deg,#134e4a 0%,#14b8a6 100%);
    --gradient-supplier:linear-gradient(135deg,#7f1d1d 0%,#ef4444 100%);
    --gradient-job:linear-gradient(135deg,#1e40af 0%,#3b82f6 100%);
    --gradient-resume:linear-gradient(135deg,#581c87 0%,#a855f7 100%);
    --gradient-doc:linear-gradient(135deg,#0f172a 0%,#475569 100%);
    --gradient-forum:linear-gradient(135deg,#365314 0%,#bef264 100%);
    --gradient-user:linear-gradient(135deg,#075985 0%,#0ea5e9 100%);

    --gradient-home-from:#312e81;--gradient-home-to:#6366f1;
    --gradient-venue-from:#7c2d12;--gradient-venue-to:#ea580c;
    --gradient-shop-from:#134e4a;--gradient-shop-to:#14b8a6;
    --gradient-supplier-from:#7f1d1d;--gradient-supplier-to:#ef4444;
    --gradient-job-from:#1e40af;--gradient-job-to:#3b82f6;
    --gradient-resume-from:#581c87;--gradient-resume-to:#a855f7;
    --gradient-doc-from:#0f172a;--gradient-doc-to:#475569;
    --gradient-forum-from:#365314;--gradient-forum-to:#bef264;
    --gradient-user-from:#075985;--gradient-user-to:#0ea5e9;

    --block-hot-job:#60a5fa;--block-recommend-resume:#c084fc;--block-hot-shop:#2dd4bf;--block-hot-venue:#fb923c;
    --block-hot-doc:#94a3b8;--block-hot-supplier:#f87171;--block-notice:#818cf8;--block-hot-forum:#bef264;

    --section-light: #312e81;

    --footer-bg:#020617;--footer-text:#94a3b8;--footer-text-light:#64748b;--footer-border:#1e293b;--footer-qrcode-bg:#1e293b;
    --color_footer_bg:#020617;--color_footer_text:#94a3b8;--color_footer_text_light:#64748b;--color_footer_border:#1e293b;--color_footer_qrcode_bg:#1e293b;

    /* 阴影淡化（深色背景下不需要那么重的阴影） */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-base: 0 2px 8px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.6);
    --shadow-xl: 0 12px 32px rgba(0,0,0,0.7);
}

/* ============================================================
   深色模式下 base.css/common.css/frontend.css 的微调覆盖
   ============================================================ */
html[data-theme="dark"] body {
    background-color: var(--bg-body);
    color: var(--text-main);
}
html[data-theme="dark"] a {
    color: var(--color-link);
}
html[data-theme="dark"] a:hover {
    color: var(--color-link-hover);
}
