/* ============================================================
   页面级样式
   ============================================================ */

/* ---------------- 通知交流室 ---------------- */
.announce-list {
    padding: 4px 16px 16px;
}

.art-card {
    overflow: hidden;
    margin-bottom: 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.art-card:active {
    transform: scale(0.99);
}

.art-cover {
    position: relative;
    overflow: hidden;
    height: 132px;
    padding: 14px;
}

.art-cover .art-tex {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image:
        linear-gradient(180deg, rgba(22, 16, 44, 0) 42%, rgba(22, 16, 44, 0.34) 100%),
        radial-gradient(rgba(255, 255, 255, 0.2) 1.2px, transparent 1.2px);
    background-size: 100% 100%, 14px 14px;
    opacity: 0.92;
}

.art-cover .art-big-title {
    position: absolute;
    right: 16px;
    bottom: 15px;
    left: 16px;
    z-index: 2;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.2px;
    line-height: 1.42;
    text-shadow: 0 2px 14px rgba(30, 20, 60, 0.28);
}

.art-kind {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    height: 21px;
    padding: 0 9px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.4px;
    backdrop-filter: blur(6px);
}

.art-cover .pin {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
}

.art-cover .art-wm {
    position: absolute;
    right: -16px;
    bottom: -26px;
    width: 118px;
    height: 118px;
    opacity: 0.11;
}

.art-cover .pin {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: inline-flex;
    height: 21px;
    padding: 0 8px;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--brand);
    font-size: 9.5px;
    font-weight: 650;
    gap: 3px;
    box-shadow: 0 2px 8px rgba(30, 20, 60, 0.12);
}

.art-body {
    padding: 12px 14px 13px;
}

.art-title {
    font-size: 15px;
    font-weight: 650;
    line-height: 1.42;
}

.art-sum {
    margin-top: 5px;
    color: var(--ink-3);
    font-size: 12px;
    line-height: 1.6;
}

.art-meta {
    display: flex;
    margin-top: 10px;
    align-items: center;
    color: var(--ink-3);
    font-size: 10.5px;
    gap: 6px;
}

.art-meta .av {
    display: flex;
    width: 18px;
    height: 18px;
    align-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 8px;
    font-weight: 600;
    justify-content: center;
}

.art-meta .spacer {
    flex: 1;
}

.art-meta .m {
    display: flex;
    align-items: center;
    gap: 3px;
}

.art-meta img {
    width: 11px;
    height: 11px;
    opacity: 0.7;
}

.file-card {
    display: flex;
    margin-top: 10px;
    padding: 9px 10px;
    align-items: center;
    border-radius: 10px;
    background: rgba(109, 74, 255, 0.05);
    gap: 9px;
}

.file-ext {
    display: flex;
    width: 28px;
    height: 28px;
    align-items: center;
    border-radius: 7px;
    background: #fff;
    color: var(--brand);
    font-size: 8.5px;
    font-weight: 700;
    justify-content: center;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 6px rgba(83, 51, 190, 0.1);
}

.file-name {
    overflow: hidden;
    flex: 1;
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.file-size {
    color: var(--ink-3);
    font-size: 10px;
}

/* 群聊 */
.chat-wrap {
    display: flex;
    padding: 6px 14px 0;
    flex-direction: column;
    gap: 16px;
}

.chat-row {
    display: flex;
    gap: 9px;
}

.chat-row.me {
    flex-direction: row-reverse;
}

.chat-main {
    max-width: 244px;
    min-width: 0;
}

.chat-row.me .chat-main {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
}

.chat-name {
    color: var(--ink-3);
    font-size: 10.5px;
    margin-bottom: 4px;
    padding: 0 2px;
}

.chat-bubble {
    position: relative;
    padding: 9px 12px;
    border-radius: 4px 14px 14px 14px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(83, 51, 190, 0.06);
    font-size: 13px;
    line-height: 1.6;
    word-break: break-word;
}

.chat-row.me .chat-bubble {
    border-radius: 14px 4px 14px 14px;
    background-image: linear-gradient(120deg, #6d4aff, #9b6bff);
    color: #fff;
    box-shadow: 0 6px 18px rgba(109, 74, 255, 0.22);
}

.chat-time {
    margin-top: 4px;
    padding: 0 2px;
    color: var(--ink-4);
    font-size: 9.5px;
}

.chat-actions {
    display: flex;
    margin-top: 6px;
    align-items: center;
    gap: 10px;
    padding: 0 2px;
}

.chat-like {
    display: inline-flex;
    height: 20px;
    padding: 0 7px;
    align-items: center;
    border-radius: 999px;
    background: #fff;
    color: var(--ink-3);
    cursor: pointer;
    font-size: 10px;
    gap: 4px;
    box-shadow: 0 1px 4px rgba(83, 51, 190, 0.08);
    transition: all 0.2s;
}

.chat-like img {
    width: 11px;
    height: 11px;
}

.chat-like.on {
    background: rgba(244, 114, 182, 0.12);
    color: #d6438e;
}

.chat-input-bar {
    position: sticky;
    bottom: 0;
    display: flex;
    padding: 9px 14px 12px;
    align-items: center;
    background: rgba(246, 244, 255, 0.94);
    backdrop-filter: blur(12px);
    gap: 8px;
    z-index: 10;
}

.chat-input {
    display: flex;
    height: 38px;
    padding: 0 14px;
    align-items: center;
    border: 1px solid rgba(109, 74, 255, 0.12);
    border-radius: 999px;
    background: #fff;
    flex: 1;
    font-family: inherit;
    font-size: 13px;
    outline: none;
}

.chat-input::placeholder {
    color: var(--ink-4);
}

.emoji-btn {
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(83, 51, 190, 0.08);
}

.send-btn {
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    border: none;
    border-radius: 50%;
    background-image: linear-gradient(120deg, #6d4aff, #a855f7);
    color: #fff;
    cursor: pointer;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(109, 74, 255, 0.28);
}

.send-btn img {
    width: 15px;
    height: 15px;
}

.emoji-row {
    display: flex;
    overflow: hidden;
    max-height: 0;
    padding: 0 14px;
    align-items: center;
    background: rgba(246, 244, 255, 0.94);
    gap: 8px;
    transition: max-height 0.28s ease, padding 0.28s ease;
}

.emoji-row.open {
    max-height: 44px;
    padding: 0 14px 10px;
}

.emoji-row span {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    justify-content: center;
}

/* ---------------- 文章详情 ---------------- */
.art-detail-cover {
    position: relative;
    overflow: hidden;
    height: 210px;
    padding: 14px;
    color: #fff;
}

.art-detail-cover .wm {
    position: absolute;
    right: -20px;
    bottom: -30px;
    width: 180px;
    height: 180px;
    opacity: 0.14;
}

.art-detail-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    height: 52px;
    padding: 0 14px;
    align-items: center;
    color: #fff;
    gap: 8px;
}

.art-detail-nav .back {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    border-radius: 50%;
    background: rgba(24, 18, 48, 0.22);
    backdrop-filter: blur(8px);
    cursor: pointer;
    justify-content: center;
}

.art-detail-nav .back i {
    display: block;
    width: 8px;
    height: 8px;
    border-bottom: 1.8px solid #fff;
    border-left: 1.8px solid #fff;
    transform: rotate(45deg);
    margin-left: 3px;
}

.art-detail-body {
    position: relative;
    margin-top: -22px;
    padding: 20px 18px 8px;
    border-radius: 22px 22px 0 0;
    background: var(--bg);
}

.art-detail-title {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.4px;
    line-height: 1.42;
}

.art-detail-meta {
    display: flex;
    margin-top: 12px;
    align-items: center;
    color: var(--ink-3);
    font-size: 11px;
    gap: 8px;
}

.art-detail-meta .spacer {
    flex: 1;
}

.prose {
    margin-top: 18px;
}

.prose p {
    margin: 0 0 14px;
    color: #2e2947;
    font-size: 14.5px;
    line-height: 1.92;
    letter-spacing: 0.1px;
}

.prose h3 {
    margin: 24px 0 12px;
    font-size: 16px;
    font-weight: 700;
}

.prose .quote {
    margin: 4px 0 18px;
    padding: 12px 14px;
    border-left: 3px solid var(--brand);
    border-radius: 0 10px 10px 0;
    background: rgba(109, 74, 255, 0.05);
    color: var(--brand-deep);
    font-size: 13.5px;
    line-height: 1.8;
}

.prose ul {
    margin: 0 0 16px;
    padding-left: 0;
    list-style: none;
}

.prose li {
    position: relative;
    margin-bottom: 9px;
    padding-left: 18px;
    color: #2e2947;
    font-size: 14px;
    line-height: 1.8;
}

.prose li::before {
    position: absolute;
    top: 10px;
    left: 2px;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: linear-gradient(120deg, #6d4aff, #f472b6);
    content: "";
}

.prose .figure {
    overflow: hidden;
    margin: 6px 0 18px;
    border-radius: 14px;
}

.prose .figure .ph {
    position: relative;
    display: flex;
    height: 158px;
    align-items: center;
    justify-content: center;
}

.prose .figure .ph::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1.2px, transparent 1.2px);
    background-size: 15px 15px;
    content: "";
    opacity: 0.5;
}

.prose .figure .ph-ico {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    opacity: 0.55;
}

.prose .figure figcaption {
    padding: 7px 2px 0;
    color: var(--ink-3);
    font-size: 10.5px;
    text-align: center;
}

.attach-box {
    display: flex;
    margin-top: 6px;
    padding: 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    gap: 10px;
}

.like-row {
    display: flex;
    margin: 20px 0 6px;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.like-btn {
    display: inline-flex;
    height: 36px;
    padding: 0 18px;
    align-items: center;
    border: 1px solid rgba(244, 114, 182, 0.24);
    border-radius: 999px;
    background: rgba(244, 114, 182, 0.06);
    color: #d6438e;
    cursor: pointer;
    font-size: 12.5px;
    gap: 6px;
    transition: all 0.2s;
}

.like-btn img {
    width: 15px;
    height: 15px;
}

.like-btn.on {
    background-image: linear-gradient(120deg, #ff6fa5, #f472b6);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(244, 114, 182, 0.3);
}

.comment-head {
    display: flex;
    margin: 24px 0 12px;
    align-items: center;
    justify-content: space-between;
}

.comment-head .t {
    font-size: 14px;
    font-weight: 650;
}

.comment-item {
    display: flex;
    padding: 12px 0;
    gap: 10px;
}

.comment-item + .comment-item {
    border-top: 1px solid var(--line);
}

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

.comment-name {
    color: var(--brand);
    font-size: 11.5px;
    font-weight: 600;
}

.comment-text {
    margin-top: 5px;
    color: #2e2947;
    font-size: 13px;
    line-height: 1.7;
    word-break: break-word;
}

.comment-foot {
    display: flex;
    margin-top: 6px;
    align-items: center;
    color: var(--ink-3);
    font-size: 10.5px;
    gap: 12px;
}

.comment-like {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 4px;
}

.comment-like img {
    width: 12px;
    height: 12px;
}

.comment-like.on {
    color: #d6438e;
    font-weight: 600;
}

.comment-bar {
    position: sticky;
    bottom: 0;
    display: flex;
    padding: 9px 14px 12px;
    align-items: center;
    background: rgba(246, 244, 255, 0.95);
    backdrop-filter: blur(12px);
    gap: 8px;
    z-index: 12;
}

/* ---------------- 奖品仓库 ---------------- */
.rw-hero {
    position: relative;
    overflow: hidden;
    margin: 4px 16px 0;
    padding: 18px;
    border-radius: 20px;
    background-image: linear-gradient(128deg, #5b39f0, #8b5cf6 52%, #f472b6 128%);
    color: #fff;
    box-shadow: 0 12px 30px rgba(91, 57, 240, 0.24);
}

.rw-hero .wm {
    position: absolute;
    right: -26px;
    bottom: -30px;
    width: 140px;
    height: 140px;
    opacity: 0.12;
}

.rw-hero .label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    letter-spacing: 0.6px;
}

.rw-hero .val {
    margin-top: 4px;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
}

.rw-hero .val small {
    margin-left: 4px;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.75;
}

.rw-hero .sub {
    display: flex;
    margin-top: 10px;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 10.5px;
    gap: 6px;
}

.rw-hero .sub b {
    font-weight: 600;
    color: #fff;
}

.rw-hero .rule {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    cursor: pointer;
    font-size: 10px;
    backdrop-filter: blur(8px);
}

.rw-grid {
    display: grid;
    padding: 4px 16px 16px;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
}

.rw-card {
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s;
}

.rw-card:active {
    transform: scale(0.98);
}

.rw-thumb {
    position: relative;
    overflow: hidden;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-tex {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.24) 1.2px, transparent 1.2px);
    background-size: 14px 14px;
    opacity: 0.45;
}

.rw-thumb .wm {
    position: absolute;
    right: -10px;
    bottom: -16px;
    width: 78px;
    height: 78px;
    opacity: 0.16;
}

.rw-thumb .ico-w {
    position: relative;
    width: 42px;
    height: 42px;
    opacity: 0.95;
    filter: drop-shadow(0 4px 8px rgba(30, 20, 60, 0.16));
}

.rw-thumb .hot-flag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #d9761a;
    font-size: 9px;
    font-weight: 700;
}

.rw-thumb .left-flag {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(24, 18, 48, 0.4);
    color: #fff;
    font-size: 9px;
    backdrop-filter: blur(6px);
}

.rw-body {
    padding: 10px 11px 11px;
}

.rw-name {
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rw-row {
    display: flex;
    margin-top: 7px;
    align-items: center;
    justify-content: space-between;
}

.rw-pts {
    color: var(--brand);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.rw-pts small {
    margin-left: 2px;
    color: var(--ink-3);
    font-size: 9px;
    font-weight: 500;
}

.rw-btn {
    display: flex;
    height: 26px;
    padding: 0 11px;
    align-items: center;
    border: none;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    justify-content: center;
}

.rw-btn:disabled {
    background: #f1eef7;
    color: var(--ink-4);
    cursor: not-allowed;
}

.rw-card.sold .rw-thumb {
    filter: grayscale(0.55);
}

.sold-mask {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.42);
    color: #6b6485;
    font-size: 12px;
    font-weight: 700;
    justify-content: center;
    backdrop-filter: blur(1px);
}

/* 兑换成功 */
.redeem-success {
    padding: 6px 4px 4px;
    text-align: center;
}

.success-ring {
    display: flex;
    width: 62px;
    height: 62px;
    margin: 6px auto 0;
    align-items: center;
    border-radius: 50%;
    background-image: linear-gradient(135deg, #34d399, #10b981);
    justify-content: center;
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.32);
    animation: pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.success-ring img {
    width: 30px;
    height: 30px;
}

@keyframes pop {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.code-box {
    position: relative;
    margin: 16px 0 6px;
    padding: 14px;
    border: 1.5px dashed rgba(109, 74, 255, 0.32);
    border-radius: 14px;
    background: rgba(109, 74, 255, 0.04);
}

.code-val {
    color: var(--brand-deep);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    font-variant-numeric: tabular-nums;
}

.code-hint {
    margin-top: 5px;
    color: var(--ink-3);
    font-size: 10.5px;
}

/* ---------------- 我的 ---------------- */
.me-hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--sb) + 16px) 16px 58px;
    border-radius: 0 0 26px 26px;
    background-image: linear-gradient(150deg, #5b39f0 0%, #7c5cff 40%, #b06bf0 70%, #f472b6 120%);
    color: #fff;
}

.me-hero .blob {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.me-hero .b1 {
    top: -80px;
    right: -60px;
    width: 200px;
    height: 200px;
}

.me-hero .b2 {
    bottom: -50px;
    left: -40px;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.07);
}

.me-top {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.me-top .avatar {
    width: 56px;
    height: 56px;
    font-size: 21px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.me-name {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.me-sub {
    display: flex;
    margin-top: 5px;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.82);
}

.tenure-badge {
    padding: 2px 8px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 9.5px;
    font-weight: 600;
}

.me-icon-btn {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
    justify-content: center;
}

.me-icon-btn img {
    width: 17px;
    height: 17px;
}

.me-stats {
    position: relative;
    display: flex;
    margin-top: 22px;
    align-items: flex-end;
}

.me-stat {
    flex: 1;
    text-align: center;
}

.me-stat .v {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.me-stat .v small {
    font-size: 9px;
    font-weight: 500;
    opacity: 0.7;
}

.me-stat .l {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 9.5px;
}

.me-stat + .me-stat {
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.growth-card {
    position: relative;
    z-index: 5;
    margin: -40px 16px 0;
    padding: 15px 16px 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.growth-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.growth-label {
    color: var(--ink-3);
    font-size: 10.5px;
    letter-spacing: 0.5px;
}

.growth-val {
    margin-top: 3px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.6px;
    line-height: 1.1;
    background: linear-gradient(100deg, #6d4aff, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.growth-val small {
    margin-left: 3px;
    color: var(--ink-3);
    font-size: 11px;
    font-weight: 500;
    -webkit-text-fill-color: var(--ink-3);
}

.lvl-chip {
    display: flex;
    padding: 5px 10px 5px 6px;
    align-items: center;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 11px;
    font-weight: 650;
    gap: 5px;
}

.lvl-dot {
    display: flex;
    width: 20px;
    height: 20px;
    align-items: center;
    border-radius: 50%;
    background-image: linear-gradient(135deg, #6d4aff, #f472b6);
    color: #fff;
    font-size: 9px;
    justify-content: center;
}

.growth-bar {
    margin-top: 12px;
}

.growth-foot {
    display: flex;
    margin-top: 7px;
    color: var(--ink-3);
    font-size: 10px;
    justify-content: space-between;
}

.quick-grid {
    display: grid;
    margin: 14px 16px 0;
    padding: 16px 6px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
    gap: 14px 0;
    grid-template-columns: repeat(4, 1fr);
}

.quick {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-direction: column;
    gap: 7px;
    position: relative;
}

.quick .lb {
    color: var(--ink-2);
    font-size: 11px;
}

.quick .n-badge {
    position: absolute;
    top: -3px;
    right: 50%;
    min-width: 14px;
    height: 14px;
    padding: 0 4px;
    border: 1.5px solid #fff;
    border-radius: 7px;
    background: #ff5d73;
    color: #fff;
    font-size: 8.5px;
    font-weight: 600;
    line-height: 12px;
    margin-right: -22px;
}

.me-sec {
    display: flex;
    margin: 20px 16px 10px;
    align-items: center;
    justify-content: space-between;
}

.me-sec .t {
    font-size: 15px;
    font-weight: 700;
}

.me-sec .more {
    display: flex;
    align-items: center;
    color: var(--ink-3);
    cursor: pointer;
    font-size: 11px;
    gap: 3px;
}

.board-preview {
    margin: 0 16px;
    padding: 6px 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.board-row {
    display: flex;
    padding: 11px 0;
    align-items: center;
    gap: 10px;
}

.board-row + .board-row {
    border-top: 1px solid var(--line);
}

.rank-num {
    display: flex;
    width: 22px;
    height: 22px;
    align-items: center;
    border-radius: 7px;
    background: rgba(154, 147, 184, 0.1);
    color: var(--ink-3);
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    justify-content: center;
}

.rank-num.r1 {
    background: linear-gradient(135deg, #ffd36e, #ff9f43);
    color: #fff;
}

.rank-num.r2 {
    background: linear-gradient(135deg, #dfe3ea, #b9c0cc);
    color: #fff;
}

.rank-num.r3 {
    background: linear-gradient(135deg, #f0b68a, #d99464);
    color: #fff;
}

.board-name {
    font-size: 12.5px;
    font-weight: 600;
}

.board-dept {
    color: var(--ink-3);
    font-size: 10px;
    margin-top: 1px;
}

.board-pts {
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.honor-strip {
    display: flex;
    overflow-x: auto;
    padding: 0 16px 4px;
    gap: 10px;
    scrollbar-width: none;
}

.honor-strip::-webkit-scrollbar {
    display: none;
}

.honor-mini {
    position: relative;
    overflow: hidden;
    width: 132px;
    padding: 12px;
    border-radius: 14px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(83, 51, 190, 0.16);
}

.honor-mini .wm {
    position: absolute;
    right: -8px;
    bottom: -10px;
    width: 56px;
    height: 56px;
    opacity: 0.16;
}

.honor-mini .kind {
    font-size: 9px;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

.honor-mini .nm {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.honor-mini .iss {
    margin-top: 3px;
    font-size: 9.5px;
    opacity: 0.78;
}

.menu-list {
    margin: 0 16px;
    padding: 2px 15px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.menu-item {
    display: flex;
    padding: 14px 0;
    align-items: center;
    cursor: pointer;
    gap: 11px;
}

.menu-item + .menu-item {
    border-top: 1px solid var(--line);
}

.menu-item .lb {
    flex: 1;
    font-size: 13.5px;
    font-weight: 500;
}

.menu-item .hint {
    color: var(--ink-3);
    font-size: 11px;
}

.chev {
    width: 7px;
    height: 7px;
    border-top: 1.5px solid var(--ink-4);
    border-right: 1.5px solid var(--ink-4);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* 悬浮导航：头图上透明，滚动后变实心 */
.float-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    background: transparent;
    transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
    backdrop-filter: none;
}

.on-hero {
    color: #fff;
}

.on-hero .nav-title {
    color: #fff;
}

.on-hero .nav-right {
    color: #fff;
}

.on-hero .back {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.on-hero .back i {
    display: block;
    width: 8px;
    height: 8px;
    border-bottom: 1.8px solid #fff;
    border-left: 1.8px solid #fff;
    transform: rotate(45deg);
    margin-left: 3px;
}

.on-hero.solid {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line);
}

.on-hero.solid .nav-title,
.on-hero.solid .nav-right {
    color: var(--ink);
}

.on-hero.solid .nav-right {
    color: var(--brand);
}

.on-hero.solid .back {
    border-color: transparent;
    background: rgba(109, 74, 255, 0.08);
}

.on-hero.solid .back i {
    border-color: var(--ink);
}

.float-nav.solid {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 0 var(--line);
    color: var(--ink);
    backdrop-filter: blur(14px);
}

.ad-nav.solid .back,
.art-detail-nav.solid .back {
    background: rgba(109, 74, 255, 0.08);
}

.ad-nav.solid .back i,
.art-detail-nav.solid .back i {
    border-color: var(--ink);
}

.ad-nav.solid .back img,
.art-detail-nav.solid .back img {
    filter: invert(1) brightness(0.25);
}

/* ---------------- 活动详情 ---------------- */
.ad-hero {
    position: relative;
    overflow: hidden;
    height: 232px;
    padding: 14px;
    color: #fff;
}

.ad-hero .wm {
    position: absolute;
    right: -24px;
    bottom: -34px;
    width: 210px;
    height: 210px;
    opacity: 0.14;
}

.ad-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    height: 52px;
    padding: 0 14px;
    align-items: center;
    color: #fff;
    gap: 8px;
}

.ad-nav .back {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    border-radius: 50%;
    background: rgba(24, 18, 48, 0.22);
    backdrop-filter: blur(8px);
    cursor: pointer;
    justify-content: center;
}

.ad-nav .back i {
    display: block;
    width: 8px;
    height: 8px;
    border-bottom: 1.8px solid #fff;
    border-left: 1.8px solid #fff;
    transform: rotate(45deg);
    margin-left: 3px;
}

.ad-hero-text {
    position: absolute;
    right: 16px;
    bottom: 40px;
    left: 16px;
}

.ad-hero-text .cat {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    cursor: default;
    backdrop-filter: blur(6px);
}

.ad-hero-text h3 {
    margin: 8px 0 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.ad-hero-text p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.ad-body {
    position: relative;
    margin-top: -20px;
    padding-bottom: 88px;
    border-radius: 22px 22px 0 0;
    background: var(--bg);
}

.ad-info {
    margin: 0 16px;
    padding: 4px 16px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.ad-info-row {
    display: flex;
    padding: 13px 0;
    align-items: center;
    gap: 11px;
}

.ad-info-row + .ad-info-row {
    border-top: 1px solid var(--line);
}

.ad-info-row .k {
    color: var(--ink-3);
    font-size: 11.5px;
    width: 44px;
    flex-shrink: 0;
}

.ad-info-row .v {
    flex: 1;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.5;
}

.ad-info-row .extra {
    color: var(--brand);
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.ad-sec {
    margin: 20px 16px 0;
}

.ad-sec .t {
    display: flex;
    margin-bottom: 10px;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    gap: 7px;
}

.ad-sec .t::before {
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background-image: linear-gradient(180deg, #6d4aff, #f472b6);
    content: "";
}

.ad-intro {
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff;
    color: #2e2947;
    font-size: 13.5px;
    line-height: 1.85;
    box-shadow: var(--shadow);
}

.timeline {
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}

.tl-item {
    position: relative;
    display: flex;
    padding-bottom: 14px;
    gap: 12px;
}

.tl-item:last-child {
    padding-bottom: 0;
}

.tl-item::before {
    position: absolute;
    top: 16px;
    bottom: 0;
    left: 4px;
    width: 1px;
    background: var(--line);
    content: "";
}

.tl-item:last-child::before {
    display: none;
}

.tl-dot {
    position: relative;
    z-index: 2;
    width: 9px;
    height: 9px;
    margin-top: 5px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--brand);
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(109, 74, 255, 0.16);
}

.tl-time {
    color: var(--brand);
    font-size: 11px;
    font-weight: 650;
}

.tl-text {
    margin-top: 2px;
    color: var(--ink-2);
    font-size: 12.5px;
    line-height: 1.6;
}

.host-row {
    display: flex;
    padding: 14px 16px;
    align-items: center;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
    gap: 10px;
}

.ad-cta {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    margin-top: 16px;
    padding: 10px 16px 14px;
    align-items: center;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    gap: 12px;
}

.ad-cta .pts {
    flex-shrink: 0;
}

.ad-cta .pts .v {
    color: var(--brand);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
}

.ad-cta .pts .l {
    color: var(--ink-3);
    font-size: 10px;
}

.ad-cta .btn {
    flex: 1;
}

/* ---------------- 记录 ---------------- */
.rec-tabs {
    display: flex;
    margin: 4px 16px 12px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(109, 74, 255, 0.07);
}

.log-item {
    display: flex;
    padding: 13px 0;
    align-items: center;
    gap: 11px;
}

.log-item + .log-item {
    border-top: 1px solid var(--line);
}

.log-main {
    flex: 1;
    min-width: 0;
}

.log-reason {
    font-size: 13px;
    font-weight: 500;
}

.log-time {
    margin-top: 3px;
    color: var(--ink-3);
    font-size: 10.5px;
}

.log-delta {
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.log-delta.plus {
    color: #10b981;
}

.log-delta.minus {
    color: var(--ink-2);
}

.log-balance {
    margin-top: 2px;
    color: var(--ink-4);
    font-size: 9.5px;
    text-align: right;
}

.redeem-card {
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}

.redeem-top {
    display: flex;
    align-items: center;
    gap: 11px;
}

.redeem-code {
    margin-top: 12px;
    padding: 12px;
    border: 1.5px dashed rgba(109, 74, 255, 0.28);
    border-radius: 12px;
    background: rgba(109, 74, 255, 0.03);
}

.redeem-code .v {
    color: var(--brand-deep);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2.4px;
    font-variant-numeric: tabular-nums;
}

.redeem-code .h {
    display: flex;
    margin-top: 4px;
    align-items: center;
    color: var(--ink-3);
    font-size: 10px;
    justify-content: space-between;
}

.copy-btn {
    padding: 3px 9px;
    border: 1px solid rgba(109, 74, 255, 0.2);
    border-radius: 999px;
    background: #fff;
    color: var(--brand);
    cursor: pointer;
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
}

.status-pill {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
}

.status-pill.pending {
    background: rgba(255, 159, 67, 0.14);
    color: #d9761a;
}

.status-pill.done {
    background: rgba(16, 185, 129, 0.12);
    color: #0d9488;
}

/* ---------------- 排行榜 ---------------- */
.podium {
    display: flex;
    padding: 18px 16px 0;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}

.podium-item {
    display: flex;
    flex: 1;
    align-items: center;
    flex-direction: column;
}

.podium-item .avatar {
    border: 2.5px solid #fff;
    box-shadow: 0 8px 20px rgba(83, 51, 190, 0.16);
}

.podium-item.p1 .avatar {
    width: 62px;
    height: 62px;
    font-size: 23px;
}

.podium-crown {
    margin-bottom: 2px;
    font-size: 16px;
    line-height: 1;
    animation: floaty 3s ease-in-out infinite;
}

@keyframes floaty {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.podium-name {
    margin-top: 7px;
    font-size: 12px;
    font-weight: 650;
}

.podium-pts {
    color: var(--brand);
    font-size: 11px;
    font-weight: 600;
    margin-top: 1px;
}

.podium-base {
    width: 100%;
    margin-top: 8px;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(180deg, rgba(109, 74, 255, 0.1), rgba(109, 74, 255, 0.02));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 6px;
    color: var(--ink-3);
    font-size: 10px;
    font-weight: 700;
}

.podium-item.p1 .podium-base {
    height: 56px;
    background: linear-gradient(180deg, rgba(255, 159, 67, 0.18), rgba(255, 159, 67, 0.03));
    color: #d9761a;
}

.podium-item.p2 .podium-base {
    height: 40px;
}

.podium-item.p3 .podium-base {
    height: 30px;
}

.my-rank {
    display: flex;
    margin: 0 16px 12px;
    padding: 12px 14px;
    align-items: center;
    border-radius: 14px;
    background-image: linear-gradient(120deg, rgba(109, 74, 255, 0.08), rgba(244, 114, 182, 0.08));
    gap: 10px;
}

/* ---------------- 消息 ---------------- */
.msg-item {
    display: flex;
    padding: 14px 0;
    gap: 11px;
    cursor: pointer;
}

.msg-item + .msg-item {
    border-top: 1px solid var(--line);
}

.msg-main {
    flex: 1;
    min-width: 0;
}

.msg-title {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    gap: 6px;
}

.msg-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff5d73;
    flex-shrink: 0;
}

.msg-body {
    margin-top: 4px;
    color: var(--ink-3);
    font-size: 11.5px;
    line-height: 1.6;
}

.msg-time {
    color: var(--ink-4);
    font-size: 10px;
    flex-shrink: 0;
}

/* ---------------- 他人主页 / 编辑资料 ---------------- */
.pv-hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--sb) + 16px) 16px 54px;
    border-radius: 0 0 26px 26px;
    color: #fff;
    background-image: linear-gradient(150deg, #5b39f0, #7c5cff 45%, #b06bf0 80%, #f472b6 125%);
}

.pv-hero .blob {
    position: absolute;
    top: -70px;
    right: -50px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.pv-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
}

.pv-name {
    font-size: 20px;
    font-weight: 700;
}

.pv-meta {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 11.5px;
}

.pv-tags {
    display: flex;
    position: relative;
    margin-top: 14px;
    flex-wrap: wrap;
    gap: 6px;
}

.pv-tag {
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 10px;
}

.pv-card {
    position: relative;
    z-index: 5;
    margin: -38px 16px 0;
    padding: 15px 16px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.privacy-note {
    display: flex;
    margin-top: 10px;
    padding: 9px 11px;
    align-items: flex-start;
    border-radius: 10px;
    background: rgba(109, 74, 255, 0.05);
    color: var(--ink-3);
    font-size: 10.5px;
    gap: 6px;
    line-height: 1.6;
}

.privacy-note img {
    width: 12px;
    height: 12px;
    margin-top: 2px;
    opacity: 0.6;
}

.form-card {
    margin: 0 16px;
    padding: 2px 16px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.form-row {
    display: flex;
    min-height: 48px;
    padding: 10px 0;
    align-items: center;
    gap: 12px;
}

.form-row + .form-row {
    border-top: 1px solid var(--line);
}

.form-row .k {
    width: 62px;
    color: var(--ink-2);
    flex-shrink: 0;
    font-size: 12.5px;
}

.form-row input,
.form-row textarea {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--ink);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    resize: none;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: var(--ink-4);
}

.form-row .unit {
    color: var(--ink-3);
    font-size: 11px;
}

/* ---------------- 称号证书 ---------------- */
.honor-grid {
    display: grid;
    padding: 0 16px;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
}

.honor-card {
    position: relative;
    overflow: hidden;
    padding: 14px;
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 10px 24px rgba(83, 51, 190, 0.18);
    min-height: 104px;
}

.honor-card .wm {
    position: absolute;
    right: -12px;
    bottom: -14px;
    width: 72px;
    height: 72px;
    opacity: 0.16;
}

.honor-card .k {
    font-size: 9.5px;
    opacity: 0.8;
    letter-spacing: 0.6px;
}

.honor-card .n {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.2px;
    line-height: 1.3;
}

.honor-card .l {
    margin-top: 3px;
    font-size: 10px;
    opacity: 0.82;
}

.honor-card .i {
    margin-top: 8px;
    font-size: 9px;
    opacity: 0.65;
}

.honor-card .del {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    width: 20px;
    height: 20px;
    align-items: center;
    border-radius: 50%;
    background: rgba(24, 18, 48, 0.24);
    cursor: pointer;
    justify-content: center;
}

.honor-card .del img {
    width: 9px;
    height: 9px;
}

.upload-card {
    display: flex;
    min-height: 104px;
    align-items: center;
    border: 1.5px dashed rgba(109, 74, 255, 0.28);
    border-radius: 16px;
    background: rgba(109, 74, 255, 0.03);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.upload-card .plus {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 20px;
    font-weight: 300;
    justify-content: center;
}

.upload-card .t {
    color: var(--brand);
    font-size: 11px;
    font-weight: 600;
}

.upload-card .h {
    color: var(--ink-4);
    font-size: 9.5px;
}

/* ---------------- 管理端 ---------------- */
.admin-hero {
    padding: calc(var(--sb) + 12px) 16px 16px;
    border-radius: 0 0 22px 22px;
    background-image: linear-gradient(140deg, #221a3d, #3b2a72 60%, #5b39f0 130%);
    color: #fff;
}

.admin-badge {
    display: inline-flex;
    padding: 3px 9px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 9.5px;
    letter-spacing: 0.6px;
    gap: 4px;
}

.admin-stat {
    display: grid;
    margin-top: 14px;
    gap: 8px;
    grid-template-columns: repeat(3, 1fr);
}

.admin-stat .s {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.07);
}

.admin-stat .v {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
}

.admin-stat .l {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 9.5px;
}

.admin-tabs {
    display: flex;
    overflow-x: auto;
    padding: 12px 16px 4px;
    gap: 7px;
    scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar {
    display: none;
}

.admin-tab {
    padding: 6px 13px;
    border: 1px solid rgba(109, 74, 255, 0.12);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-2);
    cursor: pointer;
    flex-shrink: 0;
    font-size: 11.5px;
}

.admin-tab.on {
    border-color: transparent;
    background-image: linear-gradient(120deg, #6d4aff, #a855f7);
    color: #fff;
    font-weight: 600;
}

.admin-panel {
    padding: 8px 16px 20px;
}

.field {
    margin-bottom: 12px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink-2);
    font-size: 11.5px;
    font-weight: 600;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: rgba(109, 74, 255, 0.45);
}

.field textarea {
    min-height: 76px;
    resize: none;
    line-height: 1.6;
}

.field-row {
    display: flex;
    gap: 10px;
}

.field-row .field {
    flex: 1;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    padding: 5px 11px;
    border: 1px solid rgba(109, 74, 255, 0.14);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-2);
    cursor: pointer;
    font-size: 11px;
}

.chip.on {
    border-color: transparent;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 600;
}

.member-row {
    display: flex;
    padding: 10px 0;
    align-items: center;
    gap: 9px;
}

.member-row + .member-row {
    border-top: 1px solid var(--line);
}

.member-row .pm {
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.verify-result {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.7;
}

.verify-result.ok {
    background: rgba(16, 185, 129, 0.08);
    color: #0d9488;
}

.verify-result.err {
    background: rgba(240, 68, 56, 0.07);
    color: #c9372c;
}

/* ---------------- 设置 / 反馈 ---------------- */
.demo-user {
    display: flex;
    padding: 9px 0;
    align-items: center;
    cursor: pointer;
    gap: 9px;
}

.demo-user .pick {
    display: flex;
    width: 20px;
    height: 20px;
    align-items: center;
    border: 1.5px solid rgba(109, 74, 255, 0.2);
    border-radius: 50%;
    justify-content: center;
}

.demo-user.on .pick {
    border-color: var(--brand);
    background: var(--brand);
}

.demo-user.on .pick::after {
    width: 7px;
    height: 4px;
    border-bottom: 1.6px solid #fff;
    border-left: 1.6px solid #fff;
    content: "";
    transform: rotate(-45deg) translateY(-1px);
}

.type-grid {
    display: grid;
    margin-bottom: 12px;
    gap: 8px;
    grid-template-columns: repeat(3, 1fr);
}

.type-item {
    padding: 10px 6px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
    font-size: 11.5px;
    text-align: center;
    transition: all 0.2s;
}

.type-item.on {
    border-color: rgba(109, 74, 255, 0.4);
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 600;
}

/* ---------------- Toast / Sheet / FX ---------------- */
#toast-layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.toast {
    max-width: 240px;
    padding: 11px 18px;
    border-radius: 12px;
    background: rgba(26, 22, 48, 0.92);
    color: #fff;
    font-size: 12.5px;
    line-height: 1.6;
    text-align: center;
    animation: toastIn 0.26s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    backdrop-filter: blur(8px);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#sheet-layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 800;
    display: none;
}

#sheet-layer.open {
    display: block;
}

.sheet-mask {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(24, 18, 48, 0.42);
    animation: fadeIn 0.22s both;
    backdrop-filter: blur(3px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.sheet {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: 82%;
    overflow-y: auto;
    padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    background: #fff;
    animation: sheetUp 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
    box-shadow: 0 -12px 40px rgba(30, 20, 70, 0.18);
}

@keyframes sheetUp {
    /* 只做淡入：即使动画被浏览器节流或中断，弹层也一定停在正确位置 */
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.sheet-grip {
    width: 34px;
    height: 4px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: rgba(26, 22, 48, 0.14);
}

.sheet h4 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
}

.sheet .sheet-sub {
    color: var(--ink-3);
    font-size: 11.5px;
    line-height: 1.6;
}

.sheet-actions {
    display: flex;
    margin-top: 16px;
    gap: 9px;
}

.sheet-actions .btn {
    flex: 1;
}

#fx-layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 850;
    overflow: hidden;
    pointer-events: none;
}

.confetti {
    position: absolute;
    width: 7px;
    height: 10px;
    border-radius: 2px;
    animation: confettiFall 1.9s cubic-bezier(0.3, 0.7, 0.5, 1) forwards;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(-20px) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translateY(420px) rotate(540deg);
    }
}

/* 页面切换：由 .view 的交叉淡入承担，内容层不再单独做位移动画 */
.view > .pg {
    animation: none;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateX(16px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-up {
    animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
    .stage {
        gap: 40px;
        padding: 0 32px;
    }

    .intro {
        width: 340px;
    }

    .intro-title {
        font-size: 36px;
    }
}

/* 窗口很矮时，左侧介绍栏会放不下，优先保证手机完整 */
@media (max-height: 620px) and (min-width: 861px) {
    .intro {
        display: none;
    }

    .stage {
        gap: 0;
    }
}

@media (max-width: 860px) {
    body {
        overflow: hidden;
        background: var(--bg);
    }

    .stage {
        display: block;
        height: 100%;
        padding: 0;
    }

    .intro {
        display: none;
    }

    .device-slot {
        /* 必须是定位元素：否则绝对定位的 .device 会以视口为参照，
           在非标准宽度下（如窄窗口/嵌入场景）会把内容撑出屏幕 */
        position: relative;
        width: 100% !important;
        height: 100% !important;
    }

    .device-scale {
        transform: none !important;
        width: 100%;
        height: 100%;
    }

    .device {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
        animation: none;
    }

    .device-inner {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .sheet {
        width: 100%;
    }
}


/* ---------------- 覆盖式头图：必须放在最后，保证 padding-top 生效 ---------------- */
.under-nav {
    margin-top: calc(0px - var(--navh) - var(--sb));
    padding-top: calc(var(--navh) + var(--sb));
}
