:where(:root) {
    --primary: #333;
    --primary-hover: #222;
    --primary-light: #fafafa;
    
    --grad: var(--gradient, linear-gradient(135deg, #333, #777));

    --bg: #f3f4f6;
    --card: #ffffff;
    --text: #1f2937;
    --text-body: #374151;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --soft: #f9fafb;

    --tip-bg: #1f2937;
    --tip-fg: #ffffff;

    /* v1.9.22 会员专属昵称色：固定金→珊瑚渐变（中性配色下 --primary 是灰的，当「彩色昵称」等于没上色）。
       模板侧同名令牌见 PureBlog/main.css §1；两边取值保持一致。 */
    --vip-grad: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --vip-fg: #d97706;

    --shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, .08));
    --radius: 10px;
    --radius-sm: 6px;
    --radius-pill: 50px;
    --transition: all .3s ease;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;

    /* 蓝/靛/紫三色为「品牌强调色」，跟随 PureBlog 主题 --primary（浅色深、深色浅，两端都保证可读） */
    --blue: var(--primary, #333);
    --green: #10b981;
    --amber: #f59e0b;
    --purple: var(--primary, #777);
    --red: #ef4444;
    --cyan: #0891b2;
    --teal: #0d9488;
    --pink: #db2777;
    --indigo: var(--primary, #444);
    --orange: #f97316;
    --glow: var(--primary-light, rgba(80,80,80,.28));
    --blue-bg: var(--primary-light, #fafafa);
    --green-bg: #ecfdf5;
    --amber-bg: #fffbeb;
    --purple-bg: var(--primary-light, #f5f5f5);
    --red-bg: #fef2f2;
    --cyan-bg: #ecfeff;
    --teal-bg: #effaf6;
    --pink-bg: #fdf2f8;
    --indigo-bg: var(--primary-light, #f4f4f5);
    --orange-bg: #fff7ed;

    --line: var(--border, #e5e7eb);
    --surface-2: var(--soft, #f9fafb);
    --surface-3: rgba(148, 163, 184, .14);
}

:where([data-theme="dark"]) {
    --primary: #444;
    --primary-hover: #333;
    --primary-light: rgba(148, 163, 184, .15);

    --bg: #0f1115;
    --card: #171a21;
    --text: #e8eaed;
    --text-body: #c9cdd4;
    --text-muted: #9aa1ac;
    --text-light: #7c838f;
    --border: #2a2f39;
    --soft: #1c2028;

    --tip-bg: #e8eaed;
    --tip-fg: #171a21;

    --vip-grad: linear-gradient(135deg, #fbbf24 0%, #fb7185 100%);
    --vip-fg: #fbbf24;

    --blue: var(--primary, #333);
    --green: #10b981;
    --amber: #f59e0b;
    --purple: var(--primary, #777);
    --red: #ef4444;
    --cyan: #22d3ee;
    --teal: #2dd4bf;
    --pink: #f472b6;
    --indigo: var(--primary, #999);
    --orange: #fb923c;
    --glow: var(--primary-light, rgba(148, 163, 184, .3));
    --blue-bg: var(--primary-light, #18181b);
    --green-bg: #052e22;
    --amber-bg: #36230a;
    --purple-bg: var(--primary-light, #1a1a1a);
    --red-bg: #3b1214;
    --cyan-bg: #0b2a33;
    --teal-bg: #0a2b27;
    --pink-bg: #341225;
    --indigo-bg: var(--primary-light, #1a1a1a);
    --orange-bg: #3a1f0b;
    --surface-3: rgba(148, 163, 184, .10);
}

.pbm-app {
    font-family: var(--font);
    color: var(--text-body);
    line-height: 1.7;
}

.pbm-body * { margin: 0; padding: 0; box-sizing: border-box; }
.pbm-app * { margin: 0; padding: 0; box-sizing: border-box; }

.pbm-body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text-body);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.pbm-app,
.pbm-body {
    /* 主题色重绑定：PureBlog 把 --primary/--gradient 写在 body.pb-tone-* 上（特异性高于 :root），
       所以必须在插件根容器这一层重新取一次，会员中心才能真正跟随后台选的配色方案 */
    --blue: var(--primary, #333);
    --indigo: var(--primary, #444);
    --purple: var(--primary, #777);
    --grad: var(--gradient, linear-gradient(135deg, #333, #777));
    --glow: var(--primary-light, rgba(80,80,80,.28));
    --blue-bg: var(--primary-light, #fafafa);
    --indigo-bg: var(--primary-light, #f4f4f5);
    --purple-bg: var(--primary-light, #f5f5f5);

    --glass-bg: var(--card);
    --glass-bg-strong: var(--card);
    --glass-brd: var(--border);
    --glass-line: transparent;
    --glass-shade: transparent;
    --glass-blur: 0px;
    --glass-sat: 100%;
    --glass-shadow: var(--shadow, 0 1px 3px rgba(0, 0, 0, .08));
    --glass-sheen: none;
    --aura: none;
}

.pbm-app::before { content: none; }

[hidden] { display: none !important; }

.pbm-top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--card);
    border-bottom: 1px solid var(--border);
}

.pbm-top-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.pbm-logo { flex: none; }

.pbm-logo a {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
}

.pbm-logo-badge {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    flex: none;
    background: var(--grad);
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pbm-logo-name { font-size: 1.02rem; font-weight: 700; color: var(--text); }

.pbm-nav-bar {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    overflow: hidden;
}

.pbm-nav-bar a {
    padding: 6px 11px;
    border-radius: 8px;
    font-size: .88rem;
    color: var(--text-body);
    text-decoration: none;
    white-space: nowrap;
}

.pbm-nav-bar a:hover { background: var(--soft); color: var(--primary); }

.pbm-top-tools { display: flex; gap: 8px; flex: none; margin-left: auto; }

.pbm-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: transparent;
    color: var(--text-body);
    cursor: pointer;
    text-decoration: none;
    transition: .18s;
}

.pbm-icon-btn:hover { border-color: var(--primary); color: var(--primary); }

.pbm-icon-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pbm-i-sun { display: none; }
[data-theme="dark"] .pbm-i-moon { display: none; }
[data-theme="dark"] .pbm-i-sun { display: block; }

.pbm-search-panel { display: none; border-top: 1px solid var(--border); }
.pbm-search-panel.is-open { display: block; }

.pbm-search-wrap { height: auto; padding-top: 12px; padding-bottom: 12px; }

.pbm-search-form { display: flex; gap: 8px; }

.pbm-search-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 12px;
    background: var(--soft);
    color: var(--text);
    font-size: .9rem;
    font-family: inherit;
    outline: none;
}

.pbm-search-form input:focus { border-color: var(--primary); }

.pbm-search-form button {
    flex: none;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    background: var(--primary);
    color: #fff;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
}

.pbm-search-form button:hover { opacity: .9; }

.pbm-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px 56px;
    flex: 1;
}

.pbm-embed {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px 56px;
}

body.pb-home-wide .pbm-container,
body.pb-home-wide .pbm-embed,
body.pb-home-wide .pbm-top-inner { max-width: 1520px; }

.pbm-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.pbm-visitor {
    padding: 56px 28px;
    text-align: center;
}

.pbm-visitor h1 {
    font-size: 1.7rem;
    color: var(--text);
}

.pbm-visitor-sub { color: var(--text-light); margin: 8px 0 24px; }

.pbm-visitor-feats {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    max-width: 640px;
    margin: 0 auto 28px;
}

.pbm-visitor-feats li {
    background: var(--soft);
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: .88rem;
    color: var(--text-body);
}

.pbm-visitor-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.pbm-head { margin-bottom: 16px; }

.pbm-id {
    display: flex;
    gap: 16px;
    padding: 22px 24px 18px;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.pbm-avatar-wrap { position: relative; flex: none; }

.pbm-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 3px solid var(--card);
    background: var(--soft);
    object-fit: cover;
    display: block;
}

/* 必须写成 .pbm-badge.pbm-badge-cert —— 与 .pbm-badge 同为 (0,1,0)，
   而 .pbm-badge 在源码里更靠后，单类名会被它的 padding:2px 10px 盖回去 */
.pbm-badge.pbm-badge-cert {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 26px;
    height: 26px;
    /* 通用 .pbm-badge 带 padding:2px 10px，必须清零，否则 26px 圆片只剩 2px 内容区把星形压成一条缝 */
    padding: 0;
    flex: none;
    border-radius: 50%;
    background: var(--primary-dark, #1e293b);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--card);
}

.pbm-badge-cert svg { width: 14px; height: 14px; fill: #fff; stroke: none; flex: none; }
/* v1.9.22：后台「认证图标」上传过就贴图（.is-img），底色退回卡片色只留一圈描边 */
.pbm-badge.pbm-badge-cert.is-img { background: var(--card); }
.pbm-badge-cert img {
    display: block; width: 100%; height: 100%;
    border-radius: 50%; object-fit: cover; flex: none;
}

.pbm-id-main { flex: 1; min-width: 220px; padding-bottom: 4px; }

.pbm-nick-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.pbm-nick-row h1 { font-size: 1.25rem; color: var(--text); }

/* v1.9.22：会员专属彩色昵称 = 金→珊瑚渐变蒙版文字。
   原来的 `color: var(--primary)` 在会员中心（独立页，没加载模板 main.css）解析成 #333，
   在模板页解析成 slate 灰 —— 两种场景看起来都像「没上色」。@supports 兜底防透明字。 */
.pbm-vip-name {
    color: var(--vip-fg, #d97706);
    font-weight: 700;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .pbm-vip-name {
        background-image: var(--vip-grad, linear-gradient(135deg, #f59e0b, #ef4444));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }
}

.pbm-id-sub { font-size: .82rem; color: var(--text-light); margin: 2px 0 6px; }

.pbm-online-row { display: flex; align-items: center; gap: 8px; }

.pbm-online-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: none;
}

.pbm-online-dot.is-online { background: var(--green); box-shadow: 0 0 0 3px var(--green-bg); }
.pbm-online-dot.is-away { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-bg); }
.pbm-online-dot.is-busy { background: var(--red); box-shadow: 0 0 0 3px var(--red-bg); }
.pbm-online-dot.is-offline { background: var(--text-light); box-shadow: 0 0 0 3px var(--soft); }

.pbm-online-select {
    border: 1px solid var(--border);
    background: var(--soft);
    color: var(--text-body);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: .82rem;
    cursor: pointer;
}

.pbm-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
    padding: 2px 10px;
    line-height: 1.6;
    white-space: nowrap;
}

.pbm-badge-level.c-blue { background: var(--blue-bg); color: var(--blue); }
.pbm-badge-level.c-cyan { background: var(--cyan-bg); color: var(--cyan); }
.pbm-badge-level.c-teal { background: var(--teal-bg); color: var(--teal); }
.pbm-badge-level.c-green { background: var(--green-bg); color: var(--green); }
.pbm-badge-level.c-indigo { background: var(--indigo-bg); color: var(--indigo); }
.pbm-badge-level.c-purple { background: var(--purple-bg); color: var(--purple); }
.pbm-badge-level.c-pink { background: var(--pink-bg); color: var(--pink); }
.pbm-badge-level.c-amber { background: var(--amber-bg); color: var(--amber); }
.pbm-badge-level.c-orange { background: var(--orange-bg); color: var(--orange); }
.pbm-badge-level.c-red { background: var(--red-bg); color: var(--red); }

.pbm-badge-vip {
    gap: 4px;
    color: #fff;
    background: var(--amber);
}

.pbm-badge-vip svg {
    width: 12px;
    height: 12px;
    flex: none;
    fill: currentColor;
}

.pbm-badge-custom {
    background: var(--purple-bg);
    color: var(--purple);
    font-size: .68rem;
    border: 1px dashed var(--purple);
}

.pbm-badge-certname {
    background: var(--orange);
    color: #fff;
    gap: 4px;
    border: none;
}

.pbm-badge-certname svg {
    width: 12px;
    height: 12px;
    fill: #fff;
    stroke: none;
    flex: none;
}

.pbm-badge-certname img {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
    margin: 0;
}

.pbm-badge-title.c-blue,   .pbm-badge-icon.c-blue   { background: var(--blue-bg);   color: var(--blue); }
.pbm-badge-title.c-cyan,   .pbm-badge-icon.c-cyan   { background: var(--cyan-bg);   color: var(--cyan); }
.pbm-badge-title.c-teal,   .pbm-badge-icon.c-teal   { background: var(--teal-bg);   color: var(--teal); }
.pbm-badge-title.c-green,  .pbm-badge-icon.c-green  { background: var(--green-bg);  color: var(--green); }
.pbm-badge-title.c-indigo, .pbm-badge-icon.c-indigo { background: var(--indigo-bg); color: var(--indigo); }
.pbm-badge-title.c-purple, .pbm-badge-icon.c-purple { background: var(--purple-bg); color: var(--purple); }
.pbm-badge-title.c-pink,   .pbm-badge-icon.c-pink   { background: var(--pink-bg);   color: var(--pink); }
.pbm-badge-title.c-amber,  .pbm-badge-icon.c-amber  { background: var(--amber-bg);  color: var(--amber); }
.pbm-badge-title.c-orange, .pbm-badge-icon.c-orange { background: var(--orange-bg); color: var(--orange); }
.pbm-badge-title.c-red,    .pbm-badge-icon.c-red    { background: var(--red-bg);    color: var(--red); }

.pbm-badge-title {
    gap: 4px;
    border: 1px solid currentColor;
    font-weight: 700;
    letter-spacing: .2px;
}

.pbm-badge-title svg { width: 12px; height: 12px; fill: currentColor; stroke: none; flex: none; }

.pbm-badge-icon {
    padding: 2px 4px;
    gap: 0;
}

.pbm-badge-icon svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }

.pbm-badge-icon img {
    height: 1.05em;
    width: auto;
    margin: 0;
    border-radius: 50%;
    vertical-align: -0.18em;
}

.pbm-badge img,
.pbm-stat-level b img {
    height: 1.35em;
    width: auto;
    border-radius: 3px;
    vertical-align: -0.22em;
    margin-right: 4px;
    flex: none;
    object-fit: contain;
}

.pbm-cert-title {
    color: #ef4444;
    font-weight: 700;
}

.pbm-title-input {
    flex: 1;
    min-width: 160px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 5px 10px;
    background: var(--card);
    color: var(--text);
    font-size: .84rem;
    font-family: inherit;
}

.pbm-title-input:focus { border-color: var(--primary); }

.pbm-shell {
    display: grid;
    grid-template-columns: 212px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.pbm-side {
    position: sticky;
    top: 88px;
    display: grid;
    gap: 12px;
}

.pbm-nav {
    display: grid;
    gap: 2px;
    padding: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.pbm-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: none;
    border-radius: calc(var(--radius) - 2px);
    background: transparent;
    color: var(--text-body);
    font-size: .9rem;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    transition: .16s;
    
    --tone: var(--primary);
    --tone-bg: var(--soft);
}

.pbm-tab svg {
    width: 17px;
    height: 17px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .8;
}

.pbm-tab.t-blue   { --tone: var(--blue);   --tone-bg: var(--blue-bg); }
.pbm-tab.t-green  { --tone: var(--green);  --tone-bg: var(--green-bg); }
.pbm-tab.t-amber  { --tone: var(--amber);  --tone-bg: var(--amber-bg); }
.pbm-tab.t-purple { --tone: var(--purple); --tone-bg: var(--purple-bg); }
.pbm-tab.t-red    { --tone: var(--red);    --tone-bg: var(--red-bg); }
.pbm-tab.t-cyan   { --tone: var(--cyan);   --tone-bg: var(--cyan-bg); }
.pbm-tab.t-teal   { --tone: var(--teal);   --tone-bg: var(--teal-bg); }
.pbm-tab.t-pink   { --tone: var(--pink);   --tone-bg: var(--pink-bg); }
.pbm-tab.t-indigo { --tone: var(--indigo); --tone-bg: var(--indigo-bg); }
.pbm-tab.t-orange { --tone: var(--orange); --tone-bg: var(--orange-bg); }

.pbm-tab:hover { background: #f3f4f6; color: #1f2937; }
.pbm-tab:hover svg { opacity: 1; }

.pbm-tab.is-active {
    background: #333;
    color: #fff;
    font-weight: 600;
}

html[data-theme="dark"] .pbm-tab:hover { background: #2a2f39; color: #e8eaed; }
html[data-theme="dark"] .pbm-tab.is-active { background: #444; color: #fff; }

.pbm-tab.is-active svg { opacity: 1; }

.pbm-tab-dot {
    margin-left: auto;
    display: inline-block;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: .68rem;
    font-style: normal;
    text-align: center;
    padding: 0 4px;
}

.pbm-side-home {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: .84rem;
    text-decoration: none;
    transition: .16s;
}

.pbm-side-home svg {
    width: 16px;
    height: 16px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pbm-side-home:hover { border-color: var(--primary); color: var(--primary); }

.pbm-content { min-width: 0; }

.pbm-panel { display: none; }
.pbm-panel.is-active { display: block; }

/* v1.16.0 面板切换过渡：原来是 display:none -> block 硬切，观感很跳。
   现在新面板淡入 + 上浮 10px，子块按 --pbm-fx-stagger 依次入场。
   用 animation 而不是 transition —— 连点 tab 时 animation 重播从头开始，
   不会像 transition-delay 那样把延迟叠加起来导致「越点越慢」。 */
/* 面板整体兜底淡入：即使某个面板的顶层既不是 .pbm-block 也不是下面列的结构
   （如 panel-stats 用 .pbm-grid、panel-sign 用 .pbm-sign-card），也一定有过渡。 */
/* v1.16.1：面板兜底淡入不能带 fill-mode（both / forwards）——
   带 fill 的 opacity 动画结束后填充仍持续生效，按规范会让面板永久持有
   层叠上下文；面板里若出现 position:fixed 弹层（历史教训：#pbmCardModal），
   z-index 会被困在面板内，被页脚等靠后定位内容盖住。
   本动画无 delay 且 to 态等于自然态，去掉 fill 观感完全一致。 */
.pbm-panel.is-active {
    animation: pbmPaneFade var(--pbm-fx-enter) var(--pbm-ease-out);
}
@keyframes pbmPaneFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* 顶层块错峰上浮。除 .pbm-block 外，把 .pbm-grid / .pbm-sign-card / .pbm-tip
   也纳进来，保证 stats 与 sign 这两个「没有 pbm-block」的面板同样有节奏。 */
.pbm-panel.is-active > .pbm-block,
.pbm-panel.is-active > .pbm-grid,
.pbm-panel.is-active > .pbm-sign-card {
    animation: pbmPaneIn var(--pbm-fx-enter) var(--pbm-ease-out) both;
}
.pbm-panel.is-active > .pbm-block:nth-child(1) { animation-delay: 0ms; }
.pbm-panel.is-active > .pbm-block:nth-child(2) { animation-delay: var(--pbm-fx-stagger); }
.pbm-panel.is-active > .pbm-block:nth-child(3) { animation-delay: calc(var(--pbm-fx-stagger) * 2); }
.pbm-panel.is-active > .pbm-block:nth-child(4) { animation-delay: calc(var(--pbm-fx-stagger) * 3); }
.pbm-panel.is-active > .pbm-block:nth-child(5) { animation-delay: calc(var(--pbm-fx-stagger) * 4); }
.pbm-panel.is-active > .pbm-block:nth-child(n+6) { animation-delay: calc(var(--pbm-fx-stagger) * 5); }

@keyframes pbmPaneIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

/* 离场：旧面板快速淡出下沉，但 display 立刻变 none 会把动画吃掉，
   所以 JS 侧只对「正被切走」的面板挂 is-leaving + 保留 block 一小会儿。 */
.pbm-panel.is-leaving {
    display: block;
    animation: pbmPaneOut .18s ease-in both;
    pointer-events: none;
}
@keyframes pbmPaneOut {
    from { opacity: 1; transform: none; }
    to   { opacity: 0; transform: translateY(-6px); }
}

/* v1.16.0 动效令牌：所有入场/高光时长集中在这两个变量里，现场觉得快慢不合适改一处即可，不散落在各条规则。
   走 :where(:root) 保持与文件顶部令牌同源（特异性 0，可被主题覆盖）。 */
:where(:root) {
    --pbm-fx-enter: .6s;
    --pbm-fx-highlight: .8s;
    --pbm-fx-stagger: 60ms;
    --pbm-ease-out: cubic-bezier(.22, .61, .36, 1);
    --pbm-ease-back: cubic-bezier(.34, 1.42, .52, 1);
}

.pbm-dash-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 22px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.pbm-dash-head > * { position: relative; z-index: 1; }

.pbm-dash-date {
    display: inline-block;
    font-size: .74rem;
    letter-spacing: .12em;
    color: var(--text-light);
}

.pbm-dash-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.01em;
    margin: 3px 0 4px;
}

.pbm-dash-sub { font-size: .85rem; color: var(--text-light); }
.pbm-dash-sub b { color: var(--text); font-variant-numeric: tabular-nums; }

.pbm-dash-head-ops { flex: none; }

.pbm-dash-ok {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--green);
    background: var(--green-bg);
}

.pbm-dash-ok svg {
    width: 15px;
    height: 15px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pbm-dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 0;
}

.pbm-metric {
    --tone: var(--blue);
    --tone-bg: var(--blue-bg);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 15px 16px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.pbm-metric > * { position: relative; z-index: 1; }

.pbm-metric:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, .1));
}

/* v1.16.0 数据卡入场：图标先点亮（描边转实心那一下），数字随后滚动。
   is-counted 由 member.js 用 IntersectionObserver 挂上，只挂一次。 */
.pbm-metric .pbm-metric-icon {
    transition: transform .35s var(--pbm-ease-back, cubic-bezier(.34, 1.42, .52, 1)),
                background .35s var(--pbm-ease-out, ease);
}
.pbm-metric.is-counted .pbm-metric-icon {
    animation: pbmMetricPop var(--pbm-fx-enter) var(--pbm-ease-back, cubic-bezier(.34, 1.42, .52, 1)) both;
}
@keyframes pbmMetricPop {
    0%   { transform: scale(1) rotate(0deg); }
    45%  { transform: scale(1.18) rotate(-10deg); }
    100% { transform: scale(1) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
    .pbm-metric.is-counted .pbm-metric-icon { animation: none !important; }
    .pbm-shop-card .pbm-shop-ico,
    .pbm-shop-card:hover .pbm-shop-ico { transition: none; transform: none; }
}

.pbm-metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 11px;
    color: var(--tone);
    background: var(--tone-bg);
}

.pbm-metric-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pbm-metric-val {
    font-size: 1.72rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    word-break: break-word;
}

.pbm-metric-val em {
    font-size: .5em;
    font-style: normal;
    font-weight: 600;
    color: var(--text-light);
    margin-left: 2px;
    letter-spacing: 0;
}

.pbm-metric-label { font-size: .84rem; font-weight: 600; color: var(--text-body); }

.pbm-metric-sub { font-size: .76rem; color: var(--text-light); }

.pbm-metric-level .pbm-metric-val {
    font-size: 1.04rem;
    line-height: 1.5;
    font-variant-numeric: normal;
}

.pbm-metric-val img {
    height: 1.3em;
    width: auto;
    vertical-align: -.24em;
    margin-right: 4px;
    border-radius: 3px;
    object-fit: contain;
}

.pbm-metric-sub .pbm-bar { margin: 1px 0 5px; }

.pbm-metric.t-blue { --tone: var(--blue); --tone-bg: var(--blue-bg); }
.pbm-metric.t-green { --tone: var(--green); --tone-bg: var(--green-bg); }
.pbm-metric.t-amber { --tone: var(--amber); --tone-bg: var(--amber-bg); }
.pbm-metric.t-purple { --tone: var(--purple); --tone-bg: var(--purple-bg); }
.pbm-metric.t-red { --tone: var(--red); --tone-bg: var(--red-bg); }
.pbm-metric.t-cyan { --tone: var(--cyan); --tone-bg: var(--cyan-bg); }
.pbm-metric.t-teal { --tone: var(--teal); --tone-bg: var(--teal-bg); }
.pbm-metric.t-pink { --tone: var(--pink); --tone-bg: var(--pink-bg); }

.pbm-metric.t-indigo { --tone: var(--indigo); --tone-bg: var(--indigo-bg); }
.pbm-metric.t-orange { --tone: var(--orange); --tone-bg: var(--orange-bg); }

.pbm-dash-ops {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 13px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.pbm-dash-ops-label { font-size: .8rem; font-weight: 600; color: var(--text-light); }
.pbm-dash-ops .pbm-quick { display: flex; flex-wrap: wrap; gap: 8px; }

.pbm-dash-vip { margin-top: 8px; }

.pbm-vip-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .78rem;
    color: var(--text-light);
    background: var(--soft);
    border: 1px dashed var(--border);
}

.pbm-vip-chip a { color: var(--primary); font-weight: 600; text-decoration: none; }
.pbm-vip-chip a:hover { text-decoration: underline; }

.pbm-vip-chip.is-on {
    color: #fff;
    background: var(--amber);
    border-style: solid;
    border-color: transparent;
    font-weight: 600;
}

.pbm-vip-chip.is-on svg { width: 13px; height: 13px; fill: currentColor; }
.pbm-vip-chip.is-off { color: var(--red); background: var(--red-bg); border-color: rgba(239, 68, 68, .35); }

.pbm-vip-exp-icon { width: 16px; height: 16px; vertical-align: middle; margin: -2px 0; border-radius: 3px; object-fit: contain; }

.pbm-grid { display: grid; gap: 12px; margin-bottom: 16px; }
.pbm-grid-4 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.pbm-grid-2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.pbm-stat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 16px;
    box-shadow: var(--shadow);
}

.pbm-stat b { display: block; font-size: 1.5rem; color: var(--text); font-variant-numeric: tabular-nums; }
.pbm-stat span { font-size: .8rem; color: var(--text-light); display: block; margin-top: 2px; }
.pbm-stat b.c-blue { color: var(--blue); }
.pbm-stat b.c-green { color: var(--green); }
.pbm-stat b.c-amber { color: var(--amber); }
.pbm-stat b.c-purple { color: var(--purple); }
.pbm-stat b.c-red { color: var(--red); }

.pbm-stat-level b { font-size: 1.08rem; line-height: 1.5; }

.pbm-bar {
    display: block;
    height: 6px;
    background: var(--soft);
    border-radius: 999px;
    overflow: hidden;
    margin: 6px 0 4px;
}

.pbm-bar i {
    display: block;
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-pill);
    transition: width .4s;
}

.pbm-block {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 20px;
    margin-bottom: 16px;
}

.pbm-block h3 {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pbm-block h3::before {
    content: "";
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: var(--grad);
}

.pbm-block h4 { font-size: .9rem; color: var(--text); margin-bottom: 8px; }

.pbm-count { font-size: .78rem; color: var(--text-light); font-weight: 400; }

.pbm-tip { font-size: .8rem; color: var(--text-light); margin-top: 10px; }

.pbm-wallet {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.pbm-wallet-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.pbm-wallet-icon svg { width: 24px; height: 24px; fill: none; stroke-width: 1.6; stroke: currentColor; }
.pbm-wallet-icon.c-blue { background: var(--blue-bg); color: var(--blue); }
.pbm-wallet-icon.c-amber { background: var(--amber-bg); color: var(--amber); }

.pbm-wallet b { display: block; font-size: 1.6rem; color: var(--text); font-variant-numeric: tabular-nums; }
.pbm-wallet span { font-size: .82rem; color: var(--text-light); }

.pbm-levels { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }

.pbm-levels li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px dashed transparent;
}

.pbm-levels li.is-current {
    border-color: var(--primary);
    background: var(--primary-light);
}

.pbm-level-min { font-size: .8rem; color: var(--text-light); }

@media (max-width: 640px) {
    .pbm-levels { grid-template-columns: minmax(0, 1fr); }
}

.pbm-dash-recs { margin-bottom: 0; }
.pbm-stat.is-link {
    width: 100%;
    appearance: none;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, transform .15s ease;
}
.pbm-stat.is-link:hover { border-color: var(--primary); transform: translateY(-1px); }
.pbm-stat.is-link:hover b { color: var(--primary); }
.pbm-stat-more { display: block; font-style: normal; font-size: .76rem; color: var(--text-light); margin-top: 8px; }

.pbm-rec-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, .55);
}
.pbm-rec-modal[hidden] { display: none; }
.pbm-rec-box {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: min(76vh, 640px);
    overflow: hidden;
    padding: 22px 20px 18px;
    border-radius: var(--radius);
    background: #fff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-lg, 0 10px 25px rgba(0, 0, 0, .18));
    text-align: left;
    animation: pbmQrIn .22s ease-out;
}
@media (prefers-reduced-motion: reduce) {
    .pbm-rec-box { animation: none; }
}
.pbm-rec-box h4 { margin: 0 0 12px; font-size: 1.02rem; color: #18181b; }
html[data-theme="dark"] .pbm-rec-box {
    background: #171a21;
    color: #f3f4f6;
    border-color: #2a2f39;
}
html[data-theme="dark"] .pbm-rec-box h4 { color: #f9fafb; }
.pbm-rec-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}
.pbm-rec-close:hover { background: var(--soft); color: var(--text); }

.pbm-card-info b { display: block; font-size: 1.06rem; color: var(--primary); margin: 4px 0 10px; }
.pbm-card-info p { margin: 0; font-size: .88rem; line-height: 1.75; color: var(--text-body); }
html[data-theme="dark"] .pbm-card-info b { color: #d1d5db; }
html[data-theme="dark"] .pbm-card-info p { color: #e5e7eb; }

button.pbm-metric {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    color: inherit;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.pbm-stat { position: relative; }
.pbm-stat-icon {
    position: absolute;
    top: 16px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--soft);
    color: var(--primary);
}
.pbm-stat-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pbm-redeem { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); }
.pbm-redeem-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pbm-redeem-head b { font-size: .95rem; }
.pbm-redeem-head span { font-size: .78rem; color: var(--text-light); }

.pbm-list { list-style: none; display: grid; gap: 8px; }

.pbm-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--soft);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: .15s;
}

.pbm-list li:hover { border-color: var(--border); }

.pbm-list li.pbm-empty {
    color: var(--text-light);
    font-size: .86rem;
    justify-content: center;
}

.pbm-list-h li { justify-content: space-between; }

.pbm-list-main { flex: 1; min-width: 0; }
.pbm-list-main a { color: var(--text-body); text-decoration: none; font-weight: 600; word-break: break-all; }
.pbm-list-main a:hover { color: var(--primary); }
.pbm-list-main small { display: block; color: var(--text-light); font-size: .78rem; }

.pbm-list-ops { flex: none; }

.pbm-search { display: flex; gap: 8px; margin-bottom: 12px; }

.pbm-search input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    background: var(--soft);
    color: var(--text);
    font-size: .9rem;
    outline: none;
}

.pbm-search input:focus { border-color: var(--primary); }

.pbm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-body);
    border-radius: var(--radius);
    padding: 7px 18px;
    font-size: .88rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    line-height: 1.5;
}

.pbm-btn:hover { border-color: var(--primary); color: var(--primary); }
.pbm-btn:disabled { opacity: .55; cursor: not-allowed; }

.pbm-btn-primary {
    background: var(--primary);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

.pbm-btn-primary:hover {
    background: var(--primary-hover, #222);
    border-color: transparent;
    color: #fff;
}

.pbm-btn-ghost { background: transparent; }
.pbm-btn-sm { padding: 4px 14px; font-size: .8rem; }
.pbm-btn-lg { padding: 11px 44px; font-size: 1rem; }

.pbm-btn-pass { border-color: var(--green); color: var(--green); }
.pbm-btn-reject { border-color: var(--red); color: var(--red); }

.pbm-quick { display: flex; gap: 10px; flex-wrap: wrap; }

.pbm-form label { display: block; font-size: .84rem; color: var(--text-light); margin: 12px 0 6px; }

.pbm-form input[type="text"],
.pbm-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 12px;
    background: var(--soft);
    color: var(--text);
    font-size: .9rem;
    font-family: inherit;
    outline: none;
    resize: vertical;
}

.pbm-form input:focus, .pbm-form textarea:focus { border-color: var(--primary); }

.pbm-form .pbm-btn { margin-top: 14px; }

.pbm-switch-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    font-size: .9rem;
    color: var(--text-body);
    cursor: pointer;
}

.pbm-switch-row input { width: 16px; height: 16px; accent-color: var(--primary); }

.pbm-sign-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 16px;
}

.pbm-sign-main {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    text-align: center;
}

.pbm-sign-main h3 { justify-content: center; }
.pbm-sign-main h3::before { display: none; }
.pbm-sign-main p { color: var(--text-light); font-size: .9rem; margin: 10px 0 18px; }
.pbm-sign-main p b { color: var(--text); font-variant-numeric: tabular-nums; }

.pbm-sign-days {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 20px;
}

.pbm-sign-days ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 6px;
    max-height: 220px;
    overflow: auto;
}

.pbm-sign-days li {
    text-align: center;
    font-size: .78rem;
    color: var(--text-body);
    background: var(--green-bg);
    border-radius: 6px;
    padding: 4px 0;
}

.pbm-sign-days li.pbm-empty { background: var(--soft); color: var(--text-light); grid-column: 1 / -1; padding: 12px; }

.pbm-cert-state {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--soft);
    border: 1px dashed var(--border);
    flex-wrap: wrap;
}

.pbm-cert-state b { color: var(--text); }
.pbm-cert-state p { font-size: .86rem; color: var(--text-light); flex: 1; min-width: 200px; }

.pbm-cert-state.is-approved { background: var(--green-bg); border-color: var(--green); }
.pbm-cert-state.is-approved b { color: var(--green); }
.pbm-cert-state.is-pending { background: var(--blue-bg); border-color: var(--blue); }
.pbm-cert-state.is-pending b { color: var(--blue); }
.pbm-cert-state.is-rejected { background: var(--red-bg); border-color: var(--red); }
.pbm-cert-state.is-rejected b { color: var(--red); }

.pbm-cert-msg {
    font-size: .86rem;
    color: var(--text-body);
    background: var(--soft);
    border-radius: 6px;
    padding: 6px 10px;
    margin-top: 6px;
    word-break: break-all;
}

.pbm-admin { border-color: var(--purple); }

.pbm-cert-list { list-style: none; display: grid; gap: 10px; }

.pbm-cert-list li {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    background: var(--soft);
}

.pbm-cert-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pbm-cert-row-head b { color: var(--text); }
.pbm-cert-row-head span { font-size: .78rem; color: var(--text-light); }

.pbm-cert-ops { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.pbm-reply-input {
    flex: 1;
    min-width: 180px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 5px 10px;
    background: var(--card);
    color: var(--text);
    font-size: .84rem;
    outline: none;
}

.pbm-reply-input:focus { border-color: var(--primary); }

.pbm-upload {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.pbm-upload-preview {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--card, #fff);
    box-shadow: 0 0 0 1px var(--border), 0 2px 8px rgba(0, 0, 0, .06);
    background: var(--soft);
    flex: none;
}

.pbm-upload-side b { display: block; font-size: .92rem; margin-bottom: 4px; }
.pbm-upload-side p { font-size: .8rem; color: var(--text-light); margin: 0 0 10px; max-width: 420px; }
.pbm-upload-ops { display: flex; gap: 8px; flex-wrap: wrap; }

.pbm-pager { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }

.pbm-pager button {
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-body);
    border-radius: 8px;
    padding: 5px 14px;
    font-size: .84rem;
    cursor: pointer;
}

.pbm-pager button:disabled { opacity: .45; cursor: not-allowed; }

/* v1.16.0：Toast 从「单例胶囊」升级为「可堆叠 + 带语气 + 带倒计时」。
   旧的 #pbmToast 元素仍然可用（向后兼容），但改由 #pbmToastHost 统一管理：
   多条提示纵向堆叠，各自独立计时，互不打断。 */
#pbmToastHost {
    position: fixed;
    left: 50%;
    top: calc(var(--header-height, 64px) + 14px);
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 86vw;
    pointer-events: none;
}

.pbm-toast {
    position: relative;
    /* 兜底：脚本未初始化时 #pbmToast 仍是 fixed 定位（沿用旧行为） */
    background: var(--tip-bg, #1f2937);
    color: var(--tip-fg, #ffffff);
    border-radius: var(--radius-pill, 999px);
    padding: 10px 24px;
    font-size: .88rem;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
    box-shadow: var(--shadow-lg, 0 10px 25px rgba(0, 0, 0, .1));
    max-width: 86vw;
    pointer-events: none;
    overflow: hidden;
}
#pbmToastHost .pbm-toast {
    position: static;
    transform: none;
    min-width: 160px;
}

/* —— 语气：成功 / 失败 / 中性 ——
   颜色只用色相区分，深色底一律保留，保证白字在任何皮肤下都可读 */
.pbm-toast.is-ok  { background: var(--green, #10b981); }
.pbm-toast.is-err { background: var(--red, #ef4444); }
.pbm-toast.is-info { background: var(--tip-bg, #1f2937); }

/* —— 倒计时进度条：宽度 100% -> 0，时长由 JS 写成 --pbm-toast-dur —— */
.pbm-toast::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: rgba(255, 255, 255, .55);
    transform-origin: left center;
    animation: pbmToastBar var(--pbm-toast-dur, 2.2s) linear both;
}
@keyframes pbmToastBar {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

/* —— 堆叠条目的入场 / 离场 —— */
/* 容器内的条目不能复用 pbmToastIn：那条动画用 translate 做位移，
   而父级 transform 会连带平移子元素，底部进度条会跟着飘。
   这里用独立的 is-in / is-out 控制，并显式关掉老动画。 */
#pbmToastHost .pbm-toast:not([hidden]) { animation: none; }
#pbmToastHost .pbm-toast.is-in {
    animation: pbmToastStackIn .24s var(--pbm-ease-out, ease-out) both;
}
@keyframes pbmToastStackIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* —— 离场：向上淡出（JS 挂 is-out，动画结束后才真正移除节点） —— */
.pbm-toast.is-out {
    animation: pbmToastOut .22s ease-in both;
}
@keyframes pbmToastOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-8px); }
}

@keyframes pbmToastIn {
    from { opacity: 0; transform: translate(-50%, -8px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}
.pbm-toast:not([hidden]) {
    animation: pbmToastIn .22s ease-out both;
}
@media (prefers-reduced-motion: reduce) {
    .pbm-toast:not([hidden]) { animation: none; }
    /* v1.16.0：进度条与离场动画也停掉，但保留进度条的存在（静态满宽）
       以免读者完全看不到「这条提示有停留时长」 */
    .pbm-toast::after { animation: none; }
    .pbm-toast.is-out { animation: none; opacity: 0; }
    #pbmToastHost .pbm-toast.is-in { animation: none; }
}

/* v1.16.0：读者系统开了「减弱动态效果」时，本轮所有新动效一律退化成瞬时切换，
   只保留可读性所需的显隐，不做位移与缩放。
   ⚠️ 必须把**每一个**挂了 animation 的面板选择器都列全：
      .pbm-panel.is-active       → pbmPaneFade（整面板兜底，panel-stats / panel-sign 用）
      .pbm-panel.is-active > .pbm-block / .pbm-grid / .pbm-sign-card
                                 → pbmPaneIn（顶层块错峰上浮）
      漏掉前者会让没有 .pbm-block 的两个面板照样播淡入（已踩过）。 */
@media (prefers-reduced-motion: reduce) {
    .pbm-panel.is-active,
    .pbm-panel.is-active > .pbm-block,
    .pbm-panel.is-active > .pbm-grid,
    .pbm-panel.is-active > .pbm-sign-card,
    .pbm-panel.is-leaving { animation: none !important; }
    .pbm-panel.is-leaving { display: none !important; }
}

.pbm-footer {
    text-align: center;
    color: var(--text-light);
    font-size: .8rem;
    padding: 20px 16px 28px;
    border-top: 1px solid var(--border);
    background: var(--card);
}

.pbm-vip-card,
.pbm-vip-plan {
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.pbm-btn-ghost { background: transparent; }

.pbm-vip-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 22px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    background: var(--amber-bg);
}

.pbm-vip-card.is-on { box-shadow: var(--shadow), 0 0 0 3px rgba(245, 158, 11, .18); }

.pbm-vip-card-main { display: flex; align-items: center; gap: 14px; }

.pbm-vip-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--amber);
}

.pbm-vip-card-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pbm-vip-card h3 { font-size: 1.06rem; color: var(--text); margin-bottom: 3px; }
.pbm-vip-card p { font-size: .84rem; color: var(--text-light); }
.pbm-vip-card p b { color: var(--text); font-variant-numeric: tabular-nums; }

.pbm-vip-balance { font-size: .82rem; color: var(--text-light); }
.pbm-vip-balance b { color: var(--amber); font-size: 1.1rem; font-variant-numeric: tabular-nums; }

.pbm-vip-plans {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.pbm-vip-plan {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 16px;
    border-radius: var(--radius);
}

.pbm-vip-plan.is-current { box-shadow: var(--shadow), 0 0 0 3px rgba(245, 158, 11, .18); }

.pbm-vip-plan header { display: flex; align-items: center; gap: 8px; }
.pbm-vip-plan header b { font-size: 1rem; color: var(--text); }

.pbm-vip-flag {
    font-size: .7rem;
    font-weight: 600;
    color: #fff;
    background: var(--amber);
    border-radius: var(--radius-pill);
    padding: 1px 9px;
}

.pbm-vip-price {
    font-size: 1.34rem;
    font-weight: 700;
    color: var(--amber);
    font-variant-numeric: tabular-nums;
}

.pbm-vip-price em { font-size: .52em; font-style: normal; font-weight: 500; color: var(--text-light); }

.pbm-vip-desc { font-size: .8rem; color: var(--text-light); line-height: 1.7; }

.pbm-vip-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.pbm-vip-acts .pbm-btn { flex: 1 1 116px; margin-top: 0; }

.pbm-vip-or { font-size: .5em; font-style: normal; font-weight: 500; color: var(--text-light); margin: 0 5px; }
.pbm-vip-cash { font-size: .8em; font-weight: 800; color: var(--primary); }

.pbm-vip-plan { position: relative; }
.pbm-vip-plan::before {
    content: "";
    position: absolute; left: 0; right: 0; top: 0; height: 3px;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--pbm-vip-c, var(--primary));
    opacity: .85;
}
.pbm-vip-t2::before { height: 4px; opacity: 1; }
.pbm-vip-plan header b { color: var(--pbm-vip-c, var(--text)); }
.pbm-vip-plan .pbm-vip-price { color: var(--pbm-vip-c, var(--amber)); }
.pbm-vip-plan .pbm-vip-cash { font-size: 1em; color: var(--pbm-vip-c, var(--primary)); }

.pbm-vip-plan-icon {
    width: 28px; height: 28px; border-radius: 8px; flex: none;
    object-fit: contain; display: inline-block; vertical-align: middle;
}

.pbm-vip-intro {
    font-size: .78rem; color: var(--text-light); line-height: 1.55;
    margin: -2px 0 4px; padding-left: 2px;
}

.pbm-vip-benefits { list-style: none; display: grid; gap: 5px; margin: 2px 0 4px; }
.pbm-vip-benefits li {
    position: relative; padding-left: 15px;
    font-size: .82rem; color: var(--text-light); line-height: 1.65;
}
.pbm-vip-benefits li::before {
    content: "";
    position: absolute; left: 0; top: 8px;
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--pbm-vip-c, var(--primary));
}

.pbm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.pbm-form-row > div { min-width: 0; }
.pbm-form select,
.pbm-form input[type="date"],
.pbm-form input[type="email"] {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--line, var(--border));
    border-radius: var(--radius-sm, 8px);
    background: var(--card);
    color: var(--text);
    font-size: .9rem;
    font-family: inherit;
}
.pbm-form select:focus,
.pbm-form input[type="date"]:focus,
.pbm-form input[type="email"]:focus {
    border-color: var(--primary);
    outline: none;
}
@media (max-width: 640px) { .pbm-form-row { grid-template-columns: 1fr; } }

.pbm-footer-copy { font-size: .8rem; color: var(--text-light); }

@media (max-width: 900px) {
    .pbm-shell { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .pbm-side { position: static; }
    .pbm-nav {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        padding: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .pbm-tab { width: auto; flex: none; padding: 7px 13px; border-radius: 999px; }
    .pbm-tab svg { width: 15px; height: 15px; }
    .pbm-tab-dot { margin-left: 2px; }
    .pbm-side-home { justify-content: center; }
}

@media (max-width: 768px) {
    .pbm-nav-bar { display: none; }
    .pbm-top-inner { height: 56px; gap: 10px; }
    .pbm-sign-card { grid-template-columns: 1fr; }
    .pbm-id { padding: 16px; }
    .pbm-avatar { width: 68px; height: 68px; }
    .pbm-visitor { padding: 40px 20px; }
    .pbm-dash-head { padding: 15px 16px; }
    .pbm-metric { padding: 13px 13px 12px; }
    .pbm-metric-icon { width: 32px; height: 32px; border-radius: 9px; margin-bottom: 9px; }
    .pbm-metric-icon svg { width: 17px; height: 17px; }
    .pbm-metric-val { font-size: 1.46rem; }
    .pbm-dash-ops { padding: 12px 14px; }
}

.pbm-pay-channels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.pbm-pay-ch {
    appearance: none;
    border: 1px solid var(--line);
    background: var(--surface-2, #f9fafb);
    color: var(--text-body);
    font-size: .86rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition);
}

.pbm-pay-ch:hover { border-color: var(--primary); color: var(--primary); }

.pbm-pay-ch.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pbm-plans {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 12px;
}

.pbm-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 14px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2, #f9fafb);
    text-align: center;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.pbm-plan:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, .1));
}

.pbm-plan-tag {
    position: absolute;
    top: -9px;
    right: 10px;
    font-style: normal;
    font-size: .68rem;
    font-weight: 700;
    color: #fff;
    background: var(--amber);
    padding: 2px 9px;
    border-radius: var(--radius-pill);
}

.pbm-plan-coins {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--amber);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.pbm-plan-coins small { font-size: .72rem; font-weight: 600; margin-left: 3px; }

.pbm-plan-price { font-size: .92rem; font-weight: 700; color: var(--text); }

.pbm-plan-bonus { font-size: .74rem; color: var(--green); }

.pbm-plan .pbm-btn { margin-top: 6px; width: 100%; }

.pbm-custom {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--surface-2, #f9fafb);
}

.pbm-custom-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pbm-custom-head b { font-size: .95rem; color: var(--text); }
.pbm-custom-head span { font-size: .76rem; color: var(--text-light); }

.pbm-custom-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.pbm-custom-input {
    display: flex; align-items: center; gap: 6px;
    flex: 1 1 190px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: var(--radius-sm, 6px);
    background: var(--card);
    transition: var(--transition);
}
.pbm-custom-input:focus-within { border-color: var(--primary); }

.pbm-custom-input input {
    flex: 1; min-width: 0;
    padding: 10px 0; border: 0; background: transparent;
    font-size: 1rem; font-weight: 700; color: var(--text);
    font-variant-numeric: tabular-nums; outline: none;
}
.pbm-custom-input span { font-size: .82rem; color: var(--text-light); }

.pbm-custom-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.pbm-custom-quick button {
    padding: 6px 12px;
    border: 1px solid var(--line); border-radius: var(--radius-pill);
    background: transparent; cursor: pointer;
    font-size: .8rem; font-weight: 600; color: var(--text);
    font-variant-numeric: tabular-nums;
    transition: var(--transition);
}
.pbm-custom-quick button:hover { border-color: var(--primary); color: var(--primary); }

.pbm-custom-sum { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pbm-custom-sum-label { font-size: .82rem; color: var(--text-light); }
.pbm-custom-sum b { font-size: 1.3rem; font-weight: 800; color: var(--amber); font-variant-numeric: tabular-nums; }
.pbm-custom-hint { font-size: .76rem; color: var(--text-light); }
.pbm-custom-hint.is-bad { color: var(--red); }

.pbm-custom .pbm-btn { width: 100%; }

.pbm-pay-ch.pbm-pay-wx.is-active {
    background: #07c160;
    border-color: #07c160;
}

.pbm-pay-ch.pbm-pay-ali.is-active {
    background: #475569;
    border-color: #475569;
}

.pbm-qr {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, .48);
}

.pbm-qr[hidden] { display: none; }

.pbm-qr-box {
    position: relative;
    width: 100%;
    max-width: 360px;
    padding: 24px 22px 20px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg, 0 10px 25px rgba(0, 0, 0, .1));
    text-align: center;
    animation: pbmQrIn .22s ease-out;
}

@keyframes pbmQrIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .pbm-qr-box { animation: none; }
}

.pbm-qr-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.pbm-qr-close:hover { background: var(--soft); color: var(--text); }

.pbm-qr-box h4 { margin: 0 0 4px; font-size: 1.05rem; color: var(--text); }

.pbm-qr-tip { margin: 0 0 14px; font-size: .82rem; color: var(--text-light); }

.pbm-qr-imgwrap {
    position: relative;
    width: 212px;
    height: 212px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    overflow: hidden;
}

.pbm-qr-imgwrap img { display: block; width: 212px; height: 212px; }

.pbm-qr-imgwrap img[hidden] { display: none; }

.pbm-qr-loading { padding: 0 18px; font-size: .8rem; color: var(--text-light); line-height: 1.6; }

.pbm-qr-meta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
    font-size: .78rem; color: var(--text-light); margin-bottom: 10px; }

.pbm-qr-meta b { color: var(--text); font-weight: 600; }

.pbm-qr-link { display: flex; gap: 8px; margin-bottom: 12px; }

.pbm-qr-link input {
    flex: 1;
    min-width: 0;
    padding: 7px 10px;
    font-size: .76rem;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--soft);
    color: var(--text-light);
}

.pbm-qr-link .pbm-btn { flex: none; }

.pbm-qr-ops { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.pbm-qr-ops .pbm-btn { flex: 1 1 auto; }

.pbm-qr-note { margin: 12px 0 0; font-size: .74rem; color: var(--text-light); line-height: 1.65; }

.pbm-ord {
    flex: none;
    font-size: .74rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.pbm-ord-pending { background: var(--amber-bg); color: var(--amber); }
.pbm-ord-paid    { background: var(--green-bg); color: var(--green); }
.pbm-ord-closed  { background: var(--red-bg);   color: var(--red); }

.pbm-exp-delta {
    flex: none;
    font-size: .92rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pbm-exp-delta.is-up   { color: var(--green); }
.pbm-exp-delta.is-down { color: var(--red); }

.pbm-tip.is-warn {
    color: var(--amber);
    background: var(--amber-bg);
    border-radius: 10px;
    padding: 9px 12px;
}

.pbm-titles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.pbm-title-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2, rgba(255, 255, 255, .55));
    transition: .16s;
}

.pbm-title-item.is-on {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.pbm-title-meta {
    flex: 1 1 auto;
    min-width: 0;
    font-size: .78rem;
    color: var(--text-light);
}

.pbm-title-item .pbm-btn { flex: none; }

.pbm-badges {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 10px;
}

.pbm-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 14px 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-2, rgba(255, 255, 255, .55));
    text-align: center;
    transition: .18s;
}

.pbm-badge-item:hover {
    transform: translateY(-2px);
    border-color: currentColor;
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, .1));
}

.pbm-badge-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: currentColor;
    color: inherit;
}

.pbm-badge-ico {
    background: var(--surface-3, rgba(148, 163, 184, .14));
}

.pbm-badge-ico svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.pbm-badge-ico img { width: 26px; height: 26px; object-fit: contain; border-radius: 50%; }

.pbm-badge-item b { font-size: .84rem; color: currentColor; }

.pbm-badge-src { font-size: .7rem; color: var(--text-light); }

.pbm-badges-lg { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pbm-badges-lg .pbm-badge-item { padding: 18px 12px; border-radius: var(--radius); }
.pbm-badges-lg .pbm-badge-ico { width: 48px; height: 48px; }
.pbm-badges-lg .pbm-badge-ico svg { width: 25px; height: 25px; }
.pbm-badges-lg .pbm-badge-ico img { width: 30px; height: 30px; }
.pbm-badges-lg .pbm-badge-item b { font-size: .9rem; }
.pbm-badges-lg .pbm-badge-src { font-size: .74rem; }

@media (max-width: 768px) {
    .pbm-plans { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .pbm-badges { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
    .pbm-title-item { align-items: flex-start; }
}

.pbm-wealth-hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pbm-wealth-card {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 20px; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--border);
}
.pbm-wealth-ico {
    flex: none; width: 46px; height: 46px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.pbm-wealth-ico svg {
    width: 24px; height: 24px; fill: none; stroke: #fff;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.pbm-wealth-card.is-points .pbm-wealth-ico { background: var(--blue); }
.pbm-wealth-card.is-coins .pbm-wealth-ico { background: var(--amber); }
.pbm-wealth-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pbm-wealth-info b { font-size: 1.45rem; line-height: 1.2; }
.pbm-wealth-info span { font-size: .78rem; color: var(--text-light); }
.pbm-wealth-info em {
    font-style: normal; display: flex; flex-wrap: wrap; gap: 6px;
    margin-top: 5px; font-size: .8rem; color: var(--text-muted);
}

.pbm-lvl-progress {
    height: 8px; border-radius: var(--radius-pill); overflow: hidden;
    background: var(--soft); margin: 4px 0 12px;
}
.pbm-lvl-progress i {
    display: block; height: 100%; border-radius: var(--radius-pill);
    background: var(--primary);
    transition: width .4s ease;
}

.pbm-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.pbm-duo .pbm-block { margin-bottom: 0; }

.pbm-wealth-hero-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pbm-wealth-card.is-level {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 12px 18px;
}
.pbm-wealth-card.is-level .pbm-wealth-ico { background: var(--purple); }
.pbm-wealth-card.is-level .pbm-wealth-info { flex: 1; min-width: 200px; }
.pbm-wealth-card.is-level .pbm-wealth-info b { font-size: 1.25rem; }
.pbm-wealth-progress { flex: 1 1 100%; display: flex; align-items: center; gap: 10px; }
.pbm-wealth-progress .pbm-lvl-progress { flex: 1; margin: 0; }
.pbm-wealth-progress > span { flex: none; font-size: .78rem; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }

@media (max-width: 768px) {
    .pbm-wealth-hero { grid-template-columns: minmax(0, 1fr); }
    .pbm-duo { grid-template-columns: minmax(0, 1fr); }
    .pbm-wealth-card { padding: 14px 16px; }
    .pbm-wealth-progress { flex-basis: 100%; }
}

.pbm-oauth { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.pbm-oauth-title { margin: 0 0 10px; text-align: center; font-size: .76rem; color: var(--text-light, #8a94a6); letter-spacing: .06em; }
.pbm-oauth-list { display: flex; flex-direction: column; gap: 10px; }
.pbm-oauth-item {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px;
    border-radius: var(--radius); text-decoration: none; color: #fff;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.pbm-oauth-item:hover { color: #fff; opacity: .94; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15, 23, 42, .16); }
.pbm-oauth-item:active { transform: none; box-shadow: none; }
.pbm-oauth-ico { flex: none; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.pbm-oauth-ico svg { width: 18px; height: 18px; fill: #fff; }
.pbm-oauth-zi { font-size: .95rem; font-weight: 700; line-height: 1; color: #fff; }
.pbm-oauth-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.pbm-oauth-meta b { font-size: .9rem; font-weight: 600; }
.pbm-oauth-meta i { font-style: normal; font-size: .73rem; opacity: .85; margin-top: 1px; }
.pbm-oauth-arrow { flex: none; width: 16px; height: 16px; fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pbm-oauth-item.is-qq  { background: linear-gradient(135deg, #475569, #334155); }
.pbm-oauth-item.is-wx  { background: linear-gradient(135deg, #07c160, #059a4c); }
.pbm-oauth-item.is-zfb { background: linear-gradient(135deg, #57534e, #44403c); }

.pbm-bind-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.pbm-bind-card { background: var(--card, var(--surface, #fff)); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.pbm-bind-card.is-wide { grid-column: 1 / -1; }
.pbm-bind-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pbm-bind-head b { font-size: .95rem; }
.pbm-bind-tag { font-size: .72rem; font-weight: 600; color: var(--text-muted); background: var(--surface-2, #f3f4f6); border-radius: var(--radius-pill, 999px); padding: 3px 10px; }
.pbm-bind-tag.is-on { color: #16a34a; background: rgba(34, 197, 94, .12); }
.pbm-bind-tag.is-off { color: #9ca3af; background: var(--surface-2, #f3f4f6); }
.pbm-bind-info { font-size: .82rem; color: var(--text-muted); line-height: 1.7; margin: 0 0 12px; }

.pbm-bind-mail { display: grid; gap: 12px; }
.pbm-bind-mail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.pbm-bind-field label { display: block; font-size: .8rem; color: var(--text-light); margin-bottom: 6px; }
.pbm-bind-field input[type="email"], .pbm-bind-field input[type="text"] {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 12px;
    background: var(--soft);
    color: var(--text);
    font-size: .9rem;
    font-family: inherit;
    outline: none;
    transition: border-color .15s ease;
}
.pbm-bind-field input[type="email"]:focus, .pbm-bind-field input[type="text"]:focus { border-color: var(--primary); }
.pbm-bind-mail-code { display: flex; gap: 8px; }
.pbm-bind-mail-code input { flex: 1; min-width: 0; }
.pbm-bind-mail-code .pbm-btn { flex: none; white-space: nowrap; }
.pbm-bind-mail-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pbm-bind-mail-hint { font-size: .76rem; color: var(--text-light); margin: 0; }

@media (max-width: 768px) {
    .pbm-bind-grid { grid-template-columns: minmax(0, 1fr); }
    .pbm-bind-mail-grid { grid-template-columns: minmax(0, 1fr); }
}

.pbm-profile { display: flex; flex-direction: column; gap: 16px; }

.pbm-pr-ops {
    flex: none;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pbm-pr-ops .pbm-btn { padding: 8px 18px; font-size: .85rem; }

.pbm-pr-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.pbm-metric-val.is-text {
    font-size: 1.12rem;
    line-height: 1.5;
    letter-spacing: 0;
    font-variant-numeric: normal;
}

.pbm-pr-block { padding: 18px 20px 20px; }

.pbm-pr-h {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.pbm-pr-h small { font-size: .76rem; font-weight: 500; color: var(--text-light); }

.pbm-pr-wall {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 10px;
}

.pbm-pr-item {
    --tone: var(--text-body);
    --tone-bg: var(--surface-3);
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
    transition: border-color .16s ease, box-shadow .16s ease;
}

.pbm-pr-item.c-blue { --tone: var(--blue); --tone-bg: var(--blue-bg); }
.pbm-pr-item.c-cyan { --tone: var(--cyan); --tone-bg: var(--cyan-bg); }
.pbm-pr-item.c-teal { --tone: var(--teal); --tone-bg: var(--teal-bg); }
.pbm-pr-item.c-green { --tone: var(--green); --tone-bg: var(--green-bg); }
.pbm-pr-item.c-indigo { --tone: var(--indigo); --tone-bg: var(--indigo-bg); }
.pbm-pr-item.c-purple { --tone: var(--purple); --tone-bg: var(--purple-bg); }
.pbm-pr-item.c-pink { --tone: var(--pink); --tone-bg: var(--pink-bg); }
.pbm-pr-item.c-amber { --tone: var(--amber); --tone-bg: var(--amber-bg); }
.pbm-pr-item.c-orange { --tone: var(--orange); --tone-bg: var(--orange-bg); }
.pbm-pr-item.c-red { --tone: var(--red); --tone-bg: var(--red-bg); }

.pbm-pr-item.is-on {
    border-color: var(--tone);
    box-shadow: 0 0 0 3px var(--tone-bg);
}

.pbm-pr-item-name {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .86rem;
    font-weight: 700;
    color: var(--tone);
    word-break: break-word;
}

.pbm-pr-item-name img {
    height: 1.25em;
    width: auto;
    flex: none;
    border-radius: 4px;
    object-fit: contain;
}

.pbm-pr-item-meta { font-size: .72rem; color: var(--text-light); line-height: 1.6; }

.pbm-pr-worn {
    flex: none;
    margin-left: auto;
    padding: 1px 8px;
    border-radius: var(--radius-pill, 999px);
    background: var(--tone);
    color: #fff;
    font-size: .66rem;
    font-style: normal;
    font-weight: 700;
}

.pbm-pr-logs { list-style: none; }

.pbm-pr-logs li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 2px;
    border-bottom: 1px dashed var(--line);
}

.pbm-pr-logs li:last-child { border-bottom: none; }

.pbm-pr-logs a {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: .88rem;
    color: var(--text);
    text-decoration: none;
    transition: color .15s ease;
}

.pbm-pr-logs a:hover { color: var(--primary); }

.pbm-pr-log-date { flex: none; font-size: .74rem; color: var(--text-light); }

.pbm-pr-more { margin-top: 12px; font-size: .82rem; }
.pbm-pr-more a { color: var(--primary); text-decoration: none; font-weight: 600; }

.pbm-pr-empty { font-size: .85rem; color: var(--text-light); }

.pbm-pr-online { font-size: .8rem; color: var(--text-light); }

.pbm-pr-miss { padding: 52px 24px; text-align: center; }
.pbm-pr-miss h1 { margin-bottom: 6px; font-size: 1.4rem; color: var(--text); }
.pbm-pr-miss-sub { margin-bottom: 20px; font-size: .88rem; color: var(--text-light); }

@media (max-width: 900px) {
    .pbm-pr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .pbm-profile { gap: 14px; }
    .pbm-pr-block { padding: 15px 15px 17px; }
    .pbm-pr-ops { width: 100%; margin-left: 0; }
    .pbm-pr-ops .pbm-btn { flex: 1; justify-content: center; text-align: center; }
    .pbm-pr-wall { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .pbm-pr-logs li { gap: 8px; }
}

:where(.pbm-app) a,
:where(.pbm-app) a:hover { color: inherit; text-decoration: none; }

.pbm-dash-cols { margin-bottom: 0; }
.pbm-dash-cols > .col-lg-8 { min-width: 0; }
.pbm-dash-cols > aside { min-width: 0; }

.pbm-dash-head .pbm-dash-ops {
    width: 100%;
    padding: 10px 0 0;
    margin: 2px 0 0;
    background: transparent;
    border: 0;
    border-top: 1px dashed var(--border);
    border-radius: 0;
    box-shadow: none;
}

button.pbm-side-card {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    color: inherit;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: block;
    padding: 16px 18px;
    
    background: var(--tip-bg, #fff);
    color: var(--tip-fg, var(--text));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
button.pbm-side-card:hover,
button.pbm-side-card:focus-visible {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, .1));
    outline: none;
}

.pbm-side-label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--text-light);
    margin-bottom: 10px;
}

.pbm-side-level-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.pbm-side-level-top .pbm-metric-val { font-size: 1.22rem; }
.pbm-side-level-pct {
    font-size: .82rem;
    font-weight: 700;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
    background: var(--soft);
    border-radius: 999px;
    padding: 3px 9px;
}

.pbm-progress {
    --bs-progress-height: 8px;
    
    --bs-progress-bg: var(--tip-bg, #fff);
    --bs-progress-border-radius: 999px;
    --bs-progress-border-color: transparent;
    --bs-progress-bar-bg: var(--tone, var(--primary));
    display: block;
}
.pbm-progress-bar { transition: width .45s ease; }

.pbm-side-level-sub {
    display: block;
    margin-top: 9px;
    font-size: .76rem;
    color: var(--text-light);
}

.pbm-side-quick {
    
    --bs-list-group-bg: var(--tip-bg, #fff);
    --bs-list-group-border-color: var(--border);
    --bs-list-group-border-radius: var(--radius);
    --bs-list-group-color: var(--tip-fg, var(--text-body));
    --bs-list-group-hover-bg: var(--soft);
    --bs-list-group-action-hover-color: var(--tip-fg, var(--text));
    --bs-list-group-active-bg: var(--tip-bg, #fff);
    --bs-list-group-active-color: var(--tip-fg, var(--text));
    --bs-list-group-active-border-color: var(--border);
    --bs-list-group-item-padding-y: 12px;
    --bs-list-group-item-padding-x: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.pbm-side-quick-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: .88rem;
    font-weight: 600;
    transition: color .15s ease, background .15s ease, padding-left .15s ease;
}
.pbm-side-quick-item:hover { padding-left: 19px; }
.pbm-side-quick-arrow {
    font-style: normal;
    font-size: 1.05rem;
    line-height: 1;
    color: var(--text-light);
    transition: color .15s ease, transform .15s ease;
}
.pbm-side-quick-item:hover .pbm-side-quick-arrow {
    color: var(--primary);
    transform: translateX(2px);
}

@media (max-width: 991.98px) {
    .pbm-side-level { margin-bottom: 12px; }
    
    .pbm-side-level-top .pbm-metric-val { font-size: 1.3rem; }
}

.pbm-block .pbm-dash-head.is-plain {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .pbm-block .pbm-dash-head.is-plain { padding: 0; }
}

.pbm-metric-level .pbm-progress { margin-top: 4px; }
.pbm-metric-level .pbm-metric-sub { margin-top: 2px; }

.pbm-block .pbm-dash-recs { margin-bottom: 0; }

/* ---------- v1.9.20 · 用户搜索结果页（/?plugin=pb_member&search=关键词） ---------- */
.pbm-us { padding: 22px 24px; }
.pbm-us-head { margin-bottom: 14px; }
.pbm-us-head h1 { margin: 0 0 5px; font-size: 1.24rem; color: var(--text); }
.pbm-us-sub { margin: 0; font-size: .84rem; color: var(--text-muted); }
.pbm-us-form { display: flex; align-items: center; gap: 8px; margin: 14px 0 16px; }
.pbm-us-input { flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 14px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--soft); color: var(--text-body); font-size: .9rem; }
.pbm-us-input:focus { outline: none; border-color: var(--primary); background: var(--card); }
.pbm-us-count { margin: 0 0 10px; font-size: .82rem; color: var(--text-muted); }
.pbm-us-count b { color: var(--text-body); }
.pbm-us-empty { margin: 8px 0 4px; padding: 26px 0; text-align: center;
    font-size: .88rem; color: var(--text-muted); }
.pbm-us-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pbm-us-item { min-width: 0; }
.pbm-us-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--card); color: var(--text-body); text-decoration: none; }
.pbm-us-link:hover { border-color: var(--primary); background: var(--soft); }
.pbm-us-avatar { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
    object-fit: cover; background: var(--soft); }
.pbm-us-meta { flex: 1 1 auto; min-width: 0; }
.pbm-us-nick { display: block; font-size: .92rem; font-weight: 700; color: var(--text-body);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbm-us-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 4px; }
.pbm-us-tag { display: inline-block; padding: 1px 7px; border-radius: var(--radius-pill);
    font-size: .7rem; font-style: normal; line-height: 1.7;
    background: var(--soft); color: var(--text-muted); border: 1px solid var(--border); }
.pbm-us-tag.is-level { background: var(--primary-light); color: var(--primary); border-color: transparent; }
.pbm-us-tag.is-cert { background: var(--primary); color: #fff; border-color: transparent; }
.pbm-us-tag.is-vip { background: var(--grad); color: #fff; border-color: transparent; }
.pbm-us-arrow { flex: 0 0 auto; width: 16px; height: 16px; fill: none;
    stroke: currentColor; stroke-width: 2; stroke-linecap: round;
    stroke-linejoin: round; opacity: .35; }
.pbm-us-pager { display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-top: 16px; }
.pbm-us-pgcur { font-size: .82rem; color: var(--text-muted); }
@media (max-width: 640px) {
    .pbm-us { padding: 18px 16px; }
    .pbm-us-list { grid-template-columns: minmax(0, 1fr); }
    .pbm-us-form { flex-wrap: wrap; }
    .pbm-us-input { flex: 1 1 100%; }
}

/* ---------- v1.9.22 · 主题配色跟随（复刻自 PureBlog/main.css body.pb-tone-*） ----------
   插件页不加载模板 main.css，这里把 10 套配色的令牌复刻到 .pbm-body.pb-tone-* 上，
   PHP 侧给 <body> 加对应 pb-tone-XXX 类即可让会员中心跟随后台选的配色方案（含深浅色）。 */
.pbm-body.pb-tone-slate {--primary: #475569; --primary-hover: #334155; --primary-dark: #1e293b; --primary-light: rgba(71, 85, 105, .1); --gradient: linear-gradient(135deg, #64748b, #334155); --code-inline: #1e293b; }
.pbm-body.pb-tone-stone {--primary: #57534e; --primary-hover: #44403c; --primary-dark: #292524; --primary-light: rgba(87, 83, 78, .1); --gradient: linear-gradient(135deg, #78716c, #44403c); --code-inline: #292524; }
.pbm-body.pb-tone-zinc {--primary: #52525b; --primary-hover: #3f3f46; --primary-dark: #27272a; --primary-light: rgba(82, 82, 91, .1); --gradient: linear-gradient(135deg, #71717a, #3f3f46); --code-inline: #27272a; }
.pbm-body.pb-tone-emerald {--primary: #059669; --primary-hover: #047857; --primary-dark: #065f46; --primary-light: rgba(5, 150, 105, .1); --gradient: linear-gradient(135deg, #10b981, #047857); --code-inline: #065f46; }
.pbm-body.pb-tone-teal {--primary: #0d9488; --primary-hover: #0f766e; --primary-dark: #115e59; --primary-light: rgba(13, 148, 136, .1); --gradient: linear-gradient(135deg, #14b8a6, #0f766e); --code-inline: #115e59; }
.pbm-body.pb-tone-lime {--primary: #65a30d; --primary-hover: #4d7c0f; --primary-dark: #3f6212; --primary-light: rgba(101, 163, 13, .1); --gradient: linear-gradient(135deg, #84cc16, #4d7c0f); --code-inline: #3f6212; }
.pbm-body.pb-tone-amber {--primary: #d97706; --primary-hover: #b45309; --primary-dark: #92400e; --primary-light: rgba(217, 119, 6, .1); --gradient: linear-gradient(135deg, #f59e0b, #b45309); --code-inline: #92400e; }
.pbm-body.pb-tone-orange {--primary: #ea580c; --primary-hover: #c2410c; --primary-dark: #9a3412; --primary-light: rgba(234, 88, 12, .1); --gradient: linear-gradient(135deg, #f97316, #c2410c); --code-inline: #9a3412; }
.pbm-body.pb-tone-rose {--primary: #e11d48; --primary-hover: #be123c; --primary-dark: #9f1239; --primary-light: rgba(225, 29, 72, .1); --gradient: linear-gradient(135deg, #f43f5e, #be123c); --code-inline: #9f1239; }
.pbm-body.pb-tone-cyan {--primary: #0891b2; --primary-hover: #0e7490; --primary-dark: #155e75; --primary-light: rgba(8, 145, 178, .1); --gradient: linear-gradient(135deg, #06b6d4, #0e7490); --code-inline: #155e75; }

[data-theme="dark"] .pbm-body.pb-tone-slate {--primary: #94a3b8; --primary-hover: #475569; --primary-dark: #334155; --primary-light: rgba(148, 163, 184, .15); --gradient: linear-gradient(135deg, #94a3b8, #475569); --code-inline: #94a3b8; }
[data-theme="dark"] .pbm-body.pb-tone-stone {--primary: #a8a29e; --primary-hover: #57534e; --primary-dark: #44403c; --primary-light: rgba(168, 162, 158, .15); --gradient: linear-gradient(135deg, #a8a29e, #57534e); --code-inline: #a8a29e; }
[data-theme="dark"] .pbm-body.pb-tone-zinc {--primary: #a1a1aa; --primary-hover: #52525b; --primary-dark: #3f3f46; --primary-light: rgba(161, 161, 170, .15); --gradient: linear-gradient(135deg, #a1a1aa, #52525b); --code-inline: #a1a1aa; }
[data-theme="dark"] .pbm-body.pb-tone-emerald {--primary: #34d399; --primary-hover: #059669; --primary-dark: #047857; --primary-light: rgba(52, 211, 153, .15); --gradient: linear-gradient(135deg, #34d399, #059669); --code-inline: #34d399; }
[data-theme="dark"] .pbm-body.pb-tone-teal {--primary: #2dd4bf; --primary-hover: #0d9488; --primary-dark: #0f766e; --primary-light: rgba(45, 212, 191, .15); --gradient: linear-gradient(135deg, #2dd4bf, #0d9488); --code-inline: #2dd4bf; }
[data-theme="dark"] .pbm-body.pb-tone-lime {--primary: #a3e635; --primary-hover: #65a30d; --primary-dark: #4d7c0f; --primary-light: rgba(163, 230, 53, .15); --gradient: linear-gradient(135deg, #a3e635, #65a30d); --code-inline: #a3e635; }
[data-theme="dark"] .pbm-body.pb-tone-amber {--primary: #fbbf24; --primary-hover: #d97706; --primary-dark: #b45309; --primary-light: rgba(251, 191, 36, .15); --gradient: linear-gradient(135deg, #fbbf24, #d97706); --code-inline: #fbbf24; }
[data-theme="dark"] .pbm-body.pb-tone-orange {--primary: #fb923c; --primary-hover: #ea580c; --primary-dark: #c2410c; --primary-light: rgba(251, 146, 60, .15); --gradient: linear-gradient(135deg, #fb923c, #ea580c); --code-inline: #fb923c; }
[data-theme="dark"] .pbm-body.pb-tone-rose {--primary: #fb7185; --primary-hover: #e11d48; --primary-dark: #be123c; --primary-light: rgba(251, 113, 133, .15); --gradient: linear-gradient(135deg, #fb7185, #e11d48); --code-inline: #fb7185; }
[data-theme="dark"] .pbm-body.pb-tone-cyan {--primary: #22d3ee; --primary-hover: #0891b2; --primary-dark: #0e7490; --primary-light: rgba(34, 211, 238, .15); --gradient: linear-gradient(135deg, #22d3ee, #0891b2); --code-inline: #22d3ee; }

/* 会员中心里的「彩色昵称」不跟 toneScheme（中性配色下主色是灰的），固定用 --vip-grad */

/* ---------- v1.10.0 全站消息 ---------- */
.pbm-notify-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pbm-notify-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.pbm-notify-filters button {
    border: 1px solid var(--border); background: var(--card, var(--soft)); color: var(--text-light);
    border-radius: 999px; padding: 4px 12px; font-size: .82rem; cursor: pointer; line-height: 1.6;
}
.pbm-notify-filters button.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pbm-notify-list { list-style: none; display: grid; gap: 10px; padding: 0; margin: 0; }
.pbm-notify-item { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--soft); }
.pbm-notify-item.is-unread { border-color: var(--primary); background: var(--card, var(--soft)); }
.pbm-notify-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pbm-notify-head b { color: var(--text); font-size: .95rem; }
.pbm-notify-head small { margin-left: auto; color: var(--text-light); font-size: .76rem; }
.pbm-notify-type { font-size: .72rem; color: var(--primary); border: 1px solid var(--primary); border-radius: 999px; padding: 1px 8px; }
.pbm-notify-text { margin: 8px 0 0; color: var(--text-body, var(--text)); font-size: .88rem; line-height: 1.7; word-break: break-all; }
.pbm-notify-from { margin: 6px 0 0; color: var(--text-light); font-size: .8rem; }
.pbm-notify-from a { color: var(--primary); text-decoration: none; }
.pbm-notify-ops { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.pbm-notify-ops a.pbm-btn { text-decoration: none; }

/* ---------- v1.10.1 站内私信选人 ---------- */
.pbm-pm-picker { display: inline-flex; gap: 6px; margin: 0 0 10px; }
.pbm-pm-picker button {
    border: 1px solid var(--border); background: var(--card, var(--soft)); color: var(--text-light);
    border-radius: 999px; padding: 4px 14px; font-size: .84rem; cursor: pointer; line-height: 1.6;
}
.pbm-pm-picker button.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pbm-pm-users { list-style: none; display: grid; gap: 8px; padding: 0; margin: 0 0 12px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pbm-pm-users li { min-width: 0; }
.pbm-pm-users button {
    display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px;
    border: 1px solid var(--border); border-radius: 10px; background: var(--soft);
    color: var(--text); cursor: pointer; text-align: left; font-size: .86rem;
}
.pbm-pm-users button:hover { border-color: var(--primary); }
.pbm-pm-users button.is-active { border-color: var(--primary); background: var(--card, var(--soft));
    box-shadow: inset 0 0 0 2px var(--primary); }
.pbm-pm-users img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; background: var(--card, var(--soft)); }
.pbm-pm-users b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbm-pm-mutual { flex: none; font-size: .68rem; color: var(--primary); border: 1px solid var(--primary);
    border-radius: 999px; padding: 0 6px; font-style: normal; }
.pbm-pm-box { border: 1px solid var(--border); border-radius: 10px; padding: 12px; background: var(--soft); }
.pbm-pm-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px;
    font-size: .86rem; color: var(--text-body, var(--text)); }
.pbm-pm-head em { color: var(--text-light); font-style: normal; font-size: .8rem; }
.pbm-pm-head button { margin-left: auto; }
.pbm-pm-box textarea {
    width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: 8px;
    padding: 8px 10px; background: var(--card, #fff); color: var(--text); font-size: .88rem;
    resize: vertical; margin-bottom: 10px;
}

/* ---------- v1.10.2 会员中心内联登录 / 注册弹窗 ----------
   会员中心不加载模板的 main.css / main.js，登录弹窗只能自带一套：
   端点与模板顶栏弹窗一致（admin/account.php?action=dosignin / dosignup /
   send_email_code），提交用 POST + resp=json，成功后就地 reload 当前页。
   实底按钮统一 --primary-dark（模板 tone 提供）→ --primary-hover（插件独立兜底）。 */
.pbm-auth { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1200;
    display: flex; align-items: center; justify-content: center; padding: 20px; }
.pbm-auth[hidden] { display: none; }
.pbm-auth-mask { position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(15, 23, 42, .55); }
.pbm-auth-card { position: relative; z-index: 1; width: 100%; max-width: 380px;
    max-height: calc(100vh - 40px); overflow-y: auto;
    padding: 26px 24px 22px; border: 1px solid var(--border); border-radius: 14px;
    background: var(--card); box-shadow: 0 22px 60px rgba(15, 23, 42, .28); }
.pbm-auth-x { position: absolute; top: 10px; right: 12px; width: 30px; height: 30px;
    border: 0; border-radius: 8px; background: transparent; color: var(--text-muted);
    font-size: 20px; line-height: 1; cursor: pointer; transition: var(--transition); }
.pbm-auth-x:hover { background: var(--soft); color: var(--text); }
.pbm-auth-title { margin: 0 0 14px; font-size: 1.05rem; font-weight: 800; color: var(--text); }
.pbm-auth-tabs { display: flex; gap: 6px; margin: 0 0 14px; padding: 4px;
    border-radius: 10px; background: var(--soft); }
.pbm-auth-tab { flex: 1 1 0; height: 34px; border: 0; border-radius: 8px;
    background: transparent; color: var(--text-muted); font-size: .88rem; font-weight: 600;
    cursor: pointer; transition: var(--transition); }
.pbm-auth-tab.is-on { background: var(--card); color: var(--primary-dark, var(--primary));
    box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.pbm-auth-msg { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px;
    background: var(--soft); color: var(--text-muted); font-size: .82rem; line-height: 1.5; }
.pbm-auth-msg[hidden] { display: none; }
.pbm-auth-msg.is-ok { background: var(--green-bg, #ecfdf5); color: var(--green, #10b981); }
.pbm-auth-msg.is-err { background: var(--red-bg, #fef2f2); color: var(--red, #ef4444); }
.pbm-auth-panel { display: none; }
.pbm-auth-panel.is-on { display: block; }
.pbm-auth-field { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pbm-auth-field input { flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 12px;
    border: 1px solid var(--border); border-radius: 9px; background: var(--bg);
    color: var(--text); font-size: .88rem; outline: none; transition: var(--transition); }
.pbm-auth-field input:focus { border-color: var(--primary); }
.pbm-auth-captcha { flex: 0 0 auto; width: 92px; height: 40px; border-radius: 9px;
    border: 1px solid var(--border); object-fit: cover; cursor: pointer; }
.pbm-auth-send { flex: 0 0 auto; height: 40px; padding: 0 12px; white-space: nowrap;
    border: 1px solid var(--primary); border-radius: 9px; background: transparent;
    color: var(--primary-dark, var(--primary)); font-size: .8rem; font-weight: 600; cursor: pointer; }
.pbm-auth-send:disabled { opacity: .55; cursor: not-allowed; }
.pbm-auth-check { display: flex; align-items: center; gap: 7px; margin: 2px 0 12px;
    font-size: .82rem; color: var(--text-muted); cursor: pointer; }
.pbm-auth-submit { display: block; width: 100%; height: 42px; border: 0; border-radius: 10px;
    background: var(--primary-dark, var(--primary-hover, #222)); color: #fff;
    font-size: .92rem; font-weight: 700; cursor: pointer; transition: var(--transition); }
.pbm-auth-submit:hover { filter: brightness(.92); }
.pbm-auth-submit:disabled { opacity: .6; cursor: not-allowed; }
@media (max-width: 480px) {
    .pbm-auth-card { padding: 22px 18px 18px; }
}

/* ==================================================================
   v1.11.0 任务中心（我的任务）
   ================================================================== */
.pbm-task-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pbm-task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-2, rgba(255, 255, 255, .55));
    transition: .18s;
}

.pbm-task-item:hover {
    border-color: currentColor;
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, .1));
}

.pbm-task-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--surface-3, rgba(148, 163, 184, .14));
    color: currentColor;
}

.pbm-task-ico svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.pbm-task-ico img { width: 26px; height: 26px; object-fit: contain; border-radius: 50%; }

.pbm-task-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pbm-task-main b { font-size: .88rem; color: currentColor; }

.pbm-task-sub {
    font-size: .76rem;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pbm-task-bar {
    display: block;
    height: 6px;
    background: var(--soft);
    border-radius: 999px;
    overflow: hidden;
    margin: 4px 0 2px;
}

.pbm-task-bar i {
    display: block;
    height: 100%;
    background: currentColor;
    border-radius: 999px;
    transition: width .4s;
}

.pbm-task-prog { font-size: .72rem; color: var(--text-muted); }

.pbm-task-item .pbm-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.pbm-task-item .pbm-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* ===== v1.12.3 兑换商城 ===== */

/* 钱包行（兼容充值面板） */
.pbm-wallet-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

/* 商城网格 */
.pbm-shop-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.pbm-shop-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    position: relative;
}

/* v1.16.0：原来只有 -2px 位移 + 浅阴影，比模板文章卡弱一档。
   这里对齐模板观感：位移 4px、阴影加深、走统一缓动曲线。 */
.pbm-shop-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg, 0 10px 25px rgba(0, 0, 0, .12));
    border-color: var(--primary);
}
/* 图标微旋放大：卡片是否可点，最直接的就是图标反馈 */
.pbm-shop-card .pbm-shop-ico { transition: transform .35s var(--pbm-ease-back, cubic-bezier(.34, 1.42, .52, 1)); }
.pbm-shop-card:hover .pbm-shop-ico { transform: rotate(-8deg) scale(1.08); }
/* 价格轻轻上浮，引导视线落到「要花多少积分」 */
.pbm-shop-card .pbm-shop-price { transition: transform .25s var(--pbm-ease-out, ease); }
.pbm-shop-card:hover .pbm-shop-price { transform: translateY(-2px); }
/* 卡片自身的过渡也换成统一曲线（原来是 .2s 无曲线，切换偏生硬） */
.pbm-shop-card { transition: transform .28s var(--pbm-ease-out, ease), box-shadow .28s var(--pbm-ease-out, ease), border-color .2s; }

.pbm-shop-card.is-off {
    opacity: .6;
}

.pbm-shop-ico {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.pbm-shop-ico svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.pbm-shop-ico img { width: 26px; height: 26px; object-fit: contain; border-radius: 50%; }

.pbm-shop-name {
    font-size: .95rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pbm-shop-name em {
    font-size: .7rem;
    font-weight: 500;
    font-style: normal;
    padding: 2px 7px;
    border-radius: 4px;
    background: var(--primary-light);
    color: var(--primary);
}

.pbm-shop-type {
    font-size: .78rem;
    color: var(--text-light);
}

.pbm-shop-intro {
    font-size: .78rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
}

.pbm-shop-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--orange);
    margin-top: auto;
    padding-top: 8px;
}

.pbm-shop-buy { align-self: flex-start; margin-top: 4px; }

/* 商城订单列表（与通知列表共用骨架） */
.pbm-shop-orders {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pbm-shop-orders > li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    flex-wrap: wrap;
}

.pbm-shop-order-name { flex: 1 1 auto; min-width: 0; font-size: .85rem; color: var(--text); }
.pbm-shop-order-meta { font-size: .78rem; color: var(--text-light); white-space: nowrap; }
.pbm-shop-order-state { font-size: .76rem; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--text-light); flex: none; }
.pbm-shop-order-state.is-ok { background: var(--green-bg); color: var(--green); }

/* ==========================================================================
   v1.12.6 幸运转盘
   盘面用 PHP 生成的 conic-gradient 扇区着色，指针固定 12 点，转动的是盘面本身
   ========================================================================== */
.pbm-wheel-row {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    flex-wrap: wrap;
}

/* v1.17.0 排版重做：舞台改为「外圈光晕 + 聚光 + 竞技场」三层结构。
   --pbm-wheel-size 仍然是最外层尺寸；arena 内缩出 18px 作为光环带。 */
.pbm-wheel-stage {
    --pbm-wheel-size: 292px;
    --pbm-wheel-band: 18px;
    position: relative;
    width: var(--pbm-wheel-size);
    height: var(--pbm-wheel-size);
    flex: none;
    margin: 10px auto 0;
    isolation: isolate;
}

/* 外圈光晕：缓慢呼吸的暖色辉光，给整个舞台铺一层「抽奖活动」气氛 */
.pbm-wheel-halo {
    position: absolute;
    inset: calc(-1 * var(--pbm-wheel-band));
    border-radius: 50%;
    background: radial-gradient(circle at 50% 32%, rgba(245, 158, 11, .30), rgba(245, 158, 11, .07) 46%, rgba(245, 158, 11, 0) 70%);
    pointer-events: none;
    z-index: 0;
    animation: pbmWheelHalo 3.4s var(--pbm-ease-out) infinite alternate;
}

/* 聚光：顶部一束柔光打下来，让盘面有「被照亮」的立体感 */
.pbm-wheel-glow {
    position: absolute;
    left: 50%;
    top: -6%;
    width: 76%;
    height: 62%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 68%);
    pointer-events: none;
    z-index: 1;
}

:where([data-theme="dark"]) .pbm-wheel-glow {
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 68%);
}

/* 竞技场：真正的盘面容器，四周留出光环带 */
.pbm-wheel-arena {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 2;
}

/* 环带：金属质感描边，把盘面和背景分开 */
.pbm-wheel-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 210deg, #fbbf24, #f59e0b, #d97706, #fbbf24, #f59e0b, #fbbf24);
    box-shadow: 0 10px 30px rgba(180, 83, 9, .30), inset 0 0 0 1px rgba(255, 255, 255, .35);
}

:where([data-theme="dark"]) .pbm-wheel-ring {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.pbm-wheel-disc {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    overflow: hidden;
    transform: rotate(0deg);
    will-change: transform;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .16), inset 0 0 0 6px rgba(255, 255, 255, .82);
    z-index: 2;
}

:where([data-theme="dark"]) .pbm-wheel-disc {
    box-shadow: 0 6px 22px rgba(0, 0, 0, .42), inset 0 0 0 6px rgba(255, 255, 255, .16);
}

/* 盘面高光扫过：一条斜向白色带，随盘面一起转，增强「转起来」的观感 */
.pbm-wheel-sheen {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(118deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, .06) 26%, rgba(255, 255, 255, 0) 52%);
    pointer-events: none;
}

@keyframes pbmWheelHalo {
    from { opacity: .72; transform: scale(.98); }
    to   { opacity: 1;   transform: scale(1.03); }
}

.pbm-wheel-labels {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    inset: 0;
}

.pbm-wheel-label {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: rotate(var(--pbm-w-a));
    pointer-events: none;
}

/* 文字反向旋转抵消盘面角度，保证任何扇区上的奖品名都是正的 */
.pbm-wheel-label > span {
    position: absolute;
    left: 50%;
    top: 7%;
    width: 44%;
    transform: translateX(-50%) rotate(calc(-1 * var(--pbm-w-a)));
    text-align: center;
    font-size: .7rem;
    line-height: 1.25;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-all;
}

.pbm-wheel-pin {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 4;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-top: 24px solid var(--red, #ef4444);
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .34));
}

.pbm-wheel-go {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    width: 92px;
    height: 92px;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, #fbbf24, #f59e0b 42%, #dc2626 100%);
    color: #fff;
    font: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(220, 38, 38, .38), inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -3px 8px rgba(120, 20, 10, .35);
    transition: filter .2s, opacity .2s, transform .2s var(--pbm-ease-back);
}

/* 内圈虚线环：让按钮更像「抽奖开关」 */
.pbm-wheel-go-ring {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, .55);
    pointer-events: none;
}

.pbm-wheel-go > b { font-size: 1rem; font-weight: 700; letter-spacing: .5px; text-shadow: 0 1px 3px rgba(120, 20, 10, .45); position: relative; }
.pbm-wheel-go-cost { font-size: .62rem; opacity: .95; position: relative; }
.pbm-wheel-go > span { font-size: .64rem; opacity: .92; }
.pbm-wheel-go:hover:not(:disabled) { filter: brightness(1.06); }
.pbm-wheel-go:disabled { cursor: not-allowed; filter: grayscale(.55); opacity: .9; }
.pbm-wheel-go.is-spinning { animation: pbmWheelPulse 1s ease-in-out infinite; }

/* ===== v1.16.0 转盘中奖高光 =====
   停稳后给中奖扇区、盘面、指针、结果卡同时上高光，形成「中奖时刻」。
   is-win / is-win-none 由 member.js 在 spinTo 回调里挂 800ms 后摘除，
   所以这些类名不会长期留在 DOM 上。 */

/* 1) 中奖扇区上的奖品名：白字转金 + 发光呼吸（文字是扇区里唯一可点亮的实体） */
.pbm-wheel-label.is-win > span {
    color: #fde68a;
    text-shadow: 0 0 10px rgba(253, 224, 71, .95), 0 0 22px rgba(245, 158, 11, .7), 0 1px 3px rgba(0, 0, 0, .5);
    animation: pbmWinGlow var(--pbm-fx-highlight) ease-in-out 2 both;
}
@keyframes pbmWinGlow {
    0%, 100% { transform: translateX(-50%) rotate(calc(-1 * var(--pbm-w-a))) scale(1); }
    50%      { transform: translateX(-50%) rotate(calc(-1 * var(--pbm-w-a))) scale(1.16); }
}

/* 空奖（谢谢参与）走降级：只轻微提亮，不发光不缩放，避免「空奖也像中大奖」 */
.pbm-wheel-label.is-win-none > span {
    color: #e5e7eb;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

/* 2) 盘面外圈光环脉冲 */
.pbm-wheel-stage.is-win .pbm-wheel-disc {
    animation: pbmWinRing var(--pbm-fx-highlight) ease-out 2;
}
@keyframes pbmWinRing {
    0%   { box-shadow: 0 6px 22px rgba(0, 0, 0, .14), inset 0 0 0 6px rgba(255, 255, 255, .78), 0 0 0 0 rgba(245, 158, 11, .65); }
    100% { box-shadow: 0 6px 22px rgba(0, 0, 0, .14), inset 0 0 0 6px rgba(255, 255, 255, .78), 0 0 0 22px rgba(245, 158, 11, 0); }
}
/* 空奖不发光环 */
.pbm-wheel-stage.is-win-none .pbm-wheel-disc { animation: none; }

/* 3) 指针回弹：中奖瞬间抖一下，强调「指到这里」 */
.pbm-wheel-pin.is-win {
    animation: pbmPinKick .32s var(--pbm-ease-back) 2;
    border-top-color: var(--amber, #f59e0b);
}
@keyframes pbmPinKick {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    50%      { transform: translateX(-50%) rotate(-16deg); }
}

/* 4) 结果提示卡弹入 */
#pbmWheelTip.is-win {
    animation: pbmTipPop var(--pbm-fx-highlight) var(--pbm-ease-back) both;
    border-left-color: var(--amber, #f59e0b);
}
@keyframes pbmTipPop {
    from { opacity: 0; transform: scale(.86) translateY(6px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* 5) 数字滚动进行中：数值加一档强调色，滚完由 JS 摘掉 is-rolling */
.is-rolling { color: var(--amber, #f59e0b); }
.pbm-metric-val.is-rolling { color: var(--amber, #f59e0b); }

@media (prefers-reduced-motion: reduce) {
    .pbm-wheel-label.is-win > span,
    .pbm-wheel-stage.is-win .pbm-wheel-disc,
    .pbm-wheel-pin.is-win,
    #pbmWheelTip.is-win { animation: none !important; }
}

@keyframes pbmWheelPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50%      { transform: translate(-50%, -50%) scale(1.06); }
}

.pbm-wheel-side {
    flex: 1 1 280px;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 奖池卡片：标题条 + 可滚列表 */
.pbm-wheel-pool {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    overflow: hidden;
}

.pbm-wheel-pool-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    background: linear-gradient(90deg, rgba(245, 158, 11, .14), rgba(245, 158, 11, .03));
    border-bottom: 1px solid var(--border);
    font-size: .82rem;
    color: var(--text);
    font-weight: 600;
}

.pbm-wheel-pool-head > em {
    font-style: normal;
    font-size: .74rem;
    font-weight: 400;
    color: var(--text-light);
}

.pbm-wheel-prizes {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 232px;
    overflow: auto;
    padding: 6px;
}

.pbm-wheel-prizes > li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    padding: 6px 8px;
    border-radius: var(--radius-xs);
    transition: background var(--transition);
}

.pbm-wheel-prizes > li:hover { background: var(--soft); }
.pbm-wheel-prizes > li.is-none > b { color: var(--text-light); }

.pbm-wheel-prizes > li > i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, .06);
}

.pbm-wheel-prizes > li > b {
    font-weight: 600;
    color: var(--text);
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pbm-wheel-prizes > li > span {
    font-size: .74rem;
    color: var(--text-light);
    flex: none;
}

.pbm-wheel-records {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.pbm-wheel-records > li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm, 6px);
    flex-wrap: wrap;
}

/* v1.18.10：抽奖后就地插入的新记录先高亮一下再淡掉 ——
   让「刚才那一抽」在列表里看得见落点（原来靠整页刷新，现在靠这条动效）。
   高亮只在入场瞬间，1.6 秒后由 JS 摘掉 is-fresh，回到常态样式。 */
.pbm-wheel-records > li.is-fresh {
    border-color: var(--green);
    background: var(--green-bg);
    animation: pbmWheelRecIn .42s var(--pbm-ease-out, cubic-bezier(.22,1,.36,1)) both;
}

@keyframes pbmWheelRecIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 尊重系统「减少动态效果」：只保留边框高亮，不做位移与淡入 */
@media (prefers-reduced-motion: reduce) {
    .pbm-wheel-records > li.is-fresh { animation: none; }
}

.pbm-wheel-rec-name { flex: 1 1 auto; min-width: 0; font-size: .85rem; color: var(--text); }
.pbm-wheel-rec-meta { font-size: .78rem; color: var(--text-light); white-space: nowrap; }
.pbm-wheel-rec-note {
    font-size: .76rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--text-light);
    flex: none;
}
.pbm-wheel-rec-note.is-ok { background: var(--green-bg); color: var(--green); }

@media (max-width: 640px) {
    .pbm-wheel-stage { --pbm-wheel-size: 244px; --pbm-wheel-band: 12px; margin: 4px auto 0; }
    .pbm-wheel-row { gap: 14px; }
    .pbm-wheel-go { width: 78px; height: 78px; }
    .pbm-wheel-go > b { font-size: .9rem; }
    .pbm-wheel-go-cost { font-size: .56rem; }
    .pbm-wheel-label > span { font-size: .62rem; width: 48%; }
    .pbm-wheel-side { min-width: 0; flex-basis: 100%; }
    .pbm-wheel-prizes { max-height: 176px; }
}

@media (prefers-reduced-motion: reduce) {
    .pbm-wheel-go.is-spinning { animation: none; }
    .pbm-wheel-halo { animation: none; }
}

/* ===== v1.13.0 收货信息（商城实物订单 / 转盘实物奖品共用一套） ===== */

/* 记录行内的地址条：父 li 是 flex-wrap:wrap，flex-basis:100% 让它独占一行 */
.pbm-ship-line {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
    padding: 8px 10px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    background: var(--soft);
}

.pbm-ship-txt {
    flex: 1 1 auto;
    min-width: 0;
    font-size: .8rem;
    line-height: 1.6;
    color: var(--text-light);
    word-break: break-all;
}

.pbm-ship-txt b { color: var(--text); font-weight: 600; }
.pbm-ship-txt.is-warn { color: var(--amber); }
.pbm-ship-lock { flex: none; font-size: .78rem; color: var(--text-light); }

/* 弹窗表单：桌面两列，窄屏一列；输入观感对齐 .pbm-form */
.pbm-ship-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    margin-top: 6px;
}

.pbm-ship-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: .82rem;
    color: var(--text-light);
}

.pbm-ship-field > span { display: flex; align-items: center; gap: 2px; }
.pbm-ship-field > span b { color: var(--red); font-weight: 600; }
.pbm-ship-field.is-wide { grid-column: 1 / -1; }

/* v1.14.0 虚拟物品只需平台账号：按交付方式隐藏收货四项。
   .pbm-ship-field 自己设了 display:flex，会盖掉浏览器默认的 [hidden]{display:none}，
   所以必须显式补一条（特异性 0,2,0 稳过 0,1,0） */
.pbm-ship-field[hidden] { display: none; }

.pbm-ship-input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--soft);
    color: var(--text);
    font-size: .9rem;
    font-family: inherit;
    outline: none;
}

.pbm-ship-input:focus { border-color: var(--primary); }
textarea.pbm-ship-input { resize: vertical; line-height: 1.5; }

.pbm-ship-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 2px;
}

.pbm-ship-actions .pbm-btn { margin-top: 0; }

/* 表单比卡片弹窗高：允许纵向滚动，避免手机端「保存」按钮被切掉 */
#pbmShipModal .pbm-rec-box { max-height: min(86vh, 660px); overflow-y: auto; }

/* 深色模式下 .pbm-rec-box 自己会翻色，输入框跟着令牌走即可，不需要额外覆盖 */

@media (max-width: 640px) {
    .pbm-ship-form { grid-template-columns: 1fr; }
    .pbm-ship-line { flex-direction: column; align-items: stretch; }
    .pbm-ship-line .pbm-btn { width: 100%; }
}

/* ==========================================================================
   v1.17.0 物流查询弹窗
   时间线：最新节点高亮（is-latest），已签收整体 is-done 转绿。
   节点来源两条：站长手工登记（默认色）/ 快递100 自动回写（is-auto 蓝）。
   ========================================================================== */
.pbm-logi-box { max-width: 560px; }
#pbmLogiModal .pbm-rec-box { max-height: min(86vh, 680px); overflow-y: auto; }

.pbm-logi-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--soft);
    flex-wrap: wrap;
}

.pbm-logi-courier {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
}

.pbm-logi-carrier { font-size: .86rem; font-weight: 600; color: var(--text); }

.pbm-logi-no {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .84rem;
    color: var(--text-body, var(--text));
    letter-spacing: .4px;
    word-break: break-all;
}

.pbm-logi-copy {
    flex: none;
    padding: 1px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    background: var(--card);
    color: var(--text-light);
    font: inherit;
    font-size: .72rem;
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
}

.pbm-logi-copy:hover { color: var(--primary); border-color: var(--primary); }

.pbm-logi-state {
    flex: none;
    font-size: .76rem;
    font-style: normal;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    background: var(--soft);
    color: var(--text-light);
    border: 1px solid var(--border);
}

.pbm-logi-state.is-ok { background: var(--green-bg); color: var(--green); border-color: transparent; }

/* ---- 时间线 ---- */
.pbm-logi-body { position: relative; }

.pbm-logi-timeline {
    list-style: none;
    margin: 0;
    padding: 2px 0 2px 4px;
}

.pbm-logi-timeline > li {
    position: relative;
    padding: 0 0 16px 22px;
}

/* 竖线：除最后一条外都连下去 */
.pbm-logi-timeline > li::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 14px;
    bottom: -2px;
    width: 2px;
    background: var(--border);
}

.pbm-logi-timeline > li:last-child::before { display: none; }

.pbm-logi-dot {
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--card);
    border: 2px solid var(--border);
    box-sizing: border-box;
}

.pbm-logi-timeline > li.is-latest .pbm-logi-dot {
    background: var(--amber, #f59e0b);
    border-color: var(--amber, #f59e0b);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, .18);
    animation: pbmLogiPulse 2s var(--pbm-ease-out) infinite;
}

.pbm-logi-node { min-width: 0; }

.pbm-logi-note {
    margin: 0 0 3px;
    font-size: .84rem;
    line-height: 1.5;
    color: var(--text-body, var(--text));
    word-break: break-word;
}

.pbm-logi-timeline > li.is-latest .pbm-logi-note { color: var(--text); font-weight: 600; }

.pbm-logi-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: .74rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.pbm-logi-meta > time { font-variant-numeric: tabular-nums; }

.pbm-logi-src {
    font-style: normal;
    padding: 0 6px;
    border-radius: var(--radius-xs);
    background: var(--soft);
    color: var(--text-light);
    font-size: .7rem;
}

.pbm-logi-src.is-auto { background: var(--blue-bg); color: var(--blue); }

/* 已签收：整条时间线转绿，一眼看出「完事了」 */
.pbm-logi-body.is-done .pbm-logi-timeline > li::before { background: var(--green-bg); }
.pbm-logi-body.is-done .pbm-logi-dot { border-color: var(--green); }

.pbm-logi-body .pbm-empty { margin: 6px 0; }

.pbm-logi-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.pbm-logi-tip { flex: 1 1 auto; min-width: 0; font-size: .74rem; color: var(--text-light); }
.pbm-logi-time { font-size: .72rem; color: var(--text-light); white-space: nowrap; }
.pbm-logi-foot .pbm-btn { margin-top: 0; flex: none; }

/* 记录行里的物流摘要（商城订单 / 转盘记录） */
em.pbm-logi-state {
    font-style: normal;
    padding: 1px 8px;
    border-radius: var(--radius-pill);
    background: var(--soft);
    color: var(--text-light);
    font-size: .72rem;
}

@keyframes pbmLogiPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(245, 158, 11, .18); }
    50%      { box-shadow: 0 0 0 7px rgba(245, 158, 11, .06); }
}

@media (max-width: 640px) {
    .pbm-logi-head { flex-direction: column; align-items: flex-start; }
    .pbm-logi-foot { flex-direction: column; align-items: stretch; }
    .pbm-logi-time { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    .pbm-logi-timeline > li.is-latest .pbm-logi-dot { animation: none; }
}
