/* ============================================================
   dz API · DZ LIQUID DESKTOP
   ------------------------------------------------------------
   新骨架：QQ / 微信电脑版式悬浮窗口 + 手机微信式全屏壳。
   只覆盖视觉与布局，不改业务页面组件。
   ============================================================ */

:root,
html[data-theme="dark"] {
    --dz-bg: #05070d;
    --dz-window: rgba(8, 13, 24, .72);
    --dz-panel: rgba(12, 20, 36, .58);
    --dz-panel-strong: rgba(10, 17, 31, .86);
    --dz-line: rgba(137, 199, 255, .17);
    --dz-line-hot: rgba(111, 225, 255, .46);
    --dz-text: #eef7ff;
    --dz-text-soft: #a8bbd4;
    --dz-text-dim: #6f829c;
    --dz-cyan: #67e8ff;
    --dz-blue: #4f8cff;
    --dz-violet: #a78bfa;
    --dz-pink: #ff8fd8;
    --dz-green: #35e0a1;
    --dz-wechat: #07c160;
    --dz-shadow: 0 42px 120px rgba(0, 0, 0, .62), 0 0 0 1px rgba(255, 255, 255, .04) inset;
    --dz-card: linear-gradient(145deg, rgba(24, 38, 62, .52), rgba(8, 14, 27, .32));
    --dz-card-hover: linear-gradient(145deg, rgba(34, 55, 88, .62), rgba(10, 18, 34, .40));
    --dz-grid: rgba(96, 178, 255, .075);
    --dz-glow-a: rgba(48, 137, 255, .30);
    --dz-glow-b: rgba(122, 87, 255, .22);
    --dz-glow-c: rgba(0, 255, 208, .14);
}

html[data-theme="light"] {
    --dz-bg: #eaf2fb;
    --dz-window: rgba(255, 255, 255, .72);
    --dz-panel: rgba(255, 255, 255, .58);
    --dz-panel-strong: rgba(255, 255, 255, .88);
    --dz-line: rgba(30, 91, 165, .16);
    --dz-line-hot: rgba(0, 130, 220, .42);
    --dz-text: #0a1c33;
    --dz-text-soft: #526b86;
    --dz-text-dim: #7a8da4;
    --dz-cyan: #007fa8;
    --dz-blue: #006fe6;
    --dz-violet: #6a4de0;
    --dz-pink: #c84a9d;
    --dz-green: #07865f;
    --dz-wechat: #07c160;
    --dz-shadow: 0 34px 100px rgba(26, 63, 112, .24), 0 0 0 1px rgba(255, 255, 255, .74) inset;
    --dz-card: linear-gradient(145deg, rgba(255, 255, 255, .82), rgba(240, 247, 255, .62));
    --dz-card-hover: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(235, 245, 255, .76));
    --dz-grid: rgba(35, 100, 180, .07);
    --dz-glow-a: rgba(0, 132, 255, .20);
    --dz-glow-b: rgba(108, 80, 220, .14);
    --dz-glow-c: rgba(0, 190, 150, .12);
}

* { scrollbar-width: thin; scrollbar-color: rgba(120, 190, 255, .30) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: linear-gradient(180deg, rgba(120, 220, 255, .45), rgba(120, 140, 255, .28));
    border: 2px solid transparent;
    background-clip: padding-box;
}

html { background: var(--dz-bg); }

body {
    background:
        radial-gradient(1100px 760px at 12% -8%, var(--dz-glow-a), transparent 60%),
        radial-gradient(900px 680px at 92% 6%, var(--dz-glow-b), transparent 60%),
        radial-gradient(800px 620px at 50% 110%, var(--dz-glow-c), transparent 64%),
        linear-gradient(178deg, #050810 0%, #070d18 48%, #04060b 100%);
    background-attachment: fixed;
    color: var(--dz-text);
}

html[data-theme="light"] body {
    background:
        radial-gradient(1000px 700px at 10% -10%, var(--dz-glow-a), transparent 60%),
        radial-gradient(900px 680px at 94% 4%, var(--dz-glow-b), transparent 58%),
        radial-gradient(800px 600px at 50% 110%, var(--dz-glow-c), transparent 66%),
        linear-gradient(178deg, #f4f9ff 0%, #e8f2fc 52%, #f7fbff 100%);
}

body::before {
    background-image:
        linear-gradient(var(--dz-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--dz-grid) 1px, transparent 1px);
    background-size: 56px 56px;
    opacity: .9;
}

body::after { display: none; }

/* ============================================================
   总壳与极光背景
   ============================================================ */

.dz-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px;
    isolation: isolate;
}

.dz-aurora {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.dz-aurora span {
    position: absolute;
    border-radius: 999px;
    filter: blur(14px);
    will-change: transform;
}

.dz-aurora__a {
    width: 42vw;
    height: 42vw;
    left: -10vw;
    top: -12vw;
    background: radial-gradient(circle at 35% 35%, rgba(54, 142, 255, .52), rgba(54, 142, 255, 0) 68%);
    animation: dzOrbit 22s ease-in-out infinite alternate;
}

.dz-aurora__b {
    width: 38vw;
    height: 38vw;
    right: -8vw;
    top: 0;
    background: radial-gradient(circle at 45% 50%, rgba(137, 92, 255, .38), rgba(137, 92, 255, 0) 68%);
    animation: dzOrbit 28s ease-in-out infinite alternate-reverse;
}

.dz-aurora__c {
    width: 46vw;
    height: 30vw;
    left: 30%;
    bottom: -16vw;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 200, .18), rgba(0, 255, 200, 0) 70%);
    animation: dzOrbit 26s ease-in-out infinite alternate;
}

.dz-aurora__grid {
    inset: 0;
    border-radius: 0;
    background-image:
        linear-gradient(rgba(130, 200, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(130, 200, 255, .045) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 12%, transparent 76%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 12%, transparent 76%);
    filter: none;
}

@keyframes dzOrbit {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(3vw, 2vw, 0) scale(1.08); }
}

/* ============================================================
   桌面软件窗口
   ============================================================ */

.dz-window {
    position: relative;
    width: min(1480px, 100%);
    height: min(980px, calc(100dvh - 52px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(160, 218, 255, .24);
    background:
        linear-gradient(150deg, rgba(15, 26, 46, .78), rgba(5, 9, 18, .70));
    box-shadow: var(--dz-shadow);
    backdrop-filter: blur(36px) saturate(155%);
    -webkit-backdrop-filter: blur(36px) saturate(155%);
    transition: width .28s cubic-bezier(.2, .8, .2, 1), height .28s cubic-bezier(.2, .8, .2, 1), border-radius .28s ease;
}

.dz-window::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url('/assets/img/anime/dz-hero.webp') 88% 14% / cover no-repeat;
    opacity: .10;
    filter: blur(26px) saturate(1.55) contrast(1.05);
    transform: scale(1.08);
    mix-blend-mode: screen;
}

.dz-window::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, .08) 21%, transparent 38%),
        radial-gradient(80% 40% at 50% -10%, rgba(120, 220, 255, .12), transparent 65%);
    opacity: .75;
    animation: dzSheen 12s ease-in-out infinite alternate;
}

@keyframes dzSheen {
    0% { transform: translate3d(-2%, 0, 0); }
    100% { transform: translate3d(2%, 1%, 0); }
}

html[data-theme="light"] .dz-window {
    background: linear-gradient(150deg, rgba(255, 255, 255, .78), rgba(239, 247, 255, .68));
    border-color: rgba(255, 255, 255, .82);
}

html[data-theme="light"] .dz-window::before { opacity: .07; mix-blend-mode: multiply; }

.dz-window.is-maximized {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    border: 0;
}

.dz-window.is-minimized {
    height: 54px;
    min-height: 54px;
}

.dz-window.is-minimized .dz-body { display: none; }

/* ---------- 标题栏 ---------- */

.dz-titlebar {
    position: relative;
    z-index: 5;
    height: 54px;
    flex: 0 0 54px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 14px;
    border-bottom: 1px solid var(--dz-line);
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .015));
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
}

html[data-theme="light"] .dz-titlebar {
    background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .30));
}

.dz-traffic {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: none;
}

.dz-traffic__dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .18) inset, 0 0 12px currentColor;
    transition: transform .14s ease, filter .14s ease;
}

.dz-traffic__dot:hover { transform: scale(1.22); filter: brightness(1.2); }
.dz-traffic__dot--red { background: #ff625f; color: #ff625f; }
.dz-traffic__dot--yellow { background: #ffc14d; color: #ffc14d; }
.dz-traffic__dot--green { background: #35d47e; color: #35d47e; }

.dz-titlebar__brand {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: none;
    min-width: 0;
}

.dz-logo {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -.05em;
    background: linear-gradient(145deg, #67e8ff, #4f8cff 52%, #a78bfa);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .20) inset, 0 8px 24px rgba(70, 160, 255, .35);
}

.dz-titlebar__name {
    font-size: 13.5px;
    font-weight: 750;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.dz-titlebar__ver {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .16em;
    color: var(--dz-text-dim);
    border: 1px solid var(--dz-line);
    border-radius: 99px;
    padding: 2px 7px;
    background: rgba(255, 255, 255, .035);
}

.dz-titlebar__search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: clamp(220px, 28vw, 440px);
    height: 32px;
    margin: 0 auto;
    padding: 0 10px;
    border-radius: 99px;
    border: 1px solid var(--dz-line);
    background: rgba(4, 10, 20, .32);
    color: var(--dz-text-dim);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

html[data-theme="light"] .dz-titlebar__search { background: rgba(255, 255, 255, .56); }

.dz-titlebar__search:focus-within {
    border-color: var(--dz-line-hot);
    box-shadow: 0 0 0 3px rgba(80, 190, 255, .10), 0 0 28px rgba(80, 190, 255, .14);
}

.dz-titlebar__search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--dz-text);
    font-size: 12px;
}

.dz-titlebar__search input::placeholder { color: var(--dz-text-dim); }

.dz-titlebar__search kbd {
    flex: none;
    font-size: 9px;
    font-family: var(--mono);
    color: var(--dz-text-dim);
    border: 1px solid var(--dz-line);
    border-radius: 5px;
    padding: 2px 5px;
    background: rgba(255, 255, 255, .04);
}

.dz-titlebar__right {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: none;
}

.dz-online {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 9px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 600;
    color: var(--dz-text-soft);
    border: 1px solid var(--dz-line);
    background: rgba(255, 255, 255, .035);
}

.dz-live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dz-green);
    box-shadow: 0 0 0 3px rgba(53, 224, 161, .12), 0 0 14px rgba(53, 224, 161, .8);
    animation: dzPulse 3.2s ease-in-out infinite;
}

@keyframes dzPulse {
    0%, 100% { opacity: .75; transform: scale(.92); }
    50% { opacity: 1; transform: scale(1.06); }
}

.dz-titlebar__icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--dz-text-soft);
    cursor: pointer;
    transition: background .14s ease, color .14s ease, border-color .14s ease;
}

.dz-titlebar__icon:hover {
    color: var(--dz-cyan);
    border-color: var(--dz-line);
    background: rgba(255, 255, 255, .06);
}

.dz-titlebar__avatar {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(140, 210, 255, .34);
    border-radius: 11px;
    overflow: hidden;
    background: #0a1526;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .10) inset, 0 0 18px rgba(90, 180, 255, .22);
}

.dz-titlebar__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 三栏主体 ---------- */

.dz-body {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 78px 252px minmax(0, 1fr) 300px;
}

.dz-dock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 8px 12px;
    border-right: 1px solid var(--dz-line);
    background: linear-gradient(180deg, rgba(6, 12, 24, .54), rgba(5, 8, 16, .34));
}

html[data-theme="light"] .dz-dock { background: linear-gradient(180deg, rgba(255, 255, 255, .60), rgba(240, 247, 255, .36)); }

.dz-dock__logo {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 15px;
    background: linear-gradient(145deg, #67e8ff, #4f8cff 52%, #a78bfa);
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.06em;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(70, 160, 255, .32), 0 0 0 1px rgba(255, 255, 255, .20) inset;
    transition: transform .18s ease, box-shadow .18s ease;
}

.dz-dock__logo:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 36px rgba(70, 160, 255, .46); }

.dz-dock__stack {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-top: 8px;
}

.dz-dock__item {
    width: 100%;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 2px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;
    color: var(--dz-text-dim);
    cursor: pointer;
    transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}

.dz-dock__item span { font-size: 9px; line-height: 1; letter-spacing: .03em; }

.dz-dock__item:hover {
    color: var(--dz-text);
    background: rgba(255, 255, 255, .055);
    border-color: var(--dz-line);
}

.dz-dock__item.is-active {
    color: var(--dz-cyan);
    background: linear-gradient(145deg, rgba(80, 190, 255, .16), rgba(120, 100, 255, .08));
    border-color: rgba(100, 215, 255, .34);
    box-shadow: 0 0 22px rgba(60, 170, 255, .14) inset;
}

.dz-dock__foot { flex: none; }

.dz-dock__avatar {
    position: relative;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(140, 210, 255, .34);
    border-radius: 50%;
    overflow: visible;
    background: #0a1526;
    cursor: pointer;
}

.dz-dock__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.dz-dock__avatar .dz-live-dot { position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; }

/* ---------- 联系人栏 ---------- */

.dz-rail {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-right: 1px solid var(--dz-line);
    background: linear-gradient(180deg, var(--dz-panel), rgba(5, 9, 18, .30));
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
}

html[data-theme="light"] .dz-rail { background: linear-gradient(180deg, rgba(255, 255, 255, .66), rgba(244, 249, 255, .40)); }

.dz-rail__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 14px 12px;
}

.dz-rail__avatar {
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(150, 220, 255, .34);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .10) inset, 0 0 22px rgba(90, 180, 255, .2);
}

.dz-rail__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.dz-rail__me { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.dz-rail__me strong { font-size: 13.5px; font-weight: 750; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-rail__me span { font-size: 10px; color: var(--dz-text-dim); letter-spacing: .04em; }

.dz-rail__close {
    display: none;
    width: 30px;
    height: 30px;
    border: 1px solid var(--dz-line);
    border-radius: 9px;
    background: transparent;
    color: var(--dz-text-soft);
    cursor: pointer;
}

.dz-rail__level {
    position: relative;
    height: 5px;
    margin: 0 14px 11px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .07);
    overflow: hidden;
}

.dz-rail__level span {
    display: block;
    width: 64%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--dz-cyan), var(--dz-blue), var(--dz-violet));
    box-shadow: 0 0 14px rgba(90, 210, 255, .45);
}

.dz-rail__level em {
    position: absolute;
    right: 0;
    top: -14px;
    font-style: normal;
    font-size: 8px;
    letter-spacing: .14em;
    color: var(--dz-text-dim);
}

.dz-rail__status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 14px 11px;
    font-size: 10px;
    color: var(--dz-text-dim);
}

.dz-rail__status > span:first-child { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.dz-rail__status-ver { flex: none; font-family: var(--mono); font-size: 9px; }

.dz-rail__search {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 32px;
    margin: 0 12px 10px;
    padding: 0 10px;
    border: 1px solid var(--dz-line);
    border-radius: 10px;
    background: rgba(4, 10, 20, .26);
    color: var(--dz-text-dim);
}

html[data-theme="light"] .dz-rail__search { background: rgba(255, 255, 255, .56); }

.dz-rail__search:focus-within {
    border-color: var(--dz-line-hot);
    box-shadow: 0 0 0 3px rgba(80, 190, 255, .08);
}

.dz-rail__search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--dz-text);
    font-size: 11.5px;
}

.dz-rail__search input::placeholder { color: var(--dz-text-dim); }

.dz-rail__nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 8px 10px;
}

.dz-navgroup { margin-bottom: 8px; }

.dz-navgroup__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 7px 5px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .13em;
    color: var(--dz-text-dim);
    text-transform: uppercase;
}

.dz-navgroup__label em {
    font-style: normal;
    font-family: var(--mono);
    font-size: 8.5px;
    color: var(--dz-text-dim);
    opacity: .8;
}

.dz-contact {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 8px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--dz-text-soft);
    text-align: left;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease, color .15s ease;
}

.dz-contact:hover {
    background: rgba(255, 255, 255, .055);
    border-color: var(--dz-line);
    transform: translateX(2px);
}

.dz-contact.is-active {
    background:
        linear-gradient(120deg, rgba(80, 190, 255, .16), rgba(120, 100, 255, .10));
    border-color: rgba(100, 215, 255, .34);
    color: var(--dz-text);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14), 0 0 24px rgba(60, 170, 255, .10) inset;
}

.dz-contact.is-active::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--dz-cyan), var(--dz-violet));
    box-shadow: 0 0 12px rgba(100, 220, 255, .6);
}

.dz-contact__icon {
    width: 32px;
    height: 32px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--dz-cyan);
    background: rgba(80, 190, 255, .09);
    border: 1px solid rgba(100, 210, 255, .16);
}

.dz-contact__text { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 1px; }
.dz-contact__text strong { font-size: 11.5px; font-weight: 650; line-height: 1.25; color: var(--dz-text); }
.dz-contact__text small { font-size: 9.5px; line-height: 1.3; color: var(--dz-text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dz-contact__now {
    flex: none;
    font-style: normal;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--dz-cyan);
    border: 1px solid rgba(100, 220, 255, .30);
    border-radius: 99px;
    padding: 2px 5px;
    background: rgba(80, 190, 255, .08);
}

.dz-rail__empty { padding: 22px 10px; text-align: center; font-size: 11px; color: var(--dz-text-dim); }

.dz-rail__foot {
    flex: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 13px;
    border-top: 1px solid var(--dz-line);
    font-size: 9.5px;
    color: var(--dz-text-dim);
}

.dz-rail__foot-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--dz-green); box-shadow: 0 0 8px rgba(53, 224, 161, .8); }
.dz-rail__foot a { margin-left: auto; color: var(--dz-text-soft); }
.dz-rail__foot a:hover { color: var(--dz-cyan); }

/* ---------- 主区 ---------- */

.dz-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background:
        radial-gradient(70% 40% at 50% 0%, rgba(90, 180, 255, .06), transparent 70%),
        linear-gradient(180deg, rgba(8, 15, 28, .30), rgba(4, 8, 16, .18));
}

html[data-theme="light"] .dz-main { background: linear-gradient(180deg, rgba(255, 255, 255, .30), rgba(248, 251, 255, .18)); }

.dz-chathead {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--dz-line);
    background: linear-gradient(180deg, rgba(255, 255, 255, .045), transparent);
}

html[data-theme="light"] .dz-chathead { background: linear-gradient(180deg, rgba(255, 255, 255, .50), transparent); }

.dz-chathead__mark {
    width: 46px;
    height: 46px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: var(--dz-cyan);
    border: 1px solid rgba(110, 220, 255, .30);
    background: linear-gradient(145deg, rgba(80, 190, 255, .18), rgba(120, 100, 255, .08));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 0 26px rgba(60, 170, 255, .16);
}

.dz-chathead__text { min-width: 0; flex: 1 1 auto; }
.dz-chathead__eyebrow { font-size: 8.5px; font-weight: 700; letter-spacing: .16em; color: var(--dz-text-dim); text-transform: uppercase; }
.dz-chathead__text h1 { margin-top: 2px; font-size: 20px; line-height: 1.2; font-weight: 780; letter-spacing: -.035em; }
.dz-chathead__text p { margin-top: 2px; font-size: 11px; color: var(--dz-text-soft); }

.dz-chathead__actions { display: flex; align-items: center; gap: 7px; flex: none; }

.dz-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 10px;
    border-radius: 99px;
    font-size: 9.5px;
    font-weight: 600;
    color: var(--dz-text-soft);
    border: 1px solid var(--dz-line);
    background: rgba(255, 255, 255, .04);
}

.dz-ghostbtn {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--dz-text-soft);
    cursor: pointer;
    transition: color .14s ease, background .14s ease, border-color .14s ease;
}

.dz-ghostbtn:hover { color: var(--dz-cyan); border-color: var(--dz-line); background: rgba(255, 255, 255, .055); }

.dz-page-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 20px 28px;
    scroll-behavior: smooth;
}

/* ============================================================
   页面内容重皮肤：卡片 = 液态玻璃
   ============================================================ */

.dz-page-scroll .page-head {
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 12px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.dz-page-scroll .page-head__main { display: none; }
.dz-page-scroll .page-head__actions { gap: 8px; }

.dz-page-scroll .card,
.dz-page-scroll .stat,
.dz-page-scroll .provider,
.dz-page-scroll .persona-card,
.dz-page-scroll .account-card {
    background: var(--dz-card);
    border: 1px solid var(--dz-line);
    box-shadow:
        0 14px 44px rgba(0, 0, 0, .22),
        0 0 0 1px rgba(255, 255, 255, .035) inset,
        0 1px 0 rgba(255, 255, 255, .08) inset;
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
}

html[data-theme="light"] .dz-page-scroll .card,
html[data-theme="light"] .dz-page-scroll .stat,
html[data-theme="light"] .dz-page-scroll .provider,
html[data-theme="light"] .dz-page-scroll .persona-card,
html[data-theme="light"] .dz-page-scroll .account-card {
    box-shadow: 0 12px 36px rgba(24, 62, 110, .10), 0 0 0 1px rgba(255, 255, 255, .70) inset;
}

.dz-page-scroll .card {
    position: relative;
    border-radius: 20px;
    transition: transform .20s cubic-bezier(.2, .8, .2, 1), border-color .20s ease, box-shadow .20s ease, background .20s ease;
}

.dz-page-scroll .card::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: -1px;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(130, 225, 255, .64), rgba(170, 140, 255, .34), transparent);
    opacity: .8;
}

.dz-page-scroll .card:hover {
    transform: translateY(-2px);
    border-color: rgba(120, 215, 255, .32);
    background: var(--dz-card-hover);
    box-shadow: 0 22px 64px rgba(0, 0, 0, .28), 0 0 30px rgba(55, 160, 255, .10), 0 1px 0 rgba(255, 255, 255, .10) inset;
}

html[data-theme="light"] .dz-page-scroll .card:hover { box-shadow: 0 20px 54px rgba(24, 62, 110, .16); }

.dz-page-scroll .card__head { border-bottom-color: var(--dz-line); }
.dz-page-scroll .card__title { font-size: 14.5px; font-weight: 750; letter-spacing: -.02em; }
.dz-page-scroll .card__sub { color: var(--dz-text-dim); }

.dz-page-scroll .stat {
    position: relative;
    border-radius: 16px;
    padding: 14px 14px 13px 17px;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.dz-page-scroll .stat:hover { transform: translateY(-2px); border-color: rgba(120, 215, 255, .30); }
.dz-page-scroll .stat::after {
    width: 4px;
    background: linear-gradient(180deg, var(--dz-cyan), var(--dz-blue), var(--dz-violet));
    box-shadow: 0 0 18px rgba(80, 200, 255, .36);
}
.dz-page-scroll .stat__value { font-size: 22px; letter-spacing: -.03em; }
.dz-page-scroll .stat__label { color: var(--dz-text-soft); }

.dz-page-scroll .grid--stats { grid-template-columns: repeat(auto-fill, minmax(166px, 1fr)); gap: 12px; }
.dz-page-scroll .grid { gap: 13px; }

/* 浅色主题按钮：深字 + 清晰描边，避免白底白字 */
html[data-theme="light"] .btn {
    color: #0a1c33;
}
html[data-theme="light"] .btn:not(.btn--primary):not(.btn--danger):not(.btn--ghost) {
    background: #ffffff;
    border-color: rgba(30, 91, 165, .26);
    box-shadow: 0 1px 2px rgba(16, 42, 76, .06), 0 1px 0 rgba(255, 255, 255, .92) inset;
}
html[data-theme="light"] .btn:not(.btn--primary):not(.btn--danger):not(.btn--ghost):hover {
    background: #f5f9ff;
    border-color: rgba(0, 120, 220, .38);
    box-shadow: 0 6px 18px rgba(20, 80, 160, .10);
}
html[data-theme="light"] .btn--danger {
    background: #fff3f2;
    border-color: #efb9b3;
    color: #b42318;
}
html[data-theme="light"] .btn--danger:hover { background: #ffe9e7; border-color: #e39a92; }
html[data-theme="light"] .btn--ghost { color: #41556e; background: transparent; border-color: transparent; }
html[data-theme="light"] .btn:disabled:not(.btn--primary) {
    opacity: 1;
    color: #5b6b7d;
    background: #f2f6fb;
    border-color: #dfe7f0;
    box-shadow: none;
}
html[data-theme="light"] .btn--danger:disabled {
    color: #b42318;
    background: #fff3f2;
    border-color: #efb9b3;
}
html[data-theme="light"] .btn--primary:disabled { opacity: .78; }

.dz-page-scroll .btn {
    border-color: var(--dz-line);
    background: rgba(255, 255, 255, .045);
    color: var(--dz-text);
    border-radius: 10px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset;
    transition: transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease;
}

html[data-theme="light"] .dz-page-scroll .btn:not(.btn--primary):not(.btn--danger):not(.btn--ghost) { background: rgba(255, 255, 255, .68); }

.dz-page-scroll .btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .09);
    border-color: rgba(120, 215, 255, .30);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .16), 0 0 16px rgba(70, 180, 255, .08);
}

.dz-page-scroll .btn--primary {
    background: linear-gradient(135deg, #5be3ff 0%, #4f8cff 46%, #9878ff 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 28px rgba(70, 140, 255, .30), 0 1px 0 rgba(255, 255, 255, .22) inset;
}

.dz-page-scroll .btn--primary:hover { filter: brightness(1.06); border-color: transparent; }
html[data-theme="light"] .dz-page-scroll .btn--primary,
html[data-theme="dark"] .dz-page-scroll .btn--primary { color: #ffffff !important; }
html[data-theme="light"] .dz-page-scroll .btn--primary:disabled { color: #ffffff !important; opacity: .78; }

.dz-page-scroll .btn--ghost { background: transparent; border-color: transparent; }
.dz-page-scroll .btn--ghost:hover { background: rgba(255, 255, 255, .06); border-color: transparent; }

.dz-page-scroll .input,
.dz-page-scroll .select,
.dz-page-scroll .textarea {
    border-color: var(--dz-line);
    border-radius: 10px;
    background: rgba(4, 10, 20, .30);
    color: var(--dz-text);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset;
}

html[data-theme="light"] .dz-page-scroll .input,
html[data-theme="light"] .dz-page-scroll .select,
html[data-theme="light"] .dz-page-scroll .textarea { background: rgba(255, 255, 255, .66); }

.dz-page-scroll .input:focus,
.dz-page-scroll .select:focus,
.dz-page-scroll .textarea:focus {
    border-color: var(--dz-line-hot);
    box-shadow: 0 0 0 3px rgba(80, 190, 255, .10), 0 0 24px rgba(80, 190, 255, .10);
}

.dz-page-scroll .field__label { color: var(--dz-text-soft); letter-spacing: .01em; }
.dz-page-scroll .field__hint { color: var(--dz-text-dim); }

.dz-page-scroll .note {
    border-radius: 12px;
    background: rgba(80, 190, 255, .06);
    border-color: rgba(100, 210, 255, .18);
}

.dz-page-scroll .table th {
    background: rgba(255, 255, 255, .035);
    color: var(--dz-text-soft);
    border-bottom-color: var(--dz-line);
}

.dz-page-scroll .table td { border-bottom-color: rgba(120, 190, 255, .10); }
.dz-page-scroll .table tr:hover td { background: rgba(80, 190, 255, .055); }
.dz-page-scroll .table__wrap { border-radius: 14px; }

.dz-page-scroll .badge {
    border-radius: 99px;
    border-color: var(--dz-line);
    background: rgba(255, 255, 255, .04);
}

.dz-page-scroll .pager { color: var(--dz-text-dim); }

/* 手机顶栏 / 底部 Tab（桌面隐藏） */
.dz-mobile-head,
.dz-mobile-tabs { display: none; }
.dz-scrim { display: none; }

/* ============================================================
   右侧二次元舞台
   ============================================================ */

.dz-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-left: 1px solid var(--dz-line);
    background: linear-gradient(180deg, rgba(7, 13, 26, .55), rgba(5, 9, 18, .32));
}

.dz-stage__art {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.dz-stage__art::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 8, 16, .06) 0%, rgba(4, 8, 16, .18) 45%, rgba(4, 8, 16, .78) 100%),
        linear-gradient(90deg, rgba(4, 8, 16, .55), transparent 32%);
}

html[data-theme="light"] .dz-stage__art::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .18) 45%, rgba(255, 255, 255, .68));
}

.dz-stage__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.03);
    filter: saturate(1.12) contrast(1.04);
}

.dz-stage__scan {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(120, 220, 255, .035) 3px 4px);
    mix-blend-mode: screen;
    opacity: .55;
}

.dz-stage__float {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border: 1px solid rgba(160, 230, 255, .28);
    border-radius: 99px;
    background: rgba(5, 12, 24, .54);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #c8f5ff;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .12em;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

.dz-stage__float span { width: 5px; height: 5px; border-radius: 50%; background: var(--dz-cyan); box-shadow: 0 0 10px var(--dz-cyan); }
.dz-stage__float--a { left: 16px; top: 18%; animation: dzFloat 5.2s ease-in-out infinite; }
.dz-stage__float--b { right: 14px; top: 43%; animation: dzFloat 6.4s ease-in-out infinite reverse; }

@keyframes dzFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

.dz-stage__copy {
    position: relative;
    z-index: 4;
    margin: -84px 14px 0;
    padding: 14px 14px 12px;
    border: 1px solid rgba(150, 220, 255, .24);
    border-radius: 16px;
    background: linear-gradient(150deg, rgba(12, 24, 42, .76), rgba(6, 11, 20, .62));
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 16px 46px rgba(0, 0, 0, .34), 0 1px 0 rgba(255, 255, 255, .08) inset;
}

html[data-theme="light"] .dz-stage__copy { background: linear-gradient(150deg, rgba(255, 255, 255, .88), rgba(240, 247, 255, .72)); }

.dz-stage__tag { font-size: 8px; font-weight: 800; letter-spacing: .16em; color: var(--dz-cyan); }
.dz-stage__copy h2 { margin-top: 6px; font-size: 17px; line-height: 1.3; font-weight: 780; letter-spacing: -.035em; }
.dz-stage__copy p { margin-top: 6px; font-size: 10px; line-height: 1.65; color: var(--dz-text-soft); }

.dz-stage__quick {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 12px 14px;
}

.dz-stage__quick button {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--dz-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
    color: var(--dz-text-soft);
    font-size: 10.5px;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

html[data-theme="light"] .dz-stage__quick button { background: rgba(255, 255, 255, .54); }
.dz-stage__quick button span { flex: 1 1 auto; }
.dz-stage__quick button:hover { transform: translateX(2px); color: var(--dz-text); border-color: rgba(120, 215, 255, .32); background: rgba(80, 190, 255, .08); }

.dz-stage__foot {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px 12px;
    font-size: 8px;
    letter-spacing: .12em;
    color: var(--dz-text-dim);
    border-top: 1px solid var(--dz-line);
}

/* ============================================================
   未登录舞台
   ============================================================ */

.dz-guest {
    position: relative;
    width: min(1280px, 100%);
    height: min(780px, calc(100dvh - 52px));
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr);
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(160, 218, 255, .24);
    background: rgba(6, 11, 22, .72);
    box-shadow: var(--dz-shadow);
    backdrop-filter: blur(30px) saturate(155%);
    -webkit-backdrop-filter: blur(30px) saturate(155%);
}

html[data-theme="light"] .dz-guest { background: rgba(255, 255, 255, .66); border-color: rgba(255, 255, 255, .82); }

.dz-guest:has(.segbar__item.is-active:nth-child(2)) {
    height: auto;
    min-height: min(780px, calc(100dvh - 52px));
    overflow: visible;
}


.dz-guest__art { position: relative; overflow: hidden; min-height: 0; }
.dz-guest__hero { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); filter: saturate(1.1); }
.dz-guest__art::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 8, 16, .04), rgba(4, 8, 16, .18) 50%, rgba(4, 8, 16, .88)),
        linear-gradient(90deg, transparent 45%, rgba(4, 8, 16, .45));
}
html[data-theme="light"] .dz-guest__art::after {
    background: linear-gradient(180deg, rgba(6, 10, 20, .02), rgba(6, 10, 20, .28) 44%, rgba(6, 10, 20, .88)), linear-gradient(90deg, transparent 40%, rgba(6, 10, 20, .34));
}
.dz-guest__art-glow {
    position: absolute;
    z-index: 2;
    width: 50%;
    aspect-ratio: 1;
    left: -12%;
    bottom: -12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(90, 210, 255, .42), transparent 68%);
    filter: blur(20px);
}
.dz-guest__badge {
    position: absolute;
    z-index: 3;
    left: 24px;
    top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid rgba(150, 225, 255, .30);
    border-radius: 99px;
    background: rgba(4, 10, 20, .48);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #c8f5ff;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .15em;
}
.dz-guest__copy { position: absolute; z-index: 3; left: 30px; right: 30px; bottom: 30px; }
.dz-guest__kicker { font-size: 9px; font-weight: 800; letter-spacing: .22em; color: #8defff; }
.dz-guest__copy h2 { margin-top: 8px; font-size: clamp(24px, 3vw, 42px); line-height: 1.12; font-weight: 820; letter-spacing: -.05em; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .55), 0 14px 44px rgba(0, 0, 0, .60); }
.dz-guest__copy p { margin-top: 10px; font-size: 11px; color: rgba(230, 245, 255, .88); letter-spacing: .04em; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }

.dz-guest__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    padding: 34px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    background: linear-gradient(160deg, rgba(10, 19, 34, .58), rgba(5, 9, 18, .34));
    border-left: 1px solid var(--dz-line);
}

html[data-theme="light"] .dz-guest__panel { background: linear-gradient(160deg, rgba(255, 255, 255, .76), rgba(242, 248, 255, .50)); }

.dz-guest__window-dots {
    position: absolute;
    left: 22px;
    top: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .13em;
    color: var(--dz-text-dim);
}
.dz-guest__window-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.dz-guest__window-dots i:nth-child(1) { background: #ff625f; }
.dz-guest__window-dots i:nth-child(2) { background: #ffc14d; }
.dz-guest__window-dots i:nth-child(3) { background: #35d47e; }
.dz-guest__window-dots span { margin-left: 6px; }

.dz-guest__panel .login-wrap { flex: 0 0 auto; min-height: 0; padding: 0; background: transparent; margin-block: auto; }
.dz-guest__panel .login-wrap::before,
.dz-guest__panel .login-wrap::after { display: none; }
.dz-guest__panel .login-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 30px 26px 24px;
    border-radius: 20px;
    background: linear-gradient(155deg, rgba(18, 32, 54, .76), rgba(6, 12, 22, .62));
    border-color: rgba(140, 210, 255, .30);
}
html[data-theme="light"] .dz-guest__panel .login-card { background: linear-gradient(155deg, rgba(255, 255, 255, .90), rgba(240, 247, 255, .78)); }
.dz-guest__panel .login-card__title { font-size: 25px; }
.dz-guest__panel .login-card__desc { margin-bottom: 18px; }

/* ============================================================
   手机微信式全屏壳
   ============================================================ */

@media (max-width: 1024px), (max-width: 1440px) and (hover: none) {
    body { background-attachment: scroll; }

    .dz-shell { padding: 0; display: block; min-height: 100dvh; }

    .dz-window,
    .dz-window.is-maximized {
        width: 100%;
        height: 100dvh;
        min-height: 100dvh;
        border-radius: 0;
        border: 0;
        box-shadow: none;
        background: #ededed;
    }

    html[data-theme="dark"] .dz-window,
    html[data-theme="dark"] .dz-window.is-maximized { background: #0d1117; }

    .dz-window::before { opacity: .035; background-position: 80% 10%; }
    .dz-window::after { display: none; }
    .dz-titlebar { display: none; }

    .dz-body { display: block; height: 100%; }

    .dz-dock { display: none; }

    .dz-rail {
        position: fixed;
        z-index: 100;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(84vw, 330px);
        border-right: 1px solid var(--dz-line);
        border-radius: 0 18px 18px 0;
        transform: translateX(-104%);
        transition: transform .26s cubic-bezier(.2, .8, .2, 1);
        background: linear-gradient(180deg, rgba(10, 18, 32, .98), rgba(6, 10, 18, .97));
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: 28px 0 70px rgba(0, 0, 0, .32);
    }

    html[data-theme="light"] .dz-rail { background: linear-gradient(180deg, #ffffff, #f2f7fd); }

    .dz-rail.is-open { transform: translateX(0); }
    .dz-rail__close { display: grid; place-items: center; }

    .dz-scrim {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 95;
        background: rgba(3, 8, 15, .52);
        opacity: 0;
        visibility: hidden;
        transition: opacity .24s ease, visibility .24s ease;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }
    .dz-scrim.is-open { opacity: 1; visibility: visible; }

    .dz-main { height: 100%; min-height: 0; background: transparent; }

    .dz-chathead { display: none; }

    .dz-mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        flex: 0 0 auto;
        height: calc(50px + env(safe-area-inset-top));
        padding: env(safe-area-inset-top) 8px 0;
        border-bottom: 1px solid rgba(0, 0, 0, .06);
        background: rgba(247, 247, 247, .94);
        backdrop-filter: blur(18px) saturate(150%);
        -webkit-backdrop-filter: blur(18px) saturate(150%);
    }

    html[data-theme="dark"] .dz-mobile-head { background: rgba(22, 27, 34, .94); border-bottom-color: rgba(255, 255, 255, .07); }

    .dz-mobile-head__title { font-size: 15px; font-weight: 650; letter-spacing: -.02em; }
    .dz-mobile-head__btn {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 9px;
        background: transparent;
        color: var(--dz-text);
        cursor: pointer;
    }
    .dz-mobile-head__btn:active { background: rgba(0, 0, 0, .05); }

    .dz-page-scroll {
        height: calc(100dvh - 50px - 58px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        padding: 10px 10px 18px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dz-page-scroll .page-head { margin-bottom: 8px; }
    .dz-page-scroll .page-head__actions { width: 100%; justify-content: flex-end; }

    .dz-page-scroll .card,
    .dz-page-scroll .stat,
    .dz-page-scroll .provider,
    .dz-page-scroll .persona-card,
    .dz-page-scroll .account-card {
        background: #fff;
        border: 1px solid rgba(0, 0, 0, .055);
        border-radius: 14px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, .035);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    html[data-theme="dark"] .dz-page-scroll .card,
    html[data-theme="dark"] .dz-page-scroll .stat,
    html[data-theme="dark"] .dz-page-scroll .provider,
    html[data-theme="dark"] .dz-page-scroll .persona-card,
    html[data-theme="dark"] .dz-page-scroll .account-card {
        background: #161b22;
        border-color: rgba(255, 255, 255, .07);
    }

    .dz-page-scroll .card::before { display: none; }
    .dz-page-scroll .card:hover { transform: none; box-shadow: 0 1px 2px rgba(0, 0, 0, .035); background: #fff; }
    html[data-theme="dark"] .dz-page-scroll .card:hover { background: #161b22; }

    .dz-page-scroll .card + .card { margin-top: 9px; }
    .dz-page-scroll .card__head { padding: 12px 13px; }
    .dz-page-scroll .card__body { padding: 13px; }
    .dz-page-scroll .card__title { font-size: 14px; }

    .dz-page-scroll .grid { gap: 9px; }
    .dz-page-scroll .grid--stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .dz-page-scroll .stat { padding: 12px 11px 11px 14px; border-radius: 12px; }
    .dz-page-scroll .stat__value { font-size: 19px; }

    .dz-page-scroll .btn { border-radius: 8px; }
    html[data-theme="light"] .dz-page-scroll .btn:not(.btn--primary):not(.btn--danger) {
        color: #0a1c33 !important;
        background: #f7f9fc;
        border-color: #d7e1ec;
        box-shadow: 0 1px 2px rgba(16, 42, 76, .05);
    }
    html[data-theme="light"] .dz-page-scroll .btn--danger {
        color: #b42318 !important;
        background: #fff1f0;
        border-color: #f0b4ae;
    }
    html[data-theme="dark"] .dz-page-scroll .btn:not(.btn--primary):not(.btn--danger) {
        color: #eef7ff !important;
        background: #222b36;
        border-color: rgba(255, 255, 255, .14);
    }
    .dz-page-scroll .input, .dz-page-scroll .select, .dz-page-scroll .textarea {
        background: #f7f8fa;
        border-color: rgba(0, 0, 0, .08);
        border-radius: 9px;
    }
    html[data-theme="dark"] .dz-page-scroll .input,
    html[data-theme="dark"] .dz-page-scroll .select,
    html[data-theme="dark"] .dz-page-scroll .textarea { background: #0f141b; border-color: rgba(255, 255, 255, .09); }

    .dz-stage { display: none; }

    .dz-mobile-tabs {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        height: calc(58px + env(safe-area-inset-bottom));
        padding: 0 6px env(safe-area-inset-bottom);
        border-top: 1px solid rgba(0, 0, 0, .07);
        background: rgba(247, 247, 247, .95);
        backdrop-filter: blur(20px) saturate(150%);
        -webkit-backdrop-filter: blur(20px) saturate(150%);
    }

    html[data-theme="dark"] .dz-mobile-tabs { background: rgba(22, 27, 34, .96); border-top-color: rgba(255, 255, 255, .08); }

    .dz-mobile-tab {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        border: 0;
        background: transparent;
        color: #7a7f87;
        font-size: 10px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    html[data-theme="dark"] .dz-mobile-tab { color: #8b949e; }
    .dz-mobile-tab .ic { transition: transform .16s ease; }
    .dz-mobile-tab.is-active { color: var(--dz-wechat); font-weight: 600; }
    .dz-mobile-tab.is-active .ic { transform: scale(1.08); }

    /* 手机登录舞台：整屏定高，表单区自己滚。
       之前 height:auto + 父级 overflow:hidden，表单区是个「撑满但滚不动」的
       滚动容器（overscroll-behavior:contain 还会把手势吞掉），所以注册页滑不动。 */
    .dz-guest,
    .dz-guest:has(.segbar__item.is-active:nth-child(2)) {
        width: 100%;
        height: 100dvh;
        min-height: 0;
        border-radius: 0;
        border: 0;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        background: #0b1220;
    }

    .dz-guest__art { flex: 0 0 44vh; min-height: 300px; }
    .dz-guest__copy { left: 20px; right: 20px; bottom: 20px; }
    .dz-guest__copy h2 { font-size: 28px; }
    .dz-guest__panel {
        flex: 1 1 auto;
        min-height: 0;
        padding: 22px 16px calc(24px + env(safe-area-inset-bottom));
        border-left: 0;
        background: #f4f7fb;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    html[data-theme="light"] .dz-guest__panel { background: #f4f7fb; }
    .dz-guest__window-dots { position: static; justify-content: center; margin-bottom: 14px; color: #7b8da4; }
    .dz-guest__panel .login-card { max-width: 100%; padding: 24px 18px 20px; box-shadow: 0 12px 40px rgba(20, 50, 90, .12); }
    .dz-guest__panel .login-card__title { font-size: 22px; }
}

/* ============================================================
   中等宽度：收掉右侧舞台，保留软件三栏
   ============================================================ */

@media (min-width: 1025px) and (max-width: 1400px) {
    .dz-body { grid-template-columns: 72px 228px minmax(0, 1fr); }
    .dz-stage { display: none; }
    .dz-titlebar__search { width: clamp(200px, 24vw, 340px); }
}

@media (min-width: 1025px) and (max-width: 1120px) {
    .dz-body { grid-template-columns: 68px 208px minmax(0, 1fr); }
    .dz-rail__status-ver { display: none; }
    .dz-titlebar__ver { display: none; }
}

@media (max-width: 480px) {
    .dz-page-scroll { padding-left: 8px; padding-right: 8px; }
    .dz-guest__art { flex-basis: 40vh; }
    .dz-guest__copy h2 { font-size: 24px; }
    .dz-page-scroll .grid--stats { gap: 7px; }
}

/* 矮屏（横屏/小屏手机）：主视觉让位给表单，保证注册表单有足够可滚空间 */
@media (max-width: 1024px) and (max-height: 700px) {
    .dz-guest__art { flex: 0 0 168px; min-height: 140px; }
    .dz-guest__copy { bottom: 14px; }
    .dz-guest__copy h2 { font-size: 20px; }
    .dz-guest__copy p { display: none; }
}

/* ============================================================
   弹窗 / Toast / 公告
   ============================================================ */

.modal-mask {
    background: rgba(2, 6, 14, .68);
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
}

.modal {
    border-radius: 20px;
    border: 1px solid rgba(140, 210, 255, .24);
    background: linear-gradient(155deg, rgba(20, 34, 56, .92), rgba(7, 13, 24, .90));
    box-shadow: 0 34px 100px rgba(0, 0, 0, .50), 0 1px 0 rgba(255, 255, 255, .08) inset;
}

html[data-theme="light"] .modal { background: linear-gradient(155deg, rgba(255, 255, 255, .96), rgba(242, 248, 255, .94)); }
.modal__head { border-bottom-color: var(--dz-line); }
.modal__foot { border-top-color: var(--dz-line); }

.toasts { z-index: 120; }

.toast {
    border-radius: 14px;
    border: 1px solid rgba(140, 210, 255, .22);
    background: linear-gradient(145deg, rgba(18, 32, 54, .94), rgba(7, 13, 24, .92));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .34);
}

html[data-theme="light"] .toast { background: rgba(255, 255, 255, .94); }

/* ============================================================
   动效与减弱
   ============================================================ */

.dz-page-scroll > * { animation: dzEnter .28s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes dzEnter {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .dz-aurora span, .dz-stage__float, .dz-window::after, .dz-live-dot, .dz-page-scroll > * { animation: none !important; }
    .dz-window, .dz-contact, .dz-dock__item, .dz-page-scroll .card { transition: none !important; }
}

/* ============================================================
   浅色细节
   ============================================================ */

html[data-theme="light"] .dz-live-dot { box-shadow: 0 0 0 2px rgba(7, 193, 96, .12), 0 0 10px rgba(7, 193, 96, .6); }
html[data-theme="light"] .dz-contact.is-active { background: linear-gradient(120deg, rgba(0, 130, 220, .10), rgba(108, 80, 220, .07)); }
html[data-theme="light"] .dz-stage__float { background: rgba(255, 255, 255, .78); color: #0a5d7a; }
html[data-theme="light"] .dz-guest__badge { background: rgba(255, 255, 255, .78); color: #075a78; }
html[data-theme="light"] .dz-guest__copy h2 { color: #fff; }
html[data-theme="light"] .dz-guest__copy p { color: rgba(255, 255, 255, .86); }
