@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;800&display=swap');
    :root {
        --bg-white: #ffffff;
        --text-main: #5a4b50;
        --text-light: #cbaeb4;
        --icon-gray: #ff9eaa;
        --widget-bg: rgba(255, 255, 255, 0.85);
        --app-bg: #fff5f7;
        --shadow: 0 6px 16px rgba(255, 182, 193, 0.25);
        --border-light: rgba(255, 182, 193, 0.3);
        --theme-pink: #ffb6c1;
        --theme-pink-light: #fff0f5;
        --theme-pink-dark: #ff9eaa;
        --theme-pink-shadow: rgba(255, 182, 193, 0.35);
        --theme-text-dark: #5a4b50;
        --theme-card-bg: rgba(255, 255, 255, 0.65);
        --theme-border: rgba(255, 182, 193, 0.4);
    }
html {
    margin: 0;
    padding: 0;
    height: 100%;
}
    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    * {
        scrollbar-width: none;
    }
    body {
        margin: 0;
        padding: 0;
        background-color: var(--bg-white);
        display: flex;
        justify-content: center;
        align-items: flex-start;
        min-height: 100vh;
        min-height: 100dvh; /* 新增：适配移动端动态视口 */
    }
    .screen {
        width: 100%;
        max-width: 430px;
        height: 100vh;
        height: 100dvh; /* 新增：适配移动端动态视口 */
margin: 0;
padding: 0;
        background-color: var(--bg-white);
        background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 25C20 25 14 21 14 16.2C14 13.8 15.6 12.2 18 12.2C19.2 12.2 20 13 20 13C20 13 20.8 12.2 22 12.2C24.4 12.2 26 13.8 26 16.2C26 21 20 25 20 25Z' fill='%23ffe6ea'/%3E%3C/svg%3E");
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    .status-bar {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 24px;
        font-size: 14px;
        font-weight: 500;
        color: var(--text-main);
        z-index: 9999;
        pointer-events: none;
    }
    .status-left, .status-right {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .status-left .real-time {
        font-weight: 800; 
    }
    .icon-signal { width: 16px; height: 14px; fill: var(--text-main); }
    .battery-container {
        width: 22px; height: 11px;
        border: 1px solid var(--text-main);
        border-radius: 3px;
        padding: 1px;
        position: relative;
    }
    .battery-container::after {
        content: ''; position: absolute;
        right: -3px; top: 2px; width: 2px; height: 5px;
        background: var(--text-main); border-radius: 0 2px 2px 0;
    }
    .battery-level {
        height: 100%; background: var(--text-main);
        border-radius: 1px; width: 100%;
    }
    .content {
        flex: 1;
        overflow-y: auto;
        padding: 48px 20px 100px 20px;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    .content::-webkit-scrollbar { display: none; }
    .music-widget {
        width: 100%; height: 180px;
        border-radius: 24px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 6px 16px rgba(255, 255, 255, 0.8);
        color: var(--text-main);
        display: flex; flex-direction: column; justify-content: space-between;
        padding: 16px;
        border: 1px solid var(--border-light);
        cursor: pointer;
        background-color: #ffffff;
    }
    .music-bg {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        background-image: url('https://images.unsplash.com/photo-1478265409131-1f65c88f965c?auto=format&fit=crop&w=600&q=80');
        background-size: 100%; background-position: center; background-repeat: no-repeat;
         z-index: 1;
    }
    .music-widget::before {
        content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(255, 255, 255, 0.6);
        z-index: 2;
    }
    .music-content { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
    .music-top { display: flex; justify-content: space-between; font-size: 13px; color: #777777; filter: saturate(0); }
    .music-top-left { display: flex; align-items: center; gap: 4px; }
    .music-middle { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: -10px;}
    .music-nickname { font-size: 15px; font-weight: 700; color: #666666; filter: saturate(0); }
    .music-avatar { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; cursor: pointer; box-shadow: 0 4px 12px rgba(255,182,193,0.4); }
    .music-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
    .music-controls { display: flex; gap: 12px; align-items: center; }
    .music-controls svg { width: 22px; height: 22px; fill: var(--text-main); }
    .music-lyrics { font-size: 13px; color: #777777; letter-spacing: 0.5px; filter: saturate(0); }
    .split-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .cat-heart-widget {
        aspect-ratio: 1;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        display: flex; justify-content: center; align-items: center;
        border: none;
        transform: scale(1.15);
        position: relative;
    }
    .cat-heart-mask {
        width: 100%; height: 100%;
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
        -webkit-mask-size: contain;
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-position: center;
        background-image: url('https://images.unsplash.com/photo-1514888286974-6c03e2ca1dba?auto=format&fit=crop&w=400&q=80');
        background-size: cover; background-position: center;
        pointer-events: none;
    }
    .app-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 16px;
    }
    .app-item {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
    }
    .app-icon {
        width: 62px; height: 62px;
        background: var(--app-bg);
        border-radius: 14px;
        box-shadow: 0 4px 12px rgba(255, 182, 193, 0.2);
        display: flex; justify-content: center; align-items: center;
        transition: transform 0.2s;
    }
    .app-item:active .app-icon { transform: scale(0.92); }
    .app-icon svg { width: 28px; height: 28px; fill: var(--text-light); }
    .app-name { font-size: 12px; color: #777777; font-weight: 500; filter: saturate(0); }
    .widget-stack {
        display: flex; flex-direction: column; gap: 12px;
    }
    .mini-widget {
        background: rgba(255, 255, 255, 0.6);
        border-radius: 18px;
        padding: 12px;
                box-shadow: 0 6px 16px rgba(255, 255, 255, 0.8);
        border: 1px solid var(--border-light);
        display: flex; align-items: center;
        position: relative;
    }
    .text-widget { justify-content: center; font-size: 10px; color: var(--text-light); letter-spacing: 1px; text-align: center;}
    .profile-widget-1 { gap: 10px; }
    .profile-widget-1 .w-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; cursor: pointer; flex-shrink: 0; box-shadow: 0 2px 8px rgba(255,182,193,0.5);}
    .profile-widget-1 .w-text { font-size: 12px; font-style: italic; color: var(--text-main); }
    .profile-widget-2 { justify-content: space-between; }
    .w-symbols { font-size: 13px; color: var(--text-main); display: flex; gap: 4px;}
    .profile-widget-2 .w-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; align-self: center; cursor: pointer; flex-shrink: 0; box-shadow: 0 2px 8px rgba(255,182,193,0.5);}
    .dock {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        height: 88px;
        background: rgba(255, 240, 245, 0.65);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 30px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 0 10px;
        box-shadow: 0 8px 24px rgba(255, 182, 193, 0.3);
        border: 1px solid rgba(255,255,255,0.9);
        z-index: 100;
    }
    .dock .app-item .app-name { display: none; }
    .dock .app-icon { background: rgba(255,255,255,0.6); box-shadow: none; border: none;}
    .svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
    .context-menu {
        position: fixed;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-radius: 10px;
        box-shadow: 0 8px 24px rgba(255, 182, 193, 0.35);
        border: 1px solid var(--border-light);
        padding: 4px;
        display: none;
        flex-direction: column;
        gap: 2px;
        width: 86px;
        z-index: 1000;
    }
    .context-menu.active {
        display: flex;
    }
    .menu-btn {
        width: 100%;
        padding: 6px 4px;
        border: none;
        border-radius: 6px;
        font-size: 11px;
        background: transparent;
        color: var(--text-main);
        cursor: pointer;
        text-align: center;
        transition: 0.2s;
        font-weight: 600;
    }
    .menu-btn:hover { background: rgba(255, 182, 193, 0.2); color: var(--theme-pink-dark); }
    .menu-btn:active { background: #ffdce6; }
    .theme-page {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        background: var(--bg-white);
        z-index: 200;
        display: none; flex-direction: column;
        transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
    .theme-page.active {
        display: flex; transform: translateX(0);
    }
    .theme-header {
        display: flex; justify-content: space-between; align-items: center;
        padding: 56px 24px 16px 24px;
        font-size: 17px; font-weight: 800;
        color: var(--theme-text-dark);
        background: rgba(255,255,255,0.7); backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 4px 20px rgba(255, 182, 193, 0.15);
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    }
    .theme-back { cursor: pointer; color: var(--theme-pink-dark); font-size: 15px; font-weight: 700; pointer-events: auto; display: flex; align-items: center; gap: 4px;}
    .theme-back:active { opacity: 0.7; }
    .theme-content { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; padding-bottom: 80px;}
    .theme-content::-webkit-scrollbar { display: none; }
    .theme-section-title { 
        font-size: 15px; 
        font-weight: 800; 
        color: var(--theme-text-dark); 
        padding: 10px 4px 4px 4px; 
        display: flex; 
        align-items: center; 
        justify-content: space-between;
        cursor: pointer;
        transition: opacity 0.2s ease;
    }
    .theme-section-title:active {
        opacity: 0.5;
    }
    .theme-section-title span {
        letter-spacing: 1px;
    }
    .theme-toggle-arrow {
        width: 18px; 
        height: 18px;
        color: var(--text-light);
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
    }
    .theme-toggle-arrow.active {
        transform: rotate(180deg);
        color: var(--theme-pink-dark);
    }
    .theme-section-content {
        display: none;
        flex-direction: column;
        gap: 12px;
        padding: 4px 4px 12px 4px;
        animation: fadeIn 0.3s ease;
    }
    .theme-section-content.active {
        display: flex;
    }
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-5px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .virtual-phone-container { display: flex; flex-direction: column; align-items: center; gap: 12px;}
    .virtual-phone {
        width: 120px; height: 260px; border-radius: 24px; border: 6px solid #fff;
        background-color: #fafafa; background-size: cover; background-position: center;
        position: relative; cursor: pointer; 
        box-shadow: 0 15px 35px var(--theme-pink-shadow), inset 0 0 0 1px rgba(0,0,0,0.05);
        display: flex; flex-direction: column; justify-content: space-between; padding: 12px 8px 8px 8px;
        transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
        overflow: hidden;
    }
    .virtual-phone:active { transform: scale(0.95); }
    .virtual-phone::before {
        content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
        width: 40px; height: 12px; background: #fff;
        border-radius: 0 0 8px 8px; z-index: 2;
    }
    .vp-time { font-size: 10px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.4); text-align: center; margin-top: 6px; z-index: 3; position: relative;}
    .vp-dock { height: 24px; background: rgba(255,255,255,0.4); border-radius: 12px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); margin-bottom: 2px; z-index: 3; position: relative; border: 1px solid rgba(255,255,255,0.5); display: flex; justify-content: space-evenly; align-items: center; padding: 0 4px;}
    .vp-icon { width: 14px; height: 14px; background: rgba(255, 255, 255, 0.9); border-radius: 4px; }
    .vp-hint { font-size: 11px; color: var(--theme-pink-dark); font-weight: 700;}
    .theme-icons-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 12px;}
    .ti-item { display: flex; flex-direction: column; align-items: center; gap: 6px;}
    .ti-icon { 
        width: 50px; height: 50px; background: rgba(255,255,255,0.8); border-radius: 16px; 
        box-shadow: 0 8px 20px rgba(255, 182, 193, 0.2); display: flex; justify-content: center; align-items: center; 
        cursor: pointer; background-size: cover; background-position: center; border: 1px solid rgba(255,255,255,0.9);
        transition: transform 0.2s; backdrop-filter: blur(10px);
    }
    .ti-icon:active { transform: scale(0.92); }
    .ti-icon svg { width: 24px; height: 24px; fill: var(--theme-pink-dark); pointer-events: none;}
    .ti-name { font-size: 11px; color: var(--theme-text-dark); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; font-weight: 600;}
    .settings-group { display: flex; flex-direction: column; gap: 14px; }
    .settings-input { 
        width: 100%; padding: 14px 16px; border: 1px solid var(--theme-border); 
        border-radius: 16px; font-size: 13px; outline: none; 
        background: var(--theme-card-bg); color: var(--theme-text-dark); 
        transition: all 0.3s; box-shadow: inset 0 2px 6px rgba(0,0,0,0.01);
        backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
        font-weight: 500;
    }
    .settings-input:focus { border-color: var(--theme-pink); background: #fff; box-shadow: 0 0 0 3px rgba(255,182,193,0.2); }
    .settings-input::placeholder { color: #cbaeb4; }
    .settings-btn { 
        padding: 14px; background: rgba(255, 255, 255, 0.9); color: var(--theme-pink-dark); 
        border: 1px solid var(--theme-border); border-radius: 16px; font-size: 14px; 
        cursor: pointer; font-weight: 700; transition: all 0.2s; text-align: center;
        box-shadow: 0 6px 16px rgba(255, 182, 193, 0.15); backdrop-filter: blur(5px);
    }
    .settings-btn:active { transform: scale(0.96); box-shadow: 0 2px 8px rgba(255, 182, 193, 0.1); }
    .settings-btn.primary { 
        background: linear-gradient(135deg, var(--theme-pink) 0%, #ff9eaa 100%); 
        color: #fff; border: none; box-shadow: 0 8px 20px rgba(255, 158, 170, 0.4);
    }
    .slider-container { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--theme-text-dark); font-weight: 700;}
    .slider-container input[type="range"] { 
        width: 100%; height: 8px; background: rgba(255, 182, 193, 0.3); border-radius: 4px; 
        outline: none; -webkit-appearance: none; 
    }
    .slider-container input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none; width: 20px; height: 20px; background: #fff;
        border: 3px solid var(--theme-pink); border-radius: 50%; box-shadow: 0 2px 8px rgba(255, 182, 193, 0.5); cursor: pointer;
    }
    .settings-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 16px;}
    .theme-font-setting { display: flex; gap: 10px; }
    .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,240,245,0.6); z-index: 1000; display: none; justify-content: center; align-items: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);}
    .modal-overlay.active { display: flex; }
    .modal-content { 
        background: rgba(255, 255, 255, 0.9); width: 88%; max-width: 360px; 
        border-radius: 28px; padding: 24px; box-shadow: 0 20px 50px rgba(255, 182, 193, 0.3); 
        display: flex; flex-direction: column; gap: 18px; max-height: 85vh; overflow-y: auto; 
        border: 1px solid rgba(255,255,255,0.8);
    }
    .modal-content::-webkit-scrollbar { display: none; }
    .modal-header { font-size: 18px; font-weight: 800; color: var(--theme-text-dark); text-align: center; letter-spacing: 1px;}
    .preset-list { display: flex; flex-direction: column; gap: 12px; }
    .preset-item { 
        background: rgba(255, 255, 255, 0.7); border: 1px solid var(--theme-border); 
        border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; 
        box-shadow: 0 4px 12px rgba(255, 182, 193, 0.1);
    }
    .preset-name { font-size: 15px; font-weight: 800; color: var(--theme-text-dark); }
    .preset-details { font-size: 12px; color: #8a7b80; word-break: break-all; line-height: 1.5; font-weight: 500;}
    .preset-actions { display: flex; gap: 10px; margin-top: 4px;}
    .preset-actions button { flex: 1; padding: 8px; font-size: 12px; border-radius: 12px; }
    /* --- 新增：世界书页面专属样式 --- */
    .wb-list { display: flex; flex-direction: column; gap: 16px; }
    .wb-card {
        background: var(--theme-card-bg); border: 1px solid var(--theme-border);
        border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 10px;
        box-shadow: 0 8px 24px rgba(255, 182, 193, 0.15); backdrop-filter: blur(10px);
    }
    .wb-header { display: flex; justify-content: space-between; align-items: center;}
    .wb-title { font-size: 16px; font-weight: 800; color: var(--theme-text-dark); }
    .wb-tags { display: flex; gap: 6px; flex-wrap: wrap;}
    .wb-tag { 
        padding: 4px 10px; font-size: 10px; font-weight: 700; border-radius: 10px; 
        background: var(--theme-pink-light); color: var(--theme-pink-dark); border: 1px solid var(--theme-pink);
    }
    .wb-tag.global { background: #e6f7ff; color: #d0668b; border-color: #ffdce6; }
    .wb-tag.high { background: #fff0f0; color: #ff4d4f; border-color: #ffccc7; }
    .wb-content-preview { font-size: 12px; color: #8a7b80; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;}
    .wb-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 4px; border-top: 1px dashed rgba(255,182,193,0.3); padding-top: 12px;}
    .wb-action-btn { background: none; border: none; font-size: 13px; font-weight: 700; color: var(--theme-pink-dark); cursor: pointer;}
    .wb-action-btn.del { color: #ff6b81; }
    .textarea-custom { resize: none; height: 100px; font-family: inherit; line-height: 1.5;}
    /* --- 新增：Chat 页面专属样式 --- */
    .chat-page {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        background: linear-gradient(180deg, #ffffff 0%, var(--theme-pink-light) 100%);
        z-index: 200;
        display: none; flex-direction: column;
        transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
    .chat-page.active {
        display: flex; transform: translateX(0);
    }
    .chat-header {
        display: flex; justify-content: space-between; align-items: center;
        padding: 56px 24px 16px 24px; 
        font-size: 17px; font-weight: 800;
        color: var(--theme-text-dark);
        background: rgba(255,255,255,0.7); backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 4px 20px rgba(255, 182, 193, 0.15);
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    }
    .chat-header-btn {
        cursor: pointer; color: var(--theme-pink-dark); font-size: 15px; font-weight: 700; pointer-events: auto; display: flex; align-items: center; gap: 4px;
    }
    .chat-header-btn:active { opacity: 0.7; }
    .chat-content { flex: 1; overflow-y: auto; padding: 12px 24px 120px 24px; display: flex; flex-direction: column; gap: 16px; }
    .chat-content::-webkit-scrollbar { display: none; }
    .chat-dock {
        position: absolute;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        width: 220px;
        height: 76px;
        background: rgba(255, 240, 245, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 38px;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        box-shadow: 0 12px 32px rgba(255, 182, 193, 0.4);
        border: 1px solid rgba(255,255,255,0.9);
        z-index: 100;
    }
    .chat-dock-item {
        display: flex; justify-content: center; align-items: center;
        width: 48px; height: 48px;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.2s;
        color: var(--icon-gray);
    }
    .chat-dock-item:active {
        background: rgba(255, 182, 193, 0.2);
        transform: scale(0.9);
    }
    .chat-dock-item.active {
        color: var(--theme-pink);
        background: #fff;
        box-shadow: 0 4px 12px rgba(255, 182, 193, 0.3);
    }
    .chat-dock-item svg {
        width: 26px; height: 26px; fill: currentColor;
    }
    .tab-panel {
        display: none; flex-direction: column; width: 100%; height: 100%;
        position: absolute; top: 0; left: 0;
    }
    .tab-panel.active { display: flex; }
    .tab-chat { z-index: 1; }
    .tab-moments { z-index: 1; overflow-y: auto; background: var(--bg-white); padding-bottom: 120px; }
    .tab-moments::-webkit-scrollbar { display: none; }
    .moments-float-btns { position: absolute; top: 56px; right: 20px; z-index: 10; display: flex; gap: 16px; }
    .moments-float-btns svg { width: 24px; height: 24px; fill: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); cursor: pointer; }
    .moments-header-container { position: relative; width: 100%; height: 40%; margin-bottom: 40px; flex-shrink: 0; }
    .moments-bg { width: 100%; height: 100%; background-image: url('https://images.unsplash.com/photo-1514888286974-6c03e2ca1dba?auto=format&fit=crop&w=600&q=80'); background-size: cover; background-position: center; cursor: pointer; }
    .moments-profile { position: absolute; bottom: -24px; right: 20px; display: flex; align-items: flex-end; gap: 16px; z-index: 5; }
    .moments-name { font-size: 18px; font-weight: 800; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,0.6); margin-bottom: 32px; cursor: pointer; }
    .moments-avatar { width: 80px; height: 80px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.15); object-fit: cover; background: #fff; cursor: pointer; }
    .moments-sign { text-align: right; padding: 0 20px; font-size: 12px; color: var(--text-light); font-weight: 500; cursor: pointer; }
    .moments-feed { flex: 1; padding: 16px; }
    .tab-user { z-index: 1; align-items: center; padding: 100px 24px 120px 24px; overflow-y: auto; }
    .tab-user::-webkit-scrollbar { display: none; }
    .user-profile-header { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 40px; }
    .user-large-avatar { width: 120px; height: 120px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 8px 24px rgba(255,182,193,0.4); object-fit: cover; background: #fff; cursor: pointer; }
    .user-name { font-size: 22px; font-weight: 800; color: var(--text-main); cursor: pointer; margin-top: 4px; }
    .user-menu-group { 
        width: 100%; background: rgba(255,255,255,0.85); 
        border-radius: 24px; box-shadow: 0 8px 24px rgba(255,182,193,0.2); 
        display: flex; flex-direction: column; 
        backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); 
        border: 1px solid rgba(255,255,255,0.9);
        padding: 6px 12px;
    }
    .user-menu-item { 
        padding: 16px 8px; font-size: 15px; font-weight: 700; 
        color: var(--text-main); border-bottom: 1px solid rgba(255,182,193,0.25); 
        cursor: pointer; transition: background 0.2s; 
        display: flex; justify-content: space-between; align-items: center;
    }
    .user-menu-item:last-child { border-bottom: none; }
    .user-menu-item:active { background: rgba(255,182,193,0.15); border-radius: 12px; }
    .user-menu-icon-wrap { display: flex; align-items: center; gap: 16px; }
    .user-menu-icon { width: 32px; height: 32px; border-radius: 10px; background: var(--theme-pink-light); display: flex; justify-content: center; align-items: center; box-shadow: inset 0 0 0 1px rgba(255,182,193,0.3); }
    .user-menu-icon svg { width: 18px; height: 18px; fill: var(--theme-pink-dark); }
    .user-menu-arrow { width: 20px; height: 20px; fill: #cbaeb4; }
    .mask-avatar-uploader {
        width: 100px; height: 100px; border-radius: 50%;
        border: 3px solid #fff; box-shadow: 0 6px 20px rgba(255,182,193,0.4);
        background: #f0f0f0; background-size: cover; background-position: center;
        align-self: center; cursor: pointer; position: relative;
        display: flex; justify-content: center; align-items: center;
    }
    .mask-avatar-uploader::after {
        content: '+'; font-size: 40px; color: #ccc; font-weight: 300;
        pointer-events: none;
    }
    .mask-avatar-uploader.has-img::after { content: none; }
    .mask-card {
        background: var(--theme-card-bg); border: 1px solid var(--theme-border);
        border-radius: 20px; padding: 16px; display: flex; align-items: center; gap: 14px;
        box-shadow: 0 4px 12px rgba(255, 182, 193, 0.15); backdrop-filter: blur(10px);
    }
    .mask-card-avatar {
        width: 54px; height: 54px; border-radius: 50%; object-fit: cover;
        box-shadow: 0 2px 8px rgba(255,182,193,0.4); border: 2px solid #fff; flex-shrink: 0;
    }
    .mask-card-info { flex: 1; display: flex; flex-direction: column; gap: 4px; overflow: hidden;}
    .mask-card-name { font-size: 15px; font-weight: 800; color: var(--theme-text-dark); display: flex; align-items: center; gap: 6px;}
    .mask-card-gender { font-size: 10px; padding: 2px 6px; border-radius: 8px; background: rgba(255,255,255,0.6); color: #888; font-weight: 600;}
    .mask-card-desc { font-size: 11px; color: #8a7b80; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
    .mask-card-actions { display: flex; gap: 8px; }
    .mask-btn { width: 32px; height: 32px; border-radius: 10px; border: none; background: rgba(255,255,255,0.5); display: flex; justify-content: center; align-items: center; cursor: pointer; color: var(--theme-pink-dark);}
    .mask-btn:active { background: rgba(255,182,193,0.3); }
    .chat-group-nav {
        display: flex; gap: 20px; padding: 0 24px 12px 24px;
        border-bottom: 1px solid rgba(255, 182, 193, 0.3);
        flex-shrink: 0; margin-top: 12px;
    }
    .chat-group-item {
        font-size: 14px; font-weight: 800; color: #cbaeb4;
        cursor: pointer; position: relative; padding-bottom: 4px;
        transition: color 0.2s;
    }
    .chat-group-item.active { color: var(--theme-pink-dark); }
    .chat-group-item.active::after {
        content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
        width: 16px; height: 3px; background: var(--theme-pink-dark); border-radius: 2px;
    }
    .chat-unpinned-group {
        background: #fff;
        border-radius: 20px;
        box-shadow: 0 4px 12px rgba(255, 182, 193, 0.15);
        border: 1px solid var(--border-light);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    .chat-list-wrapper {
        position: relative; overflow: hidden; border-radius: 20px;
        box-shadow: 0 4px 12px rgba(255, 182, 193, 0.15);
        border: 1px solid var(--border-light);
        background: #fff;
        flex-shrink: 0;
    }
    .chat-unpinned-group .chat-list-wrapper {
        border-radius: 0;
        box-shadow: none;
        border: none;
        border-bottom: 1px solid rgba(255, 182, 193, 0.25);
    }
    .chat-unpinned-group .chat-list-wrapper:last-child {
        border-bottom: none;
    }
    .chat-list-item {
        display: flex; align-items: center; gap: 14px; padding: 12px 16px;
        background: rgba(255,255,255,0.95);
        width: 100%; cursor: pointer;
        position: relative; z-index: 2;
        transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        border-radius: 20px;
    }
    .chat-list-item:active { background: rgba(255, 182, 193, 0.15); }
    .chat-unpinned-group .chat-list-item {
        border-radius: 0;
    }
    .chat-list-avatar {
        width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
        border: 2px solid #fff; box-shadow: 0 2px 8px rgba(255,182,193,0.4); flex-shrink: 0;
    }
    .chat-list-info { flex: 1; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
    .chat-list-name { font-size: 16px; font-weight: 800; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center;}
    .chat-list-preview { font-size: 12px; color: #8a7b80; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .chat-list-time { font-size: 11px; color: #cbaeb4; font-weight: 600; align-self: flex-start; margin-top: 4px; }
    .chat-list-actions {
        position: absolute; top: 0; right: 0; height: 100%; width: 180px; 
        display: flex; z-index: 1;
        opacity: 0; pointer-events: none; 
    }
    .chat-list-item.swiping ~ .chat-list-actions,
    .chat-list-item.swiped ~ .chat-list-actions {
        opacity: 1; pointer-events: auto; 
    }
    .chat-action-btn {
        flex: 1; border: none; color: #fff; font-size: 13px; font-weight: 700;
        cursor: pointer; display: flex; justify-content: center; align-items: center;
    }
    .chat-action-btn.pin { background: #cbaeb4; }
    .chat-action-btn.edit { background: #ffb6c1; } 
    .chat-action-btn.del { background: #ff6b81; }
    .bind-wb-item {
        display: flex; align-items: center; gap: 10px; padding: 10px;
        border-bottom: 1px solid var(--border-light);
    }
    .bind-wb-item:last-child { border-bottom: none; }
    .bind-wb-item input[type="checkbox"] {
        width: 18px; height: 18px; accent-color: var(--theme-pink); cursor: pointer;
    }
    .bind-wb-item label { font-size: 14px; color: var(--theme-text-dark); font-weight: 600; flex: 1; cursor: pointer;}
    /* --- 新增：聊天详情页面 --- */
    .chat-detail-page {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        background: var(--app-bg);
        z-index: 400;
        display: none; flex-direction: column;
        transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
    .chat-detail-page.active {
        display: flex; transform: translateX(0);
    }
    .chat-detail-header {
        display: flex; justify-content: space-between; align-items: center;
        padding: 56px 24px 16px 24px; 
        font-size: 17px; font-weight: 800;
        color: var(--theme-text-dark);
        background: rgba(255,255,255,0.85); backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 4px 20px rgba(255, 182, 193, 0.15);
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
        z-index: 10;
    }
    .chat-detail-header-left {
        display: flex; align-items: center; gap: 8px;
    }
    .chat-detail-header .chat-header-btn {
        width: 24px; height: 24px; display: flex; justify-content: center; align-items: center; cursor: pointer; color: var(--theme-pink-dark);
    }
    .chat-detail-header .chat-header-btn:active { opacity: 0.7; }
    .chat-detail-header .chat-header-btn svg { width: 22px; height: 22px; fill: currentColor; }
    .chat-detail-content {
        flex: 1; overflow-y: auto; padding: 20px 16px; display: flex; flex-direction: column; gap: 12px;
        position: relative;
    }
    .chat-detail-content::-webkit-scrollbar { display: none; }
    .msg-row { display: flex; gap: 10px; align-items: flex-start; width: 100%; }
    .msg-row.ai { flex-direction: row; }
    .msg-row.user { flex-direction: row; justify-content: flex-end; }
    .msg-avatar-col { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
    .msg-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid #fff; box-shadow: 0 2px 8px rgba(255,182,193,0.3); }
    .msg-time { font-size: 9px; color: #888; font-weight: 600; transform: scale(0.9); }
    .msg-bubble-col { max-width: 18em; display: flex; flex-direction: column; }
    .msg-bubble {
        padding: 6px 10px; font-size: 13px; line-height: 1.4; word-break: break-word;
        border-radius: 12px; position: relative; box-shadow: 0 2px 8px rgba(255,182,193,0.2);
        color: var(--theme-text-dark); font-weight: 500;
    }
    .ai-bubble {
        background: #ffffff; border: 1px solid var(--theme-border); border-top-left-radius: 2px; margin-top: 4px;
    }
    .user-bubble {
        background: #ffe4e8; border: 1px solid var(--theme-border); border-top-right-radius: 2px; margin-top: 4px;
    }

    .chat-detail-bottom {
        display: flex; align-items: center; gap: 10px; padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom));
        background: rgba(255,255,255,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 182, 193, 0.3); z-index: 10;
        flex-shrink: 0;
        position: relative;
    }
    .cd-btn {
        width: 30px; height: 30px; border-radius: 50%; display: flex; justify-content: center; align-items: center;
        color: var(--theme-pink-dark); background: transparent; cursor: pointer; flex-shrink: 0; transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .cd-btn:active { transform: scale(0.85); }
    .cd-btn svg { width: 24px; height: 24px; fill: currentColor; }
    .cd-btn-send {
        background: var(--theme-pink-light); width: 32px; height: 32px;
    }
    .cd-btn-send:active { background: #ffe6ea; }
    .cd-input {
        flex: 1; min-height: 32px; max-height: 120px; border-radius: 16px; border: 1px solid rgba(255,182,193,0.4);
        background: rgba(255,255,255,0.7); padding: 6px 16px; font-size: 13px; color: var(--theme-text-dark);
        outline: none; transition: border-color 0.3s, box-shadow 0.3s; font-weight: 500;
        resize: none; overflow-y: auto; line-height: 18px; box-sizing: border-box;
    }
    .cd-input::-webkit-scrollbar { display: none; }
    .cd-input:focus { background: #fff; border-color: var(--theme-pink); box-shadow: 0 0 0 3px rgba(255,182,193,0.2); }
    .chat-plus-menu {
        position: absolute;
        bottom: calc(76px + env(safe-area-inset-bottom));
        left: 16px;
        right: 16px;
        border-radius: 24px;
        box-shadow: 0 12px 40px rgba(255, 182, 193, 0.35);
        border: 1px solid rgba(255, 255, 255, 0.9);
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px 12px;
        padding: 20px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 100;
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        transform-origin: bottom left; /* 动画从左下角+号处展开 */
    }
    .chat-plus-menu.active {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }
    #btn-chat-plus svg {
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    #btn-chat-plus.rotated svg {
        transform: rotate(45deg);
    }
    .cpm-item { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
    .cpm-icon {
        width: 56px; height: 56px; background: #fff; border-radius: 18px;
        box-shadow: 0 4px 12px rgba(255, 182, 193, 0.15), inset 0 0 0 1px rgba(255, 182, 193, 0.2);
        display: flex; justify-content: center; align-items: center;
        transition: transform 0.2s;
    }
    .cpm-item:active .cpm-icon { transform: scale(0.92); background: rgba(255, 182, 193, 0.1); }
    .cpm-icon svg { width: 26px; height: 26px; fill: var(--theme-pink-dark); color: var(--theme-pink-dark); }
    .cpm-name { font-size: 11px; color: var(--theme-text-dark); font-weight: 600; }
    /* --- 新增：相机功能专属样式 --- */
    .camera-card-container { width: 280px; height: 380px; perspective: 1000px; }
    .camera-card { width: 100%; height: 100%; position: relative; transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); transform-style: preserve-3d; }
    .camera-card.flipped { transform: rotateY(180deg); }
    .camera-front, .camera-back { 
        position: absolute; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; 
        border-radius: 24px; background: rgba(255, 255, 255, 0.95); box-shadow: 0 16px 40px rgba(255, 182, 193, 0.3); 
        border: 1px solid rgba(255, 255, 255, 0.8); display: flex; flex-direction: column; overflow: hidden; 
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); 
    }
    .camera-front { justify-content: center; align-items: center; cursor: pointer; }
    .camera-front:active { transform: scale(0.98); }
    .camera-icon-btn { 
        width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--theme-pink) 0%, #ff9eaa 100%); 
        display: flex; justify-content: center; align-items: center; color: #fff; box-shadow: 0 8px 24px rgba(255, 158, 170, 0.4); 
        margin-bottom: 20px; transition: transform 0.2s; 
    }
    .camera-front:active .camera-icon-btn { transform: scale(0.9); }
    .camera-icon-btn svg { width: 40px; height: 40px; fill: currentColor; }
    .camera-front-text { font-size: 16px; font-weight: 800; color: var(--theme-text-dark); letter-spacing: 1px; }
    .camera-back { transform: rotateY(180deg); padding: 20px; }
    .camera-back-header { display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 800; color: var(--theme-text-dark); margin-bottom: 16px; }
    .camera-textarea { 
        flex: 1; resize: none; border: 1px solid var(--theme-border); border-radius: 16px; padding: 14px; 
        font-size: 14px; color: var(--theme-text-dark); background: var(--theme-card-bg); outline: none; 
        overflow-y: auto; font-family: inherit; line-height: 1.6; font-weight: 500; box-shadow: inset 0 2px 6px rgba(0,0,0,0.02); 
    }
    .camera-textarea:focus { border-color: var(--theme-pink); background: #fff; box-shadow: 0 0 0 3px rgba(255,182,193,0.2); }
    .camera-textarea::-webkit-scrollbar { display: none; }
    .camera-back-actions { display: flex; gap: 12px; margin-top: 16px; }
    .camera-back-actions button { flex: 1; padding: 12px; font-size: 14px; }
    .bubble-menu {
        position: absolute; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
        border-radius: 6px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.15); border: 1px solid rgba(255,182,193,0.3);
        display: none; flex-direction: row; flex-wrap: nowrap; white-space: nowrap; padding: 0; z-index: 1000; transform: translateX(-50%);
        overflow: hidden;
    }
    .bubble-menu.active { display: flex; }
    .bm-btn {
        font-size: 10px;
        font-weight: 700; color: var(--theme-text-dark); background: transparent;
        border: none; 
        padding: 6px 10px;
        border-radius: 0; cursor: pointer; transition: 0.2s;
        position: relative;
    }
    .bm-btn:not(:last-child)::after {
        content: ''; position: absolute; right: 0; top: 25%; height: 50%; width: 1px;
        background: linear-gradient(to bottom, rgba(255,182,193,0), rgba(255,182,193,0.8), rgba(255,182,193,0));
    }
    .bm-btn:active { background: rgba(255,182,193,0.3); }
    .bm-btn.no-divider::after { display: none !important; }
    .quote-bar {
        display: none; align-items: flex-start; justify-content: space-between;
        padding: 10px 16px; background: rgba(255,255,255,0.95); 
        border-radius: 16px; margin: 0 16px 12px 16px;
        box-shadow: 0 4px 12px rgba(255, 182, 193, 0.25);
        border: 1px solid rgba(255, 182, 193, 0.4);
        font-size: 12px; color: var(--theme-text-dark); font-weight: 600;
        z-index: 10; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
        max-height: 100px;
        flex-shrink: 0;
        position: relative;
    }

    .quote-bar.active {
        display: flex;
    }
    .quote-text { flex: 1; white-space: pre-wrap; overflow-y: auto; margin-right: 10px; opacity: 0.8; word-break: break-all; max-height: 80px;}

    .quote-text::-webkit-scrollbar { display: none; }

    .quote-close { font-size: 16px; cursor: pointer; color: var(--theme-pink-dark); font-weight: bold;}
    .quoted-box {
        background: rgba(0,0,0,0.04); border-radius: 8px; padding: 8px; margin-bottom: 6px;
        border-left: 3px solid var(--theme-pink); display: flex; flex-direction: column; gap: 4px;
    }
    .quoted-header { display: flex; justify-content: space-between; font-size: 10px; color: #888; }
    .quoted-name { font-weight: 700; }
    .quoted-time { font-weight: 400; margin-left: 4px; }
    .quoted-content { font-size: 11px; color: #666; word-break: break-all; white-space: pre-wrap; }
    .quoted-jump { cursor: pointer; color: var(--theme-pink-dark); font-size: 12px; padding: 0 4px;}
    .ai-bubble .quoted-box { border-left-color: #ccc; }
    .ai-bubble .quoted-jump { color: #ccc; }
    .msg-row.multi-selected { 
        background-color: rgba(255, 182, 193, 0.2) !important; 
        border-radius: 16px; 
        padding: 4px 6px; 
        margin: -4px -6px;
    }
    .msg-row.multi-selected .msg-bubble,
    .msg-row.multi-selected .msg-bubble.no-bubble { 
        box-shadow: 0 0 0 3px var(--theme-pink) !important; 
        border-radius: 14px !important;
    }
    .msg-row.multi-selected .retracted-msg { 
        box-shadow: 0 0 0 3px var(--theme-pink) !important; 
    }

    .chat-detail-content.multi-selecting .msg-bubble,
    .chat-detail-content.multi-selecting .msg-bubble *,
    .chat-detail-content.multi-selecting .retracted-msg,
    .chat-detail-content.multi-selecting .retracted-msg * {
        pointer-events: none !important;
    }
    .multi-select-bottom {
        display: none; justify-content: space-between; padding: 16px 24px; padding-bottom: max(16px, env(safe-area-inset-bottom));
        background: rgba(255,255,255,0.95); border-top: 1px solid rgba(255, 182, 193, 0.3); z-index: 10;
    }
    .multi-select-bottom.active { display: flex; }
    .ms-btn { 
        flex: 1; padding: 12px 0; border: 1px solid var(--theme-border); 
        border-radius: 20px; font-size: 14px; font-weight: 800; 
        cursor: pointer; margin: 0 6px; 
        background: rgba(255, 255, 255, 0.9); color: var(--theme-text-dark);
        box-shadow: 0 6px 16px rgba(255, 182, 193, 0.15);
        transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
        backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    }
    .ms-btn:active { transform: scale(0.92); box-shadow: 0 2px 8px rgba(255, 182, 193, 0.1); }
    .ms-btn.select-all { background: linear-gradient(135deg, var(--theme-pink-light) 0%, #ffe6ea 100%); color: var(--theme-pink-dark); border-color: var(--theme-pink); }
    .ms-btn.del { background: linear-gradient(135deg, #ff8fa3 0%, #ff6b81 100%); color: #fff; border: none; box-shadow: 0 8px 20px rgba(255, 107, 129, 0.3); }
    .retracted-msg { 
        text-align: center; 
        font-size: 11px; 
        color: #888; 
        font-weight: 600; 
        margin: 8px auto; 
        padding: 4px 12px;
        background-color: rgba(0, 0, 0, 0.05);
        border-radius: 12px;
        max-width: fit-content;
    }
    .retracted-msg span { color: var(--theme-pink-dark); cursor: pointer; margin-left: 6px; }
    .switch-container {
        display: flex; justify-content: space-between; align-items: center;
        padding: 14px 16px; background: var(--theme-card-bg);
        border: 1px solid var(--theme-border); border-radius: 16px;
        box-shadow: inset 0 2px 6px rgba(0,0,0,0.01);
    }
    .switch-label { font-size: 14px; font-weight: 700; color: var(--theme-text-dark); }
    .switch-desc { font-size: 10px; color: #cbaeb4; font-weight: 500; margin-top: 4px; }
    .switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
    .switch input { opacity: 0; width: 0; height: 0; }
    .slider {
        position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
        background-color: #e4d5d8; transition: .3s; border-radius: 24px;
    }
    .slider:before {
        position: absolute; content: ""; height: 18px; width: 18px;
        left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    .switch input:checked + .slider { background-color: var(--theme-pink-dark); }
    .switch input:checked + .slider:before { transform: translateX(20px); }
    .dark-bg .msg-time { color: rgba(255, 255, 255, 0.85) !important; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
    .summary-item { background: rgba(255,255,255,0.7); border: 1px solid var(--theme-border); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 4px 12px rgba(255,182,193,0.1); }
    .summary-time { font-size: 11px; color: var(--theme-pink-dark); font-weight: 700; }
    .summary-content { font-size: 13px; color: var(--theme-text-dark); line-height: 1.5; word-break: break-all; }
    /* 历史总结页面专属样式 */
    .summary-tab-nav {
        display: flex; gap: 20px; padding: 0 24px 12px 24px;
        border-bottom: 1px solid rgba(255, 182, 193, 0.3);
        flex-shrink: 0; margin-top: 16px;
    }
    .summary-tab-item {
        font-size: 14px; font-weight: 800; color: #cbaeb4;
        cursor: pointer; position: relative; padding-bottom: 4px;
        transition: color 0.2s;
    }
    .summary-tab-item.active { color: var(--theme-pink-dark); }
    .summary-tab-item.active::after {
        content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
        width: 16px; height: 3px; background: var(--theme-pink-dark); border-radius: 2px;
    }
    .summary-tab-content {
        display: none; flex-direction: column; gap: 12px; padding: 16px 24px;
        overflow-y: auto; flex: 1; padding-bottom: 100px;
    }
    .summary-tab-content.active { display: flex; }
    .summary-tab-content::-webkit-scrollbar { display: none; }
    .summary-actions { 
        display: flex; gap: 12px; justify-content: flex-end; 
        margin-top: 6px; border-top: 1px dashed rgba(255,182,193,0.3); padding-top: 10px; 
    }
    .summary-action-btn { 
        background: none; border: none; font-size: 12px; font-weight: 700; 
        color: var(--theme-pink-dark); cursor: pointer; transition: 0.2s;
    }
    .summary-action-btn:active { transform: scale(0.9); }
    .summary-action-btn.del { color: #ff6b81; }
    /* --- 新增：聊天记录展开按钮样式 --- */
    .load-more-btn {
        text-align: center;
        font-size: 12px;
        color: var(--theme-pink-dark);
        padding: 6px 16px;
        margin: 12px auto 4px auto;
        cursor: pointer;
        font-weight: 700;
        transition: opacity 0.2s;
        width: fit-content;
        background: rgba(255, 182, 193, 0.2);
        border-radius: 16px;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    .load-more-btn:active { opacity: 0.6; }
    /* --- 新增：查手机弹窗专属紧凑样式 --- */
    .cp-device-list { 
        display: flex; flex-direction: column; 
        background: rgba(255,255,255,0.7); 
        border-radius: 18px; 
        border: 1px solid var(--theme-border); 
        overflow: hidden; 
    }
    .cp-device-item {
        display: flex; align-items: center; gap: 14px; padding: 12px 16px;
        border-bottom: 1px solid rgba(255, 182, 193, 0.3); 
        cursor: pointer; transition: background 0.2s;
    }
    .cp-device-item:last-child { border-bottom: none; } /* 消除最后一行的分割线 */
    .cp-device-item:active { background: rgba(255, 182, 193, 0.2); }
    .cp-device-avatar { 
        width: 40px; height: 40px; border-radius: 50%; object-fit: cover; 
        border: 2px solid #fff; box-shadow: 0 2px 8px rgba(255,182,193,0.3); flex-shrink: 0; 
    }
    .cp-device-name { 
        font-size: 14px; font-weight: 800; color: var(--theme-text-dark); 
        flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
    }
    /* --- 新增：查手机内部框架 (Code 1) 样式 --- */
    .phone-ui-container {
        display: flex; justify-content: center; align-items: center;
        flex: 1; overflow: visible; background-color: transparent; padding-bottom: 20px;
    }
    .phone-case {
        position: relative; height: 90vh; max-height: 850px; aspect-ratio: 9 / 19.5; max-width: 92vw;
        background: #e6d8d8; border-radius: 55px;
        box-shadow: 0 0 0 2px #d2c2c2, inset 0 0 0 4px #f8f0f0, inset 0 0 0 7px #d8c8c8, 0 20px 50px rgba(0, 0, 0, 0.15);
        padding: 14px; display: flex; flex-direction: column; z-index: 10;
    }
    .hw-btn { position: absolute; background: linear-gradient(to right, #d2c2c2, #e8d8d8); border: 1px solid #c2b2b2; z-index: 0; }
    .btn-silent { top: 110px; left: -3px; width: 4px; height: 26px; border-radius: 4px 0 0 4px; border-right: none; }
    .btn-vol-up { top: 160px; left: -3px; width: 4px; height: 50px; border-radius: 4px 0 0 4px; border-right: none; }
    .btn-vol-down { top: 225px; left: -3px; width: 4px; height: 50px; border-radius: 4px 0 0 4px; border-right: none; }
    .btn-power { top: 180px; right: -3px; width: 4px; height: 70px; border-radius: 0 4px 4px 0; border-left: none; background: linear-gradient(to left, #d2c2c2, #e8d8d8); }
    .screen-bezel { position: relative; flex: 1; background: #111; border-radius: 42px; padding: 10px; display: flex; flex-direction: column; overflow: hidden; }
    .fake-screen { position: relative; flex: 1; background: #FFF5F7; border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; z-index: 1; -webkit-mask-image: -webkit-radial-gradient(white, black); transform: translateZ(0); }
    .ambient-light { position: absolute; border-radius: 50%; filter: blur(50px); z-index: 0; opacity: 0.7; }
    .light-1 { width: 250px; height: 250px; background: #FFE4E8; top: -30px; left: -80px; }
    .light-2 { width: 220px; height: 220px; background: #FDE2E4; bottom: 80px; right: -40px; }
    .notch { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 150px; height: 35px; background: #111; border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; z-index: 3000; display: flex; justify-content: flex-end; align-items: center; padding-right: 35px; }
    .camera-lens { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #444, #050510 60%); box-shadow: inset 0 0 2px rgba(255,255,255,0.1); }
    .fake-status-bar { position: relative; height: 38px; display: flex; justify-content: space-between; align-items: center; padding: 0 24px; font-size: 13px; font-weight: 600; color: #5C4D50; z-index: 2999; }
    .fake-battery-icon { width: 22px; height: 11px; border: 1.5px solid #5C4D50; border-radius: 4px; position: relative; padding: 1px; }
    .fake-battery-icon::after { content: ''; position: absolute; right: -4px; top: 2.5px; width: 2px; height: 3px; background: #5C4D50; border-radius: 0 2px 2px 0; }
    .fake-battery-level { height: 100%; background: #5C4D50; border-radius: 1.5px; width: 100%; transition: width 0.3s; }
    .pages-container { position: relative; flex: 1; z-index: 10; }
    .fake-page { position: absolute; top: 0; left: 0; width: 100%; height: 100%; padding: 10px 20px 90px 20px; opacity: 0; pointer-events: none; transform: scale(0.98); transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); overflow-y: auto; border-radius: 32px; }
    .fake-page::-webkit-scrollbar { display: none; }
    .fake-page.active { opacity: 1; pointer-events: auto; transform: scale(1); }
    .page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; margin-top: 5px; }
    .fake-page-title { font-size: 26px; font-weight: 700; color: #4A3C3F; letter-spacing: 0.5px; }
    .circle-btn { background: #FFF0F3; border: none; width: 32px; height: 32px; border-radius: 16px; display: flex; justify-content: center; align-items: center; color: #D4A5B0; box-shadow: 0 4px 10px rgba(212, 165, 176, 0.2); cursor: pointer; transition: all 0.2s; }
    .circle-btn:active { transform: scale(0.9); }
    .circle-btn svg { width: 16px; height: 16px; fill: currentColor; }
    .spin { animation: spin 0.8s linear infinite; }
    @keyframes spin { 100% { transform: rotate(360deg); } }
    .skeleton-card { background: rgba(255, 255, 255, 0.7); border-radius: 20px; padding: 18px; margin-bottom: 15px; box-shadow: 0 8px 20px rgba(220, 200, 205, 0.2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.9); }
    .skeleton-line { height: 10px; background: #F4E6E8; border-radius: 5px; margin-bottom: 10px; }
    .skeleton-line.short { width: 60%; }
    .gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .gallery-card { position: relative; height: 140px; border-radius: 20px; box-shadow: 0 6px 15px rgba(220, 200, 205, 0.3); border: 1px solid rgba(255, 255, 255, 0.8); overflow: hidden; }
    .img-1 { background: linear-gradient(135deg, #FDE2E4, #F4C4CE); }
    .img-2 { background: linear-gradient(135deg, #FFF0F3, #E6C4CB); }
    .info-btn { position: absolute; bottom: 10px; right: 10px; background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(8px); }
    .fake-modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(244, 230, 232, 0.4); z-index: 2500; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
    .fake-modal-overlay.show { opacity: 1; pointer-events: auto; }
    .fake-modal-box { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px) saturate(150%); width: 78%; border-radius: 28px; padding: 24px; box-shadow: 0 20px 40px rgba(180, 150, 160, 0.3); border: 1px solid rgba(255, 255, 255, 0.9); transform: scale(0.9); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
    .fake-modal-overlay.show .fake-modal-box { transform: scale(1); }
    .fake-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
    .fake-modal-header h3 { font-size: 17px; color: #4A3C3F; font-weight: 700; }
    .fake-modal-body { font-size: 14px; color: #7A6569; line-height: 1.6; max-height: 60vh; overflow-y: auto; }
    .fake-modal-body::-webkit-scrollbar { display: none; }
    .section-title { font-size: 16px; font-weight: 600; color: #5C4D50; margin: 25px 0 12px 5px; }
    .bill-list { background: rgba(255, 255, 255, 0.6); border-radius: 20px; box-shadow: 0 4px 15px rgba(220, 200, 205, 0.15); backdrop-filter: blur(10px); padding: 0 18px; border: 1px solid rgba(255, 255, 255, 0.8); }
    .bill-item { display: flex; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(230, 215, 220, 0.5); }
    .bill-item:last-child { border-bottom: none; }
    .bill-icon { width: 40px; height: 40px; border-radius: 12px; background: #FFF0F3; display: flex; justify-content: center; align-items: center; margin-right: 12px; color: #D4A5B0; }
    .bill-icon svg { width: 20px; height: 20px; fill: currentColor; }
    .bill-info { flex: 1; }
    .bill-name { font-size: 15px; font-weight: 600; color: #4A3C3F; margin-bottom: 4px; }
    .bill-date { font-size: 12px; color: #A88D93; }
    .bill-amount { font-size: 16px; font-weight: 700; }
    .amount-minus { color: #4A3C3F; }
    #page-creator { padding: 10px 0 90px 0; }
    .creator-profile-section { padding: 0 18px; position: relative; }
    .creator-avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(to bottom right, #FFF, #F4E6E8); border: 3px solid #FFF5F7; margin-bottom: 8px; box-shadow: 0 7px 14px rgba(210, 180, 190, 0.3); display: flex; justify-content: center; align-items: center; }
    .creator-avatar svg { width: 36px; height: 36px; fill: #D4A5B0; }
    .creator-name-row { display: flex; align-items: center; gap: 5px; margin-bottom: 2px; }
    .creator-name { font-size: 20px; font-weight: 800; color: #4A3C3F; }
    .verified-badge { width: 15px; height: 15px; fill: #C28291; }
    .creator-handle { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #A88D93; margin-bottom: 8px; }
    .creator-handle svg { width: 13px; height: 13px; fill: currentColor; cursor: pointer; }
    .creator-bio { font-size: 13px; color: #7A6569; line-height: 1.45; margin-bottom: 12px; }
    .creator-stats { display: flex; gap: 20px; margin-bottom: 16px; background: rgba(255,255,255,0.6); padding: 9px 16px; border-radius: 15px; border: 1px solid rgba(255,255,255,0.8); }
    .stat-item { display: flex; flex-direction: column; align-items: flex-start; }
    .stat-num { font-size: 15px; font-weight: 700; color: #4A3C3F; }
    .stat-label { font-size: 12px; color: #A88D93; margin-top: 2px; }
    .creator-actions { display: flex; gap: 12px; margin-bottom: 16px; }
    .btn-primary-fake { flex: 1; height: 42px; border-radius: 21px; border: none; background: linear-gradient(135deg, #D4A5B0, #C28291); color: #FFF; font-size: 14px; font-weight: 600; display: flex; justify-content: center; align-items: center; gap: 7px; box-shadow: 0 7px 18px rgba(194, 130, 145, 0.3); cursor: pointer; }
    .btn-primary-fake svg { width: 17px; height: 17px; fill: currentColor; }
    .btn-icon { width: 42px; height: 42px; border-radius: 21px; border: 1px solid rgba(255,255,255,0.9); background: rgba(255,255,255,0.6); color: #C28291; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 10px rgba(220, 200, 205, 0.2); cursor: pointer; }
    .btn-icon svg { width: 19px; height: 19px; fill: currentColor; }
    .creator-tabs { display: flex; border-bottom: 1px solid rgba(230, 215, 220, 0.5); margin-bottom: 12px; }
    .fake-tab { flex: 1; text-align: center; padding-bottom: 10px; font-size: 14px; font-weight: 600; color: #A88D93; position: relative; cursor: pointer; }
    .fake-tab.active { color: #4A3C3F; }
    .fake-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 25%; width: 50%; height: 3px; background: #C28291; border-radius: 3px; }
    .locked-post { background: rgba(255, 255, 255, 0.7); border-radius: 18px; padding: 14px; margin-bottom: 12px; box-shadow: 0 7px 18px rgba(220, 200, 205, 0.2); border: 1px solid rgba(255, 255, 255, 0.9); }
    .post-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
    .post-date { font-size: 12px; color: #A88D93; }
    .post-tag { font-size: 11px; font-weight: 600; color: #C28291; display: flex; align-items: center; gap: 4px; background: #FFF0F3; padding: 4px 7px; border-radius: 11px; }
    .post-tag svg { width: 11px; height: 11px; fill: currentColor; }
    .post-text { font-size: 13px; color: #5C4D50; margin-bottom: 10px; line-height: 1.45; }
    .locked-media { height: 160px; border-radius: 14px; background: linear-gradient(135deg, #F4E6E8, #EEDFE2); position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center; flex-direction: column; }
    .locked-media::before { content: ''; position: absolute; top: -10%; left: -10%; width: 120%; height: 120%; background: radial-gradient(circle at 50% 50%, #FDE2E4, #E6C4CB); filter: blur(20px); z-index: 0; }
    .lock-icon-wrapper { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 23px; background: rgba(255,255,255,0.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; justify-content: center; align-items: center; color: #C28291; margin-bottom: 9px; border: 1px solid rgba(255,255,255,0.6); animation: eyePulse 2s infinite; }
    @keyframes eyePulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.6); } 70% { transform: scale(1.08); box-shadow: 0 0 0 9px rgba(255,255,255,0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
    .lock-icon-wrapper svg { width: 22px; height: 22px; fill: currentColor; }
    .lock-text { position: relative; z-index: 1; font-size: 12px; font-weight: 600; color: #7A6569; }
    .post-perf { display: flex; gap: 14px; margin-top: 12px; font-size: 12px; font-weight: 600; color: #A88D93; align-items: center; }
    .perf-item { display: flex; align-items: center; gap: 5px; }
    .perf-item svg { width: 15px; height: 15px; fill: currentColor; }
    .fake-dock-wrapper { position: absolute; bottom: 12px; left: 0; width: 100%; display: flex; justify-content: center; z-index: 999; }
    .fake-dock { width: 92%; max-width: 320px; height: 68px; background: rgba(255, 255, 255, 0.65); backdrop-filter: blur(25px) saturate(180%); -webkit-backdrop-filter: blur(25px) saturate(180%); border-radius: 34px; display: flex; justify-content: space-evenly; align-items: center; padding: 0 6px; box-shadow: 0 15px 35px rgba(210, 180, 190, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.9); border: 1px solid rgba(255, 255, 255, 0.5); }
    .fake-dock-btn { background: transparent; border: none; width: 40px; height: 40px; border-radius: 16px; display: flex; justify-content: center; align-items: center; color: #DAB4BC; cursor: pointer; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); flex-shrink: 0; }
    .fake-dock-btn svg { width: 20px; height: 20px; fill: currentColor; transition: transform 0.3s; }
    .fake-dock-btn.active { color: #C28291; background: #FFF; box-shadow: 0 8px 20px rgba(194, 130, 145, 0.25); transform: translateY(-5px); }
    .fake-dock-btn.active svg { transform: scale(1.15); }
    .home-indicator { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 35%; height: 4px; background: #C4B5B8; border-radius: 10px; z-index: 3000; }
    .close-phone-btn {
        position: absolute;
        top: max(30px, env(safe-area-inset-top));
        right: 20px;
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 2010;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        color: #ff6b81;
        transition: transform 0.2s;
    }
    .close-phone-btn svg { width: 22px; height: 22px; fill: currentColor; }
    .close-phone-btn:active { transform: scale(0.85); }
    /* --- 新增：查岗消息列表与详情样式 --- */
    .fake-msg-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: rgba(255,255,255,0.7); border-radius: 16px; border: 1px solid rgba(255,255,255,0.9); box-shadow: 0 4px 10px rgba(220,200,205,0.15); cursor: pointer; transition: transform 0.2s;}
    .fake-msg-item:active { transform: scale(0.98); background: rgba(255,182,193,0.15); }
    .fake-msg-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(212,165,176,0.3); flex-shrink: 0; }
    .fake-msg-info { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 4px; }
    .fake-msg-name { font-size: 14px; font-weight: 700; color: #4A3C3F; }
    .fake-msg-preview { font-size: 11px; color: #A88D93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .fake-msg-time { font-size: 10px; color: #C4B5B8; font-weight: 600; align-self: flex-start; margin-top: 2px; }
    /* --- 新增：查岗备忘录样式 --- */
    .fake-note-item { background: rgba(255,255,255,0.7); border-radius: 16px; padding: 16px; margin-bottom: 12px; box-shadow: 0 4px 10px rgba(220,200,205,0.15); border: 1px solid rgba(255,255,255,0.9); cursor: pointer; transition: transform 0.2s; }
    .fake-note-item:active { transform: scale(0.98); background: rgba(255,182,193,0.15); }
    .fake-note-title { font-size: 15px; font-weight: 800; color: #4A3C3F; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .fake-note-preview { font-size: 12px; color: #7A6569; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
    .fake-note-time { font-size: 10px; color: #A88D93; margin-top: 8px; font-weight: 600; }
    /* --- 新增：查岗浏览器搜索记录样式 --- */
    .fake-search-item { background: rgba(255,255,255,0.7); border-radius: 20px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 4px 10px rgba(220,200,205,0.15); border: 1px solid rgba(255,255,255,0.9); }
    .fake-search-icon { width: 32px; height: 32px; border-radius: 50%; background: #FFF0F3; display: flex; justify-content: center; align-items: center; color: #D4A5B0; flex-shrink: 0; }
    .fake-search-icon svg { width: 16px; height: 16px; fill: currentColor; }
    .fake-search-info { flex: 1; overflow: hidden; }
    .fake-search-keyword { font-size: 14px; font-weight: 700; color: #4A3C3F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
    .fake-search-time { font-size: 11px; color: #A88D93; }
    /* --- 新增：心声面板专属样式 --- */
    :root {
        --color-white: #ffffff;
        --color-dark: #5a4b50;
        --color-dusty: #cbaeb4;
        --color-bright: #ff9eaa;
    }
    /* 悬浮面板基础样式融入绝对定位 */
    .glass-panel {
        background: rgba(255, 255, 255, 0.45);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.6);
        border-radius: 20px;
        padding: 24px 20px;
        box-shadow: 0 8px 32px rgba(90, 75, 80, 0.15);
        animation: float 6s ease-in-out infinite;
        transition: transform 0.3s ease;
        position: absolute;
        top: 105px;
        left: 50%;
        transform: translateX(-50%);
        width: 85%;
        max-width: 360px;
        z-index: 1000;
        display: none;
    }
    .glass-panel:hover {
        animation-play-state: paused;
        transform: translateX(-50%) translateY(-3px) scale(1.02);
    }
    /* 面板悬浮动画 - 配合 translateX 居中，垂直方向使用 translateY 微调 */
    @keyframes float {
        0% { transform: translateX(-50%) translateY(0px); }
        50% { transform: translateX(-50%) translateY(-6px); }
        100% { transform: translateX(-50%) translateY(0px); }
    }
    /* 第一行：心率 */
    .row-heartrate {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
        border-bottom: 1px solid rgba(203, 174, 180, 0.3);
        padding-bottom: 10px;
        cursor: pointer;
        transition: opacity 0.2s;
    }
    .row-heartrate:active {
        opacity: 0.5;
    }
    .heart-icon {
        width: 24px;
        height: 24px;
        fill: var(--color-bright);
        animation: heartbeat 1.2s infinite;
        filter: drop-shadow(0 0 8px rgba(255, 158, 170, 0.6));
    }
    @keyframes heartbeat {
        0% { transform: scale(1); }
        15% { transform: scale(1.25); }
        30% { transform: scale(1); }
        45% { transform: scale(1.25); }
        60% { transform: scale(1); }
        100% { transform: scale(1); }
    }
    .bpm-text {
        font-size: 1.4rem;
        font-weight: 700;
        letter-spacing: 1.5px;
        background: linear-gradient(to right, var(--color-bright), var(--color-dark));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    /* 第二行：城市地点 */
    .row-location {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 20px;
        font-size: 0.8rem;
        color: var(--color-dark);
        opacity: 0.8;
    }
    .location-icon {
        width: 16px;
        height: 16px;
        fill: var(--color-dark);
    }
    /* 想法模块通用样式 */
    .thought-section {
        margin-bottom: 16px;
        position: relative;
        text-align: left;
    }
    .thought-section:last-child {
        margin-bottom: 0;
    }
    .section-title {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--color-dusty);
        margin-bottom: 6px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .section-title::before {
        content: '';
        display: block;
        width: 3px;
        height: 10px;
        border-radius: 2px;
    }
    .thought-content {
        font-size: 0.9rem;
        line-height: 1.5;
        padding: 12px 16px;
        border-radius: 12px; 
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
    }
    /* 第三行：真实想法 */
    .real-thought .section-title::before {
        background-color: var(--color-dusty);
    }
    .real-thought .thought-content {
        background: rgba(255, 255, 255, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.8);
        color: var(--color-dark);
    }
    /* 第四行：阴暗想法 */
    .dark-thought .section-title::before {
        background-color: var(--color-dark);
    }
    .dark-thought .thought-content {
        background: rgba(90, 75, 80, 0.08);
        border: 1px solid rgba(90, 75, 80, 0.1);
        color: var(--color-dark);
        font-style: italic;
        filter: blur(1px);
        opacity: 0.8;
        cursor: default;
    }
    .dark-thought .thought-content:hover {
        filter: blur(0);
        opacity: 1;
        background: rgba(90, 75, 80, 0.12);
        box-shadow: inset 0 2px 10px rgba(90, 75, 80, 0.05);
    }
/* --- 新增：聊天气泡内的固定尺寸相机卡片 --- */
.chat-camera-container { 
    width: 145px; height: 145px; perspective: 1000px; margin: 4px 0; 
    /* 阻止点击事件冒泡，防止触发气泡的其他点击事件（如引用） */
    cursor: pointer; 
}
.chat-camera-card { 
    width: 100%; height: 100%; position: relative; 
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); 
    transform-style: preserve-3d; 
}
.chat-camera-card.flipped { transform: rotateY(180deg); }
.chat-camera-front, .chat-camera-back { 
    position: absolute; width: 100%; height: 100%; 
    backface-visibility: hidden; -webkit-backface-visibility: hidden; 
    border-radius: 14px; border: 1px solid rgba(255, 182, 193, 0.5); 
    overflow: hidden; 
}
.chat-camera-front { 
    background: rgba(255, 255, 255, 0.95); display: flex; flex-direction: column; 
    justify-content: center; align-items: center; 
    box-shadow: 0 6px 16px rgba(255, 182, 193, 0.2);
}
.chat-camera-front .icon-circle {
    width: 46px; height: 46px; border-radius: 50%; 
    background: linear-gradient(135deg, var(--theme-pink) 0%, #ff9eaa 100%);
    display: flex; justify-content: center; align-items: center; 
    color: #fff; margin-bottom: 10px; box-shadow: 0 4px 12px rgba(255, 158, 170, 0.4);
}
.chat-camera-front .icon-circle svg { width: 22px; height: 22px; fill: currentColor; }
.chat-camera-front-text { font-size: 12px; font-weight: 800; color: var(--theme-text-dark); letter-spacing: 1px; }
.chat-camera-back { 
    background: var(--theme-card-bg); transform: rotateY(180deg); padding: 10px; 
    display: flex; flex-direction: column; box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.chat-camera-back-header { font-size: 11px; font-weight: 800; color: var(--theme-pink-dark); margin-bottom: 6px; flex-shrink: 0; border-bottom: 1px solid var(--theme-border); padding-bottom: 4px;}
.chat-camera-back-desc { 
    font-size: 11px; color: var(--theme-text-dark); line-height: 1.4; font-weight: 500;
    overflow-y: auto; flex: 1; word-break: break-all; padding-right: 4px;
}
.chat-camera-back-desc::-webkit-scrollbar { width: 3px; }
.chat-camera-back-desc::-webkit-scrollbar-thumb { background: var(--theme-border); border-radius: 2px; }
/* --- 新增：无气泡卡片样式（适用于相片、转账等） --- */
.msg-bubble.no-bubble {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.msg-bubble.no-bubble .quoted-box {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 8px rgba(255,182,193,0.3);
    margin-bottom: 6px;
}
/* --- 新增：语音气泡专属样式 --- */
.voice-bubble {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    min-width: 60px;
}
.voice-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.voice-waves {
    display: flex;
    align-items: center;
    gap: 3px;
}
.voice-wave {
    width: 2px;
    background-color: var(--theme-pink-dark);
    border-radius: 1px;
}
.voice-wave:nth-child(1), .voice-wave:nth-child(5) { height: 6px; }
.voice-wave:nth-child(2), .voice-wave:nth-child(4) { height: 10px; }
.voice-wave:nth-child(3) { height: 14px; }
.voice-duration {
    font-size: 13px;
    font-weight: 700;
    color: var(--theme-text-dark);
}
.voice-text-content {
    display: none;
    margin-top: 8px;
    padding-top: 8px;
    font-size: 13px;
    color: var(--theme-text-dark);
    line-height: 1.4;
    word-break: break-all;
    border-top: 1px solid rgba(255, 182, 193, 0.4);
}
.voice-bubble.show-text .voice-text-content {
    display: block;
}
/* --- 新增：定位卡片专属样式 --- */
.location-card {
    width: 220px;
    height: 155px;
    background-color: var(--app-bg);
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--theme-border);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    margin: 4px 0;
}
.location-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(255, 182, 193, 0.4);
}
.location-card .map-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--border-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.6;
    z-index: 1;
}
.location-card .map-fade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(255,245,247,0) 30%, var(--app-bg) 90%);
    z-index: 2;
}
.location-card .info-box {
    position: relative;
    z-index: 3;
    background: var(--theme-card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 10px 12px;
    text-align: left;
    border-radius: 20px 20px 0 0;
    height: 58px; 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.location-card .location-title {
    color: var(--theme-text-dark);
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.location-card .location-desc {
    color: var(--text-light);
    font-size: 11px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
}
.location-card .dot {
    width: 6px;
    height: 6px;
    background-color: var(--theme-pink-dark);
    border-radius: 50%;
    display: inline-block;
}
.location-card .pin-container {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}
.location-card .pulse {
    position: absolute;
    width: 36px;
    height: 36px;
    background-color: var(--theme-pink);
    border-radius: 50%;
    animation: pulse-anim 2s infinite;
    opacity: 0;
}
@keyframes pulse-anim {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}
.location-card .pin-icon {
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 4;
    filter: drop-shadow(0 4px 6px var(--theme-pink-shadow));
}
/* --- 新增：顶部横幅通知样式 --- */
.notification-banner {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    z-index: 10000;
    transition: top 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    pointer-events: none;
}
.notification-banner.show {
    top: max(20px, env(safe-area-inset-top));
    pointer-events: auto;
}
.notif-avatar {
    width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
    border: 2px solid #fff; box-shadow: 0 2px 8px rgba(255,182,193,0.3); flex-shrink: 0;
}
.notif-info { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 4px; }
.notif-header { display: flex; justify-content: space-between; align-items: center; }
.notif-name { font-size: 14px; font-weight: 800; color: var(--theme-text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-time { font-size: 11px; color: #cbaeb4; font-weight: 600; }
.notif-desc { font-size: 13px; color: #7A6569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* --- 新增：聊天美化圆角矩形预览专属样式 --- */
.chat-preview-box {
    width: 100%;
    background: var(--app-bg);
    border-radius: 24px;
    padding: 24px 16px;
    box-shadow: 0 8px 24px rgba(255, 182, 193, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}
.vp-chat-container { display: flex; flex-direction: column; gap: 16px; }
    /* --- 新增：聊天页表情包面板样式 --- */
    .chat-emoji-panel {
        position: absolute;
        bottom: calc(76px + env(safe-area-inset-bottom));
        left: 16px;
        right: 16px;
        border-radius: 24px;
        box-shadow: 0 12px 40px rgba(255, 182, 193, 0.35);
        border: 1px solid rgba(255, 255, 255, 0.9);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 100;
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        transform-origin: bottom right; /* 从右下角展开 */
        display: flex;
        flex-direction: column;
        height: 280px;
        overflow: hidden;
    }
    .chat-emoji-panel.active {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }
    .chat-emoji-nav {
        display: flex;
        gap: 12px;
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255, 182, 193, 0.3);
        overflow-x: auto;
        flex-shrink: 0;
    }
    .chat-emoji-nav::-webkit-scrollbar { display: none; }
    .chat-emoji-nav-item {
        font-size: 13px;
        font-weight: 700;
        color: #cbaeb4;
        cursor: pointer;
        white-space: nowrap;
        padding-bottom: 4px;
        position: relative;
        transition: color 0.2s;
    }
    .chat-emoji-nav-item.active {
        color: var(--theme-pink-dark);
    }
    .chat-emoji-nav-item.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 12px;
        height: 3px;
        background: var(--theme-pink-dark);
        border-radius: 2px;
    }
    .chat-emoji-content {
        flex: 1;
        overflow-y: auto;
        padding: 12px 16px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: min-content;
        gap: 10px;
    }
    .chat-emoji-content::-webkit-scrollbar { display: none; }
    .chat-emoji-item {
        aspect-ratio: 1;
        border-radius: 12px;
        overflow: hidden;
        cursor: pointer;
        border: 1px solid var(--theme-border);
        background: var(--theme-card-bg);
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .chat-emoji-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    #btn-chat-emoji svg {
        transition: color 0.3s ease;
    }
    #btn-chat-emoji.active svg {
        color: var(--theme-pink-dark);
        fill: var(--theme-pink-dark);
    }
    /* --- 新增：表情包库专属样式 --- */
    .emoji-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding-bottom: 20px;
    }
    .emoji-item {
        position: relative;
        aspect-ratio: 1;
        background: var(--theme-card-bg);
        border: 1px solid var(--theme-border);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(255, 182, 193, 0.15);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .emoji-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .emoji-desc {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        font-size: 11px;
        color: var(--theme-text-dark);
        text-align: center;
        padding: 4px 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 600;
    }
    .emoji-del-btn {
        position: absolute;
        top: 4px;
        right: 4px;
        width: 24px;
        height: 24px;
        background: rgba(255, 107, 129, 0.9);
        color: #fff;
        border-radius: 50%;
        display: none;
        justify-content: center;
        align-items: center;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        z-index: 10;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }
    .emoji-grid.manage-mode .emoji-del-btn {
        display: flex;
    }
    .group-del-btn {
        margin-left: 4px;
        color: #ff6b81;
        font-size: 14px;
        display: none;
        cursor: pointer;
    }
    .chat-group-nav.manage-mode .group-del-btn {
        display: inline-block;
    }
    /* --- 新增：音乐页面专属样式 --- */
    .music-dock-bar {
        position: absolute;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        height: 64px;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 32px;
        display: flex;
        align-items: center;
        padding: 0 16px 0 10px;
        box-shadow: 0 8px 24px rgba(255, 182, 193, 0.3);
        border: 1px solid rgba(255,255,255,0.9);
        z-index: 100;
        justify-content: space-between;
    }
    .music-dock-left {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1;
        overflow: hidden;
    }
    .music-dock-cover {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        object-fit: cover;
        animation: spin 24s linear infinite; /* 减慢旋转速度 */
        animation-play-state: paused; /* 默认暂停旋转 */
        border: 2px solid #fff;
        box-shadow: 0 0 12px rgba(255,182,193,0.8), 0 2px 8px rgba(255,182,193,0.4);
        flex-shrink: 0;
    }

    .music-dock-cover.playing {
        animation-play-state: running; /* 播放状态下恢复旋转 */
    }
    /* 进度条样式 */
    .music-progress-container {
        position: absolute;
        top: -10px;
        left: 5%;
        width: 90%;
        height: 20px;
        background: transparent;
        cursor: pointer;
        display: flex;
        align-items: center;
        z-index: 10;
        -webkit-tap-highlight-color: transparent;
    }
    .music-progress-bg {
        width: 100%;
        height: 4px;
        background: rgba(255, 182, 193, 0.3);
        border-radius: 2px;
        position: relative;
    }
    .music-progress-fill {
        height: 100%;
        width: 0%;
        background: var(--theme-pink-dark);
        border-radius: 2px;
        position: absolute;
        top: 0;
        left: 0;
        pointer-events: none;
    }
    .music-progress-thumb {
        position: absolute;
        top: 50%;
        right: 0;
        transform: translate(50%, -50%);
        width: 10px;
        height: 10px;
        background: #fff;
        border: 2px solid var(--theme-pink-dark);
        border-radius: 50%;
        box-shadow: 0 1px 4px rgba(255, 182, 193, 0.5);
        pointer-events: none;
    }
    .music-dock-info {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        white-space: nowrap;
    }
    .music-dock-title {
        font-size: 13px;
        font-weight: 800;
        color: var(--theme-text-dark);
        text-overflow: ellipsis;
        overflow: hidden;
    }
    .music-dock-singer {
        font-size: 10px;
        color: #cbaeb4;
        font-weight: 600;
        text-overflow: ellipsis;
        overflow: hidden;
    }
    .music-dock-controls {
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--theme-pink-dark);
        flex-shrink: 0;
    }
    .music-dock-controls svg {
        width: 22px;
        height: 22px;
        fill: currentColor;
        cursor: pointer;
    }
    .music-dock-controls .play-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .music-dock-menu {
        margin-left: 12px;
        color: #cbaeb4;
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }
    .music-dock-menu svg {
        width: 22px;
        height: 22px;
        fill: currentColor;
        cursor: pointer;
    }
    /* --- 新增：音乐封面翻转与歌词面板样式 --- */
    .music-cover-container {
        width: 44px;
        height: 44px;
        perspective: 1000px;
        flex-shrink: 0;
        cursor: pointer;
    }
    .music-cover-flipper {
        width: 100%;
        height: 100%;
        position: relative;
        transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
        transform-style: preserve-3d;
    }
    .music-cover-flipper.flipped {
        transform: rotateY(180deg);
    }
    .music-cover-front, .music-cover-back {
        position: absolute;
        width: 100%;
        height: 100%;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        border-radius: 50%;
    }
    .music-cover-back {
        transform: rotateY(180deg);
        background: rgba(255, 255, 255, 0.9);
        border: 2px solid var(--theme-pink);
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 0 12px rgba(255,182,193,0.6);
        overflow: hidden;
    }
    .music-cover-back svg {
        width: 20px;
        height: 20px;
        fill: var(--theme-pink-dark);
        animation: pulse-anim 2s infinite;
    }
    .lrc-overlay {
        position: absolute;
        bottom: 100px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-height: 350px;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 24px;
        box-shadow: 0 8px 32px rgba(255, 182, 193, 0.3);
        border: 1px solid rgba(255,255,255,0.9);
        z-index: 90;
        display: flex;
        flex-direction: column;
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        transform-origin: bottom center;
    }
    .lrc-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
    .lrc-container {
        flex: 1;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 40px 20px 80px 20px;
        mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
        -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    }
    .lrc-container::-webkit-scrollbar { display: none; }
    .lrc-line {
        font-size: 14px;
        color: #cbaeb4;
        font-weight: 600;
        text-align: center;
        transition: all 0.3s ease;
        line-height: 1.5;
        min-height: 21px;
    }
    .lrc-line.active {
        font-size: 18px;
        color: var(--theme-pink-dark);
        font-weight: 800;
        text-shadow: 0 2px 8px rgba(255, 182, 193, 0.4);
        transform: scale(1.05);
    }
    /* --- 新增：音乐列表与弹窗样式 --- */
    .music-list-container {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .music-list-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid var(--theme-border);
        border-radius: 16px;
        padding: 12px;
        box-shadow: 0 4px 12px rgba(255, 182, 193, 0.15);
    }
    .music-item-left {
        display: flex;
        align-items: center;
        gap: 12px;
        flex: 1;
        overflow: hidden;
    }
    .music-item-cover {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        object-fit: cover;
        border: 1px solid rgba(255,255,255,0.8);
        box-shadow: 0 2px 8px rgba(255,182,193,0.3);
        flex-shrink: 0;
    }
    .music-item-info {
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .music-item-title {
        font-size: 14px;
        font-weight: 800;
        color: var(--theme-text-dark);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .music-item-singer {
        font-size: 11px;
        color: #cbaeb4;
        font-weight: 600;
        margin-top: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .music-item-right {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-shrink: 0;
    }
    .music-item-btn {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: var(--theme-pink-light);
        color: var(--theme-pink-dark);
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: transform 0.2s;
    }
    .music-item-btn:active {
        transform: scale(0.9);
        background: #ffe6ea;
    }
    .music-item-btn svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
    }
    .music-file-upload-row {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .music-file-btn {
        flex: 1;
        padding: 10px;
        background: rgba(255, 255, 255, 0.8);
        border: 1px dashed var(--theme-pink);
        border-radius: 12px;
        font-size: 12px;
        color: var(--theme-pink-dark);
        text-align: center;
        cursor: pointer;
        font-weight: 600;
    }
    .music-file-btn.has-file {
        background: var(--theme-pink-light);
        border-style: solid;
        }
    /* --- 绝美恢复：一起听歌页面专属样式 --- */
    .lt-cover-container {
        width: 180px; height: 180px; border-radius: 50%; padding: 6px;
        background: linear-gradient(135deg, var(--theme-pink-light) 0%, #ffe6ea 100%);
        box-shadow: 0 10px 30px rgba(255, 182, 193, 0.4);
        position: relative;
        margin-top: 10px;
    }
    .lt-music-cover {
        width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
        animation: spin 20s linear infinite; animation-play-state: paused;
        border: 2px solid #fff;
    }
    .lt-music-cover.playing { animation-play-state: running; }
    
    .lt-headphone-section {
        width: 100%; margin-top: 30px; position: relative; display: flex; justify-content: center; align-items: center;
    }
    .lt-wire {
        position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 140px; height: 50px; z-index: 1;
    }
    .lt-avatars {
        display: flex; justify-content: center; gap: 80px; position: relative; z-index: 2; width: 100%;
    }
    .lt-avatar-wrapper {
        display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer;
    }
    .lt-avatar-wrapper img {
        width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
        border: 3px solid #fff; box-shadow: 0 4px 12px rgba(255,182,193,0.5);
        transition: transform 0.2s;
    }
    .lt-avatar-wrapper:active img { transform: scale(0.9); }
    .lt-avatar-hint {
        font-size: 11px; font-weight: 800; color: var(--theme-pink-dark); background: rgba(255,255,255,0.9);
        padding: 2px 10px; border-radius: 12px; border: 1px solid var(--border-light);
        box-shadow: 0 2px 6px rgba(255,182,193,0.3);
    }
    
    .lt-msg-row { display: flex; gap: 10px; align-items: flex-start; width: 100%; }
    .lt-msg-row.ai { flex-direction: row; }
    .lt-msg-row.user { flex-direction: row; justify-content: flex-end; }
    .lt-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid #fff; box-shadow: 0 2px 8px rgba(255,182,193,0.3); flex-shrink: 0; }
    .lt-bubble {
        padding: 8px 14px; font-size: 13px; line-height: 1.5; border-radius: 16px;
        color: var(--theme-text-dark); font-weight: 500; max-width: 80%; word-break: break-all;
        box-shadow: 0 2px 8px rgba(255,182,193,0.2);
    }
    .lt-msg-row.ai .lt-bubble { background: #ffffff; border: 1px solid var(--theme-border); border-top-left-radius: 4px; }
    .lt-msg-row.user .lt-bubble { background: #ffe4e8; border: 1px solid var(--theme-border); border-top-right-radius: 4px; }
        /* --- 绝美重构：一起听歌全屏页面专属高级样式 --- */
    #listen-together-page {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        /* 修复：将顶部的粉色调得非常浅、非常通透，向下渐变到纯白 */
        background: linear-gradient(180deg, #fff0f5 0%, #ffffff 100%);
        z-index: 2800; display: none; flex-direction: column; overflow: hidden;
    }
    #listen-together-page.active { display: flex; animation: slideUp 0.3s ease forwards; }
    
    /* --- 绝美重构：一起听歌全屏页面专属高级样式 --- */
    #listen-together-page {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        /* 极浅、极通透的樱花粉向下渐变到纯白，绝不刺眼 */
        background: linear-gradient(180deg, #fff0f5 0%, #ffffff 100%);
        z-index: 2800; display: none; flex-direction: column; overflow: hidden;
    }
    #listen-together-page.active { display: flex; animation: slideUp 0.3s ease forwards; }
    
    /* 极简导航栏（去油腻背景和阴影，防遮挡状态栏） */
    .lt-header {
        margin-top: max(40px, env(safe-area-inset-top)); 
        padding: 0 16px 16px 16px; 
        display: flex; justify-content: center; align-items: center; position: relative; flex-shrink: 0;
        font-weight: 700; color: var(--theme-text-dark); font-size: 16px;
    }
    .lt-btn-collapse {
        position: absolute; right: 16px; top: -4px; 
        font-size: 14px; color: var(--theme-pink-dark); background: transparent; 
        padding: 6px 10px; cursor: pointer; font-weight: 600; border-radius: 16px;
    }

    .lt-top-area { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; margin-top: 10px; flex-shrink: 0; }
    .lt-avatars-box { display: flex; justify-content: center; gap: 60px; position: relative; z-index: 2; }
    .lt-avatar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
    .lt-avatar-col img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(255,182,193,0.4); z-index: 2; }
    .lt-avatar-name { font-size: 11px; font-weight: 700; color: var(--theme-pink-dark); background: rgba(255,255,255,0.8); padding: 2px 8px; border-radius: 10px; }
    
    /* 精美弧线耳机线，向下渐变消失 */
    .lt-wires-svg { 
        position: absolute; top: 28px; left: 50%; transform: translateX(-50%); 
        width: 300px; height: 150px; z-index: 1; pointer-events: none; 
        mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    }
    .lt-invite-hint { font-size: 12px; font-weight: 600; color: var(--theme-pink-dark); margin-top: 12px; opacity: 0.8; }

    /* 超大封面与 3D 悬浮透明歌词 */
    .lt-middle-area { display: flex; flex-direction: column; align-items: center; margin-top: 24px; flex-shrink: 0; perspective: 1000px; }
    .lt-cover-3d-wrap { width: 260px; height: 260px; position: relative; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); transform-style: preserve-3d; cursor: pointer; margin-bottom: 20px; }
    .lt-cover-3d-wrap.flipped { transform: rotateY(180deg); }
    
    .lt-cover-front { 
        position: absolute; width: 100%; height: 100%; backface-visibility: hidden; 
        border-radius: 50%; overflow: hidden; box-shadow: 0 10px 40px rgba(255,182,193,0.6);
        background: linear-gradient(135deg, var(--theme-pink-light), #ffe6ea); padding: 6px; 
    }
    .lt-cover-front img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #fff; animation: spin 20s linear infinite; animation-play-state: paused; }
    .lt-cover-front img.playing { animation-play-state: running; }
    
    .lt-cover-back { 
        position: absolute; width: 100%; height: 100%; backface-visibility: hidden; 
        transform: rotateY(180deg); background: transparent; 
        display: flex; flex-direction: column; align-items: center; justify-content: center; 
    }
    .lt-lrc-container { width: 120%; height: 100%; overflow-y: scroll; scroll-behavior: smooth; text-align: center; mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent); -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent); padding: 20px 0; }
    .lt-lrc-container::-webkit-scrollbar { display: none; }
    .lt-lrc-line { color: rgba(0,0,0,0.3); font-size: 14px; margin: 16px 0; transition: all 0.3s; line-height: 1.5; font-weight: 600; }
    .lt-lrc-line.active { color: var(--theme-pink-dark); font-size: 18px; font-weight: 800; text-shadow: 0 2px 8px rgba(255,255,255,0.8); transform: scale(1.05); }

    .lt-song-title { font-size: 26px; font-weight: 800; color: var(--theme-text-dark); margin-top: 8px; text-align: center; padding: 0 20px; }
    .lt-song-singer { font-size: 16px; color: var(--theme-pink-dark); font-weight: 600; margin-top: 6px; text-align: center; opacity: 0.8; }

    /* 气泡极简扁平化（去掉毛玻璃和边框，使用纯净实色，压扁高度） */
    .lt-chat-scroll-area {
        flex: 1; width: 100%; padding: 10px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
        max-height: 200px; margin-top: 10px;
    }
    .lt-msg { display: flex; width: 100%; align-items: flex-start; }
    .lt-msg.ai { justify-content: flex-start; }
    .lt-msg.user { justify-content: flex-end; }
    .lt-bubble {
        padding: 8px 14px; 
        font-size: 14px; line-height: 1.4; color: var(--theme-text-dark); font-weight: 500;
        max-width: 85%; word-break: break-all; 
        box-shadow: 0 1px 6px rgba(0,0,0,0.04); 
        border-radius: 16px !important; 
    }
    .lt-msg.ai .lt-bubble { background: #ffffff; border: none; }
    .lt-msg.user .lt-bubble { background: #ffeef2; border: none; }

    /* 底部完全透明 */
    .lt-bottom-area { width: 100%; background: transparent; padding-bottom: max(40px, env(safe-area-inset-bottom) + 20px); flex-shrink: 0; display: flex; flex-direction: column; margin-top: auto; border: none; }
    
    /* 输入栏极简扁平化（彻底去掉粉色边框和内阴影，压扁高度） */
    .lt-input-row { display: flex; gap: 10px; padding: 6px 24px; align-items: center; margin-bottom: 12px; }
    .lt-input-row input { 
        flex: 1; padding: 10px 16px; 
        border-radius: 18px; 
        background: rgba(255,255,255,0.85); 
        border: none; 
        font-size: 14px; font-weight: 500; color: var(--theme-text-dark); 
        box-shadow: none; 
    }
    .lt-input-row input::placeholder { color: #bba0a5; font-weight: 400; }
    .lt-input-row button { 
        padding: 10px 18px; 
        border-radius: 18px; border: none; 
        background: var(--theme-pink-dark); 
        color: #fff; font-weight: 600; font-size: 13px; 
        box-shadow: none; 
    }
    
    /* 控件下移且额外加大 */
    .lt-controls-row { display: flex; flex-direction: column; padding: 0 30px; margin-top: 10px; }
    .lt-progress-bar { width: 100%; height: 5px; background: rgba(255,182,193,0.5); border-radius: 3px; position: relative; cursor: pointer; margin-bottom: 30px; }
    .lt-progress-fill { position: absolute; left: 0; top: 0; height: 100%; background: var(--theme-pink-dark); border-radius: 3px; width: 0%; pointer-events: none; }
    .lt-progress-fill::after { content: ''; position: absolute; right: -7px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; background: #fff; border: 3px solid var(--theme-pink-dark); border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
    
    .lt-btns { display: flex; justify-content: center; align-items: center; gap: 45px; }
    .lt-btn-icon { width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; color: var(--theme-pink-dark); cursor: pointer; transition: transform 0.1s; }
    .lt-btn-icon:active { transform: scale(0.9); }
    .lt-btn-icon svg { width: 36px; height: 36px; fill: currentColor; }
    .lt-btn-play { width: 72px; height: 72px; background: var(--theme-pink-dark); color: #fff; border-radius: 50%; box-shadow: 0 8px 24px rgba(255,182,193,0.7); }
    .lt-btn-play svg { width: 42px; height: 42px; }

    /* 修复底层音乐播放栏蒙版 Bug */
    .music-dock { overflow: visible !important; border-radius: 0 !important; }

    .lt-controls-row { display: flex; flex-direction: column; padding: 0 30px; margin-top: 10px; }
    .lt-progress-bar { width: 100%; height: 5px; background: rgba(255,182,193,0.5); border-radius: 3px; position: relative; cursor: pointer; margin-bottom: 30px; }
    .lt-progress-fill { position: absolute; left: 0; top: 0; height: 100%; background: var(--theme-pink-dark); border-radius: 3px; width: 0%; pointer-events: none; }
    .lt-progress-fill::after { content: ''; position: absolute; right: -7px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; background: #fff; border: 3px solid var(--theme-pink-dark); border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
    
    .lt-btns { display: flex; justify-content: center; align-items: center; gap: 45px; }
    .lt-btn-icon { width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; color: var(--theme-pink-dark); cursor: pointer; transition: transform 0.1s; }
    .lt-btn-icon:active { transform: scale(0.9); }
    .lt-btn-icon svg { width: 36px; height: 36px; fill: currentColor; }
    .lt-btn-play { width: 72px; height: 72px; background: var(--theme-pink-dark); color: #fff; border-radius: 50%; box-shadow: 0 8px 24px rgba(255,182,193,0.7); }
    .lt-btn-play svg { width: 42px; height: 42px; }

    .music-dock { overflow: visible !important; border-radius: 0 !important; }
