        * { box-sizing: border-box; margin: 0; }
        html, body { height: 100%; overflow: hidden; }
        body { display: flex; background: #f5f5f5; font-family: system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif; color: #1f2937; }

        /* ── 图标栏 ── */
        .rail { width: 60px; flex-shrink: 0; background: #2b2b2b; display: flex; flex-direction: column; align-items: center; padding: 14px 0; }
        .rail-avatar { width: 38px; height: 38px; border-radius: 8px; background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 22px; cursor: pointer; overflow: hidden; }
        .rail-avatar.on { box-shadow: 0 0 0 2px #07c160; }
        .rail button { width: 40px; height: 40px; border: none; background: none; font-size: 21px; color: #9aa0a6; cursor: pointer; border-radius: 8px; margin-bottom: 6px; position: relative; }
        .rail button:hover { background: #3a3a3a; }
        .rail button.active { color: #07c160; }
        .rail button.active::before { content: ''; position: absolute; left: -10px; top: 9px; width: 3px; height: 22px; background: #07c160; border-radius: 2px; }
        .rail-bottom { margin-top: auto; }
        .rail-bottom button { color: #6b7280; }

        /* ── PC面板拖宽分隔条 ── */
        .splitter { width: 6px; flex-shrink: 0; cursor: col-resize; background: transparent; transition: background .15s; }
        .splitter:hover, .splitter.dragging { background: rgba(7, 193, 96, .25); }

        /* ── Tab面板（聊聊/通讯录/发现/我）── */
        .panel { width: 320px; flex-shrink: 0; background: #f7f7f7; border-right: 1px solid #e0e0e0; display: flex; flex-direction: column; }
        .view { flex: 1; min-height: 0; overflow-y: auto; display: none; flex-direction: column; }
        .view.on { display: flex; }
        .view::-webkit-scrollbar { width: 5px; }
        .view::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 3px; }
        .view-head { padding: 14px 14px 8px; font-size: 17px; font-weight: 600; color: #111; }
        .list-search { padding: 4px 12px 10px; }
        .list-search input { width: 100%; padding: 7px 12px; border: 1px solid #e0e0e0; background: #fff; border-radius: 4px; font-size: 13px; outline: none; }
        .list-search input:focus { border-color: #07c160; }
        .list-items { flex: 1; overflow-y: auto; }
        .list-item { display: flex; gap: 11px; padding: 13px 14px; cursor: pointer; align-items: center; border-left: 3px solid transparent; }
        .list-item:hover { background: #efefef; }
        .list-item.active { background: #c7e8c0; border-left-color: #07c160; }
        .li-avatar { width: 42px; height: 42px; border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; }
        .li-body { flex: 1; min-width: 0; }
        .li-name { font-size: 15px; color: #111; display: flex; justify-content: space-between; align-items: center; }
        .li-name .li-time { font-size: 11px; color: #b0b0b0; font-weight: 400; }
        .li-desc { font-size: 12.5px; color: #9a9a9a; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .list-item.active .li-desc { color: #4a7a3a; }
        /* ── 红点/角标（微信风格）── */
        .li-wrap { position: relative; }
        .li-badge { position: absolute; top: 8px; right: 10px; min-width: 6px; height: 6px; padding: 0; background: #f43f5e; color: #fff; border-radius: 10px; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; z-index: 2; box-shadow: 0 1px 3px rgba(244,63,94,.4); }
        .li-badge.dot { min-width: 8px; width: 8px; height: 8px; padding: 0; border-radius: 50%; }
        .li-badge.num { padding: 1px 5px; min-width: 18px; height: 18px; font-size: 11px; }
        .li-badge.num.large { min-width: 22px; height: 20px; font-size: 10px; padding: 1px 5px; }
        /* 头像角标（推荐放在头像右上角） */
        .li-avatar { position: relative; }
        .li-avatar .av-badge { position: absolute; top: -4px; right: -4px; min-width: 6px; height: 6px; padding: 0; background: #f43f5e; color: #fff; border-radius: 10px; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; z-index: 2; box-shadow: 0 0 0 2px #f7f7f7; }
        .li-avatar .av-badge.dot { min-width: 8px; width: 8px; height: 8px; padding: 0; border-radius: 50%; }
        .li-avatar .av-badge.num { padding: 0 5px; min-width: 16px; height: 16px; font-size: 10px; }
        .li-avatar .av-badge.num.large { min-width: 20px; height: 18px; font-size: 9px; padding: 0 4px; }
        .li-edit { color: #b8b8b8; cursor: pointer; font-size: 12px; margin-left: 5px; }
        .li-edit:hover { color: #07c160; }
        .list-sec { padding: 12px 14px 4px; font-size: 12px; color: #9a9a9a; letter-spacing: 1px; }
        .soon-item { display: flex; gap: 11px; padding: 13px 14px; align-items: center; opacity: .45; }
        .soon-item .li-avatar { width: 42px; height: 42px; border-radius: 6px; background: #d8d8d8; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; }
        .soon-badge { margin-left: auto; font-size: 11px; color: #f59e0b; background: #fef3c7; padding: 2px 8px; border-radius: 10px; }

        /* ── 聊天窗口 ── */
        .chat-col { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #f5f5f5; }
        .chat-header { flex-shrink: 0; align-items: center; justify-content: center; position: relative; padding: 13px 16px; background: #f7f7f7; border-bottom: 1px solid #e0e0e0; }
        .btn-back { display: none; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); border: none; background: none; font-size: 20px; color: #111; cursor: pointer; }
        .chat-header-title { font-size: 16px; font-weight: 600; color: #111; text-align: center; }
        .chat-header-title.typing { color: #9ca3af; font-weight: 400; }
        .chat-header-sub { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 12px; color: #9ca3af; }
        .chat-messages { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px; background: #f5f5f5; }
        .chat-messages::-webkit-scrollbar { width: 6px; }
        .chat-messages::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 3px; }
        .msg { margin-bottom: 15px; display: flex; }
        .msg-user { justify-content: flex-end; }
        .msg-bubble { max-width: min(calc(100% - 40px), 620px); font-size: 15.5px; line-height: 1.55; padding: 9px 13px; border-radius: 6px; word-break: break-word; }
        .msg-user .msg-bubble { background: #95ec69; color: #111; }
        .msg-bot .msg-bubble { background: #fff; border: 1px solid #e5e5e5; }
        .msg-bubble img { max-width: 220px; border-radius: 6px; display: block; margin: 4px 0; }
        .md-content table { border-collapse: collapse; margin: 6px 0; width: 100%; }
        .md-content th, .md-content td { border: 1px solid #e0e0e0; padding: 5px 9px; font-size: 13.5px; background: #fff; }
        .md-content code { background: rgba(15,23,42,.07); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
        .md-content a { color: #2563eb; text-decoration: none !important; }
        .msg-user .md-content a { color: #0f5c2e; }
        .msg-time-divider { text-align: center; font-size: 12px; color: #b0b0b0; margin: 8px 0 14px; }
        .typing-indicator { display: flex; gap: 4px; padding: 4px 0; }
        .typing-indicator span { width: 7px; height: 7px; background: #b0b0b0; border-radius: 50%; animation: typing 1.4s infinite; }
        .typing-indicator span:nth-child(2) { animation-delay: .2s; }
        .typing-indicator span:nth-child(3) { animation-delay: .4s; }
        @keyframes typing { 0%,60%,100% { opacity: .3; transform: scale(.8); } 30% { opacity: 1; transform: scale(1); } }

        /* ── 人物推送卡片 ── */
        .push-bubble { max-width: min(calc(100% - 40px), 420px) !important; display: flex; flex-direction: column; gap: 8px; background: transparent !important; border: none !important; }
        .push-card { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px 12px; cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s; }
        .push-card:hover { transform: translateY(-1px); border-color: #a7f3d0; box-shadow: 0 4px 14px rgba(5,150,105,.14); }
        .push-card:active { transform: scale(.98); }
        .push-card .pc-icon { width: 38px; height: 38px; border-radius: 10px; background: #ecfdf5; display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
        .push-card .pc-body { flex: 1; min-width: 0; }
        .push-card .pc-title { font-size: 14px; font-weight: 600; color: #111; }
        .push-card .pc-desc { font-size: 12px; color: #9ca3af; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .push-card .pc-arrow { color: #c7c7c7; font-size: 18px; flex-shrink: 0; }

        .chat-input-area { flex-shrink: 0; background: #f7f7f7; border-top: 1px solid #e0e0e0; padding: 6px 16px 10px; }
        .input-row { display: contents; }
        .mb-btn, .mb-plus, .mb-send, .more-panel { display: none; }
        .more-panel { grid-template-columns: repeat(4, 1fr); gap: 20px 8px; padding: 20px 10px calc(16px + env(safe-area-inset-bottom)); background: #f7f7f7; border-top: 1px solid #ececec; }
        .more-item { display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: pointer; }
        .more-item:active .mi-ico { transform: scale(.94); }
        .more-item .mi-ico { width: 56px; height: 56px; background: #fff; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; transition: transform .12s; }
        .more-item span { font-size: 12px; color: #70757a; }
        .input-toolbar { display: flex; gap: 14px; align-items: center; margin-bottom: 4px; }
        .input-toolbar button { border: none; background: none; font-size: 19px; color: #7a7a7a; cursor: pointer; padding: 2px 3px; border-radius: 4px; }
        .input-toolbar button:hover { color: #07c160; }
        .input-toolbar .tb-hint { margin-left: auto; font-size: 11px; color: #b0b0b0; }
        .chat-input-area textarea { width: 100%; border: none; background: transparent; font-size: 15.5px; line-height: 1.5; resize: none; height: 62px; outline: none; font-family: inherit; color: #111; }
        .input-bottom { display: flex; justify-content: flex-end; }
        .input-bottom .send-btn { padding: 6px 22px; border: 1px solid #d5d5d5; background: #fff; color: #111; font-size: 14px; cursor: pointer; border-radius: 3px; }
        .input-bottom .send-btn:hover:not(:disabled) { background: #07c160; color: #fff; border-color: #07c160; }
        .input-bottom .send-btn:disabled { color: #b0b0b0; cursor: not-allowed; }
        .welcome { text-align: center; padding: 36px 16px; }
        .welcome .icon { font-size: 46px; margin-bottom: 12px; }
        .welcome h3 { font-size: 19px; margin-bottom: 8px; }
        .welcome p { color: #64748b; font-size: 14px; line-height: 1.6; }
        .welcome .scenes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
        .welcome .scenes button { background: #fff; border: 1px solid #d8dee6; border-radius: 18px; padding: 8px 18px; font-size: 14px; color: #2563eb; cursor: pointer; }
        .welcome .scenes button:hover { background: #07c160; color: #fff; }

        /* 横幅轮播 */
        .banner { position: relative; max-width: 560px; margin: 0 auto 16px; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 24px rgba(15,23,42,.18); }
        .banner img { width: 100%; display: block; transition: opacity .6s ease; }
        .banner .banner-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; gap: 5px; justify-content: center; }
        .banner .banner-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); transition: background .3s; }
        .banner .banner-dots i.on { background: #07c160; }

        /* ── 发现(朋友圈) ── */
        .compose-box { background: #fff; border-bottom: 1px solid #e5e5e5; padding: 12px 14px; }
        .compose-box textarea { width: 100%; border: 1px solid #e0e0e0; border-radius: 8px; padding: 9px 12px; font-size: 14px; resize: none; height: 64px; outline: none; font-family: inherit; }
        .compose-box textarea:focus { border-color: #07c160; }
        .compose-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
        .compose-row .add-img { width: 64px; height: 64px; border: 1px dashed #c0c0c0; border-radius: 6px; background: #fafafa; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #b0b0b0; cursor: pointer; }
        .compose-row .add-img:hover { border-color: #07c160; color: #07c160; }
        .compose-row .post-btn { margin-left: auto; padding: 7px 20px; border: none; border-radius: 6px; background: #07c160; color: #fff; font-size: 14px; cursor: pointer; }
        .compose-photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
        .compose-photos img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; }
        .moment { background: #fff; border-bottom: 1px solid #ececec; padding: 13px 14px; }
        .moment .m-head { display: flex; gap: 10px; align-items: center; }
        .moment .m-avatar { width: 38px; height: 38px; border-radius: 6px; background: linear-gradient(135deg,#64748b,#334155); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; overflow: hidden; cursor: pointer; }
        .moment .m-avatar img { width: 100%; height: 100%; object-fit: cover; }
        .moment .m-name { font-size: 14px; font-weight: 600; color: #2563eb; cursor: pointer; }
        .moment .m-name:hover { text-decoration: underline; }
        .m-body { flex: 1; min-width: 0; }
        .moment .m-name { font-size: 14px; font-weight: 600; color: #2563eb; }
        .moment .m-time { font-size: 11px; color: #b0b0b0; }
        .moment .m-content { font-size: 14.5px; line-height: 1.55; margin: 6px 0; white-space: pre-wrap; word-break: break-word; }
        .moment .m-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
        .moment .m-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
        /* 分享卡片（微信链接卡片同款） */
        .share-card { display: flex; gap: 10px; background: #f7f8fa; border-radius: 8px; padding: 10px; margin-top: 8px; cursor: pointer; transition: background .15s; }
        .share-card:hover { background: #eff1f4; }
        .share-card .sc-cover { width: 54px; height: 54px; border-radius: 6px; background: linear-gradient(135deg,#e0f2fe,#bae6fd); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; overflow: hidden; }
        .share-card .sc-cover img { width: 100%; height: 100%; object-fit: cover; }
        .share-card .sc-body { flex: 1; min-width: 0; }
        .share-card .sc-title { font-size: 14px; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .share-card .sc-sum { font-size: 12px; color: #9ca3af; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .share-card .sc-price { color: #e11d48; font-weight: 700; font-size: 13px; margin-top: 4px; }
        .moment .m-actions { display: flex; gap: 14px; margin-top: 8px; font-size: 13px; color: #64748b; }
        .moment .m-actions span { cursor: pointer; }
        .moment .m-actions .liked { color: #f43f5e; }
        .moment .m-del { margin-left: auto; color: #c0c0c0; }

        /* ── 我 ── */
        .me-head { background: linear-gradient(135deg, #e9edf2, #dde5ee); padding: 26px 18px; display: flex; gap: 14px; align-items: center; }
        .me-avatar { width: 64px; height: 64px; border-radius: 12px; background: linear-gradient(135deg,#3b82f6,#2563eb); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 600; box-shadow: 0 4px 14px rgba(37,99,235,.3); }
        .me-info { flex: 1; }
        .me-nick { font-size: 19px; font-weight: 700; color: #111; display: flex; align-items: center; gap: 8px; }
        .me-nick .edit-nick { font-size: 13px; font-weight: 400; color: #2563eb; cursor: pointer; }
        .me-uid { font-size: 11px; color: #9ca3af; margin-top: 3px; }
        .me-sec { padding: 12px 14px 4px; font-size: 12px; color: #9a9a9a; letter-spacing: 1px; }
        .me-item { background: #fff; display: flex; gap: 11px; padding: 13px 14px; align-items: center; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
        .me-item:hover { background: #fafafa; }
        .me-item .mi-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
        .me-item .mi-body { flex: 1; min-width: 0; }
        .me-item .mi-title { font-size: 14.5px; color: #111; }
        .me-item .mi-desc { font-size: 12px; color: #9a9a9a; margin-top: 2px; }
        .me-item .mi-arrow { color: #c8c8c8; }
        .my-rec { background: #fff; border-bottom: 1px solid #f0f0f0; padding: 11px 14px; display: flex; gap: 10px; align-items: center; }
        .my-rec .mr-body { flex: 1; min-width: 0; }
        .my-rec .mr-title { font-size: 14px; color: #111; }
        .my-rec .mr-meta { font-size: 11.5px; color: #9a9a9a; margin-top: 2px; }
        .my-rec .mr-acts { display: flex; gap: 8px; flex-shrink: 0; }
        .my-rec .mr-act { border: 1px solid #d5d5d5; background: #fff; border-radius: 4px; padding: 3px 10px; font-size: 12px; cursor: pointer; color: #555; }
        .my-rec .mr-act.off { color: #f59e0b; border-color: #f59e0b; }
        .my-rec .mr-del { border: 1px solid #fca5a5; background: #fff; border-radius: 4px; padding: 3px 10px; font-size: 12px; cursor: pointer; color: #dc2626; }
        .my-rec .mr-del:active { background: #fef2f2; }

        /* ── 底部Tab栏 ── */
        .tabbar { flex-shrink: 0; display: flex; background: #f7f7f7; border-top: 1px solid #e0e0e0; padding: 4px 0 calc(4px + env(safe-area-inset-bottom)); }
        .tabbar .tab { flex: 1; border: none; background: none; cursor: pointer; padding: 4px 0 2px; color: #9a9a9a; font-size: 11px; }
        .tabbar .tab .t-icon { font-size: 22px; display: block; line-height: 1.2; }
        .tabbar .tab.on { color: #07c160; }

        /* ── 登录/注册弹窗 ── */
        @keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
        @keyframes modalPop { from { transform: translateY(18px) scale(.95); opacity: 0; } to { transform: none; opacity: 1; } }
        .modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 100; display: flex; align-items: center; justify-content: center; animation: modalFade .18s ease; }
        .modal-box { position: relative; width: 320px; max-width: calc(100vw - 40px); background: #fff; border-radius: 18px; padding: 24px 22px 18px; box-shadow: 0 24px 64px rgba(15,23,42,.28); animation: modalPop .24s cubic-bezier(.2,.9,.3,1.15); }
        .modal-logo { width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 16px; background: linear-gradient(135deg, #34d399, #059669); display: flex; align-items: center; justify-content: center; font-size: 27px; box-shadow: 0 8px 18px rgba(5,150,105,.32); }
        .modal-title { text-align: center; font-size: 17px; font-weight: 700; color: #111; }
        .modal-sub { text-align: center; font-size: 12px; color: #9ca3af; margin: 4px 0 14px; }
        .modal-tabs { display: flex; margin-bottom: 14px; border-bottom: 1px solid #f0f0f0; }
        .mtab { flex: 1; border: none; background: none; padding: 8px 0; font-size: 15px; cursor: pointer; color: #9a9a9a; border-bottom: 2px solid transparent; transition: color .15s; }
        .mtab.on { color: #059669; border-bottom-color: #059669; font-weight: 600; }
        .gender-row { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
        .gender-chip { border: 1px solid #d5d5d5; background: #fff; border-radius: 14px; padding: 5px 12px; font-size: 13px; cursor: pointer; color: #555; transition: all .15s; }
        .gender-chip.on { border-color: #059669; color: #059669; background: #ecfdf5; font-weight: 600; }
        .modal-box input { width: 100%; border: 1px solid #e5e7eb; border-radius: 10px; padding: 11px 13px; font-size: 15px; margin-bottom: 10px; outline: none; font-family: inherit; background: #f9fafb; transition: border-color .15s, box-shadow .15s, background .15s; }
        .modal-box input:focus { border-color: #07c160; background: #fff; box-shadow: 0 0 0 3px rgba(7,193,96,.13); }
        .modal-btn { width: 100%; border: none; background: linear-gradient(135deg, #10d078, #059669); color: #fff; border-radius: 10px; padding: 11px; font-size: 15px; font-weight: 600; letter-spacing: 4px; cursor: pointer; box-shadow: 0 5px 14px rgba(5,150,105,.3); transition: transform .12s, box-shadow .12s; }
        .modal-btn:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(5,150,105,.38); }
        .modal-btn:active { transform: none; }
        .modal-tip { background: #f7f8fa; border-radius: 8px; padding: 8px 10px; font-size: 12px; color: #9a9a9a; margin-top: 12px; line-height: 1.6; text-align: center; }
        .modal-close { position: absolute; top: 10px; right: 12px; width: 26px; height: 26px; border: none; background: #f3f4f6; border-radius: 50%; font-size: 13px; color: #9ca3af; cursor: pointer; display: flex; align-items: center; justify-content: center; }
        .modal-close:hover { background: #e5e7eb; color: #374151; }
        /* 通用确认弹窗（cfConfirm） */
        #confirmModal .modal-box { width: 300px; max-width: calc(100vw - 48px); }
        #confirmModal .modal-sub { font-size: 13px; color: #6b7280; line-height: 1.65; margin-top: 6px; word-break: break-word; }
        .cf-btn { flex: 1; border: none; background: #f1f2f4; color: #4b5563; border-radius: 10px; padding: 10px 0; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .12s, transform .12s, box-shadow .12s; }
        .cf-btn:active { transform: scale(.97); }
        .cf-btn.cf-ok { background: linear-gradient(135deg,#10d078,#059669); color: #fff; box-shadow: 0 4px 12px rgba(5,150,105,.28); }
        .cf-btn.cf-ok.danger { background: linear-gradient(135deg,#f87171,#dc2626); box-shadow: 0 4px 12px rgba(220,38,38,.3); }
        .cf-btn.cf-ok:hover { filter: brightness(1.04); }
        /* 轻量 toast（cfToast） */
        .cf-toast { position: fixed; top: 18px; left: 50%; transform: translate(-50%, -12px); background: rgba(15,23,42,.88); color: #fff; padding: 9px 20px; border-radius: 999px; font-size: 13.5px; z-index: 300; opacity: 0; transition: opacity .22s, transform .22s; pointer-events: none; box-shadow: 0 6px 20px rgba(15,23,42,.25); max-width: 86vw; text-align: center; }
        .cf-toast.cf-toast-ok { background: rgba(7,193,96,.94); }
        .cf-toast.cf-toast-err { background: rgba(220,38,38,.92); }
        .nick-preview { width: 58px; height: 58px; margin: 2px auto 12px; border-radius: 50%; background: linear-gradient(135deg, #60a5fa, #2563eb); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 600; color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.28); }
        .modal-textarea { width: 100%; border: 1px solid #e5e7eb; border-radius: 10px; padding: 11px 13px; font-size: 14px; outline: none; font-family: inherit; background: #f9fafb; resize: none; height: 76px; margin-bottom: 10px; transition: border-color .15s, box-shadow .15s, background .15s; }
        .modal-textarea:focus { border-color: #f59e0b; background: #fff; box-shadow: 0 0 0 3px rgba(245,158,11,.13); }

        /* ── 发现：朋友圈封面 ── */
        .moments-cover { position: relative; height: 210px; flex-shrink: 0; background: linear-gradient(135deg, #38bdf8 0%, #818cf8 55%, #f472b6 100%); }
        .mc-bg { position: absolute; inset: 0; background-size: cover; background-position: center; cursor: pointer; }
        .mc-change { position: absolute; top: 10px; right: 10px; background: rgba(15,23,42,.42); color: #fff; border-radius: 14px; padding: 4px 12px; font-size: 12px; cursor: pointer; backdrop-filter: blur(3px); }
        .mc-change:hover { background: rgba(15,23,42,.6); }
        .mc-meta { position: absolute; left: 0; right: 12px; bottom: 14px; display: flex; gap: 12px; align-items: flex-end; justify-content: flex-end; }
        .mc-info { text-align: right; min-width: 0; }
        .mc-mood { font-size: 12.5px; color: rgba(255,255,255,.92); text-shadow: 0 1px 4px rgba(0,0,0,.45); cursor: pointer; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; margin-left: auto; }
        .mc-mood:hover { text-decoration: underline; }
        .mc-name { font-size: 17px; font-weight: 700; color: #fff; text-shadow: 0 1px 5px rgba(0,0,0,.5); }
        .mc-avatar { width: 66px; height: 66px; border-radius: 14px; background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 600; border: 2px solid rgba(255,255,255,.9); box-shadow: 0 4px 14px rgba(15,23,42,.3); flex-shrink: 0; }
        #view-discover .compose-box { margin-top: 26px; }

        /* ── 发现PC版：左侧子菜单 + 内容进聊天区 ── */
        .dm-item { padding: 14px 16px; cursor: pointer; font-size: 14.5px; display: flex; align-items: center; gap: 9px; color: #111; border-left: 3px solid transparent; }
        .dm-item:hover { background: #efefef; }
        .dm-item.on { background: #c7e8c0; border-left-color: #07c160; font-weight: 600; color: #065f46; }
        .dm-item .soon-badge { margin-left: auto; }
        #discoverMain { flex: 1; min-height: 0; overflow-y: auto; }
        /* PC发现内容统一宽度：封面/发表框/动态流/服务页同一列居中 */
        #discoverMain #momentsWrap { max-width: 760px; margin: 0 auto; }
        #discoverMain #svcPage { max-width: 760px; margin: 0 auto; }
        #chatCol.discover-mode .chat-header,
        #chatCol.discover-mode .chat-messages,
        #chatCol.discover-mode .chat-input-area { display: none !important; }
        #chatCol.discover-mode #discoverMain { display: block !important; }
        #momentsPanelHolder > #momentsWrap .moments-cover { max-width: none; }

        /* ── 便民服务 ── */
        .svc-strip { display: flex; gap: 12px; overflow-x: auto; padding: 12px 14px; background: #fff; border-bottom: 1px solid #f0f0f0; scrollbar-width: none; }
        .svc-strip::-webkit-scrollbar { display: none; }
        .svc-strip .ss-item { flex-shrink: 0; width: 58px; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11.5px; color: #374151; cursor: pointer; }
        .svc-strip .ss-item:active .ss-ico { transform: scale(.93); }
        .svc-strip .ss-ico { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 23px; color: #fff; transition: transform .12s; box-shadow: 0 3px 8px rgba(15,23,42,.12); }
        .svc-page { padding: 16px 14px 40px; }
        .svc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
        .svc-head .sh-ico { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 23px; color: #fff; flex-shrink: 0; }
        .svc-head .sh-title { font-size: 18px; font-weight: 700; color: #111; }
        .svc-head .sh-sub { font-size: 12.5px; color: #9ca3af; margin-top: 2px; }
        .svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; }
        .svc-card { background: #fff; border: 1px solid #ececec; border-radius: 14px; overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .15s; }
        .svc-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15,23,42,.1); }
        .svc-card:active { transform: scale(.98); }
        .svc-card .cover { height: 128px; background: linear-gradient(135deg, #f1f5f9, #e2e8f0); display: flex; align-items: center; justify-content: center; font-size: 40px; }
        .svc-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .svc-card .body { padding: 10px 12px 12px; }
        .svc-card .t { font-size: 14px; font-weight: 600; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .svc-card .m { font-size: 12px; color: #9ca3af; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .svc-card .p { color: #e11d48; font-weight: 700; font-size: 14.5px; margin-top: 6px; }
        .svc-card .p small { font-weight: 400; color: #b0b0b0; font-size: 11px; margin-left: 6px; }
        .svc-card .d { font-size: 12.5px; color: #6b7280; margin-top: 6px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .svc-empty { text-align: center; padding: 46px 16px; color: #9ca3af; font-size: 14px; line-height: 2; grid-column: 1 / -1; background: #fff; border-radius: 14px; border: 1px dashed #e5e7eb; }

        /* ── 我PC版：微信设置页风格 ── */
        #chatCol.settings-mode .chat-header,
        #chatCol.settings-mode .chat-messages,
        #chatCol.settings-mode .chat-input-area { display: none !important; }
        #chatCol.settings-mode #settingsMain { display: block !important; }
        #settingsMain { padding: 34px 40px; font-size: 14.5px; }
        .st-h { font-size: 13px; color: #9a9a9a; letter-spacing: 1px; margin: 26px 0 10px; }
        .st-h:first-child { margin-top: 0; }
        .st-card { background: #fff; border: 1px solid #ececec; border-radius: 12px; padding: 18px 20px; }
        .st-account { display: flex; align-items: center; gap: 14px; }
        .st-account .me-avatar { width: 56px; height: 56px; font-size: 24px; margin: 0; }
        .st-account .sa-info { flex: 1; min-width: 0; }
        .st-account .sa-nick { font-size: 17px; font-weight: 700; color: #111; }
        .st-account .sa-uid { font-size: 12px; color: #9ca3af; margin-top: 3px; }
        .st-btn { border: 1px solid #d5d5d5; background: #fff; border-radius: 6px; padding: 6px 16px; font-size: 13px; cursor: pointer; color: #555; }
        .st-btn:hover { border-color: #07c160; color: #07c160; }
        .st-btn.danger:hover { border-color: #f43f5e; color: #f43f5e; }
        .st-row { display: flex; align-items: center; padding: 11px 0; border-bottom: 1px solid #f5f5f5; }
        .st-row:last-child { border-bottom: none; }
        .st-row .sr-label { color: #111; }
        .st-row .sr-val { margin-left: auto; color: #9ca3af; font-size: 13px; }
        .st-row .st-btn { margin-left: 12px; }
        .st-about { color: #64748b; line-height: 1.8; }
        .st-rec { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
        .st-rec:last-child { border-bottom: none; }
        .st-rec .sr-title { flex: 1; min-width: 0; color: #111; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .st-rec .sr-meta { color: #b0b0b0; font-size: 12px; }

        /* ── 我的发布详情（覆盖式弹窗内样式）── */
        .rd-title { font-size: 19px; font-weight: 700; color: #111; margin-bottom: 8px; }
        .rd-meta { font-size: 13px; color: #9ca3af; margin-bottom: 14px; }
        .rd-line { font-size: 14.5px; color: #374151; line-height: 1.9; }
        .rd-line b { color: #6b7280; font-weight: 500; margin-right: 6px; }
        .rd-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
        .rd-photos img { width: 130px; height: 130px; object-fit: cover; border-radius: 10px; border: 1px solid #eee; }
        .rd-actions { display: flex; gap: 10px; margin-top: 20px; }

        /* ── 图片灯箱层 ── */
        .lightbox { position: fixed; inset: 0; background: rgba(15,23,42,.88); z-index: 200; display: flex; align-items: center; justify-content: center; animation: modalFade .15s ease; cursor: zoom-out; }
        .lightbox img { max-width: calc(100vw - 60px); max-height: calc(100vh - 80px); border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }

        /* ── 品牌开屏页（Splash）── */
        .splash { position: fixed; inset: 0; z-index: 999; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(160deg, #e8f7ef 0%, #d1f0e0 40%, #b7e7cc 100%); overflow: hidden; cursor: pointer; }
        .splash.fade-out { opacity: 0; pointer-events: none; transition: opacity .5s ease; }
        .splash-logo { width: min(34vw, 150px); height: min(34vw, 150px); border-radius: 30%; background: linear-gradient(135deg, #10d078, #059669); display: flex; align-items: center; justify-content: center; font-size: min(18vw, 76px); color: #fff; box-shadow: 0 20px 60px rgba(5,150,105,.4), inset 0 -6px 14px rgba(0,0,0,.08); animation: splashPop .7s cubic-bezier(.2,.9,.3,1.2); }
        .splash-name { margin-top: 24px; font-size: min(9vw, 38px); font-weight: 800; color: #065f46; letter-spacing: .12em; text-shadow: 0 2px 10px rgba(255,255,255,.6); }
        .splash-domain { margin-top: 8px; font-size: min(4.5vw, 17px); color: #f97316; font-weight: 600; letter-spacing: .04em; opacity: .9; }
        .splash-sub { margin-top: 10px; font-size: min(4.5vw, 17px); color: #059669; letter-spacing: .08em; opacity: .85; }
        .splash-tip { position: absolute; bottom: calc(30px + env(safe-area-inset-bottom)); font-size: 13px; color: rgba(5,150,105,.55); animation: splashTip 2.2s ease-in-out infinite; }
        @keyframes splashPop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
        @keyframes splashTip { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
        .lb-close { position: absolute; top: 18px; right: 22px; width: 36px; height: 36px; border: none; background: rgba(255,255,255,.14); color: #fff; font-size: 16px; border-radius: 50%; cursor: pointer; }
        .lb-close:hover { background: rgba(255,255,255,.28); }
        .me-login { margin-left: auto; border: 1px solid #07c160; color: #07c160; background: #fff; border-radius: 16px; padding: 6px 14px; font-size: 13px; cursor: pointer; flex-shrink: 0; }
        .me-login:hover { background: #07c160; color: #fff; }

        /* ── 手机端 ── */
        @media (max-width: 900px) {
            .rail { display: none; }
            .splitter { display: none; }
            /* 聊天头部：手机不显示 tagline 描述（窄屏会变形），只留标题 */
            .chat-header-sub { display: none !important; }
            .chat-header-title { font-size: 16px; max-width: calc(100vw - 90px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
            /* ── 微信式输入条 ── */
            .chat-input-area .input-toolbar, .chat-input-area .input-bottom { display: none; }
            .input-row { display: flex; align-items: flex-end; gap: 9px; }
            .mb-btn, .mb-plus { display: block; border: none; background: none; font-size: 27px; line-height: 1; padding: 4px 2px; cursor: pointer; flex-shrink: 0; color: #111; }
            .mb-send { display: block; border: none; background: #07c160; color: #fff; font-size: 14px; border-radius: 6px; padding: 8px 15px; cursor: pointer; flex-shrink: 0; font-weight: 500; }
            .chat-input-area textarea { height: 38px !important; max-height: 128px; min-height: 38px; border-radius: 8px; background: #fff; padding: 9px 11px; flex: 1; font-size: 16px; transition: height .1s; }
            .panel { width: 100%; border-right: none; }   /* Tab面板全屏做首页 */
            .chat-col { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 50; display: none; }
            .chat-col.mobile-open { display: flex; }      /* 聊天页覆盖式打开 */
            .btn-back { display: block; }
            .chat-header { padding-top: calc(10px + env(safe-area-inset-top)); }
            .chat-messages { padding: 12px 10px; }
            .msg-bubble { font-size: 16px; max-width: calc(100vw - 60px); }
            .chat-input-area { padding: 6px 10px calc(8px + env(safe-area-inset-bottom)); }
            .view-head { padding-top: calc(12px + env(safe-area-inset-top)); }
            .chat-messages > * { max-width: 100%; }
        }

        /* ── 推广有礼 ── */
        .invite-loading { padding: 40px 0; text-align: center; color: #94a3b8; font-size: 14px; }
        .invite-tip { color: #94a3b8; font-size: 12px; margin: 8px 0 10px; }
        .invite-linkbar { display: flex; gap: 8px; margin-bottom: 12px; }
        .invite-link {
            flex: 1; min-width: 0; border: 1px solid #e2e8f0; border-radius: 8px;
            padding: 8px 10px; font-size: 12px; color: #475569; background: #f8fafc;
            outline: none;
        }
        .invite-copy {
            border: none; background: linear-gradient(135deg, #f97316, #f59e0b); color: #fff;
            padding: 0 16px; border-radius: 8px; font-size: 13px; cursor: pointer; white-space: nowrap;
        }
        .invite-count { font-size: 14px; color: #475569; }
        .invite-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
        .invite-row:last-child { border-bottom: none; }
        .invite-no {
            width: 20px; height: 20px; border-radius: 50%; background: #fff7ed; color: #f97316;
            font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
        }
        .invite-nick { color: #1e293b; font-weight: 600; }
        .invite-time { margin-left: auto; color: #94a3b8; font-size: 12px; }
        .invite-empty { color: #94a3b8; justify-content: center; padding: 16px 0; }
