/* ============================================
   全局变量与基础重置
   ============================================ */

 :root {
    /* ===== 中南蓝 品牌主色 ===== */
    --campus-green: #257FB3;
    /* 中南蓝（主色） */
    --campus-deep: #1B5E84;
    /* 深蓝（渐变收尾 / 夜晚） */
    --csu-blue-light: #5AA6D6;
    /* 亮蓝 */
    --campus-light: #E8F2F8;
    /* 浅蓝背景 */
    /* ===== 白 / 灰 辅助 ===== */
    --bg-gray: #F4F6F9;
    /* 页面淡灰背景 */
    --card-bg: #FFFFFF;
    /* 卡片白 */
    --text-main: #2C3440;
    /* 深灰主文字 */
    --text-sub: #6B7480;
    /* 次要灰文字 */
    --border-soft: #E4E9EF;
    /* 浅边框 */
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    /* ===== 金 / 木 点缀 ===== */
    --csu-gold: #C9A063;
    /* ===== 红 强调（小面积） ===== */
    --csu-red: #E2503E;
    /* ===== 功能性状态色（保留语义） ===== */
    --online-green: #22C55E;
    /* 在线（绿，常规语义） */
    --busy-orange: var(--busy-orange);
    /* 忙碌（橙） */
    --away-gray: #9CA3AF;
    /* 离开（灰） */
}


/* 单主题：仅白天（明亮）配色，不再区分昼夜（period-day / period-night 已废弃） */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #DDE3EA;
    /* 手机外框灰 */
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.5;
    height: 100%;
}


/* ============================================
   APP 容器：模拟微信内置浏览器，最大宽度 480px 居中
   ============================================ */

#app {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-gray);
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}


/* ============================================
   顶部状态栏占位（模拟微信）
   ============================================ */

.topbar {
    flex-shrink: 0;
    height: 44px;
    background: var(--campus-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-weight: 600;
    font-size: 16px;
}

.topbar .loc {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.95;
}

.topbar .loc::before {
    content: "📍";
}


/* ============================================
   顶部 Tab 切换条（三个 Tab）
   ============================================ */

.tabs {
    flex-shrink: 0;
    display: flex;
    background: #fff;
    border-bottom: 1px solid var(--bg-gray);
}

.tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-sub);
    position: relative;
    cursor: pointer;
    transition: color .2s;
}

.tab.active {
    color: var(--campus-green);
    font-weight: 600;
}

.tab.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: var(--campus-green);
    border-radius: 2px;
}


/* ============================================
   内容滚动区
   ============================================ */

.scroll-area {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 80px;
    /* 给底部导航留空间 */
}

.tab-view {
    display: none;
}

.tab-view.active {
    display: block;
    animation: fadeIn .25s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}


/* ============================================
   Tab1：横滑头像墙
   ============================================ */

.avatar-wall {
    background: #fff;
    padding: 14px 0 14px 12px;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--bg-gray);
    scrollbar-width: none;
}

.avatar-wall::-webkit-scrollbar {
    display: none;
}

.avatar-item {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 60px;
    flex-shrink: 0;
    cursor: pointer;
}


/* 头像墙：在线用户正常，离开/离线用户轻微降透明度，形成“在线/离线”视觉分隔 */

.avatar-item.is-off .avatar-pic {
    opacity: .55;
    filter: grayscale(0.3);
}

.avatar-item.is-on .avatar-dot.online {
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
}

.avatar-pic {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}


/* 在线绿点 */

.avatar-dot {
    position: absolute;
    right: 0;
    bottom: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.avatar-dot.online {
    background: var(--online-green);
}

.avatar-dot.busy {
    background: var(--busy-orange);
}

.avatar-dot.away {
    background: var(--away-gray);
}


/* 今日状态小表情（右下角叠加） */

.avatar-mood {
    position: absolute;
    right: -4px;
    top: 30px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}


/* 院系/年级 飘带（左上角） */

.avatar-major {
    position: absolute;
    left: -8px;
    top: 0;
    background: var(--campus-green);
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.avatar-major.c2 {
    background: #6366F1;
}

.avatar-major.c3 {
    background: #EC4899;
}

.avatar-major.c4 {
    background: var(--busy-orange);
}

.avatar-major.c5 {
    background: #0EA5E9;
}

.avatar-name {
    font-size: 11px;
    color: var(--text-sub);
    max-width: 56px;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* 右侧固定"发起组队"圆形按钮 */

.team-btn {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--campus-green);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1.2;
    margin-right: 16px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(37, 127, 179, 0.4);
    transition: transform .15s;
}

.team-btn:active {
    transform: scale(0.92);
}

.team-btn .plus {
    font-size: 18px;
    font-weight: 700;
}


/* ============================================
   Tab1：信息流帖子卡片
   ============================================ */

.feed {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: var(--card-shadow);
}

.post-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.post-head img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.post-head .info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.post-head .name {
    font-weight: 600;
    font-size: 14px;
}

.name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sub-row {
    font-size: 11px;
    color: var(--text-sub);
    margin-top: 3px;
}


/* 院系飘带 */

.tag-major {
    font-size: 9px;
    font-weight: 600;
    color: #fff;
    background: var(--campus-green);
    padding: 1px 5px;
    border-radius: 5px;
}


/* 防尴尬预览小标签 */

.tag-near {
    font-size: 9px;
    color: var(--online-green);
    background: var(--campus-light);
    padding: 1px 5px;
    border-radius: 5px;
    border: 1px solid rgba(37, 127, 179, 0.3);
}

.post-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-main);
    margin: 2px 0 12px;
}


/* 帖子配图九宫格（单行最多 3 张，超出换行） */

.post-imgs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 0 0 12px;
}

.post-imgs .post-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    background: #f0f2f5;
}


/* 卡片底部：左=帖子权重进度条，右=社区审核轻互动 */

.post-foot {
    display: flex;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-soft);
}


/* 审核轻互动：左侧=顶上去/沉下去，右侧=回复，整条铺满卡片宽度 */

.post-acts {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.post-acts .rev-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-acts .rev-btn.reply {
    border-color: transparent;
    background: transparent;
    padding-right: 0;
    color: var(--text-sub);
}

.post-acts .rev-btn.reply:active {
    background: var(--campus-light);
}

.rev-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 6px 9px;
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    background: #fff;
    font-size: 11px;
    color: var(--text-sub);
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
}

.rev-btn.up:active {
    transform: scale(.94);
    border-color: var(--campus-green);
    color: var(--campus-green);
    background: var(--campus-light);
}

.rev-btn.down:active {
    transform: scale(.94);
    border-color: #9DC3E6;
    color: #5B8FBF;
    background: var(--campus-light);
}


/* 反馈动画：顶上去→微放大+金色光晕；沉下去→收缩消失 */

.post-card {
    transition: transform .3s ease, box-shadow .3s ease, opacity .35s ease;
}

.post-card.boosted {
    transform: scale(1.03);
    box-shadow: 0 0 0 2px rgba(201, 160, 99, 0.75), 0 6px 18px rgba(201, 160, 99, 0.45);
}

.post-card.swiped {
    transform: scale(.82) translateY(24px);
    opacity: 0;
}

@keyframes patPop {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.15);
    }
    60% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}


/* ============================================
   Tab3：圈子
   ============================================ */

.circle-section {
    padding: 12px;
}

.circle-section h3 {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 10px;
}

.circle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.circle-card {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform .15s;
}

.circle-card:active {
    transform: scale(0.97);
}

.circle-card.joined {
    border: 1px solid var(--campus-green);
}

.circle-emoji {
    font-size: 26px;
}

.circle-name {
    font-weight: 600;
    font-size: 14px;
}

.circle-members {
    font-size: 11px;
    color: var(--text-sub);
}

.circle-join-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 9px;
    color: var(--campus-green);
    background: var(--campus-light);
    padding: 2px 6px;
    border-radius: 6px;
}

.circle-card::after {
    content: "";
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--campus-light);
    opacity: 0.6;
}

.circle-reco-tag {
    font-size: 10px;
    color: #6366F1;
    background: var(--bg-gray);
    padding: 2px 6px;
    border-radius: 6px;
    display: inline-block;
    width: fit-content;
}


/* ============================================
   底部导航栏
   ============================================ */

.bottom-nav {
    position: fixed;
    /* 固定在屏幕底部，始终可见，不随页面滚动 */
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 60px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    z-index: 20;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    cursor: pointer;
    font-size: 10px;
    color: var(--text-sub);
}

.nav-item.active {
    color: var(--campus-green);
}

.nav-item .icon {
    font-size: 20px;
    line-height: 1;
}


/* 底部导航「我的」校徽图标 */

.nav-csu-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 4px;
}

.nav-item.publish {
    flex: 0 0 56px;
}

.nav-item.publish .icon {
    width: 48px;
    height: 48px;
    background: var(--campus-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 300;
    margin-top: -22px;
    box-shadow: 0 4px 12px rgba(37, 127, 179, 0.45);
    transition: transform .15s;
}

.nav-item.publish:active .icon {
    transform: scale(0.9) rotate(90deg);
}


/* ============================================
   悬浮动作球
   ============================================ */

.fab {
    position: fixed;
    left: 50%;
    bottom: 124px;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 14px;
    gap: 8px;
    pointer-events: none;
}

.fab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--campus-green);
    color: #fff;
    padding: 8px 14px;
    border-radius: 22px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 127, 179, 0.4);
    cursor: pointer;
    transition: transform .15s;
    pointer-events: auto;
}

.fab-btn:active {
    transform: scale(0.92);
}

.fab-btn .pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: pulse 1.5s infinite;
}

.fab-btn.has-unread .pulse {
    background: var(--csu-red);
    animation: pulseRed 1.1s infinite;
}

@keyframes pulseRed {
    0% {
        transform: scale(0.85);
        box-shadow: 0 0 0 0 rgba(226, 80, 62, 0.55);
    }
    70% {
        transform: scale(1.3);
        box-shadow: 0 0 0 7px rgba(226, 80, 62, 0);
    }
    100% {
        transform: scale(0.85);
        box-shadow: 0 0 0 0 rgba(226, 80, 62, 0);
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}


/* 组队弹层 */

.team-modal {
    position: fixed;
    left: 50%;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 30;
}

.team-modal.show {
    display: flex;
}

.team-panel {
    align-self: flex-end;
    /* 组队弹层保持底部，其余 team-modal 默认垂直居中 */
    background: #fff;
    width: 100%;
    max-width: 480px;
    border-radius: 18px 18px 0 0;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: none;
    }
}

.team-panel h4 {
    font-size: 15px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.team-panel .close {
    font-size: 18px;
    color: var(--text-sub);
    cursor: pointer;
}


/* 数据看板明细弹窗（我的帖子 / 我的邀请 / 我收到的敲门） */

#meDataModal {
    align-items: center;
}

.md-panel {
    width: 86%;
    max-width: 460px;
    max-height: calc(100vh - 120px);
    background: #fff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}

.md-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--bg-gray);
}

.md-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.md-close {
    font-size: 18px;
    color: var(--text-sub);
    cursor: pointer;
}

.md-body {
    padding: 8px 14px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}

.md-empty {
    text-align: center;
    color: var(--text-sub);
    font-size: 13px;
    padding: 28px 0;
}

.md-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 2px;
    border-bottom: 1px solid var(--bg-gray);
}

.md-row:last-child {
    border-bottom: none;
}

.md-av {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-gray);
}

.md-av-def {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-sub);
}

.md-info {
    flex: 1;
    min-width: 0;
}

.md-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.md-tag {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: var(--campus-green);
    border-radius: 10px;
    padding: 1px 8px;
    flex-shrink: 0;
}

.md-time {
    font-size: 11px;
    color: var(--text-sub);
    font-weight: 400;
    margin-left: auto;
    flex-shrink: 0;
}

.md-text {
    margin-top: 3px;
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.5;
    word-break: break-word;
}


/* 我的帖子：图片/语音媒体（修复图片/语音帖显示为空白） */

.md-imgs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.md-img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-gray);
}

.md-voice {
    margin-top: 6px;
}

.md-audio {
    width: 100%;
    height: 38px;
}

.md-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 16px;
    border-top: 1px solid var(--bg-gray);
}

.md-pg {
    border: none;
    background: var(--bg-gray);
    color: var(--text-main);
    font-size: 13px;
    padding: 7px 16px;
    border-radius: 18px;
    cursor: pointer;
}

.md-pg:disabled {
    opacity: .45;
    cursor: default;
}

.md-pginfo {
    font-size: 13px;
    color: var(--text-sub);
}


/* 搭话面板：layui 风格居中卡片（覆盖底部弹层默认底部对齐） */

#plazaMenu {
    align-items: center;
}

.pm-card {
    width: 84%;
    /* 我的页 / 搭话弹窗：百分比宽度，配合父级 flex 水平居中 */
    max-width: 460px;
    max-height: calc(100vh - 120px);
    /* 不超出可视区：扣除微信顶/底系统栏与底部操作栏 */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-radius: 16px;
    padding: 18px 18px 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.pm-head {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.pm-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--campus-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.pm-meta {
    flex: 1;
    min-width: 0;
}

.pm-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.pm-decl {
    font-size: 12px;
    color: var(--text-sub);
    margin-top: 4px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pm-close {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 18px;
    color: var(--text-sub);
    cursor: pointer;
    line-height: 1;
}


/* 我的页弹窗：按需 AJAX 加载时的加载态 / 错误态（纯静态，不引入动画） */

.ajax-loading,
.ajax-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 44px 20px;
}

.ajax-loading .aj-tip,
.ajax-error p {
    color: var(--text-sub);
    font-size: 13px;
    margin: 0;
}

.ajax-error .plaza-btn {
    margin-top: 4px;
}

.pm-tip {
    margin: 16px 0 16px;
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.6;
    background: var(--bg-gray);
    padding: 12px 14px;
    border-radius: 12px;
}

.pm-knock {
    width: 100%;
    border: none;
    background: linear-gradient(135deg, var(--campus-green), var(--campus-deep));
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 0;
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(37, 127, 179, 0.36);
}

.pm-knock:active {
    transform: scale(0.97);
}


/* 搭话弹窗底部：Ta 最近的动态（单条展示，不可左右滑动） */

.pm-speeches {
    margin-top: 16px;
    border-top: 1px solid var(--bg-gray);
    padding-top: 12px;
}

.pm-speeches-title {
    font-size: 12px;
    color: var(--text-sub);
    font-weight: 600;
    margin-bottom: 8px;
}

.pm-speech-item {
    background: var(--bg-gray);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
    color: var(--text-main);
    line-height: 1.55;
    white-space: normal;
    word-break: break-word;
}


/* 动态图片：换行包裹，不可滑动 */

.pm-speech-imgs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.pm-speech-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    background: #e9edf2;
}

.pm-speech-meta {
    display: none;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-sub);
}


/* 无动态时的友好空文案 */

.pm-speech-empty {
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.6;
    padding: 14px 12px;
    background: var(--bg-gray);
    border-radius: 10px;
    text-align: center;
}


/* ============================================
           我的页面 · 弹窗样式（layui 风格居中卡片）
           ============================================ */


/* 微信图标 */

.mi-weixin {
    width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.mi-weixin img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 3px;
}

.mi-hint {
    font-size: 10px;
    color: var(--text-sub);
    flex: 0 0 auto;
    margin-right: 4px;
}


/* ---- 邀请弹窗 ---- */

.invite-card {
    max-width: 320px;
    text-align: center;
}

.invite-body {
    padding: 4px 0 12px;
}

.invite-body canvas,
.invite-body img {
    border-radius: 10px;
    border: 1px solid var(--border-soft);
}

.invite-link {
    color: var(--campus-green);
    font-size: 12px;
    word-break: break-all;
    margin: 10px 0 12px;
    padding: 0 8px;
}

.invite-footer {
    border-top: 1px solid var(--bg-gray);
    padding-top: 14px;
    margin-top: 4px;
}

.invite-thanks {
    font-size: 14px;
    font-weight: 600;
    color: var(--campus-green);
    margin-bottom: 6px;
}

.invite-desc {
    font-size: 11px;
    color: var(--text-sub);
    line-height: 1.7;
}


/* ---- 黑名单弹窗 ---- */

.bl-card {
    max-width: 340px;
}

.bl-body {
    max-height: 300px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.bl-empty {
    text-align: center;
    color: var(--text-sub);
    font-size: 13px;
    padding: 30px 0;
}

.bl-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-gray);
}

.bl-item:last-child {
    border-bottom: none;
}

.bl-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.bl-info {
    flex: 1;
    min-width: 0;
}

.bl-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
}

.bl-reason {
    font-size: 11px;
    color: var(--text-sub);
    margin-top: 2px;
}


/* ---- 提建议弹窗 ---- */

.sg-card {
    max-width: 340px;
}

.sg-body {
    padding: 4px 0 6px;
}

.sg-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    resize: none;
    font-family: inherit;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--card-bg);
}

.sg-textarea:focus {
    outline: none;
    border-color: var(--campus-green);
    background: #fff;
}

.sg-submit {
    width: 100%;
    margin-top: 12px;
}


/* ---- 发布动态弹窗（WeChat UI 风格：微信绿配色，仅作用于本弹窗） ---- */


/* 覆盖 .team-modal 默认底部对齐，改为上下居中、遮罩加深 */

#uploadModal {
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
}

.up-card {
    /* 微信风格配色变量（局部作用域，不污染全站中南蓝主题） */
    --wx-green: #07C160;
    --wx-green-dark: #06AD56;
    --wx-red: #FA5151;
    --wx-text: #191919;
    --wx-sub: #B2B2B2;
    --wx-border: #E5E5E5;
    --wx-bg: #F7F7F7;
    width: calc(100% - 24px);
    /* 左右留白很小，几乎满宽 */
    max-width: 420px;
    /* 桌面端不至于过宽 */
    max-height: calc(100vh - 32px);
    /* 一屏之内展示完 */
    background: #fff;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.up-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-bottom: 1px solid #F0F0F0;
    flex-shrink: 0;
}

.up-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--wx-text);
}

.up-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    /* 确保在标题之上、不被遮挡 */
    color: var(--wx-sub);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.up-close:active {
    color: var(--wx-text);
}

.up-body {
    padding: 14px 16px;
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.up-textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 130px;
    /* 给足输入空间，不压缩 */
    border: 1px solid var(--wx-border);
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    line-height: 1.6;
    resize: none;
    font-family: inherit;
    color: var(--wx-text);
    background: #fff;
}

.up-textarea::placeholder {
    color: var(--wx-sub);
}

.up-textarea:focus {
    outline: none;
    border-color: var(--wx-green);
}

.up-preview {
    position: relative;
    display: inline-block;
    margin-top: 12px;
}

.up-preview img {
    max-width: 120px;
    max-height: 120px;
    border-radius: 8px;
    display: block;
}

.up-preview-del {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.up-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.up-tool {
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: var(--wx-bg);
    border-radius: 18px;
    padding: 9px 16px;
    font-size: 14px;
    color: var(--wx-text);
    cursor: pointer;
}

.up-tool .up-tool-ic {
    width: 18px;
    height: 18px;
    display: inline-flex;
    color: var(--wx-green);
}

.up-tool .up-tool-ic svg {
    width: 100%;
    height: 100%;
    display: block;
}

.up-tool.recording {
    color: var(--wx-red);
    background: #FDEDED;
}

.up-tool.recording .up-tool-ic {
    color: var(--wx-red);
}

.up-tool:active {
    opacity: .8;
}

.up-rec-tip {
    font-size: 13px;
    color: var(--wx-red);
}

/* 语音试听区（停止录音后出现：试听按钮 + 上传状态 + 删除） */
.up-voice-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--bg-gray, #f5f6f8);
    border-radius: 10px;
}

.up-voice-preview .uvp-play {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--campus-green, #3B9E6A);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.up-voice-preview .uvp-play:active {
    transform: scale(0.92);
}

.up-voice-preview .uvp-play svg {
    width: 15px;
    height: 15px;
}

.up-voice-preview .uvp-play .uvp-pause-icon { display: none; }
.up-voice-preview .uvp-play.playing .uvp-play-icon { display: none; }
.up-voice-preview .uvp-play.playing .uvp-pause-icon { display: block; }

.up-voice-preview .uvp-status {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: var(--text-sub, #999);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.up-voice-preview .uvp-status.ready { color: var(--campus-green, #3B9E6A); }
.up-voice-preview .uvp-status.error { color: var(--wx-red, #FA5151); }

.up-voice-preview .uvp-del {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text-sub, #999);
    font-size: 15px;
    cursor: pointer;
    border-radius: 50%;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.up-voice-preview .uvp-del:active {
    background: rgba(0, 0, 0, 0.06);
}

.up-foot {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid #F0F0F0;
    flex-shrink: 0;
}

.up-submit {
    width: 100%;
    border: none;
    background: var(--wx-green);
    /* 微信绿实心按钮 */
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    padding: 12px 0;
    border-radius: 8px;
    cursor: pointer;
}

.up-submit:active {
    background: var(--wx-green-dark);
}


/* 社区文明提示（CSUer 共建温柔社区） */

.up-civility {
    margin-top: 12px;
    padding: 9px 12px;
    background: #F2F8F4;
    border: 1px solid #D9ECDC;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.6;
    color: #4A8B66;
}


/* ---- 实名认证弹窗 ---- */

.rn-card {
    max-width: 340px;
}

.rn-body {
    padding: 4px 0 6px;
    max-height: 420px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.rn-field {
    margin-bottom: 14px;
}

.rn-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 6px;
}

.rn-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text-main);
    background: var(--card-bg);
}

.rn-input:focus {
    outline: none;
    border-color: var(--campus-green);
    background: #fff;
}

.rn-upload {
    border: 2px dashed var(--border-soft);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s;
}

.rn-upload:hover {
    border-color: var(--campus-green);
}

.rn-upload-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 6px;
}

.rn-upload-text {
    font-size: 12px;
    color: var(--text-sub);
}

.rn-preview {
    position: relative;
    margin-top: 8px;
    border-radius: 10px;
    overflow: hidden;
}

.rn-preview img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.rn-preview-del {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.rn-example {
    margin-top: 14px;
    background: var(--card-bg);
    border-radius: 10px;
    padding: 12px;
}

.rn-example-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.rn-example-img {
    margin-bottom: 6px;
}

.rn-mock-id {
    border: 2px dashed var(--border-soft);
    border-radius: 8px;
    padding: 30px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-sub);
    background: #FFF;
}

.rn-example-tip {
    font-size: 10px;
    color: var(--text-sub);
}

.rn-submit {
    width: 100%;
    margin-top: 16px;
}


/* ---- 用户协议弹窗 ---- */

.ag-card {
    max-width: 84%;
}

.ag-body {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 6px;
    font-size: 13px;
    line-height: 1.75;
    color: var(--text-main);
}

.ag-content h4 {
    font-size: 17px;
    text-align: center;
    color: var(--text-main);
    margin-bottom: 4px;
}

.ag-date {
    text-align: center;
    font-size: 11px;
    color: var(--text-sub);
    margin-bottom: 16px;
}

.ag-content h5 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin: 16px 0 6px;
    padding-left: 8px;
    border-left: 3px solid var(--campus-green);
}

.ag-content p {
    margin: 0 0 8px;
    text-align: justify;
}

.ag-footer-note {
    margin-top: 18px;
    padding: 10px 12px;
    background: var(--bg-gray);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-sub);
}


/* ---- 编辑资料弹窗 ---- */

.ep-card {
    max-width: 340px;
}

.ep-body {
    padding: 4px 0 6px;
}

.ep-field {
    margin-bottom: 14px;
}

.ep-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 6px;
}

.ep-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text-main);
    background: var(--card-bg);
}

.ep-input:focus {
    outline: none;
    border-color: var(--campus-green);
    background: #fff;
}


/* 编辑资料：昵称只读（不可修改），置灰并禁用编辑光标 */

.ep-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    resize: none;
    font-family: inherit;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--card-bg);
}

.ep-textarea:focus {
    outline: none;
    border-color: var(--campus-green);
    background: #fff;
}

.ep-count {
    display: block;
    text-align: right;
    font-size: 11px;
    color: var(--text-sub);
    margin-top: 4px;
}

.ep-submit {
    width: 100%;
}

.team-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.team-list .ti {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 56px;
}

.team-list .ti img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--campus-light);
}

.team-list .ti span {
    font-size: 11px;
    color: var(--text-sub);
}

.team-empty {
    text-align: center;
    color: var(--text-sub);
    padding: 30px 0;
    font-size: 13px;
}


/* Toast */

.toast {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13px;
    max-width: 80%;
    text-align: center;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

.toast.show {
    opacity: 1;
}


/* 底部演示提示 */


/* ============================================
   顶部 Tab 条在消息/我的页面隐藏
   ============================================ */

.tabs.hidden {
    display: none;
}


/* ============================================
   消息页（深色主题）
   ============================================ */

#view-message {
    background: #0F0F11;
    min-height: 100%;
}

.msg-topbar {
    height: 48px;
    background: #0F0F11;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 2;
}

.msg-title {
    font-size: 17px;
    font-weight: 700;
}

.msg-readall {
    font-size: 13px;
    color: var(--csu-gold);
    cursor: pointer;
}

.msg-list {
    background: #0F0F11;
    padding: 0;
}

.msg-item {
    display: flex;
    align-items: stretch;
    gap: 12px;
    height: 72px;
    padding: 12px 16px;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    background: transparent;
    animation: msgIn .35s ease both;
}


/* 列表进入淡入：opacity 0->1, translateY(8px)->0 */

@keyframes msgIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.msg-item:active {
    background: rgba(255, 255, 255, 0.04);
}

.msg-item .m-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}


/* 前缀图标按类型着色，扫一眼即区分三类消息 */

.msg-item.chat .m-icon {
    background: rgba(226, 80, 62, 0.16);
}

.msg-item.knock .m-icon {
    background: rgba(201, 160, 99, 0.16);
}

.msg-item.paper .m-icon {
    background: rgba(90, 166, 214, 0.16);
}

.msg-item .m-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.msg-item .m-row1 {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.msg-item .m-name {
    font-size: 15px;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-item .m-name i {
    font-style: normal;
    font-size: 12px;
    color: var(--text-sub);
    font-weight: 400;
}

.msg-item .m-time {
    font-size: 11px;
    color: var(--text-sub);
    flex-shrink: 0;
}

.msg-item .m-preview {
    font-size: 13px;
    color: var(--text-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* 状态标签：胶囊样式，按类型配色（白字） */

.msg-item .m-status {
    align-self: flex-end;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 8px;
    color: #fff;
    white-space: nowrap;
    transition: background .25s, color .25s;
}

.m-status.red {
    background: var(--csu-red);
    color: #fff;
}

.m-status.yellow {
    background: var(--csu-gold);
    color: #fff;
}

.m-status.green {
    background: #2ED573;
    color: #fff;
}

.m-status.gray {
    background: #747D8C;
    color: #fff;
}

.m-status.blue {
    background: var(--csu-blue-light);
    color: #fff;
}

.msg-empty {
    text-align: center;
    color: var(--text-sub);
    padding: 60px 0;
    font-size: 14px;
    background: #0F0F11;
}

.msg-empty-ill {
    font-size: 42px;
    margin-bottom: 10px;
}


/* 会话详情（聊天占位页，深色） */

.chat-panel {
    position: absolute;
    inset: 0;
    background: #0F0F11;
    display: none;
    flex-direction: column;
    z-index: 25;
}

.chat-panel.show {
    display: flex;
}

.chat-head {
    flex-shrink: 0;
    height: 48px;
    background: #0F0F11;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    font-weight: 600;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
}

.chat-head .back {
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-placeholder {
    margin: auto;
    text-align: center;
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.7;
}

.chat-placeholder .cp-icon {
    font-size: 44px;
    margin-bottom: 12px;
}

.chat-input {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: #0F0F11;
    border-top: 0.5px solid rgba(255, 255, 255, 0.06);
}

.chat-input input {
    flex: 1;
    border: none;
    background: #1C1C1E;
    color: #fff;
    border-radius: 20px;
    padding: 9px 14px;
    font-size: 14px;
    outline: none;
}

.chat-input button {
    background: var(--csu-gold);
    color: var(--text-main);
    border: none;
    border-radius: 20px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.chat-input button:active {
    transform: scale(0.95);
}

.chat-panel.placeholder .chat-input {
    display: none;
}


/* 纸团详情页（深色） */

.paper-panel {
    position: absolute;
    inset: 0;
    background: #0F0F11;
    display: none;
    flex-direction: column;
    z-index: 26;
}

.paper-panel.show {
    display: flex;
}

.paper-head {
    flex-shrink: 0;
    height: 48px;
    background: #0F0F11;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    font-weight: 600;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
}

.paper-head .back {
    font-size: 22px;
    cursor: pointer;
}

.paper-body {
    flex: 1;
    padding: 18px 16px;
    color: #fff;
    overflow-y: auto;
}

.paper-from {
    font-size: 14px;
}

.paper-from b {
    color: var(--csu-gold);
}

.paper-time {
    font-size: 12px;
    color: var(--text-sub);
    margin: 6px 0 18px;
}

.paper-quote {
    background: #1C1C1E;
    border-radius: 14px;
    padding: 18px 16px;
    font-size: 15px;
    line-height: 1.7;
    color: #fff;
    margin-bottom: 24px;
    animation: paperPop .35s cubic-bezier(.2, .8, .3, 1.2) both;
}


/* 纸团内容卡片弹出动画 */

@keyframes paperPop {
    from {
        opacity: 0;
        transform: scale(.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.paper-actions {
    display: flex;
    gap: 12px;
}

.paper-actions button {
    flex: 1;
    padding: 12px 0;
    border-radius: 22px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#paperReply {
    background: var(--csu-gold);
    color: var(--text-main);
}

#paperRead {
    background: #2A2A2C;
    color: #fff;
}


/* 敲门操作底部菜单 */

.sheet-modal {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 28;
}

.sheet-modal.show {
    display: block;
}

.sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1C1C1E;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    padding: 8px 0 14px;
    max-width: 480px;
    margin: 0 auto;
}

.sheet-title {
    text-align: center;
    color: var(--text-sub);
    font-size: 12px;
    padding: 10px 0;
}

.sheet-act {
    text-align: center;
    color: #fff;
    font-size: 16px;
    padding: 14px 0;
    cursor: pointer;
}

.sheet-act:active {
    background: rgba(255, 255, 255, 0.06);
}


/* 我的邀请：二维码弹层 */

.invite-panel {
    text-align: center;
}

.invite-panel canvas,
.invite-panel img {
    background: #fff;
    border-radius: 12px;
    margin: 6px auto 12px;
    display: block;
}

.invite-link {
    font-size: 12px;
    color: var(--text-sub);
    word-break: break-all;
    background: var(--bg-gray);
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 12px;
}


/* 更换头像：上传裁剪 */

.crop-modal {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 30;
}

.crop-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.crop-panel {
    background: #fff;
    border-radius: 16px;
    width: 300px;
    max-width: 86%;
    padding: 16px;
}

.crop-panel h4 {
    margin: 0 0 12px;
    font-size: 15px;
}

.crop-stage {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    position: relative;
    border: 3px solid #eee;
    cursor: grab;
    background: var(--bg-gray);
}

.crop-stage:active {
    cursor: grabbing;
}

.crop-stage img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center;
    max-width: none;
    user-select: none;
}

.crop-zoom {
    width: 100%;
    margin-bottom: 14px;
}

.crop-btns {
    display: flex;
    gap: 10px;
}

.crop-btns button {
    flex: 1;
    padding: 10px 0;
    border-radius: 20px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.crop-btns .ghost {
    background: var(--bg-gray);
    color: var(--text-sub);
}

.crop-btns .ok {
    background: var(--campus-green);
    color: #fff;
}


/* 头像旁“更换头像”按钮 */

.avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.avatar-cam {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    cursor: pointer;
}


/* 开关按钮（接收评论通知） */

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 26px;
    margin-left: auto;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: absolute;
    inset: 0;
    background: var(--border-soft);
    border-radius: 13px;
    transition: .2s;
}

.switch .slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .2s;
}

.switch input:checked+.slider {
    background: var(--campus-green);
}

.switch input:checked+.slider::before {
    transform: translateX(18px);
}


/* 底部导航红点 */

.nav-item {
    position: relative;
}

.nav-dot {
    position: absolute;
    top: 2px;
    left: 50%;
    margin-left: 7px;
    width: 8px;
    height: 8px;
    background: var(--csu-red);
    border-radius: 50%;
    border: 1.5px solid #fff;
    display: none;
}

.nav-dot.show {
    display: block;
}


/* ============================================
   个人中心
   ============================================ */

.profile-header {
    background: linear-gradient(135deg, var(--campus-green) 0%, var(--campus-deep) 100%);
    padding: 24px 16px 28px;
    color: #fff;
    position: relative;
}

.profile-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.profile-top img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.6);
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 19px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-name .mini-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--online-green);
    display: inline-block;
}

.profile-sub {
    font-size: 12px;
    opacity: 0.92;
    margin-top: 4px;
}

.profile-bio {
    font-size: 12px;
    opacity: 0.88;
    margin-top: 10px;
    line-height: 1.6;
}

.profile-edit {
    position: absolute;
    right: 14px;
    top: 18px;
    font-size: 12px;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    cursor: pointer;
}

.profile-stats {
    display: flex;
    background: #fff;
    margin: -16px 12px 0;
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    padding: 14px 0;
    position: relative;
    z-index: 2;
}

.profile-stats .stat {
    flex: 1;
    text-align: center;
    cursor: pointer;
}

.profile-stats .stat:active {
    opacity: .6;
}

.profile-stats .stat .num {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.profile-stats .stat .lbl {
    font-size: 11px;
    color: var(--text-sub);
    margin-top: 2px;
}

.profile-stats .stat+.stat {
    border-left: 1px solid var(--bg-gray);
}

.profile-section {
    margin: 14px 12px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.profile-section h3 {
    font-size: 13px;
    color: var(--text-sub);
    padding: 12px 14px 6px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-top: 1px solid var(--bg-gray);
    cursor: pointer;
    font-size: 14px;
    transition: background .15s;
}

.menu-item:active {
    background: var(--campus-light);
}

.menu-item .mi-icon {
    font-size: 18px;
    width: 22px;
    text-align: center;
}

.menu-item .mi-text {
    flex: 1;
}

.menu-item .mi-arrow {
    color: var(--border-soft);
    font-size: 14px;
}

.menu-item .mi-badge {
    font-size: 10px;
    color: #fff;
    background: var(--campus-green);
    padding: 1px 6px;
    border-radius: 8px;
}


/* 我的动态预览（个人中心内嵌） */

.my-post {
    padding: 12px 14px;
    border-top: 1px solid var(--bg-gray);
}

.my-post .mp-text {
    font-size: 13px;
    line-height: 1.6;
}

.my-post .mp-meta {
    font-size: 11px;
    color: var(--text-sub);
    margin-top: 6px;
}


/* ============================================
   寻民时刻 · 实时在线广场
   ============================================ */


/* 在线计数条：位于“已建立对话头像行”与“上墙用户墙”之间，居中展示 */

.plaza-count-bar {
    font-size: 11px;
    color: var(--away-gray);
    white-space: nowrap;
    text-align: center;
    padding: 14px 16px 4px;
    letter-spacing: 0.4px;
}


/* 数字 X 用品牌色 + 浅蓝底胶囊突出强调 */

.plaza-count-bar .pcb-num {
    color: var(--online-green);
    margin-right: 3px;
    font-sizing: 14px;
}


/* 在线 / 离开 计数小字 */

.plaza-count-bar .pcb-sub {
    display: none;
    margin-left: 6px;
    font-size: 12px;
    color: var(--text-sub);
}

.plaza-count-bar .pcb-sub b.on {
    color: var(--online-green);
}

.plaza-count-bar .pcb-sub b.off {
    color: var(--away-gray);
}

.plaza-wall {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
    gap: 12px 0;
    padding: 16px 16px 20px;
}

.plaza-user {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0 -8px;
    /* 相邻头像部分重叠，仍能看出后面还藏着头像 */
}

.plaza-user.me {
    margin-left: 0;
    /* z-index: 10; */
}


/* “我”不被左侧遮挡，且始终置顶 */

.plaza-user.bubbling,
.plaza-user.shouting {
    z-index: 30;
}


/* 冒泡/喊话时抬到最上层，不被遮挡 */

.plaza-user.bubbling .pu-avatar {
    transform: scale(1.06);
}

.plaza-user .pu-avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform .15s;
    background: var(--campus-light);
}

.plaza-user:active .pu-avatar {
    transform: scale(0.92);
}

.plaza-user .pu-name {
    font-size: 10px;
    color: var(--text-main);
    max-width: 54px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plaza-user .pu-lv {
    font-size: 9px;
    padding: 1px 6px;
    border-radius: 8px;
    color: #fff;
    white-space: nowrap;
}


/* 夜猫等级视觉：基础大小 + 边框华丽度 */

.pu-avatar.lv1 {
    width: 46px;
    height: 46px;
}

.pu-avatar.lv2 {
    width: 52px;
    height: 52px;
}

.pu-avatar.lv3 {
    width: 60px;
    height: 60px;
    border-color: var(--csu-gold);
    box-shadow: 0 0 0 2px rgba(201, 160, 99, 0.5), 0 2px 8px rgba(0, 0, 0, 0.12);
}

.pu-avatar.lv4 {
    width: 58px;
    height: 58px;
    border-color: var(--csu-gold);
    box-shadow: 0 0 0 3px rgba(201, 160, 99, 0.55), 0 3px 12px rgba(0, 0, 0, 0.18);
}

.pu-lv.lv1 {
    background: #9CA3AF;
}

.pu-lv.lv2 {
    background: #6BBF8A;
}

.pu-lv.lv3 {
    background: var(--csu-gold);
}

.pu-lv.lv4 {
    background: linear-gradient(90deg, var(--csu-gold), var(--csu-gold));
    color: #7A5B00;
}


/* “刚刚”动态置顶标记：脉冲光环 */

.plaza-user.pinned .pu-avatar::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid var(--campus-green);
    animation: pinPulse 1.6s ease-out infinite;
}

@keyframes pinPulse {
    0% {
        opacity: .7;
        width: 100%;
        height: 100%;
    }
    100% {
        opacity: 0;
        width: 140%;
        height: 140%;
    }
}

.pinned-tag {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: #fff;
    background: var(--campus-green);
    padding: 1px 6px;
    border-radius: 8px;
    white-space: nowrap;
    z-index: 3;
}


/* —— 在线 / 离开 状态标签与分隔 —— */

.online-tag {
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: #fff;
    background: var(--online-green);
    padding: 1px 6px;
    border-radius: 8px;
    white-space: nowrap;
    z-index: 3;
    box-shadow: 0 1px 4px rgba(34, 197, 94, 0.45);
}

.away-tag {
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: #fff;
    background: var(--away-gray);
    padding: 1px 6px;
    border-radius: 8px;
    white-space: nowrap;
    z-index: 3;
}


/* 在线用户头像：绿色脉冲光环，强提示“在线” */

.plaza-user.on .pu-avatar {
    border-color: var(--online-green);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.45), 0 2px 8px rgba(0, 0, 0, 0.12);
}

.plaza-user.on .pu-avatar::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid var(--online-green);
    animation: pinPulse 1.6s ease-out infinite;
}


/* 离开（在广场但非在线）用户：轻微降透明度，与在线组形成分隔 */

.plaza-user.off .pu-avatar {
    opacity: .62;
    filter: grayscale(0.35);
}


/* 在线 / 离开 分组之间的分隔条 */

.plaza-sep {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 4px;
    width: 100%;
}

.plaza-sep::before,
.plaza-sep::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line, #eceef1);
}

.plaza-sep span {
    font-size: 11px;
    color: var(--away-gray);
    white-space: nowrap;
}


/* 头像包（用于定位状态圆点） */

.pu-avatar-wrap {
    position: relative;
    display: inline-block;
}

.pu-dot {
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 4;
}

.pu-dot.on {
    background: var(--online-green);
}

.pu-dot.off {
    background: var(--away-gray);
}


/* “我”的特殊卡片（绿色环 + 星标） */

.plaza-user.me .pu-avatar {
    border-color: var(--campus-green);
    box-shadow: 0 0 0 3px rgb(0 255 154 / 58%), 0 3px 12px rgba(0, 0, 0, 0.18);
}

.plaza-user.me .pu-name {
    color: var(--campus-green);
    font-weight: 700;
}


/* 常驻“老熟人”的星光拖尾 */

.plaza-user.lv4 .star-trail {
    position: absolute;
    top: -10px;
    right: -6px;
    font-size: 16px;
    z-index: 4;
    animation: twinkle 1.4s ease-in-out infinite;
}

@keyframes twinkle {
    0%,
    100% {
        opacity: .5;
        transform: scale(.85) rotate(-8deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.1) rotate(8deg);
    }
}


/* 冒泡：头像上方自动弹出的对话气泡 */

.bubble-pop {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: #fff;
    color: var(--text-main);
    padding: 8px 13px;
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    font-size: 12px;
    /* 关键：绝对定位默认 shrink-to-fit；用 min/max 双向约束，
               短语不会被压窄，长句也不会撑爆 */
    min-width: 140px;
    max-width: 240px;
    width: max-content;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    z-index: 6;
    opacity: 0;
    animation: popIn .3s ease forwards, popOut .4s ease 2.6s forwards;
}

.bubble-pop::after {
    content: "";
    position: absolute;
    left: 18px;
    bottom: -6px;
    border: 6px solid transparent;
    border-top-color: #fff;
    border-bottom: 0;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(6px) scale(.9);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes popOut {
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-6px) scale(.95);
    }
}


/* 喊话：广场中央醒目大气泡 */

.shout-bubble {
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--csu-gold), var(--csu-gold));
    color: #5a3a00;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 700;
    max-width: 80%;
    box-shadow: 0 8px 24px rgba(201, 160, 99, 0.5);
    z-index: 30;
    text-align: center;
    line-height: 1.4;
    animation: shoutIn .35s ease, shoutFloat 2s ease-in-out .35s infinite;
}

.shout-bubble::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--csu-gold);
    border-bottom: 0;
}

@keyframes shoutIn {
    from {
        opacity: 0;
        transform: translateX(-50%) scale(.6);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

@keyframes shoutFloat {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-6px);
    }
}


/* 喊话时“我”头像轻微震动 */

.shake {
    animation: shake .5s ease;
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-4px) rotate(-3deg);
    }
    40% {
        transform: translateX(4px) rotate(3deg);
    }
    60% {
        transform: translateX(-3px) rotate(-2deg);
    }
    80% {
        transform: translateX(3px) rotate(2deg);
    }
}


/* 喊话按钮（悬浮于底部导航之上） */

.plaza-shout {
    position: fixed;
    left: 50%;
    bottom: 74px;
    transform: translateX(-50%);
    z-index: 16;
    background: var(--campus-green);
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 5px 16px rgba(37, 127, 179, 0.5);
    cursor: pointer;
    transition: transform .15s;
}

.plaza-shout:active {
    transform: translateX(-50%) scale(0.94);
}


/* 通用输入弹层（喊话/纸团留言） */

.plaza-input {
    width: 100%;
    margin-top: 14px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 14px;
    outline: none;
}

.plaza-input:focus {
    border-color: var(--campus-green);
}

.plaza-btn {
    flex: 1;
    background: var(--campus-green);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.plaza-btn.ghost {
    background: var(--bg-gray);
    color: var(--text-sub);
}

.plaza-btn:active {
    transform: scale(0.97);
}


/* 搭话菜单项 */

.menu-act {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    margin-top: 12px;
    background: var(--bg-gray);
    border-radius: 14px;
    cursor: pointer;
    transition: background .15s;
}

.menu-act:active {
    background: var(--campus-light);
}

.menu-act .ma-icon {
    font-size: 24px;
}

.menu-act .ma-title {
    font-weight: 600;
    font-size: 14px;
}

.menu-act .ma-desc {
    font-size: 11px;
    color: var(--text-sub);
    margin-top: 2px;
}


/* 纸团飞行 */

.paper-fly {
    position: absolute;
    z-index: 40;
    font-size: 26px;
    pointer-events: none;
    display: none;
    will-change: transform;
}

.paper-fly.fly {
    display: block;
    animation: paperFly .8s ease-in forwards;
}

@keyframes paperFly {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx, 0), var(--ty, 0)) rotate(380deg);
        opacity: 0;
    }
}


/* ===== 通用子页面（个人中心二级页面，如邀请/建议等） ===== */

.subpage {
    position: fixed;
    inset: 0;
    background: #0F0F11;
    z-index: 60;
    display: none;
    flex-direction: column;
}

.subpage.show {
    display: flex;
}

.subpage-head {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 16px;
}

.subpage-head .back {
    font-size: 24px;
    margin-right: 10px;
    cursor: pointer;
}

.subpage-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    color: #fff;
}

.subpage-body h3 {
    color: var(--csu-gold);
    margin: 4px 0 12px;
}

.subpage-body .note {
    color: var(--text-sub);
    font-size: 13px;
    margin-top: 8px;
    line-height: 1.6;
}

.subpage-body .invite-panel {
    text-align: center;
}

.subpage-body #inviteQr {
    background: #fff;
    border-radius: 12px;
    margin: 16px auto;
    display: block;
}

.subpage-body .invite-link {
    color: var(--csu-blue-light);
    font-size: 13px;
    word-break: break-all;
}

.subpage-body .plaza-btn {
    margin-top: 14px;
}


/* ===== 上传 / 发布页面 ===== */

.upload-page {
    padding: 16px;
}

.upload-page h3 {
    color: var(--campus-green);
    margin: 8px 0 12px;
}

.upload-drop {
    border: 1.5px dashed var(--border-soft);
    border-radius: 14px;
    padding: 22px;
    text-align: center;
    color: var(--text-sub);
    cursor: pointer;
}

.upload-drop img {
    max-width: 100%;
    border-radius: 12px;
    display: none;
    margin-top: 10px;
}

.upload-page textarea {
    width: 100%;
    min-height: 110px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    resize: none;
    box-sizing: border-box;
    margin-top: 12px;
}

.upload-page .plaza-btn {
    margin-top: 14px;
    width: 100%;
}


/* ===== 消息页：微信式对话列表 ===== */

.conv-item {
    position: relative;
    overflow: hidden;
    background: #0F0F11;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
    animation: msgIn .35s ease both;
}

.conv-content {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 12px 16px;
    background: #0F0F11;
    position: relative;
    z-index: 2;
    will-change: transform;
    transition: transform .2s ease, background .2s ease;
}

.conv-item:active .conv-content {
    background: rgba(255, 255, 255, 0.04);
}

.conv-av {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.conv-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.conv-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: rgba(255, 255, 255, 0.06);
}

.conv-icon.system {
    background: rgba(201, 160, 99, 0.16);
}

.conv-icon.comment {
    background: rgba(90, 166, 214, 0.16);
}

.conv-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--csu-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0F0F11;
    box-sizing: border-box;
}

.conv-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.conv-row1 {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.conv-name {
    font-size: 15px;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv-time {
    font-size: 11px;
    color: var(--text-sub);
    flex-shrink: 0;
}

.conv-row2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.conv-preview {
    font-size: 13px;
    color: var(--text-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.conv-tag.waiting {
    flex-shrink: 0;
    font-size: 10px;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 8px;
    background: var(--csu-gold);
    color: #fff;
    font-weight: 500;
}

.conv-actions {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    display: flex;
    z-index: 1;
}

.conv-act {
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    width: 48px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.conv-act.read {
    background: var(--campus-green);
}

.conv-act.del {
    background: var(--csu-red);
}


/* ===== 通知列表（系统 / 评论） ===== */

.notice-list {
    padding: 0;
}

.notice-item {
    display: block;
    padding: 14px 16px;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
    animation: msgIn .3s ease both;
}

.notice-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.notice-av {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.notice-av.anon {
    background: rgba(90, 166, 214, 0.16);
}

.notice-body {
    flex: 1;
    min-width: 0;
}

.notice-cmt-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.notice-commenter {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-time {
    font-size: 11px;
    color: var(--text-sub);
    margin-left: auto;
    flex-shrink: 0;
}

.notice-title {
    font-size: 15px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-content {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.6;
}

.notice-quote {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 12px;
    color: var(--text-sub);
    border-left: 2px solid var(--campus-green);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-goto {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--csu-blue-light);
    cursor: pointer;
}

.notice-empty {
    text-align: center;
    color: var(--text-sub);
    padding: 60px 0;
    font-size: 14px;
}

.list-foot {
    text-align: center;
    color: var(--text-sub);
    font-size: 12px;
    padding: 20px 0 28px;
}


/* ===== 敲门操作面板（居中） ===== */

.knock-panel {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 40;
}

.knock-panel.show {
    display: flex;
}

.knock-card {
    width: 78%;
    max-width: 320px;
    background: #1C1C1E;
    border-radius: 18px;
    padding: 26px 22px 20px;
    text-align: center;
    anim text-align: center;
}

@keyframes knockPop {
    from {
        opacity: 0;
        transform: scale(.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.knock-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    display: block;
    background: #2A2A2C;
}

.knock-name {
    font-size: 17px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 6px;
}

.knock-tip {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 20px;
}

.knock-btns {
    display: flex;
    gap: 12px;
}

.knock-btn {
    flex: 1;
    padding: 12px 0;
    border: none;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.knock-btn.open {
    background: var(--campus-green);
    color: #fff;
}

.knock-btn.refuse {
    background: #2A2A2C;
    color: #fff;
}

.knock-card.refused .knock-tip {
    color: #747D8C;
}

.knock-card.refused .knock-btns {
    display: none;
}

.knock-card.refused::after {
    content: '已拒绝';
    display: block;
    margin-top: 4px;
    color: #747D8C;
    font-size: 14px;
}


/* ===== 二次确认弹层 ===== */

.confirm-modal {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.confirm-modal.show {
    display: flex;
}

.confirm-box {
    width: 78%;
    max-width: 300px;
    background: #1C1C1E;
    border-radius: 16px;
    overflow: hidden;
}

.confirm-text {
    padding: 22px 20px;
    font-size: 15px;
    color: #fff;
    text-align: center;
    line-height: 1.6;
}

.confirm-btns {
    display: flex;
    border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}

.confirm-btn {
    flex: 1;
    padding: 13px 0;
    border: none;
    background: transparent;
    font-size: 15px;
    cursor: pointer;
}

.confirm-btn.cancel {
    color: var(--text-sub);
    border-right: 0.5px solid rgba(255, 255, 255, 0.08);
}

.confirm-btn.ok {
    color: var(--csu-red);
    font-weight: 600;
}


/* ===== 聊天气泡 ===== */

.chat-msg {
    display: flex;
    max-width: 78%;
    align-items: flex-end;
}

.chat-msg.other {
    align-self: flex-start;
}

.chat-msg.me {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-msg .bubble {
    padding: 10px 13px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.55;
    word-break: break-word;
}

.chat-msg.other .bubble {
    background: #ea953f;
    color: #fff;
    border-top-left-radius: 4px;
}

.chat-msg.me .bubble {
    background: var(--campus-green);
    color: #fff;
    border-top-right-radius: 4px;
}

.chat-time {
    font-size: 11px;
    color: var(--text-sub);
    flex-shrink: 0;
    margin: 0 6px;
    align-self: flex-end;
}


/* 系统提示（如“已开门，请友好交流~”）：居中蓝色小字，类似 QQ 群“xxx 进入了群聊” */

.chat-sys {
    display: flex;
    justify-content: center;
    margin: 12px 8px;
}

.chat-sys>div {
    font-size: 12px;
    color: #3a7afe;
    background: rgba(58, 122, 254, 0.10);
    border: 1px solid rgba(58, 122, 254, 0.18);
    padding: 4px 14px;
    border-radius: 14px;
    line-height: 1.4;
}


/* ===== 中庭：弹幕评论区 + 已建立对话头像行 ===== */

.plaza-talk {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 8px 10px;
    border-bottom: 1px solid var(--bg-gray);
}

.plaza-talk .pt-label {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: #B5566E;
    background: linear-gradient(135deg, #FFE9D6 0%, #FFD9E4 100%);
    padding: 5px 11px;
    border-radius: 12px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(181, 86, 110, 0.16);
    letter-spacing: 0.3px;
}

.plaza-talk .pt-view {
    flex: 1;
    height: 40px;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}

.plaza-talk .pt-track {
    display: flex;
    flex-direction: column;
    gap: 6px;
    will-change: transform;
}

.plaza-talk .pt-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.3;
}

.plaza-talk .pt-item img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.plaza-talk .pt-moon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--campus-light);
    color: var(--campus-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.plaza-talk .pt-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plaza-conns {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    overflow-x: auto;
    background: #fff;
    border-bottom: 1px solid var(--bg-gray);
    scrollbar-width: none;
}

.plaza-conns::-webkit-scrollbar {
    display: none;
}

.conn-empty {
    font-size: 12px;
    color: var(--text-sub);
    padding: 6px 4px;
    white-space: nowrap;
}


/* “怀民对饮”图例：浅蓝容错卡，提示后续头像均为已建立连接的用户 */


/* 垂直方向 stretch 填满整个已建立对话区域的高度（与头像+昵称行等高） */

.conn-legend {
    flex-shrink: 0;
    width: 40px;
    align-self: stretch;
    min-height: 46px;
    background: linear-gradient(160deg, #EAF3FB 0%, #DCEBF8 100%);
    color: var(--campus-deep);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(37, 127, 179, 0.20), 0 2px 6px rgba(37, 127, 179, 0.10);
}

.conn-av {
    flex-shrink: 0;
    width: 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    padding: 10px 6px 1px 1px;
}

.conn-pic {
    position: relative;
    width: 46px;
    height: 46px;
}

.conn-pic img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
    display: block;
}


/* 在线状态点（参考社区顶部头像墙；后续由心跳检测实现，此处仅展示效果） */

.conn-status {
    position: absolute;
    right: 0;
    bottom: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-sizing: border-box;
}

.conn-status.online {
    background: var(--online-green);
}

.conn-name {
    font-size: 10px;
    color: var(--text-main);
    max-width: 46px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.conn-badge {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    background: var(--csu-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-sizing: border-box;
}


/* ===== 中庭对话弹窗（居中紧凑浮层，非整页；扣减微信顶栏高度） ===== */

.plaza-chat {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: none;
    /* 全屏固定覆盖本页面：上下左右全覆盖，无任何外边距留白 */
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    background: rgba(0, 0, 0, 0.55);
}

.plaza-chat.show {
    display: flex;
}


/* 对话弹窗：卡片占满整个屏幕（上下左右全覆盖），不再居中留白 */

.pc-card {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    box-shadow: none;
}

@keyframes popupIn {
    from {
        opacity: 0;
        transform: scale(.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.pc-head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--bg-gray);
}

.pc-peer {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.pc-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--campus-light);
    flex-shrink: 0;
}

.pc-peer-meta {
    min-width: 0;
}

.pc-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.pc-decl {
    font-size: 11px;
    color: var(--text-sub);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pc-close {
    font-size: 20px;
    color: var(--text-sub);
    cursor: pointer;
    line-height: 1;
    margin-left: 8px;
    padding-left: 16px;
    border-left: 1px solid var(--border-soft);
}


/* 头部操作区：删除 / 拉黑 两个文字按钮 + 关闭 ✕（关闭用竖线分隔，避免误触） */

.pc-head-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.pc-act {
    background: none;
    border: none;
    padding: 4px 2px;
    font-size: 13px;
    line-height: 1;
    color: var(--text-sub);
    cursor: pointer;
    font-family: inherit;
}

.pc-act.del:hover {
    color: var(--csu-red);
}

.pc-act.bl:hover {
    color: #2a2a2a;
}

.pc-act:active {
    opacity: .6;
}


/* 已拉黑态：按钮保持高亮红，文案变“已拉黑” */

.pc-act.bl.active {
    color: var(--csu-red);
    font-weight: 600;
}


/* 敲门请求面板（BOSS 直聘风格：未开门时显示，隐藏发送功能） */

.pc-request {
    padding: 16px 16px 18px;
    background: linear-gradient(180deg, #FFF7F0, #fff);
    border-bottom: 1px solid var(--bg-gray);
}

.pc-req-msg {
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.6;
    background: #fff;
    border: 1px solid #FFE2CC;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.pc-req-btns {
    display: flex;
    gap: 10px;
}

.pc-req-btn {
    flex: 1;
    border: none;
    border-radius: 22px;
    padding: 11px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.pc-req-btn.open {
    background: linear-gradient(135deg, var(--campus-green), var(--campus-deep));
    color: #fff;
    box-shadow: 0 6px 16px rgba(37, 127, 179, 0.34);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    line-height: 1.15;
}

.pc-req-main {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.pc-req-sub {
    display: block;
    font-size: 11px;
    opacity: .85;
}

.pc-req-btn.refuse {
    background: red;
    color: white;
}

.pc-req-btn:active {
    transform: scale(0.97);
}


/* 显示切换：pending(未开门) 显示请求面板、隐藏聊天与发送；开门后反之 */

.plaza-chat.request .pc-body,
.plaza-chat.request .pc-input {
    display: none;
}

.plaza-chat:not(.request) .pc-request {
    display: none;
}


/* 敲门（pending·对方敲我）状态下隐藏头部“删除”：拒绝即等同删除，避免重复；拉黑仍保留 */

.plaza-chat.request .pc-act.del {
    display: none;
}


/* 对方已删除/下线 提示条（单向删除时在弹窗顶部展示） */

.plaza-chat .pc-peer-gone {
    display: none;
    align-items: center;
    gap: 6px;
    margin: 8px 12px 0;
    padding: 8px 10px;
    background: #FFF4E5;
    border: 1px solid #FFD8A8;
    border-radius: 10px;
    font-size: 12px;
    color: #B26A00;
    line-height: 1.4;
}

.plaza-chat.peer-gone .pc-peer-gone {
    display: flex;
}

.pc-pg-icon {
    flex: 0 0 auto;
}

.pc-pg-text {
    flex: 1 1 auto;
}


/* 发送失败（对方已删除/下线）的消息气泡 */

.chat-msg.failed .bubble {
    opacity: 0.6;
    border: 1px dashed #E59A9A;
}

.chat-fail {
    font-size: 11px;
    color: #D9484B;
    margin-top: 3px;
    text-align: right;
}

.chat-msg.failed.other .chat-fail {
    text-align: left;
}


/* 敲门等待面板（我敲对方，等待其开门） */

.pc-waiting {
    padding: 22px 16px 24px;
    text-align: center;
    background: linear-gradient(180deg, #F0F7FF, #fff);
    border-bottom: 1px solid var(--bg-gray);
}

.pc-wait-icon {
    font-size: 34px;
    margin-bottom: 8px;
}

.pc-wait-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--campus-deep);
    margin-bottom: 10px;
}

.pc-wait-msg {
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.6;
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 10px;
    word-break: break-all;
}

.pc-wait-tip {
    font-size: 12px;
    color: var(--text-sub);
}


/* 显示切换：waiting(我敲门等待) 显示等待面板、隐藏聊天与发送 */

.plaza-chat.waiting .pc-body,
.plaza-chat.waiting .pc-input {
    display: none;
}

.plaza-chat:not(.waiting) .pc-waiting {
    display: none;
}

.pc-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    /* 弹窗内滚动不影响中庭页面 */
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-gray);
}

.pc-input {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--bg-gray);
    background: #fff;
}

.pc-input input {
    flex: 1;
    border: none;
    background: var(--bg-gray);
    color: var(--text-main);
    border-radius: 20px;
    padding: 9px 14px;
    font-size: 14px;
    outline: none;
}

.pc-input button {
    background: var(--campus-green);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.pc-input button:active {
    transform: scale(0.95);
}


/* ===== 所有对话列表弹窗 ===== */

.conn-list {
    position: absolute;
    top: 12%;
    left: 5%;
    right: 5%;
    bottom: 12%;
    background: #fff;
    border-radius: 16px;
    z-index: 31;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.conn-list.show {
    display: flex;
}

.cl-head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--bg-gray);
    font-weight: 600;
    color: var(--text-main);
}

.cl-close {
    font-size: 20px;
    color: var(--text-sub);
    cursor: pointer;
    line-height: 1;
}

.cl-body {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0;
}

.cl-empty {
    text-align: center;
    color: var(--text-sub);
    font-size: 13px;
    padding: 40px 0;
}

.cl-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 0.5px solid var(--bg-gray);
}

.cl-item:active {
    background: var(--bg-gray);
}

.cl-av {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.cl-info {
    flex: 1;
    min-width: 0;
}

.cl-name {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cl-last {
    font-size: 12px;
    color: var(--text-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.cl-badge {
    background: var(--csu-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 8px;
    padding: 1px 6px;
}

.cl-go {
    color: var(--border-soft);
    font-size: 18px;
    flex-shrink: 0;
}


/* ============================================================
   试运行公告 / 服务号说明（中投华信 · 中南大学轻社区）
   统一用于 中庭 / 上传 / 我的 三个页面顶部，纯 HTML 折叠卡片
   ============================================================ */

.svc-notice {
    margin: 10px 10px;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-left: 3px solid var(--campus-green);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.svc-notice>summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 13px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s;
}

.svc-notice>summary:hover {
    background: #F7FAFD;
}

.svc-notice>summary::-webkit-details-marker {
    display: none;
}

.svc-notice .sn-ico {
    width: 17px;
    height: 17px;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
}

.svc-notice .sn-title {
    flex: 1;
    min-width: 0;
}

.svc-notice .sn-tag {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: var(--csu-red);
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.svc-notice .sn-chevron {
    flex-shrink: 0;
    color: var(--text-sub);
    font-size: 12px;
    transition: transform .2s;
}

.svc-notice[open] .sn-chevron {
    transform: rotate(180deg);
}

.svc-notice .sn-body {
    padding: 2px 13px 13px;
    font-size: 12.5px;
    line-height: 1.85;
    color: #4A5562;
}

.svc-notice .sn-body p {
    margin: 0 0 8px;
}

.svc-notice .sn-body p:last-child {
    margin-bottom: 0;
}

.svc-notice .sn-body b {
    color: var(--campus-deep);
    font-weight: 700;
}


/* 重要提醒段落：暖色卡片，强烈突出置顶/添加桌面提示 */

.svc-notice .sn-warn {
    margin: 0 0 8px;
    padding: 9px 11px;
    border-radius: 9px;
    background: #FFF6E9;
    border: 1px solid #FBE2B8;
    border-left: 3px solid var(--csu-gold);
    color: #8A5A00;
    font-weight: 500;
}

.svc-notice .sn-warn b {
    color: #B8431F;
    font-weight: 700;
}


/* ---- 公告操作区：扫码关注 CTA 卡片 ---- */

.svc-notice .sn-action {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #EAF3FB 0%, #F4F8FC 100%);
    border: 1px solid #DCE9F4;
}


/* 二维码展示卡：白色圆角 + 阴影，美化显示 */

.svc-notice .sn-qr-card {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(37, 127, 179, 0.12);
    cursor: pointer;
    transition: transform .15s;
}

.svc-notice .sn-qr-card:active {
    transform: scale(.97);
}

.svc-notice .sn-qrcode {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
    display: block;
}

.svc-notice .sn-qr-hint {
    font-size: 10px;
    color: var(--campus-deep);
    margin-top: 4px;
    font-weight: 600;
}


/* 右侧 CTA 文案 + 按钮 */

.svc-notice .sn-cta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.svc-notice .sn-cta-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.svc-notice .sn-cta-sub {
    font-size: 11px;
    color: var(--text-sub);
    line-height: 1.5;
}


/* 去关注按钮：渐变圆角胶囊 + 阴影，明确的按钮形态 */

.svc-notice .sn-follow-btn {
    align-self: flex-start;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff !important;
    background: #07C160;
    padding: 7px 16px;
    border-radius: 18px;
    text-decoration: none;
    white-space: nowrap;
}

.svc-notice .sn-follow-btn:active {
    opacity: .9;
    transform: scale(.97);
    box-shadow: 0 2px 6px rgba(37, 127, 179, 0.24);
}


/* 二维码放大浮层 */

.sn-qr-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, .55);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.sn-qr-overlay.show {
    display: flex;
}

.sn-qr-overlay img {
    width: 220px;
    height: 220px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, .7);
    object-fit: contain;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .25);
}

.sn-qr-overlay .sn-qr-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
}


/* ================= 微信授权登录层（高仿 WeUI 风格） ================= */

.wx-auth-mask {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    -webkit-font-smoothing: antialiased;
}

.wx-auth-dialog {
    width: 100%;
    max-width: 300px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", sans-serif;
    animation: wa-pop .22s ease-out;
}

@keyframes wa-pop {
    from {
        transform: scale(.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.wx-auth-dialog .wa-hd {
    padding: 30px 20px 8px;
    text-align: center;
}

.wx-auth-dialog .wa-logo {
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    border-radius: 13px;
    background: #07c160;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(7, 193, 96, .35);
}

.wx-auth-dialog .wa-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
}

.wx-auth-dialog .wa-bd {
    padding: 6px 24px 22px;
    text-align: center;
    font-size: 14px;
    line-height: 1.7;
    color: #888;
}

.wx-auth-dialog .wa-ft {
    display: flex;
    border-top: 1px solid #e5e5e5;
}

.wx-auth-dialog .wa-btn {
    flex: 1;
    padding: 14px 0;
    font-size: 16px;
    text-align: center;
    border: none;
    background: #fff;
    color: #576b95;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.wx-auth-dialog .wa-btn:active {
    background: #f2f2f2;
}

.wx-auth-dialog .wa-btn.primary {
    color: #07c160;
    font-weight: 600;
}


/* ============================================================
   怀民动态 —— 仿微信评论区样式
   ============================================================ */

.feed-section {
    padding: 0 0 16px;
    background: var(--bg, #f5f6f8);
}


/* 分割线标题（复用 plaza-sep 风格，但字号稍大） */

.profile-sep {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 12px 8px;
    width: calc(100% - 24px);
}

.profile-sep::before,
.profile-sep::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line, #eceef1);
}

.profile-sep span {
    font-size: 13px;
    color: var(--away-gray, #999);
    white-space: nowrap;
    font-weight: 500;
}


/* 动态列表容器 */

.feed-list {}


/* 单条帖子卡片 */

.feed-item {
    background: #fff;
    padding: 14px 14px 10px;
    position: relative;
}

.feed-item::after {
    content: "";
    position: absolute;
    left: 44px;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #f0f0f0;
}

.feed-item:last-child::after {
    display: none;
}


/* 帖子头部：头像 + 昵称 + 位置 + 时间 */

.feed-head {
    display: flex;
    align-items: flex-start;
    margin-bottom: 6px;
}

.feed-avatar {
    width: 38px;
    height: 38px;
    border-radius: 3px;
    flex-shrink: 0;
    object-fit: cover;
    background: #f0f0f0;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    -o-border-radius: 3px;
}

.feed-head-info {
    flex: 1;
    margin-left: 10px;
    min-width: 0;
}

.feed-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
}

.feed-nickname {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* 位置标签：暂时隐藏（后续版本可能展示）。行内 style="display:none" 也会生效，这里兜底。 */

.feed-location-tag {
    display: none;
    font-size: 11px;
    color: #888;
    white-space: nowrap;
}


/* 帖子头部右侧：原为发布时间，现改为“评论”按钮（点击弹窗对该帖评论） */

.feed-head-right {
    flex-shrink: 0;
    margin-left: auto;
    text-align: right;
    display: flex;
    align-items: center;
}

.feed-comment-btn {
    border: none;
    background: var(--bg-gray, #f5f6f8);
    color: #3B9E6A;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.feed-comment-btn:active {
    opacity: 0.6;
}


/* 帖子正文内容 */

.feed-content {
    font-size: 15px;
    line-height: 1.55;
    color: #1a1a1a;
    word-break: break-all;
    margin: 4px 0 6px;
    padding-left: 46px;
}


/* 帖子图片 */

.feed-images {
    padding-left: 46px;
    margin-bottom: 6px;
}

.feed-img {
    max-width: 100%;
    max-height: 140px;
    border-radius: 6px;
    object-fit: cover;
    display: block;
}


/* 评论区域 */

.feed-comments {
    padding-left: 46px;
    margin-top: 4px;
}


/* 帖子语音播放器（与图片同属 hm_file 统一管理） */

.feed-voice {
    padding-left:46px;
    margin: 8px 0 2px;
}

.feed-audio {
    width: 100%;
    max-width: 320px;
    height: 40px;
}


/* AMR 语音播放器（移植自 G:\ai-csu 漂流瓶，基于 BenzAMRRecorder） */

.amr-player {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px;
    min-height: 32px;
    min-width: 160px;
    background: linear-gradient(88deg, #62e891 0%, #81f6a5 100%);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(7, 193, 96, 0.08);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: box-shadow 0.2s, transform 0.1s;
    user-select: none;
}

.amr-player:active {
    transform: scale(0.98);
}

.amr-play-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    border: none;
    background: #03ab53;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s;
    flex-shrink: 0;
}

.amr-play-btn:active {
    background: #06AD56;
}

.amr-play-btn:disabled {
    opacity: 0.6;
}

.amr-play-btn svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}

.amr-play-icon {
    display: block;
}

.amr-pause-icon {
    display: none;
}

.amr-player.playing .amr-play-icon {
    display: none;
}

.amr-player.playing .amr-pause-icon {
    display: block;
}

.amr-waveform {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 26px;
    flex: 1;
    min-width: 60px;
}

.amr-waveform .bar {
    width: 3px;
    min-width: 3px;
    border-radius: 2px;
    background: #07C160;
    opacity: 0.45;
    transition: height 0.15s ease;
}

.amr-waveform .bar:nth-child(1) {
    height: 10px;
}

.amr-waveform .bar:nth-child(2) {
    height: 18px;
}

.amr-waveform .bar:nth-child(3) {
    height: 12px;
}

.amr-waveform .bar:nth-child(4) {
    height: 26px;
}

.amr-waveform .bar:nth-child(5) {
    height: 15px;
}

.amr-waveform .bar:nth-child(6) {
    height: 22px;
}

.amr-waveform .bar:nth-child(7) {
    height: 10px;
}

.amr-player.playing .amr-waveform .bar {
    opacity: 0.85;
    animation: wavePulse 0.8s ease-in-out infinite;
}

.amr-player.playing .amr-waveform .bar:nth-child(1) {
    animation-delay: 0s;
}

.amr-player.playing .amr-waveform .bar:nth-child(2) {
    animation-delay: 0.1s;
}

.amr-player.playing .amr-waveform .bar:nth-child(3) {
    animation-delay: 0.2s;
}

.amr-player.playing .amr-waveform .bar:nth-child(4) {
    animation-delay: 0.3s;
}

.amr-player.playing .amr-waveform .bar:nth-child(5) {
    animation-delay: 0.2s;
}

.amr-player.playing .amr-waveform .bar:nth-child(6) {
    animation-delay: 0.1s;
}

.amr-player.playing .amr-waveform .bar:nth-child(7) {
    animation-delay: 0s;
}

@keyframes wavePulse {
    0%,
    100% {
        transform: scaleY(0.4);
    }
    50% {
        transform: scaleY(1.3);
    }
}

.amr-player.loading .amr-waveform .bar {
    opacity: 0.3;
    animation: loadingPulse 0.6s ease-in-out infinite;
}

.amr-player.loading .amr-waveform .bar:nth-child(1) {
    animation-delay: 0s;
}

.amr-player.loading .amr-waveform .bar:nth-child(2) {
    animation-delay: 0.07s;
}

.amr-player.loading .amr-waveform .bar:nth-child(3) {
    animation-delay: 0.14s;
}

.amr-player.loading .amr-waveform .bar:nth-child(4) {
    animation-delay: 0.21s;
}

.amr-player.loading .amr-waveform .bar:nth-child(5) {
    animation-delay: 0.14s;
}

.amr-player.loading .amr-waveform .bar:nth-child(6) {
    animation-delay: 0.07s;
}

.amr-player.loading .amr-waveform .bar:nth-child(7) {
    animation-delay: 0s;
}

@keyframes loadingPulse {
    0%,
    100% {
        opacity: 0.15;
        transform: scaleY(0.5);
    }
    50% {
        opacity: 0.5;
        transform: scaleY(1);
    }
}


/* 我的帖子弹窗内的语音块沿用同款样式 */

.md-voice .amr-player {
    margin-top: 6px;
}


/* 微信内 JSSDK 语音播放按钮（不依赖服务端下载） */

.wx-voice-play {
    appearance: none;
    border: none;
    background: #3B9E6A;
    color: #fff;
    font-size: 14px;
    padding: 9px 18px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wx-voice-play:active {
    opacity: .85;
}

.feed-voice-tip {
    font-size: 12px;
    color: #999;
    background: #f5f6f8;
    border-radius: 8px;
    padding: 8px 10px;
}


/* 单条评论 */

.feed-cmt {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    border-top: 1px solid #f5f5f5;
}

.feed-cmt:first-child {
    border-top: none;
    padding-top: 2px;
}

.feed-cmt-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    background: #f0f0f0;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}

.feed-cmt-body {
    flex: 1;
    margin-left: 8px;
    min-width: 0;
}

.feed-cmt-name-row {
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.3;
    margin-bottom: 2px;
}

.feed-cmt-name {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
}


/* 作者标签（绿色小字，仿微信"作者"标记） */

.feed-author-tag {
    font-size: 10px;
    color: #07c160;
    border: 0.5px solid #07c160;
    border-radius: 2px;
    padding: 0 3px;
    line-height: 14px;
    white-space: nowrap;
}

.feed-cmt-text {
    font-size: 14px;
    line-height: 1.45;
    color: #333;
    word-break: break-all;
}


/* 评论行操作：仅保留“回复”按钮（隐藏时间与点赞数量） */

.feed-cmt-actions {
    margin-top: 4px;
}

.feed-reply-btn {
    border: none;
    background: none;
    color: #576b95;
    font-size: 13px;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.feed-reply-btn:active {
    opacity: 0.6;
}


/* 评论/回复正文：回复场景展示 “A 回复 B：xxx” 前缀（绿色高亮） */

.feed-reply-prefix {
    color: #576b95;
    font-size: 13px;
}


/* ============================================
   怀民动态 · 底部固定评论输入框
   贴底 fixed，z-index 高于一切（含底部导航），仿聊天底部输入+发送条
   ============================================ */

.feed-comment-bar {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--bg-gray, #f5f6f8);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    z-index: 999;
    /* 最高层级，覆盖底部导航栏(20)与所有弹层 */
    box-sizing: border-box;
}

.feed-comment-bar .fcb-hint {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--campus-green, #3B9E6A);
    padding: 0 4px;
}

.feed-comment-bar .fcb-input-wrap {
    flex: 1;
    min-width: 0;
}

.feed-comment-bar .fcb-input {
    width: 100%;
    border: none;
    background: var(--bg-gray, #f5f6f8);
    color: var(--text-main, #1a1a1a);
    border-radius: 20px;
    padding: 9px 14px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.feed-comment-bar .fcb-send {
    flex-shrink: 0;
    background: var(--campus-green, #3B9E6A);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0 18px;
    height: 38px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.feed-comment-bar .fcb-send:active {
    transform: scale(0.95);
}

.feed-comment-bar .fcb-close {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: var(--text-sub, #999);
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    line-height: 1;
}

.feed-comment-bar .fcb-close:active {
    background: var(--bg-gray, #f5f6f8);
}


/* "N条回复"展开提示 */

.feed-more-cmts {
    font-size: 13px;
    color: #576b95;
    padding: 6px 0 2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.feed-more-cmts:active {
    opacity: 0.6;
}


/* 加载状态 */

.feed-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    font-size: 13px;
    color: #999;
}

.feed-loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e0e0e0;
    border-top-color: #3B9E6A;
    border-radius: 50%;
    animation: feedSpin 0.7s linear infinite;
}

@keyframes feedSpin {
    to {
        transform: rotate(360deg);
    }
}


/* 到底了 */

.feed-end {
    text-align: center;
    font-size: 12px;
    color: #bbb;
    padding: 14px 0 20px;
}


/* 触底哨兵：常驻透明占位，供 IntersectionObserver 观察（触发下一页预加载） */

.feed-sentinel {
    width: 100%;
    height: 1px;
    margin: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}