/* === css/style.css === */

/* ============================================================
   三套皮肤系统 - CSS 变量定义
   ============================================================ */

/* === 1. 默认皮肤：Amethyst (紫晶) === */
:root {
    --primary: #7C5CFC;
    --primary-hover: #6B4FE0;
    --primary-light: #F0EDFF;
    --primary-shadow: 0 4px 14px rgba(124, 92, 252, 0.25);
    --secondary: #E8735A;
    --bg-image: #FAFAF8;
    --text-color: #1A1A1A;
    --text-secondary: #6B6B6B;
    --text-muted: #ADADAD;
    --navbar-bg: rgba(250, 250, 248, 0.82);
    --glass-bg: #FFFFFF;
    --glass-border: rgba(0, 0, 0, 0.06);
    --card-header-color: #6B6B6B;
    --card-footer-color: #ADADAD;
    --divider: #EEECEA;
    --tab-border: transparent;
    --tab-text: #ADADAD;
    --search-bg: #F5F3F0;
    --search-border: #EEECEA;
    --search-placeholder: #ADADAD;
    --chip-bg: #F5F3F0;
    --hot-comment-color: #6B6B6B;
    --hot-comment-user: #7C5CFC;
    --select-option-bg: #FFFFFF;
    --font-display: 'Playfair Display', 'Noto Serif SC', Georgia, serif;
    --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --transition: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 其他皮肤定义在 css/themes/*.css 中，由 theme.js 自动加载 */

/* === 全局样式应用 === */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg-image);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.5s ease, color 0.5s ease;
    min-height: 100vh;
    padding-bottom: 80px;
    -webkit-tap-highlight-color: transparent;
}

/* === 皮肤切换浮动菜单 (左下角折叠式) === */
#skin-dock {
    position: fixed;
    bottom: 30px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse; /* 向上展开 */
    align-items: center;
    gap: 12px;
    pointer-events: none; /* 容器不拦截点击，让下面的元素可点 */
}
#skin-dock .skin-toggle,
#skin-dock.expanded .skin-list {
    pointer-events: auto; /* 只有按钮和展开的菜单能点 */
}

/* 触发按钮 (画板图标) */
.skin-toggle {
    width: 40px; /* 稍微缩小一点 */
    height: 40px;
    background: rgba(255, 255, 255, 0.6); /* 降低默认不透明度 */
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.5; /* 默认半透明，减少干扰 */
    transform: scale(0.9);
}

.skin-toggle:hover, #skin-dock.expanded .skin-toggle {
    transform: scale(1) rotate(15deg);
    background: white;
    opacity: 1; /* 激活/悬停时完全不透明 */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 主题列表容器 */
.skin-list {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom center;
    padding-bottom: 5px;
}

/* 展开状态 */
#skin-dock.expanded .skin-list {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

#skin-dock.expanded .skin-toggle {
    background: var(--primary);
    color: white;
    transform: rotate(45deg);
    box-shadow: 0 4px 15px rgba(102, 8, 116, 0.3);
}

/* 单个主题按钮 */
.skin-btn { 
    cursor: pointer;
    transition: transform 0.2s;
}

.skin-btn:hover {
    transform: scale(1.1);
}

.skin-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 2px solid white;
    transition: all 0.3s;
}

/* 选中状态 */
.skin-btn[data-active="true"] .skin-icon {
    transform: scale(1.2);
    border-color: var(--primary);
}
        
        .navbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--navbar-bg); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--divider); transition: background 0.5s ease; }
        .brand { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-color); }
        .nav-right { display: flex; align-items: center; gap: 6px; }
        .notification-icon { position: relative; cursor: pointer; font-size: 20px; color: var(--text-secondary); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.2s; }
        .notification-icon:hover { background: var(--chip-bg); }
        .notification-badge { position: absolute; top: 2px; right: 2px; background: var(--secondary); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 10px; min-width: 16px; text-align: center; line-height: 1.4; }
        .user-area { display: flex; align-items: center; cursor: pointer; font-size: 14px; color: var(--text-color); gap: 8px; padding: 4px 12px 4px 4px; border-radius: 24px; transition: background 0.2s; font-weight: 500; }
        .user-area:hover { background: var(--chip-bg); }
        .avatar-small { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid var(--divider); background: #f0f0f0; display: block; }
        
        /* 图片渐显效果 */
        .img-fade-in { opacity: 0; transition: opacity 0.3s ease; }
        .img-fade-in.loaded { opacity: 1; }
        
        /* 确保所有头像有固定尺寸和占位背景 */
        img[class*="avatar"] { background: #f0f0f0; }
        
        /* 骨架屏样式 */
        .skeleton-item { display: flex; align-items: flex-start; padding: 15px; gap: 12px; animation: skeletonShimmer 1.5s ease-in-out infinite; }
        @keyframes skeletonShimmer {
            0% { opacity: 0.6; }
            50% { opacity: 1; }
            100% { opacity: 0.6; }
        }
        .skeleton-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: skeletonWave 1.5s ease-in-out infinite; flex-shrink: 0; }
        .skeleton-text { flex: 1; }
        .skeleton-line { height: 12px; background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: skeletonWave 1.5s ease-in-out infinite; border-radius: 4px; margin-bottom: 8px; }
        .skeleton-line:first-child { width: 30%; }
        .skeleton-line:nth-child(2) { width: 80%; }
        .skeleton-line:last-child { width: 60%; }
        @keyframes skeletonWave {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        
        /* AI 正在输入提示 */
        .typing-indicator { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: white; border-radius: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); width: fit-content; }
        .typing-dot { width: 8px; height: 8px; border-radius: 50%; background: #999; animation: typingBounce 1.4s infinite ease-in-out; }
        .typing-dot:nth-child(1) { animation-delay: 0s; }
        .typing-dot:nth-child(2) { animation-delay: 0.2s; }
        .typing-dot:nth-child(3) { animation-delay: 0.4s; }
        @keyframes typingBounce {
            0%, 60%, 100% { transform: translateY(0); opacity: 0.7; }
            30% { transform: translateY(-10px); opacity: 1; }
        }

        .tab-bar { display: flex; justify-content: flex-start; margin: 0; padding: 0 20px; gap: 4px; border-bottom: 1px solid var(--divider); background: var(--glass-bg); position: sticky; top: 52px; z-index: 40; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
        .tab-bar::-webkit-scrollbar { display: none; }
        .tab-btn { background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--tab-text); padding: 14px 16px 12px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.25s ease; text-align: center; white-space: nowrap; letter-spacing: -0.01em; position: relative; }
        .tab-btn.active { color: var(--text-color); border-bottom-color: var(--primary); font-weight: 600; }
        .tab-btn:hover:not(.active) { color: var(--text-secondary); }
        .tab-btn:first-child { border-radius: 0; }
        .tab-btn:last-child { border-radius: 0; }
        
        .container { max-width: 600px; margin: 0 auto; padding: 16px 16px 0; }
        
        .card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 22px 20px; margin-bottom: 12px; box-shadow: var(--shadow-sm); animation: fadeIn 0.35s ease; transition: all 0.2s ease; cursor: pointer; }
        .card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
        @keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
        
        .card-header { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 13px; color: var(--card-header-color); font-weight: 500; }
        .card-body { font-size: 15px; line-height: 1.75; margin-bottom: 14px; white-space: pre-wrap; color: var(--text-color); letter-spacing: 0.01em; }
        .card-footer { font-size: 12px; color: var(--card-footer-color); display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--divider); padding-top: 12px; }
        
        .card-clickable { position: relative; }
        .card-clickable::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; }
        
        .post-actions { display: flex; align-items: center; gap: 4px; }
        .action-btn { cursor: pointer; margin-left: 0; padding: 6px 10px; font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; transition: all 0.2s ease; border-radius: var(--radius-sm); }
        .action-btn:hover { background: var(--chip-bg); color: var(--text-secondary); }
        .action-btn:active { transform: scale(0.95); }
        .action-btn.liked { color: var(--secondary); font-weight: 600; }
        .action-btn[id^="fav-"] { filter: grayscale(100%); }
        .action-btn.favorited { color: #D4A574; filter: none; font-weight: 600; }
        
        /* 优化评论弹窗 - 类似小红书/B站风格 */
        .comment-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.75); z-index: 250; backdrop-filter: blur(8px); }
        .comment-modal-content { position: absolute; bottom: 0; left: 0; right: 0; max-width: 750px; margin: 0 auto; background: white; border-radius: 20px 20px 0 0; max-height: 80vh; display: flex; flex-direction: column; animation: slideUpModal 0.3s ease; will-change: transform; transform: translateZ(0); }
        @keyframes slideUpModal { from { transform: translateY(100%); } to { transform: translateY(0); } }
        
        .comment-modal-header { padding: 16px 20px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
        .comment-modal-title { font-size: 16px; font-weight: bold; color: #333; }
        .comment-modal-close { font-size: 24px; color: #999; cursor: pointer; padding: 0 8px; }
        
        /* 表白内容预览区 */
        .confession-preview { background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%); padding: 20px; margin: 0; border-bottom: 1px solid #e0e0e0; position: relative; }
        .confession-preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; color: #999; }
        .confession-preview-content { font-size: 15px; line-height: 1.6; color: #333; margin-bottom: 12px; max-height: 100px; overflow: hidden; text-overflow: ellipsis; }
        .confession-preview-footer { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #999; }
        .share-btn { background: var(--primary); color: white; border: none; padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 5px; transition: all 0.2s ease; font-weight: 500; font-family: var(--font-body); }
        .share-btn:hover { background: var(--primary-hover); }
        .share-btn:active { transform: scale(0.96); }
        
        .comment-modal-body { flex: 1; overflow-y: auto; padding: 15px 20px; -webkit-overflow-scrolling: touch; will-change: scroll-position; }
        
        .comment-list { display: flex; flex-direction: column; gap: 15px; }
        .comment-item { display: flex; gap: 12px; padding: 12px; background: #f9f9f9; border-radius: 12px; font-size: 14px; color: #333; position: relative; will-change: auto; }
        .comment-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
        .comment-content-wrapper { flex: 1; min-width: 0; }
        .comment-user { color: #666; font-weight: 600; margin-bottom: 4px; font-size: 13px; }
        .comment-text { color: #333; line-height: 1.5; margin-bottom: 6px; word-wrap: break-word; }
        .comment-meta { display: flex; gap: 15px; font-size: 12px; color: #999; align-items: center; }
        .comment-time { color: #999; }
        .comment-action { cursor: pointer; transition: color 0.2s; user-select: none; }
        .comment-action:active { transform: none; }
        .comment-like-btn { color: #999; }
        .comment-like-btn.liked { color: #ff5e57; font-weight: bold; }
        .comment-reply-btn { color: #666; }
        .comment-menu-btn { position: absolute; top: 8px; right: 8px; color: #999; font-size: 16px; cursor: pointer; padding: 4px 8px; }
        .comment-menu-btn:hover { color: #666; }
        
        /* 🎯 小红书风格：回复区域样式 */
        .comment-replies { margin-top: 12px; padding-left: 0; }
        .reply-item { display: flex; gap: 10px; margin-bottom: 12px; padding: 12px; background: rgba(0,0,0,0.02); border-radius: 8px; transition: none; }
        .reply-item:last-child { margin-bottom: 0; }
        .reply-item img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
        .reply-item .comment-text { color: #333; font-size: 14px; line-height: 1.6; margin-top: 4px; }
        .reply-item .comment-meta { margin-top: 8px; font-size: 12px; color: #999; }
        
        .comment-modal-footer { padding: 12px 20px; border-top: 1px solid #f0f0f0; background: #fafafa; flex-shrink: 0; position: sticky; bottom: 0; z-index: 10; }
        .comment-input-wrapper { display: flex; gap: 10px; align-items: center; }
        .comment-input { flex: 1; padding: 12px 16px; border: 1px solid #e0e0e0; border-radius: 20px; font-size: 14px; background: white; outline: none; resize: none; max-height: 80px; line-height: 1.4; }
        .comment-input:focus { border-color: var(--primary); }
        .comment-submit-btn { padding: 10px 24px; background: var(--primary); color: white; border: none; border-radius: 20px; font-size: 14px; font-weight: bold; cursor: pointer; white-space: nowrap; transition: all 0.2s; }
        .comment-submit-btn:active { transform: scale(0.95); background: #7a0995; }
        
        /* 回复提示条 */
        .reply-hint { padding: 8px 20px; background: #fff9e6; border-bottom: 1px solid #ffe8b3; display: none; align-items: center; justify-content: space-between; font-size: 13px; color: #856404; }
        .reply-hint.active { display: flex; }
        .reply-hint .cancel-reply { color: #667eea; cursor: pointer; font-weight: bold; }
        
        /* 旧的评论框样式保留（向下兼容） */
        .comment-box { display: none; margin-top: 12px; background: rgba(0,0,0,0.2); border-radius: 8px; padding: 10px; border: 1px solid rgba(255,255,255,0.05); }
        .input-mini { flex: 1; padding: 6px; border-radius: 4px; border: none; font-size: 12px; background: rgba(255,255,255,0.9); }
        .btn-mini { padding: 6px 12px; border-radius: 4px; border: none; background: var(--primary); color: white; cursor: pointer; font-size: 12px; }
        
        .event-highlight { border: 1px solid rgba(232, 115, 90, 0.3); background: rgba(232, 115, 90, 0.04); position: relative; }
        .event-highlight::before { content: "HOT"; position: absolute; top: -10px; left: 15px; background: var(--secondary); color: #fff; font-size: 10px; padding: 2px 10px; border-radius: 6px; font-weight: 700; letter-spacing: 0.5px; }
        .event-cover { width: 100%; height: 160px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 10px; }
        .event-title { font-size: 18px; font-weight: 600; margin-bottom: 5px; color: var(--text-color); }
        .event-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 10px; margin-bottom: 10px; }
        
        .grid-container { display: none; grid-template-columns: repeat(2, 1fr); gap: 12px; }
        .user-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); overflow: hidden; color: var(--text-color); position: relative; transition: all 0.25s ease; cursor: pointer; box-shadow: var(--shadow-sm); }
        .user-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
        .user-card:active { transform: scale(0.98); }
        .user-card img { width: 100%; height: 220px; object-fit: cover; background: #F5F3F0; }
        .user-info { padding: 14px; }
        .user-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; color: var(--text-color); letter-spacing: -0.01em; }
        .user-tags { font-size: 11px; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 4px; }
        .tag { background: var(--chip-bg); padding: 3px 8px; border-radius: 6px; color: var(--text-secondary); font-weight: 500; }
        .vip-crown { color: #ffd700; margin-left: 4px; text-shadow: 0 0 5px rgba(255,215,0,0.5); }
        .campus-badge, .company-badge, .unverified-badge { display: inline-block; font-size: 9px; font-weight: 600; padding: 1px 5px; border-radius: 3px; margin-left: 4px; vertical-align: middle; line-height: 1.4; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .campus-badge { background: #dbeafe; color: #1d4ed8; }
        .company-badge { background: #ffedd5; color: #c2410c; }
        .unverified-badge { background: #fee2e2; color: #dc2626; font-weight: 600; }
        .card-message-btn { position: absolute; bottom: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: white; border: none; font-size: 16px; cursor: pointer; box-shadow: var(--primary-shadow); transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; z-index: 10; }
        .card-message-btn:hover { transform: scale(1.08); }
        .card-message-btn:active { transform: scale(0.92); }
        .mbti-badge { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.92); color: var(--primary); font-size: 10px; padding: 3px 8px; border-radius: 6px; font-weight: 700; backdrop-filter: blur(4px); letter-spacing: 0.5px; }
        
        /* 找搭子相关样式 */
        .activity-list { display: none; }
        .activity-filter { display: flex; gap: 8px; margin-bottom: 15px; overflow-x: auto; padding: 0 5px; }
        .filter-chip { padding: 8px 16px; background: var(--chip-bg); border: 1px solid var(--divider); border-radius: 20px; color: var(--text-secondary); font-size: 13px; cursor: pointer; white-space: nowrap; transition: all 0.25s ease; font-weight: 500; }
        .filter-chip:hover { border-color: var(--primary); color: var(--primary); }
        .filter-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
        .activity-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 12px; color: var(--text-color); position: relative; box-shadow: var(--shadow-sm); transition: all 0.2s ease; }
        .activity-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
        .activity-header { display: flex; align-items: center; margin-bottom: 10px; }
        .activity-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; margin-right: 10px; border: 2px solid var(--divider); }
        .activity-user-info { flex: 1; }
        .activity-username { font-size: 14px; font-weight: bold; margin-bottom: 2px; }
        .activity-time { font-size: 11px; color: var(--text-muted); }
        .activity-category { position: absolute; top: 14px; right: 14px; background: var(--primary-light); color: var(--primary); font-size: 11px; padding: 4px 10px; border-radius: 8px; font-weight: 600; }
        .activity-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--text-color); letter-spacing: -0.01em; }
        .activity-content { font-size: 14px; line-height: 1.6; margin-bottom: 10px; color: var(--text-secondary); }
        .activity-meta { display: flex; gap: 15px; font-size: 12px; color: var(--text-muted); padding-top: 10px; border-top: 1px solid var(--divider); }
        .activity-meta-item { display: flex; align-items: center; gap: 4px; }
        .activity-search { margin-bottom: 15px; }
        .activity-search-input { width: 100%; padding: 12px 16px; border-radius: var(--radius-md); border: 1px solid var(--divider); background: var(--search-bg); color: var(--text-color); font-size: 14px; font-family: var(--font-body); transition: border-color 0.2s; outline: none; }
        .activity-search-input:focus { border-color: var(--primary); }
        .activity-search-input::placeholder { color: var(--search-placeholder); }
        
        .ad-card { background: rgba(255, 250, 230, 0.95); border: 1px solid #ffd700; color: #333; }
        .ad-badge { background: #ffd700; color: #000; font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: bold; display: inline-block; margin-bottom: 6px;}
        .ad-link { display: block; margin-top: 8px; font-size: 13px; color: var(--primary); text-decoration: none; font-weight: bold; }
        .ad-img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; margin-top: 5px; display: block; }
        
        .fab { position: fixed; bottom: 30px; right: 24px; background: var(--primary); color: #fff; width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: var(--primary-shadow); cursor: pointer; z-index: 100; transition: all 0.25s var(--transition); }
        .fab:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124, 92, 252, 0.35); }
        .fab:active { transform: scale(0.92); }
        
        .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 300; justify-content: center; align-items: center; overflow-y: auto; -webkit-overflow-scrolling: touch; }
        .modal-content { background: white; width: 88%; max-width: 360px; max-height: 85vh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 32px 28px; border-radius: var(--radius-xl); color: var(--text-color); position: relative; animation: popIn 0.35s var(--transition); margin: auto; box-shadow: var(--shadow-lg); }
        @keyframes popIn { from{transform:scale(0.92) translateY(10px);opacity:0} to{transform:scale(1) translateY(0);opacity:1} }
        .close-modal { position: absolute; top: 16px; right: 18px; font-size: 22px; cursor: pointer; color: var(--text-muted); transition: color 0.2s; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
        .close-modal:hover { background: var(--chip-bg); color: var(--text-color); }
        h3 { margin-top: 0; text-align: center; color: var(--text-color); font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
        .input-group { margin-bottom: 16px; }
        label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; }
        input, textarea { width: 100%; padding: 13px 16px; border: 1.5px solid var(--divider); border-radius: var(--radius-md); box-sizing: border-box; font-size: 15px; background: #FAFAF8; font-family: var(--font-body); transition: border-color 0.2s ease, box-shadow 0.2s ease; outline: none; color: var(--text-color); }
        input:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.1); }
        .btn-block { width: 100%; padding: 13px; background: var(--primary); color: white; border: none; border-radius: var(--radius-md); font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; font-family: var(--font-body); letter-spacing: 0.02em; }
        .btn-block:hover { background: var(--primary-hover); }
        .btn-block:active { transform: scale(0.98); }
        .btn-danger { background: #E85D5D; margin-top: 15px; }
        .profile-avatar-upload { text-align: center; margin-bottom: 20px; position: relative; display: inline-block; }
        .profile-avatar-upload img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); padding: 2px; }
        
        /* 编辑资料 Tab 样式 */
        .profile-tab.active { color: var(--primary) !important; border-bottom-color: var(--primary) !important; font-weight: bold; }
        .profile-tab:hover { color: var(--primary); }
        .profile-tab-content { animation: fadeIn 0.3s ease; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
        
        /* MBTI 标签选择器 */
        .mbti-tag { padding: 8px 14px; background: #f5f5f5; border-radius: 20px; font-size: 13px; cursor: pointer; transition: all 0.2s; border: 2px solid transparent; }
        .mbti-tag:hover { background: #e8e8e8; }
        .mbti-tag.selected { background: var(--primary); color: white; border-color: var(--primary); }
        
        /* 性别选择卡片 */
        .prefer-gender-option.selected { border-color: var(--primary) !important; background: #fff5f8; }
        
        /* 上传区域悬停效果 */
        #photoUploadZone:hover { border-color: var(--primary); background: #fff5f8; }
        
        /* 照片墙样式 */
        .photo-wall-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
        .photo-item { position: relative; width: 100%; padding-bottom: 100%; background: #f5f5f5; border-radius: 10px; overflow: hidden; }
        .photo-item img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
        .photo-item .delete-photo { position: absolute; top: 5px; right: 5px; background: rgba(255,0,0,0.8); color: white; border: none; border-radius: 50%; width: 24px; height: 24px; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
        .photo-upload-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: #f0f0f0; border: 2px dashed #ddd; border-radius: 10px; cursor: pointer; font-size: 32px; color: #999; transition: all 0.3s; position: absolute; top: 0; left: 0; }
        .photo-upload-btn:hover { background: #e8e8e8; border-color: var(--primary); color: var(--primary); }
        .photo-loading { display: flex; align-items: center; justify-content: center; font-size: 12px; color: #999; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.9); }
        
        /* 视频预览样式 */
        .video-preview { position: relative; width: 100%; max-width: 400px; margin: 10px auto; background: #f5f5f5; border-radius: 12px; overflow: hidden; }
        .video-preview video { width: 100%; display: block; max-height: 300px; }
        .video-preview .delete-video { position: absolute; top: 10px; right: 10px; background: rgba(255,0,0,0.8); color: white; border: none; padding: 6px 12px; border-radius: 20px; font-size: 13px; cursor: pointer; z-index: 2; }
        .video-upload-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 20px; background: #f0f0f0; border: 2px dashed #ddd; border-radius: 12px; cursor: pointer; color: #666; transition: all 0.3s; margin: 10px 0; }
        .video-upload-btn:hover { background: #e8e8e8; border-color: var(--primary); color: var(--primary); }
        .video-loading { text-align: center; padding: 20px; color: #999; font-size: 14px; }
        
        .loading-text { text-align:center; margin-top:50px; color: var(--text-muted); font-size: 14px; font-weight: 500; }

        /* 底部操作菜单 */
        #action-sheet { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 300; flex-direction: column; justify-content: flex-end; }
        .action-sheet-content { background: #fff; border-top-left-radius: 15px; border-top-right-radius: 15px; overflow: hidden; animation: slideUp 0.3s; }
        .action-item { padding: 18px; text-align: center; font-size: 16px; border-bottom: 1px solid #eee; cursor: pointer; color: #333; }
        .action-item.danger { color: #ff4757; font-weight: bold; border-bottom: 8px solid #f2f2f2; }
        @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
        @keyframes fadeInOut { 
            0% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); } 
            10% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 
            90% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 
            100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); } 
        }
        
        /* 搜索和筛选栏 */
        .filter-bar { padding: 12px 16px; display: flex; gap: 8px; align-items: center; }
        .search-input { flex: 1; padding: 11px 16px; border: 1.5px solid var(--search-border); background: var(--search-bg); color: var(--text-color); border-radius: var(--radius-md); font-size: 14px; outline: none; transition: all 0.2s ease; font-family: var(--font-body); }
        .search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.08); background: #fff; }
        .search-input::placeholder { color: var(--search-placeholder); }
        .search-btn { padding: 11px 18px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius-md); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all 0.2s ease; font-family: var(--font-body); }
        .search-btn:hover { background: var(--primary-hover); }
        .search-btn:active { transform: scale(0.96); }
        .sort-select { padding: 11px 12px; border: 1.5px solid var(--search-border); background: var(--search-bg); color: var(--text-secondary); border-radius: var(--radius-md); font-size: 13px; cursor: pointer; outline: none; min-width: 75px; font-family: var(--font-body); }
        .sort-select option { background: var(--select-option-bg); color: var(--text-color); }
        
        /* 热评预览 */
        .hot-comments-preview { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--divider); }
        .hot-comment-item { font-size: 12px; color: var(--hot-comment-color); margin-bottom: 4px; display: flex; justify-content: space-between; align-items: center; }
        .hot-comment-user { color: var(--hot-comment-user); margin-right: 5px; }
        .hot-comment-likes { color: #ff5e57; font-size: 11px; }
        
        /* 评论排序选择器（弹窗内） */
        .comment-sort-btn:hover { background: rgba(124, 92, 252, 0.05) !important; }
        .comment-sort-btn.active { background: rgba(124, 92, 252, 0.08) !important; border-color: rgba(124, 92, 252, 0.2) !important; color: var(--primary) !important; font-weight: 600; }
        
        /* 分享弹窗 - 小红书风格 */
        .share-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 300; backdrop-filter: blur(4px); }
        .share-modal-content { position: absolute; bottom: 0; left: 0; right: 0; background: white; border-radius: 20px 20px 0 0; padding: 0; animation: slideUpModal 0.3s ease; }
        .share-confession-preview { padding: 20px; border-bottom: 8px solid #f5f5f5; }
        .share-confession-text { font-size: 14px; line-height: 1.6; color: #333; max-height: 80px; overflow: hidden; text-overflow: ellipsis; margin-bottom: 10px; }
        .share-confession-meta { font-size: 12px; color: #999; }
        .share-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; padding: 20px; }
        .share-option { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; transition: all 0.2s; }
        .share-option:active { transform: scale(0.95); }
        .share-icon { width: 54px; height: 54px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
        .share-label { font-size: 12px; color: #666; font-weight: 500; }
        .share-cancel { text-align: center; padding: 16px; color: #666; cursor: pointer; border-top: 1px solid #f0f0f0; font-size: 15px; background: #fafafa; }
        
        /* 图片生成容器 - 小红书风格 */
        #shareImageContainer { position: fixed; left: -9999px; top: -9999px; width: 600px; }
        .share-image-wrapper { background: #f8f9fa; padding: 40px; }
        .share-image-content { background: linear-gradient(135deg, #ff2442 0%, #ff6b9d 50%, #ffa8c5 100%); padding: 40px 35px; border-radius: 20px; color: white; box-shadow: 0 20px 60px rgba(255, 36, 66, 0.3); position: relative; overflow: hidden; }
        .share-image-bg-decoration { position: absolute; width: 200px; height: 200px; background: rgba(255,255,255,0.1); border-radius: 50%; top: -100px; right: -50px; }
        .share-image-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; font-size: 13px; opacity: 0.95; position: relative; z-index: 1; }
        .share-image-to { font-weight: 600; font-size: 15px; }
        .share-image-date { opacity: 0.8; }
        .share-image-body { font-size: 19px; line-height: 1.9; margin: 30px 0; min-height: 120px; font-weight: 400; letter-spacing: 0.5px; position: relative; z-index: 1; }
        .share-image-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 35px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,0.25); position: relative; z-index: 1; }
        .share-image-from { font-size: 13px; opacity: 0.9; margin-bottom: 8px; }
        .share-logo { font-size: 20px; font-weight: 700; opacity: 1; letter-spacing: 1px; }
        .share-qr-box { background: white; padding: 10px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
        .share-qr { width: 70px; height: 70px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
        .share-qr img { width: 100%; height: 100%; border-radius: 8px; }
        
        /* 举报弹窗 - 小红书风格 */
        .report-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 300; backdrop-filter: blur(4px); }
        .report-modal-content { position: absolute; bottom: 0; left: 0; right: 0; background: white; border-radius: 20px 20px 0 0; padding: 0; animation: slideUpModal 0.3s ease; }
        .report-modal-title { text-align: center; padding: 20px; font-size: 15px; font-weight: 600; color: #333; border-bottom: 1px solid #f0f0f0; }
        .report-options { padding: 0; }
        .report-option { padding: 18px 20px; font-size: 15px; color: #333; border-bottom: 1px solid #f5f5f5; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 12px; }
        .report-option:active { background: #f9f9f9; }
        .report-option-icon { font-size: 20px; }
        .report-option-text { flex: 1; }
        .report-option-desc { font-size: 12px; color: #999; margin-top: 2px; }
        .report-cancel { text-align: center; padding: 16px; color: #666; cursor: pointer; border-top: 8px solid #f5f5f5; font-size: 15px; }
        
        /* 移动端优化 */
        @media (max-width: 768px) {
            .comment-modal-content { max-width: 100%; border-radius: 20px 20px 0 0; }
            .comment-input { font-size: 16px; /* 防止iOS自动缩放 */ }
            .share-options { grid-template-columns: repeat(4, 1fr); }
        }
        
        /* 通知列表弹窗 */
        .notification-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 300; overflow-y: auto; }
        .notification-content { background: white; max-width: 500px; margin: 60px auto 20px; border-radius: 15px; padding: 20px; color: #333; }
        .notification-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 2px solid #f0f0f0; }
        .notification-item { display: flex; gap: 12px; padding: 12px; margin-bottom: 10px; background: #f9f9f9; border-radius: 10px; cursor: pointer; transition: all 0.2s; }
        .notification-item:hover { background: #f0f0f0; }
        .notification-item.unread { background: #fff0f5; border-left: 3px solid var(--primary); }
        .notification-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
        .notification-text { flex: 1; font-size: 14px; line-height: 1.5; }
        .notification-time { font-size: 11px; color: #999; margin-top: 4px; }
        .notification-type { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: bold; margin-left: 5px; }
        .type-like { background: #ffe5e5; color: #ff4757; }
        .type-comment { background: #e5f3ff; color: #2196f3; }
        .type-reply { background: #fff3e0; color: #ff9800; }
        .type-favorite { background: #fff9e5; color: #ffc107; }
        .type-friend { background: #f3e5ff; color: var(--primary); }
        
        /* ==================== 用户卡片弹窗 (Instagram 风格) ==================== */
        .user-profile-modal { 
            display: none; 
            position: fixed; 
            top: 0; left: 0; 
            width: 100%; height: 100%; 
            background: rgba(0,0,0,0.75); 
            z-index: 1100; 
            backdrop-filter: blur(8px); 
            justify-content: center; 
            align-items: center; 
            overflow-y: auto; 
            -webkit-overflow-scrolling: touch;
            padding: 20px 0;
        }
        
        .user-profile-card { 
            background: #f8f9fa; 
            width: 90%; 
            max-width: 420px; 
            max-height: 90vh; 
            overflow-y: auto; 
            -webkit-overflow-scrolling: touch; 
            border-radius: 16px; 
            animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
            position: relative; 
            margin: auto;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        }
        
        @keyframes slideUpFade {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        /* 头部背景（高斯模糊/渐变） */
        .user-profile-header { 
            height: 120px;
            background: linear-gradient(135deg, #7C5CFC 0%, #B8A9FF 100%);
            background-size: cover;
            background-position: center;
            position: relative;
            border-radius: 16px 16px 0 0;
            filter: blur(0);
        }
        
        .user-profile-header::after {
            content: '';
            position: absolute;
            top: 0; left: 0;
            right: 0; bottom: 0;
            background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
            backdrop-filter: blur(10px);
        }
        
        /* 头像（浮动效果：一半压在背景上） */
        .user-profile-avatar-wrapper {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            top: 60px; /* 头部120px高，头像100px，向上浮动60px */
            z-index: 10;
        }
        
        .user-profile-avatar { 
            width: 100px; 
            height: 100px; 
            border-radius: 50%; 
            border: 3px solid white; 
            object-fit: cover; 
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
            background: white;
            display: block;
        }
        
        /* 主内容卡片 */
        .user-profile-content {
            background: white;
            border-radius: 16px;
            margin: 0 12px 12px 12px;
            padding: 60px 20px 20px 20px; /* 上方留出头像空间 */
        }
        
        /* 用户信息（居中） */
        .user-profile-info-header {
            text-align: center;
            padding-bottom: 15px;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .user-profile-name { 
            font-size: 22px; 
            font-weight: bold; 
            color: #1a1a1a; 
            margin-bottom: 6px;
            letter-spacing: -0.5px;
        }
        
        .user-profile-major { 
            font-size: 14px; 
            color: #8e8e93;
            margin-bottom: 10px;
        }
        
        /* 小胶囊标签 (Badges) */
        .user-profile-badges {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 10px;
        }
        
        .user-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 5px 12px;
            background: #f0f0f5;
            border-radius: 12px;
            font-size: 12px;
            color: #555;
            font-weight: 500;
        }
        
        /* 性别年龄标签（醒目） */
        .user-badge-gender-male {
            background: #E8F3FF;
            color: #0066CC;
            font-weight: 600;
            font-size: 13px;
            padding: 6px 14px;
        }
        
        .user-badge-gender-female {
            background: #FFEFF5;
            color: #FF3366;
            font-weight: 600;
            font-size: 13px;
            padding: 6px 14px;
        }
        
        /* 几字班标签（清华特色） */
        .user-badge-class {
            background: #F3E5F5;
            color: #660874;
            font-weight: 600;
            font-size: 12px;
            padding: 6px 14px;
        }
        
        /* 院系标签 */
        .user-badge-department {
            background: #f0f0f5;
            color: #666;
            font-weight: 500;
            font-size: 12px;
        }
        
        /* 清华认证标签 */
        .user-badge-tsinghua {
            background: linear-gradient(135deg, #660874, #9b4db8);
            color: white;
            font-weight: 600;
            font-size: 12px;
            box-shadow: 0 2px 8px rgba(102, 8, 116, 0.3);
        }
        
        /* 引导按钮（仅自己看自己时显示） */
        .user-badge-guide {
            border: 1px dashed #999;
            color: #666;
            background: transparent;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .user-badge-guide:hover {
            border-color: #667eea;
            color: #667eea;
            background: rgba(102, 126, 234, 0.05);
        }
        
        .user-badge-guide:active {
            transform: scale(0.95);
        }
        
        /* 核心操作栏 */
        .user-profile-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 16px;
            align-items: stretch;
        }
        
        .user-action-btn {
            flex: 1 1 auto;
            min-width: fit-content;
            padding: 13px 20px;
            border: none;
            border-radius: 12px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            white-space: nowrap;
        }
        
        .user-action-primary {
            background: var(--primary);
            color: white;
            box-shadow: var(--primary-shadow);
        }
        
        .user-action-primary:active {
            transform: scale(0.98);
        }
        
        .user-action-ai {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
            0%, 100% { box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4); }
            50% { box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6); }
        }
        
        .user-action-secondary {
            background: #f0f0f5;
            color: #333;
        }
        
        .user-action-more {
            flex: 0 0 48px;
            padding: 0;
            background: #f0f0f5;
            color: #666;
            font-size: 20px;
        }
        
        /* Tab 切换栏 */
        .user-profile-tabs {
            display: flex;
            border-bottom: 1px solid #e0e0e0;
            margin: 20px 0 0 0;
            gap: 0;
        }
        
        .user-profile-tab {
            flex: 1;
            padding: 14px 0;
            background: none;
            border: none;
            border-bottom: 2px solid transparent;
            font-size: 15px;
            font-weight: 600;
            color: #999;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .user-profile-tab.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
        }
        
        /* Tab 内容区 */
        .user-profile-tab-content {
            display: none;
            padding: 20px 0;
        }
        
        .user-profile-tab-content.active {
            display: block;
        }
        
        /* 信息卡片 */
        .user-info-card {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 12px;
        }
        
        /* 🔮 AI 侧写卡片 (紫晶科技风) */
        .user-info-card-ai-persona, .user-info-card-ai-persona-empty {
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 16px;
            border: 2px solid transparent;
            background-clip: padding-box;
            position: relative;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
        }
        
        .user-info-card-ai-persona::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 16px;
            padding: 2px;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
        }
        
        .ai-persona-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
        }
        
        .ai-persona-title {
            font-size: 16px;
            font-weight: bold;
            background: linear-gradient(135deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .ai-persona-badge {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 11px;
            font-weight: bold;
            letter-spacing: 0.5px;
        }
        
        .ai-mbti-tag {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: bold;
            display: inline-block;
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
        }
        
        .ai-keywords {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 10px;
        }
        
        .ai-keyword-tag {
            background: rgba(102, 126, 234, 0.15);
            color: #667eea;
            padding: 5px 12px;
            border-radius: 14px;
            font-size: 12px;
            font-weight: 500;
            border: 1px solid rgba(102, 126, 234, 0.2);
        }
        
        .ai-persona-description {
            margin-top: 12px;
            padding: 12px;
            background: rgba(255, 255, 255, 0.6);
            border-radius: 10px;
            font-size: 13px;
            line-height: 1.7;
            color: #555;
            font-style: italic;
            border-left: 3px solid #667eea;
        }
        
        .ai-topics {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        
        .ai-topic-tag {
            background: rgba(118, 75, 162, 0.12);
            color: #764ba2;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 11px;
            border: 1px dashed rgba(118, 75, 162, 0.3);
        }
        
        .ai-vibe-tag {
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
            color: #764ba2;
            padding: 6px 16px;
            border-radius: 16px;
            font-size: 13px;
            font-weight: 600;
            display: inline-block;
            border: 1px solid rgba(118, 75, 162, 0.25);
        }
        
        /* 📝 关于我卡片 (Monologue Style) */
        .user-info-card-monologue {
            background: #F9F9F9;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 12px;
            position: relative;
            overflow: hidden;
        }
        
        /* 左上角大引号装饰 */
        .user-info-card-monologue::before {
            content: '❝';
            position: absolute;
            top: -10px;
            left: 10px;
            font-size: 80px;
            color: rgba(0, 0, 0, 0.03);
            font-family: Georgia, serif;
            line-height: 1;
            pointer-events: none;
        }
        
        /* ❤️ 择偶标准卡片 (Wishlist Style) */
        .user-info-card-wishlist {
            background: linear-gradient(135deg, #FFF0F5 0%, #FFF5F8 100%);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 12px;
            border: 1px solid rgba(255, 182, 193, 0.2);
        }
        
        .user-info-card-title {
            font-size: 13px;
            font-weight: 600;
            color: #1a1a1a;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .user-info-card-content {
            font-size: 14px;
            color: #555;
            line-height: 1.7;
            position: relative;
            z-index: 1;
        }
        
        /* 择偶标准 - 硬性指标标签区 */
        .prefer-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 12px;
        }
        
        .prefer-tag {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 6px 12px;
            background: rgba(255, 182, 193, 0.15);
            border: 1px solid rgba(255, 182, 193, 0.3);
            border-radius: 20px;
            font-size: 12px;
            color: #FF1493;
            font-weight: 500;
        }
        
        /* 择偶标准 - 软性描述 */
        .prefer-description {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px dashed rgba(255, 182, 193, 0.3);
            font-size: 14px;
            color: #666;
            line-height: 1.8;
            font-style: italic;
        }
        
        /* 引导占位符（仅自己看自己时显示） */
        .user-guide-placeholder {
            text-align: center;
            color: #999;
            padding: 30px 20px;
            font-size: 13px;
            line-height: 1.8;
            cursor: pointer;
            transition: all 0.2s ease;
            border-radius: 8px;
        }
        
        .user-guide-placeholder:hover {
            background: rgba(102, 126, 234, 0.03);
            color: #667eea;
        }
        
        .user-guide-placeholder-icon {
            font-size: 32px;
            margin-bottom: 10px;
        }
        
        .user-guide-placeholder-text {
            font-size: 14px;
            margin-bottom: 6px;
        }
        
        .user-guide-placeholder-tip {
            font-size: 12px;
            color: #bbb;
        }
        
        /* 统计数据 */
        .user-profile-stat { 
            display: flex; 
            justify-content: space-around; 
            padding: 16px 0; 
            border-top: 1px solid #f0f0f0;
            margin-top: 16px;
        }
        
        .user-profile-stat-item { 
            text-align: center; 
        }
        
        .user-profile-stat-value { 
            font-size: 20px; 
            font-weight: 700; 
            color: var(--primary);
            margin-bottom: 4px;
            font-family: var(--font-display);
        }
        
        .user-profile-stat-label { 
            font-size: 12px; 
            color: #999; 
        }
        
        /* 照片墙 Grid */
        .photo-wall-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 4px;
        }
        
        .photo-wall-item {
            aspect-ratio: 1;
            overflow: hidden;
            border-radius: 8px;
            cursor: pointer;
            position: relative;
        }
        
        .photo-wall-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
        }
        
        .photo-wall-item:active img {
            transform: scale(0.95);
        }
        .user-profile-info { margin-bottom: 15px; }
        .user-profile-info-item { display: flex; align-items: flex-start; margin-bottom: 12px; font-size: 14px; }
        .user-profile-info-label { width: 60px; color: #999; flex-shrink: 0; }
        .user-profile-info-value { flex: 1; color: #333; word-break: break-all; }
        .user-profile-close { position: absolute; top: 15px; right: 15px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.3); color: white; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
        .user-profile-close:hover { background: rgba(255,255,255,0.5); transform: scale(1.1); }
        
        /* 用户卡片按钮增强可读性 */
        .user-profile-body button:active { transform: scale(0.95); opacity: 0.9; }
        
        /* AI悬浮球样式 */
        .ai-bubble { position: fixed; bottom: 90px; right: 24px; width: 52px; height: 52px; background: var(--text-color); border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.15); cursor: pointer; z-index: 999; display: flex; align-items: center; justify-content: center; transition: all 0.25s var(--transition); }
        .ai-bubble:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
        .ai-bubble:active { transform: scale(0.92); }
        .ai-avatar { font-size: 26px; }
        .ai-bubble .badge { position: absolute; top: -4px; right: -4px; background: var(--secondary); color: white; width: 18px; height: 18px; border-radius: 50%; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg-image); }
        @keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } }
        @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
        
        /* 遮罩层 */
        .overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; backdrop-filter: blur(3px); }
        .overlay.active { display: block; }
        
        /* 对话抽屉 */
        .chat-drawer { position: fixed; bottom: 0; right: 0; width: 100%; max-width: 400px; height: 70vh; background: white; border-radius: var(--radius-xl) var(--radius-xl) 0 0; box-shadow: 0 -8px 40px rgba(0,0,0,0.12); z-index: 999; transform: translateY(100%); transition: transform 0.35s var(--transition); display: flex; flex-direction: column; }
        .chat-drawer.active { transform: translateY(0); }
        
        .drawer-header { padding: 20px; border-bottom: 1px solid var(--divider); display: flex; justify-content: space-between; align-items: center; background: #FFFFFF; color: var(--text-color); border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
        .ai-info h3 { margin: 0 0 5px 0; font-size: 18px; color: var(--text-color); font-family: var(--font-display); letter-spacing: -0.02em; }
        .ai-info p { margin: 0; font-size: 12px; color: var(--text-muted); }
        .status-dot { display: inline-block; width: 8px; height: 8px; background: #4ade80; border-radius: 50%; margin-right: 5px; }
        .close-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--chip-bg); color: var(--text-secondary); font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; border: none; }
        .close-btn:hover { background: var(--divider); color: var(--text-color); }
        @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
        /* .close-btn defined above with drawer-header */
        
        .chat-body { flex: 1; overflow-y: auto; padding: 20px; background: #f9f9f9; }
        .message { margin-bottom: 15px; display: flex; gap: 10px; animation: slideIn 0.3s ease; }
        @keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
        .message.ai { justify-content: flex-start; }
        .message.user { justify-content: flex-end; }
        .msg-bubble { max-width: 80%; padding: 12px 16px; border-radius: 18px; font-size: 14px; line-height: 1.5; }
        .message.ai .msg-bubble { background: var(--chip-bg); color: var(--text-color); border-bottom-left-radius: 4px; }
        .message.user .msg-bubble { background: var(--primary); color: white; border-bottom-right-radius: 4px; }
        
        .input-area { padding: 10px 15px; background: white; border-top: 1px solid #f0f0f0; display: flex; gap: 8px; align-items: center; }
        
        /* 切换按钮（键盘/麦克风图标） */
        .mode-toggle-btn { width: 36px; height: 36px; background: transparent; border: none; font-size: 22px; cursor: pointer; color: #666; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.2s; flex-shrink: 0; }
        .mode-toggle-btn:hover { background: #f5f5f5; }
        .mode-toggle-btn:active { transform: scale(0.9); }
        
        /* 文本输入框 */
        .ai-text-input { flex: 1; padding: 10px 15px; border: 1px solid #e0e0e0; border-radius: 20px; font-size: 15px; outline: none; background: white; transition: all 0.2s; min-width: 0; }
        .ai-text-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(102,8,116,0.1); }
        .ai-text-input::placeholder { color: #999; }
        
        /* 语音按钮 */
        .voice-btn { flex: 1; padding: 12px 20px; background: white; color: #666; border: 1px solid #e0e0e0; border-radius: 20px; font-size: 15px; font-weight: 500; cursor: pointer; transition: all 0.2s; display: none; user-select: none; }
        .voice-btn:active { background: linear-gradient(135deg, #ff4757, #ff6b81); color: white; border-color: #ff4757; transform: scale(0.98); }
        .voice-btn.listening { background: linear-gradient(135deg, #ff4757, #ff6b81); color: white; border-color: #ff4757; animation: recordPulse 1s ease-in-out infinite; }
        @keyframes recordPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,77,87,0.4); } 50% { box-shadow: 0 0 0 10px rgba(255,77,87,0); } }
        
        /* 发送按钮 */
        .ai-send-btn { width: 36px; height: 36px; background: var(--primary); color: white; border: none; border-radius: 50%; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; }
        .ai-send-btn:hover { background: var(--primary-hover); }
        .ai-send-btn:active { transform: scale(0.95); }
        .ai-send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
        
        /* 显示/隐藏控制 */
        .input-area.voice-mode .ai-text-input { display: none; }
        .input-area.voice-mode .voice-btn { display: block; }
        
        /* 移动端优化 */
        @media (max-width: 600px) {
            .input-area { padding: 8px 10px; gap: 6px; }
            .mode-toggle-btn { width: 32px; height: 32px; font-size: 20px; }
            .ai-text-input { padding: 8px 12px; font-size: 14px; }
            .voice-btn { padding: 10px 15px; font-size: 14px; }
            .ai-send-btn { width: 32px; height: 32px; font-size: 16px; }
        }

        .quick-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
        .quick-btn { padding: 8px 16px; background: white; border: 1px solid #e0e0e0; border-radius: 20px; font-size: 13px; color: #666; cursor: pointer; transition: all 0.2s; }
        .quick-btn:hover { background: #f5f5f5; border-color: var(--primary); color: var(--primary); }
        
        /* AI 功能导航区域 (2+4 布局) */
        .ai-welcome-nav { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
        
        /* 区域 A: 核心功能 (3个大按钮) */
        .ai-primary-actions { display: flex; flex-wrap: wrap; gap: 10px; }
        .ai-primary-btn { flex: 1; min-width: 110px; padding: 16px 20px; background: var(--primary); color: white; border: none; border-radius: var(--radius-md); font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.25s ease; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); }
        .ai-primary-btn:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--primary-shadow); }
        .ai-primary-btn:active { transform: translateY(0px); }
        
        /* 区域 B: 辅助功能 (4个中等按钮, 2x2 Grid) */
        .ai-secondary-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
        .ai-secondary-btn { padding: 14px 16px; background: white; color: #333; border: 1px solid #e0e0e0; border-radius: 12px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; }
        .ai-secondary-btn:hover { background: #f8f8f8; border-color: var(--primary); color: var(--primary); transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
        .ai-secondary-btn:active { transform: translateY(0px); }
        
        /* 按钮中的 Emoji 图标 */
        .ai-btn-icon { font-size: 20px; }
        .ai-secondary-btn .ai-btn-icon { font-size: 18px; }
        
        /* 移动端优化 */
        @media (max-width: 600px) {
            .ai-primary-btn { padding: 15px 16px; font-size: 15px; }
            .ai-secondary-btn { padding: 12px 10px; font-size: 13px; }
            .ai-btn-icon { font-size: 18px; }
            .ai-secondary-btn .ai-btn-icon { font-size: 16px; }
        }
        
        /* 私信功能样式 */
        .message-icon { position: relative; font-size: 20px; cursor: pointer; margin-right: 0; transition: all 0.2s; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--text-secondary); }
        .message-icon:hover { background: var(--chip-bg); }
        .message-badge { position: absolute; top: 2px; right: 2px; background: var(--secondary); color: white; width: 16px; height: 16px; border-radius: 50%; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
        
        /* 会话列表页面 */
        .messages-page { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #f5f5f5; z-index: 1000; overflow-y: auto; overscroll-behavior: contain; }
        .messages-page.active { display: block; }
        .messages-header { position: sticky; top: 0; background: var(--glass-bg); color: var(--text-color); padding: 15px; display: flex; align-items: center; z-index: 10; box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--divider); }
        .messages-header .back-btn { font-size: 24px; margin-right: 15px; cursor: pointer; }
        .messages-header h2 { margin: 0; flex: 1; font-size: 18px; }
        .conversation-list { padding: 10px; }
        .conversation-item { background: white; margin-bottom: 10px; padding: 15px; border-radius: 12px; display: flex; gap: 12px; cursor: pointer; transition: all 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
        .conversation-item:hover { background: #f9f9f9; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
        .conversation-item:active { transform: scale(0.98); }
        .conversation-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
        .conversation-info { flex: 1; min-width: 0; }
        .conversation-top { display: flex; justify-content: space-between; margin-bottom: 5px; }
        .conversation-name { font-weight: bold; font-size: 15px; color: #333; }
        .conversation-time { font-size: 12px; color: #999; }
        .conversation-preview { font-size: 14px; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .conversation-item.unread .conversation-preview { font-weight: bold; color: #333; }
        .unread-badge { background: #ff4757; color: white; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; display: flex; align-items: center; justify-content: center; margin-top: 5px; }
        .no-conversations { text-align: center; padding: 60px 20px; color: #999; }
        .no-conversations-icon { font-size: 60px; margin-bottom: 15px; }
        
        /* 💊 第一剂：锁死 body 滚动（聊天页打开时） */
        body.chat-open { overflow: hidden !important; position: fixed !important; width: 100% !important; height: 100% !important; }

        /* 聊天详情页面 */
        .chat-page { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #f5f5f5; z-index: 1001; overflow: hidden; overscroll-behavior: none; touch-action: none; }
        .chat-page.active { display: flex; flex-direction: column; }
        .chat-header { background: var(--glass-bg); color: var(--text-color); padding: 12px 15px 0; display: flex; flex-wrap: wrap; align-items: center; box-shadow: var(--shadow-sm); flex-shrink: 0; border-bottom: 1px solid var(--divider); }
        .chat-header .back-btn { font-size: 24px; margin-right: 12px; cursor: pointer; }
        .chat-header .user-info { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
        .chat-header .user-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
        .chat-header .user-name { font-size: 15px; font-weight: bold; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .chat-header-actions { width: 100%; display: flex; gap: 6px; padding: 8px 0 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
        .chat-header-actions::-webkit-scrollbar { display: none; }
        /* 💊 第三剂：禁止橡皮筋回弹 */
        .chat-messages { flex: 1; overflow-y: auto; padding: 15px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
        .chat-msg { margin-bottom: 15px; display: flex; gap: 10px; }
        .chat-msg.chat-msg-new { animation: slideIn 0.25s ease; }
        .chat-msg.sent { justify-content: flex-end; }
        .chat-msg.received { justify-content: flex-start; }
        .chat-msg-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
        .chat-msg-bubble { max-width: 70%; padding: 12px 16px; border-radius: 18px; font-size: 15px; line-height: 1.4; word-wrap: break-word; }
        .chat-msg.sent .chat-msg-bubble { background: var(--primary); color: white; border-bottom-right-radius: 4px; }
        .chat-msg.received .chat-msg-bubble { background: white; color: var(--text-color); border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
        /* 🔥 推荐卡片样式 */
        .chat-msg-bubble.recommendation-card { 
            padding: 0 !important; 
            background: transparent !important; 
            box-shadow: none !important; 
            max-width: 100% !important;
        }
        .chat-msg-time { font-size: 11px; color: #999; text-align: center; margin: 10px 0; }
        .chat-input-area { background: white; padding: 10px 15px; display: flex; gap: 10px; align-items: center; border-top: 1px solid #e0e0e0; flex-shrink: 0; touch-action: manipulation; }
        .chat-input { flex: 1; padding: 10px 15px; border: 1px solid #e0e0e0; border-radius: 20px; font-size: 15px; outline: none; resize: none; max-height: 100px; touch-action: manipulation; }
        .chat-input:focus { border-color: var(--primary); }
        .chat-send-btn { padding: 10px 20px; background: var(--primary); color: white; border: none; border-radius: var(--radius-md); font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; -webkit-tap-highlight-color: transparent; touch-action: manipulation; font-family: var(--font-body); }
        .chat-send-btn:hover { background: var(--primary-hover); }
        .chat-send-btn:active { transform: scale(0.95); }
        .chat-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }
        .system-tip { text-align: center; margin: 20px 0; animation: fadeIn 0.5s ease; }
        .system-tip-content { display: inline-block; background: linear-gradient(135deg, #fff5e6, #ffe6f0); padding: 20px; border-radius: 16px; box-shadow: 0 4px 15px rgba(255,105,180,0.2); max-width: 80%; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

        /* ========== 🔮 紫晶镜像模式样式 ========== */
        
        /* 镜像模式激活时的背景变身 */
        .chat-drawer.mirror-mode {
            background: linear-gradient(135deg, #1a0a2e 0%, #3d1e6d 50%, #5a2d82 100%);
            transition: background 0.6s ease;
        }
        
        .chat-drawer.mirror-mode .chat-body {
            background: transparent;
        }
        
        /* 镜像模式下的消息气泡 - 毛玻璃效果 */
        .chat-drawer.mirror-mode .msg-bubble {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #fff;
            box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
        }
        
        .chat-drawer.mirror-mode .message.user .msg-bubble {
            background: rgba(138, 43, 226, 0.3);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(186, 85, 211, 0.5);
        }
        
        /* 镜像模式进度指示器 */
        .mirror-progress {
            position: sticky;
            top: 0;
            background: linear-gradient(90deg, #7b2cbf 0%, #c77dff 100%);
            padding: 12px 20px;
            color: white;
            font-size: 13px;
            font-weight: 600;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 10;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            animation: mirrorGlow 2s ease-in-out infinite;
        }
        
        @keyframes mirrorGlow {
            0%, 100% {
                box-shadow: 0 2px 10px rgba(138, 43, 226, 0.3);
            }
            50% {
                box-shadow: 0 2px 20px rgba(186, 85, 211, 0.6);
            }
        }
        
        .mirror-progress-text {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .mirror-progress-icon {
            font-size: 18px;
            animation: rotate 3s linear infinite;
        }
        
        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        
        .mirror-progress-bar {
            flex: 1;
            height: 4px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 2px;
            overflow: hidden;
            margin-left: 15px;
        }
        
        .mirror-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #fff 0%, #c77dff 100%);
            transition: width 0.3s ease;
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        }
        
        .mirror-quit-btn {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            color: white;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            flex-shrink: 0;
            margin-left: 10px;
        }
        .mirror-quit-btn:hover {
            background: rgba(255, 255, 255, 0.4);
            transform: scale(1.1);
        }
        
        /* 人格侧写卡片 */
        .persona-card {
            background: linear-gradient(135deg, #6a0dad 0%, #9370db 100%);
            border-radius: 20px;
            padding: 25px;
            margin: 15px 0;
            color: white;
            box-shadow: 0 8px 30px rgba(138, 43, 226, 0.4);
            animation: cardAppear 0.5s ease;
        }
        
        @keyframes cardAppear {
            from {
                opacity: 0;
                transform: scale(0.95) translateY(20px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }
        
        .persona-card-header {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 15px;
            text-align: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.3);
            padding-bottom: 10px;
        }
        
        .persona-card-content {
            font-size: 14px;
            line-height: 1.8;
            text-align: justify;
            white-space: pre-wrap;
        }
        
        .persona-card-footer {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid rgba(255, 255, 255, 0.3);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .persona-share-btn {
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: white;
            padding: 8px 20px;
            border-radius: 20px;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .persona-share-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.05);
        }
        
        /* 雷达图容器 */
        .radar-chart-container {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 15px;
            padding: 20px;
            margin: 15px 0;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .radar-chart-canvas {
            max-width: 100%;
            height: auto;
        }
        
        /* 🎨 镜像测试报告卡片样式 */
        .report-card {
            background: linear-gradient(135deg, rgba(102, 8, 116, 0.3) 0%, rgba(155, 77, 184, 0.2) 100%);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(224, 170, 255, 0.3);
            border-radius: 16px;
            padding: 20px;
            margin: 15px 0;
            box-shadow: 0 8px 32px rgba(102, 8, 116, 0.4);
            color: #fff;
        }
        
        .report-card-header {
            text-align: center;
            margin-bottom: 15px;
            font-weight: bold;
            font-size: 18px;
            letter-spacing: 1px;
        }
        
        .persona-tag {
            display: inline-block;
            background: rgba(224, 170, 255, 0.3);
            border: 1px solid rgba(224, 170, 255, 0.5);
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 13px;
            margin: 4px;
            font-weight: 500;
            backdrop-filter: blur(5px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }
        
        .report-card-tags {
            text-align: center;
            margin-bottom: 20px;
        }
        
        .report-card-chart {
            position: relative;
            height: 300px;
            width: 100%;
            margin: 20px 0;
        }
        
        .report-card-summary {
            margin-top: 20px;
            font-size: 14px;
            line-height: 1.8;
            opacity: 0.95;
            padding: 15px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 10px;
            border-left: 3px solid rgba(224, 170, 255, 0.8);
            font-style: italic;
        }
        
        /* 🎨 全屏实验报告样式 */
        .mirror-report-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, #0a0015 0%, #1a0525 50%, #2a0a35 100%);
            z-index: 9999;
            overflow-y: auto;
            animation: fadeIn 0.5s ease;
        }
        
        .mirror-report-overlay.active {
            display: block;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .mirror-report-container {
            max-width: 800px;
            margin: 0 auto;
            padding: 40px 20px;
            color: #fff;
        }
        
        .mirror-report-header {
            text-align: center;
            margin-bottom: 50px;
        }
        
        .mirror-report-title {
            font-size: 28px;
            font-weight: bold;
            letter-spacing: 2px;
            margin-bottom: 10px;
            background: linear-gradient(90deg, #e0aaff, #c77dff, #9d4edd);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .mirror-report-subtitle {
            font-size: 14px;
            opacity: 0.7;
            letter-spacing: 1px;
        }
        
        /* 自我画像区域 */
        .mirror-self-section {
            background: rgba(157, 78, 221, 0.1);
            border: 1px solid rgba(224, 170, 255, 0.3);
            border-radius: 16px;
            padding: 30px;
            margin-bottom: 40px;
            backdrop-filter: blur(10px);
        }
        
        .mirror-self-header {
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(224, 170, 255, 0.2);
        }
        
        .mirror-title {
            font-size: 24px;
            font-weight: bold;
            color: #e0aaff;
            margin-bottom: 15px;
            text-align: center;
        }
        
        .mirror-tags {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .mirror-tag {
            background: rgba(224, 170, 255, 0.2);
            border: 1px solid rgba(224, 170, 255, 0.4);
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 500;
        }
        
        .mirror-profile-text {
            font-size: 15px;
            line-height: 1.8;
            opacity: 0.9;
            padding: 20px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 10px;
            border-left: 3px solid rgba(224, 170, 255, 0.6);
        }
        
        /* 匹配信号区域 */
        .mirror-signals-section {
            background: rgba(157, 78, 221, 0.1);
            border: 1px solid rgba(224, 170, 255, 0.3);
            border-radius: 16px;
            padding: 30px;
            margin-bottom: 40px;
            backdrop-filter: blur(10px);
        }
        
        .mirror-signals-header {
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(224, 170, 255, 0.2);
        }
        
        .mirror-signal-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .mirror-signal-item {
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(224, 170, 255, 0.2);
            border-radius: 12px;
            padding: 20px;
            display: flex;
            align-items: flex-start;
            gap: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .mirror-signal-item:hover {
            background: rgba(157, 78, 221, 0.2);
            border-color: rgba(224, 170, 255, 0.5);
            transform: translateY(-2px);
        }
        
        .mirror-signal-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid rgba(224, 170, 255, 0.5);
            flex-shrink: 0;
        }
        
        .mirror-signal-info {
            flex: 1;
        }
        
        .mirror-signal-name {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 8px;
            color: #e0aaff;
        }
        
        .mirror-signal-title {
            font-size: 14px;
            opacity: 0.8;
            margin-bottom: 8px;
            color: #c77dff;
        }
        
        .mirror-signal-score {
            font-size: 20px;
            font-weight: bold;
            color: #9d4edd;
            margin-bottom: 10px;
        }
        
        .mirror-signal-reason {
            font-size: 13px;
            line-height: 1.6;
            opacity: 0.8;
            padding: 10px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            border-left: 2px solid rgba(224, 170, 255, 0.5);
        }
        
        .mirror-signal-loading {
            text-align: center;
            padding: 40px;
            font-size: 16px;
            opacity: 0.7;
        }
        
        .mirror-signal-empty {
            text-align: center;
            padding: 40px;
            font-size: 15px;
            opacity: 0.6;
        }
        
        /* 底部操作按钮 */
        .mirror-report-actions {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 40px;
        }
        
        .mirror-report-btn {
            padding: 12px 30px;
            border-radius: 25px;
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
        }
        
        .mirror-report-btn-primary {
            background: linear-gradient(135deg, #9d4edd, #c77dff);
            color: #fff;
        }
        
        .mirror-report-btn-primary:hover {
            background: linear-gradient(135deg, #c77dff, #e0aaff);
            transform: translateY(-2px);
        }
        
        .mirror-report-btn-secondary {
            background: rgba(224, 170, 255, 0.1);
            color: #e0aaff;
            border: 1px solid rgba(224, 170, 255, 0.3);
        }
        
        .mirror-report-btn-secondary:hover {
            background: rgba(224, 170, 255, 0.2);
            border-color: rgba(224, 170, 255, 0.5);
        }

        /* V20.0: 场景训练动画 */
        @keyframes bounceIn {
            0% { transform: scale(0.3); opacity: 0; }
            50% { transform: scale(1.05); }
            70% { transform: scale(0.9); }
            100% { transform: scale(1); opacity: 1; }
        }

        /* ========== 💘 V23.0: AI 红娘消息样式 ========== */
        .chat-msg.matchmaker {
            justify-content: center !important;
            margin: 20px 10px;
        }
        .matchmaker-bubble {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            background: linear-gradient(135deg, #fff0f5, #ffe4ec);
            border: 1px solid #ffb6c1;
            border-radius: 16px;
            padding: 12px 16px;
            max-width: 85%;
            box-shadow: 0 2px 12px rgba(255, 105, 180, 0.15);
            animation: matchmakerFadeIn 0.4s ease;
        }
        .matchmaker-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            flex-shrink: 0;
            border: 2px solid #ffb6c1;
        }
        .matchmaker-content {
            flex: 1;
            min-width: 0;
        }
        .matchmaker-name {
            font-size: 11px;
            color: #e75480;
            font-weight: bold;
            margin-bottom: 4px;
        }
        .matchmaker-text {
            font-size: 14px;
            color: #333;
            line-height: 1.5;
            word-wrap: break-word;
        }
        .matchmaker-audio {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-top: 8px;
            padding: 6px 14px;
            background: rgba(231, 84, 128, 0.1);
            border-radius: 20px;
            cursor: pointer;
            font-size: 12px;
            color: #e75480;
            transition: background 0.2s;
            -webkit-tap-highlight-color: transparent;
        }
        .matchmaker-audio:active,
        .matchmaker-audio.playing {
            background: rgba(231, 84, 128, 0.2);
        }
        .matchmaker-audio .audio-icon {
            font-size: 14px;
        }
        @keyframes matchmakerFadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* 💘 V24.0: 红娘服务进度条 */
        .matchmaker-progress-bar {
            padding: 6px 16px 8px;
            background: linear-gradient(135deg, #fce4ec, #f8bbd0);
            border-bottom: 1px solid rgba(233, 30, 140, 0.1);
        }
        .matchmaker-progress-track {
            height: 4px;
            background: rgba(233, 30, 140, 0.15);
            border-radius: 2px;
            overflow: hidden;
        }
        .matchmaker-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #e91e8c, #ff6f91);
            border-radius: 2px;
            transition: width 0.6s ease;
        }
        .matchmaker-progress-label {
            font-size: 10px;
            color: #e91e8c;
            text-align: right;
            margin-top: 3px;
            opacity: 0.7;
        }

        /* ========== 📍 约会地点推荐卡片 ========== */
        .ds-distance-hint {
            text-align: center;
            font-size: 12px;
            color: #999;
            margin-bottom: 14px;
            padding-bottom: 10px;
            border-bottom: 1px solid #f0f0f0;
        }
        .ds-card {
            background: #fff;
            border: 1px solid #f0f0f0;
            border-radius: 14px;
            padding: 14px 16px;
            margin-bottom: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
            animation: dsFadeIn 0.35s ease both;
        }
        @keyframes dsFadeIn {
            from { opacity: 0; transform: translateY(12px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .ds-card-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 8px;
        }
        .ds-card-rank {
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: linear-gradient(135deg, #ee7752, #e73c7e);
            color: white;
            font-size: 13px;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .ds-card-title { flex: 1; min-width: 0; }
        .ds-card-name {
            font-size: 15px;
            font-weight: bold;
            color: #333;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .ds-card-category {
            font-size: 11px;
            color: #999;
            margin-top: 1px;
        }
        .ds-card-address {
            font-size: 12px;
            color: #888;
            margin-bottom: 8px;
            line-height: 1.4;
        }
        .ds-card-distances {
            display: flex;
            gap: 16px;
            font-size: 12px;
            color: #666;
            margin-bottom: 8px;
        }
        .ds-card-distances span {
            background: #f7f7f7;
            padding: 3px 10px;
            border-radius: 10px;
        }
        .ds-card-reason {
            font-size: 13px;
            color: #764ba2;
            background: linear-gradient(135deg, rgba(102,8,116,0.06), rgba(147,112,219,0.06));
            padding: 10px 12px;
            border-radius: 10px;
            line-height: 1.5;
            margin-bottom: 8px;
        }
        .ds-card-map-link {
            display: inline-block;
            font-size: 12px;
            color: #e73c7e;
            text-decoration: none;
            font-weight: bold;
        }
        .ds-card-map-link:hover {
            text-decoration: underline;
        }
        .ds-card-promoted {
            border: 1.5px solid #e73c7e;
            background: linear-gradient(135deg, #fff5f7, #fff);
            box-shadow: 0 3px 12px rgba(231,60,126,0.1);
        }
        .ds-card-promoted .ds-card-rank {
            background: linear-gradient(135deg, #e73c7e, #764ba2);
        }
        .ds-promoted-badge {
            display: inline-block;
            font-size: 10px;
            color: white;
            background: linear-gradient(135deg, #e73c7e, #ee7752);
            padding: 1px 6px;
            border-radius: 6px;
            margin-left: 6px;
            vertical-align: middle;
            font-weight: bold;
        }

/* ==================== 💎 紫水晶系统 ==================== */

.crystal-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--chip-bg);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.2s;
}
.crystal-wrap:hover { background: var(--divider); color: var(--primary); }

#walletPanel {
    position: fixed;
    top: 50px;
    right: 10px;
    width: 320px;
    max-width: 92vw;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    color: #333;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    z-index: 9999;
}
.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 1px solid #f0f0f0;
}
.wallet-section {
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
}
.wallet-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #666;
    margin-bottom: 8px;
}
.wallet-balance-big {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    color: var(--primary);
    padding: 8px 0;
    font-family: var(--font-display);
}
.streak-bar {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 10px;
}
.streak-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #aaa;
    font-weight: 600;
}
.streak-dot.filled {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}
.sign-in-btn {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: var(--primary);
    color: #fff;
    margin-bottom: 6px;
    font-family: var(--font-body);
    transition: background 0.2s;
}
.sign-in-btn:hover { background: var(--primary-hover); }
.sign-in-btn.signed {
    background: #e0e0e0;
    color: #999;
    cursor: default;
}
.streak-info {
    text-align: center;
    font-size: 12px;
    color: #999;
}
.invite-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.invite-code {
    flex: 1;
    padding: 8px 12px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}
.copy-btn {
    padding: 8px 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.2s;
}
.copy-btn:hover { background: var(--primary-hover); }
.invite-info {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}
.task-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid #f9f9f9;
}
.task-row.done { color: #bbb; cursor: default; }
.task-reward {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}
.task-row.done .task-reward { color: #ccc; }
.premium-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.premium-item {
    flex: 1;
    min-width: 80px;
    text-align: center;
    padding: 10px 6px;
    background: #f8f4fc;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}
.premium-item:hover { background: #efe4f5; }
.premium-item .price {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--primary);
    font-weight: 700;
}
.wallet-footer {
    text-align: center;
    padding: 12px;
    font-size: 13px;
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
}

/* ============================================================
   Landing Gate - 注册门槛落地页
   ============================================================ */
#landingGate {
    padding: 0 20px;
    animation: gateFadeIn 0.6s ease;
}
@keyframes gateFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.gate-hero {
    text-align: center;
    padding: 60px 0 36px;
}
.gate-logo {
    font-size: 48px;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--primary-light);
    border-radius: 20px;
    line-height: 1;
}
.gate-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 10px;
    letter-spacing: -0.03em;
    font-family: var(--font-display);
    line-height: 1.2;
}
.gate-slogan {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 32px;
    font-weight: 400;
    line-height: 1.5;
}
.gate-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    padding: 20px 10px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}
.gate-stat {
    flex: 1;
    text-align: center;
}
.gate-stat-num {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    font-family: var(--font-display);
}
.gate-stat-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.gate-stat-divider {
    width: 1px;
    height: 28px;
    background: var(--divider);
    flex-shrink: 0;
}

.gate-preview-section {
    margin-top: 32px;
}
.gate-preview-hint {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 16px;
    font-style: italic;
}
.gate-blur-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
    opacity: 0.6;
}
.gate-blur-card {
    background: var(--chip-bg);
    border-radius: var(--radius-md);
    padding: 16px 10px;
    text-align: center;
    border: 1px solid var(--divider);
}
.gate-fake-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin: 0 auto 10px;
}
.gate-fake-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}
.gate-fake-line {
    height: 7px;
    background: var(--divider);
    border-radius: 4px;
}
.gate-blur-posts {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
    opacity: 0.5;
}
.gate-blur-post {
    background: var(--chip-bg);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--divider);
}
.gate-blur-post .gate-fake-line {
    margin-bottom: 5px;
}

.gate-cta-section {
    text-align: center;
    margin-top: 36px;
}
.gate-cta-btn {
    display: inline-block;
    width: 100%;
    max-width: 320px;
    padding: 16px 32px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.02em;
    box-shadow: var(--primary-shadow);
    transition: all 0.25s ease;
    font-family: var(--font-body);
}
.gate-cta-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(124, 92, 252, 0.35);
}
.gate-cta-btn:active {
    transform: scale(0.98);
}
.gate-cta-sub {
    margin: 14px 0 0;
    font-size: 12px;
    color: var(--text-muted);
}

.gate-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 30px;
    padding: 0 4px;
}
.gate-feature {
    text-align: center;
    padding: 18px 4px;
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.gate-feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.gate-feature-icon {
    display: block;
    font-size: 22px;
    margin-bottom: 8px;
}
.gate-feature-text {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.3;
    font-weight: 500;
}

/* Landing Gate — 院校展示 */
.gate-schools {
    margin-top: 36px;
    text-align: center;
    overflow: hidden;
}

.gate-schools-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.gate-schools-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 18px;
}

.gate-schools-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    margin-bottom: 10px;
}

.gate-schools-track {
    display: flex;
    gap: 8px;
    width: max-content;
    animation: gateMarquee 35s linear infinite;
}

.gate-schools-marquee-reverse .gate-schools-track {
    animation: gateMarqueeReverse 38s linear infinite;
}

@keyframes gateMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes gateMarqueeReverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.gate-school-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.gate-school-cn {
    background: var(--primary-light);
    border: 1px solid rgba(124, 92, 252, 0.15);
    color: var(--primary);
}

.gate-school-intl {
    background: #FFF0ED;
    border: 1px solid rgba(232, 115, 90, 0.15);
    color: var(--secondary);
}

.gate-schools-count {
    font-size: 11px;
    color: var(--text-muted);
    margin: 6px 0 0;
}

@media (max-width: 360px) {
    .gate-blur-cards { grid-template-columns: repeat(2, 1fr); }
    .gate-features { grid-template-columns: repeat(2, 1fr); }
    .gate-title { font-size: 26px; }
    .gate-cta-btn { font-size: 15px; padding: 14px 24px; }
}

/* ============================================================
   UK Landing Gate — 英区落地页组件
   ============================================================ */
.uk-skyline-bg { position: fixed; bottom: 0; left: 0; right: 0; height: 220px; pointer-events: none; z-index: 0; opacity: 0.04; display: flex; justify-content: center; }
.uk-skyline-bg svg { width: 100%; max-width: 800px; height: auto; }
.uk-page { max-width: 440px; margin: 0 auto; padding: 0 20px; position: relative; }
.uk-hero { text-align: center; padding: 40px 0 32px; position: relative; z-index: 1; }
.uk-hero-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: #E8EEF5; border: 1px solid rgba(27,58,92,0.1); border-radius: 20px; font-size: 12px; font-weight: 500; color: #1B3A5C; margin-bottom: 20px; }
.uk-hero-title { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: #1A1A1A; line-height: 1.25; letter-spacing: -0.03em; margin: 0 0 12px; }
.uk-hero-title em { font-style: normal; color: #1B3A5C; }
.uk-hero-sub { font-size: 15px; color: #5A6B7D; line-height: 1.6; margin: 0 0 6px; font-weight: 400; }
.uk-hero-sub-en { font-size: 13px; color: #9AABB8; font-style: italic; margin: 0; }
.uk-stats { display: flex; justify-content: center; align-items: center; gap: 0; background: #FFFFFF; border-radius: 16px; padding: 22px 10px; border: 1px solid rgba(27,58,92,0.06); box-shadow: var(--shadow-sm); margin-top: 28px; }
.uk-stat { flex: 1; text-align: center; }
.uk-stat-num { display: block; font-size: 26px; font-weight: 700; color: #1B3A5C; line-height: 1.2; font-family: var(--font-display); }
.uk-stat-label { display: block; font-size: 11px; color: #9AABB8; margin-top: 4px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; }
.uk-stat-divider { width: 1px; height: 28px; background: #E8E4DF; flex-shrink: 0; }

.uk-proof { margin-top: 36px; }
.uk-proof-title { text-align: center; font-size: 13px; color: #9AABB8; margin: 0 0 16px; font-style: italic; }
.uk-proof-cards { display: flex; flex-direction: column; gap: 12px; }
.uk-proof-card { background: #FFFFFF; border-radius: 14px; padding: 18px 20px; border: 1px solid rgba(27,58,92,0.06); box-shadow: 0 1px 3px rgba(0,0,0,0.03); position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.uk-proof-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.uk-proof-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.uk-proof-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.uk-proof-meta { flex: 1; min-width: 0; }
.uk-proof-school { font-size: 12px; font-weight: 600; color: #1B3A5C; }
.uk-proof-time { font-size: 11px; color: #9AABB8; }
.uk-proof-text { font-size: 14px; color: #1A1A1A; line-height: 1.6; }
.uk-proof-text .highlight { color: #8B2332; font-weight: 500; }
.uk-proof-footer { display: flex; align-items: center; gap: 14px; margin-top: 10px; font-size: 12px; color: #9AABB8; }
.uk-proof-footer span { display: inline-flex; align-items: center; gap: 4px; }
.uk-proof-blur { filter: blur(4px); user-select: none; pointer-events: none; opacity: 0.5; }

.uk-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 36px; }
.uk-feature { background: #FFFFFF; border-radius: 14px; padding: 22px 16px; border: 1px solid rgba(27,58,92,0.06); box-shadow: 0 1px 3px rgba(0,0,0,0.03); transition: all 0.2s ease; }
.uk-feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.uk-feature-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.uk-feature-icon.blue { background: #E8EEF5; }
.uk-feature-icon.wine { background: #F5E8EA; }
.uk-feature-icon.warm { background: #FFF4E8; }
.uk-feature-icon.sage { background: #E8F2EE; }
.uk-feature-name { font-size: 15px; font-weight: 600; color: #1A1A1A; margin-bottom: 4px; }
.uk-feature-desc { font-size: 12px; color: #5A6B7D; line-height: 1.5; }

.uk-lifestyle { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.uk-lifestyle-tag { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; background: #FFFFFF; border: 1px solid #E8E4DF; border-radius: 20px; font-size: 12px; color: #5A6B7D; font-weight: 500; transition: all 0.15s ease; }
.uk-lifestyle-tag:hover { border-color: #1B3A5C; color: #1B3A5C; }

.uk-schools { margin-top: 40px; text-align: center; overflow: hidden; }
.uk-schools-header { font-size: 16px; font-weight: 600; color: #1A1A1A; margin: 0 0 4px; letter-spacing: -0.01em; }
.uk-schools-sub { font-size: 12px; color: #9AABB8; margin: 0 0 20px; }
.uk-g5 { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.uk-g5-tag { display: inline-flex; align-items: center; padding: 8px 16px; background: #1B3A5C; color: #FFFFFF; border-radius: 20px; font-size: 13px; font-weight: 600; letter-spacing: 0.3px; white-space: nowrap; }
.uk-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%); margin-bottom: 8px; }
.uk-marquee-track { display: flex; gap: 8px; width: max-content; animation: ukMarquee 40s linear infinite; }
.uk-marquee-reverse .uk-marquee-track { animation: ukMarqueeReverse 42s linear infinite; }
@keyframes ukMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes ukMarqueeReverse { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
.uk-school-tag { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 500; white-space: nowrap; flex-shrink: 0; letter-spacing: 0.3px; }
.uk-school-uk { background: #E8EEF5; border: 1px solid rgba(27,58,92,0.12); color: #1B3A5C; }
.uk-school-cn { background: #F5F2ED; border: 1px solid #E8E4DF; color: #5A6B7D; }
.uk-schools-note { font-size: 11px; color: #9AABB8; margin: 8px 0 0; }

.uk-cta { text-align: center; margin-top: 40px; padding: 36px 0; position: relative; }
.uk-cta-btn { display: inline-block; width: 100%; max-width: 320px; padding: 16px 32px; background: #1B3A5C; color: #FFFFFF; border: none; border-radius: var(--radius-md); font-size: 16px; font-weight: 600; cursor: pointer; letter-spacing: 0.02em; box-shadow: 0 4px 14px rgba(27,58,92,0.25); transition: all 0.25s ease; font-family: var(--font-body); }
.uk-cta-btn:hover { background: #152E4A; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(27,58,92,0.35); }
.uk-cta-btn:active { transform: scale(0.98); }
.uk-cta-sub { margin: 14px 0 0; font-size: 12px; color: #9AABB8; }
.uk-cta-sub code { background: #E8EEF5; padding: 2px 6px; border-radius: 4px; font-size: 11px; color: #1B3A5C; font-weight: 600; }

.uk-trust { text-align: center; margin-top: 40px; padding: 24px 0 8px; border-top: 1px solid #E8E4DF; }
.uk-trust-items { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.uk-trust-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #9AABB8; }
.uk-trust-item svg { flex-shrink: 0; }
.uk-footer { text-align: center; padding: 20px 0 32px; font-size: 11px; color: #9AABB8; }
.uk-footer a { color: #9AABB8; text-decoration: none; }
.uk-footer a:hover { color: #1B3A5C; }
.uk-accent-line { width: 40px; height: 3px; background: linear-gradient(90deg, #1B3A5C, #8B2332); border-radius: 2px; margin: 0 auto 20px; }

@media (max-width: 360px) {
    .uk-hero-title { font-size: 28px; }
    .uk-features { grid-template-columns: 1fr; }
    .uk-g5 { gap: 6px; }
    .uk-g5-tag { font-size: 12px; padding: 6px 12px; }
}

/* ============================================================
   US Landing Page — 美式校园风
   Navy #1C2B5A + Crimson #B31B1B + Warm White
   ============================================================ */
.us-skyline-bg { position: fixed; bottom: 0; left: 0; width: 100%; opacity: 0.04; pointer-events: none; z-index: 0; }
.us-page { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; padding: 0 20px 40px; }
.us-hero { text-align: center; padding: 50px 0 30px; }
.us-hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(28,43,90,0.06); color: #1C2B5A; font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 20px; margin-bottom: 16px; letter-spacing: 0.3px; }
.us-hero-title { font-family: 'Playfair Display', Georgia, serif; font-size: 36px; font-weight: 700; color: #1C2B5A; line-height: 1.25; margin: 0 0 12px; }
.us-hero-title em { font-style: normal; color: #B31B1B; }
.us-hero-sub { font-size: 15px; color: #4A5568; margin: 0 0 4px; }
.us-hero-sub-en { font-size: 12px; color: #8E99A4; letter-spacing: 0.5px; margin: 0 0 24px; }
.us-stats { display: flex; justify-content: center; align-items: center; gap: 16px; }
.us-stat { text-align: center; }
.us-stat-num { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 22px; font-weight: 700; color: #1C2B5A; }
.us-stat-label { font-size: 11px; color: #8E99A4; letter-spacing: 0.3px; }
.us-stat-divider { width: 1px; height: 28px; background: #E8E5E0; }

.us-proof { margin-top: 32px; }
.us-proof-title { font-size: 14px; color: #4A5568; text-align: center; margin-bottom: 16px; }
.us-proof-cards { display: flex; flex-direction: column; gap: 12px; }
.us-proof-card { background: #FFF; border: 1px solid rgba(28,43,90,0.06); border-radius: 14px; padding: 16px; transition: box-shadow 0.2s; }
.us-proof-card:hover { box-shadow: 0 4px 20px rgba(28,43,90,0.08); }
.us-proof-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.us-proof-avatar { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
.us-proof-school { font-size: 13px; font-weight: 600; color: #1C2B5A; }
.us-proof-time { font-size: 11px; color: #8E99A4; }
.us-proof-text { font-size: 14px; line-height: 1.7; color: #333; }
.us-proof-text .highlight { color: #B31B1B; font-weight: 600; }
.us-proof-footer { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: #8E99A4; }
.us-proof-footer span { display: inline-flex; align-items: center; gap: 4px; }
.us-proof-blur { filter: blur(3px); opacity: 0.5; pointer-events: none; }

.us-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.us-feature { background: #FFF; border: 1px solid rgba(28,43,90,0.06); border-radius: 14px; padding: 18px 14px; text-align: center; transition: transform 0.2s; }
.us-feature:hover { transform: translateY(-2px); }
.us-feature-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
.us-feature-icon.navy { background: rgba(28,43,90,0.08); }
.us-feature-icon.crimson { background: rgba(179,27,27,0.08); }
.us-feature-icon.amber { background: rgba(212,136,15,0.08); }
.us-feature-icon.sage { background: rgba(45,106,79,0.08); }
.us-feature-name { font-size: 14px; font-weight: 600; color: #1C2B5A; margin-bottom: 4px; }
.us-feature-desc { font-size: 12px; color: #8E99A4; }

.us-lifestyle { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.us-lifestyle-tag { font-size: 12px; padding: 6px 12px; border-radius: 20px; background: rgba(28,43,90,0.04); color: #4A5568; border: 1px solid rgba(28,43,90,0.08); letter-spacing: 0.2px; }

.us-schools { text-align: center; margin-top: 36px; overflow: hidden; }
.us-schools-header { font-family: 'Playfair Display', Georgia, serif; font-size: 20px; font-weight: 700; color: #1C2B5A; margin: 0 0 6px; }
.us-schools-sub { font-size: 13px; color: #8E99A4; margin: 0 0 18px; }
.us-ivy { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; }
.us-ivy-tag { font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 20px; background: linear-gradient(135deg, rgba(28,43,90,0.08), rgba(179,27,27,0.06)); color: #1C2B5A; border: 1px solid rgba(28,43,90,0.12); letter-spacing: 0.3px; }
.us-marquee { overflow: hidden; margin-bottom: 8px; }
.us-marquee-track { display: flex; gap: 8px; animation: us-scroll 35s linear infinite; width: max-content; }
.us-marquee-reverse .us-marquee-track { animation-direction: reverse; animation-duration: 40s; }
@keyframes us-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.us-school-tag { font-size: 12px; padding: 6px 12px; border-radius: 16px; white-space: nowrap; }
.us-school-tag.us-school-us { background: rgba(28,43,90,0.06); color: #1C2B5A; border: 1px solid rgba(28,43,90,0.1); }
.us-school-tag.us-school-cn { background: rgba(179,27,27,0.05); color: #B31B1B; border: 1px solid rgba(179,27,27,0.1); }
.us-schools-note { font-size: 12px; color: #8E99A4; margin-top: 10px; }

.us-cta { text-align: center; margin-top: 36px; }
.us-cta-btn { width: 100%; padding: 16px; background: linear-gradient(135deg, #1C2B5A, #2A4080); color: #FFF; font-size: 16px; font-weight: 700; border: none; border-radius: 14px; cursor: pointer; letter-spacing: 0.5px; box-shadow: 0 4px 20px rgba(28,43,90,0.3); transition: transform 0.2s, box-shadow 0.2s; }
.us-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(28,43,90,0.4); }
.us-cta-sub { font-size: 12px; color: #8E99A4; margin-top: 10px; }
.us-cta-sub code { background: rgba(28,43,90,0.06); padding: 2px 6px; border-radius: 4px; font-size: 11px; color: #1C2B5A; }

.us-trust { margin-top: 32px; }
.us-trust-items { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.us-trust-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #8E99A4; }
.us-trust-item svg { flex-shrink: 0; }
.us-footer { text-align: center; padding: 20px 0 32px; font-size: 11px; color: #8E99A4; }
.us-footer a { color: #8E99A4; text-decoration: none; }
.us-footer a:hover { color: #1C2B5A; }
.us-accent-line { width: 40px; height: 3px; background: linear-gradient(90deg, #1C2B5A, #B31B1B); border-radius: 2px; margin: 0 auto 20px; }

@media (max-width: 360px) {
    .us-hero-title { font-size: 28px; }
    .us-features { grid-template-columns: 1fr; }
    .us-ivy { gap: 6px; }
    .us-ivy-tag { font-size: 12px; padding: 6px 12px; }
}

/* ============================================================
   MatchDrop - 每周匹配日
   ============================================================ */
.md-waiting {
    text-align: center;
    padding: 40px 20px;
}
.md-waiting-icon {
    font-size: 56px;
    margin-bottom: 12px;
    animation: gatePulse 3s ease-in-out infinite;
}
.md-waiting-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-color, #fff);
    margin-bottom: 8px;
}
.md-waiting-subtitle {
    font-size: 13px;
    color: var(--text-muted, rgba(255,255,255,0.5));
    line-height: 1.7;
    max-width: 320px;
    margin: 0 auto 28px;
}
.md-countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
}
.md-countdown-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    min-width: 70px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.md-countdown-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
    font-family: var(--font-display);
}
.md-countdown-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.md-countdown-sep {
    font-size: 24px;
    font-weight: 700;
    color: var(--divider);
}
.md-tips {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 320px;
    margin: 0 auto;
}
.md-tip {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--chip-bg);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    text-align: left;
}

.md-match-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.md-match-header {
    margin-bottom: 16px;
}
.md-match-badge {
    display: inline-block;
    padding: 4px 14px;
    background: linear-gradient(135deg, rgba(233,30,99,0.15), rgba(124,77,255,0.15));
    border: 1px solid rgba(233,30,99,0.25);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #ff6090;
}
.md-match-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.md-match-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(233,30,99,0.3);
}
.md-match-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}
.md-match-compat {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}
.md-match-reasons {
    background: var(--chip-bg);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 16px;
}
.md-match-reasons-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.md-match-reasons ul {
    margin: 0;
    padding-left: 18px;
}
.md-match-reasons li {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 4px;
}
.md-match-actions {
    display: flex;
    gap: 10px;
}
.md-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}
.md-btn:active { transform: scale(0.97); }
.md-btn-primary {
    background: var(--primary);
    color: #fff;
}
.md-btn-secondary {
    background: var(--chip-bg);
    color: var(--text-secondary);
    border: 1px solid var(--divider);
}
.md-btn-like {
    background: var(--secondary);
    color: #fff;
}
.md-btn-skip {
    background: var(--chip-bg);
    color: var(--text-muted);
    border: 1px solid var(--divider);
}
.md-match-school {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.md-match-react {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}
.md-match-reacted {
    text-align: center;
    padding: 10px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
}

.md-history {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--divider);
}
.md-history-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.md-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 6px;
}
.md-history-item:active {
    background: var(--chip-bg);
}
.md-history-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.md-history-info { flex: 1; }
.md-history-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}
.md-history-date {
    font-size: 11px;
    color: var(--text-muted);
}
.md-history-compat {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

/* ==================== 匿名意见箱 Modal ==================== */

.fb-modal {
    position: relative;
    background: var(--glass-bg);
    border-radius: var(--radius-xl);
    padding: 32px 24px 24px;
    width: 92%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
}

.fb-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s;
}
.fb-close:hover { color: var(--text-color); background: var(--chip-bg); }

.fb-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 6px;
    font-family: var(--font-display);
}

.fb-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;
}

.fb-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.fb-cat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: var(--chip-bg);
    border: 2px solid var(--divider);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}
.fb-cat:hover { border-color: rgba(124, 92, 252, 0.3); }
.fb-cat.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.fb-textarea {
    width: 100%;
    min-height: 120px;
    max-height: 200px;
    background: var(--chip-bg);
    border: 1.5px solid var(--divider);
    border-radius: var(--radius-md);
    padding: 14px;
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: var(--font-body);
}
.fb-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.1); }
.fb-textarea::placeholder { color: var(--text-muted); }

.fb-char-count {
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    margin: 4px 4px 12px 0;
}

.fb-contact {
    width: 100%;
    background: var(--chip-bg);
    border: 1.5px solid var(--divider);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    color: var(--text-color);
    font-size: 14px;
    outline: none;
    margin-bottom: 16px;
    box-sizing: border-box;
    font-family: var(--font-body);
    transition: border-color 0.2s;
}
.fb-contact:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.1); }
.fb-contact::placeholder { color: var(--text-muted); }

.fb-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
}
.fb-submit:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--primary-shadow); }
.fb-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.fb-anon-hint {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}
