        :root {
            --bg: #f8fafc;
            --bg-card: rgba(255,255,255,0.65);
            --bg-app: transparent;
            --text: #1e293b;
            --text-heading: #0f172a;
            --text-secondary: #475569;
            --text-muted: #94a3b8;
            --border: rgba(255,255,255,0.5);
            --border-input: rgba(255,255,255,0.6);
            --bg-tab: rgba(255,255,255,0.55);
            --bg-security: rgba(255,255,255,0.55);
            --bg-auth-input: rgba(255,255,255,0.7);
            --shadow: 0 4px 20px rgba(0,0,0,0.06);
            --primary: #3b82f6;
            --primary-dark: #2563eb;
            --primary-light: rgba(59,130,246,0.12);
            --success: #10b981;
            --danger: #ef4444;
            --warning: #f97316;
            --nav-bg: rgba(255,255,255,0.7);
            --nav-border: rgba(255,255,255,0.5);
            --nav-shadow: rgba(0,0,0,0.06);
            --toggle-bg: rgba(148,163,184,0.4);
            --badge-used-bg: rgba(254,242,242,0.7);
            --btn-back-bg: rgba(255,255,255,0.55);
            --btn-back-hover: rgba(255,255,255,0.75);
            --btn-back-color: #475569;
            --card-hover-bg: rgba(255,255,255,0.8);
            --logo-shadow: rgba(59,130,246,0.2);
            --avatar-border: rgba(255,255,255,0.6);
        }
        body.dark {
            --bg: #0f172a;
            --bg-card: rgba(30,41,59,0.6);
            --bg-app: transparent;
            --text: #e2e8f0;
            --text-heading: #f1f5f9;
            --text-secondary: #94a3b8;
            --text-muted: #64748b;
            --border: rgba(255,255,255,0.08);
            --border-input: rgba(255,255,255,0.1);
            --bg-tab: rgba(30,41,59,0.5);
            --bg-security: rgba(30,41,59,0.5);
            --bg-auth-input: rgba(30,41,59,0.6);
            --shadow: 0 2px 8px rgba(0,0,0,0.2);
            --primary: #60a5fa;
            --primary-dark: #3b82f6;
            --primary-light: rgba(96,165,250,0.15);
            --nav-bg: rgba(15,23,42,0.7);
            --nav-border: rgba(255,255,255,0.08);
            --nav-shadow: rgba(0,0,0,0.3);
            --toggle-bg: rgba(71,85,105,0.5);
            --badge-used-bg: rgba(239,68,68,0.15);
            --btn-back-bg: rgba(30,41,59,0.5);
            --btn-back-hover: rgba(51,65,85,0.7);
            --btn-back-color: #cbd5e1;
            --card-hover-bg: rgba(30,41,59,0.7);
            --logo-shadow: rgba(96,165,250,0.3);
            --avatar-border: rgba(255,255,255,0.1);
        }
        * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
        html, body { height: 100%; width: 100%; overflow: hidden; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; font-size: 15px; line-height: 1.5; color: var(--text); background: #f8fafc; transition: background 0.3s, color 0.3s; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; touch-action: pan-y; position: fixed; overscroll-behavior: none; }
        body.dark { background: #0f172a; }
        /* 高斯模糊装饰光斑 */
        .bg-blob { position: fixed; border-radius: 50%; filter: blur(120px); -webkit-filter: blur(120px); opacity: 0.5; pointer-events: none; z-index: 0; }
        .bg-blob-1 { width: 450px; height: 450px; background: rgba(99,102,241,0.2); top: -120px; left: -120px; }
        .bg-blob-2 { width: 500px; height: 500px; background: rgba(236,72,153,0.15); bottom: -150px; right: -150px; }
        .bg-blob-3 { width: 400px; height: 400px; background: rgba(59,130,246,0.18); top: 35%; right: -130px; }
        .bg-blob-4 { width: 350px; height: 350px; background: rgba(16,185,129,0.15); bottom: 25%; left: -100px; }
        body.dark .bg-blob-1 { background: rgba(99,102,241,0.3); }
        body.dark .bg-blob-2 { background: rgba(139,92,246,0.25); }
        body.dark .bg-blob-3 { background: rgba(236,72,153,0.2); }
        body.dark .bg-blob-4 { background: rgba(59,130,246,0.25); }
        .app { display: flex; flex-direction: column; height: 100%; height: 100dvh; width: 100%; max-width: 500px; margin: 0 auto; background: var(--bg-app); position: relative; overflow: hidden; transition: background 0.3s; z-index: 1; }
        .content-wrap { flex: 1; overflow-y: auto; padding: 16px 14px 80px 14px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
        .content-wrap::-webkit-scrollbar { width: 4px; } .content-wrap::-webkit-scrollbar-track { background: transparent; border-radius: 4px; } .content-wrap::-webkit-scrollbar-thumb { background: var(--border-input); border-radius: 4px; }
        .panel { display: none; animation: fadeIn 0.25s ease; } .panel.active-panel { display: block; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
        .card { background: var(--bg-card); border-radius: 22px; padding: 16px 16px; margin-bottom: 14px; box-shadow: var(--shadow); border: 1px solid var(--border); transition: background 0.3s, border-color 0.3s, box-shadow 0.3s; backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
        .section-title { font-size: 17px; font-weight: 600; color: var(--text-heading); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; letter-spacing: -0.2px; transition: color 0.3s; }
        .section-title i { font-size: 18px; color: var(--primary); transition: color 0.3s; }
        .auth-container { max-width: 400px; margin: 20px auto; padding: 10px; }
        .auth-logo { text-align: center; margin-bottom: 24px; }
        .auth-logo .logo-icon { width: 80px; height: 80px; border-radius: 22px; object-fit: cover; margin-bottom: 8px; box-shadow: 0 8px 24px var(--logo-shadow); border: 2px solid var(--avatar-border); }
        .auth-logo h2 { font-size: 20px; font-weight: 700; color: var(--text-heading); transition: color 0.3s; }
        .auth-logo p { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
        .auth-tabs { display: flex; background: var(--bg-tab); border-radius: 14px; padding: 4px; margin-bottom: 20px; transition: background 0.3s; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
        .auth-tab { flex: 1; text-align: center; padding: 10px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.2s; color: var(--text-secondary); border: none; background: transparent; }
        .auth-tab.active { background: var(--bg-card); color: var(--primary); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
        .auth-tab.disabled { color: var(--text-muted); opacity: 0.5; cursor: not-allowed; position: relative; }
        .auth-tab.disabled::after { content: ''; position: absolute; left: 50%; top: 50%; width: 60%; height: 1.5px; background: var(--text-muted); transform: translate(-50%, -50%) rotate(-15deg); opacity: 0.6; }
        .form-group { margin-bottom: 16px; }
        .form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; transition: color 0.3s; }
        .form-group input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border-input); border-radius: 14px; font-size: 14px; background: var(--bg-auth-input); color: var(--text); transition: 0.2s; font-family: inherit; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
        .form-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
        .captcha-row { display: flex; gap: 10px; align-items: center; }
        .captcha-row input { flex: 1; }
        .captcha-svg { width: 120px; height: 44px; border-radius: 12px; cursor: pointer; border: 1px solid var(--border-input); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
        .captcha-svg svg { width: 120px; height: 46px; display: block; }
        .btn-primary { background: var(--primary); width: 100%; border: none; padding: 13px; border-radius: 36px; font-size: 15px; font-weight: 600; color: #fff; cursor: pointer; transition: 0.2s; box-shadow: 0 2px 6px rgba(59,130,246,0.2); margin-top: 4px; }
        .btn-primary:active { transform: scale(0.97); background: var(--primary-dark); }
        .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
        .btn-secondary { background: var(--btn-back-bg); width: 100%; border: none; padding: 12px; border-radius: 36px; font-size: 14px; font-weight: 500; color: var(--btn-back-color); cursor: pointer; transition: 0.2s; margin-top: 10px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
        .btn-secondary:active { transform: scale(0.97); background: var(--btn-back-hover); }
        .auth-msg { text-align: center; font-size: 12px; margin-top: 10px; min-height: 18px; }
        .auth-msg.error { color: var(--danger); }
        .auth-msg.success { color: var(--success); }
        .platform-title {
            font-weight: 600;
            background: linear-gradient(90deg, #ef4444 0%, #ef4444 50%, #94a3b8 50%, #94a3b8 100%);
            background-size: 200% 100%;
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            animation: textShine 2.5s ease-in-out infinite;
        }
        @keyframes textShine {
            0% { background-position: 100% 0; }
            100% { background-position: -100% 0; }
        }
        .pwd-wrap { position: relative; }
        .pwd-wrap input { padding-right: 44px; }
        .pwd-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: none; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
        .pwd-toggle:hover { color: var(--text-secondary); background: var(--bg-tab); }
        .share-link-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
        .share-link-item:last-child { border-bottom: none; }
        .share-link-item .link-icon { width: 48px; height: 48px; border-radius: 48px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: white; flex-shrink: 0; }
        .share-link-item .link-icon-img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
        .share-link-item .link-info { flex: 1; min-width: 0; }
        .share-link-item .link-info .link-title { font-size: 15px; font-weight: 600; color: var(--text); }
        .share-link-item .link-info .link-url { font-size: 12px; color: var(--text-muted); word-break: break-all; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
        .agent-name-item { display: flex; align-items: center; padding: 12px 16px; background: var(--bg-tab); border-radius: 12px; font-size: 15px; }
        .agent-name-prefix { color: var(--text); }
        .agent-name-text { color: #1677ff; font-weight: 500; cursor: pointer; padding: 2px 6px; border-radius: 6px; transition: background 0.2s; }
        .agent-name-text:hover { background: rgba(59,130,246,0.1); }
        .chat-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
        .chat-header-title { font-size: 16px; font-weight: 600; color: var(--text); display: flex; align-items: center; }
        .chat-header-hint { font-size: 11px; color: #ef4444; font-weight: 500; margin-left: 8px; white-space: nowrap; }
        .chat-refresh-btn { width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--bg-tab); color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: 0.2s; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
        .chat-refresh-btn:active { transform: scale(0.92); background: var(--btn-back-hover); }
        .chat-refresh-btn.spinning i { animation: spin 1s linear infinite; }
        @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
        .chat-session-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.15s; position: relative; }
        .chat-session-item:last-child { border-bottom: none; }
        .chat-session-item:active { background: var(--card-hover-bg); }
        .chat-session-avatar { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: white; flex-shrink: 0; background: linear-gradient(135deg, #4285f4, #34a853); font-weight: 600; overflow: hidden; }
        .chat-session-avatar-img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; display: block; }
        .chat-online-status { font-size: 11px; }
        .chat-status-online { color: #52c41a; }
        .chat-status-offline { color: #999; }
        .chat-session-info { flex: 1; min-width: 0; }
        .chat-session-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
        .chat-session-name { font-size: 15px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; }
        .chat-session-role-label { font-size: 11px; color: #f5c518; font-weight: 500; }
        .chat-session-role { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: #e8f0fe; color: #4285f4; font-weight: 500; }
        .chat-session-role.seller { background: #f5f3ff; color: #8b5cf6; }
        .chat-session-top-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
        .chat-session-time { font-size: 11px; color: var(--text-muted); }
        .chat-session-msg { font-size: 13px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
        .chat-session-meta { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
        .chat-session-meta i { font-size: 10px; }
        .chat-session-status-label { color: #ef4444; font-weight: 500; }
        .chat-session-ip-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }
        .chat-session-ip-line { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
        .chat-session-unread { min-width: 18px; height: 18px; border-radius: 9px; background: #ef4444; color: white; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; padding: 0 5px; flex-shrink: 0; }
        .chat-session-delete { width: 32px; height: 32px; border-radius: 50%; border: none; background: transparent; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: 0.2s; flex-shrink: 0; }
        .chat-session-delete:active { background: #fee2e2; color: #ef4444; }
        .chat-empty { text-align: center; padding: 40px 20px; color: var(--text-muted); }
        .chat-empty i { font-size: 48px; display: block; margin-bottom: 12px; color: var(--border-input); }
        .chat-empty p { font-size: 13px; line-height: 1.6; }
        /* 底部导航未读徽章 */
        .nav-btn-unread { position: absolute; top: -2px; left: 50%; transform: translateX(14px); min-width: 16px; height: 16px; border-radius: 8px; background: #ef4444; color: white; font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; padding: 0 4px; line-height: 1; z-index: 2; }
        .sub-tab-unread { position: absolute; top: -6px; right: 8px; min-width: 18px; height: 18px; border-radius: 9px; background: #ef4444; color: white; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; padding: 0 5px; line-height: 1; z-index: 2; }
        .nav-btn { position: relative; }
        .copy-btn { background: var(--bg-tab); border: none; border-radius: 16px; padding: 3px 12px; font-size: 11px; color: var(--btn-back-color); cursor: pointer; transition: 0.2s; white-space: nowrap; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
        .copy-btn:active { background: var(--btn-back-hover); transform: scale(0.95); }
        .product-card { display: flex; gap: 12px; padding: 12px; background: var(--card-hover-bg); border-radius: 16px; margin-bottom: 10px; border: 1px solid var(--border); align-items: flex-start; transition: background 0.3s, border-color 0.3s; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
        .product-card-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--border-input); flex-shrink: 0; border: 1px solid var(--border); }
        .product-card-info { flex: 1; min-width: 0; }
        .product-card-info h4 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .product-card-info .product-meta { font-size: 11px; color: var(--text-secondary); margin-bottom: 2px; }
        .product-card-info .product-price { font-size: 15px; font-weight: 700; color: var(--warning); }
        .product-card-info .product-time { font-size: 10px; color: var(--text-muted); margin-top: 3px; }
        .product-card-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
        .btn-delete-sm { background: var(--badge-used-bg); border: 1px solid #fecaca; color: var(--danger); padding: 5px 12px; border-radius: 20px; font-size: 11px; cursor: pointer; transition: 0.2s; white-space: nowrap; }
        .btn-delete-sm:active { background: #fee2e2; transform: scale(0.96); }
        .history-item { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 12px; transition: border-color 0.3s; }
        .history-item:last-child { border-bottom: none; }
        .history-item .history-time { color: var(--text); font-weight: 500; margin-bottom: 3px; }
        .history-item .history-device { color: var(--text-secondary); }
        .history-item .history-ip { color: var(--text-muted); font-size: 11px; }
        .history-item i { width: 16px; display: inline-block; text-align: center; margin-right: 4px; color: var(--primary); }
        .empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
        .empty-state i { font-size: 48px; display: block; margin-bottom: 14px; color: var(--border-input); }
        .empty-state p { font-size: 13px; line-height: 1.6; }
        .profile-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
        .avatar-img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 14px rgba(0,0,0,0.08); background: var(--border-input); cursor: pointer; transition: 0.2s; border: 2px solid var(--avatar-border); }
        .avatar-img:hover { opacity: 0.85; }
        .user-info h3 { font-size: 19px; font-weight: 700; color: var(--text-heading); margin-bottom: 4px; transition: color 0.3s; }
        .user-info .user-meta { font-size: 12px; color: var(--text-secondary); line-height: 1.5; transition: color 0.3s; }
        .user-info .user-meta .meta-value { word-break: break-all; font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace; font-size: 11px; }
        .user-info .user-meta i { width: 16px; color: var(--primary); margin-right: 2px; }
        .security-info { background: var(--bg-security); border-radius: 14px; padding: 14px 16px; margin: 12px 0 8px 0; display: flex; flex-direction: column; gap: 8px; transition: background 0.3s; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
        .security-info .sec-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); transition: color 0.3s; }
        .security-info .sec-row i { width: 18px; color: var(--primary); font-size: 14px; }
        .security-info .sec-row .label { color: var(--text-secondary); font-weight: 500; min-width: 72px; transition: color 0.3s; }
        .security-info .sec-row .value { font-weight: 500; font-family: monospace; font-size: 12px; background: var(--bg-card); padding: 2px 10px; border-radius: 12px; border: 1px solid var(--border-input); transition: background 0.3s, border-color 0.3s; }
        .menu-list { margin-top: 6px; }
        .menu-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer; transition: 0.15s; background: none; width: 100%; text-align: left; font-family: inherit; border-left: none; border-right: none; border-top: none; }
        .menu-item:hover { color: var(--primary); }
        .menu-item i { font-size: 18px; width: 28px; text-align: center; color: var(--primary); }
        .menu-item:last-child { border-bottom: none; }
        .menu-item.disabled { cursor: not-allowed; opacity: 0.4; filter: grayscale(100%); }
        /* 弹窗中选项禁用样式 */
        .auth-option.disabled { cursor: not-allowed; opacity: 0.4; filter: grayscale(100%); }
        /* 顶部提示toast */
        .top-toast { position: fixed; top: 100px; left: 50%; transform: translateX(-50%); background: rgba(51,51,51,0.85); color: #fff; padding: 10px 24px; border-radius: 8px; font-size: 14px; z-index: 10000; opacity: 0; transition: opacity 0.3s; white-space: nowrap; pointer-events: none; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
        /* 开关滑动按钮 */
        .switch { position: relative; display: inline-block; width: 44px; height: 24px; }
        .switch input { opacity: 0; width: 0; height: 0; }
        .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .3s; border-radius: 24px; }
        .slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%; }
        input:checked + .slider { background-color: #f5c518; }
        input:checked + .slider:before { transform: translateX(20px); }
        .config-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); }
        .config-item:last-child { border-bottom: none; }
        .config-item .config-left { display: flex; align-items: center; gap: 12px; }
        .config-item .config-left i { font-size: 18px; width: 28px; color: var(--primary); text-align: center; }
        .config-item .config-left .config-label { font-size: 14px; font-weight: 500; color: var(--text); transition: color 0.3s; }
        .config-item .config-left .config-desc { font-size: 11px; color: var(--text-muted); }
        .toggle-switch { position: relative; width: 44px; height: 24px; background: var(--toggle-bg); border-radius: 12px; cursor: pointer; transition: 0.3s; flex-shrink: 0; border: none; padding: 0; }
        .toggle-switch.active { background: var(--primary); }
        .toggle-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: white; border-radius: 50%; transition: 0.3s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
        .toggle-switch.active::after { left: 22px; }
        .btn-submit { background: var(--primary); width: 100%; border: none; padding: 13px; border-radius: 36px; font-size: 15px; font-weight: 600; color: white; margin-top: 6px; cursor: pointer; transition: 0.2s; box-shadow: 0 2px 6px rgba(59,130,246,0.2); }
        .btn-submit:active { transform: scale(0.97); background: var(--primary-dark); }
        .btn-back { background: var(--btn-back-bg); width: 100%; border: none; padding: 12px; border-radius: 36px; font-size: 14px; font-weight: 500; color: var(--btn-back-color); cursor: pointer; transition: 0.2s; margin-bottom: 10px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
        .btn-back:active { transform: scale(0.97); background: var(--btn-back-hover); }
        .btn-reset-avatar { background: var(--bg-tab); border: 1px solid var(--border-input); color: var(--text-secondary); padding: 8px 16px; border-radius: 20px; font-size: 12px; cursor: pointer; transition: 0.2s; margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-family: inherit; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
        .btn-reset-avatar:hover { background: var(--btn-back-hover); color: var(--text); }
        .settings-avatar-wrap { text-align: center; margin-bottom: 18px; }
        .settings-avatar-wrap .avatar-img { width: 80px; height: 80px; cursor: pointer; border: 3px solid var(--avatar-border); display: block; margin: 0 auto; }
        .settings-avatar-wrap .avatar-hint { font-size: 11px; color: var(--text-muted); margin-top: 6px; }
        .bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; max-width: 500px; margin: 0 auto; background: var(--nav-bg); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-top: 1px solid var(--nav-border); display: flex; flex-wrap: nowrap; justify-content: space-around; align-items: center; padding: 4px 6px 8px; box-shadow: 0 -4px 16px var(--nav-shadow); z-index: 999; transition: background 0.3s, border-color 0.3s; }
        @supports (padding-bottom: env(safe-area-inset-bottom)) { .bottom-nav { padding-bottom: calc(8px + env(safe-area-inset-bottom)); } .content-wrap { padding-bottom: calc(80px + env(safe-area-inset-bottom)); } }
        .nav-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; background: transparent; border: none; font-size: 10px; color: #7e8b9e; padding: 4px 0 2px; cursor: pointer; transition: 0.2s; font-weight: 500; min-width: 0; white-space: nowrap; }
        .nav-btn i { font-size: 20px; margin-bottom: 0; transition: 0.2s; }
        .nav-btn span { font-size: 10px; line-height: 1.2; }
        .nav-btn.active { color: var(--primary); }
        .nav-btn.active i { transform: scale(1.05); }
        .nav-btn:active { transform: scale(0.94); }
        .toast-msg { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: rgba(30,41,59,0.85); backdrop-filter: blur(12px) saturate(180%); -webkit-backdrop-filter: blur(12px) saturate(180%); color: white; padding: 7px 18px; border-radius: 36px; font-size: 12px; z-index: 1000; pointer-events: none; opacity: 0; transition: opacity 0.25s; white-space: nowrap; }
        @media (max-width: 420px) { .content-wrap { padding-left: 10px; padding-right: 10px; } .card { padding: 14px 12px; } .nav-btn i { font-size: 18px; } .nav-btn span { font-size: 9px; } .profile-header { gap: 12px; } .avatar-img { width: 56px; height: 56px; } .user-info h3 { font-size: 17px; } }
        @media (min-width: 501px) { .bottom-nav { border-radius: 0 0 16px 16px; } }
        #avatarFileInput { display: none; }
        .auth-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: flex-end; justify-content: center; animation: fadeIn 0.2s ease; }
        .auth-modal { background: var(--bg-card); border-radius: 20px 20px 0 0; width: 100%; max-width: 500px; padding: 20px 16px 20px 16px; box-shadow: 0 -4px 20px rgba(0,0,0,0.1); transition: background 0.3s; max-height: 80vh; overflow-y: auto; margin-bottom: 70px; backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
        .auth-modal .modal-title { font-size: 16px; font-weight: 600; text-align: center; margin-bottom: 16px; color: var(--text); }
        .auth-modal .auth-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; cursor: pointer; transition: 0.15s; margin-bottom: 6px; border: 1px solid var(--border); }
        .auth-modal .auth-option:active { background: var(--bg-tab); transform: scale(0.98); }
        .auth-modal .auth-option-img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
        .auth-modal .auth-option-name { font-size: 14px; font-weight: 500; color: var(--text); flex: 1; }
        .auth-modal .auth-option-status { flex-shrink: 0; min-width: 48px; text-align: right; }
        .auth-modal .auth-option-arrow { color: var(--text-muted); font-size: 13px; }
        .auth-modal .auth-cancel { display: block; width: 100%; margin-top: 12px; padding: 14px; border: none; border-radius: 14px; font-size: 15px; font-weight: 600; cursor: pointer; background: var(--bg-tab); color: var(--text-secondary); transition: 0.2s; }
        .auth-modal .auth-cancel:active { background: var(--btn-back-hover); }
        
        /* 被踢下线弹窗 */
        .kicked-overlay {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.6); z-index: 9999;
            display: none; align-items: center; justify-content: center;
        }
        .kicked-overlay.show { display: flex; }
        .kicked-dialog {
            background: #fff; border-radius: 16px; width: 90%; max-width: 360px;
            padding: 32px 24px 24px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            animation: kickedIn 0.3s ease-out;
        }
        @keyframes kickedIn {
            from { transform: scale(0.8); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }
        .kicked-dialog .kicked-icon {
            width: 64px; height: 64px; border-radius: 50%; background: #fee2e2;
            display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
        }
        .kicked-dialog .kicked-icon i { font-size: 32px; color: #ef4444; }
        .kicked-dialog .kicked-title {
            font-size: 18px; font-weight: 700; color: #333; margin-bottom: 8px;
        }
        .kicked-dialog .kicked-msg {
            font-size: 14px; color: #666; margin-bottom: 24px; line-height: 1.5;
        }
        .kicked-dialog .kicked-countdown {
            font-size: 12px; color: #999; margin-bottom: 16px;
        }
        .kicked-dialog .kicked-btn {
            width: 100%; padding: 12px; background: #ef4444; color: #fff;
            border: none; border-radius: 10px; font-size: 16px; font-weight: 600;
            cursor: pointer; transition: background 0.2s;
        }
        .kicked-dialog .kicked-btn:active { background: #dc2626; }
        
        /* 别处登录弹窗 */
        .elsewhere-overlay {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.6); z-index: 9999;
            display: none; align-items: center; justify-content: center;
        }
        .elsewhere-overlay.show { display: flex; }
        .elsewhere-dialog {
            background: #fff; border-radius: 16px; width: 90%; max-width: 360px;
            padding: 32px 24px 24px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            animation: kickedIn 0.3s ease-out;
        }
        .elsewhere-dialog .elsewhere-icon {
            width: 64px; height: 64px; border-radius: 50%; background: #fef3c7;
            display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
        }
        .elsewhere-dialog .elsewhere-icon i { font-size: 32px; color: #f59e0b; }
        .elsewhere-dialog .elsewhere-title {
            font-size: 18px; font-weight: 700; color: #333; margin-bottom: 8px;
        }
        .elsewhere-dialog .elsewhere-msg {
            font-size: 14px; color: #666; margin-bottom: 24px; line-height: 1.5;
        }
        .elsewhere-dialog .elsewhere-countdown {
            font-size: 12px; color: #999; margin-bottom: 16px;
        }
        .elsewhere-dialog .elsewhere-btn {
            width: 100%; padding: 12px; background: #f59e0b; color: #fff;
            border: none; border-radius: 10px; font-size: 16px; font-weight: 600;
            cursor: pointer; transition: background 0.2s;
        }
        .elsewhere-dialog .elsewhere-btn:active { background: #d97706; }
        
        /* 公告弹窗 */
        .announce-overlay {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.6); z-index: 9998;
            display: none; align-items: center; justify-content: center;
        }
        .announce-overlay.show { display: flex; }
        .announce-dialog {
            background: #fff; border-radius: 16px; width: 90%; max-width: 400px;
            padding: 32px 24px 24px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            animation: announceIn 0.3s ease-out;
        }
        @keyframes announceIn {
            from { transform: scale(0.8); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }
        .announce-dialog .announce-icon {
            width: 64px; height: 64px; border-radius: 50%; background: #e3f2fd;
            display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
        }
        .announce-dialog .announce-icon i { font-size: 32px; color: #1976d2; }
        .announce-dialog .announce-title {
            font-size: 18px; font-weight: 700; color: #333; margin-bottom: 12px;
        }
        .announce-dialog .announce-content {
            font-size: 15px; color: #555; margin-bottom: 24px; line-height: 1.7;
            text-align: left; padding: 16px; background: #f9f9f9; border-radius: 10px;
            max-height: 250px; overflow-y: auto; white-space: pre-wrap; word-break: break-word;
        }
        .announce-dialog .announce-btn {
            width: 100%; padding: 12px; background: #1976d2; color: #fff;
            border: none; border-radius: 10px; font-size: 16px; font-weight: 600;
            cursor: pointer; transition: background 0.2s;
        }
        .announce-dialog .announce-btn:active { background: #1565c0; }
        
        /* 封禁弹窗 */
        .banned-overlay {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.6); z-index: 9999;
            display: none; align-items: center; justify-content: center;
        }
        .banned-overlay.show { display: flex; }
        .banned-dialog {
            background: #fff; border-radius: 16px; width: 90%; max-width: 380px;
            padding: 32px 24px 24px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            animation: bannedIn 0.3s ease-out;
        }
        @keyframes bannedIn {
            from { transform: scale(0.8); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }
        .banned-dialog .banned-icon {
            width: 64px; height: 64px; border-radius: 50%; background: #fce4ec;
            display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
        }
        .banned-dialog .banned-icon i { font-size: 32px; color: #c62828; }
        .banned-dialog .banned-title {
            font-size: 18px; font-weight: 700; color: #333; margin-bottom: 8px;
        }
        .banned-dialog .banned-msg {
            font-size: 14px; color: #666; margin-bottom: 24px; line-height: 1.5;
        }
        .banned-dialog .banned-countdown {
            font-size: 12px; color: #999; margin-bottom: 16px;
        }
        .banned-dialog .banned-btn {
            width: 100%; padding: 12px; background: #c62828; color: #fff;
            border: none; border-radius: 10px; font-size: 16px; font-weight: 600;
            cursor: pointer; transition: background 0.2s;
        }
        .banned-dialog .banned-btn:active { background: #b71c1c; }

        /* 雕刻五角星动画 */
        .star-overlay {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.6); z-index: 10000;
            display: none; align-items: center; justify-content: center;
            backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
        }
        .star-overlay.show { display: flex; animation: starFadeIn 0.3s ease; }
        @keyframes starFadeIn { from { opacity: 0; } to { opacity: 1; } }
        .star-carve {
            position: relative;
            width: 120px; height: 120px;
            animation: starCarveAnim 1.2s ease-out forwards;
        }
        @keyframes starCarveAnim {
            0% { transform: scale(0.3) rotate(-180deg); opacity: 0; }
            40% { transform: scale(1.1) rotate(10deg); opacity: 1; }
            60% { transform: scale(0.95) rotate(-5deg); }
            80% { transform: scale(1.02) rotate(2deg); }
            100% { transform: scale(1) rotate(0deg); opacity: 1; }
        }
        .star-carve svg { width: 100%; height: 100%; filter: drop-shadow(0 0 20px rgba(239,68,68,0.8)) drop-shadow(0 0 40px rgba(239,68,68,0.4)); }
        .star-carve svg path {
            fill: url(#starGradient);
            stroke: #dc2626;
            stroke-width: 2;
            stroke-dasharray: 1000;
            stroke-dashoffset: 1000;
            animation: starStroke 1.5s ease-out 0.2s forwards;
        }
        @keyframes starStroke {
            to { stroke-dashoffset: 0; }
        }
        .star-sparkle {
            position: absolute; width: 6px; height: 6px;
            background: #fca5a5; border-radius: 50%;
            animation: sparkle 0.8s ease-out forwards;
            box-shadow: 0 0 10px #ef4444, 0 0 20px #ef4444;
        }
        @keyframes sparkle {
            0% { transform: translate(0, 0) scale(1); opacity: 1; }
            100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
        }
        .star-text {
            position: absolute; bottom: -50px; left: 50%; transform: translateX(-50%);
            color: #fca5a5; font-size: 14px; font-weight: 600; white-space: nowrap;
            letter-spacing: 4px; text-shadow: 0 0 10px rgba(239,68,68,0.8);
            animation: starTextIn 0.5s ease-out 0.8s both;
        }
        @keyframes starTextIn { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

        /* 雕刻进度条动画 */
        .carve-progress-overlay {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.6); z-index: 10000;
            display: none; align-items: center; justify-content: center;
            backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
        }
        .carve-progress-overlay.show { display: flex; animation: starFadeIn 0.3s ease; }
        .carve-progress-box {
            width: 280px; text-align: center;
        }
        .carve-progress-icon {
            width: 80px; height: 80px; margin: 0 auto 20px;
            position: relative;
        }
        .carve-progress-icon svg { width: 100%; height: 100%; filter: drop-shadow(0 0 15px rgba(249,115,22,0.8)); }
        .carve-progress-icon svg path {
            fill: none;
            stroke: url(#carveGradient);
            stroke-width: 3;
            stroke-linejoin: round;
            stroke-dasharray: 500;
            stroke-dashoffset: 500;
            animation: carveStroke 2s ease-out forwards;
        }
        @keyframes carveStroke {
            to { stroke-dashoffset: 0; }
        }
        .carve-progress-bar-wrap {
            width: 100%; height: 12px;
            background: rgba(255,255,255,0.1);
            border-radius: 12px;
            border: 1px solid rgba(249,115,22,0.3);
            overflow: hidden;
            position: relative;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.3), 0 0 10px rgba(249,115,22,0.2);
        }
        .carve-progress-bar {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, #fbbf24, #f97316, #ea580c, #f97316, #fbbf24);
            background-size: 200% 100%;
            border-radius: 12px;
            position: relative;
            box-shadow: 0 0 10px rgba(249,115,22,0.8), 0 0 20px rgba(249,115,22,0.4);
            animation: carveProgressShine 1.5s linear infinite;
        }
        @keyframes carveProgressShine {
            0% { background-position: 0% 50%; }
            100% { background-position: 200% 50%; }
        }
        .carve-progress-bar::before {
            content: '';
            position: absolute; top: 0; left: 0; right: 0;
            height: 50%;
            background: linear-gradient(180deg, rgba(255,255,255,0.4), transparent);
            border-radius: 12px 12px 0 0;
        }
        .carve-progress-bar::after {
            content: '';
            position: absolute; right: -2px; top: 50%;
            width: 4px; height: 20px;
            background: #fef3c7;
            transform: translateY(-50%);
            box-shadow: 0 0 8px #fbbf24, 0 0 16px #f97316;
            animation: carveSparks 0.3s ease-in-out infinite alternate;
        }
        @keyframes carveSparks {
            from { height: 16px; opacity: 0.8; }
            to { height: 24px; opacity: 1; }
        }
        .carve-progress-text {
            margin-top: 16px;
            color: #fdba74; font-size: 14px; font-weight: 600;
            letter-spacing: 2px;
            text-shadow: 0 0 10px rgba(249,115,22,0.6);
        }
        .carve-progress-percent {
            margin-top: 8px;
            color: #fed7aa; font-size: 20px; font-weight: 700;
            font-family: monospace;
            text-shadow: 0 0 8px rgba(249,115,22,0.5);
        }
        .carve-spark-fly {
            position: absolute; width: 4px; height: 4px;
            background: #fbbf24; border-radius: 50%;
            box-shadow: 0 0 6px #f97316, 0 0 12px #fbbf24;
            animation: carveSparkFly 0.6s ease-out forwards;
        }
        @keyframes carveSparkFly {
            0% { transform: translate(0,0) scale(1); opacity: 1; }
            100% { transform: translate(var(--sx), var(--sy)) scale(0); opacity: 0; }
        }
    .session-item {
        display: flex; align-items: center; gap: 10px;
        padding: 12px 10px; border-radius: 10px;
        cursor: pointer; transition: 0.2s;
        position: relative;
    }
    .session-item:hover { background: var(--bg-tab); }
    .session-avatar {
        width: 42px; height: 42px; border-radius: 50%;
        background: linear-gradient(135deg,#3b82f6,#2563eb);
        display: flex; align-items: center; justify-content: center;
        color: #fff; font-size: 16px; font-weight: 600; flex-shrink: 0;
        overflow: hidden;
    }
    .session-avatar-img img {
        width: 100%; height: 100%; object-fit: cover; display: block;
    }
    .session-info { flex: 1; min-width: 0; }
    .session-name { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }
    .session-location { font-size: 11px; font-weight: 400; color: #6b7280; background: #f3f4f6; padding: 2px 6px; border-radius: 4px; display: inline-flex; align-items: center; gap: 3px; }
    .session-location i { font-size: 10px; color: #ef4444; }
    .session-group-tag { font-size: 10px; font-weight: 500; color: #fff; background: linear-gradient(135deg,#8b5cf6,#7c3aed); padding: 2px 6px; border-radius: 4px; display: inline-block; }
    .session-online { font-size: 11px; font-weight: 400; padding: 2px 6px; border-radius: 4px; display: inline-flex; align-items: center; gap: 3px; }
    .session-online-online { color: #059669; background: #d1fae5; }
    .session-online-online i { font-size: 8px; }
    .session-online-offline { color: #6b7280; background: #f3f4f6; }
    .session-online-offline i { font-size: 7px; }
    .session-last { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .session-time { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }
    .session-badge {
        position: absolute; top: 10px; right: 10px;
        min-width: 18px; height: 18px; padding: 0 5px;
        background: #ef4444; color: #fff;
        border-radius: 9px; font-size: 11px;
        display: flex; align-items: center; justify-content: center;
        font-weight: 600;
    }
    .empty-state { text-align: center; padding: 30px 20px; color: var(--text-muted); }
    .empty-state i { font-size: 36px; margin-bottom: 8px; display: block; opacity: 0.5; }
    .empty-state p { font-size: 13px; }

    .admin-msg-item { display: flex; margin-bottom: 12px; align-items: flex-end; }
    .admin-msg-item.me { flex-direction: row-reverse; }
    .admin-msg-avatar {
        width: 30px; height: 30px; border-radius: 50%;
        background: var(--bg-tab);
        display: flex; align-items: center; justify-content: center;
        font-size: 12px; font-weight: 600; color: var(--text-primary); flex-shrink: 0;
    }
    .admin-msg-bubble {
        max-width: 70%; margin: 0 8px;
        padding: 8px 12px; border-radius: 12px;
        font-size: 14px; line-height: 1.5;
        background: var(--bg-tab); color: var(--text-primary);
        word-wrap: break-word;
    }
    .admin-msg-item.me .admin-msg-bubble {
        background: linear-gradient(135deg,#3b82f6,#2563eb); color: #fff;
    }
    .admin-msg-time {
        text-align: center; font-size: 11px; color: var(--text-muted);
        margin: 8px 0;
    }
