/* 异次元卡网 · 增强层前台样式 */
:root {
    --plus-bg: #0f1428;
    --plus-bg-2: #151c36;
    --plus-card: rgba(21, 28, 54, .96);
    --plus-border: rgba(120, 137, 190, .22);
    --plus-text: #eef2ff;
    --plus-muted: #95a0c0;
    --plus-violet: #8b5cf6;
    --plus-cyan: #22d3ee;
    --plus-pink: #f472b6;
    --plus-green: #34d399;
    --plus-danger: #fb7185;
    --plus-shadow: 0 18px 60px rgba(2, 6, 23, .55);
}

.plus-hide { display: none !important; }

/* 性能优化：使用系统字体替代 900KB 的 HarmonyOS 字体，避免首屏字体阻塞。
   Font Awesome 图标有独立的 font-family，不受影响；后台 pa-body 不受影响。 */
body:not(.pa-body) {
    font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif !important;
}

/* ============ 客服按钮 ============ */
#plus-chat-btn {
    position: fixed;
    right: 22px;
    bottom: 26px;
    z-index: 99990;
    display: flex;
    align-items: center;
    gap: 9px;
    height: 54px;
    padding: 0 20px 0 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    color: #fff;
    font: 600 14px/1 system-ui, -apple-system, "Microsoft YaHei", sans-serif;
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 14px 36px rgba(76, 29, 149, .42), 0 0 0 1px rgba(255, 255, 255, .05) inset;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
#plus-chat-btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 18px 44px rgba(76, 29, 149, .5); }
#plus-chat-btn:active { transform: translateY(0) scale(.98); }
#plus-chat-btn .plus-chat-ico {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
}
#plus-chat-btn .plus-chat-ico svg { width: 17px; height: 17px; }
#plus-chat-btn .plus-chat-badge {
    position: absolute;
    top: -5px;
    right: -3px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: #fb7185;
    color: #fff;
    font-size: 11px;
    line-height: 19px;
    text-align: center;
    box-shadow: 0 0 0 3px rgba(15, 20, 40, .85);
}
#plus-chat-btn .plus-chat-live {
    position: absolute;
    top: 3px;
    left: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, .14);
    animation: plusPulse 2.2s infinite;
}
@keyframes plusPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, .12); }
    50% { box-shadow: 0 0 0 8px rgba(52, 211, 153, .02); }
}

/* ============ 客服面板 ============ */
#plus-chat-panel {
    position: fixed;
    right: 22px;
    bottom: 92px;
    z-index: 99991;
    width: 384px;
    height: 580px;
    max-height: calc(100vh - 118px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--plus-border);
    border-radius: 20px;
    background: var(--plus-bg);
    color: var(--plus-text);
    box-shadow: var(--plus-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px) scale(.98);
    transform-origin: bottom right;
    transition: opacity .2s ease, transform .2s ease;
    font-family: system-ui, -apple-system, "Microsoft YaHei", sans-serif;
}
#plus-chat-panel.plus-open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.plus-chat-head {
    position: relative;
    padding: 16px 18px;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(139, 92, 246, .34), transparent 55%),
        radial-gradient(120% 120% at 100% 0%, rgba(34, 211, 238, .22), transparent 50%),
        #141b34;
    border-bottom: 1px solid var(--plus-border);
}
.plus-chat-head-row { display: flex; align-items: center; gap: 11px; }
.plus-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: linear-gradient(135deg, #8b5cf6, #22d3ee);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 8px 18px rgba(139, 92, 246, .3);
}
.plus-chat-head h3 { margin: 0; font-size: 15px; font-weight: 700; color: #fff; }
.plus-chat-head p { margin: 3px 0 0; font-size: 11px; color: var(--plus-muted); }
.plus-chat-state { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-size: 11px; color: var(--plus-green); }
.plus-chat-state i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.plus-chat-state.offline { color: #fbbf24; }
.plus-chat-close {
    width: 28px;
    height: 28px;
    margin-left: 4px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
    color: #cbd5e1;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
}
.plus-chat-close:hover { background: rgba(255, 255, 255, .13); color: #fff; }

.plus-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 15px 10px;
    background:
        linear-gradient(rgba(15, 20, 40, .94), rgba(15, 20, 40, .98)),
        radial-gradient(circle at 80% 10%, rgba(139, 92, 246, .18), transparent 42%);
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, .35) transparent;
}
.plus-chat-body::-webkit-scrollbar { width: 5px; }
.plus-chat-body::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .3); border-radius: 99px; }
.plus-chat-tip {
    margin: 0 auto 12px;
    max-width: 92%;
    padding: 7px 10px;
    border-radius: 8px;
    background: rgba(148, 163, 184, .1);
    color: #a9b4d0;
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
}
.plus-msg { display: flex; gap: 8px; margin-bottom: 13px; align-items: flex-end; }
.plus-msg .plus-msg-avatar {
    flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px;
    display: grid; place-items: center; font-size: 11px; font-weight: 700;
    background: linear-gradient(135deg, #334155, #475569); color: #e2e8f0;
}
.plus-msg.admin .plus-msg-avatar { background: linear-gradient(135deg, #8b5cf6, #22d3ee); color: #fff; }
.plus-msg-bubble {
    max-width: 76%;
    padding: 10px 12px;
    border-radius: 14px 14px 14px 4px;
    background: #1b2442;
    color: #e8edff;
    font-size: 13px;
    line-height: 1.65;
    word-break: break-word;
    border: 1px solid rgba(148, 163, 184, .12);
}
.plus-msg.user { flex-direction: row-reverse; }
.plus-msg.user .plus-msg-bubble {
    border-radius: 14px 14px 4px 14px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    border-color: transparent;
    color: #fff;
}
.plus-msg.user .plus-msg-avatar { background: #312e81; color: #c7d2fe; }
.plus-msg-time { margin-top: 4px; font-size: 10px; color: rgba(203, 213, 225, .55); }
.plus-msg.user .plus-msg-time { text-align: right; }
.plus-msg.system { justify-content: center; }
.plus-msg.system .plus-msg-avatar { display: none; }
.plus-msg.system .plus-msg-bubble {
    background: rgba(148, 163, 184, .1);
    color: #9aa6c2;
    font-size: 11px;
    border-radius: 8px;
    border: 0;
    padding: 6px 10px;
}
.plus-chat-intro {
    margin: 2px 0 14px;
    padding: 13px 14px;
    border: 1px solid rgba(139, 92, 246, .22);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(139, 92, 246, .12), rgba(34, 211, 238, .06));
    color: #cfd8f3;
    font-size: 12px;
    line-height: 1.7;
}
.plus-chat-intro strong { color: #fff; }
.plus-chat-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.plus-chat-quick button {
    border: 1px solid rgba(139, 92, 246, .3);
    background: rgba(139, 92, 246, .12);
    color: #c4b5fd;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    cursor: pointer;
}
.plus-chat-quick button:hover { background: rgba(139, 92, 246, .22); color: #fff; }
.plus-chat-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.plus-chat-fields input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 10px;
    border-radius: 9px;
    border: 1px solid rgba(148, 163, 184, .18);
    background: rgba(15, 20, 40, .7);
    color: #e2e8f0;
    font-size: 12px;
    outline: none;
}
.plus-chat-fields input:focus { border-color: rgba(139, 92, 246, .55); box-shadow: 0 0 0 3px rgba(139, 92, 246, .12); }
.plus-chat-compose {
    border-top: 1px solid var(--plus-border);
    padding: 10px 12px 12px;
    background: #11172c;
}
.plus-chat-compose-row { display: flex; align-items: flex-end; gap: 8px; }
.plus-chat-compose textarea {
    flex: 1;
    min-height: 40px;
    max-height: 110px;
    resize: none;
    padding: 10px 11px;
    border-radius: 11px;
    border: 1px solid rgba(148, 163, 184, .18);
    background: #0b1022;
    color: #e8edff;
    font: 13px/1.55 system-ui, -apple-system, "Microsoft YaHei", sans-serif;
    outline: none;
}
.plus-chat-compose textarea:focus { border-color: rgba(139, 92, 246, .55); box-shadow: 0 0 0 3px rgba(139, 92, 246, .1); }
.plus-chat-send {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.plus-chat-send:disabled { opacity: .55; cursor: not-allowed; }
.plus-chat-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 7px; color: #6b7695; font-size: 10px; }
.plus-chat-foot a { color: #8b9bbd; text-decoration: none; }
.plus-chat-foot a:hover { color: #c4b5fd; }

/* ============ 音乐播放器 ============ */
#plus-music {
    position: fixed;
    left: 20px;
    bottom: 24px;
    z-index: 99980;
    font-family: system-ui, -apple-system, "Microsoft YaHei", sans-serif;
    color: var(--plus-text);
    user-select: none;
}
#plus-music.plus-right { left: auto; right: 20px; }
.plus-music-disc {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .16);
    background:
        radial-gradient(circle at 50% 50%, #0b1022 0 17%, transparent 18%),
        conic-gradient(from 0deg, #1f2937, #4c1d95, #0e7490, #1f2937, #4c1d95, #0e7490, #1f2937);
    box-shadow: 0 10px 28px rgba(2, 6, 23, .45);
    cursor: pointer;
    display: grid;
    place-items: center;
    animation: plusSpin 9s linear infinite;
    animation-play-state: paused;
}
.plus-music-disc.playing { animation-play-state: running; }
.plus-music-disc::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, .16);
}
.plus-music-disc .plus-disc-core {
    width: 24px; height: 24px; border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #22d3ee);
    display: grid; place-items: center;
    color: #fff; font-size: 11px; font-weight: 800;
    box-shadow: 0 0 0 4px rgba(15, 20, 40, .65);
    z-index: 1;
}
.plus-music-disc .plus-disc-badge {
    position: absolute; right: -2px; top: -2px;
    width: 18px; height: 18px; border-radius: 50%;
    background: #22d3ee; color: #06121f;
    font-size: 10px; font-weight: 800;
    display: grid; place-items: center;
    box-shadow: 0 0 0 3px rgba(15, 20, 40, .85);
}
.plus-music-disc.playing .plus-disc-badge { animation: plusPulse 1.8s infinite; }
@keyframes plusSpin { to { transform: rotate(360deg); } }
.plus-music-panel {
    position: absolute;
    left: 0;
    bottom: 70px;
    width: 288px;
    padding: 14px;
    border: 1px solid var(--plus-border);
    border-radius: 16px;
    background: var(--plus-card);
    box-shadow: var(--plus-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .18s ease, transform .18s ease;
    backdrop-filter: blur(16px);
}
#plus-music.plus-right .plus-music-panel { left: auto; right: 0; }
.plus-music-panel.plus-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.plus-music-title { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plus-music-artist { margin-top: 3px; font-size: 11px; color: var(--plus-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plus-music-controls { display: flex; align-items: center; gap: 10px; margin-top: 11px; }
.plus-music-controls button {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, .18);
    background: rgba(255, 255, 255, .05);
    color: #dbe4ff; cursor: pointer;
    display: grid; place-items: center;
    font-size: 12px;
}
.plus-music-controls button.plus-play {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border: 0; color: #fff;
}
.plus-music-controls button:hover { filter: brightness(1.15); }
.plus-volume-row { display: flex; align-items: center; gap: 8px; margin-top: 11px; }
.plus-volume-row svg { width: 14px; height: 14px; color: #93a2c4; }
.plus-volume-row input[type=range] {
    flex: 1; height: 3px; accent-color: #8b5cf6; cursor: pointer;
}
.plus-volume-label { width: 30px; text-align: right; font-size: 10px; color: #8b99b8; }
.plus-playlist { margin-top: 10px; max-height: 132px; overflow-y: auto; border-top: 1px solid rgba(148, 163, 184, .1); padding-top: 6px; }
.plus-playlist button {
    width: 100%; display: flex; align-items: center; gap: 7px;
    padding: 6px 7px; border: 0; border-radius: 7px;
    background: transparent; color: #aab6d3; font-size: 11px;
    text-align: left; cursor: pointer;
}
.plus-playlist button:hover { background: rgba(139, 92, 246, .12); color: #e9eeff; }
.plus-playlist button.active { background: rgba(139, 92, 246, .18); color: #d8ccff; }
.plus-playlist .plus-track-index { width: 16px; color: #6b7794; font-size: 10px; }
.plus-playlist .plus-track-name { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.plus-music-tip {
    position: absolute; left: 66px; bottom: 10px; white-space: nowrap;
    padding: 5px 9px; border-radius: 999px;
    background: rgba(15, 20, 40, .9); border: 1px solid rgba(148, 163, 184, .18);
    color: #c7d2fe; font-size: 10px; pointer-events: none;
    opacity: 0; transition: opacity .2s;
}
#plus-music.plus-right .plus-music-tip { left: auto; right: 66px; }
.plus-music-tip.show { opacity: 1; }

/* ============ 下雪 ============ */
#plus-snow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    width: 100%;
    height: 100%;
}

/* ============ QQ 弹窗 ============ */
#plus-qq-mask {
    position: fixed; inset: 0; z-index: 100000;
    background: rgba(3, 7, 18, .7);
    backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center;
    padding: 18px;
    font-family: system-ui, -apple-system, "Microsoft YaHei", sans-serif;
}
#plus-qq-mask.plus-open { display: flex; }
.plus-qq-modal {
    width: 390px; max-width: 100%;
    max-height: calc(100vh - 36px); overflow-y: auto;
    border: 1px solid var(--plus-border); border-radius: 20px;
    background: var(--plus-bg); color: var(--plus-text);
    box-shadow: var(--plus-shadow);
    padding: 22px;
    box-sizing: border-box;
    position: relative;
}
.plus-qq-close {
    position: absolute; right: 12px; top: 12px;
    width: 30px; height: 30px; border: 0; border-radius: 9px;
    background: rgba(255, 255, 255, .06); color: #cbd5e1; cursor: pointer; font-size: 17px;
}
.plus-qq-modal h3 { margin: 0 0 5px; font-size: 17px; color: #fff; }
.plus-qq-sub { margin: 0 0 16px; font-size: 12px; color: var(--plus-muted); line-height: 1.6; }
.plus-qq-box {
    display: grid; place-items: center;
    min-height: 190px; padding: 12px;
    border: 1px dashed rgba(148, 163, 184, .22);
    border-radius: 14px; background: rgba(255, 255, 255, .75);
}
.plus-qq-box img, .plus-qq-box canvas { display: block; max-width: 190px; height: auto; }
.plus-qq-loading { color: #334155; font-size: 12px; }
.plus-qq-info { margin-top: 14px; font-size: 12px; line-height: 1.8; color: #b6c2df; }
.plus-qq-info b { color: #fff; }
.plus-qq-token {
    display: flex; align-items: center; gap: 8px;
    margin-top: 8px; padding: 8px 10px;
    border-radius: 9px; background: #0b1022; border: 1px solid rgba(148, 163, 184, .15);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; color: #c4b5fd;
    word-break: break-all;
}
.plus-qq-copy {
    flex: 0 0 auto; border: 0; border-radius: 7px; padding: 5px 8px;
    background: rgba(139, 92, 246, .2); color: #ddd6fe; cursor: pointer; font-size: 11px;
}
.plus-qq-status { margin-top: 12px; font-size: 12px; text-align: center; color: #a5b4fc; }
.plus-qq-status.ok { color: #34d399; }
.plus-qq-status.err { color: #fb7185; }
.plus-qq-actions { display: flex; gap: 8px; margin-top: 14px; }
.plus-qq-actions a, .plus-qq-actions button {
    flex: 1; text-align: center; padding: 9px 10px; border-radius: 9px;
    border: 1px solid rgba(148, 163, 184, .18); background: rgba(255, 255, 255, .04);
    color: #cbd5e1; text-decoration: none; font-size: 12px; cursor: pointer;
}
.plus-qq-actions a:hover, .plus-qq-actions button:hover { background: rgba(139, 92, 246, .15); color: #fff; }

/* ============ 注册页 QQ 按钮 ============ */
.plus-qq-register-wrap { margin: 18px 0 4px; }
.plus-qq-register-wrap .plus-divider {
    display: flex; align-items: center; gap: 10px;
    color: #9aa6c2; font-size: 11px; margin-bottom: 12px;
}
.plus-qq-register-wrap .plus-divider::before,
.plus-qq-register-wrap .plus-divider::after {
    content: ""; flex: 1; height: 1px; background: rgba(148, 163, 184, .2);
}
.plus-qq-register {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 14px; border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, .35);
    background: linear-gradient(135deg, rgba(14, 165, 233, .16), rgba(139, 92, 246, .14));
    color: #0ea5e9; font-weight: 700; font-size: 13px; cursor: pointer;
    transition: filter .15s ease, transform .15s ease;
}
.plus-qq-register:hover { filter: brightness(1.05); transform: translateY(-1px); }
.plus-qq-register svg { width: 17px; height: 17px; }
.plus-qq-register-note { margin: 7px 0 0; color: #8b99b8; font-size: 11px; text-align: center; }

/* ============ 社区入口 ============ */
.plus-forum-pill {
    position: fixed; top: 14px; right: 16px; z-index: 99970;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 13px; border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, .35);
    background: rgba(15, 20, 40, .82);
    color: #d8ccff; text-decoration: none;
    font: 600 12px/1 system-ui, -apple-system, "Microsoft YaHei", sans-serif;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(2, 6, 23, .3);
}
.plus-forum-pill:hover { background: rgba(139, 92, 246, .2); color: #fff; }
.plus-forum-pill svg { width: 14px; height: 14px; }
.navbar-nav .plus-nav-forum a { position: relative; }

/* ============ 黑名单提示 ============ */
#plus-blacklist-banner {
    position: fixed; left: 0; right: 0; top: 0; z-index: 99960;
    padding: 8px 14px; text-align: center;
    background: linear-gradient(90deg, rgba(190, 24, 93, .96), rgba(124, 58, 237, .96));
    color: #fff; font: 500 12px/1.5 system-ui, -apple-system, "Microsoft YaHei", sans-serif;
    cursor: pointer;
}
body.plus-has-banner { padding-top: 34px !important; }

/* ============ 管理员入口 ============ */
#plus-admin-launcher {
    position: fixed; right: 18px; bottom: 18px; z-index: 99999;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 13px; border-radius: 999px;
    color: #fff; text-decoration: none; font: 600 12px/1 system-ui, -apple-system, "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #7c3aed, #0891b2);
    box-shadow: 0 10px 26px rgba(76, 29, 149, .38);
    border: 1px solid rgba(255, 255, 255, .16);
}
#plus-admin-launcher:hover { filter: brightness(1.08); color: #fff; }

/* ============ 移动端 ============ */
@media (max-width: 720px) {
    #plus-chat-btn {
        right: 12px; bottom: 14px; height: 48px; padding: 0 16px 0 11px; font-size: 13px;
    }
    #plus-chat-panel {
        right: 0; left: 0; bottom: 0; width: 100%; height: 88vh; max-height: 88vh;
        border-radius: 20px 20px 0 0; transform: translateY(30px);
    }
    #plus-chat-panel.plus-open { transform: translateY(0); }
    #plus-chat-panel .plus-chat-head { padding-top: 18px; }
    #plus-music { left: 12px; bottom: 14px; }
    #plus-music.plus-right { left: auto; right: 12px; }
    .plus-music-panel { left: 0; bottom: 64px; width: min(288px, calc(100vw - 24px)); }
    #plus-music.plus-right .plus-music-panel { right: 0; }
    .plus-forum-pill { top: 8px; right: 8px; padding: 7px 10px; font-size: 11px; }
    .plus-qq-modal { padding: 18px; }
    #plus-admin-launcher { right: 12px; bottom: 12px; }
}

/* ============ 玻璃主题 / 横向客服窗口（后台可调） ============ */
:root {
    --plus-glass-bg: rgba(15, 23, 42, .72);
    --plus-shop-bg: rgba(255, 255, 255, .55);
    --plus-glass-blur: 16px;
    --plus-shop-blur: 16px;
    --plus-glass-border: rgba(255, 255, 255, .18);
}
#plus-chat-panel {
    width: 760px;
    height: 520px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 80px);
    background: var(--plus-glass-bg) !important;
    -webkit-backdrop-filter: blur(var(--plus-glass-blur)) saturate(160%);
    backdrop-filter: blur(var(--plus-glass-blur)) saturate(160%);
    border: 1px solid var(--plus-glass-border) !important;
    box-shadow: 0 26px 70px rgba(2, 6, 23, .42), inset 0 1px 0 rgba(255, 255, 255, .14) !important;
}
#plus-chat-panel .plus-chat-head {
    background: linear-gradient(135deg, rgba(18, 26, 52, .72), rgba(15, 23, 42, .32)) !important;
    -webkit-backdrop-filter: blur(calc(var(--plus-glass-blur) * .7));
    backdrop-filter: blur(calc(var(--plus-glass-blur) * .7));
    border-bottom: 1px solid var(--plus-glass-border) !important;
}
#plus-chat-panel .plus-chat-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    background: transparent !important;
}
.plus-chat-side {
    flex: 0 0 250px;
    width: 250px;
    padding: 16px 14px 12px;
    overflow-y: auto;
    border-right: 1px solid var(--plus-glass-border);
    background: linear-gradient(180deg, rgba(10, 16, 34, .22), rgba(10, 16, 34, .08));
    scrollbar-width: thin;
}
.plus-chat-side .plus-chat-intro { margin-top: 0; }
.plus-chat-side .plus-chat-fields { grid-template-columns: 1fr; }
.plus-chat-side-note {
    display: flex; flex-direction: column; gap: 4px;
    margin-top: 16px; padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(203, 213, 225, .55); font-size: 10px; line-height: 1.5;
}
.plus-chat-conv {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: rgba(10, 16, 34, .12);
}
.plus-chat-conv .plus-chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 16px 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, .35) transparent;
}
.plus-chat-conv .plus-chat-messages::-webkit-scrollbar { width: 5px; }
.plus-chat-conv .plus-chat-messages::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .3); border-radius: 99px; }
#plus-chat-panel .plus-chat-compose {
    flex: 0 0 auto;
    padding: 10px 14px 12px;
    border-top: 1px solid var(--plus-glass-border) !important;
    background: rgba(10, 16, 34, .16) !important;
    -webkit-backdrop-filter: blur(calc(var(--plus-glass-blur) * .5));
    backdrop-filter: blur(calc(var(--plus-glass-blur) * .5));
}
#plus-chat-panel .plus-chat-compose textarea {
    background: rgba(8, 13, 28, .38) !important;
    border-color: rgba(255, 255, 255, .16) !important;
}
#plus-chat-panel .plus-chat-fields input {
    background: rgba(8, 13, 28, .3) !important;
    border-color: rgba(255, 255, 255, .14) !important;
}
.plus-chat-resize {
    position: absolute;
    left: 9px;
    top: 9px;
    z-index: 8;
    width: 17px;
    height: 17px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 5px;
    background:
        linear-gradient(135deg, transparent 0 45%, rgba(255, 255, 255, .7) 46% 52%, transparent 53%),
        linear-gradient(135deg, transparent 0 65%, rgba(255, 255, 255, .4) 66% 72%, transparent 73%),
        rgba(15, 23, 42, .45) !important;
    cursor: nwse-resize;
    opacity: .75;
}
.plus-chat-resize:hover { opacity: 1; border-color: rgba(196, 181, 253, .8); }

#plus-music .plus-music-panel {
    background: var(--plus-glass-bg) !important;
    -webkit-backdrop-filter: blur(var(--plus-glass-blur)) saturate(160%);
    backdrop-filter: blur(var(--plus-glass-blur)) saturate(160%);
    border-color: var(--plus-glass-border) !important;
    box-shadow: 0 22px 60px rgba(2, 6, 23, .42), inset 0 1px 0 rgba(255, 255, 255, .12);
}

/* 商品/前台卡片玻璃 */
body:not(.pa-body) .content-wrapper .card,
body:not(.pa-body) .content-wrapper .card.animated {
    background: var(--plus-shop-bg) !important;
    -webkit-backdrop-filter: blur(var(--plus-shop-blur)) saturate(140%);
    backdrop-filter: blur(var(--plus-shop-blur)) saturate(140%);
    border: 1px solid rgba(255, 255, 255, .55) !important;
    border-radius: 20px !important;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .12), inset 0 1px 0 rgba(255, 255, 255, .5) !important;
}
body:not(.pa-body) .content-wrapper .card .card-header,
body:not(.pa-body) .content-wrapper .card .card-block,
body:not(.pa-body) .content-wrapper .card .commodity {
    background: transparent !important;
}
body:not(.pa-body) .content-wrapper .card .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, .38) !important;
}
body:not(.pa-body) .content-wrapper .form-control,
body:not(.pa-body) .content-wrapper .input-group-text,
body:not(.pa-body) .content-wrapper .btn-light {
    background: rgba(255, 255, 255, .48) !important;
    border-color: rgba(255, 255, 255, .62) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
body:not(.pa-body) .content-wrapper .category a,
body:not(.pa-body) .content-wrapper .product a,
body:not(.pa-body) .content-wrapper .commodity .btn {
    background: rgba(255, 255, 255, .46) !important;
    border-color: rgba(255, 255, 255, .6) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 10px !important;
}
body:not(.pa-body) .content-wrapper .sliderbar-container {
    background: var(--plus-shop-bg) !important;
    -webkit-backdrop-filter: blur(var(--plus-shop-blur)) saturate(140%);
    backdrop-filter: blur(var(--plus-shop-blur)) saturate(140%);
    border: 1px solid rgba(255, 255, 255, .5) !important;
    border-radius: 16px;
}

@media (max-width: 720px) {
    #plus-chat-panel {
        right: 0; left: 0; bottom: 0;
        width: 100% !important;
        height: 88vh !important;
        max-height: 88vh !important;
        border-radius: 20px 20px 0 0;
    }
    #plus-chat-panel .plus-chat-body { flex-direction: column; overflow-y: auto; }
    .plus-chat-side {
        flex: 0 0 auto;
        width: auto;
        max-height: 188px;
        overflow-y: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }
    .plus-chat-conv { flex: 1; min-height: 0; }
    .plus-chat-conv .plus-chat-messages { min-height: 150px; }
    .plus-chat-resize { display: none; }
}

/* 聊天文字必须横向排版，短消息不能被百分比 max-width 压成一字一行 */
.plus-chat-panel, .plus-chat-panel * { writing-mode: horizontal-tb !important; text-orientation: mixed !important; }
.plus-msg > div:not(.plus-msg-avatar) { min-width: 0; max-width: 76%; }
.plus-msg-bubble { max-width: 100% !important; word-break: normal; overflow-wrap: anywhere; white-space: normal; }

/* 悬浮客服按钮也使用玻璃边框，和背景融合 */
#plus-chat-btn {
    background: var(--plus-glass-bg) !important;
    -webkit-backdrop-filter: blur(var(--plus-glass-blur)) saturate(150%);
    backdrop-filter: blur(var(--plus-glass-blur)) saturate(150%);
    border: 1px solid var(--plus-glass-border) !important;
    box-shadow: 0 14px 34px rgba(2, 6, 23, .28), inset 0 1px 0 rgba(255, 255, 255, .12) !important;
}
#plus-chat-btn:hover { filter: brightness(1.12); }


/* 注册页返回网站 + QQ 设置密码 */
.plus-return-site-wrap { text-align: center; margin: 18px 0 4px; }
.plus-return-site {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 13px; border-radius: 999px;
    color: #64748b; text-decoration: none;
    font: 500 12px/1.4 system-ui, -apple-system, "Microsoft YaHei", sans-serif;
    border: 1px solid rgba(148, 163, 184, .22);
    background: rgba(255, 255, 255, .38);
}
.plus-return-site:hover { color: #7c3aed; border-color: rgba(124, 58, 237, .35); }
.plus-qq-pwd {
    padding: 18px 16px 14px; text-align: left;
    color: #0f172a; font: 13px/1.7 system-ui, -apple-system, "Microsoft YaHei", sans-serif;
}
.plus-qq-pwd-head { font-size: 14px; font-weight: 700; color: #1e293b; }
.plus-qq-pwd p { margin: 6px 0 12px; color: #64748b; font-size: 12px; line-height: 1.7; }
.plus-qq-pwd label { display: block; margin: 0 0 10px; color: #475569; font-size: 12px; }
.plus-qq-pwd label input[type=password] {
    display: block; width: 100%; box-sizing: border-box;
    margin-top: 5px; padding: 10px 11px;
    border: 1px solid #d8dee9; border-radius: 9px;
    background: #f8fafc; color: #0f172a; font-size: 13px; outline: none;
}
.plus-qq-pwd label input[type=password]:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139, 92, 246, .12); }
.plus-qq-pwd .plus-qq-agree {
    display: flex; align-items: flex-start; gap: 7px;
    margin: 12px 0; color: #64748b; font-size: 11px; line-height: 1.6;
}
.plus-qq-pwd .plus-qq-agree input { margin-top: 2px; accent-color: #7c3aed; }
.plus-qq-pwd-submit {
    width: 100%; padding: 11px 12px; border: 0; border-radius: 10px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: #fff; font-size: 13px; font-weight: 700; cursor: pointer;
}
.plus-qq-pwd-submit:disabled { opacity: .6; cursor: wait; }
.plus-qq-pwd-err { min-height: 18px; margin-top: 7px; color: #dc2626; font-size: 11px; }
