@charset "utf-8";
/*!
 * theme.css —— 网站色系变量 + 微信客服浮层样式
 * ------------------------------------------------------------------
 * 色系切换原理：
 *   前台模板 <html class="theme-xxx"> 由后台「配置参数 → 基本配置 → 网站色系」决定，
 *   本文件按类名给 :root 注入 --theme-main / --theme-main-rgb / --theme-light 三个变量，
 *   css.css / less.css 中原本写死的 #dc001d 已改写为 var(--theme-main,#dc001d)。
 *   var() 均带原色回退值，并保留了原色声明行 —— 即使本文件未加载、
 *   或浏览器不支持 CSS 变量（IE），站点仍按原红色系正常渲染。
 * ------------------------------------------------------------------
 */

/* ============ 1. 色系变量 ============ */

/* 默认（中国红）——未匹配到类名时兜底 */
:root {
    --theme-main: #dc001d;
    --theme-main-rgb: 220, 0, 29;
    --theme-light: #ee808e;
}

html.theme-red {
    --theme-main: #dc001d;
    --theme-main-rgb: 220, 0, 29;
    --theme-light: #ee808e;
}

html.theme-blue {
    --theme-main: #0a58ca;
    --theme-main-rgb: 10, 88, 202;
    --theme-light: #6ea8fe;
}

html.theme-green {
    --theme-main: #0f9d58;
    --theme-main-rgb: 15, 157, 88;
    --theme-light: #6ed49a;
}

html.theme-orange {
    --theme-main: #ff6a00;
    --theme-main-rgb: 255, 106, 0;
    --theme-light: #ffa761;
}

html.theme-purple {
    --theme-main: #7b3fe4;
    --theme-main-rgb: 123, 63, 228;
    --theme-light: #b18bf0;
}

html.theme-cyan {
    --theme-main: #0e9aa7;
    --theme-main-rgb: 14, 154, 167;
    --theme-light: #6ecfd4;
}

/* ============ 2. 微信客服入口图标 ============ */

.wx-ico {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: -3px;
    margin-right: 4px;
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2309bb07' d='M8.9 3C5.1 3 2 5.6 2 8.7c0 1.7 1 3.3 2.5 4.3l-.7 2 2.3-1.2c.8.2 1.6.4 2.5.4h.5a4.6 4.6 0 0 1-.2-1.4c0-2.8 2.8-5.1 6.2-5.1h.6C15.1 5 12.4 3 8.9 3zM6.6 6c.5 0 .8.4.8.8s-.4.8-.8.8-.8-.4-.8-.8.3-.8.8-.8zm4.7 0c.5 0 .8.4.8.8s-.4.8-.8.8-.8-.4-.8-.8.3-.8.8-.8z'/%3E%3Cpath fill='%2309bb07' d='M22 12.8c0-2.6-2.5-4.7-5.6-4.7s-5.6 2.1-5.6 4.7 2.5 4.7 5.6 4.7c.7 0 1.3-.1 1.9-.3l1.9 1-.5-1.6c1.4-.9 2.3-2.3 2.3-3.8zm-7.4-1.4c.4 0 .7.3.7.7 0 .4-.3.7-.7.7-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7zm3.6 0c.4 0 .7.3.7.7 0 .4-.3.7-.7.7-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: contain;
}

/* 侧边客服面板中的微信项，沿用原 .qq li a 排版 */
.kf .con ul.qq li a.js-wechat {
    display: block;
    line-height: 25px;
    color: #333;
}

/* ============ 3. 微信客服浮层 ============ */

.wxbox {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.wxbox.on {
    display: block;
}

.wxbox-mask {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .55);
}

.wxbox-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 300px;
    margin: -190px 0 0 -150px;
    background: #fff;
    border-radius: 8px;
    padding: 22px 20px 18px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}

.wxbox-close {
    position: absolute;
    right: 10px;
    top: 6px;
    width: 26px;
    height: 26px;
    line-height: 26px;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    font-family: Arial, sans-serif;
}

.wxbox-close:hover {
    color: var(--theme-main, #dc001d);
}

.wxbox-tit {
    font-size: 17px;
    color: #333;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    margin-bottom: 14px;
}

.wxbox-qr {
    width: 190px;
    height: 190px;
    margin: 0 auto;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath fill='%23ddd' d='M3 3h8v8H3V3zm2 2v4h4V5H5zm8-2h8v8h-8V3zm2 2v4h4V5h-4zM3 13h8v8H3v-8zm2 2v4h4v-4H5zm11-2h2v2h-2v-2zm3 0h2v2h-2v-2zm-3 3h2v2h-2v-2zm3 0h2v2h-2v-2zm-3 3h2v2h-2v-2zm3 0h2v2h-2v-2z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: 46px 46px;
}

.wxbox-qr img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.wxbox-id {
    margin-top: 14px;
    font-size: 13px;
    color: #666;
}

.wxbox-id em {
    font-style: normal;
    color: var(--theme-main, #dc001d);
    font-weight: bold;
    word-break: break-all;
}

.wxbox-copy {
    margin-left: 8px;
    padding: 3px 10px;
    font-size: 12px;
    color: #fff;
    background: var(--theme-main, #dc001d);
    border: 0;
    border-radius: 3px;
    cursor: pointer;
    font-family: inherit;
}

.wxbox-copy:hover {
    opacity: .88;
}

.wxbox-tip {
    margin-top: 12px;
    font-size: 12px;
    color: #999;
    line-height: 18px;
}

@media screen and (max-width: 768px) {
    .wxbox-panel {
        width: 84%;
        margin-left: -42%;
        padding: 18px 14px 14px;
        top: 50%;
        margin-top: -170px;
    }

    .wxbox-qr {
        width: 150px;
        height: 150px;
    }
}
