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

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

/* === 1. 默认皮肤：紫晶之恋 === */
:root {
    --primary: #660874;
    --primary-shadow: 0 0 15px rgba(102, 8, 116, 0.5);
    --secondary: #9b4db8;
    --bg-image: linear-gradient(135deg, #1a0025 0%, #4a0555 100%);
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --navbar-bg: rgba(0, 0, 0, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --card-header-color: #d8b4e2;
    --card-footer-color: rgba(255, 255, 255, 0.5);
    --divider: rgba(255, 255, 255, 0.1);
    --tab-border: rgba(255, 255, 255, 0.3);
    --tab-text: rgba(255, 255, 255, 0.6);
    --search-bg: rgba(255, 255, 255, 0.1);
    --search-border: rgba(255, 255, 255, 0.3);
    --search-placeholder: rgba(255, 255, 255, 0.5);
    --chip-bg: rgba(255, 255, 255, 0.2);
    --hot-comment-color: rgba(255, 255, 255, 0.7);
    --hot-comment-user: #ffcc00;
    --select-option-bg: #4a0555;
}

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

/* === 全局样式应用 === */
body {
    background: var(--bg-image);
    color: var(--text-color);
    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: 15px 20px; background: var(--navbar-bg); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--divider); transition: background 0.5s ease; }
        .brand { font-family: 'Times New Roman', serif; font-size: 20px; font-weight: bold; letter-spacing: 1px; }
        .nav-right { display: flex; align-items: center; gap: 15px; }
        .notification-icon { position: relative; cursor: pointer; font-size: 22px; color: var(--text-color); }
        .notification-badge { position: absolute; top: -5px; right: -8px; background: #ff4757; color: #fff; font-size: 10px; font-weight: bold; padding: 2px 5px; border-radius: 10px; min-width: 16px; text-align: center; }
        .user-area { display: flex; align-items: center; cursor: pointer; font-size: 14px; color: var(--text-color); }
        .avatar-small { width: 32px; height: 32px; border-radius: 50%; margin-right: 8px; object-fit: cover; border: 2px solid rgba(255,255,255,0.8); 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: center; margin: 20px 0; padding: 0 10px; }
        .tab-btn { background: transparent; border: 1px solid var(--tab-border); color: var(--tab-text); padding: 10px 15px; cursor: pointer; font-size: 15px; transition: all 0.3s; flex: 1; text-align: center; border-left: none; }
        .tab-btn.active { background: var(--primary); color: white; border-color: var(--primary); font-weight: bold; box-shadow: var(--primary-shadow); }
        .tab-btn:first-child { border-radius: 20px 0 0 20px; border-left: 1px solid var(--tab-border); }
        .tab-btn:last-child { border-radius: 0 20px 20px 0; }
        
        .container { max-width: 600px; margin: 0 auto; padding: 0 15px; }
        
        .card { background: var(--glass-bg); backdrop-filter: blur(12px); border: 1px solid var(--glass-border); border-radius: 16px; padding: 20px; margin-bottom: 15px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); animation: fadeIn 0.4s ease; transition: opacity 0.5s; cursor: pointer; }
        @keyframes fadeIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
        
        .card-header { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; color: var(--card-header-color); }
        .card-body { font-size: 16px; line-height: 1.6; margin-bottom: 10px; white-space: pre-wrap; }
        .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: 10px; }
        
        .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; }
        .action-btn { cursor: pointer; margin-left: 15px; font-size: 13px; color: var(--card-header-color); display: flex; align-items: center; transition: all 0.2s; }
        .action-btn:active { transform: scale(0.9); }
        .action-btn.liked { color: #ff5e57; font-weight: bold; }
        .action-btn[id^="fav-"] { filter: grayscale(100%); }
        .action-btn.favorited { color: #ffd700; filter: none; font-weight: bold; }
        
        /* 优化评论弹窗 - 类似小红书/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: linear-gradient(135deg, var(--primary) 0%, #8b0aa5 100%); color: white; border: none; padding: 8px 16px; border-radius: 20px; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 5px; transition: all 0.3s; box-shadow: 0 2px 8px rgba(102, 8, 116, 0.3); }
        .share-btn:active { transform: scale(0.95); }
        
        .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 #ffcc00; background: rgba(255, 215, 0, 0.1); position: relative; }
        .event-highlight::before { content: "🔥 热门活动"; position: absolute; top: -10px; left: 15px; background: #ffcc00; color: #000; font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: bold; }
        .event-cover { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
        .event-title { font-size: 18px; font-weight: bold; margin-bottom: 5px; color: #fff; }
        .event-meta { font-size: 12px; color: #d8b4e2; 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: 12px; overflow: hidden; color: var(--text-color); position: relative; transition: transform 0.2s; cursor: pointer; }
        .user-card:active { transform: scale(0.98); }
        .user-card img { width: 100%; height: 200px; object-fit: cover; background: rgba(0,0,0,0.2); }
        .user-info { padding: 10px; }
        .user-name { font-weight: bold; font-size: 15px; margin-bottom: 4px; color: var(--text-color); }
        .user-tags { font-size: 10px; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 4px; }
        .tag { background: rgba(255,255,255,0.1); padding: 2px 6px; border-radius: 4px; }
        .vip-crown { color: #ffd700; margin-left: 4px; text-shadow: 0 0 5px rgba(255,215,0,0.5); }
        .card-message-btn { position: absolute; bottom: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #ee7752, #e73c7e); color: white; border: none; font-size: 18px; cursor: pointer; box-shadow: 0 2px 10px rgba(238,119,82,0.4); transition: all 0.3s; display: flex; align-items: center; justify-content: center; z-index: 10; }
        .card-message-btn:hover { transform: scale(1.1); box-shadow: 0 4px 15px rgba(238,119,82,0.6); }
        .card-message-btn:active { transform: scale(0.95); }
        .mbti-badge { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.6); color: #00ffcc; font-size: 10px; padding: 3px 8px; border-radius: 10px; font-weight: bold; backdrop-filter: blur(4px); }
        
        /* 找搭子相关样式 */
        .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(--tab-border); border-radius: 20px; color: var(--text-color); font-size: 13px; cursor: pointer; white-space: nowrap; transition: all 0.3s; }
        .filter-chip.active { background: var(--primary); border-color: var(--primary); font-weight: bold; }
        .activity-card { background: var(--glass-bg); backdrop-filter: blur(12px); border: 1px solid var(--glass-border); border-radius: 16px; padding: 16px; margin-bottom: 12px; color: var(--text-color); position: relative; }
        .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 rgba(255,255,255,0.3); }
        .activity-user-info { flex: 1; }
        .activity-username { font-size: 14px; font-weight: bold; margin-bottom: 2px; }
        .activity-time { font-size: 11px; color: rgba(255,255,255,0.6); }
        .activity-category { position: absolute; top: 12px; right: 12px; background: var(--primary); color: #fff; font-size: 11px; padding: 4px 10px; border-radius: 12px; font-weight: bold; }
        .activity-title { font-size: 16px; font-weight: bold; margin-bottom: 8px; color: #fff; }
        .activity-content { font-size: 14px; line-height: 1.5; margin-bottom: 10px; color: rgba(255,255,255,0.9); }
        .activity-meta { display: flex; gap: 15px; font-size: 12px; color: rgba(255,255,255,0.7); padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.1); }
        .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: 20px; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.1); color: #fff; font-size: 14px; }
        .activity-search-input::placeholder { color: rgba(255,255,255,0.5); }
        
        .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: 30px; background: #fff; color: var(--primary); width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 4px 20px rgba(0,0,0,0.4); cursor: pointer; z-index: 100; transition: transform 0.2s; }
        
        .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); z-index: 300; justify-content: center; align-items: center; overflow-y: auto; -webkit-overflow-scrolling: touch; }
        .modal-content { background: white; width: 85%; max-width: 320px; max-height: 85vh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 25px; border-radius: 20px; color: #333; position: relative; animation: popIn 0.3s ease; margin: auto; }
        @keyframes popIn { from{transform:scale(0.8);opacity:0} to{transform:scale(1);opacity:1} }
        .close-modal { position: absolute; top: 15px; right: 20px; font-size: 24px; cursor: pointer; color: #999; }
        h3 { margin-top: 0; text-align: center; color: var(--primary); }
        .input-group { margin-bottom: 15px; }
        label { display: block; font-size: 12px; color: #666; margin-bottom: 5px; }
        input, textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 10px; box-sizing: border-box; font-size: 14px; background: #f8f9fa; }
        .btn-block { width: 100%; padding: 12px; background: var(--primary); color: white; border: none; border-radius: 10px; font-size: 16px; font-weight: bold; cursor: pointer; }
        .btn-danger { background: #ff4757; 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; opacity:0.6; font-size: 14px; }

        /* 底部操作菜单 */
        #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 15px; display: flex; gap: 8px; align-items: center; }
        .search-input { flex: 1; padding: 14px 18px; border: 1px solid var(--search-border); background: var(--search-bg); color: var(--text-color); border-radius: 25px; font-size: 16px; outline: none; transition: all 0.3s; }
        .search-input::placeholder { color: var(--search-placeholder); }
        .search-btn { padding: 14px 18px; background: var(--primary); color: #fff; border: none; border-radius: 25px; font-size: 15px; font-weight: bold; cursor: pointer; white-space: nowrap; transition: all 0.3s; box-shadow: var(--primary-shadow); }
        .search-btn:active { transform: scale(0.95); }
        .sort-select { padding: 12px 8px; border: 1px solid var(--search-border); background: var(--search-bg); color: var(--text-color); border-radius: 20px; font-size: 13px; cursor: pointer; outline: none; min-width: 75px; }
        .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(102, 8, 116, 0.05) !important; }
        .comment-sort-btn.active { background: rgba(102, 8, 116, 0.1) !important; border-color: rgba(102, 8, 116, 0.3) !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, #667eea 0%, #764ba2 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;
            gap: 8px;
            margin-top: 16px;
            align-items: stretch;
        }
        
        .user-action-btn {
            flex: 1;
            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;
        }
        
        .user-action-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }
        
        .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: #667eea;
            border-bottom-color: #667eea;
        }
        
        /* 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: bold; 
            color: #667eea;
            margin-bottom: 4px;
        }
        
        .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: 80px; right: 20px; width: 60px; height: 60px; background: linear-gradient(135deg, #660874, #9b4db8); border-radius: 50%; box-shadow: 0 4px 20px rgba(102,8,116,0.4); cursor: pointer; z-index: 999; display: flex; align-items: center; justify-content: center; transition: all 0.3s; animation: float 3s ease-in-out infinite; }
        .ai-bubble:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(102,8,116,0.6); }
        .ai-bubble:active { transform: scale(0.95); }
        .ai-avatar { font-size: 32px; animation: pulse 2s ease-in-out infinite; }
        .ai-bubble .badge { position: absolute; top: -5px; right: -5px; background: #ff4757; color: white; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: bold; display: flex; align-items: center; justify-content: center; border: 2px solid white; }
        @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: 20px 20px 0 0; box-shadow: 0 -4px 30px rgba(0,0,0,0.2); z-index: 999; transform: translateY(100%); transition: transform 0.3s ease; display: flex; flex-direction: column; }
        .chat-drawer.active { transform: translateY(0); }
        
        .drawer-header { padding: 20px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, #660874, #9b4db8); color: white; border-radius: 20px 20px 0 0; }
        .ai-info h3 { margin: 0 0 5px 0; font-size: 18px; }
        .ai-info p { margin: 0; font-size: 12px; opacity: 0.9; }
        .status-dot { display: inline-block; width: 8px; height: 8px; background: #4ade80; border-radius: 50%; margin-right: 5px; animation: blink 2s ease-in-out infinite; }
        @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
        .close-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.2); color: white; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
        .close-btn:hover { background: rgba(255,255,255,0.3); transform: scale(1.1); }
        
        .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: white; color: #333; box-shadow: 0 2px 8px rgba(0,0,0,0.1); border-bottom-left-radius: 4px; }
        .message.user .msg-bubble { background: linear-gradient(135deg, #660874, #9b4db8); color: white; box-shadow: 0 2px 8px rgba(102,8,116,0.3); 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: linear-gradient(135deg, #660874, #9b4db8); 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 { transform: scale(1.1); box-shadow: 0 4px 12px rgba(102,8,116,0.3); }
        .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: 18px 20px; background: linear-gradient(135deg, #660874, #9b4db8); color: white; border: none; border-radius: 16px; font-size: 16px; font-weight: bold; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 12px rgba(102,8,116,0.2); }
        .ai-primary-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(102,8,116,0.35); }
        .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: 22px; cursor: pointer; margin-right: 15px; transition: all 0.3s; }
        .message-icon:hover { transform: scale(1.1); }
        .message-badge { position: absolute; top: -5px; right: -8px; background: #ff4757; color: white; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: bold; 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: linear-gradient(135deg, #660874, #9b4db8); color: white; padding: 15px; display: flex; align-items: center; z-index: 10; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
        .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: linear-gradient(135deg, #660874, #9b4db8); color: white; padding: 15px; display: flex; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.1); flex-shrink: 0; }
        .chat-header .back-btn { font-size: 24px; margin-right: 15px; cursor: pointer; }
        .chat-header .user-info { flex: 1; display: flex; align-items: center; gap: 10px; }
        .chat-header .user-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
        .chat-header .user-name { font-size: 16px; font-weight: bold; }
        /* 💊 第三剂：禁止橡皮筋回弹 */
        .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: linear-gradient(135deg, #660874, #9b4db8); color: white; border-bottom-right-radius: 4px; }
        .chat-msg.received .chat-msg-bubble { background: white; color: #333; border-bottom-left-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
        /* 🔥 推荐卡片样式 */
        .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: linear-gradient(135deg, #660874, #9b4db8); color: white; border: none; border-radius: 20px; font-size: 15px; font-weight: bold; cursor: pointer; transition: transform 0.15s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
        .chat-send-btn:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(102,8,116,0.3); }
        .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);
        }
        
        /* 人格侧写卡片 */
        .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;
        }
