/* ==================================================================
   Qzone 说说卡片主题 v3
   QQ 空间风格 / 自适应说说卡片 / 可更换装扮
   ================================================================== */

:root {
    --qz-blue: #2f8cff;
    --qz-blue-2: #5bb6ff;
    --qz-blue-deep: #1a6fe0;
    --qz-blue-soft: rgba(47, 140, 255, .12);
    --qz-yellow: #ffc400;
    --qz-yellow-2: #ffe27a;
    --qz-yellow-deep: #e79b00;
    --qz-ink: #1d2b3a;
    --qz-sub: #70839a;
    --qz-muted: #9aabbf;
    --qz-page: #eaf5ff;
    --qz-page-2: #f8fcff;
    --qz-card: #ffffff;
    --qz-card-2: #f5faff;
    --qz-line: #e3edf8;
    --qz-topbar: rgba(255, 255, 255, .86);
    --qz-shadow: 0 14px 36px rgba(33, 88, 148, .10);
    --qz-shadow-sm: 0 7px 20px rgba(33, 88, 148, .08);
    --qz-shadow-lg: 0 28px 80px rgba(15, 48, 92, .24);
    --qz-radius: 20px;
    --qz-radius-sm: 14px;
    --qz-max: 1240px;
    --qz-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans CN", sans-serif;
    --qz-sky-1: rgba(155, 211, 255, .55);
    --qz-sky-2: rgba(255, 255, 255, .85);
    --qz-sky-3: #e7f4ff;
    --qz-cover-a: #8ed2ff;
    --qz-cover-b: #2f8cff;
    --qz-cover-c: #275fd6;
    --qz-space-overlay: rgba(234, 245, 255, .58);
}

/* ---------- 空间皮肤 ---------- */
.skin-night {
    --qz-ink: #e9f1ff;
    --qz-sub: #9fb0ca;
    --qz-muted: #8195b2;
    --qz-page: #0e1626;
    --qz-page-2: #101a2c;
    --qz-card: #172238;
    --qz-card-2: #1c2942;
    --qz-line: #273550;
    --qz-topbar: rgba(14, 22, 38, .86);
    --qz-blue-soft: rgba(93, 167, 255, .18);
    --qz-shadow: 0 14px 38px rgba(0, 0, 0, .30);
    --qz-shadow-sm: 0 7px 22px rgba(0, 0, 0, .26);
    --qz-shadow-lg: 0 28px 80px rgba(0, 0, 0, .55);
    --qz-sky-1: rgba(48, 96, 170, .35);
    --qz-sky-2: rgba(97, 76, 170, .20);
    --qz-sky-3: #101b30;
    --qz-cover-a: #263b63;
    --qz-cover-b: #121c35;
    --qz-cover-c: #0a1020;
    --qz-space-overlay: rgba(8, 14, 26, .62);
}

.skin-sakura {
    --qz-blue: #f06292;
    --qz-blue-2: #ff9fc2;
    --qz-blue-deep: #d94a7c;
    --qz-blue-soft: rgba(240, 98, 146, .12);
    --qz-ink: #4a2a3a;
    --qz-sub: #8f6a7c;
    --qz-muted: #b393a2;
    --qz-page: #fff5f9;
    --qz-page-2: #fffafd;
    --qz-card: #ffffff;
    --qz-card-2: #fff7fb;
    --qz-line: #ffe3ee;
    --qz-topbar: rgba(255, 250, 252, .88);
    --qz-sky-1: rgba(255, 182, 210, .45);
    --qz-sky-2: rgba(255, 255, 255, .9);
    --qz-sky-3: #ffeef5;
    --qz-cover-a: #ffc4da;
    --qz-cover-b: #f06292;
    --qz-cover-c: #c43f72;
    --qz-space-overlay: rgba(255, 245, 249, .58);
}

.skin-mint {
    --qz-blue: #12b886;
    --qz-blue-2: #43d6a7;
    --qz-blue-deep: #0d9a70;
    --qz-blue-soft: rgba(18, 184, 134, .12);
    --qz-ink: #1c4a3c;
    --qz-sub: #5f8b7c;
    --qz-muted: #91b3a7;
    --qz-page: #eefbf6;
    --qz-page-2: #f8fffc;
    --qz-card: #ffffff;
    --qz-card-2: #f3fdf9;
    --qz-line: #d8f2e8;
    --qz-topbar: rgba(250, 255, 253, .86);
    --qz-sky-1: rgba(127, 230, 195, .35);
    --qz-sky-2: rgba(255, 255, 255, .9);
    --qz-sky-3: #e5faf2;
    --qz-cover-a: #9ff0d6;
    --qz-cover-b: #12b886;
    --qz-cover-c: #0b8b66;
    --qz-space-overlay: rgba(238, 251, 246, .58);
}

.skin-cream {
    --qz-blue: #e8a33d;
    --qz-blue-2: #f7c56f;
    --qz-blue-deep: #c98120;
    --qz-blue-soft: rgba(232, 163, 61, .14);
    --qz-ink: #4a3a24;
    --qz-sub: #8b7658;
    --qz-muted: #b2a087;
    --qz-page: #fffaf0;
    --qz-page-2: #fffdf7;
    --qz-card: #ffffff;
    --qz-card-2: #fff9ec;
    --qz-line: #f3e6cf;
    --qz-topbar: rgba(255, 252, 245, .88);
    --qz-sky-1: rgba(255, 213, 128, .35);
    --qz-sky-2: rgba(255, 255, 255, .9);
    --qz-sky-3: #fff6e4;
    --qz-cover-a: #ffe0a3;
    --qz-cover-b: #e8a33d;
    --qz-cover-c: #c47a16;
    --qz-space-overlay: rgba(255, 250, 240, .58);
}

.skin-mono {
    --qz-blue: #4e6b8c;
    --qz-blue-2: #7f9ab8;
    --qz-blue-deep: #38516d;
    --qz-blue-soft: rgba(78, 107, 140, .10);
    --qz-ink: #202733;
    --qz-sub: #6e7c8f;
    --qz-muted: #9ba7b6;
    --qz-page: #f4f7fb;
    --qz-page-2: #fbfcfe;
    --qz-card: #ffffff;
    --qz-card-2: #f7f9fc;
    --qz-line: #e5eaf1;
    --qz-topbar: rgba(255, 255, 255, .9);
    --qz-sky-1: rgba(207, 219, 234, .35);
    --qz-sky-2: rgba(255, 255, 255, .9);
    --qz-sky-3: #eef3f9;
    --qz-cover-a: #c6d3e2;
    --qz-cover-b: #6f87a3;
    --qz-cover-c: #435a75;
    --qz-space-overlay: rgba(244, 247, 251, .62);
}

/* ---------- 基础 ---------- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 86px;
}

body.qz-body {
    margin: 0;
    min-height: 100vh;
    color: var(--qz-ink);
    background: var(--qz-page);
    font-family: var(--qz-font);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.qz-modal-open {
    overflow: hidden;
}

a {
    color: var(--qz-blue);
    text-decoration: none;
    transition: color .18s ease, opacity .18s ease;
}

a:hover {
    opacity: .86;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

::selection {
    background: var(--qz-blue-soft);
    color: var(--qz-blue-deep);
}

:focus-visible {
    outline: 2px solid var(--qz-blue);
    outline-offset: 2px;
}

[hidden] {
    display: none !important;
}

.qz-muted {
    color: var(--qz-muted);
    font-size: 13px;
}

/* ---------- 背景光斑 ---------- */
.qz-sky-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background:
        radial-gradient(900px 520px at 78% -8%, var(--qz-sky-1), transparent 62%),
        radial-gradient(800px 480px at -8% 18%, var(--qz-sky-2), transparent 58%),
        linear-gradient(180deg, var(--qz-sky-3) 0%, var(--qz-page) 52%, var(--qz-page-2) 100%);
}

/* 自定义空间背景图：cover 保持原图比例，只裁剪不拉伸 */
.qz-sky-bg.has-space-bg {
    background-color: var(--qz-page);
    background-image:
        linear-gradient(var(--qz-space-overlay, rgba(234, 245, 255, .58)), var(--qz-space-overlay, rgba(234, 245, 255, .58))),
        var(--qz-space-bg-image),
        radial-gradient(900px 520px at 78% -8%, var(--qz-sky-1), transparent 62%),
        radial-gradient(800px 480px at -8% 18%, var(--qz-sky-2), transparent 58%),
        linear-gradient(180deg, var(--qz-sky-3) 0%, var(--qz-page) 52%, var(--qz-page-2) 100%);
    background-size: cover, cover, auto, auto, auto;
    background-position: center, center, center, center, center;
    background-repeat: no-repeat;
}

.qz-sky-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    pointer-events: none;
}

.qz-sky-orb-1 {
    width: 380px;
    height: 380px;
    right: -110px;
    top: 120px;
    background: var(--qz-blue-2);
}

.qz-sky-orb-2 {
    width: 320px;
    height: 320px;
    left: -120px;
    top: 46%;
    background: var(--qz-yellow-2);
    opacity: .22;
}

.qz-sky-orb-3 {
    width: 260px;
    height: 260px;
    right: 16%;
    bottom: -140px;
    background: var(--qz-blue);
    opacity: .18;
}

/* ---------- 通用组件 ---------- */
.qz-card {
    background: var(--qz-card);
    border: 1px solid var(--qz-line);
    border-radius: var(--qz-radius);
    box-shadow: var(--qz-shadow-sm);
}

.qz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 17px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
}

.qz-btn:hover {
    transform: translateY(-1px);
}

.qz-btn:active {
    transform: translateY(0);
}

.qz-btn[disabled] {
    cursor: wait;
    opacity: .62;
    transform: none;
}

.qz-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--qz-blue) 0%, var(--qz-blue-2) 100%);
    box-shadow: 0 9px 22px rgba(47, 140, 255, .28);
}

.qz-btn-yellow {
    color: #654400;
    background: linear-gradient(135deg, var(--qz-yellow-2) 0%, var(--qz-yellow) 70%);
    box-shadow: 0 8px 20px rgba(255, 196, 0, .28);
}

.qz-btn-glass {
    color: #fff;
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .46);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.qz-btn-soft {
    color: var(--qz-blue);
    background: var(--qz-blue-soft);
    border-color: transparent;
}

.qz-btn-ghost {
    color: var(--qz-sub);
    background: transparent;
    border-color: var(--qz-line);
}

.qz-btn-block {
    width: 100%;
    margin-top: 12px;
}

.qz-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 50%;
    color: #2e6dad;
    background: linear-gradient(135deg, #e3f2ff, #bfe0ff);
}

.qz-avatar img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qz-avatar-letter {
    font-size: 1.05em;
    font-weight: 800;
    line-height: 1;
}

.qz-link-btn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--qz-blue);
    font-size: 13px;
    font-weight: 700;
}

.qz-select {
    padding: 8px 30px 8px 12px;
    border: 1px solid var(--qz-line);
    border-radius: 10px;
    background: var(--qz-card-2);
    color: var(--qz-ink);
    font-size: 13px;
    outline: none;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--qz-sub) 50%),
        linear-gradient(135deg, var(--qz-sub) 50%, transparent 50%);
    background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.qz-select-sm {
    padding-top: 6px;
    padding-bottom: 6px;
}

/* ==================================================================
   顶栏
   ================================================================== */
.qz-topbar {
    position: sticky;
    top: 0;
    z-index: 130;
    background: var(--qz-topbar);
    border-bottom: 1px solid var(--qz-line);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    transition: box-shadow .25s ease, background .25s ease;
}

.qz-topbar.is-scrolled {
    box-shadow: 0 10px 32px rgba(31, 76, 132, .10);
}

.qz-topbar-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    width: min(var(--qz-max), calc(100% - 40px));
    height: 66px;
    margin: 0 auto;
}

.qz-logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    color: var(--qz-blue);
    font-weight: 900;
    letter-spacing: -.5px;
}

.qz-logo:hover {
    opacity: 1;
}

.qz-logo-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--qz-yellow-2), var(--qz-yellow));
    box-shadow: 0 5px 14px rgba(255, 196, 0, .38);
    transform: rotate(-6deg);
}

.qz-logo-word {
    max-width: 220px;
    overflow: hidden;
    font-size: 22px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qz-logo-sub {
    padding: 2px 6px;
    color: var(--qz-blue);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 1px;
    border: 1px solid var(--qz-blue);
    border-radius: 5px;
    opacity: .7;
}

.qz-topnav {
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
}

.qz-topnav a {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 12px;
    color: var(--qz-ink);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 10px;
    opacity: .78;
}

.qz-topnav a:hover,
.qz-topnav a.is-current {
    color: var(--qz-blue);
    background: var(--qz-blue-soft);
    opacity: 1;
}

.qz-search {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 190px;
    height: 38px;
    margin-left: auto;
    padding: 0 12px;
    border: 1px solid var(--qz-line);
    border-radius: 999px;
    background: var(--qz-card-2);
    transition: width .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.qz-search:focus-within {
    width: 220px;
    border-color: var(--qz-blue);
    box-shadow: 0 0 0 3px var(--qz-blue-soft);
}

.qz-search-icon {
    color: var(--qz-muted);
    font-size: 17px;
    line-height: 1;
}

.qz-search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--qz-ink);
    font-size: 13px;
}

.qz-search input::placeholder {
    color: var(--qz-muted);
}

.qz-top-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
}

.qz-top-me {
    display: inline-flex;
    width: 38px;
    height: 38px;
    overflow: hidden;
    border: 2px solid var(--qz-card);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--qz-line);
}

.qz-top-me .qz-avatar {
    width: 100%;
    height: 100%;
}

.qz-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    padding: 0 9px;
    border: 1px solid var(--qz-line);
    border-radius: 11px;
    background: var(--qz-card-2);
}

.qz-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--qz-ink);
    transition: transform .2s ease, opacity .2s ease;
}

.qz-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.qz-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.qz-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.qz-mobile-drawer {
    display: none;
    padding: 4px 20px 14px;
    border-top: 1px solid var(--qz-line);
    background: var(--qz-card);
}

.qz-mobile-drawer a {
    display: block;
    padding: 11px 10px;
    color: var(--qz-ink);
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid var(--qz-line);
}

.qz-mobile-drawer a:last-child {
    border-bottom: 0;
}

/* ==================================================================
   封面
   ================================================================== */
.qz-hero {
    position: relative;
    height: 338px;
    overflow: hidden;
    background: linear-gradient(118deg, var(--qz-cover-a) 0%, var(--qz-cover-b) 48%, var(--qz-cover-c) 100%);
    isolation: isolate;
}

.qz-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: transparent;
    background-position: center 36%;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.015);
    filter: saturate(1.04);
}

.qz-hero-light {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(520px 260px at 18% 22%, rgba(255, 255, 255, .28), transparent 66%),
        linear-gradient(180deg, rgba(10, 35, 70, .02) 0%, rgba(10, 35, 70, .10) 46%, rgba(10, 35, 70, .58) 100%);
}

.qz-hero.has-hero-image .qz-hero-light {
    background:
        radial-gradient(520px 260px at 18% 22%, rgba(255, 255, 255, .18), transparent 66%),
        linear-gradient(180deg, rgba(6, 18, 36, .08) 0%, rgba(6, 18, 36, .22) 42%, rgba(6, 18, 36, .72) 100%);
}

/* 有空间背景图时，封面直接透出同一张固定背景，避免两张图叠加 */
.qz-hero.has-space-image {
    background: transparent;
}

.qz-hero.has-space-image .qz-hero-bg {
    display: none;
}

.qz-hero.has-space-image .qz-hero-light {
    background:
        radial-gradient(520px 260px at 18% 22%, rgba(255, 255, 255, .16), transparent 66%),
        linear-gradient(180deg, rgba(6, 18, 36, .10) 0%, rgba(6, 18, 36, .26) 42%, rgba(6, 18, 36, .74) 100%);
}

.qz-hero-clouds {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.qz-cloud {
    position: absolute;
    width: 190px;
    height: 58px;
    border-radius: 60px;
    background: rgba(255, 255, 255, .24);
    filter: blur(8px);
}

.qz-cloud::before,
.qz-cloud::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: inherit;
}

.qz-cloud::before {
    width: 90px;
    height: 90px;
    left: 30px;
    top: -46px;
}

.qz-cloud::after {
    width: 120px;
    height: 74px;
    right: 18px;
    top: -28px;
}

.qz-cloud-1 {
    top: 58px;
    left: 7%;
    transform: scale(.9);
    animation: qzCloud 24s ease-in-out infinite alternate;
}

.qz-cloud-2 {
    top: 100px;
    right: 14%;
    transform: scale(1.25);
    opacity: .7;
    animation: qzCloud 32s ease-in-out infinite alternate-reverse;
}

.qz-cloud-3 {
    bottom: 56px;
    left: 36%;
    transform: scale(.66);
    opacity: .55;
    animation: qzCloud 28s ease-in-out infinite alternate;
}

.qz-star {
    display: none;
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff5c2;
    box-shadow: 0 0 12px 3px rgba(255, 240, 160, .55);
}

.qz-star-1 {
    top: 58px;
    left: 28%;
}

.qz-star-2 {
    top: 112px;
    right: 32%;
    width: 3px;
    height: 3px;
}

.qz-star-3 {
    top: 42px;
    right: 12%;
    width: 4px;
    height: 4px;
}

.skin-night .qz-star {
    display: block;
    animation: qzTwinkle 3.8s ease-in-out infinite alternate;
}

.skin-night .qz-cloud {
    opacity: .08;
}

@keyframes qzCloud {
    from { transform: translate3d(-10px, 0, 0) scale(.9); }
    to { transform: translate3d(24px, 6px, 0) scale(.96); }
}

@keyframes qzTwinkle {
    from { opacity: .28; }
    to { opacity: .92; }
}

.qz-hero-inner {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    width: min(var(--qz-max), calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    padding-bottom: 62px;
}

.qz-hero-person {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    min-width: 0;
}

.qz-hero-guest-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 520px;
    min-width: 0;
    padding: 6px 0;
    color: rgba(255, 255, 255, .76);
    font-size: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .24);
    white-space: nowrap;
}

.qz-hero-guest-star {
    flex: 0 0 auto;
    color: var(--qz-yellow);
    font-size: 14px;
    animation: qzGuestPulse 3s ease-in-out infinite;
}

.qz-hero-guest-copy {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
}

.qz-hero-guest-copy b {
    color: #fff;
    font-weight: 800;
}

.qz-hero-guest-copy i {
    color: rgba(255, 255, 255, .4);
    font-style: normal;
}

.qz-hero-guest-line::after {
    content: "";
    flex: 1 1 auto;
    min-width: 24px;
    height: 1px;
    margin-left: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .42), transparent);
}

@keyframes qzGuestPulse {
    0%, 100% { transform: translateY(0) scale(1); opacity: .75; }
    50% { transform: translateY(-1px) scale(1.12); opacity: 1; }
}

@media (max-width: 1020px) {
    .qz-hero-guest-line {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qz-hero-guest-star {
        animation: none;
    }
}

.qz-hero-avatar {
    position: relative;
    display: block;
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, .92);
    border-radius: 30px;
    background: #dceeff;
    box-shadow: 0 18px 38px rgba(8, 30, 66, .34);
}

.qz-hero-avatar > img,
.qz-hero-avatar .qz-avatar {
    width: 100%;
    height: 100%;
    border-radius: 26px;
    object-fit: cover;
}

.qz-hero-avatar .qz-avatar-letter {
    font-size: 40px;
    color: #2f6fb5;
}

.qz-online-dot {
    position: absolute;
    right: 3px;
    bottom: 5px;
    z-index: 3;
    width: 17px;
    height: 17px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #2fd07a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
}

.qz-avatar-level {
    position: absolute;
    left: 7px;
    bottom: 7px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 54px;
    height: 18px;
    padding: 0 7px;
    overflow: hidden;
    color: #6b4800;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff3ad, var(--qz-yellow));
    box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
}

.qz-avatar-level.has-image {
    width: auto;
    max-width: calc(var(--qz-avatar-level-size, 24px) * 4);
    height: var(--qz-avatar-level-size, 24px);
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.qz-avatar-level.has-image img {
    display: block;
    width: auto;
    height: 100%;
    max-width: calc(var(--qz-avatar-level-size, 24px) * 4);
    object-fit: contain;
}

.qz-hero-info {
    min-width: 0;
    padding-bottom: 5px;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .28);
}

.qz-hero-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -.8px;
}

.qz-name-wrap {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.qz-name-wrap.has-frame {
    padding: 3px 18px;
    border: 14px solid transparent;
    border-image-source: var(--qz-name-frame);
    border-image-slice: 30% fill;
    border-image-width: 14px;
    border-image-repeat: round;
}

.qz-name-text {
    display: inline-block;
    line-height: 1.2;
}

.qz-name-effect-shine {
    color: #fff;
    background: linear-gradient(100deg, #fff 18%, #ffe27a 38%, #fff 58%, #ffe27a 78%, #fff 98%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    animation: qzNameShine 2.8s linear infinite;
}

.qz-name-effect-blink {
    animation: qzNameBlink 1.2s steps(1, end) infinite;
}

.qz-name-effect-rainbow {
    color: #ff6b6b;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #1dd1a1, #c8a2ff, #ff6b6b);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    animation: qzNameRainbow 4s linear infinite;
}

@keyframes qzNameShine {
    from { background-position: 0% 50%; }
    to { background-position: 220% 50%; }
}

@keyframes qzNameBlink {
    0%, 55% { opacity: 1; }
    56%, 100% { opacity: .25; }
}

@keyframes qzNameRainbow {
    from { background-position: 0% 50%; }
    to { background-position: 300% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .qz-name-effect-shine,
    .qz-name-effect-blink,
    .qz-name-effect-rainbow {
        animation: none;
    }
}

.qz-vip-badge {
    padding: 2px 9px;
    color: #6b4800;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.7;
    letter-spacing: .5px;
    text-shadow: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff7c6, var(--qz-yellow));
    box-shadow: 0 4px 12px rgba(0, 0, 0, .16);
}

.qz-hero-bio {
    max-width: 520px;
    margin: 7px 0 0;
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
    line-height: 1.6;
}

.qz-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.qz-hero-chips span {
    padding: 4px 10px;
    color: rgba(255, 255, 255, .94);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.qz-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding-bottom: 6px;
}

/* ==================================================================
   三栏布局
   ================================================================== */
.qz-layout {
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 286px;
    grid-template-areas: "left main right";
    align-items: start;
    gap: 18px;
    width: min(var(--qz-max), calc(100% - 40px));
    margin: -42px auto 0;
}

.qz-col-left {
    grid-area: left;
    min-width: 0;
}

.qz-main {
    grid-area: main;
    min-width: 0;
    padding-bottom: 38px;
}

.qz-col-right {
    grid-area: right;
    min-width: 0;
}

/* ---------- 左侧资料卡 ---------- */
.qz-profile-card {
    overflow: hidden;
}

.qz-profile-cover {
    position: relative;
    height: 88px;
    overflow: hidden;
    background:
        radial-gradient(90px 70px at 76% 22%, rgba(255, 255, 255, .48), transparent 64%),
        linear-gradient(135deg, var(--qz-cover-a), var(--qz-cover-b) 62%, var(--qz-cover-c));
}

.qz-profile-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 24% 70%, rgba(255, 255, 255, .22), transparent 30%),
        linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .10));
}

.qz-profile-spark {
    position: absolute;
    z-index: 2;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff9c9;
    box-shadow: 0 0 14px 4px rgba(255, 245, 170, .55);
}

.qz-profile-spark-1 {
    top: 18px;
    left: 26%;
}

.qz-profile-spark-2 {
    top: 46px;
    right: 20%;
    width: 4px;
    height: 4px;
}

.qz-profile-main {
    position: relative;
    padding: 0 16px 15px;
    text-align: center;
}

.qz-profile-avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    margin: -39px auto 8px;
    overflow: hidden;
    border: 3px solid var(--qz-card);
    border-radius: 22px;
    background: linear-gradient(135deg, #e3f2ff, #bfe0ff);
    box-shadow: 0 8px 24px rgba(33, 88, 148, .18);
}

.qz-profile-avatar > img,
.qz-profile-avatar .qz-avatar {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    object-fit: cover;
}

.qz-profile-main h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.4;
}

.qz-profile-bio {
    margin: 4px 0 13px;
    color: var(--qz-sub);
    font-size: 12px;
    line-height: 1.6;
}

.qz-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 9px 0;
    border-top: 1px solid var(--qz-line);
    border-bottom: 1px solid var(--qz-line);
}

.qz-profile-stats > div {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.qz-profile-stats > div + div::before {
    content: "";
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 0;
    width: 1px;
    background: var(--qz-line);
}

.qz-profile-stats b {
    font-size: 16px;
    line-height: 1.3;
}

.qz-profile-stats span {
    color: var(--qz-muted);
    font-size: 10.5px;
    letter-spacing: .4px;
}

.qz-profile-edit {
    display: block;
    width: 100%;
    margin-top: 11px;
    padding: 6px 0;
    color: var(--qz-blue);
    font-size: 12px;
    font-weight: 700;
    border: 0;
    border-radius: 9px;
    background: var(--qz-blue-soft);
    cursor: pointer;
}

.qz-side-nav {
    display: flex;
    flex-direction: column;
    padding: 8px;
    border-top: 1px solid var(--qz-line);
}

.qz-side-nav a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    color: var(--qz-ink);
    font-size: 13px;
    font-weight: 600;
    border-radius: 11px;
    opacity: .82;
}

.qz-side-nav a:hover,
.qz-side-nav a.is-active {
    color: var(--qz-blue);
    background: var(--qz-blue-soft);
    opacity: 1;
}

.qz-side-nav em {
    margin-left: auto;
    color: var(--qz-muted);
    font-style: normal;
}

.qz-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 13px;
    border-radius: 8px;
    background: var(--qz-card-2);
}

.qz-side-nav a.is-active .qz-nav-icon {
    background: var(--qz-card);
}

.qz-cat-card,
.qz-mini-tip {
    margin-top: 14px;
    padding: 15px 15px 12px;
}

.qz-cat-card h3,
.qz-mini-tip h3 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 9px;
    font-size: 13px;
    font-weight: 800;
}

.qz-cat-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.qz-cat-card li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 6px;
    color: var(--qz-sub);
    font-size: 12.5px;
    border-radius: 8px;
}

.qz-cat-card li a:hover {
    color: var(--qz-blue);
    background: var(--qz-blue-soft);
}

.qz-cat-card li b {
    min-width: 22px;
    padding: 0 6px;
    color: var(--qz-muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.8;
    text-align: center;
    border-radius: 999px;
    background: var(--qz-card-2);
}

.qz-mini-tip {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    background: linear-gradient(135deg, var(--qz-card), var(--qz-card-2));
}

.qz-mini-tip-icon {
    font-size: 18px;
    line-height: 1.4;
}

.qz-mini-tip p {
    margin: 0;
    color: var(--qz-sub);
    font-size: 11.5px;
    line-height: 1.7;
}

/* ---------- 右侧卡片 ---------- */
.qz-col-right > .qz-card {
    margin-bottom: 14px;
    padding: 16px;
}

.qz-col-right > .qz-card:last-child {
    margin-bottom: 0;
}

.qz-col-right h3 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 10px;
    font-size: 13.5px;
    font-weight: 900;
    letter-spacing: .2px;
}

.qz-col-right h3 span {
    font-size: 15px;
}

.qz-announcement p {
    margin: 0;
    color: var(--qz-sub);
    font-size: 12.5px;
    line-height: 1.8;
}

.qz-topic-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.qz-topic-chips a {
    padding: 4px 10px;
    color: var(--qz-blue);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.6;
    border-radius: 999px;
    background: var(--qz-blue-soft);
}

.qz-topic-chips a:hover {
    color: #fff;
    background: var(--qz-blue);
    opacity: 1;
}

.qz-visitor-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 6px;
}

.qz-visitor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.qz-visitor .qz-avatar {
    width: 40px;
    height: 40px;
    border: 2px solid var(--qz-card);
    box-shadow: 0 0 0 1px var(--qz-line);
}

.qz-visitor span {
    max-width: 100%;
    overflow: hidden;
    color: var(--qz-sub);
    font-size: 10px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qz-visitor-note {
    margin: 9px 0 0;
    font-size: 10px;
}

.qz-music {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qz-disc {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    color: #fff;
    font-size: 17px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, #fff 0 3px, transparent 4px),
        repeating-radial-gradient(circle at 50% 50%, #243b55 0 2px, #16283b 3px 5px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
}

.qz-disc.is-playing {
    animation: qzSpin 3.4s linear infinite;
}

@keyframes qzSpin {
    to { transform: rotate(360deg); }
}

.qz-music-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.45;
}

.qz-music-info b {
    font-size: 12px;
}

.qz-music-info span {
    color: var(--qz-muted);
    font-size: 10.5px;
}

.qz-music-btn {
    width: 32px;
    height: 32px;
    margin-left: auto;
    flex: 0 0 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    background: var(--qz-blue);
    box-shadow: 0 5px 12px rgba(47, 140, 255, .28);
}

.qz-deco-promo p {
    margin: 0 0 10px;
    color: var(--qz-sub);
    font-size: 12px;
    line-height: 1.7;
}

.qz-promo-chips {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.qz-promo-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-size: 17px;
    border: 1px solid var(--qz-line);
    border-radius: 10px;
    background: var(--chip-bg);
    color: var(--chip-ink);
}

/* ==================================================================
   发表入口 / 说说流
   ================================================================== */
.qz-composer-trigger {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 18px;
    margin-bottom: 18px;
    border: 1px solid var(--qz-line);
    background: linear-gradient(135deg, var(--qz-card), var(--qz-card-2));
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.qz-composer-trigger:hover {
    transform: translateY(-2px);
    border-color: var(--qz-blue);
    box-shadow: var(--qz-shadow);
}

.qz-trigger-avatar .qz-avatar {
    width: 48px;
    height: 48px;
}

.qz-trigger-body {
    flex: 1 1 auto;
    min-width: 0;
}

.qz-trigger-input {
    color: var(--qz-muted);
    font-size: 14px;
}

.qz-trigger-tools {
    display: flex;
    gap: 14px;
    margin-top: 7px;
    color: var(--qz-sub);
    font-size: 11.5px;
}

.qz-trigger-tools span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.qz-trigger-tools i {
    font-style: normal;
    font-size: 13px;
}

.qz-trigger-btn {
    flex: 0 0 auto;
    padding: 8px 18px;
}

.qz-feed-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 4px 2px 14px;
}

.qz-feed-head > div {
    position: relative;
    min-width: 0;
    padding-left: 14px;
}

.qz-feed-head > div::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 5px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--qz-yellow), var(--qz-blue));
    box-shadow: 0 0 12px var(--qz-blue-soft);
}

.qz-feed-head h2 {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -.5px;
    line-height: 1.3;
    color: transparent;
    background: linear-gradient(100deg, var(--qz-ink) 16%, var(--qz-blue) 68%, #9b7bff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.qz-feed-head h2 span {
    color: var(--qz-yellow);
    -webkit-text-fill-color: var(--qz-yellow);
    font-size: 16px;
    vertical-align: 5px;
    animation: qzFeedSpark 2.6s ease-in-out infinite;
}

.qz-feed-head p {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 8px 0 0;
    padding: 5px 12px 5px 10px;
    color: var(--qz-sub);
    font-size: 11.5px;
    letter-spacing: .25px;
    border: 1px solid var(--qz-line);
    border-radius: 999px;
    background: linear-gradient(90deg, var(--qz-blue-soft), rgba(255, 255, 255, 0) 92%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
}

.qz-feed-head p::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--qz-yellow), var(--qz-blue));
    box-shadow: 0 0 0 3px var(--qz-blue-soft);
}

.qz-feed-head p::after {
    content: "";
    width: 20px;
    height: 1px;
    flex: 0 0 20px;
    background: linear-gradient(90deg, var(--qz-blue), transparent);
}

.qz-feed-count {
    padding: 5px 12px;
    color: var(--qz-sub);
    font-size: 11.5px;
    border: 1px solid var(--qz-line);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--qz-card), var(--qz-blue-soft));
    box-shadow: 0 5px 14px rgba(47, 140, 255, .10);
}

.qz-feed-count b {
    color: var(--qz-blue);
}

@keyframes qzFeedSpark {
    0%, 100% { opacity: .55; transform: scale(.9) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.15) rotate(18deg); }
}

@media (prefers-reduced-motion: reduce) {
    .qz-feed-head h2 span {
        animation: none;
    }
}

/* ==================================================================
   说说卡片
   ================================================================== */
.qz-moment {
    position: relative;
    padding: 22px 24px 16px;
    margin-bottom: 16px;
    overflow: hidden;
    color: var(--qz-card-ink, var(--qz-ink));
    background: var(--qz-card-bg, var(--qz-card));
    border: 0;
    box-shadow: var(--qz-shadow);
    transition: transform .25s cubic-bezier(.2, .7, .3, 1), box-shadow .25s ease;
    animation: qzMomentIn .45s cubic-bezier(.2, .7, .3, 1) both;
}

.qz-moment:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 46px rgba(33, 88, 148, .16);
}

@keyframes qzMomentIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.qz-moment:nth-child(2) { animation-delay: .03s; }
.qz-moment:nth-child(3) { animation-delay: .06s; }
.qz-moment:nth-child(4) { animation-delay: .09s; }
.qz-moment:nth-child(5) { animation-delay: .12s; }

.qz-moment > * {
    position: relative;
    z-index: 1;
}

.qz-moment.has-bg-image,
.qz-mini-card.has-bg-image,
.qz-add-preview.has-bg-image {
    background-image:
        linear-gradient(var(--qz-card-bg-overlay, rgba(255, 255, 255, .74)), var(--qz-card-bg-overlay, rgba(255, 255, 255, .74))),
        var(--qz-card-bg-image, none),
        var(--qz-card-bg);
    background-size: cover, cover, auto;
    background-position: center, center, center;
    background-repeat: no-repeat;
}

.qz-moment a {
    color: var(--qz-card-accent, var(--qz-blue));
}

.qz-deco-sticker {
    position: absolute;
    top: 13px;
    right: 50px;
    z-index: 2;
    font-size: 29px;
    line-height: 1;
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .12));
    transform: rotate(-7deg);
    pointer-events: none;
}

.qz-deco-cardimg {
    position: absolute;
    top: 12px;
    right: 38px;
    z-index: 3;
    width: 68px;
    height: 68px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, .92);
    border-radius: 15px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .20);
    transform: rotate(3deg);
    pointer-events: none;
}

.qz-moment.has-cardimg .qz-moment-head {
    padding-right: 112px;
}

.qz-moment-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-right: 84px;
}

.qz-moment-avatar {
    flex: 0 0 50px;
}

.qz-moment-avatar .qz-avatar {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, .7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .10);
}

.qz-moment-id {
    flex: 1 1 auto;
    min-width: 0;
}

.qz-moment-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 32px;
    color: var(--qz-card-ink, var(--qz-ink));
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
}

.qz-moment-name a {
    color: inherit;
}

.qz-level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    max-width: 64px;
    height: 18px;
    padding: 0 6px;
    overflow: hidden;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .4px;
    vertical-align: middle;
    border-radius: 5px;
    background: var(--qz-card-accent, var(--qz-blue));
    box-shadow: 0 3px 8px rgba(0, 0, 0, .10);
    flex: 0 0 auto;
}

.qz-level-badge.has-image {
    width: auto;
    max-width: calc(var(--qz-level-size, 32px) * 4);
    height: var(--qz-level-size, 32px);
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.qz-level-badge.has-image img {
    display: block;
    width: auto;
    height: 100%;
    max-width: calc(var(--qz-level-size, 32px) * 4);
    object-fit: contain;
}

.qz-badge-group {
    display: inline-flex;
    align-items: center;
    align-self: center;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 100%;
    vertical-align: middle;
}

.qz-badge-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    height: 28px;
    max-width: 110px;
    flex: 0 0 auto;
}

.qz-badge-item img {
    display: block;
    width: auto;
    height: 100%;
    max-width: 110px;
    object-fit: contain;
}

.qz-badge-group-hero .qz-badge-item {
    height: 30px;
    max-width: 120px;
}

.qz-badge-group-hero .qz-badge-item img {
    max-width: 120px;
}

.qz-private-badge {
    padding: 0 7px;
    color: var(--qz-card-ink, var(--qz-ink));
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.8;
    border: 1px solid currentColor;
    border-radius: 999px;
    opacity: .62;
}

.qz-moment-sub {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 3px;
    color: var(--qz-card-ink, var(--qz-sub));
    font-size: 11.5px;
    line-height: 1.6;
    opacity: .62;
}

.qz-moment-sub .qz-time {
    color: inherit;
}

.qz-meta-chip {
    display: inline-flex;
    align-items: center;
    padding: 0 7px;
    font-size: 10.5px;
    line-height: 1.8;
    border-radius: 999px;
    background: rgba(127, 127, 127, .12);
}

.qz-moment-menu {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qz-moment-menu a,
.qz-post-deco-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    color: var(--qz-card-ink, var(--qz-sub));
    font-size: 13px;
    line-height: 1;
    border: 0;
    border-radius: 8px;
    background: rgba(127, 127, 127, .10);
    opacity: .6;
}

.qz-moment-menu a:hover,
.qz-post-deco-btn:hover {
    opacity: 1;
    background: rgba(127, 127, 127, .18);
}

.qz-moment-content {
    margin: 12px 0 0 62px;
}

.qz-text {
    color: inherit;
    font-size: 15px;
    line-height: 1.85;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.qz-text p {
    margin: .42em 0;
}

.qz-text p:first-child {
    margin-top: 0;
}

.qz-text p:last-child {
    margin-bottom: 0;
}

.qz-text img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.qz-text a {
    color: var(--qz-card-accent, var(--qz-blue));
    border-bottom: 1px solid currentColor;
}

.qz-text blockquote {
    margin: .8em 0;
    padding: 6px 14px;
    color: inherit;
    border-left: 3px solid var(--qz-card-accent, var(--qz-blue));
    border-radius: 0 8px 8px 0;
    background: rgba(127, 127, 127, .10);
}

.qz-text pre {
    overflow: auto;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.55;
    border-radius: 10px;
    background: rgba(127, 127, 127, .12);
}

.qz-text.is-clamped {
    position: relative;
    max-height: 320px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}

.qz-expand {
    margin-top: 3px;
    padding: 2px 0;
    border: 0;
    background: none;
    color: var(--qz-card-accent, var(--qz-blue));
    font-size: 12.5px;
    font-weight: 700;
}

/* ---------- 图片卡片：随数量与宽度自适应 ---------- */
.qz-imgs {
    display: grid;
    gap: 7px;
    margin-top: 12px;
    width: 100%;
}

.qz-imgs.imgs-1 {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
}

.qz-imgs.imgs-2,
.qz-imgs.imgs-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 560px;
}

.qz-imgs.imgs-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 560px;
}

.qz-img-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: 4px;
    border-radius: 15px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 5px 16px rgba(23, 49, 84, .12);
    transition: transform .25s cubic-bezier(.2, .7, .3, 1), box-shadow .25s ease;
}

.qz-imgs.imgs-1 .qz-img-card {
    aspect-ratio: var(--img-ratio, 4 / 3);
    max-height: 520px;
    padding: 6px;
    border-radius: 18px;
}

.qz-img-card::before {
    content: "";
    position: absolute;
    inset: 4px;
    z-index: 0;
    border-radius: 11px;
    background: linear-gradient(100deg, #eef4fb 20%, #faffff 40%, #eef4fb 60%);
    background-size: 220% 100%;
    animation: qzShimmer 1.5s linear infinite;
}

.qz-imgs.imgs-1 .qz-img-card::before {
    inset: 6px;
    border-radius: 13px;
}

.qz-img-card.is-loaded::before {
    display: none;
}

@keyframes qzShimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

.qz-img-card img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 11px;
    object-fit: cover;
    transition: transform .4s cubic-bezier(.2, .7, .3, 1);
}

.qz-imgs.imgs-1 .qz-img-card img {
    border-radius: 13px;
}

.qz-img-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(23, 49, 84, .20);
}

.qz-img-card:hover img {
    transform: scale(1.035);
}

.qz-img-zoom {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 3;
    padding: 2px 8px;
    color: #fff;
    font-size: 10px;
    line-height: 1.7;
    border-radius: 999px;
    background: rgba(12, 28, 48, .52);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s ease, transform .2s ease;
}

.qz-img-card:hover .qz-img-zoom {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 操作栏 ---------- */
.qz-moment-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 14px 0 0 62px;
    padding-top: 11px;
    border-top: 1px solid rgba(127, 127, 127, .18);
}

.qz-act {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 2px;
    border: 0;
    background: none;
    color: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    opacity: .68;
    transition: opacity .18s ease, color .18s ease, transform .18s ease;
}

.qz-act:hover {
    opacity: 1;
    color: var(--qz-card-accent, var(--qz-blue));
}

.qz-act-icon {
    font-size: 14px;
    line-height: 1;
    filter: grayscale(1);
    opacity: .62;
    transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}

.qz-like-icon {
    font-size: 15px;
}

.qz-like.is-liked {
    color: #ff8a00;
    opacity: 1;
}

.qz-like.is-liked .qz-like-icon {
    filter: none;
    opacity: 1;
}

.qz-like.qz-pop .qz-like-icon {
    animation: qzPop .42s cubic-bezier(.2, 1.6, .4, 1);
}

@keyframes qzPop {
    0% { transform: scale(1); }
    45% { transform: scale(1.45) rotate(-8deg); }
    100% { transform: scale(1) rotate(0); }
}

.qz-like-count,
.qz-comment-count {
    color: var(--qz-card-accent, var(--qz-blue));
    font-weight: 800;
}

.qz-single-hint {
    margin-left: auto;
    color: var(--qz-card-ink, var(--qz-muted));
    font-size: 10.5px;
    opacity: .45;
}

.qz-moment-date {
    margin-left: auto;
    color: var(--qz-card-ink, var(--qz-muted));
    font-size: 10.5px;
    font-variant-numeric: tabular-nums;
    letter-spacing: .2px;
    white-space: nowrap;
    opacity: .46;
}

.qz-moment-date::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-right: 5px;
    border-radius: 50%;
    background: currentColor;
    vertical-align: 1px;
    opacity: .65;
}

/* ---------- 评论预览 ---------- */
.qz-comment-preview {
    display: flex;
    gap: 8px;
    margin: 10px 0 0 62px;
    padding: 9px 11px;
    border-radius: 12px;
    background: rgba(127, 127, 127, .10);
}

.qz-comment-bubble {
    font-size: 13px;
    line-height: 1.6;
    opacity: .7;
}

.qz-comment-lines {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    line-height: 1.7;
}

.qz-comment-line {
    color: inherit;
    opacity: .82;
}

.qz-comment-line b {
    color: var(--qz-card-accent, var(--qz-blue));
    font-weight: 700;
}

.qz-comment-line + .qz-comment-line {
    margin-top: 2px;
}

.qz-more-comments {
    display: inline-block;
    margin-top: 3px;
    font-size: 11px;
    font-weight: 700;
}

/* ---------- 卡片底纹 ---------- */
.qz-moment::before,
.qz-mini-card::before,
.qz-add-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.qz-pat-dots::before {
    opacity: .075;
    background-image: radial-gradient(currentColor 1.15px, transparent 1.3px);
    background-size: 16px 16px;
}

.qz-pat-stars::before {
    opacity: .34;
    background-image:
        radial-gradient(1.4px 1.4px at 14% 22%, currentColor 50%, transparent 52%),
        radial-gradient(1px 1px at 44% 62%, currentColor 50%, transparent 52%),
        radial-gradient(1.6px 1.6px at 72% 18%, currentColor 50%, transparent 52%),
        radial-gradient(1.2px 1.2px at 86% 74%, currentColor 50%, transparent 52%),
        radial-gradient(1px 1px at 28% 84%, currentColor 50%, transparent 52%);
    background-size: 190px 160px;
}

.qz-pat-hearts::before {
    opacity: .09;
    background-image:
        radial-gradient(circle at 22% 30%, currentColor 3px, transparent 3.6px),
        radial-gradient(circle at 74% 68%, currentColor 2.4px, transparent 3px);
    background-size: 44px 44px;
}

.qz-pat-clouds::before {
    opacity: .34;
    background-image:
        radial-gradient(100px 46px at 18% 20%, rgba(255, 255, 255, .7), transparent 70%),
        radial-gradient(130px 52px at 82% 26%, rgba(255, 255, 255, .55), transparent 72%),
        radial-gradient(90px 40px at 58% 84%, rgba(255, 255, 255, .48), transparent 72%);
}

.qz-pat-grid::before {
    opacity: .075;
    background-image:
        linear-gradient(currentColor 1px, transparent 1px),
        linear-gradient(90deg, currentColor 1px, transparent 1px);
    background-size: 24px 24px;
}

.qz-pat-stripes::before {
    opacity: .06;
    background-image: repeating-linear-gradient(135deg, currentColor 0 1px, transparent 1px 12px);
}

.qz-pat-sakura::before {
    opacity: .16;
    background-image:
        radial-gradient(3.2px 2px at 20% 30%, #ff9fc2 60%, transparent 62%),
        radial-gradient(2.6px 1.6px at 70% 20%, #ffb7d2 60%, transparent 62%),
        radial-gradient(3.6px 2.2px at 44% 76%, #ffc4da 60%, transparent 62%),
        radial-gradient(2.4px 1.4px at 84% 62%, #ff9fc2 60%, transparent 62%);
    background-size: 150px 130px;
}

/* ---------- 卡片边框 ---------- */
.qz-frame-glow {
    box-shadow: 0 0 0 1px var(--qz-card-accent, var(--qz-blue)), 0 18px 42px rgba(0, 0, 0, .18);
}

.qz-frame-glow:hover {
    box-shadow: 0 0 0 1px var(--qz-card-accent, var(--qz-blue)), 0 24px 54px rgba(0, 0, 0, .22);
}

.qz-frame-tape::after {
    content: "";
    position: absolute;
    top: -2px;
    left: 50%;
    z-index: 3;
    width: 104px;
    height: 23px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .48);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
    transform: translateX(-50%) rotate(-1.5deg);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    pointer-events: none;
}

.qz-frame-polaroid {
    border: 9px solid #fff;
    border-bottom-width: 28px;
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(20, 36, 56, .18);
}

.qz-frame-stripe::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    height: 5px;
    background: linear-gradient(90deg, var(--qz-card-accent, var(--qz-blue)), transparent 80%);
    pointer-events: none;
}

/* ---------- 卡片字体 ---------- */
.qz-font-serif {
    font-family: "Songti SC", "SimSun", "STSong", serif;
}

.qz-font-kai {
    font-family: "Kaiti SC", "KaiTi", "STKaiti", "楷体", serif;
}

.qz-font-hand {
    font-family: "Segoe Script", "Bradley Hand", "Kaiti SC", "KaiTi", cursive;
}

/* ==================================================================
   归档 / 单页 / 404
   ================================================================== */
.qz-archive-head {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px 18px;
    margin-bottom: 15px;
}

.qz-archive-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    color: #fff;
    font-size: 21px;
    font-weight: 900;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--qz-blue), var(--qz-blue-2));
    box-shadow: 0 7px 18px rgba(47, 140, 255, .25);
}

.qz-archive-text {
    flex: 1 1 auto;
    min-width: 0;
}

.qz-archive-text h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.4;
}

.qz-archive-text p {
    margin: 2px 0 0;
    color: var(--qz-sub);
    font-size: 11.5px;
}

.qz-single-head {
    margin-bottom: 12px;
}

.qz-back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--qz-sub);
    font-size: 12.5px;
    font-weight: 600;
}

.qz-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    padding: 0 4px;
    color: var(--qz-sub);
    font-size: 12px;
}

.qz-post-nav a {
    color: var(--qz-blue);
}

.qz-post-nav-next {
    text-align: right;
}

.qz-page {
    padding: 28px 30px;
}

.qz-page-head {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--qz-line);
}

.qz-page-kicker {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--qz-blue);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
}

.qz-page-head h1 {
    margin: 0;
    font-size: 27px;
    font-weight: 900;
    line-height: 1.35;
}

.qz-page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    color: var(--qz-sub);
    font-size: 11.5px;
}

.qz-page-content {
    padding-top: 18px;
}

.qz-empty {
    padding: 56px 24px;
    text-align: center;
}

.qz-empty-emoji {
    margin-bottom: 8px;
    font-size: 44px;
    line-height: 1;
}

.qz-empty h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
}

.qz-empty p {
    margin: 6px 0 18px;
    color: var(--qz-sub);
    font-size: 13px;
}

.qz-404 {
    padding: 54px 24px;
    text-align: center;
}

.qz-404-orbit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 13px;
    color: var(--qz-blue);
    font-size: 66px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -4px;
}

.qz-404-planet {
    font-size: 34px;
    letter-spacing: 0;
    animation: qzFloat 3.2s ease-in-out infinite alternate;
}

@keyframes qzFloat {
    from { transform: translateY(-4px) rotate(-8deg); }
    to { transform: translateY(5px) rotate(8deg); }
}

.qz-404 h1 {
    margin: 0;
    font-size: 21px;
    font-weight: 900;
}

.qz-404 p {
    margin: 6px 0 20px;
    color: var(--qz-sub);
    font-size: 13px;
}

.qz-404-actions {
    display: flex;
    justify-content: center;
    gap: 9px;
    flex-wrap: wrap;
}

/* ==================================================================
   评论
   ================================================================== */
.qz-comments {
    margin-top: 16px;
    padding: 22px 24px;
}

.qz-comments-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--qz-line);
}

.qz-comments-head h2 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 18px;
    font-weight: 900;
}

.qz-comments-head p {
    margin: 3px 0 0;
    color: var(--qz-sub);
    font-size: 11.5px;
}

.qz-comments-stats {
    display: flex;
    gap: 7px;
    flex: 0 0 auto;
}

.qz-like-pill,
.qz-comment-pill {
    padding: 3px 9px;
    color: var(--qz-sub);
    font-size: 10.5px;
    border-radius: 999px;
    background: var(--qz-card-2);
}

.qz-like-pill.has-like {
    color: #ff8a00;
    background: rgba(255, 138, 0, .10);
}

.qz-comment-list-wrap {
    margin-top: 8px;
}

.qz-comments .comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.qz-comment {
    display: flex;
    gap: 11px;
    padding: 13px 0;
    border-bottom: 1px solid var(--qz-line);
}

.qz-comment:last-child {
    border-bottom: 0;
}

.qz-comment-avatar {
    flex: 0 0 38px;
}

.qz-comment-avatar .qz-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.qz-comment-main {
    flex: 1 1 auto;
    min-width: 0;
}

.qz-comment-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    font-size: 12px;
    line-height: 1.6;
}

.qz-comment-head b {
    font-weight: 800;
}

.qz-owner-tag {
    padding: 0 6px;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.7;
    border-radius: 4px;
    background: var(--qz-blue);
}

.qz-comment-head time {
    color: var(--qz-muted);
    font-size: 10px;
}

.qz-comment-reply {
    margin-left: auto;
    font-size: 10.5px;
}

.qz-comment-text {
    margin-top: 3px;
    color: var(--qz-ink);
    font-size: 13px;
    line-height: 1.72;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.qz-comment-text p {
    margin: .3em 0;
}

.qz-comment-children {
    margin-top: 8px;
    padding: 2px 0 0 12px;
    border-left: 2px solid var(--qz-line);
}

.qz-comment-children .qz-comment {
    padding: 9px 0;
    border-bottom: 0;
}

.qz-comments-empty {
    padding: 26px 0;
    text-align: center;
    color: var(--qz-muted);
    font-size: 12px;
}

.qz-comments-empty span {
    display: block;
    margin-bottom: 4px;
    font-size: 26px;
}

.qz-respond {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--qz-line);
}

.qz-respond h3 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 11px;
    font-size: 15px;
    font-weight: 900;
}

.qz-cancel-reply {
    min-height: 1px;
    font-size: 11px;
    text-align: right;
}

.qz-logged-as {
    margin: 0 0 10px;
    color: var(--qz-sub);
    font-size: 11.5px;
}

.qz-form-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.qz-comment-form label {
    display: block;
}

.qz-comment-form label > span {
    display: block;
    margin-bottom: 4px;
    color: var(--qz-sub);
    font-size: 11px;
    font-weight: 700;
}

.qz-comment-form input[type="text"],
.qz-comment-form input[type="email"],
.qz-comment-form input[type="url"],
.qz-comment-form textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--qz-line);
    border-radius: 10px;
    background: var(--qz-card-2);
    color: var(--qz-ink);
    font-size: 13px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.qz-comment-form textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.7;
}

.qz-comment-form input:focus,
.qz-comment-form textarea:focus {
    border-color: var(--qz-blue);
    box-shadow: 0 0 0 3px var(--qz-blue-soft);
}

.qz-form-text {
    margin-top: 9px;
}

.qz-form-actions {
    margin-top: 10px;
}

.qz-form-actions .qz-btn {
    min-width: 118px;
}

/* ==================================================================
   分页
   ================================================================== */
.qz-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    margin: 20px 0 6px;
    padding: 0;
}

.qz-pagination li a,
.qz-pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 11px;
    color: var(--qz-sub);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--qz-line);
    border-radius: 10px;
    background: var(--qz-card);
    box-shadow: var(--qz-shadow-sm);
}

.qz-pagination li a:hover {
    color: var(--qz-blue);
    border-color: var(--qz-blue);
}

.qz-pagination li.current span {
    color: #fff;
    border-color: transparent;
    background: var(--qz-blue);
}

.qz-pagination-sm li a,
.qz-pagination-sm li span {
    min-width: 28px;
    height: 28px;
    font-size: 11px;
    box-shadow: none;
}

/* ==================================================================
   页脚 / 移动导航 / 返回顶部
   ================================================================== */
.qz-footer {
    padding: 30px 20px 40px;
    text-align: center;
    color: var(--qz-muted);
    font-size: 11px;
}

.qz-footer-inner {
    width: min(var(--qz-max), 100%);
    margin: 0 auto;
}

.qz-footer-brand {
    margin: 0 0 3px;
    color: var(--qz-sub);
    font-size: 12px;
    font-weight: 800;
}

.qz-footer-brand span {
    color: var(--qz-yellow);
}

.qz-footer-links {
    margin: 0;
    line-height: 1.9;
}

.qz-footer-links a {
    color: var(--qz-sub);
}

.qz-footer-links a:hover {
    color: var(--qz-blue);
}

.qz-footer-links span {
    margin: 0 3px;
    opacity: .5;
}

.qz-footer-note {
    margin: 4px 0 0;
    opacity: .7;
}

.qz-back-top {
    position: fixed;
    right: 22px;
    bottom: 28px;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    background: linear-gradient(135deg, var(--qz-blue), var(--qz-blue-2));
    box-shadow: 0 10px 24px rgba(47, 140, 255, .32);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}

.qz-back-top.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.qz-mobile-nav {
    display: none;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 9px;
    z-index: 115;
    align-items: center;
    justify-content: space-around;
    height: 58px;
    padding: 0 5px;
    border: 1px solid var(--qz-line);
    border-radius: 18px;
    background: var(--qz-topbar);
    box-shadow: 0 12px 34px rgba(26, 70, 124, .18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.qz-mobile-nav a,
.qz-mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 52px;
    height: 46px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--qz-sub);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
}

.qz-mobile-nav span {
    font-size: 17px;
    line-height: 1.2;
}

.qz-mobile-nav .qz-mobile-publish {
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--qz-blue), var(--qz-blue-2));
    box-shadow: 0 7px 16px rgba(47, 140, 255, .28);
}

/* ==================================================================
   弹层 / 发表器
   ================================================================== */
.qz-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .24s ease, visibility .24s ease;
}

.qz-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.qz-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(8, 24, 44, .58);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.qz-modal-panel {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: min(92vh, 920px);
    overflow: auto;
    border: 1px solid var(--qz-line);
    border-radius: 24px;
    background: var(--qz-card);
    box-shadow: var(--qz-shadow-lg);
    transform: translateY(14px) scale(.985);
    transition: transform .26s cubic-bezier(.2, .8, .3, 1);
}

.qz-modal.is-open .qz-modal-panel {
    transform: translateY(0) scale(1);
}

.qz-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--qz-line);
}

.qz-modal-head h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -.4px;
    line-height: 1.35;
}

.qz-modal-head h2 span {
    color: var(--qz-blue);
}

.qz-modal-head p {
    margin: 3px 0 0;
    color: var(--qz-sub);
    font-size: 11.5px;
}

.qz-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    padding: 0;
    border: 1px solid var(--qz-line);
    border-radius: 50%;
    background: var(--qz-card-2);
    color: var(--qz-sub);
    font-size: 21px;
    line-height: 1;
}

.qz-modal-close:hover {
    color: var(--qz-ink);
    background: var(--qz-blue-soft);
}

.qz-composer-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 292px;
    gap: 20px;
    padding: 20px 22px;
}

.qz-composer-editor {
    min-width: 0;
}

.qz-composer-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.qz-composer-user .qz-select {
    max-width: 160px;
}

.qz-composer-avatar.qz-avatar,
.qz-composer-user > .qz-avatar {
    width: 42px;
    height: 42px;
}

.qz-composer-user-name {
    display: flex;
    flex-direction: column;
    margin-right: auto;
    line-height: 1.45;
}

.qz-composer-user-name b {
    font-size: 13px;
    font-weight: 800;
}

.qz-composer-user-name span {
    color: var(--qz-muted);
    font-size: 10.5px;
}

.qz-textarea {
    display: block;
    width: 100%;
    min-height: 146px;
    margin-top: 12px;
    padding: 13px 14px;
    border: 1px solid var(--qz-line);
    border-radius: 14px;
    background: var(--qz-card-2);
    color: var(--qz-ink);
    font-size: 14.5px;
    line-height: 1.8;
    resize: vertical;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.qz-textarea:focus {
    border-color: var(--qz-blue);
    box-shadow: 0 0 0 3px var(--qz-blue-soft);
}

.qz-textarea::placeholder {
    color: var(--qz-muted);
}

.qz-previews {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 9px;
}

.qz-previews:empty {
    display: none;
}

.qz-previews.is-dragover {
    outline: 2px dashed var(--qz-blue);
    outline-offset: 4px;
    border-radius: 12px;
}

.qz-preview-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    background: var(--qz-card-2);
    box-shadow: 0 3px 10px rgba(26, 70, 124, .10);
}

.qz-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qz-preview-item > button {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 2;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 15px;
    line-height: 1;
    background: rgba(10, 26, 46, .62);
}

.qz-preview-item.is-uploading img {
    opacity: .45;
}

.qz-preview-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    background: rgba(15, 34, 58, .28);
}

.qz-composer-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px dashed var(--qz-line);
}

.qz-tool {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 9px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--qz-sub);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
}

.qz-tool:hover {
    color: var(--qz-blue);
    background: var(--qz-blue-soft);
}

.qz-tool-file input {
    display: none;
}

.qz-counter {
    margin-left: auto;
    color: var(--qz-muted);
    font-size: 10.5px;
    font-variant-numeric: tabular-nums;
}

.qz-counter b {
    color: var(--qz-sub);
}

.qz-emoji-pop {
    position: relative;
    z-index: 5;
    display: none;
    grid-template-columns: repeat(9, 1fr);
    gap: 3px;
    margin-top: 7px;
    padding: 9px;
    border: 1px solid var(--qz-line);
    border-radius: 12px;
    background: var(--qz-card);
    box-shadow: var(--qz-shadow);
}

.qz-emoji-pop.is-open {
    display: grid;
}

.qz-emoji-pop button {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: none;
    font-size: 17px;
    line-height: 1;
}

.qz-emoji-pop button:hover {
    background: var(--qz-blue-soft);
}

.qz-location-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    padding: 7px 10px;
    border: 1px solid var(--qz-line);
    border-radius: 10px;
    background: var(--qz-card-2);
    color: var(--qz-muted);
}

.qz-location-row[hidden] {
    display: none;
}

.qz-location-row input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--qz-ink);
    font-size: 12px;
}

.qz-deco-picker {
    margin-top: 13px;
}

.qz-deco-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    color: var(--qz-sub);
    font-size: 11px;
    font-weight: 800;
}

.qz-deco-scroll-hint {
    margin-left: 5px;
    color: var(--qz-muted);
    font-size: 9px;
    font-style: normal;
    font-weight: 500;
}

.qz-deco-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    max-height: 136px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2px 4px 6px 2px;
    scrollbar-width: thin;
    overscroll-behavior: contain;
}

.qz-deco-strip::-webkit-scrollbar {
    width: 6px;
}

.qz-deco-strip::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background: var(--qz-line);
}

.qz-deco-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 5px;
    width: 100%;
    min-width: 0;
    height: 54px;
    padding: 7px 8px;
    border: 2px solid transparent;
    border-radius: 11px;
    background: var(--chip-bg);
    color: var(--chip-ink);
    text-align: left;
    box-shadow: 0 3px 9px rgba(26, 70, 124, .08);
    transition: transform .15s ease, border-color .15s ease;
}

.qz-deco-chip:hover {
    transform: translateY(-2px);
}

.qz-deco-chip.is-active {
    border-color: var(--qz-blue);
    box-shadow: 0 0 0 3px var(--qz-blue-soft);
}

.qz-chip-emoji {
    font-size: 17px;
    line-height: 1;
}

.qz-chip-name {
    max-width: 100%;
    overflow: hidden;
    font-size: 9.5px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qz-composer-error {
    min-height: 16px;
    margin: 8px 0 0;
    color: #e04b4b;
    font-size: 11.5px;
}

/* 发表器右侧预览 */
.qz-composer-preview {
    position: sticky;
    top: 0;
    align-self: start;
    padding-top: 3px;
}

.qz-preview-label {
    display: block;
    margin-bottom: 6px;
    color: var(--qz-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.qz-mini-card {
    position: relative;
    overflow: hidden;
    padding: 15px;
    border-radius: 16px;
    color: var(--qz-card-ink, var(--qz-ink));
    background: var(--qz-card-bg, var(--qz-card));
    box-shadow: 0 12px 30px rgba(24, 62, 110, .14);
}

.qz-mini-card > * {
    position: relative;
    z-index: 1;
}

.qz-mini-sticker {
    position: absolute;
    top: 9px;
    right: 12px;
    z-index: 2;
    font-size: 24px;
    line-height: 1;
    transform: rotate(-7deg);
}

.qz-mini-cardimg {
    position: absolute;
    top: 8px;
    right: 34px;
    z-index: 3;
    width: 44px;
    height: 44px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
    transform: rotate(3deg);
}

.qz-mini-card.has-cardimg .qz-mini-head {
    padding-right: 86px;
}

.qz-mini-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 24px;
}

.qz-mini-avatar.qz-avatar,
.qz-mini-head > .qz-avatar {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, .6);
}

.qz-mini-head div {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.qz-mini-head b {
    font-size: 11.5px;
}

.qz-mini-head span {
    color: var(--qz-card-ink, var(--qz-muted));
    font-size: 9px;
    opacity: .55;
}

.qz-mini-text {
    margin-top: 9px;
    font-size: 12.5px;
    line-height: 1.65;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.qz-mini-text.is-placeholder {
    color: var(--qz-card-ink, var(--qz-muted));
    opacity: .35;
}

.qz-mini-imgs {
    display: grid;
    gap: 3px;
    margin-top: 8px;
}

.qz-mini-imgs:empty {
    display: none;
}

.qz-mini-imgs.imgs-1 {
    grid-template-columns: minmax(0, 78%);
}

.qz-mini-imgs.imgs-2,
.qz-mini-imgs.imgs-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qz-mini-imgs.imgs-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qz-mini-img {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(127, 127, 127, .12);
}

.qz-mini-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qz-mini-actions {
    display: flex;
    gap: 13px;
    margin-top: 9px;
    padding-top: 7px;
    border-top: 1px solid rgba(127, 127, 127, .18);
    color: var(--qz-card-ink, var(--qz-muted));
    font-size: 9.5px;
    opacity: .55;
}

.qz-preview-hint {
    margin: 8px 1px 0;
    color: var(--qz-muted);
    font-size: 10px;
    line-height: 1.6;
}

.qz-modal-foot {
    position: sticky;
    bottom: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding: 14px 22px;
    border-top: 1px solid var(--qz-line);
    background: var(--qz-card-2);
    border-radius: 0 0 24px 24px;
}

.qz-publish-btn {
    min-width: 96px;
}

/* ==================================================================
   装扮中心
   ================================================================== */
.qz-deco-panel {
    width: min(1000px, 100%);
}

.qz-deco-tabs {
    display: flex;
    gap: 3px;
    padding: 0 22px;
    border-bottom: 1px solid var(--qz-line);
}

.qz-deco-tabs button {
    position: relative;
    padding: 11px 13px;
    border: 0;
    background: none;
    color: var(--qz-sub);
    font-size: 12.5px;
    font-weight: 700;
}

.qz-deco-tabs button::after {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: transparent;
}

.qz-deco-tabs button.is-active {
    color: var(--qz-blue);
}

.qz-deco-tabs button.is-active::after {
    background: var(--qz-blue);
}

.qz-deco-pane {
    display: none;
    padding: 18px 22px 24px;
}

.qz-deco-pane.is-active {
    display: block;
}

.qz-pane-note {
    margin: 0 0 13px;
    color: var(--qz-sub);
    font-size: 11.5px;
}

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

.qz-deco-card {
    position: relative;
    padding: 8px;
    border: 2px solid transparent;
    border-radius: 16px;
    background: var(--qz-card);
    box-shadow: 0 5px 18px rgba(24, 62, 110, .08);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.qz-deco-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(24, 62, 110, .15);
}

.qz-deco-card.is-active {
    border-color: var(--qz-blue);
    box-shadow: 0 0 0 3px var(--qz-blue-soft);
}

.qz-deco-card-preview {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 116px;
    overflow: hidden;
    padding: 13px;
    border-radius: 11px;
    background: var(--preview-bg);
    color: var(--preview-ink);
}

.qz-deco-card-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(90px 60px at 80% 12%, rgba(255, 255, 255, .35), transparent 70%);
}

.qz-deco-card-emoji {
    position: absolute;
    top: 8px;
    right: 11px;
    font-size: 21px;
    line-height: 1;
}

.qz-deco-card-preview b {
    position: relative;
    z-index: 1;
    font-size: 13px;
    font-weight: 900;
}

.qz-deco-card-preview p {
    position: relative;
    z-index: 1;
    margin: 3px 0 0;
    font-size: 9.5px;
    line-height: 1.5;
    opacity: .7;
}

.qz-deco-card-pattern {
    position: absolute;
    inset: 0;
    opacity: .5;
}

.qz-deco-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 10px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: .62;
}

.qz-deco-card-preview.has-bg::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .62));
}

.qz-deco-card-preview > b,
.qz-deco-card-preview > p,
.qz-deco-card-emoji {
    z-index: 2;
}

.qz-deco-card-cardimg {
    position: absolute;
    top: 7px;
    right: 9px;
    z-index: 3;
    width: 36px;
    height: 36px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 8px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, .18);
    transform: rotate(3deg);
}

.qz-deco-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 7px 3px 1px;
    color: var(--qz-sub);
    font-size: 10.5px;
    font-weight: 700;
}

.qz-deco-custom {
    padding: 0 5px;
    color: var(--qz-blue);
    font-size: 8.5px;
    font-style: normal;
    line-height: 1.8;
    border-radius: 4px;
    background: var(--qz-blue-soft);
}

.qz-deco-del {
    position: absolute;
    top: 3px;
    right: 3px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 15px;
    line-height: 1;
    background: rgba(12, 28, 48, .58);
    opacity: 0;
    transition: opacity .18s ease;
}

.qz-deco-edit {
    position: absolute;
    top: 3px;
    right: 28px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    background: rgba(47, 140, 255, .82);
    opacity: 0;
    transition: opacity .18s ease;
}

.qz-deco-card:hover .qz-deco-del,
.qz-deco-card:hover .qz-deco-edit {
    opacity: 1;
}

.qz-deco-card.is-active::after {
    content: "✓";
    position: absolute;
    left: 13px;
    bottom: 13px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    background: var(--qz-blue);
}

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

.qz-skin-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 8px;
    border: 2px solid transparent;
    border-radius: 14px;
    background: var(--qz-card);
    text-align: left;
    box-shadow: 0 5px 18px rgba(24, 62, 110, .08);
    transition: transform .18s ease, border-color .18s ease;
}

.qz-skin-card:hover {
    transform: translateY(-2px);
}

.qz-skin-card.is-active {
    border-color: var(--qz-blue);
    box-shadow: 0 0 0 3px var(--qz-blue-soft);
}

.qz-skin-preview {
    display: block;
    width: 100%;
    height: 74px;
    border-radius: 9px;
    background: linear-gradient(135deg, #eaf5ff, #cfe9ff 55%, #2f8cff);
}

.skin-preview-night .qz-skin-preview {
    background: linear-gradient(135deg, #1c2942, #2b3f66 55%, #0e1626);
}

.skin-preview-sakura .qz-skin-preview {
    background: linear-gradient(135deg, #fff0f6, #ffd3e2 55%, #f06292);
}

.skin-preview-mint .qz-skin-preview {
    background: linear-gradient(135deg, #effcf8, #c9f2e2 55%, #12b886);
}

.skin-preview-cream .qz-skin-preview {
    background: linear-gradient(135deg, #fffaf0, #ffe7b8 55%, #e8a33d);
}

.skin-preview-mono .qz-skin-preview {
    background: linear-gradient(135deg, #f4f7fb, #d9e2ee 55%, #4e6b8c);
}

.qz-skin-card b {
    padding: 0 2px;
    color: var(--qz-ink);
    font-size: 12px;
    font-weight: 800;
}

.qz-skin-card em {
    padding: 0 2px;
    color: var(--qz-muted);
    font-size: 9.5px;
    font-style: normal;
}

.qz-skin-card.is-active em {
    color: var(--qz-blue);
    font-weight: 700;
}

.qz-space-bg-editor {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--qz-line);
}

.qz-space-bg-head h3 {
    margin: 0;
    color: var(--qz-ink);
    font-size: 13px;
    font-weight: 900;
}

.qz-space-bg-head p {
    margin: 4px 0 9px;
    color: var(--qz-sub);
    font-size: 10.5px;
    line-height: 1.6;
}

.qz-space-bg-editor input[type="text"] {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--qz-line);
    border-radius: 9px;
    background: var(--qz-card-2);
    color: var(--qz-ink);
    font-size: 12px;
    outline: none;
}

.qz-space-bg-editor .qz-image-field input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
}

.qz-space-bg-editor input[type="text"]:focus {
    border-color: var(--qz-blue);
    box-shadow: 0 0 0 3px var(--qz-blue-soft);
}

.qz-space-bg-editor .qz-mini-upload {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 12px;
    overflow: hidden;
    color: var(--qz-blue);
    font-size: 10.5px;
    font-weight: 800;
    border: 1px solid var(--qz-line);
    border-radius: 9px;
    background: var(--qz-blue-soft);
    cursor: pointer;
}

.qz-space-bg-editor .qz-mini-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.qz-space-bg-editor .qz-mini-upload.is-uploading {
    opacity: .55;
    pointer-events: none;
}

.qz-space-bg-actions {
    display: flex;
    gap: 8px;
    margin-top: 9px;
}

/* 添加装扮表单 */
.qz-deco-form {
    max-width: 740px;
}

.qz-form-hint {
    display: block;
    margin-top: 3px;
    color: var(--qz-muted);
    font-size: 9.5px;
    line-height: 1.5;
}

.qz-badge-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 6px;
}

.qz-badge-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) 28px;
    gap: 6px;
    align-items: center;
}

.qz-badge-row > input[type="text"] {
    width: 100%;
}

.qz-badge-row .qz-image-field {
    min-width: 0;
}

.qz-badge-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--qz-line);
    border-radius: 8px;
    color: #d9534f;
    font-size: 18px;
    line-height: 1;
    background: var(--qz-card-2);
    cursor: pointer;
}

.qz-badge-remove:hover {
    border-color: #e88b88;
    background: rgba(217, 83, 79, .08);
}

.qz-profile-panel {
    width: min(680px, 100%);
}

.qz-profile-form {
    padding: 18px 22px 4px;
}

.qz-profile-form .qz-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qz-form-grid textarea {
    width: 100%;
    min-height: 58px;
    padding: 8px 9px;
    border: 1px solid var(--qz-line);
    border-radius: 8px;
    background: var(--qz-card-2);
    color: var(--qz-ink);
    font-size: 12px;
    line-height: 1.6;
    outline: none;
    resize: vertical;
}

.qz-form-grid textarea:focus {
    border-color: var(--qz-blue);
    box-shadow: 0 0 0 3px var(--qz-blue-soft);
}

.qz-add-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 740px;
    margin-bottom: 11px;
}

.qz-add-head h3 {
    margin: 0;
    color: var(--qz-ink);
    font-size: 14px;
    font-weight: 900;
}

.qz-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.qz-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--qz-sub);
    font-size: 10.5px;
    font-weight: 700;
}

.qz-form-span {
    grid-column: 1 / -1;
}

.qz-form-label {
    display: block;
    margin-bottom: 4px;
    color: var(--qz-sub);
    font-size: 10.5px;
    font-weight: 700;
}

.qz-image-field {
    display: flex;
    align-items: center;
    gap: 7px;
}

.qz-image-field input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
}

.qz-form-grid .qz-mini-upload {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 11px;
    overflow: hidden;
    color: var(--qz-blue);
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid var(--qz-line);
    border-radius: 8px;
    background: var(--qz-blue-soft);
    cursor: pointer;
}

.qz-form-grid .qz-mini-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.qz-form-grid .qz-mini-upload.is-uploading {
    opacity: .55;
    pointer-events: none;
}

.qz-form-grid input[type="text"],
.qz-form-grid input[type="number"],
.qz-form-grid select {
    width: 100%;
    height: 34px;
    padding: 0 9px;
    border: 1px solid var(--qz-line);
    border-radius: 8px;
    background: var(--qz-card-2);
    color: var(--qz-ink);
    font-size: 12px;
    outline: none;
}

.qz-form-grid input[type="color"] {
    width: 100%;
    height: 34px;
    padding: 2px;
    border: 1px solid var(--qz-line);
    border-radius: 8px;
    background: var(--qz-card-2);
    cursor: pointer;
}

.qz-form-grid input:focus,
.qz-form-grid select:focus {
    border-color: var(--qz-blue);
    box-shadow: 0 0 0 3px var(--qz-blue-soft);
}

.qz-add-preview-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 15px 0;
    padding: 12px;
    border: 1px dashed var(--qz-line);
    border-radius: 13px;
    background: var(--qz-card-2);
}

.qz-add-preview-wrap > span {
    flex: 0 0 auto;
    color: var(--qz-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .6px;
    writing-mode: vertical-rl;
}

.qz-add-preview {
    position: relative;
    flex: 1 1 auto;
    max-width: 310px;
    min-height: 102px;
    overflow: hidden;
    padding: 14px;
    border-radius: 12px;
    color: var(--qz-card-ink, #20334d);
    background: var(--qz-card-bg, var(--qz-card));
    box-shadow: 0 8px 20px rgba(24, 62, 110, .10);
}

.qz-add-preview > * {
    position: relative;
    z-index: 1;
}

.qz-add-preview-cardimg {
    position: absolute;
    top: 7px;
    right: 9px;
    z-index: 3;
    width: 44px;
    height: 44px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
    transform: rotate(3deg);
}

.qz-add-preview-emoji {
    position: absolute;
    top: 9px;
    right: 12px;
    z-index: 2;
    font-size: 22px;
    line-height: 1;
}

.qz-add-preview b {
    display: block;
    font-size: 13px;
    font-weight: 900;
}

.qz-add-preview p {
    margin: 5px 0 0;
    font-size: 10.5px;
    line-height: 1.6;
    opacity: .7;
}

/* ==================================================================
   灯箱 / toast
   ================================================================== */
.qz-lightbox {
    position: fixed;
    inset: 0;
    z-index: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(5, 13, 24, .94);
    opacity: 0;
    visibility: hidden;
    transition: opacity .24s ease, visibility .24s ease;
}

.qz-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.qz-lb-figure {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 92vw;
    max-height: 90vh;
    margin: 0;
}

.qz-lb-figure img {
    max-width: 92vw;
    max-height: 82vh;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 26px 70px rgba(0, 0, 0, .55);
}

.qz-lb-figure figcaption {
    color: rgba(255, 255, 255, .62);
    font-size: 11px;
    letter-spacing: 1px;
}

.qz-lb-close,
.qz-lb-prev,
.qz-lb-next {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.qz-lb-close {
    top: 22px;
    right: 24px;
    width: 40px;
    height: 40px;
    font-size: 25px;
    line-height: 1;
}

.qz-lb-prev,
.qz-lb-next {
    top: 50%;
    width: 46px;
    height: 46px;
    margin-top: -23px;
    font-size: 30px;
    line-height: 1;
}

.qz-lb-prev {
    left: 22px;
}

.qz-lb-next {
    right: 22px;
}

.qz-lb-close:hover,
.qz-lb-prev:hover,
.qz-lb-next:hover {
    background: rgba(255, 255, 255, .16);
}

.qz-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 800;
    max-width: min(420px, calc(100% - 40px));
    padding: 10px 16px;
    border-radius: 10px;
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
    background: rgba(20, 38, 62, .92);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
    pointer-events: none;
}

.qz-toast.is-show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.qz-toast-success {
    background: rgba(18, 138, 96, .94);
}

.qz-toast-error {
    background: rgba(190, 55, 55, .94);
}

/* ==================================================================
   响应式
   ================================================================== */
@media (max-width: 1180px) {
    .qz-topbar-inner {
        gap: 16px;
    }

    .qz-search {
        width: 160px;
    }

    .qz-search:focus-within {
        width: 190px;
    }

    .qz-layout {
        grid-template-columns: 232px minmax(0, 1fr) 264px;
        gap: 15px;
    }
}

@media (max-width: 1020px) {
    .qz-layout {
        grid-template-columns: 232px minmax(0, 1fr);
        grid-template-areas: "left main";
    }

    .qz-col-right {
        display: none;
    }

    .qz-search {
        width: 145px;
    }

    .qz-topnav a {
        padding: 0 9px;
    }
}

@media (max-width: 880px) {
    .qz-topnav,
    .qz-search {
        display: none;
    }

    .qz-menu-toggle {
        display: flex;
    }

    .qz-mobile-drawer.is-open {
        display: block;
    }

    .qz-layout {
        grid-template-columns: minmax(0, 720px);
        grid-template-areas: "main";
        justify-content: center;
        width: min(720px, calc(100% - 28px));
        margin-top: -34px;
    }

    .qz-col-left {
        display: none;
    }

    .qz-hero {
        height: 290px;
    }

    .qz-hero-inner {
        padding-bottom: 52px;
    }

    .qz-hero-avatar {
        width: 94px;
        height: 94px;
        flex-basis: 94px;
        border-radius: 26px;
        overflow: visible;
    }

    .qz-hero-person {
        padding-bottom: 12px;
    }

    .qz-avatar-level {
        top: calc(100% - 3px);
        bottom: auto;
        left: 50%;
        max-width: 96px;
        transform: translateX(-50%);
    }

    .qz-avatar-level.has-image {
        max-width: 96px;
    }

    .qz-hero-name {
        font-size: 28px;
    }

    .qz-topbar-inner {
        height: 60px;
    }

    .qz-mobile-drawer {
        display: none;
    }
}

@media (max-width: 720px) {
    .qz-topbar-inner {
        width: calc(100% - 24px);
    }

    .qz-logo-word {
        max-width: 158px;
        font-size: 20px;
    }

    .qz-logo-sub {
        display: none;
    }

    .qz-top-deco {
        display: none;
    }

    .qz-hero {
        height: 260px;
    }

    .qz-hero-inner {
        width: calc(100% - 28px);
        padding-bottom: 46px;
    }

    .qz-hero-avatar {
        width: 78px;
        height: 78px;
        flex-basis: 78px;
        border-width: 3px;
        border-radius: 22px;
        overflow: visible;
    }

    .qz-hero-person {
        padding-bottom: 10px;
    }

    .qz-avatar-level {
        top: calc(100% - 3px);
        bottom: auto;
        left: 50%;
        max-width: 86px;
        transform: translateX(-50%);
    }

    .qz-avatar-level.has-image {
        max-width: 86px;
    }

    .qz-hero-avatar .qz-avatar-letter {
        font-size: 28px;
    }

    .qz-hero-name {
        font-size: 23px;
    }

    .qz-hero-bio {
        display: none;
    }

    .qz-hero-chips span:nth-child(n+3) {
        display: none;
    }

    .qz-hero-actions .qz-btn-glass {
        display: none;
    }

    .qz-hero-actions .qz-btn {
        padding: 7px 12px;
        font-size: 12px;
    }

    .qz-layout {
        width: calc(100% - 24px);
        margin-top: -28px;
    }

    .qz-feed-head h2 {
        font-size: 20px;
    }

    .qz-moment {
        padding: 18px 16px 13px;
        border-radius: 17px;
    }

    .qz-moment-content,
    .qz-moment-actions,
    .qz-comment-preview {
        margin-left: 0;
    }

    .qz-moment-head {
        padding-right: 70px;
    }

    .qz-moment-avatar,
    .qz-moment-avatar .qz-avatar {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .qz-text {
        font-size: 14.5px;
    }

    .qz-deco-sticker {
        top: 12px;
        right: 40px;
        font-size: 24px;
    }

    .qz-deco-cardimg {
        top: 10px;
        right: 36px;
        width: 52px;
        height: 52px;
        border-width: 2px;
        border-radius: 12px;
    }

    .qz-moment.has-cardimg .qz-moment-head {
        padding-right: 104px;
    }

    .qz-imgs.imgs-1 {
        max-width: 100%;
    }

    .qz-imgs.imgs-2,
    .qz-imgs.imgs-3,
    .qz-imgs.imgs-4 {
        max-width: 100%;
    }

    .qz-composer-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .qz-composer-preview {
        display: block;
        position: static;
        margin-top: 4px;
    }

    .qz-modal {
        padding: 10px;
    }

    .qz-modal-panel {
        max-height: calc(100vh - 20px);
        border-radius: 18px;
    }

    .qz-modal-head,
    .qz-composer-body,
    .qz-modal-foot {
        padding-left: 15px;
        padding-right: 15px;
    }

    .qz-deco-grid,
    .qz-skin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qz-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qz-deco-tabs {
        padding: 0 12px;
        overflow-x: auto;
    }

    .qz-deco-pane {
        padding: 14px 15px 20px;
    }

    .qz-deco-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-height: 150px;
    }

    .qz-comments {
        padding: 18px 16px;
    }

    .qz-comments-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .qz-form-row {
        grid-template-columns: 1fr;
    }

    .qz-page {
        padding: 22px 18px;
    }

    .qz-page-head h1 {
        font-size: 23px;
    }

    .qz-mobile-nav {
        display: flex;
    }

    .qz-footer {
        padding-bottom: 82px;
    }

    .qz-back-top {
        right: 16px;
        bottom: 80px;
    }

    .qz-toast {
        bottom: 78px;
    }
}

@media (max-width: 520px) {
    .qz-top-actions .qz-btn-primary {
        display: none;
    }

    .qz-hero {
        height: 235px;
    }

    .qz-hero-person {
        gap: 12px;
        padding-bottom: 9px;
    }

    .qz-hero-avatar {
        width: 68px;
        height: 68px;
        flex-basis: 68px;
        border-radius: 19px;
        overflow: visible;
    }

    .qz-avatar-level {
        top: calc(100% - 2px);
        bottom: auto;
        max-width: 76px;
    }

    .qz-avatar-level.has-image {
        max-width: 76px;
    }

    .qz-hero-name {
        font-size: 20px;
    }

    .qz-vip-badge {
        font-size: 9px;
        padding: 1px 6px;
    }

    .qz-hero-chips {
        gap: 4px;
        margin-top: 8px;
    }

    .qz-hero-chips span {
        padding: 2px 7px;
        font-size: 9.5px;
    }

    .qz-hero-actions {
        display: none;
    }

    .qz-composer-trigger {
        padding: 13px 14px;
    }

    .qz-trigger-btn {
        display: none;
    }

    .qz-trigger-tools {
        gap: 10px;
    }

    .qz-archive-head {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .qz-archive-head .qz-btn {
        margin-left: 57px;
    }

    .qz-moment {
        padding: 16px 13px 12px;
    }

    .qz-moment-head {
        gap: 9px;
    }

    .qz-deco-cardimg {
        top: 9px;
        right: 27px;
        width: 46px;
        height: 46px;
    }

    .qz-moment.has-cardimg .qz-moment-head {
        padding-right: 82px;
    }

    .qz-moment-name {
        min-height: 28px;
        font-size: 14px;
    }

    .qz-name-wrap.has-frame {
        padding: 2px 12px;
        border-width: 10px;
        border-image-width: 10px;
    }

    .qz-level-badge.has-image {
        max-width: calc(var(--qz-level-size, 32px) * 4);
        height: var(--qz-level-size, 32px);
    }

    .qz-level-badge.has-image img {
        max-width: calc(var(--qz-level-size, 32px) * 4);
    }

    .qz-feed-head {
        align-items: flex-start;
        gap: 8px;
    }

    .qz-feed-head > div {
        padding-left: 11px;
    }

    .qz-feed-head > div::before {
        width: 3px;
    }

    .qz-feed-head p {
        font-size: 10.5px;
        padding: 4px 9px;
    }

    .qz-feed-count {
        padding: 4px 9px;
        font-size: 10.5px;
    }

    .qz-moment-sub {
        font-size: 10.5px;
    }

    .qz-moment-actions {
        gap: 14px;
        justify-content: space-between;
    }

    .qz-moment-date {
        font-size: 9.5px;
        letter-spacing: 0;
    }

    .qz-act-label {
        display: none;
    }

    .qz-act {
        font-size: 13px;
    }

    .qz-imgs {
        gap: 5px;
    }

    .qz-img-card {
        padding: 3px;
        border-radius: 12px;
    }

    .qz-imgs.imgs-1 .qz-img-card {
        padding: 4px;
        border-radius: 14px;
    }

    .qz-img-card::before {
        inset: 3px;
        border-radius: 9px;
    }

    .qz-img-card img {
        border-radius: 9px;
    }

    .qz-pagination li a,
    .qz-pagination li span {
        min-width: 30px;
        height: 30px;
        padding: 0 8px;
        font-size: 11px;
    }

    .qz-modal-head h2 {
        font-size: 18px;
    }

    .qz-emoji-pop {
        grid-template-columns: repeat(8, 1fr);
    }

    .qz-deco-grid,
    .qz-skin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .qz-deco-card-preview {
        min-height: 96px;
        padding: 10px;
    }

    .qz-form-grid {
        grid-template-columns: 1fr;
    }

    .qz-profile-form .qz-form-grid {
        grid-template-columns: 1fr;
    }

    .qz-add-preview-wrap {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .qz-add-preview-wrap > span {
        writing-mode: horizontal-tb;
    }

    .qz-add-preview {
        width: 100%;
        max-width: none;
    }

    .qz-lb-prev,
    .qz-lb-next {
        width: 38px;
        height: 38px;
        font-size: 24px;
        margin-top: -19px;
    }

    .qz-lb-prev {
        left: 10px;
    }

    .qz-lb-next {
        right: 10px;
    }

    .qz-lb-close {
        top: 12px;
        right: 12px;
    }

    .qz-404-orbit {
        font-size: 52px;
    }
}

@media (max-width: 380px) {
    .qz-top-me {
        display: none;
    }

    .qz-hero-name {
        font-size: 18px;
    }

    .qz-hero-chips span:nth-child(2) {
        display: none;
    }

    .qz-deco-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

@media (hover: none) {
    .qz-deco-del,
    .qz-deco-edit {
        opacity: 1;
    }

    .qz-img-zoom {
        opacity: 1;
        transform: translateY(0);
    }
}
