/* =====================================================
   内容页分类主题（每分类不同风格）
   通过 body 类切换：theme-hangye / theme-hangqing / theme-jishu
                   theme-qiye / theme-zhengce / theme-chanpin
   通用模板 article_article.htm 用 body.cat-{栏目ID} 兜底
   ===================================================== */

body.theme-hangye, body.cat-1, body.cat-7, body.cat-8 {
    --theme: #1e5aa8;          /* 行业动态 - 商务蓝 */
    --theme-light: #eaf1fb;
    --theme-border: #b7cdea;
}
body.theme-hangqing, body.cat-2 {
    --theme: #b03a3a;          /* 市场行情 - 行情红 */
    --theme-light: #fdeeee;
    --theme-border: #ecc9c9;
}
body.theme-jishu, body.cat-3, body.cat-9, body.cat-10 {
    --theme: #12305e;          /* 技术研究 - 科技深蓝 */
    --theme-light: #e9eefb;
    --theme-border: #b9c8ec;
}
body.theme-qiye, body.cat-4 {
    --theme: #e8792b;          /* 企业新闻 - 企业橙 */
    --theme-light: #fdf1e7;
    --theme-border: #f2cdab;
}
body.theme-zhengce, body.cat-5 {
    --theme: #a12323;          /* 政策法规 - 公告红 */
    --theme-light: #fbecec;
    --theme-border: #e7bdbd;
}
body.theme-chanpin, body.cat-6 {
    --theme: #2f9e5f;          /* 产品知识 - 自然绿 */
    --theme-light: #e9f7ef;
    --theme-border: #b5dcc6;
}

/* ---------- 主题化应用 ---------- */
.article-title { color: var(--text); }

.theme-article-head {
    background: var(--theme-light); border: 1px solid var(--theme-border);
    border-left: 5px solid var(--theme); border-radius: 4px;
    padding: 14px 18px; margin-bottom: 18px;
}
.theme-article-head .tah-cat { color: var(--theme); font-weight: 700; font-size: 14px; }
.theme-article-head .tah-brief { color: var(--text-light); font-size: 13px; margin-top: 6px; line-height: 1.8; }

.article-content h2 { border-left-color: var(--theme); color: var(--theme); }
.article-content h3 { color: var(--theme); }
.article-content th { color: var(--theme); }

/* 主题标签按钮 */
.theme-tag { display: inline-block; padding: 2px 10px; background: var(--theme-light); color: var(--theme); border: 1px solid var(--theme-border); border-radius: 3px; font-size: 12px; }

/* ---------- 行情主题专属：数据面板 ---------- */
body.theme-hangqing .quote-panel {
    background: var(--card); border: 1px solid var(--theme-border); border-radius: 4px; padding: 14px 18px; margin-bottom: 18px;
}
body.theme-hangqing .quote-panel h3 {
    font-size: 15px; color: var(--theme); border-left: 3px solid var(--theme); padding-left: 10px; margin-bottom: 10px;
}
body.theme-hangqing .qp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
body.theme-hangqing .qp-item { background: #fafbfc; border: 1px solid var(--border); border-radius: 4px; padding: 10px 14px; }
body.theme-hangqing .qp-item .qpi-name { color: var(--muted); font-size: 12px; }
body.theme-hangqing .qp-item .qpi-price { font-size: 20px; font-weight: 700; margin-top: 4px; }
body.theme-hangqing .qp-item .qpi-price.up { color: var(--up); }
body.theme-hangqing .qp-item .qpi-price.down { color: var(--down); }

/* ---------- 技术主题专属：参数框 ---------- */
body.theme-jishu .tech-box {
    background: #0e2547; color: #d6e2f7; border-radius: 4px; padding: 14px 18px; margin: 14px 0; font-size: 13px;
}
body.theme-jishu .tech-box .tb-title { color: var(--accent); font-weight: 700; margin-bottom: 6px; }

/* ---------- 政策主题专属：法规引用框 ---------- */
body.theme-zhengce .law-box {
    background: var(--theme-light); border: 1px solid var(--theme-border); border-left: 5px solid var(--theme);
    border-radius: 4px; padding: 14px 18px; margin: 14px 0; font-size: 14px;
}
body.theme-zhengce .law-box .lb-no { color: var(--theme); font-weight: 700; margin-bottom: 6px; }

/* ---------- 产品知识主题专属：FAQ ---------- */
body.theme-chanpin .faq-item { border: 1px solid var(--border); border-radius: 4px; padding: 12px 16px; margin: 10px 0; }
body.theme-chanpin .faq-item .fq-q { color: var(--theme); font-weight: 700; }
body.theme-chanpin .faq-item .fq-a { color: var(--text-light); font-size: 14px; margin-top: 6px; }
