/* Reset & Base - 高端杂志风格 */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* ==========================================================
   WIDGET CONTAINER - 集中布局管理系统
   ========================================================== */

:root {
    --safe-area-top: env(safe-area-inset-top);
    --safe-area-bottom: env(safe-area-inset-bottom);
    --safe-area-left: env(safe-area-inset-left);
    --safe-area-right: env(safe-area-inset-right);
    
    --spacing-xs: 2%;
    --spacing-sm: 3%;
    --spacing-md: 4%;
    --spacing-lg: 5%;
    --spacing-xl: 6%;
    
    --font-xs: 12px;
    --font-sm: 13px;
    --font-md: 14px;
    --font-lg: 16px;
    --font-xl: 18px;
    --font-xxl: 24px;
}

/* 手机容器（整屏沉浸：交给 body + homescreen 控制，这里不再额外限制） */
#app {
    width: 100%;
    height: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    background: #ffffff;
    overflow: hidden;
    box-sizing: border-box;
}

/* 锁屏毛玻璃背景 */
.lock-screen-background-blur {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    transition: opacity 0.3s ease-out;
}

/* 锁屏界面 */
.lockscreen {
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* 给固定在底部的按钮留出空间，避免和密码键重合 */
    padding: 4% 0 calc(clamp(90px, 12vh, 130px) + env(safe-area-inset-bottom));
    box-sizing: border-box;
    z-index: 1000;
    transition: transform 0.3s ease-out;
}

/* 密码输入区域 */
.lock-password {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 25px 0;
}

.lock-password-input {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
}

.lock-password-dot {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
}

.lock-password-dot.active {
    background: #ffffff;
}

.lock-password-keyboard {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 280px;
}

.lock-password-row {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.lock-password-key {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Playfair Display', serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lock-password-key:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.lock-password-key i {
    font-size: 20px;
}

.lock-password-key-confirm {
    font-size: 15px;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* 顶部状态栏 */
.lock-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4%;
    margin: 0 4% 8%;
    background: #000000;
    color: #ffffff;
    border-radius: 999px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.lock-status-left span {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
}

.lock-status-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lock-status-right i {
    font-size: 14px;
    color: #ffffff;
}

.lock-status-right span {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
}

/* 主时间显示 */
.lock-time {
    text-align: center;
    margin: 10% 0 6%;
    animation: fadeIn 1s ease-out;
}

.lock-date {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 16px;
    font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    letter-spacing: 2px;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.8s ease-out 0.2s both;
}

.lock-clock {
    font-size: 4rem;
    font-weight: 700;
    font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    letter-spacing: 4px;
    margin: 10px 0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.8s ease-out 0.4s both;
}



.lock-signature {
    font-size: 18px;
    font-weight: 300;
    margin-top: 24px;
    font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    opacity: 0.9;
    line-height: 1.4;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.8s ease-out 0.8s both;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 音乐播放器 */
.lock-music-player {
    background: #000000;
    color: #ffffff;
    border-radius: 24px;
    padding: 3% 4%;
    margin: 0 4% 6%;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.lock-music-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.lock-music-info i {
    font-size: 16px;
    color: #ffffff;
}

.lock-music-info span {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

.lock-music-status {
    margin-bottom: 12px;
}

.lock-music-status span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    display: block;
    margin-bottom: 8px;
}

.lock-music-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    overflow: hidden;
}

.lock-music-progress-bar {
    width: 55%;
    height: 100%;
    background: #ffffff;
    border-radius: 2px;
}

.lock-music-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lock-music-controls i {
    font-size: 14px;
    color: #ffffff;
}

.lock-music-controls span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

/* 消息区域 */
.lock-message {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 4%;
    margin: 0 4% 6%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.lock-message h3 {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 12px;
    font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
}

.lock-message-content p {
    font-size: 14px;
    color: #333333;
    line-height: 1.5;
    margin-bottom: 8px;
}

.lock-message-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
}

.lock-message-emoji {
    font-size: 16px;
}

.lock-message-tag {
    font-size: 12px;
    color: #666666;
    font-style: italic;
}

.lock-message-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.lock-message-controls i {
    font-size: 16px;
    color: #333333;
    cursor: pointer;
}

.lock-countdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.lock-countdown span {
    font-size: 12px;
    color: #666666;
}

.lock-countdown-time {
    font-size: 12px;
    font-weight: 500;
    color: #333333;
}

/* 便签 */
.lock-note {
    background: #ffffff;
    border-radius: 12px;
    padding: 4%;
    margin: 0 4% 10%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
    position: relative;
}

.lock-note::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 16px;
    background: rgba(255, 200, 200, 0.5);
    border-radius: 4px 4px 0 0;
}

.lock-note-content {
    font-family: 'Caveat', cursive;
    font-size: 16px;
    line-height: 1.4;
    color: #333333;
}

.lock-note-content p {
    margin-bottom: 8px;
}

.lock-note-signature {
    font-size: 14px;
    color: #666666;
    margin-top: 12px;
    text-align: right;
}

/* 底部操作按钮 */
.lock-bottom-controls {
    position: fixed;
    left: 0;
    right: 0;
    bottom: env(safe-area-inset-bottom);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 4%;
    margin: 0;
    z-index: 5;
}

.lock-bottom-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lock-bottom-btn i {
    font-size: 20px;
    color: #333333;
}

.lock-unlock-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lock-unlock-circle {
    width: 80px;
    height: 80px;
    border: 2px solid #333333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lock-unlock-circle:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
}

.lock-unlock-circle::before {
    content: '';
    width: 60px;
    height: 60px;
    border: 2px solid #333333;
    border-radius: 50%;
    display: block;
}

.lock-unlock-circle::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid #333333;
    border-radius: 50%;
    display: block;
}

/* Widget Container 基础类 */
.widget-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.widget {
    position: relative;
    flex-shrink: 0;
}

.widget-flex { flex: 1; }
.widget-scroll { overflow-y: auto; overflow-x: hidden; }
.widget-fixed { position: fixed; }
.widget-absolute { position: absolute; }
.widget-sticky { position: sticky; }

/* 安全区适配类 */
.safe-top { padding-top: env(safe-area-inset-top); }
.safe-bottom { padding-bottom: env(safe-area-inset-bottom); }
.safe-left { padding-left: env(safe-area-inset-left); }
.safe-right { padding-right: env(safe-area-inset-right); }
.safe-all {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}
.safe-top-add { padding-top: calc(var(--spacing-md) + env(safe-area-inset-top)); }
.safe-bottom-add { padding-bottom: calc(var(--spacing-md) + env(safe-area-inset-bottom)); }

/* 固定位置组件 */
.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.fixed-bottom-safe {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: calc(var(--spacing-md) + env(safe-area-inset-bottom));
    z-index: 100;
}

/* 页面结构 */
.page-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-header {
    width: 100%;
    flex-shrink: 0;
    padding: var(--spacing-lg);
    padding-top: calc(12% + env(safe-area-inset-top));
}

.page-content {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
    padding-bottom: calc(var(--spacing-lg) + env(safe-area-inset-bottom));
}

.page-footer {
    width: 100%;
    flex-shrink: 0;
    padding: var(--spacing-md);
    padding-bottom: calc(var(--spacing-md) + env(safe-area-inset-bottom));
}

/* 卡片组件 */
.widget-card {
    width: 100%;
    flex-shrink: 0;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 16px;
    box-shadow: 6px 6px 0px rgba(0,0,0,0.08);
    overflow: visible;
}

.widget-card-scroll {
    max-height: 300px;
    overflow-y: auto;
}

/* 底部导航 */
.bottom-nav-widget {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: var(--spacing-sm);
    padding-bottom: calc(var(--spacing-sm) + env(safe-area-inset-bottom));
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    z-index: 100;
}

/* 输入区域 */
.input-widget {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    padding-bottom: calc(var(--spacing-md) + env(safe-area-inset-bottom));
    background: #FDFDFB;
    border-top: 2px solid #000000;
    z-index: 100;
}

/* 消息区域 */
.messages-widget {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
    padding-bottom: calc(20% + env(safe-area-inset-bottom));
}

/* 模态框 */
.modal-overlay-widget {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    z-index: 200;
}

.modal-content-widget {
    width: 90%;
    max-width: 400px;
    max-height: 80%;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 16px;
    overflow: hidden;
}

/* 响应式间距 */
@media (max-width: 480px) {
    :root {
        --spacing-xs: 2%;
        --spacing-sm: 3%;
        --spacing-md: 4%;
        --spacing-lg: 5%;
        --spacing-xl: 6%;
    }
    
    .page-header {
        padding-top: calc(10% + env(safe-area-inset-top));
        padding-bottom: var(--spacing-sm);
    }
    
    .page-content {
        padding: var(--spacing-sm);
    }
}

@media (max-width: 360px) {
    :root {
        --spacing-xs: 1.5%;
        --spacing-sm: 2%;
        --spacing-md: 3%;
        --spacing-lg: 4%;
        --spacing-xl: 5%;
    }
}

/* 横屏适配 */
@media (max-height: 500px) and (orientation: landscape) {
    .page-header {
        padding-top: calc(5% + env(safe-area-inset-top));
        padding-bottom: var(--spacing-xs);
    }
}

/* ==========================================================
   APP-SPECIFIC WIDGETS - 各应用专用布局
   ========================================================== */

/* Chat App Widget */
.chat-app-widget {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-header-widget {
    width: 100%;
    flex-shrink: 0;
    padding: var(--spacing-lg);
    padding-top: calc(10% + env(safe-area-inset-top));
    border-bottom: 2px solid rgba(0,0,0,0.15);
}

.chat-messages-widget {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
    padding-bottom: calc(20% + env(safe-area-inset-bottom));
}

.chat-input-widget {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    padding-bottom: calc(var(--spacing-md) + env(safe-area-inset-bottom));
    background: #FDFDFB;
    border-top: 2px solid #000000;
    z-index: 100;
}

/* Call App Widget */
.call-app-widget {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.call-header-widget {
    width: 100%;
    flex-shrink: 0;
    padding: var(--spacing-lg);
    padding-top: 8%;
    text-align: center;
}

.call-avatar-widget {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.call-messages-widget {
    width: 100%;
    max-height: 25%;
    overflow-y: auto;
    padding: var(--spacing-md);
}

.call-controls-widget {
    width: 100%;
    flex-shrink: 0;
    padding: var(--spacing-lg);
    padding-bottom: calc(var(--spacing-lg) + env(safe-area-inset-bottom));
}

/* Workshop App Widget */
.workshop-app-widget {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.workshop-header-widget {
    width: 100%;
    flex-shrink: 0;
    padding: var(--spacing-lg);
    padding-top: calc(10% + env(safe-area-inset-top));
}

.workshop-content-widget {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
    padding-bottom: calc(var(--spacing-lg) + env(safe-area-inset-bottom));
}

.workshop-card-widget {
    width: 100%;
    flex-shrink: 0;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 16px;
    box-shadow: 6px 6px 0px rgba(0,0,0,0.08);
    overflow: visible;
}

/* Console App Widget */
.console-app-widget {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.console-header-widget {
    width: 100%;
    flex-shrink: 0;
    padding: var(--spacing-lg);
    padding-top: calc(10% + env(safe-area-inset-top));
}

.console-content-widget {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
    padding-bottom: calc(var(--spacing-lg) + env(safe-area-inset-bottom));
}

.console-card-widget {
    width: 100%;
    flex-shrink: 0;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: #FFFFFF;
    border: 2px solid #000000;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.12);
}

/* Theme App Widget */
.theme-app-widget {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.theme-header-widget {
    width: 100%;
    flex-shrink: 0;
    padding: var(--spacing-lg);
    padding-top: calc(10% + env(safe-area-inset-top));
}

.theme-content-widget {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
    padding-bottom: calc(var(--spacing-lg) + env(safe-area-inset-bottom));
}

.theme-card-widget {
    width: 100%;
    flex-shrink: 0;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 16px;
    box-shadow: 6px 6px 0px rgba(0,0,0,0.08);
}

/* Mate App Widget */
.mate-app-widget {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mate-header-widget {
    width: 100%;
    flex-shrink: 0;
    padding: var(--spacing-lg);
    padding-top: calc(10% + env(safe-area-inset-top));
}

.mate-content-widget {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
    padding-bottom: calc(var(--spacing-lg) + env(safe-area-inset-bottom));
}

.mate-card-widget {
    width: 100%;
    flex-shrink: 0;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 16px;
    box-shadow: 6px 6px 0px rgba(0,0,0,0.08);
}

/* Feed App Widget */
.feed-app-widget {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feed-header-widget {
    width: 100%;
    flex-shrink: 0;
    padding: var(--spacing-lg);
    padding-top: calc(8% + env(safe-area-inset-top));
}

.feed-content-widget {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    padding-bottom: calc(15% + env(safe-area-inset-bottom));
}

.feed-fab-widget {
    position: fixed;
    bottom: calc(12% + env(safe-area-inset-bottom));
    right: 5%;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #000000;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ==========================================================
   END WIDGET CONTAINER
   ========================================================== */

html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body { 
    font-family: 'Inter', Arial, sans-serif;
    background: transparent;
    color: #000000;
    overflow: hidden; 
    height: 100vh; 
    height: 100dvh; /* 动态视口高度 */
    user-select: none; 
    -webkit-tap-highlight-color: transparent; 
    position: relative;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

/* 主屏幕布局 */
.homescreen {
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* 主屏幕内部“隐形手机宽度”，锁住图标和小组件的布局宽度 */
.homescreen-inner {
    width: 100%;
    max-width: 430px; /* 模拟常见手机宽度 */
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative; /* 让内部绝对定位元素以它为参照 */
    /* 为上方6行网格预留出底部一行 Dock 的空间，让 6×4 区域不会被遮挡 */
    padding-bottom: calc(160px + env(safe-area-inset-bottom));
    box-sizing: border-box;
}

.homescreen .status-bar {
    flex-shrink: 0;
}

/* 背景肌理效果 */
.homescreen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0,0,0,0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0,0,0,0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* 页面容器 */
.home-pages {
    width: 100%;
    flex: 1 1 auto; /* 由容器剩余高度决定，底部 UI 不再重叠遮挡 */
    display: flex;
    overflow: visible;
    transition: transform 0.3s ease;
    box-sizing: border-box;
    touch-action: none;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.home-pages::-webkit-scrollbar {
    display: none;
}

/* 单个页面 */
.home-page {
    width: 100%;
    min-width: 100%;
    height: 100%;
    min-height: 100%;
    flex-shrink: 0;
    overflow: auto;
    padding: 4% 4%;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #000000 #f5f5f5;
}

/* 应用网格 - 4列布局 */
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4%;
    padding: 4% 0;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* 第二页容器 */
.page-2-grid {
    position: relative;
    height: 100%;
}

/* 6行×4格网格布局 */
.grid-6x4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 1%;
    padding: 5%;
    width: 100%;
    height: calc(100% - var(--home-bottom-gap));
    min-width: 0;
    box-sizing: border-box;
}

/* 网格单元格 */
.grid-cell {
    border-radius: 8px;
    position: relative;
}

/* 第1-2行：音乐组件 */
.grid-row-1-2 {
    grid-column: 1 / 5;
    grid-row: 1 / 3;
}

/* 第3-4行：app和胶囊框 */
.grid-row-3-4 {
    grid-column: 1 / 5;
    grid-row: 3 / 5;
}

/* 第二页第3-4行：音乐小组件（图上“耳机线+日期文案”整图背景） */
.grid-row-3-4 .music-widget-hero {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    /* 交给 ::before 做透明玻璃底，这里保持透明避免叠加过浓 */
    background: transparent;

    /* 内部再做一套 4列x2行，把“中间耳机线占两列”做成裁切 */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);

    /* 让玻璃/透明层级稳定 */
    isolation: isolate;
}

.grid-row-3-4 .music-widget-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #000000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 0;
}

/* 开启毛玻璃时：音乐组件仍为纯黑底 */
.home-glass-mode .grid-row-3-4 .music-widget-hero::before {
    background: #000000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.grid-row-3-4 .music-hero-songinfo,
.grid-row-3-4 .music-hero-controls,
.grid-row-3-4 .music-hero-date {
    position: relative;
    z-index: 2;
}

.grid-row-3-4 .music-hero-songinfo {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    align-self: start;
    justify-self: start;
    padding-left: 14px;
    padding-top: 12px;
    padding-right: 6px;
}

.grid-row-3-4 .music-hero-controls {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    align-self: end;
    justify-self: start;
    padding-left: 18px;
    padding-bottom: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.grid-row-3-4 .music-hero-date {
    grid-column: 4 / 5;
    grid-row: 1 / 3;
    align-self: center;
    justify-self: end;
    padding-right: 10px;
    padding-left: 10px;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateX(-8px);
}

.grid-row-3-4 .music-hero-songinfo .song-name {
    font-size: 32px !important;
    letter-spacing: -0.9px !important;
    color: #ffffff !important;
    text-shadow: none !important;
}

.grid-row-3-4 .music-hero-songinfo .artist {
    font-size: 15px !important;
    margin-top: 6px !important;
    font-style: italic;
    color: rgba(255, 255, 255, 0.75) !important;
    text-shadow: none;
}

.grid-row-3-4 .music-date-month {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.92);
}

.grid-row-3-4 .music-date-day {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 62px;
    line-height: 1;
    letter-spacing: -2px;
    color: rgba(255, 255, 255, 0.98);
}

.grid-row-3-4 .music-hero-earphone {
    /* 固定为“底图”装饰：不参与布局，避免按钮高度变化导致形变 */
    position: absolute;
    top: 0;
    bottom: 0;
    /* 原装饰图 assets/music-earphone-line.png 未收录；无图时保留布局，不请求 404 */
    background-repeat: no-repeat;
    /* 关键：让每个 1/4 列里显示整张图的一半 */
    background-size: 200% 100%;
    /* 灰色滤镜 + 轻微阴影 */
    filter: grayscale(1) saturate(0) brightness(1.06) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.14));
    opacity: 0.92;
    pointer-events: none;
    z-index: 1;
}

.grid-row-3-4 .music-hero-earphone-left {
    left: 25%;
    width: 25%;
    background-position: left center;
}

.grid-row-3-4 .music-hero-earphone-right {
    left: 50%;
    width: 25%;
    background-position: right center;
}

/* 精修：音乐组件的按键（更像半透明手机玻璃按钮） */
.grid-row-3-4 .music-hero-controls {
    padding: 0 0 14px 18px; /* 让按钮整体往右一点 */
    gap: 10px;
    transform: translateX(10px);
}

.grid-row-3-4 .music-hero-controls .icon-btn {
    width: 56px !important;
    height: 56px !important;
    border-radius: 20px;
    /* 只保留图标：按钮本体背景完全透明 */
    background: transparent !important;
    border: 0 !important;
    outline: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none !important;

    /* 去掉浏览器默认 button 外观 */
    appearance: none !important;
    -webkit-appearance: none !important;
}

.grid-row-3-4 .music-hero-controls .icon-btn svg {
    width: 26px;
    height: 26px;
    display: block;
    fill: #ffffff;
}

.grid-row-3-4 .music-hero-controls .icon-btn svg path {
    fill: #ffffff !important;
}

.grid-row-3-4 .music-hero-controls .icon-btn:hover {
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.grid-row-3-4 .music-hero-controls .icon-btn:active {
    transform: none !important;
}

.grid-row-3-4 .music-hero-controls button[aria-label="next"] {
    position: relative;
    transform: translateY(16px) !important;
}

.grid-row-3-4 .music-hero-controls button[aria-label="next"]:hover {
    transform: translateY(16px) !important;
}

.grid-row-3-4 .music-hero-controls button[aria-label="next"]:active {
    transform: translateY(16px) !important;
}

.grid-row-3-4 .music-hero-controls .icon-btn.heart {
    position: relative;
    transform: translateY(16px) !important;
}

.grid-row-3-4 .music-hero-controls .icon-btn.heart:hover {
    transform: translateY(16px) !important;
}

.grid-row-3-4 .music-hero-controls .icon-btn.heart:active {
    transform: translateY(16px) !important;
}

.grid-row-3-4 .music-hero-controls .icon-btn:focus,
.grid-row-3-4 .music-hero-controls .icon-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: 0 !important;
}

/* 第5-6行（第一页）：预留空间（呼吸感上下对称） */
.home-page:not(.page-2-grid) .grid-row-5-6 {
    grid-column: 1 / 5;
    grid-row: 5 / 7;
    /* 给底部贴纸+app 留出“呼吸感”，并让它更靠下 */
    --home-bottom-breath: clamp(14px, 2.2vh, 26px);
    padding-top: var(--home-bottom-breath);
    padding-bottom: var(--home-bottom-breath);
    box-sizing: border-box;
}

/* 保证底部内容不被 padding 压缩：高度随上下内边距同步缩小 */
.home-page:not(.page-2-grid) .grid-row-5-6 .first-page-bottom-content {
    height: calc(100% - (var(--home-bottom-breath) * 2));
    box-sizing: border-box;
}

/* 第二页第5-6行：避免 absolute 破坏网格高度自适应 */
.page-2-grid .grid-row-5-6 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    justify-items: stretch;

    /* 让第二页底部内容高度/“呼吸感”跟第一页一致 */
    --home-bottom-breath: clamp(14px, 2.2vh, 26px);
    padding-top: var(--home-bottom-breath);
    padding-bottom: var(--home-bottom-breath);
    box-sizing: border-box;
}

.page-2-grid .app-grid-bottom-left {
    position: static !important; /* 不再脱离文档流，随单元高度铺满 */
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100%;
    height: calc(100% - (var(--home-bottom-breath) * 2));
}

.page-2-grid .glass-capsules {
    position: static !important; /* 不再脱离文档流，随单元高度铺满 */
    top: auto !important;
    bottom: auto !important;
    right: auto !important;
    width: 100%;
    height: calc(100% - (var(--home-bottom-breath) * 2));
    justify-content: center; /* 与左侧2x2 app垂直对齐 */
    align-items: flex-end;
}

/* 第一页 - 第1-4行：照片小组件 */
.grid-row-1-4 {
    grid-column: 1 / 5;
    /* 第一页：照片小组件占 4 行，减少底部空白 */
    grid-row: 1 / 5;
}

/* 第一页底部内容 */
.first-page-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 10px;
    /* 防止容器因内容高度不足出现大片留白 */
    min-height: 0;
}

/* 第一页贴纸小组件 */
.first-page-bottom-content .sticker-widget {
    flex: none;
    height: 100%;
}

/* 第一页app图标 */
.first-page-apps {
    flex: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
    height: 100%;
}

/* 引入字体 */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,600&family=Inter:wght@400;600&display=swap');

:root {
  /* 让灵动岛/胶囊背景变为真正“半透明玻璃”，底图可以透出来 */
  --panel-bg: #000000;
  --text-white: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.7);
}

/* home-glass-mode：主界面毛玻璃开关开启时生效（胶囊保持纯黑底） */
.home-glass-mode {
  --panel-bg: #000000;
}

/* 灵动岛小组件 */
.dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  padding: 20px;
  width: 100%;
  height: 100%;
  justify-content: center;
  box-sizing: border-box;
}

/* 顶部行布局 */
.top-row {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* 小胶囊 */
.pill-sm {
  background: #000000;
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 14px;
  border: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.icon-week { 
  width: 24px; 
  height: 24px; 
}

/* 圆环进度条 */
.progress-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  /* 模拟图中约 75% 的进度 */
  background: conic-gradient(white 0deg 270deg, #333 270deg 360deg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.inner-dark {
  width: 34px;
  height: 34px;
  background: var(--panel-bg);
  border-radius: 50%;
}

/* 大胶囊 */
.pill-lg {
  background: #000000;
  color: #ffffff;
  width: 100%;
  max-width: 400px;
  padding: 12px 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-sizing: border-box;
}

/* 开启毛玻璃时：胶囊仍为纯黑 + 弥散阴影 */
.home-glass-mode .pill-sm {
  border: none;
  background: #000000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-glass-mode .pill-lg {
  border: none;
  background: #000000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* 左侧圆形图片 */
.avatar-section {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  border: 1px solid #333;
  flex-shrink: 0;
}

.avatar-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 中间时间天气 */
.time-weather {
  flex-grow: 1;
  min-width: 0;
}

.time-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.meridiem {
  font-weight: bold;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}

.clock {
  font-size: 18px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weather-row {
  font-size: 12px;
  color: var(--text-white);
  margin-top: 4px;
  font-family: "Microsoft YaHei", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 右侧日期与口号 */
.date-section {
  text-align: right;
  flex-shrink: 0;
  min-width: 0;
}

.slogan {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.date-str {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 第二页 - 左下角2x2网格 */
.app-grid-bottom-left {
    position: absolute;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
    width: 50%;
}

/* 右侧胶囊框容器 */
.glass-capsules {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
}

/* 毛玻璃胶囊框 */
.glass-capsule {
    padding: 14px 28px;
    border-radius: 50px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 160px;
}

.home-glass-mode .glass-capsule {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.glass-capsule:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 黑色胶囊 */
.glass-black {
    background: rgba(0, 0, 0, 0.95);
    margin-right: 40px;
}

/* 灰色胶囊 */
.glass-gray {
    background: rgba(68, 68, 68, 0.7);
}

.home-glass-mode .glass-black {
    background: rgba(0, 0, 0, 0.55);
}

.home-glass-mode .glass-gray {
    background: rgba(68, 68, 68, 0.38);
}

/* 胶囊文字 */
.capsule-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* 引入高级衬线体 */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;1,400&display=swap');

:root {
    --main-color: #ffffff;
    --sub-color: #cccccc;
}

/* 音乐播放器 */
.player-container {
    position: relative;
    width: 100%;
    user-select: none;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 唱片槽与遮罩 */
.record-slot {
    width: 100%;
    height: 155px;
    position: relative;
    overflow: hidden;
    /* 顶部的切口细线 */
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* 唱片主体 */
.record-disk {
    width: 290px;
    height: 290px;
    background: #0a0a0a;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

/* 视觉遮罩：把“上半圆”用与背景同色的正方形遮住 */
.record-disk::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 50%;
    /* 与主屏白底接近：让遮罩看起来像“背景盖住” */
    background: #fdfdfb;
    z-index: 5;
    pointer-events: none;
}

/* 模拟黑胶纹理与光泽 */
.vinyl-texture {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, 
        transparent 38%, 
        rgba(255,255,255,0.03) 39%, 
        transparent 40%,
        rgba(255,255,255,0.03) 55%,
        transparent 56%);
    /* 增加拉丝金属感光泽 */
    background-image: 
        repeating-radial-gradient(circle, #111 0, #111 1px, #0a0a0a 2px, #0a0a0a 3px);
    opacity: 0.8;
}

.record-cover {
    width: 155px;
    height: 155px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    border: 1px solid #000;
}

.record-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 底部布局 */
.player-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 25px;
    padding: 0 5px;
}

.controls {
    display: flex;
    gap: 28px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 20px;
    height: 20px;
    fill: var(--main-color);
    display: flex;
    align-items: center;
    transition: opacity 0.3s;
}

.icon-btn:hover { opacity: 0.5; }

/* 调整各图标大小 */
.play-pause { width: 24px; height: 24px; }
.heart { width: 18px; height: 18px; margin-left: 5px; }

/* 文本排版 */
.info { text-align: right; }

.song-name {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 400;
    margin: 0;
    color: var(--main-color);
    letter-spacing: -0.5px;
}

.artist {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 17px;
    margin: 4px 0 0;
    color: var(--sub-color);
}

/* ==========================================================
   第二页（grid-row-3-4）音乐播放器：自适应网格单元大小
   解决：在极端比例/缩放下固定 px 尺寸导致播放器“过大溢出”
   ========================================================== */
.grid-row-3-4 .player-container {
    height: 100%;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
}

.grid-row-3-4 .record-slot {
    /* 让唱片区域跟随单元高度，而不是固定 155px */
    height: 58%;
}

.grid-row-3-4 .record-disk {
    /* 半个唱片：让唱片直径等于槽高度，然后上移半径被裁剪 */
    width: 100%;
    height: 100%;
    top: -50%;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    background: rgba(10, 10, 10, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.grid-row-3-4 .record-cover {
    width: 54%;
    height: 54%;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.grid-row-3-4 .record-disk::after {
    /* 移除之前用同色遮罩盖掉上半部分的方案 */
    display: none;
}

.grid-row-3-4 .vinyl-texture {
    opacity: 0.35;
}

.grid-row-3-4 .record-cover img {
    opacity: 0.55;
    filter: saturate(0.7) contrast(1.05);
}

.grid-row-3-4 .player-footer {
    margin-top: 10px;
    padding: 0 6px;
}

.grid-row-3-4 .controls {
    gap: 16px;
}

.grid-row-3-4 .icon-btn {
    width: 18px;
    height: 18px;
}

.grid-row-3-4 .play-pause {
    width: 20px;
    height: 20px;
}

.grid-row-3-4 .heart {
    width: 16px;
    height: 16px;
    margin-left: 4px;
}

.grid-row-3-4 .song-name {
    font-size: 20px;
    letter-spacing: -0.3px;
}

.grid-row-3-4 .artist {
    font-size: 11px;
    margin-top: 3px;
}

/* 旋转动画 */
@keyframes rotate {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

.rotate { animation: rotate 20s linear infinite; }
.paused { animation-play-state: paused; }

/* 第1行 - 通话小组件 (1行×4格) */
.grid-row-1 {
    grid-column: 1 / 5;
    grid-row: 1 / 2;
}

/* 第2行 - 4个app */
.app-icon.grid-row-2:nth-child(2) { grid-column: 1 / 2; grid-row: 2 / 3; }
.app-icon.grid-row-2:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; }
.app-icon.grid-row-2:nth-child(4) { grid-column: 3 / 4; grid-row: 2 / 3; }
.app-icon.grid-row-2:nth-child(5) { grid-column: 4 / 5; grid-row: 2 / 3; }

/* 第3-4行 - 天气时间小组件 (2行×4格) */
.grid-row-3-4 {
    grid-column: 1 / 5;
    grid-row: 3 / 5;
}

/* 第5-6行 - 音乐播放器组件 (2行×4格) */
.grid-row-5-6 {
    grid-column: 1 / 5;
    grid-row: 5 / 7;
}

/* 应用图标 */
.app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    transition: transform 0.3s ease;
    aspect-ratio: 1 / 1.2;
    flex-shrink: 0;
}

.app-icon:hover {
    transform: scale(1.05);
}

.app-icon:active {
    transform: scale(0.95);
}

.app-icon-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 100%;
    /* 默认：不开玻璃时使用实心黑底 */
    background: #000000;
    border: 1.5px solid #000000;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.08);
    margin-bottom: 6px;
    position: relative;
    box-sizing: border-box;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.home-glass-mode .app-icon-wrapper {
    /* 开玻璃时：黑色半透明 + 毛玻璃 */
    background: rgba(0, 0, 0, 0.22);
    border: 1.5px solid rgba(0, 0, 0, 0.35);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.app-icon-svg {
    width: 50%;
    height: 50%;
}

.app-icon-font {
    font-size: 1.8rem;
    color: #FFFFFF;
}

.app-label {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    color: #333333;
    line-height: 1.3;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}

/* 小组件 */
.app-widget {
    background: #FFFFFF;
    border: 1.5px solid #000000;
    border-radius: 6vw;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.app-widget:hover {
    transform: scale(1.02);
}

/* 小组件装饰元素 */
.app-widget::before {
    content: '✦';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 12px;
    color: rgba(0,0,0,0.1);
    font-weight: bold;
}

.app-widget::after {
    content: '●';
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-size: 8px;
    color: rgba(0,0,0,0.1);
}

/* 小组件头部 */
.widget-header {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* 2x2小组件 */
.widget-2x2 {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 2 / 2;
}

/* 4x2小组件 */
.widget-4x2 {
    grid-column: span 4;
    grid-row: span 2;
    aspect-ratio: 4 / 2;
}

/* 2x4小组件 */
.widget-2x4 {
    grid-column: span 2;
    grid-row: span 4;
    aspect-ratio: 2 / 4;
}

/* 网格间隔 */
.grid-spacer {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 1 / 1;
}

/* 4x4小组件 */
.widget-4x4 {
    grid-column: span 4;
    grid-row: span 4;
    aspect-ratio: 1 / 1;
}

/* 照片小组件 - 高定杂志画报风格 */
.photo-widget {
    background: rgba(250, 250, 250, 0.35);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.08),
        0 8px 24px rgba(0,0,0,0.04),
        inset 0 1px 1px rgba(255,255,255,0.8);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-widget:hover {
    transform: translateY(-4px) scale(1.005);
    box-shadow: 
        0 30px 80px rgba(0,0,0,0.12),
        0 12px 32px rgba(0,0,0,0.06),
        inset 0 1px 1px rgba(255,255,255,0.8);
}

.photo-widget-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
    gap: 12px;
}

.photo-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 4px 8px 4px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.photo-widget-date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.photo-date-day {
    font-size: 42px;
    font-weight: 300;
    color: #1a1a1a;
    line-height: 0.9;
    letter-spacing: -3px;
    font-family: 'Times New Roman', serif;
    font-style: italic;
}

.photo-date-weekday {
    font-size: 9px;
    color: #999999;
    margin-top: 6px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.photo-widget-text {
    text-align: right;
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.4s ease;
    border-radius: 8px;
    position: relative;
}

.photo-widget-text::after {
    content: '✎';
    position: absolute;
    right: -4px;
    top: 4px;
    font-size: 8px;
    color: #cccccc;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-widget-text:hover {
    background: rgba(0,0,0,0.03);
}

.photo-widget-text:hover::after {
    opacity: 1;
}

.photo-text-line1 {
    font-size: 11px;
    color: #1a1a1a;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.photo-text-line2 {
    font-size: 10px;
    color: #888888;
    line-height: 1.5;
    font-weight: 300;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.photo-widget-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex: 1;
    min-height: 0;
    align-items: stretch;
    padding: 4px;
}

.photo-widget-item {
    position: relative;
    border-radius: 60px;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
    height: 100%;
    min-height: 0;
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-widget-item:nth-child(odd) {
    transform: translateY(-8px);
}

.photo-widget-item:nth-child(even) {
    transform: translateY(8px);
}

.photo-widget-item:hover {
    transform: translateY(0) scale(1.02);
    box-shadow: 
        0 8px 24px rgba(0,0,0,0.15);
    z-index: 1;
}

.photo-widget-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
    z-index: 2;
}

.photo-widget-item:hover::before {
    background: rgba(0,0,0,0.1);
}

.photo-widget-item::after {
    content: '⟳';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.photo-widget-item:hover::after {
    opacity: 1;
}

.photo-widget-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 去掉照片小组件灰色滤镜：保持原图颜色 */
    filter: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-widget-item:hover .photo-widget-img {
    filter: none;
    transform: scale(1.1);
}

.photo-widget-overlay {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: rgba(255,255,255,0.9);
    border-radius: 1px;
}

/* 照片小组件文字编辑对话框 */
.photo-widget-edit-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.photo-widget-edit-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    width: 320px;
    max-width: 90%;
    box-shadow: 
        0 25px 80px rgba(0,0,0,0.15),
        0 10px 30px rgba(0,0,0,0.1);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.photo-widget-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.photo-widget-edit-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.5px;
}

.photo-widget-edit-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #666;
}

.photo-widget-edit-close:hover {
    background: rgba(0,0,0,0.1);
    transform: rotate(90deg);
}

.photo-widget-edit-body {
    padding: 24px;
}

.photo-widget-edit-field {
    margin-bottom: 20px;
}

.photo-widget-edit-field:last-child {
    margin-bottom: 0;
}

.photo-widget-edit-field label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.photo-widget-edit-field input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    font-size: 15px;
    color: #1a1a1a;
    background: rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.photo-widget-edit-field input:focus {
    outline: none;
    border-color: rgba(0,0,0,0.2);
    background: rgba(255,255,255,1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.photo-widget-edit-field input::placeholder {
    color: #bbb;
}

.photo-widget-edit-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px;
}

.photo-widget-edit-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-widget-edit-cancel {
    background: rgba(0,0,0,0.05);
    color: #666;
}

.photo-widget-edit-cancel:hover {
    background: rgba(0,0,0,0.1);
}

.photo-widget-edit-save {
    background: #1a1a1a;
    color: #fff;
}

.photo-widget-edit-save:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Feed小组件 */
.feed-widget {
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feed-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
}

/* Nest小组件 */
.nest-widget {
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.nest-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

/* Notes小组件 */
.notes-widget {
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.notes-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
}

/* 音乐播放器小组件 */
.music-widget {
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 笑脸小组件 */
.smiley-widget {
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.smiley-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

/* Companion小组件 */
.companion-widget {
    background: transparent;
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: none;
}

.companion-widget::before,
.companion-widget::after {
    display: none;
}

.companion-content {
    padding: 24px 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.companion-title {
    font-size: 24px;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    color: #000000;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.companion-subtitle {
    font-size: 12px;
    color: #666666;
    margin-bottom: 24px;
    font-weight: 400;
}

.companion-smiley {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
}

.smiley-svg {
    width: 100px;
    height: 100px;
}

/* 录音设备小组件 */
.recorder-widget {
    position: relative;
    overflow: hidden;
}

/* Spotify风格音乐小组件 */
.music-widget {
    position: relative;
    overflow: hidden;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* 贴纸小组件 */
.app-widget.sticker-widget {
    position: relative;
    overflow: hidden;
    border: none !important;
    border-width: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.app-widget.sticker-widget::before,
.app-widget.sticker-widget::after {
    display: none !important;
    content: none !important;
}



.sticker-widget-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticker-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}



/* 通话小组件 */
.call-widget {
    background: #000000 !important;
    border-radius: 50px !important;
    padding: 4px 20px !important;
    border: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    transition: transform 0.2s ease !important;
    max-width: 85% !important;
    margin: 0 auto !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

.call-widget:hover {
    transform: translateY(-2px) !important;
}

.call-widget::before,
.call-widget::after {
    display: none !important;
}

.call-widget-content {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    justify-content: space-between !important;
}

.call-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    flex-shrink: 0 !important;
}

.call-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    filter: grayscale(100%) !important;
    transition: transform 0.3s ease !important;
}

.call-avatar:hover img {
    transform: scale(1.05) !important;
}

.sticker-widget img {
    filter: none !important;
}

.call-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.call-title {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin-bottom: 4px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    cursor: pointer !important;
    font-family: 'Helvetica Neue', Arial, sans-serif !important;
    transition: color 0.2s ease !important;
}

.call-title:hover {
    color: #e0e0e0 !important;
}

.call-subtitle {
    font-size: 0.8rem !important;
    color: #cccccc !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    cursor: pointer !important;
    font-family: 'Helvetica Neue', Arial, sans-serif !important;
    transition: color 0.2s ease !important;
}

.call-subtitle:hover {
    color: #ffffff !important;
}

.call-buttons {
    display: flex !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
}

.call-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.call-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.call-btn.decline {
    background: #666666 !important;
    color: #FFFFFF !important;
}

.call-btn.decline:hover {
    background: #777777 !important;
}

.call-btn.accept {
    background: #333333 !important;
    color: #FFFFFF !important;
}

.call-btn.accept:hover {
    background: #444444 !important;
}

.call-btn i {
    font-size: 14px !important;
}

/* 角色选择器 */
.character-selector {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
}

.character-selector-content {
    background: #FFFFFF !important;
    border-radius: 24px !important;
    padding: 24px !important;
    width: 90% !important;
    max-width: 400px !important;
    max-height: 80% !important;
    overflow-y: auto !important;
}

.character-selector h3 {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    font-size: 1.2rem !important;
    color: #333333 !important;
}

.character-selector-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.character-selector-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

.character-selector-item:hover {
    background: #F5F5F5 !important;
}

.character-selector-item img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 12px !important;
    object-fit: cover !important;
}

.character-selector-item-info {
    flex: 1 !important;
}

.character-selector-item-name {
    font-weight: 600 !important;
    color: #333333 !important;
    margin-bottom: 4px !important;
}

.character-selector-item-desc {
    font-size: 0.9rem !important;
    color: #666666 !important;
}

.character-selector-buttons {
    margin-top: 24px !important;
}

.character-selector-buttons button {
    width: 100% !important;
    padding: 12px !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    background: #F5F5F5 !important;
    color: #333333 !important;
}

.character-selector-buttons button:hover {
    background: #E5E5E5 !important;
}

/* 天气时间小组件 */
.weather-time-widget {
    background: #000000 !important;
    border-radius: 24px !important;
    padding: 24px !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    color: #FFFFFF !important;
    transition: transform 0.2s ease !important;
}

.weather-time-widget:hover {
    transform: translateY(-2px) !important;
}

.weather-time-content {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 32px !important;
}

.weather-info {
    flex: 1 !important;
    position: relative !important;
    padding-left: 24px !important;
}

.weather-info::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    height: 80% !important;
    width: 1px !important;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
}

.location {
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    color: #FFFFFF !important;
    margin-bottom: 6px !important;
    font-family: 'Helvetica Neue', Arial, sans-serif !important;
}

.weather-source {
    font-size: 0.85rem !important;
    color: #999999 !important;
    margin-bottom: 16px !important;
    font-family: 'Helvetica Neue', Arial, sans-serif !important;
}

.temperature {
    font-size: 1.1rem !important;
    color: #FFFFFF !important;
    font-family: 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 500 !important;
}

.time-info {
    flex: 2 !important;
    text-align: right !important;
}

.date {
    font-size: 0.95rem !important;
    color: #999999 !important;
    margin-bottom: 12px !important;
    font-family: 'Helvetica Neue', Arial, sans-serif !important;
    letter-spacing: 0.5px !important;
}

.time {
    font-size: 2.8rem !important;
    font-weight: 300 !important;
    color: #FFFFFF !important;
    margin-bottom: 16px !important;
    font-family: 'Helvetica Neue', Arial, sans-serif !important;
    letter-spacing: 1px !important;
}

.weekday {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
}

.weekday-item {
    font-size: 0.9rem !important;
    color: #999999 !important;
    padding: 6px 12px !important;
    border-radius: 16px !important;
    font-family: 'Helvetica Neue', Arial, sans-serif !important;
    transition: all 0.2s ease !important;
}

.weekday-item:hover {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.weekday-item.active {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    font-weight: 500 !important;
}

/* 通话小组件编辑对话框 */
.call-widget-editor {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
}

.call-widget-editor-content {
    background: #FFFFFF !important;
    border-radius: 24px !important;
    padding: 24px !important;
    width: 90% !important;
    max-width: 400px !important;
}

.call-widget-editor h3 {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    font-size: 1.2rem !important;
    color: #333333 !important;
}

.call-widget-edit-input {
    width: 100% !important;
    padding: 12px !important;
    border: 1px solid #E0E0E0 !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    margin-bottom: 20px !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.call-widget-edit-input:focus {
    border-color: #333333 !important;
}

.call-widget-editor-buttons {
    display: flex !important;
    gap: 12px !important;
}

.call-widget-editor-buttons button {
    flex: 1 !important;
    padding: 12px !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

.call-widget-editor-buttons button:first-child {
    background: #F5F5F5 !important;
    color: #333333 !important;
}

.call-widget-editor-buttons button:first-child:hover {
    background: #E5E5E5 !important;
}

.call-widget-editor-buttons button:last-child {
    background: #333333 !important;
    color: #FFFFFF !important;
}

.call-widget-editor-buttons button:last-child:hover {
    background: #222222 !important;
}

.spotify-widget {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 4vw;
    padding: 2%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* LED点阵显示 */
.led-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3%;
    margin-bottom: 2%;
    padding: 1.5%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1.5vw;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.led-text, .led-icon {
    font-family: 'Courier New', monospace;
    font-size: 2.5vw;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 8px #ffffff, 0 0 16px #ffffff;
    letter-spacing: 1.5px;
}

.led-icon {
    font-size: 3vw;
}

/* 主要内容区域 */
.music-content {
    flex: 1;
    display: flex;
    gap: 2%;
    align-items: stretch;
}

/* 左侧黑胶唱片 */
.vinyl-record {
    flex: 0 0 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 2.5vw;
    padding: 4%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.vinyl-disc {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #5a5a5a 0%, #3a3a3a 30%, #1a1a1a 100%);
    position: relative;
    box-shadow: 0 3px 15px rgba(0,0,0,0.3), inset 0 0 25px rgba(0,0,0,0.5);
    animation: spin 8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vinyl-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22%;
    height: 22%;
    border-radius: 50%;
    background: radial-gradient(circle, #444 0%, #222 100%);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.1);
}

.vinyl-reflections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.vinyl-reflection {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, transparent 70%);
}

.vinyl-reflection.r1 {
    width: 12%;
    height: 12%;
    top: 22%;
    left: 18%;
}

.vinyl-reflection.r2 {
    width: 8%;
    height: 8%;
    top: 28%;
    left: 24%;
}

.vinyl-reflection.r3 {
    width: 18%;
    height: 18%;
    top: 58%;
    left: 52%;
}

.vinyl-reflection.r4 {
    width: 10%;
    height: 10%;
    top: 68%;
    left: 46%;
}

/* 右侧信息区域 */
.music-info-panel {
    flex: 1;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 2.5vw;
    padding: 3%;
    display: flex;
    flex-direction: column;
    gap: 3%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.music-info-header {
    display: flex;
    gap: 2.5%;
    align-items: center;
}

.album-cover {
    width: 22%;
    aspect-ratio: 1;
    border-radius: 1.2vw;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4%;
    overflow: hidden;
}

.track-title {
    font-size: 3vw;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 2.4vw;
    color: #666666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3%;
}

.progress-bar-container {
    width: 100%;
}

.music-widget .progress-bar {
    width: 100%;
    height: 2.5vw;
    background: #c0c0c0 !important;
    border-radius: 1.25vw;
    overflow: hidden;
    border: none !important;
    margin-bottom: 0 !important;
}

.music-widget .progress-fill {
    height: 100%;
    background: #000000 !important;
    border-radius: 1.25vw;
    transition: width 0.3s ease;
}

.time-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.current-time {
    font-size: 4.5vw;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Courier New', monospace;
}

.total-time {
    font-size: 2.4vw;
    color: #666666;
    font-family: 'Courier New', monospace;
}

.recorder-stream-widget {
    width: 100%;
    height: 100%;
    background: #000000;
    border-radius: 3vw;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
}

.recorder-screen {
    flex: 1;
    background: #e0e0e0;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
}

.recorder-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
                      linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
                      linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 5vw 5vw;
    background-position: 0 0, 0 2.5vw, 2.5vw -2.5vw, -2.5vw 0px;
    opacity: 0.3;
    z-index: 0;
}

.recorder-cover {
    flex: 1;
    background: #808080;
    position: relative;
    z-index: 1;
}

.recorder-song-info {
    background: #ffffff;
    border-radius: 5vw;
    padding: 3% 4%;
    font-size: 14px;
    position: absolute;
    bottom: 5%;
    left: 5%;
    right: 5%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-sizing: border-box;
}

.song-title {
    font-size: 18px;
    color: #000000;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
}

.song-artist {
    font-size: 14px;
    color: #333333;
    font-weight: 400;
    letter-spacing: 0.3px;
    font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
}

.recorder-progress-bar {
    height: 4px;
    background: #333333;
    margin: 12px 16px;
    border-radius: 2px;
    overflow: hidden;
}

.recorder-progress-fill {
    height: 100%;
    background: #ffffff;
    width: 30%;
    border-radius: 2px;
}

.recorder-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
}

.recorder-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
}

.recorder-play-btn {
    width: 50px;
    height: 50px;
    background: #ffffff;
    color: #000000;
}

/* 天气小组件 */
.weather-widget {
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.weather-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

/* 直播间小组件 */
.live-widget {
    position: relative;
    overflow: hidden;
}

.live-stream-widget {
    width: 100%;
    height: 100%;
    background: #000000;
    border-radius: 3vw;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
}

.live-screen {
    flex: 1;
    background: #e0e0e0;
    padding: 5%;
    display: flex;
    flex-direction: column;
    gap: 3%;
    position: relative;
    box-sizing: border-box;
}

.live-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
                      linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
                      linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 5vw 5vw;
    background-position: 0 0, 0 2.5vw, 2.5vw -2.5vw, -2.5vw 0px;
    opacity: 0.3;
    z-index: 0;
}

.live-message {
    background: #ffffff;
    border-radius: 5vw;
    padding: 3% 4%;
    font-size: 14px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 2%;
    box-sizing: border-box;
}

.live-heart {
    color: #ff0000;
    font-size: 16px;
}

.live-send-button {
    background: #ffffff;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.live-progress-bar {
    height: 4px;
    background: #333333;
    margin: 12px 16px;
    border-radius: 2px;
    overflow: hidden;
}

.live-progress-fill {
    height: 100%;
    background: #ffffff;
    width: 30%;
    border-radius: 2px;
}

.live-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
}

.live-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
}

.live-play-btn {
    width: 50px;
    height: 50px;
    background: #ffffff;
    color: #000000;
}



.live-danmaku {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: danmakuScroll 12s linear infinite;
}

@keyframes danmakuScroll {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(-100%);
    }
}

.danmaku-item {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* 页面指示器 */
.page-indicator {
    display: flex;
    gap: 8px;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.indicator-dot.active {
    width: 24px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.6);
}

/* 毛玻璃开启时：页面指示器也用更亮的点，避免底图偏暗看不清 */
.home-glass-mode .indicator-dot {
    background: rgba(255, 255, 255, 0.35);
}

.home-glass-mode .indicator-dot.active {
    background: rgba(255, 255, 255, 0.7);
}

/* 页面指示器容器 */
.page-indicator-container {
    position: absolute; /* 固定在 homescreen-inner 内部，而不是整个浏览器 */
    bottom: calc(110px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 99;
}

/* 翻页箭头按钮 */
.page-nav-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #000000;
}

/* 开启主界面毛玻璃：翻页箭头为黑色半透明玻璃 */
.home-glass-mode .page-nav-arrow {
    background: rgba(0, 0, 0, 0.22);
    border-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: inherit !important;
}

.home-glass-mode .page-nav-arrow:hover {
    background: rgba(0, 0, 0, 0.30);
    border-color: rgba(255, 255, 255, 0.26);
}

.page-nav-arrow:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
}

.page-nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-nav-arrow.left {
    margin-right: 8px;
}

.page-nav-arrow.right {
    margin-left: 8px;
}

[v-cloak] { display: none; }
#app { 
    width: 100%; 
    height: 100%;
    min-height: -webkit-fill-available;
    position: relative; 
    overflow: hidden; 
    background: var(--bg-primary);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sparkle-icon {
    position: absolute;
    color: #000000;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.sparkle-1 {
    width: 32px;
    height: 32px;
    top: 12%;
    left: 8%;
    animation: sparkle-float 8s ease-in-out infinite;
}

.sparkle-2 {
    width: 24px;
    height: 24px;
    top: 25%;
    right: 10%;
    animation: sparkle-float 10s ease-in-out infinite reverse;
}

.sparkle-3 {
    width: 20px;
    height: 20px;
    top: 62%;
    bottom: auto;
    left: 12%;
    animation: sparkle-float 9s ease-in-out infinite;
}

.sparkle-4 {
    width: 28px;
    height: 28px;
    top: 70%;
    bottom: auto;
    right: 8%;
    animation: sparkle-float 11s ease-in-out infinite reverse;
}

@keyframes sparkle-float {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1); 
    }
    25% { 
        transform: translate(8px, -8px) rotate(10deg) scale(1.1); 
    }
    50% { 
        transform: translate(0, -12px) rotate(0deg) scale(1); 
    }
    75% { 
        transform: translate(-8px, -6px) rotate(-10deg) scale(1.05); 
    }
}

/* Theme 主题壁纸 - 精进美化 */
.theme-view {
    background: #FAFAFA;
}

.theme-content {
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.theme-card {
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 16px;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.08);
    overflow: visible;
    flex-shrink: 0;
}

.theme-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    border-bottom: 2px solid #000000;
    color: #000000;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
}

.theme-card-header i {
    font-size: 18px;
    color: #000000;
}

.theme-account-body {
    padding: 20px 24px 22px;
}

.theme-account-status {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.5;
    color: #222;
}

.theme-account-disc {
    margin-left: 4px;
    color: #666;
    font-weight: 500;
}

.theme-account-exit-btn {
    display: block;
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #111;
    border: 2px solid #000;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.12);
}

.theme-account-exit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.14);
}

.theme-account-exit-btn:active {
    transform: translateY(0);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.theme-account-hint {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #666;
}

/* 主题模式按钮 */
.theme-mode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px 24px;
}

.theme-mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: #FFFFFF;
    border: 2px solid #E8E8E8;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.theme-mode-btn:hover {
    border-color: #000000;
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.08);
}

.theme-mode-btn.active {
    border-color: #000000;
    background: #000000;
    color: #FFFFFF;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.15);
}

.mode-icon {
    font-size: 32px;
    line-height: 1;
}

.mode-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.mode-desc {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    opacity: 0.7;
}

/* 壁纸网格 */
.wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px 24px;
}

.wallpaper-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wallpaper-item:hover {
    transform: translateY(-4px);
}

.wallpaper-item:hover .wallpaper-preview {
    box-shadow: 6px 6px 0px rgba(0,0,0,0.12);
}

.wallpaper-item.active .wallpaper-preview {
    border-color: #000000;
    box-shadow: 6px 6px 0px rgba(0,0,0,0.15);
}

.wallpaper-preview {
    aspect-ratio: 16/10;
    border-radius: 12px;
    border: 3px solid transparent;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wallpaper-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.wallpaper-name {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #000000;
    text-align: center;
}

/* 自定义壁纸表单 */
.custom-wallpaper-form {
    padding: 20px 24px;
}

.custom-wallpaper-form .input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.theme-input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #000000;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background: #FFFFFF;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.theme-input:focus {
    outline: none;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
    transform: translate(-1px, -1px);
}

.theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #000000;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: #FFFFFF;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.1);
}

.theme-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px rgba(0,0,0,0.15);
}

.theme-btn-primary {
    background: #000000;
    color: #FFFFFF;
}

.theme-btn-primary:hover {
    background: #333333;
}

.theme-btn-secondary {
    background: #FFFFFF;
    color: #000000;
}

.theme-btn-secondary:hover {
    background: #F5F5F5;
}

/* 提示文字 */
.theme-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #FAFAFA;
    border: 2px dashed #E0E0E0;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #888888;
}

.theme-hint i {
    font-size: 14px;
    color: #666666;
}

/* 全局规范 */
:root {
    --bg-primary: #f5f5f5;
    --border-color: transparent;
    --text-primary: #000000;
    --text-secondary: #666666;
    --global-text-color: #000000;
}

/* Status Bar */
.status-bar { 
    height: 44px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 32px; 
    padding-top: env(safe-area-inset-top);
    font-size: 14px; 
    font-weight: 500; 
    color: #ffffff;
    background: #000000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    z-index: 100; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    font-family: 'Inter', Arial, sans-serif;
}

.status-bar i,
.status-bar .fa {
    color: #ffffff;
}

/* home-notch-off：关闭刘海安全区偏移（主要用于让顶部元素不额外下移） */
.home-notch-off .status-bar {
    padding-top: 0 !important;
}

.home-notch-off .homescreen {
    padding-top: 0 !important;
}
.status-right { display: flex; gap: 12px; }

/* 主屏幕 */
.homescreen { 
    height: 100%; 
    overflow-y: auto; 
    padding: 96px 40px 240px 40px; 
    position: relative;
    -webkit-overflow-scrolling: touch;
    background: transparent;
}

/* 主界面颜色仅作用于 App 图标区域（不影响小组件/状态文字） */
.homescreen .app-icon,
.homescreen .dock-icon {
    color: var(--home-app-color, #000000);
}
.homescreen .app-label,
.homescreen .app-icon-font,
.homescreen .dock-icon i,
.homescreen .dock-icon span,
.homescreen .dock-icon:hover span,
.homescreen.home-glass-mode .dock-icon,
.homescreen.home-glass-mode .dock-icon span,
.homescreen.home-glass-mode .dock-icon:hover span {
    color: var(--home-app-color, #000000) !important;
}

/* 主题设置预览 */
.home-theme-preview{
    margin-top: 14px;
    border-radius: 16px;
    padding: 14px 16px;
    min-height: 92px;
    background: rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.10);
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}
.home-theme-preview-time{
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.4px;
    line-height: 1.1;
}
.home-theme-preview-title{
    font-size: 16px;
    font-weight: 600;
    opacity: 0.9;
    line-height: 1.2;
}

/* 主界面预览：主题设置里展示整体效果（壁纸+顶部文字颜色+字体） */
.home-main-preview-phone{
    width: 100%;
    max-width: 240px;
    aspect-ratio: 9 / 16;
    border-radius: 26px;
    margin-top: 14px;
    padding: 14px 14px 12px 14px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: rgba(0,0,0,0.06);
    box-shadow: 0 18px 50px rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.12);
}

.home-main-preview-phone::before{
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.18);
    pointer-events: none;
}

.home-main-preview-phone > *{
    position: relative;
    z-index: 1;
}

.home-main-preview-status{
    height: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.2px;
    padding: 0 6px;
}

.home-main-preview-time{
    font-size: 15px;
}

.home-main-preview-icons{
    font-size: 12px;
    opacity: 0.85;
}

.home-main-preview-grid{
    margin-top: 10px;
    height: calc(100% - 40px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 7px;
    padding: 0 6px 4px 6px;
}

.home-main-preview-photo{
    grid-column: 1 / 5;
    grid-row: 1 / 3;
    border-radius: 14px;
    background: rgba(255,255,255,0.20);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255,255,255,0.18);
}

.home-main-preview-sticker-left{
    grid-column: 1 / 3;
    grid-row: 3 / 5;
    border-radius: 14px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.12);
}

.home-main-preview-app-right{
    grid-column: 3 / 5;
    grid-row: 3 / 5;
    border-radius: 14px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.12);
}

.home-main-preview-dock{
    grid-column: 1 / 5;
    grid-row: 5 / 6;
    border-radius: 14px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0.95;
}

/* 预览：开启毛玻璃时也同步显示玻璃质感 */
.home-glass-mode .home-main-preview-photo{
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.18);
}

.home-glass-mode .home-main-preview-dock{
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Hero 插图区域 */
.hero-section {
    text-align: center;
    padding: 80px 0 60px 0;
    position: relative;
}

.decorative-blob {
    position: absolute;
    opacity: 0.3;
    pointer-events: none;
}

.blob-1 {
    width: 60px;
    height: 60px;
    top: 20px;
    left: 10px;
    animation: blob-float 8s ease-in-out infinite;
}

.blob-2 {
    width: 50px;
    height: 50px;
    bottom: 40px;
    right: 10px;
    animation: blob-float 10s ease-in-out infinite reverse;
}

.decorative-arrow {
    position: absolute;
    opacity: 0.4;
    pointer-events: none;
}

.arrow-1 {
    width: 50px;
    height: 30px;
    top: 60px;
    right: 40px;
    animation: arrow-sway 4s ease-in-out infinite;
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(10px, -10px) rotate(5deg); }
}

@keyframes arrow-sway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-8deg); }
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 56px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 16px;
    color: #4A4A4A;
    line-height: 1.6;
    margin-bottom: 48px;
}

.hero-illustration {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}



/* 小组件样式 */
.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.player-label {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #666666;
}

.now-playing-area { 
    display: flex; 
    gap: 12px; 
    align-items: center; 
}

.spectrum-bars {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 40px;
    flex-shrink: 0;
}

.spectrum-bar {
    width: 6px;
    background: #000000;
    border-radius: 2px;
    animation: spectrum-pulse 1.2s ease-in-out infinite;
}

.spectrum-bar:nth-child(1) { animation-delay: 0s; height: 20px; }
.spectrum-bar:nth-child(2) { animation-delay: 0.3s; height: 35px; }
.spectrum-bar:nth-child(3) { animation-delay: 0.6s; height: 28px; }

@keyframes spectrum-pulse {
    0%, 100% { opacity: 0.7; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

.widget-info { 
    flex: 1; 
    min-width: 0; 
}

.widget-song { 
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 600; 
    font-size: 14px; 
    margin-bottom: 4px; 
}

.widget-artist { 
    font-family: 'Inter', Arial, sans-serif;
    font-size: 12px; 
    color: #666666; 
    margin-bottom: 8px; 
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.widget-title {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #666666;
}

/* 底部Dock */
.dock {
    position: absolute; /* 绑定在 homescreen-inner 底部这一行 */
    bottom: calc(20px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 24px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.8);
    border: 1.5px solid rgba(0, 0, 0, 0.2);
    border-radius: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 100;
    width: auto;
    min-width: 320px;
    max-width: calc(100% - 32px);
}

/* 开启主界面毛玻璃：Dock 变为黑色半透明毛玻璃 */
.home-glass-mode .dock {
    background: rgba(0, 0, 0, 0.22);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 18px 50px rgba(0,0,0,0.25);
}

.home-glass-mode .dock:hover {
    background: rgba(0, 0, 0, 0.28);
}

.dock:hover {
    transform: translateX(-50%) translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

.dock-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #000000;
    cursor: pointer;
    width: 60px;
    height: 60px;
    transition: all 0.3s ease;
}

.dock-icon:hover {
    transform: translateY(-4px);
}

.dock-icon:active {
    transform: scale(0.95);
}

.dock-icon i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.dock-icon:hover i {
    transform: scale(1.1);
}

.dock-icon span {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: #333333;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.dock-icon:hover span {
    font-weight: 600;
    color: #000000;
}

/* 毛玻璃开启时，让 Dock 图标文字跟随当前主题文字色 */
.home-glass-mode .dock-icon {
    color: inherit !important;
}

.home-glass-mode .dock-icon span {
    color: inherit !important;
}

.home-glass-mode .dock-icon:hover span {
    color: inherit !important;
}

/* App Placeholder */
.app-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FFFFFF;
    z-index: 200;
    display: flex;
    flex-direction: column;
    padding-top: 60px;
}

.back-btn {
    position: absolute;
    top: 40px;
    left: 32px;
    width: 48px;
    height: 48px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 24px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 201;
}

.back-btn:hover {
    background: #000000;
    color: #FFFFFF;
}

.app-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px;
}

.app-placeholder h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 12px;
}

.app-placeholder p {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 16px;
    color: #666666;
}

/* App View Styles - Modern Illustrative Minimalism */
.app-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 100;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

/* Workshop 艺术家工作室风格 - 对称垂直布局 */
.app-view.workshop-view {
    background: transparent;
    position: fixed;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/*  subtle grid pattern background */
.app-view.workshop-view::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.workshop-content {
    flex: 1 1 auto;
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    min-height: 0;
    overflow-y: auto;
}

.workshop-content .workshop-card {
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 16px;
    position: relative;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: visible;
}

.workshop-content .workshop-card:hover {
    box-shadow: 10px 10px 0px rgba(0,0,0,0.1);
}

/* 卡片头部 */
.workshop-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 2px solid #000000;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    flex-shrink: 0;
}

.workshop-card .card-header span {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
}

.workshop-card .card-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.workshop-card .card-actions i {
    font-size: 16px;
    color: #888;
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s ease;
}

.workshop-card .card-actions i:hover {
    color: #000;
    transform: scale(1.1);
}

/* 工作室 — 导入密码弹窗（与 workshop 卡片同系：黑框 + 硬阴影） */
.app-view.workshop-view .import-password-overlay {
    z-index: 1200;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
}

.app-view.workshop-view .import-password-modal {
    max-width: 340px;
    width: 100%;
    border-radius: 20px;
    border: 2px solid #000000;
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.12);
    background: linear-gradient(165deg, #ffffff 0%, #f7f7f7 100%);
    padding: 0;
    overflow: hidden;
    animation: importPasswordPop 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes importPasswordPop {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.import-password-header {
    padding: 22px 22px 12px;
    border-bottom: 2px solid #000;
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
}

.import-password-title {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #000;
    letter-spacing: 0.02em;
}

.import-password-hint {
    margin: 8px 0 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.45;
}

.import-password-body {
    padding: 20px 22px 8px;
}

.import-password-label {
    display: block;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #333;
    margin-bottom: 8px;
}

.import-password-field {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: 'Inter', system-ui, sans-serif;
    color: #111;
    background: #fff;
    border: 2px solid #000;
    border-radius: 12px;
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.import-password-field::placeholder {
    color: #aaa;
}

.import-password-field:focus {
    border-color: #000;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.08);
}

.import-password-error {
    margin: 10px 0 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.85rem;
    color: #b00020;
    font-weight: 500;
}

.import-password-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 16px 22px 22px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.6);
}

.import-password-btn {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid #000;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.import-password-btn:active {
    transform: scale(0.98);
}

.import-password-btn--ghost {
    background: #fff;
    color: #333;
    box-shadow: none;
}

.import-password-btn--ghost:hover {
    background: #f5f5f5;
}

.import-password-btn--primary {
    background: #000;
    color: #fff;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.15);
}

.import-password-btn--primary:hover {
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
}

/* 卡片内容区域 - 可滚动 */
.workshop-card .card-body {
    padding: 20px 24px;
    overflow: visible;
}

/* 卡片底部按钮 */
.workshop-card .btn.w-100 {
    margin: 0 24px 20px 24px;
    flex-shrink: 0;
    width: calc(100% - 48px);
    box-sizing: border-box;
}

/* 卡片底部按钮 - 与世界书/预设列表项对齐 */
.workshop-card .btn.w-100 {
    margin-left: 24px;
    margin-right: 24px;
    width: calc(100% - 48px);
}

/* 自定义滚动条 - 卡片内 */
.workshop-card .card-body::-webkit-scrollbar {
    width: 6px;
}

.workshop-card .card-body::-webkit-scrollbar-track {
    background: transparent;
}

.workshop-card .card-body::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 3px;
}

/* 空状态 */
.workshop-card .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

/* 角色网格布局 */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    padding: 8px 0;
}

/* 角色卡片样式 - 简洁对称 */
.character-card {
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.character-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0px rgba(0,0,0,0.12);
}

.character-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid #000000;
    object-fit: cover;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

.character-card:hover .character-avatar {
    transform: scale(1.05);
    box-shadow: 3px 3px 0px rgba(0,0,0,0.15);
}

.character-name {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 6px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.character-summary {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #666666;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    width: 100%;
}

/* 添加角色卡片 */
.character-card.add-card {
    border-style: dashed;
    background: rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.character-card.add-card i {
    font-size: 24px;
    color: #888;
    transition: all 0.3s ease;
}

.character-card.add-card:hover {
    background: rgba(0,0,0,0.04);
}

.character-card.add-card:hover i {
    color: #000;
    transform: scale(1.1);
}

/* 按钮样式 - 更精致 */
.workshop-content .btn {
    background: #FFFFFF;
    border: 2px solid #000000;
    color: #000000;
    padding: 12px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

.workshop-content .btn:hover {
    background: #000000;
    color: #FFFFFF;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(0,0,0,0.15);
}

.workshop-content .btn:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

.workshop-content .btn.w-100 {
    width: 100%;
    margin-top: 16px;
}

/* 小按钮样式 */
.workshop-content .btn-small {
    padding: 8px 16px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.1);
}

.workshop-content .btn-small:hover {
    background: #000000;
    color: #FFFFFF;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px rgba(0,0,0,0.12);
}

/* 列表项样式 - 世界书/预设 */
.workshop-content .profile-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 8px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.08);
}

.workshop-content .profile-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px rgba(0,0,0,0.12);
    background: #FAFAFA;
}

/* 添加项目卡片 */
.workshop-content .profile-item.add-item {
    border-style: dashed;
    background: rgba(0,0,0,0.02);
    justify-content: center;
    min-height: 60px;
}

.workshop-content .profile-item.add-item i {
    font-size: 20px;
    color: #888;
    transition: all 0.3s ease;
}

.workshop-content .profile-item.add-item:hover {
    background: rgba(0,0,0,0.04);
}

.workshop-content .profile-item.add-item:hover i {
    color: #000;
    transform: scale(1.1);
}

.workshop-content .profile-name {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 4px;
}

.workshop-content .profile-meta {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #888888;
}

.workshop-content .mt-2 {
    margin-top: 16px;
}

/* Console 实验记录本风格 */
.app-view.console {
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* 纸张纹理效果 */
.app-view.console::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="%23000" stroke-width="0.2" opacity="0.05"/></svg>');
    pointer-events: none;
    z-index: 0;
}

.console .app-header {
    background: #F5F2ED;
    border-bottom: 2px solid #000000;
    position: relative;
    z-index: 1;
}

.console .app-header .app-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    position: relative;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.console .app-header .app-title::after {
    content: 'STRICTLY CONFIDENTIAL';
    position: absolute;
    top: -15px;
    right: -140px;
    font-family: 'Caveat', cursive;
    font-size: 16px;
    font-weight: 600;
    transform: rotate(18deg);
    opacity: 0.75;
    color: #E74C3C;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
}

.console-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
    position: relative;
    z-index: 1;
}

/* 自定义滚动条 */
.console-content::-webkit-scrollbar {
    width: 8px;
}

.console-content::-webkit-scrollbar-track {
    background: #F5F2ED;
    border-left: 1px solid #000000;
}

.console-content::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 0;
    width: 6px;
}

.console .card {
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 0;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}

.console .card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 rgba(0,0,0,0.15);
}

/* 别针固定效果 - 更逼真 */
.console .card::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E74C3C, #C0392B);
    border: 2px solid #000000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.console .card::after {
    content: '';
    position: absolute;
    top: -12px;
    right: 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498DB, #2980B9);
    border: 2px solid #000000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.console .card-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #000000;
    position: relative;
    display: inline-block;
}

.console .card-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #000000;
}

.console-logs {
    background: #FFFFFF;
    border: 2px solid #000000;
    padding: 24px;
    margin: 24px 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
    max-height: 350px;
    overflow-y: auto;
    position: relative;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
}

.console-log {
    border-bottom: 1px dashed #E0E0E0;
    padding: 12px 0;
    position: relative;
    transition: all 0.2s ease;
}

.console-log:hover {
    background: rgba(0,0,0,0.02);
    padding-left: 8px;
}

.console-log:last-child {
    border-bottom: none;
}

.console-log::before {
    content: '>';
    margin-right: 8px;
    color: #666666;
    font-weight: bold;
}

/* 极简滚动条 */
.console-logs::-webkit-scrollbar {
    width: 6px;
}

.console-logs::-webkit-scrollbar-track {
    background: transparent;
    border-left: 1px solid #000000;
}

.console-logs::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 0;
    width: 4px;
}

/* 控制台按钮样式 */
.console .btn {
    background: #FFFFFF;
    border: 2px solid #000000;
    color: #000000;
    padding: 12px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
    margin-right: 12px;
    margin-bottom: 12px;
}

.console .btn:hover {
    background: #000000;
    color: #FFFFFF;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.15);
}

.console .btn:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

/* Theme 高级色卡风格 */
.app-view:has(.theme-content) {
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* 装饰性几何图形 */
.app-view:has(.theme-content)::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0,0,0,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.app-view:has(.theme-content)::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 8%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(0,0,0,0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.theme-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 自定义滚动条 */
.theme-content::-webkit-scrollbar {
    width: 8px;
}

.theme-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-left: 1px solid #000000;
}

.theme-content::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 0;
    width: 6px;
}

.theme-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 12px;
    text-align: center;
    margin-bottom: 56px;
    color: #000000;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.theme-content h1::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #000000;
}

.theme-options {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    padding: 24px 0;
    margin-bottom: 56px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.theme-options::-webkit-scrollbar {
    display: none;
}

.theme-option {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid #000000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.theme-option:hover {
    transform: translate(-4px, -4px) rotate(1deg);
    box-shadow: 8px 8px 0 rgba(0,0,0,0.15);
}

.theme-option.selected {
    box-shadow: 10px 10px 0 #000000;
    transform: rotate(2deg) scale(1.05);
    z-index: 10;
}

/* 主题预览图 - 更精细的手机线稿 */
.theme-option .phone-preview {
    width: 80px;
    height: 140px;
    border: 2px solid #000000;
    border-radius: 12px;
    position: relative;
    background: #FFFFFF;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 0 2px rgba(0,0,0,0.1);
}

.theme-option:hover .phone-preview {
    transform: scale(1.05);
}

.theme-option .phone-preview::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 6px;
    background: #000000;
    border-radius: 3px;
}

.theme-option .phone-preview::after {
    content: '';
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border: 2px solid #000000;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
}

/* 主题名称标签 */
.theme-option .theme-name {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #000000;
    text-align: center;
    white-space: nowrap;
}

/* 壁纸预设样式 */
.wallpaper-presets {
    margin-top: 48px;
}

.wallpaper-presets h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #000000;
    position: relative;
    display: inline-block;
}

.wallpaper-presets h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #000000;
}

.wallpaper-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.wallpaper-option {
    aspect-ratio: 1;
    border: 2px solid #000000;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
}

.wallpaper-option:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.15);
}

.wallpaper-option.selected {
    box-shadow: 8px 8px 0 #000000;
    transform: rotate(1deg);
}

/* 主题设置按钮 */
.theme-content .btn {
    background: #FFFFFF;
    border: 2px solid #000000;
    color: #000000;
    padding: 12px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
    margin-right: 12px;
    margin-bottom: 12px;
}

.theme-content .btn:hover {
    background: #000000;
    color: #FFFFFF;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.15);
}

.theme-content .btn:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

/* Notice 公告模块风格 */
.app-view:has(.notice-content) {
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* 装饰性元素 */
.app-view:has(.notice-content)::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 5%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0,0,0,0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.app-view:has(.notice-content)::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 8%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0,0,0,0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Games App Styles */
.games-view {
    background: transparent;
    position: relative;
    overflow: hidden;
}

.games-view::before {
    content: '';
    position: absolute;
    top: 2%;
    right: -6%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 173, 51, 0.12) 0%, rgba(255, 173, 51, 0) 68%);
    pointer-events: none;
}

.games-view::after {
    content: '';
    position: absolute;
    bottom: -8%;
    left: -4%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(100, 149, 237, 0.12) 0%, rgba(100, 149, 237, 0) 70%);
    pointer-events: none;
}

.games-content {
    padding: 16px;
    display: grid;
    gap: 12px;
    position: relative;
    z-index: 1;
}

/* 进行中游戏：UNO 与其它游戏分支并列，子卡片直接参与 .games-content 的网格排版 */
.games-ingame-stack {
    display: contents;
}

.games-panel {
    border: 2px solid #0f172a;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(246,248,252,0.98) 100%);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.games-lobby-grid {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.games-lobby-btn {
    text-align: left;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(241,245,249,0.92));
}

.games-lobby-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.games-badge-soon {
    font-size: 12px;
    opacity: 0.66;
    font-weight: 500;
}

.games-lobby-desc {
    margin-top: 4px;
    font-size: 12px;
    color: #334155;
    line-height: 1.55;
}

.games-rule {
    margin: 8px 0 10px;
    font-size: 13px;
    color: #334155;
    line-height: 1.6;
}

.games-meta,
.games-status-line {
    font-size: 12px;
    color: #475569;
}

.games-meta {
    margin-bottom: 12px;
}

.games-ai-picker,
.games-mode-panel {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.games-kicker {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.games-ai-current {
    font-size: 12px;
    color: #334155;
}

.games-actions-row,
.games-rps-panel {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.games-status-wide {
    width: 100%;
}

.games-prompt-text {
    font-size: 13px;
    color: #1e293b;
    line-height: 1.6;
    background: rgba(15, 23, 42, 0.04);
    border: 1px dashed rgba(15, 23, 42, 0.22);
    border-radius: 10px;
    padding: 10px;
}

.games-uno-hand {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.games-uno-card-btn {
    font-size: 12px;
    padding: 8px 10px;
    min-width: 84px;
    border-radius: 10px;
}

.games-ludo-board {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    padding: 10px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.95));
}

.games-ludo-cell {
    min-height: 46px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 8px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
}

.games-ludo-cell-index {
    font-size: 10px;
    color: #64748b;
    line-height: 1;
}

.games-ludo-cell-effect {
    font-size: 10px;
    color: #0f766e;
    font-weight: 600;
    line-height: 1.1;
}

.games-ludo-tokens {
    display: flex;
    gap: 4px;
    align-items: center;
    min-height: 16px;
}

.games-ludo-token {
    min-width: 18px;
    height: 14px;
    border-radius: 10px 10px 10px 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.35);
    font-size: 9px;
    font-weight: 700;
    color: #ffffff;
    padding: 0 2px;
}

.games-ludo-token.player {
    background: #2563eb;
}

.games-ludo-token.ai {
    background: #f97316;
}

.games-ludo-question-card {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px dashed rgba(15, 23, 42, 0.25);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
}

.games-back-wrap {
    margin-top: 14px;
}

.games-chat-card {
    margin-top: 12px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: rgba(255,255,255,0.92);
}

.games-chat-list {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 8px;
    display: grid;
    gap: 8px;
    padding-right: 4px;
}

.games-chat-empty {
    font-size: 12px;
    color: #64748b;
}

.games-chat-msg {
    font-size: 12px;
    line-height: 1.55;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.games-chat-msg.from-player {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(59, 130, 246, 0.24);
}

.games-chat-msg.from-system {
    background: rgba(148, 163, 184, 0.18);
    border-color: rgba(148, 163, 184, 0.28);
    color: #334155;
}

.games-chat-input-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.games-chat-input-row .lock-wallpaper-input {
    flex: 1;
}

.games-send-btn {
    min-width: 72px;
}

.notice-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    position: relative;
    z-index: 1;
    background: transparent;
}

.notice-content::-webkit-scrollbar {
    width: 6px;
}

.notice-content::-webkit-scrollbar-track {
    background: transparent;
}

.notice-content::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.notice-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.3);
}

.notice-content .card {
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.notice-content .card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.12);
}

.notice-content .card-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #000000;
    position: relative;
    display: inline-block;
}

.notice-content .card-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #000000;
}

.notice-content .notice-item {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.notice-content .notice-item:last-child {
    border-bottom: none;
}

.notice-content .notice-item:hover {
    background: rgba(0,0,0,0.02);
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 8px;
}

.notice-content .notice-date {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.notice-content .notice-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
}

.notice-content .notice-content {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
}

.notice-content .notice-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-content .notice-content li {
    padding: 8px 0 8px 20px;
    position: relative;
    line-height: 1.6;
}

.notice-content .notice-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #000000;
    font-weight: bold;
}

.notice-content .notice-content p {
    margin: 8px 0;
    line-height: 1.6;
}

.notice-content .notice-content strong {
    font-weight: 600;
    color: #000000;
}

/* 装饰性元素 */
.app-view:has(.notice-content)::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 5%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0,0,0,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.app-view:has(.notice-content)::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 8%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0,0,0,0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* 功能介绍卡片 */
.feature-card {
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    position: relative;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.12);
}

.feature-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
}

.feature-card p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 20px;
}

.feature-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-item {
    background: rgba(0,0,0,0.02);
    border: 1px solid #000000;
    padding: 16px;
    border-radius: 0;
}

.feature-item h4 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
}

.feature-item p {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: #666666;
    margin-bottom: 0;
}

/* 使用提示卡片 */
.tips-section {
    margin-top: 64px;
}

.tips-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #000000;
    position: relative;
    display: inline-block;
}

.tips-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #000000;
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tip-card {
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 0;
    padding: 20px;
    position: relative;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.12);
}

.tip-card p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333333;
    margin: 0;
}

/* 共通交互样式 */
/* 滑块样式 */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: #000000;
    outline: none;
    border-radius: 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #000000;
    cursor: pointer;
    border-radius: 0;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #000000;
    cursor: pointer;
    border-radius: 0;
    border: none;
}

/* 字体规范 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #000000;
}

label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666666;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: 2px solid #000000;
    background: #FFFFFF;
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.btn:hover {
    background: #000000;
    color: #FFFFFF;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
}

.btn-primary {
    background: #000000;
    color: #FFFFFF;
}

.btn-primary:hover {
    background: #333333;
}

/* 卡片样式 */
.card {
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 0;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #000000;
}

/* UNO 独立游戏卡：写在 .card 之后，三类名提高优先级，避免被 .card 的黑边框盖住 */
.card.games-panel.games-panel-uno-dedicated {
    border: 2px solid #16a34a;
    border-radius: 18px;
    background: linear-gradient(165deg, #f8fafc 0%, #ecfdf5 40%, #f8fafc 100%);
    box-shadow: 0 10px 32px rgba(22, 163, 74, 0.14);
}

.card.games-panel.games-panel-uno-dedicated > .card-title {
    color: #14532d;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.card.games-panel.games-panel-uno-dedicated > .games-mode-panel {
    margin-bottom: 0;
}

/* UNO 内层可滚动，减轻与下方聊天区抢高度、溢出重叠 */
.card.games-panel.games-panel-uno-dedicated .games-mode-panel-uno {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 48px 24px 16px;
    padding-top: calc(48px + env(safe-area-inset-top));
    border-bottom: 2px solid rgba(0,0,0,0.15);
    background: #FDFDFB;
}

.app-header .back-btn {
    width: 48px;
    height: 48px;
    border: 2px solid #000000;
    border-radius: 24px;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-left: -20px;
}

.app-header .back-btn:hover {
    background: #000000;
    color: #FFFFFF;
}

.app-header .app-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    flex: 1;
    text-align: center;
    margin: 0 16px;
}

.app-header .header-icons {
    display: flex;
    gap: 24px;
    font-size: 20px;
    flex-shrink: 0;
}

.app-header .header-icons i {
    cursor: pointer;
    transition: opacity 0.2s;
}

.app-header .header-icons i:hover {
    opacity: 0.5;
}

.app-header .header-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 16px;
}

.group-members-bar {
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.group-member-avatar {
    position: relative;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.group-member-avatar:hover {
    transform: scale(1.1);
}

.group-member-avatar img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #FDFDFB;
}

.group-member-count {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #666666;
    margin-left: 8px;
    background: #F3F4F6;
    padding: 2px 8px;
    border-radius: 12px;
}

.app-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    position: relative;
}

/* Chat Atmosphere Decorations */
/* ==========================================================
   CHAT MODULE - Modern Illustrative Minimalism
   ========================================================== */

/* Chat Decorative Elements */
.chat-twinkle {
    position: absolute;
    width: 20px;
    height: 20px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.chat-twinkle-1 {
    top: 20%;
    right: 15%;
    animation: twinkle-float 8s ease-in-out infinite;
}

.chat-twinkle-2 {
    top: 45%;
    left: 10%;
    animation: twinkle-float 10s ease-in-out infinite reverse;
}

.chat-twinkle-3 {
    bottom: 25%;
    right: 20%;
    animation: twinkle-float 9s ease-in-out infinite;
}

@keyframes twinkle-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(5px, -8px) rotate(12deg) scale(1.1); }
    66% { transform: translate(-3px, -5px) rotate(-8deg) scale(0.95); }
}

/* Chat List - Modern Illustrative Minimalism */
.chat-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 24px;
    background: #FDFDFB;
    border-top: 2px solid rgba(0,0,0,0.1);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
}

.chat-tab {
    flex: 1;
    padding: 12px 24px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 600;
    color: #666666;
    border: 2px solid transparent;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-tab:hover {
    background: #F3F4F6;
    color: #000000;
}

.chat-tab.active {
    background: #000000;
    color: #FFFFFF;
    border-color: #000000;
    box-shadow: 4px 4px 0px #000000;
}

/* 群成员选择样式 */
.group-member-select {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.group-member-select:hover {
    background: #F3F4F6;
}

.group-member-select.selected {
    border-color: #000000;
    background: #000000;
    color: #FFFFFF;
}

.group-member-select.selected span {
    color: #FFFFFF;
}

/* 群聊消息样式 */
.group-sender-name {
    font-family: 'Playfair Display', serif;
    font-size: 11px;
    font-weight: 600;
    color: #666666;
    margin-bottom: 2px;
}

.message-content-wrapper {
    display: flex;
    flex-direction: column;
}

.group-chat .message .message-content-wrapper .bubble {
    margin-top: 0;
}

.group-chat .message.user .message-content-wrapper {
    align-items: flex-end;
}

.group-chat .message.ai .message-content-wrapper {
    align-items: flex-start;
}

/* 系统消息样式 */
.message.system-message {
    display: flex;
    justify-content: center;
    margin: 16px 0;
    padding: 0;
}

.message.system-message .message-content-wrapper {
    align-items: center;
}

.message.system-message .bubble {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #999999 !important;
    font-size: 12px;
    padding: 6px 16px;
    border-radius: 16px;
    border: none !important;
    box-shadow: none !important;
}

.message.system-message.user .bubble,
.message.system-message.ai .bubble {
    max-width: 80%;
}

.group-chat .message {
    margin-bottom: 16px;
}

.group-chat .message.call-message {
    justify-content: center !important;
}

.group-chat .message .bubble {
    margin-top: 4px;
}

.group-chat .message.user {
    justify-content: flex-end;
}

.group-chat .message.ai {
    justify-content: flex-start;
}

.wechat-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 1;
    padding: 0 24px;
}

.wechat-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
    position: relative;
}

.wechat-item:hover {
    background: rgba(0,0,0,0.02);
    padding-left: 16px;
    padding-right: 16px;
    margin: 0 -16px;
    border-radius: 20px;
    border-bottom-color: transparent;
}

.wechat-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.wechat-item:hover .wechat-avatar {
    transform: scale(1.05);
}

.wechat-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.wechat-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.wechat-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 18px;
    color: #000000;
    letter-spacing: -0.01em;
}

.wechat-time {
    font-size: 11px;
    color: #AAAAAA;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.wechat-last-msg {
    font-size: 12px;
    color: #888888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.08em;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
}

/* Unread Indicator - Hand-drawn star style */
.unread-indicator {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unread-indicator::before {
    content: '★';
    font-size: 18px;
    color: #000000;
    line-height: 1;
}

.unread-indicator span {
    position: absolute;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    z-index: 1;
}

/* Alternative: solid black circle with white number */
.unread-indicator.circle-style {
    background: #000000;
    border-radius: 50%;
}

.unread-indicator.circle-style::before {
    display: none;
}

.unread-indicator.circle-style span {
    position: static;
    transform: none;
}

.app-icon-wrapper {
    position: relative;
}

.app-dot-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #000000;
    border: 1px solid #ffffff;
}

.wechat-empty {
    text-align: center;
    padding: 100px 32px;
    color: #999999;
    font-size: 16px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

/* Chat Fullscreen - Modern Illustrative Minimalism */
.chat-fullscreen {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Ensure proper flex layout for chat messages */
.chat-fullscreen .wechat-messages {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* Offline Mode Styling */
.chat-fullscreen.offline-mode {
    filter: grayscale(1);
}

.chat-fullscreen.offline-mode .wechat-messages {
    position: relative;
    flex: 1;
    overflow-y: auto;
}

.chat-fullscreen.offline-mode .wechat-messages::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1'%3E%3Cpath d='M18.36 6.64a9 9 0 1 1-12.72 0M12 2v10'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.offline-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    color: #000000;
    opacity: 0.3;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 0;
}

.wechat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px;
    padding-bottom: calc(200px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}

/* Message Styles - Card Bubbles */
.message {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    position: relative;
    max-width: 85%;
}

.message.user {
    flex-direction: row-reverse;
    align-self: flex-end;
}

.message.ai {
    align-self: flex-start;
}

.message .bubble {
    max-width: 100%;
    padding: 12px 20px;
    border-radius: var(--chat-bubble-radius, 18px);
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    word-wrap: break-word;
    font-family: 'Inter', sans-serif;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Chat message avatars */
.message-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #000000;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 避免外层 .message 的 message-time/status 把容器底部拉低 */
    align-self: flex-start;
    margin-top: 6px;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.message-avatar.is-hidden-avatar {
    opacity: 0;
    pointer-events: none;
}

/* My messages — 纯黑底白字 */
.message.user .bubble {
    background: var(--chat-bubble-user-bg, #000000);
    color: var(--chat-bubble-user-color, #ffffff);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* 对方消息 — 极浅灰、无边框 */
.message.ai .bubble {
    background: var(--chat-bubble-ai-bg, #f2f2f2);
    color: var(--chat-bubble-ai-color, #000000);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Bubble Beautify Variants（恢复蓝/橙真实配色） */
#app.bubble-style-blue .message.user .bubble {
    background: var(--chat-bubble-user-bg, #000000) !important;
    color: var(--chat-bubble-user-color, #ffffff) !important;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}
#app.bubble-style-blue .message.ai .bubble {
    background: var(--chat-bubble-ai-bg, #f2f2f2) !important;
    color: var(--chat-bubble-ai-color, #000000) !important;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

#app.bubble-style-orange .message.user .bubble {
    background: var(--chat-bubble-user-bg, #000000) !important;
    color: var(--chat-bubble-user-color, #ffffff) !important;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}
#app.bubble-style-orange .message.ai .bubble {
    background: var(--chat-bubble-ai-bg, #f2f2f2) !important;
    color: var(--chat-bubble-ai-color, #000000) !important;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

#app.bubble-style-round .message .bubble {
    border-radius: var(--chat-bubble-radius, 18px);
}

#app.bubble-style-sharp .message .bubble {
    border-radius: var(--chat-bubble-radius, 18px);
}

/* System messages */
.message.system {
    align-self: center;
    justify-content: center;
}

.message.system .bubble {
    background: transparent;
    border: 1px dashed #CCCCCC;
    color: #888888;
    font-size: 13px;
    font-style: italic;
    box-shadow: none;
    text-align: center;
}

.message-time {
    font-size: 10px;
    color: #666666;
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.message-status {
    min-height: 14px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1px;
}

.status-check {
    font-size: 11px;
    line-height: 1;
    color: #888888;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.status-check.double {
    margin-left: 2px;
}

/* AI OS (内心独白) - 高级杂志排版 */
.ai-os-container {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 0.5px solid #E0E0E0;
    margin-left: 15px;
    opacity: 0.5;
    transition: opacity 0.3s ease, filter 0.5s ease;
    animation: osReveal 0.6s 0.5s ease both;
}
.ai-os-container.revealed {
    animation: none;
}
.ai-os-container.focused {
    opacity: 0.9;
}
@keyframes osReveal {
    from { opacity: 0; filter: blur(5px); }
    to { opacity: 0.5; filter: blur(0); }
}
.os-index {
    font-size: 8px;
    font-family: 'Inter', sans-serif;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.os-content {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 12px;
    font-style: italic;
    color: #666;
    line-height: 1.5;
}

/* Call Message Card - Minimalist High Fashion Style */
.message.call-message {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    margin: 24px 0;
}

.message.call-message .bubble {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 16px 0;
    color: #000000;
    font-weight: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: none;
    transform: none !important;
    position: relative;
    overflow: visible;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-family: 'Playfair Display', 'Times New Roman', serif;
}

.message.call-message .bubble::before {
    content: '';
    width: 40px;
    height: 1px;
    background: #000000;
}

.message.call-message .bubble::after {
    content: '';
    width: 40px;
    height: 1px;
    background: #000000;
}

.message.call-message .call-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.message.call-message .call-icon.voice {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
}

.message.call-message .call-icon.video {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpolygon points='23 7 16 12 23 17 23 7'%3E%3C/polygon%3E%3Crect x='1' y='5' width='15' height='14' rx='2' ry='2'%3E%3C/rect%3E%3C/svg%3E");
}

.message.call-message .call-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    order: 2;
}

.message.call-message .bubble::before {
    order: 1;
}

.message.call-message .bubble::after {
    order: 3;
}

.message.call-message .bubble:hover {
    transform: none !important;
    box-shadow: none;
    background: transparent;
}

/* 聊天里的「通话记录」居中条：透明底、无弥散阴影
   （必须带 #app，否则会被 #app.bubble-style-* .message.user/.ai .bubble 覆盖） */
#app .message.call-message .bubble {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    color: inherit;
}

/* Chat Input Container */
.chat-input-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    background: #ffffff;
    border-top: none;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 100;
    max-width: 100vw;
    overflow: hidden;
    box-sizing: border-box;
}

.chat-input-container .editing-indicator,
.chat-input-container .reply-preview {
    margin-top: 16px;
}

/* Chat Input Row */
.wechat-input-row {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    padding: 0;
    background: transparent;
    border-top: none;
    display: flex;
    flex-direction: row;
    gap: 10px;
    z-index: auto;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.wechat-input-row input,
.chat-input {
    flex: 1;
    height: 48px;
    padding: 0 20px;
    border: 2px solid #000000;
    border-radius: 24px;
    background: #FFFFFF;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 4px 4px 0px #000000;
    box-sizing: border-box;
    min-width: 0;
}

.wechat-input-row input:focus,
.chat-input:focus {
    box-shadow: 3px 3px 0px #000000;
    transform: translate(1px, 1px);
}

.wechat-input-row .action-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: 2px solid #000000 !important;
    background: #FFFFFF !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #000000 !important;
    transition: all 0.2s ease;
    flex: none !important;
    flex-shrink: 0;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    font-family: 'Font Awesome 6 Free', 'FontAwesome', sans-serif;
    font-weight: 900;
}

.wechat-input-row .action-btn:hover {
    background: #F0F0F0;
    color: #000000;
}

.wechat-input-row .send-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: 2px solid #000000 !important;
    background: #000000 !important;
    color: #FFFFFF !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    flex: none !important;
    flex-shrink: 0;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    font-family: 'Font Awesome 6 Free', 'FontAwesome', sans-serif;
    font-weight: 900;
}

.wechat-input-row .send-btn:hover {
    background: #333333;
    transform: scale(1.05);
}

/* Calling Screens - Modern Editorial Poster */
.call-fullscreen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

/* Voice Call - Classic Layout with Chat */
.call-fullscreen.voice-call {
    background: #FAF9F6;
    background-image: radial-gradient(#000000 0.5px, transparent 0.5px);
    background-size: 16px 16px;
    padding: 0;
}

/* Call Header */
.call-header {
    text-align: center;
    padding: 40px 20px 20px;
    padding-top: calc(40px + env(safe-area-inset-top));
    z-index: 2;
}

.call-role-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.call-status {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #666666;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Avatar Section */
.call-avatar-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    z-index: 2;
}

.call-avatar-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pulse Rings */
.pulse-ring {
    position: absolute;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
}

.pulse-ring-1 {
    width: 160px;
    height: 160px;
    animation-delay: 0s;
}

.pulse-ring-2 {
    width: 200px;
    height: 200px;
    animation-delay: 0.5s;
}

.pulse-ring-3 {
    width: 240px;
    height: 240px;
    animation-delay: 1s;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.call-group-avatars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 240px;
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    border: 2px solid #000000;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.1);
    margin: 0 auto;
}

.group-call-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
}

.group-call-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-call-avatar.more {
    background: #F3F4F6;
    font-size: 24px;
    font-weight: 700;
    color: #000000;
}

.group-call-avatar.more span {
    font-family: 'Playfair Display', serif;
}

.video-magazine-visual.group-visual {
    cursor: default;
}

.video-magazine-visual.group-visual:active {
    transform: none;
}

.group-members-settings {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.group-member-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: #FFFFFF;
    border: 1.5px solid #000000;
    border-radius: 16px;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.05);
}

.group-member-small-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #000000;
    flex-shrink: 0;
}

.group-member-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.custom-member-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid white;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-persona-text {
    font-size: 12px;
    color: #666666;
    margin-top: 4px;
    font-style: italic;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
}

.group-member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.group-member-name {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
}

.group-member-relation-input {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid #CCCCCC;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.2s ease;
}

.group-member-relation-input:focus {
    border-color: #000000;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

.remove-member-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #FF4444;
    background: #FFFFFF;
    color: #FF4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.remove-member-btn:hover {
    background: #FF4444;
    color: #FFFFFF;
    transform: scale(1.1);
}

.edit-member-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #000000;
    background: #FFFFFF;
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.edit-member-btn:hover {
    background: #000000;
    color: #FFFFFF;
    transform: scale(1.08);
}

.custom-member-worldbook-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1.5px solid #CCCCCC;
    border-radius: 12px;
    padding: 8px 10px;
    background: #FAFAFA;
}

.custom-member-wb-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}

.custom-member-wb-row:last-child {
    border-bottom: none;
}

.member-editor-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.member-editor-modal-body .member-editor-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #111;
}

.member-editor-wb-list {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 8px 10px;
    background: #FAFAFA;
}

.member-editor-wb-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 13px;
}

.member-editor-wb-row:last-child {
    border-bottom: none;
}

.member-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.add-member-btn {
    width: 100%;
    padding: 16px;
    border: 2px dashed #000000;
    background: #F9F9F9;
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.add-member-btn:hover {
    background: #FFFFFF;
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

.add-member-btn i {
    font-size: 18px;
}

.add-member-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 4px;
    background: #F3F4F6;
    border-radius: 12px;
}

.add-member-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #666666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-member-tab:hover {
    color: #000000;
}

.add-member-tab.active {
    background: #FFFFFF;
    color: #000000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Large Avatar */
.call-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #FFFFFF;
    overflow: hidden;
    background: #FFFFFF;
    position: relative;
    z-index: 3;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.call-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Call Messages Area */
.call-messages-area {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px;
    z-index: 2;
    background: transparent;
}

.call-msg {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    animation: msg-fade-in 0.3s ease;
}

@keyframes msg-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.call-msg.user {
    align-self: flex-end;
    align-items: flex-end;
}

.call-msg.ai {
    align-self: flex-start;
    align-items: flex-start;
}

.call-msg-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    max-width: 100%;
    word-wrap: break-word;
}

.call-msg.user .call-msg-bubble {
    background: #000000;
    color: #ffffff;
    border-radius: 18px;
    box-shadow: none;
}

.call-msg.ai .call-msg-bubble {
    background: #f2f2f2;
    color: #000000;
    border: none;
    border-radius: 18px;
    box-shadow: none;
}

.call-msg-bubble.typing {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: none;
}

.call-msg-bubble.typing .typing-dots {
    display: flex;
    gap: 4px;
}

.call-msg-bubble.typing .typing-dots span {
    width: 6px;
    height: 6px;
    background: #666;
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}

.call-msg-bubble.typing .typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.call-msg-bubble.typing .typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

/* Bottom Area */
.call-bottom-area {
    padding: 16px 20px 30px;
    padding-bottom: calc(30px + env(safe-area-inset-bottom));
    z-index: 2;
}

/* Text Input Bar */
.call-text-input-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 8px 8px 8px 16px;
    margin-bottom: 16px;
}

.call-text-input-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 15px;
    color: #1A1A1A;
    background: transparent;
}

.call-text-input-bar input::placeholder {
    color: #999999;
}

.call-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #0f3460;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.call-send-btn:hover {
    background: #1a5490;
    transform: scale(1.05);
}

/* Controls Bar */
.call-controls-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.call-ctrl-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #1A1A1A;
    cursor: pointer;
    transition: all 0.2s ease;
}

.call-ctrl-btn i {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s ease;
}

.call-ctrl-btn:hover i {
    background: #000000;
    color: #FFFFFF;
    transform: scale(1.05);
}

.call-ctrl-btn.active i {
    background: #000000;
    color: #FFFFFF;
}

.call-ctrl-btn span {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #666666;
}

.call-ctrl-btn.end-call i {
    background: #e74c3c;
}

.call-ctrl-btn.end-call:hover i {
    background: #c0392b;
}

.call-message-time {
    font-size: 11px;
    color: #666666;
    margin-top: 4px;
    font-family: 'Inter', Arial, sans-serif;
}

.call-message-bubble.typing {
    padding: 16px 20px;
    background: #FFFFFF;
    border: 2px solid #000000;
}

.call-message-bubble.typing .typing-dots {
    display: flex;
    gap: 4px;
}

.call-message-bubble.typing .typing-dots span {
    width: 6px;
    height: 6px;
    background: #000000;
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}

.call-message-bubble.typing .typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.call-message-bubble.typing .typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Video Call - Magazine Poster Style */
.call-fullscreen.video-call {
    background: #FAF9F6;
    background-image: radial-gradient(#000000 0.5px, transparent 0.5px);
    background-size: 16px 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
}

/* Decorative Elements */
.video-decoration {
    position: absolute;
    color: rgba(26, 26, 26, 0.15);
    pointer-events: none;
    z-index: 1;
}

.video-deco-1 {
    width: 20px;
    height: 20px;
    top: 12%;
    left: 8%;
}

.video-deco-2 {
    width: 16px;
    height: 16px;
    bottom: 20%;
    right: 10%;
}

/* Magazine Layout */
.video-magazine-layout {
    display: flex;
    flex-direction: column;
    padding: 24px 32px 16px;
    padding-top: calc(24px + env(safe-area-inset-top));
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    min-height: 0;
}

/* Magazine Header */
.video-magazine-header {
    text-align: center;
    margin-bottom: 16px;
}

.video-magazine-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    color: #1A1A1A;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 8px;
}

.video-magazine-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: #666666;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.video-magazine-timer {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: #999999;
    letter-spacing: 2px;
}

/* Magazine Visual - Main Avatar */
.video-magazine-visual {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 8px 0;
}

.video-magazine-visual:active {
    transform: scale(0.98);
}

.swap-hint-main {
    position: absolute;
    bottom: -30px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: rgba(26, 26, 26, 0.4);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-magazine-visual:hover .swap-hint-main {
    opacity: 1;
}

.video-magazine-frame {
    position: relative;
    width: 160px;
    height: 200px;
    padding: 6px;
}

.video-magazine-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.3);
    position: relative;
    z-index: 2;
}

.video-magazine-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid #000000;
    z-index: 3;
    pointer-events: none;
}

.video-magazine-caption {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.caption-line {
    width: 60px;
    height: 1px;
    background: #000000;
}

.caption-text {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 4px;
    color: #666666;
    text-transform: uppercase;
}

/* Self View - Small Window - Draggable (Fullscreen positioned) */
.video-magazine-self {
    position: fixed;
    width: 80px;
    height: 100px;
    border: 2px solid #000000;
    background: #FFFFFF;
    overflow: hidden;
    z-index: 100;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.video-magazine-self:active {
    cursor: grabbing;
}

.video-self-frame {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-size: 24px;
}

.drag-hint {
    position: absolute;
    bottom: 4px;
    right: 4px;
    font-size: 8px;
    color: rgba(0, 0, 0, 0.3);
    letter-spacing: -2px;
    pointer-events: none;
}

.swap-hint {
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 8px;
    color: rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-magazine-self:hover .swap-hint {
    opacity: 1;
}

.video-magazine-self.swapped {
    border-color: #000000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.video-self-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-self-large {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    font-size: 80px;
    color: #999999;
}

/* Video Call Messages */
.video-call-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2;
    min-height: 0;
    max-height: none;
    background: transparent;
}

.video-call-msg {
    display: flex;
    max-width: 80%;
}

.video-call-msg.user {
    align-self: flex-end;
}

.video-call-msg.ai {
    align-self: flex-start;
}

.video-call-msg-bubble {
    padding: 10px 16px;
    border-radius: 18px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.video-call-msg.user .video-call-msg-bubble {
    background: #000000;
    color: #ffffff;
    border-radius: 18px;
    box-shadow: none;
}

.video-call-msg.ai .video-call-msg-bubble {
    background: #f2f2f2;
    color: #000000;
    border: none;
    border-radius: 18px;
    box-shadow: none;
}

.video-call-msg-bubble.typing {
    padding: 12px 16px;
}

/* Video Call Bottom Area */
.video-magazine-bottom {
    padding: 16px 24px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
    background: #FAF9F6;
}

/* Video Call Input Bar */
.video-call-input-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 24px;
    padding: 4px 4px 4px 16px;
}

.video-call-input-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #1A1A1A;
    outline: none;
}

.video-call-input-bar input::placeholder {
    color: #999999;
}

.video-call-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #000000;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.video-call-send-btn:hover {
    background: #333333;
    transform: scale(1.05);
}

/* Magazine Controls */
.video-magazine-controls {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.video-mag-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #000000;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #1A1A1A;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-mag-btn:hover {
    background: #000000;
    color: #FFFFFF;
    transform: scale(1.08);
}

.video-mag-btn.active {
    background: #000000;
    color: #FFFFFF;
}

.video-mag-btn.end {
    width: 64px;
    height: 64px;
    background: #000000;
    color: #FFFFFF;
    border: none;
    font-size: 22px;
}

.video-mag-btn.end:hover {
    background: #333333;
    transform: scale(1.12);
}

/* Chat Settings & Function Cards - Paper Cards */
.settings-card {
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.08);
}

.settings-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #000000;
}

/* Square Sliders - Physical Switch Style */
.square-slider {
    width: 52px;
    height: 28px;
    background: #F5F5F5;
    border: 2px solid #000000;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.square-slider.active {
    background: #000000;
}

.square-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 3px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 1px 1px 0px rgba(0,0,0,0.1);
}

.square-slider.active::after {
    left: 27px;
    background: #FFFFFF;
    border-color: #FFFFFF;
}

/* Function Cards - Mini Posters */
.function-card {
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.function-card:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 0px rgba(0,0,0,0.12);
}

.function-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #000000;
    opacity: 0.1;
}

.function-card::after {
    content: '✦';
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 20px;
    opacity: 0.15;
    color: #000000;
}

.function-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.function-card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
}

/* Additional Chat Components */

/* Emoji Panel */
.emoji-panel {
    position: fixed;
    bottom: 90px;
    left: 20px;
    right: 20px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 20px;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    z-index: 150;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
    max-height: 200px;
    overflow-y: auto;
}

.emoji-item {
    font-size: 22px;
    cursor: pointer;
    text-align: center;
    padding: 4px;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.emoji-item:hover {
    background: rgba(0,0,0,0.05);
    transform: scale(1.2);
}

/* Attachment Panel Overlay */
.attachment-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 149;
}

/* Attachment Panel */
.attachment-panel {
    position: fixed;
    bottom: 90px;
    left: 16px;
    right: 16px;
    background: #F8F8F8;
    border-radius: 20px;
    padding: 16px;
    z-index: 150;
    max-width: 100%;
    box-sizing: border-box;
}

.attachment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.attachment-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    aspect-ratio: 1;
    min-height: 60px;
}

.attachment-item:active {
    transform: scale(0.95);
    background: #F0F0F0;
}

.attachment-item i {
    font-size: 28px;
    color: #000000;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F5F5;
    border-radius: 14px;
}

/* Context Menu */
.context-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
}

.context-menu {
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 16px;
    padding: 8px;
    min-width: 160px;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

.context-menu-item {
    padding: 12px 16px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.context-menu-item:hover {
    background: rgba(0,0,0,0.05);
}

/* Emoji Button */
.emoji-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666666;
    transition: all 0.2s ease;
}

.emoji-btn:hover {
    background: #F0F0F0;
    color: #000000;
}

/* Sticker Panel */
.sticker-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 300;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.sticker-panel {
    background: #FFFFFF;
    border: 2px solid #000000;
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    padding: 16px;
    width: 100%;
    max-height: 45vh;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}

.sticker-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #E0E0E0;
    gap: 12px;
}

.sticker-tabs-scroll {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.sticker-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.sticker-tabs-wrapper {
    display: flex;
    gap: 8px;
}
.message.call-message .call-content.clickable {
    cursor: pointer;
}
.message.call-message .call-content .call-diary-hint {
    margin-left: 8px;
    font-size: 11px;
    letter-spacing: 0.04em;
    opacity: 0.75;
    border-left: 1px solid rgba(0, 0, 0, 0.2);
    padding-left: 8px;
}

.call-diary-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08), transparent 35%),
        rgba(0, 0, 0, 0.66);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.call-diary-panel {
    width: min(620px, 95vw);
    max-height: 82vh;
    background: #f8f8f8;
    border: 1px solid rgba(17, 17, 17, 0.75);
    border-radius: 18px;
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.42),
        0 1px 0 rgba(255, 255, 255, 0.6) inset;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}
.call-diary-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0.05)),
        repeating-linear-gradient(0deg, rgba(0,0,0,0.018) 0, rgba(0,0,0,0.018) 1px, transparent 1px, transparent 3px);
}
.call-diary-header {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    padding: 18px 22px 12px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.75);
    background: #fff;
    font-family: "Inter", sans-serif;
    letter-spacing: 0.08em;
    position: relative;
    z-index: 1;
}
.call-diary-kicker {
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid rgba(17, 17, 17, 0.8);
    padding: 4px 8px;
    border-radius: 999px;
    background: #1d1d1d;
    color: #fff;
    margin-right: 6px;
}
.call-diary-header strong {
    flex: 1;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.call-diary-issue,
.call-diary-file {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #2a2a2a;
    border: 1px solid rgba(17, 17, 17, 0.42);
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.72);
}
.call-diary-close {
    border: 1px solid rgba(17, 17, 17, 0.75);
    background: #fff;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    cursor: pointer;
}
.call-diary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 22px;
    border-bottom: 1px dashed rgba(17, 17, 17, 0.6);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #222;
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: 1;
}
.call-diary-meta span {
    border: 1px solid rgba(26, 26, 26, 0.45);
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
}
.call-diary-body {
    padding: 22px 24px 28px;
    overflow: auto;
    white-space: pre-wrap;
    line-height: 1.95;
    color: #111;
    font-size: 15px;
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    text-shadow: 0 0 0.01px rgba(0,0,0,0.01);
    background:
        linear-gradient(180deg, #fdfdfd 0%, #f4f4f4 100%);
    position: relative;
    z-index: 1;
    column-gap: 28px;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.call-diary-body::after {
    content: '';
    display: block;
    height: 1px;
    margin-top: 14px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.35), transparent);
}
.call-diary-body.long-form {
    column-count: 2;
}
.call-diary-body::first-letter {
    float: left;
    font-size: 3.2em;
    line-height: 0.9;
    margin-right: 0.16em;
    margin-top: 0.1em;
    font-weight: 700;
    font-family: "Playfair Display", "Noto Serif SC", serif;
    color: #1a1a1a;
}
@media (max-width: 720px) {
    .call-diary-body.long-form {
        column-count: 1;
    }
}

.sticker-tab-item {
    flex-shrink: 0;
    padding: 8px 16px;
    background: #F5F5F5;
    border: 2px solid transparent;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #666666;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sticker-tab-item.active {
    background: #000000;
    color: #FFFFFF;
    border-color: #000000;
}

.sticker-tab-item:hover:not(.active) {
    background: #E0E0E0;
}

.sticker-import-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sticker-import-btn:hover {
    background: #333333;
    transform: scale(1.1);
}

.sticker-content-area {
    flex: 1;
    overflow-y: auto;
}

.sticker-tab-content {
    min-height: 100%;
}

.sticker-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.sticker-empty-state.small {
    padding: 30px 20px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-icon-small {
    font-size: 36px;
    margin-bottom: 12px;
}

.sticker-empty-state p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #666666;
    margin: 0 0 20px 0;
}

.sticker-empty-state.small p {
    font-size: 14px;
    margin-bottom: 0;
}

.add-first-pack-btn {
    padding: 12px 24px;
    background: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.add-first-pack-btn:hover {
    background: #333333;
}

.sticker-pack-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #F5F5F5;
    border-radius: 12px;
}

.pack-name {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.delete-pack-btn {
    padding: 6px 10px;
    background: transparent;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    cursor: pointer;
    color: #999999;
    transition: all 0.2s ease;
}

.delete-pack-btn:hover {
    background: #FFE5E5;
    border-color: #FF0000;
    color: #FF0000;
}

.sticker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.sticker-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticker-item:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sticker-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sticker-item.is-favorite {
    position: relative;
}

.favorite-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Sticker Import Panel */
.sticker-import-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sticker-import-panel {
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 8px 8px 0px #000000;
}

.sticker-import-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 2px solid #E0E0E0;
}

.sticker-import-header span {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
}

.back-btn-small {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #000000;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.back-btn-small:hover {
    background: #F0F0F0;
}

.sticker-import-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.import-field {
    margin-bottom: 16px;
}

.import-field label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
}

.pack-name-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #000000;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.pack-name-input:focus {
    box-shadow: 4px 4px 0px #000000;
}

.sticker-import-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 16px;
    border: 2px solid #000000;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    resize: vertical;
    outline: none;
    transition: all 0.2s ease;
}

.sticker-import-textarea:focus {
    box-shadow: 4px 4px 0px #000000;
}

.sticker-import-textarea::placeholder {
    color: #999999;
}

.import-preview {
    margin-top: 16px;
    padding: 12px;
    background: #F5F5F5;
    border-radius: 12px;
}

.import-preview label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #666666;
    margin-bottom: 10px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.preview-item {
    text-align: center;
}

.preview-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
}

.preview-item span {
    display: block;
    font-size: 10px;
    color: #666666;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-more {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E0E0E0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #666666;
}

.import-submit-btn {
    margin: 20px;
    padding: 14px;
    background: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.import-submit-btn:hover:not(:disabled) {
    background: #333333;
}

.import-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Sticker Message in Chat */
.sticker-message {
    max-width: 150px;
}

.sticker-message-wrapper {
    position: relative;
    display: inline-block;
    max-width: 150px;
}

.sticker-image {
    width: 100%;
    border-radius: 12px;
    border: 2px solid #000000;
    box-shadow: 4px 4px 0px #000000;
}

.sticker-counter-btn {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    z-index: 10;
}

.sticker-counter-btn:hover {
    transform: scale(1.1);
    background: #333333;
}

.sticker-counter-btn:active {
    transform: scale(0.95);
    box-shadow: 1px 1px 0px rgba(0,0,0,0.3);
}

.context-menu-item.danger {
    color: #000000;
    font-weight: 600;
}

.context-menu-item.danger:hover {
    background: #000000;
    color: #FFFFFF;
}

/* Novel Mode (Offline) - Pure Novel Style */
.wechat-messages.novel-mode {
    background: #f8f5f0;
    padding: 32px 32px 120px;
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.8;
    background-image: linear-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 100% 32px;
    background-position: 0 16px;
    overflow-y: auto;
}

.novel-text {
    font-size: 16px;
    color: #2c2c2c;
    margin: 16px 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    position: relative;
}

.novel-char-name {
    font-weight: 700;
    color: #000000;
    font-size: 17px;
    margin-right: 12px;
    font-style: italic;
}

.novel-user-name {
    font-weight: 700;
    color: #666666;
    font-size: 17px;
    margin-right: 12px;
    font-style: italic;
}

.novel-content {
    color: #333333;
    text-align: justify;
    line-height: 1.8;
}

/* Greeting Modal */
.greeting-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.greeting-content {
    background: #FFFFFF;
    width: 90%;
    max-width: 400px;
    max-height: 70vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.greeting-content .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #E0E0E0;
    background: #FFFFFF;
    border-radius: 12px 12px 0 0;
}

.greeting-content .modal-header span {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
}

.greeting-content .close-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666666;
    padding: 4px;
}

.greeting-list {
    padding: 16px;
    max-height: 60vh;
    overflow-y: auto;
}

.greeting-item {
    padding: 16px;
    border: 1.5px solid #000000;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #FFFFFF;
}

.greeting-item:hover {
    background: #F5F5F5;
    transform: translateY(-2px);
    box-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

.greeting-text {
    font-size: 14px;
    line-height: 1.5;
    color: #333333;
    font-family: 'Inter', sans-serif;
}

/* Chat Settings Panel */
.chat-settings-panel {
    max-height: 70vh;
    overflow-y: auto;
}

.settings-input {
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    width: 100%;
    transition: all 0.2s ease;
}

.settings-input:focus {
    box-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

.settings-select {
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: #FFFFFF;
    cursor: pointer;
    outline: none;
}

.settings-textarea {
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 12px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    min-height: 80px;
    width: 100%;
    outline: none;
}

.settings-button {
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
}

.settings-button:hover {
    background: #000000;
    color: #FFFFFF;
}

.settings-button.btn-block {
    width: 100%;
    text-align: center;
}

.save-button {
    background: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

.save-button:hover {
    transform: translateY(-2px);
    box-shadow: 3px 3px 0px rgba(0,0,0,0.2);
}

.settings-hint {
    font-size: 12px;
    color: #888888;
    font-family: 'Inter', sans-serif;
    margin-top: 8px;
    font-style: italic;
}

/* Image Bubbles */
.bubble.image-bubble {
    padding: 8px;
    overflow: hidden;
}

.chat-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.chat-image:hover {
    transform: scale(1.02);
}

.mock-image {
    width: 180px;
    height: 120px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.mock-image-desc {
    background: rgba(255,255,255,0.95);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: #000000;
    border: 1px solid #000000;
    max-width: 90%;
    text-align: center;
}

/* Location & Transfer Bubbles */
.location-card, .transfer-bubble {
    min-width: 200px;
}

.location-header, .transfer-header {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.location-address {
    font-size: 13px;
    margin-bottom: 4px;
    color: #444444;
}

.location-distance {
    font-size: 14px;
    font-weight: 700;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.transfer-amount {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin: 8px 0;
}

.transfer-status {
    font-size: 11px;
    padding: 4px 8px;
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}

.transfer-note {
    font-size: 12px;
    color: #666666;
    font-style: italic;
    margin-top: 8px;
}

/* Transfer Modal */
.transfer-modal {
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 340px;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

.transfer-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.transfer-modal .modal-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
}

.transfer-modal .close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    color: #666666;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.transfer-modal .close-btn:hover {
    background: #F0F0F0;
    color: #000000;
}

.transfer-input-group {
    margin-bottom: 20px;
}

.transfer-input-group label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 8px;
}

.transfer-amount-input {
    display: flex;
    align-items: center;
    background: #F8F8F8;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 12px 16px;
}

.transfer-amount-input .currency-symbol {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin-right: 8px;
}

.transfer-amount-input input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    outline: none;
}

.transfer-input-group input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    background: #F8F8F8;
    border: 2px solid #000000;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #000000;
    outline: none;
    transition: all 0.2s ease;
}

.transfer-input-group input[type="text"]:focus {
    background: #FFFFFF;
}

.transfer-btn {
    width: 100%;
    padding: 14px 24px;
    background: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.transfer-btn:hover:not(:disabled) {
    background: #333333;
    transform: translateY(-2px);
}

.transfer-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Dot Grid Background - Global Refinement */
.dot-grid-bg {
    background-color: #f8f5f0;
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Location Modal - Travel Postcard Style */
.location-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-modal {
    background: #f8f5f0;
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
    border: 2px solid #000000;
    border-radius: 24px;
    padding: 24px;
    width: 90%;
    max-width: 340px;
    max-height: 85vh;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.location-header-bar {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: transparent;
    border-bottom: 2px solid #000000;
}

.location-header-bar .back-btn-small {
    width: 40px;
    height: 40px;
    border: 2px solid #000000;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #000000;
    margin-right: 12px;
    transition: all 0.2s ease;
}

.location-header-bar .back-btn-small:hover {
    background: #000000;
    color: #ffffff;
}

.location-header-bar span {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
}

/* Map Container with Big Border and Radius */
.location-map-container {
    position: relative;
    margin: 24px 20px;
}

.location-map {
    border: 2px solid #000000;
    border-radius: 32px;
    overflow: hidden;
    height: 220px;
    background: linear-gradient(135deg, #e8e4dc 0%, #d4d0c8 100%);
    filter: grayscale(0.5);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    background: 
        linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px),
        linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.map-marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-marker {
    top: 60%;
    left: 30%;
}

.ai-marker {
    top: 30%;
    right: 25%;
}

.marker-dot {
    width: 16px;
    height: 16px;
    background: #000000;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.marker-label {
    font-family: 'Playfair Display', serif;
    font-size: 12px;
    font-weight: 700;
    color: #000000;
    margin-top: 4px;
    background: #ffffff;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #000000;
}

/* Postmark Decoration */
.postmark-decor {
    position: absolute;
    top: -8px;
    right: 24px;
    width: 60px;
    height: 60px;
    border: 3px dashed #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f5f0;
    font-size: 28px;
    transform: rotate(-15deg);
}

/* Address Card */
.location-address-card {
    margin: 0 20px;
    padding: 24px;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 16px;
}

.location-place-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
    line-height: 1.2;
}

.location-input-section {
    margin-bottom: 16px;
}

.location-input-section:last-child {
    margin-bottom: 0;
}

.location-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #000000;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.location-input {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: 2px solid #000000;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #000000;
    outline: none;
    transition: all 0.15s ease;
}

.location-input::placeholder {
    color: #999999;
}

.location-input:focus {
    background: #f8f5f0;
}

.location-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.detail-item {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #666666;
    letter-spacing: 1px;
}

.detail-divider {
    color: #000000;
    font-weight: 700;
}

.location-distance {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    padding-top: 12px;
    border-top: 1.5px solid #000000;
}

/* Send Location Button */
.send-location-btn {
    margin: 24px 20px 40px;
    padding: 16px 32px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.send-location-btn:hover:not(:disabled) {
    background: #333333;
    transform: translateY(-2px);
}

.send-location-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Transfer Modal - Art Check Style */
.transfer-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transfer-modal {
    background: #f8f5f0;
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
    border: 2px solid #000000;
    border-radius: 24px;
    padding: 24px;
    width: 90%;
    max-width: 340px;
    max-height: 85vh;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.transfer-header-bar {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: transparent;
    border-bottom: 2px solid #000000;
}

.transfer-header-bar .back-btn-small {
    width: 40px;
    height: 40px;
    border: 2px solid #000000;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #000000;
    margin-right: 12px;
    transition: all 0.2s ease;
}

.transfer-header-bar .back-btn-small:hover {
    background: #000000;
    color: #ffffff;
}

.transfer-header-bar span {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
}

/* Transfer Decorations */
.transfer-decorations {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 24px 20px 8px;
}

.deco-star {
    font-size: 20px;
    color: #000000;
    opacity: 0.15;
}

.deco-coin {
    font-size: 24px;
    opacity: 0.2;
}

/* Transfer Flow */
.transfer-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 20px;
}

.transfer-avatar {
    width: 70px;
    height: 70px;
    border: 2px solid #000000;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.transfer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.transfer-avatar .avatar-circle {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
}

.transfer-arrow {
    font-size: 32px;
    color: #000000;
    font-weight: 300;
}

/* Amount Section */
.transfer-amount-section {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    padding: 24px 20px;
}

.currency-symbol {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    color: #000000;
    line-height: 1;
    margin-bottom: 8px;
}

.amount-display {
    position: relative;
}

.amount-input {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 700;
    color: #000000;
    border: none;
    background: transparent;
    width: 200px;
    text-align: left;
    outline: none;
    line-height: 1;
}

.amount-input::placeholder {
    color: #cccccc;
}

.amount-underline {
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: #000000;
}

/* Memo Section */
.transfer-memo-section {
    padding: 8px 20px 24px;
}

.memo-input {
    width: 100%;
    padding: 16px;
    background: transparent;
    border: 2px dashed #000000;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #000000;
    resize: none;
    outline: none;
    min-height: 60px;
}

.memo-input::placeholder {
    color: #999999;
}

/* Transfer Confirm Button with Hard Shadow */
.transfer-confirm-btn {
    margin: 0 20px 40px;
    padding: 16px 32px;
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 6px 6px 0px #000000;
    transition: all 0.15s ease;
}

.transfer-confirm-btn:hover:not(:disabled) {
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0px #000000;
}

.transfer-confirm-btn:active:not(:disabled) {
    transform: translate(4px, 4px);
    box-shadow: 2px 2px 0px #000000;
}

.transfer-confirm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* Photo Select Panel */
.photo-select-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 450;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-select-panel {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 24px;
    padding: 24px;
    width: 90%;
    max-width: 340px;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.1);
}

.photo-select-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.photo-select-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #000000;
}

.photo-select-header .close-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #000000;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.photo-select-header .close-btn:hover {
    background: #000000;
    color: #ffffff;
}

.photo-select-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.photo-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px;
    border: 2px solid #000000;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
}

.photo-option:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

.photo-option .option-icon {
    width: 64px;
    height: 64px;
    border: 2px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 12px;
}

.photo-option .option-label {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.photo-option .option-desc {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    opacity: 0.7;
}

/* Text Image Panel */
.text-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 460;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-image-panel {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 24px;
    padding: 20px;
    width: 90%;
    max-width: 360px;
    max-height: 85vh;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.text-image-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.text-image-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
}

.text-image-header .back-btn-small {
    width: 40px;
    height: 40px;
    border: 2px solid #000000;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.text-image-header .back-btn-small:hover {
    background: #000000;
    color: #ffffff;
}

.text-image-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.text-image-preview {
    display: flex;
    justify-content: center;
    padding: 16px;
}

.text-card-preview {
    width: 220px;
    height: 160px;
    border: 2px solid #000000;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.text-card-preview .text-card-decoration {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    border: 2px dashed #000000;
    border-radius: 50%;
    opacity: 0.3;
}

.text-card-preview .text-card-text {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    text-align: center;
    line-height: 1.3;
    word-wrap: break-word;
    max-width: 100%;
}

.text-image-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.text-image-input {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: 2px solid #000000;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #000000;
    resize: none;
    outline: none;
    min-height: 80px;
}

.text-image-input::placeholder {
    color: #999999;
}

.color-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.color-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.color-option {
    width: 36px;
    height: 36px;
    border: 2px solid #000000;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px #000000;
}

.send-text-image-btn {
    margin-top: 16px;
    padding: 14px 24px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.send-text-image-btn:hover:not(:disabled) {
    background: #333333;
    transform: translateY(-2px);
}

.send-text-image-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Text Image Card in Chat */
.message.text-image-message {
    max-width: 85%;
}

.text-image-card {
    width: 220px;
    height: 160px;
    border: 2px solid #000000;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.text-image-decoration {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    border: 2px dashed #000000;
    border-radius: 50%;
    opacity: 0.3;
}

.text-image-text {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    text-align: center;
    line-height: 1.3;
    word-wrap: break-word;
    max-width: 100%;
}

/* Voice Input Panel */
.voice-input-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 460;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-input-panel {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 24px;
    padding: 20px;
    width: 90%;
    max-width: 360px;
    max-height: 85vh;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.voice-input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.voice-input-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
}

.voice-input-header .back-btn-small {
    width: 40px;
    height: 40px;
    border: 2px solid #000000;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.voice-input-header .back-btn-small:hover {
    background: #000000;
    color: #ffffff;
}

.voice-input-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.voice-input-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #666666;
}

.voice-input-hint i {
    font-size: 16px;
    color: #000000;
}

.voice-textarea {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: 2px solid #000000;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #000000;
    resize: none;
    outline: none;
    min-height: 100px;
}

.voice-textarea::placeholder {
    color: #999999;
}

.voice-preview {
    display: flex;
    justify-content: center;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 12px;
}

.voice-bubble-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #FFFFFF;
    border-radius: 24px;
    min-width: 120px;
    border: 2px solid #000000;
    box-shadow: 4px 4px 0px #000000;
}

.voice-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 20px;
}

.voice-wave span {
    width: 3px;
    background: #000000;
    border-radius: 2px;
    animation: voiceWave 1s ease-in-out infinite;
}

.voice-wave span:nth-child(1) { height: 8px; animation-delay: 0s; }
.voice-wave span:nth-child(2) { height: 14px; animation-delay: 0.1s; }
.voice-wave span:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.voice-wave span:nth-child(4) { height: 18px; animation-delay: 0.3s; }
.voice-wave span:nth-child(5) { height: 12px; animation-delay: 0.4s; }

@keyframes voiceWave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.3); }
}

.voice-duration {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.send-voice-btn {
    margin-top: 16px;
    padding: 14px 24px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.send-voice-btn:hover:not(:disabled) {
    background: #333333;
    transform: translateY(-2px);
}

.send-voice-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Voice Message Bubble in Chat（语音条加上气泡外壳） */
.voice-message-bubble {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: var(--chat-bubble-radius, 18px);
    cursor: pointer;
    flex-wrap: wrap;
    min-width: 100px;
    max-width: 280px;
    border: none;

    /* 默认按“对方消息”浅气泡 */
    background: var(--chat-bubble-ai-bg, #f2f2f2);
    color: var(--chat-bubble-ai-color, #000000);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);

    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.voice-message-bubble:hover {
    transform: none;
    opacity: 0.95;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.message.user .voice-message-bubble {
    background: var(--chat-bubble-user-bg, #000000);
    color: var(--chat-bubble-user-color, #ffffff);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.message.user .voice-message-bubble:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.message.ai .voice-message-bubble {
    background: var(--chat-bubble-ai-bg, #f2f2f2);
    color: var(--chat-bubble-ai-color, #000000);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.voice-waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 20px;
}

.voice-waveform span {
    width: 3px;
    background: currentColor;
    border-radius: 2px;
}

.voice-waveform span:nth-child(1) { height: 6px; }
.voice-waveform span:nth-child(2) { height: 12px; }
.voice-waveform span:nth-child(3) { height: 8px; }
.voice-waveform span:nth-child(4) { height: 16px; }
.voice-waveform span:nth-child(5) { height: 10px; }
.voice-waveform span:nth-child(6) { height: 14px; }
.voice-waveform span:nth-child(7) { height: 8px; }
.voice-waveform span:nth-child(8) { height: 18px; }
.voice-waveform span:nth-child(9) { height: 12px; }
.voice-waveform span:nth-child(10) { height: 6px; }

/* Voice playing animation */
.voice-message-bubble.playing .voice-waveform span {
    animation: voicePlaying 1.2s ease-in-out infinite;
}

.voice-message-bubble.playing .voice-waveform span:nth-child(1) { animation-delay: 0s; }
.voice-message-bubble.playing .voice-waveform span:nth-child(2) { animation-delay: 0.1s; }
.voice-message-bubble.playing .voice-waveform span:nth-child(3) { animation-delay: 0.2s; }
.voice-message-bubble.playing .voice-waveform span:nth-child(4) { animation-delay: 0.3s; }
.voice-message-bubble.playing .voice-waveform span:nth-child(5) { animation-delay: 0.4s; }
.voice-message-bubble.playing .voice-waveform span:nth-child(6) { animation-delay: 0.15s; }
.voice-message-bubble.playing .voice-waveform span:nth-child(7) { animation-delay: 0.25s; }
.voice-message-bubble.playing .voice-waveform span:nth-child(8) { animation-delay: 0.35s; }
.voice-message-bubble.playing .voice-waveform span:nth-child(9) { animation-delay: 0.45s; }
.voice-message-bubble.playing .voice-waveform span:nth-child(10) { animation-delay: 0.05s; }

@keyframes voicePlaying {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(2); }
}

.voice-length {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: currentColor;
    margin-left: auto;
}

.voice-translation {
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease;
}

/* 我方（黑气泡）里：转文字区域改为白字/淡白虚线 */
.message.user .voice-translation {
    border-top: 1px dashed rgba(255, 255, 255, 0.22);
}

.message.user .voice-translation .translation-label {
    color: rgba(255, 255, 255, 0.75);
}

.message.user .voice-translation .translation-text {
    color: rgba(255, 255, 255, 0.92);
}

.message.user .voice-translation .translation-divider {
    border-top: 1px dashed rgba(255, 255, 255, 0.25);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.translation-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #666666;
    margin-bottom: 4px;
}

.translation-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #000000;
    line-height: 1.4;
}

/* Reply / OS translation (横线 + 译文) */
.translation-divider {
    width: 100%;
    border-top: 1px dashed rgba(0, 0, 0, 0.25);
    margin: 8px 0 6px;
}

.message-text {
    white-space: pre-wrap;
    word-break: break-word;
}

.reply-translation,
.os-translation {
    margin-top: 0;
}

/* Special Card Base Style */
.message.special-card-message .bubble,
.message.user.special-card-message .bubble,
.message.ai.special-card-message .bubble {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    max-width: 280px !important;
}

.special-card {
    background: #ffffff;
    border: none;
    border-radius: 24px;
    padding: 16px;
    margin: 0;
    max-width: 260px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.15s ease;
}

/* Special cards — 与气泡同一套白/浅灰与弥散阴影 */
#app.bubble-style-blue .message.user .special-card,
#app.bubble-style-orange .message.user .special-card {
    background: #ffffff !important;
    border: none !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
}
#app.bubble-style-blue .message.ai .special-card,
#app.bubble-style-orange .message.ai .special-card {
    background: #f2f2f2 !important;
    border: none !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
}

/* Ensure concrete special-card variants */
#app.bubble-style-blue .message.user .location-card,
#app.bubble-style-blue .message.user .transfer-card,
#app.bubble-style-blue .message.user .takeaway-card,
#app.bubble-style-blue .message.user .pet-card,
#app.bubble-style-blue .message.user .vote-card,
#app.bubble-style-blue .message.user .order-card,
#app.bubble-style-blue .message.user .help-buy-card,
#app.bubble-style-blue .message.user .share-card,
#app.bubble-style-orange .message.user .location-card,
#app.bubble-style-orange .message.user .transfer-card,
#app.bubble-style-orange .message.user .takeaway-card,
#app.bubble-style-orange .message.user .pet-card,
#app.bubble-style-orange .message.user .vote-card,
#app.bubble-style-orange .message.user .order-card,
#app.bubble-style-orange .message.user .help-buy-card,
#app.bubble-style-orange .message.user .share-card {
    background: #ffffff !important;
    border: none !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
}
#app.bubble-style-blue .message.ai .location-card,
#app.bubble-style-blue .message.ai .transfer-card,
#app.bubble-style-blue .message.ai .takeaway-card,
#app.bubble-style-blue .message.ai .pet-card,
#app.bubble-style-blue .message.ai .vote-card,
#app.bubble-style-blue .message.ai .order-card,
#app.bubble-style-blue .message.ai .help-buy-card,
#app.bubble-style-blue .message.ai .share-card,
#app.bubble-style-orange .message.ai .location-card,
#app.bubble-style-orange .message.ai .transfer-card,
#app.bubble-style-orange .message.ai .takeaway-card,
#app.bubble-style-orange .message.ai .pet-card,
#app.bubble-style-orange .message.ai .vote-card,
#app.bubble-style-orange .message.ai .order-card,
#app.bubble-style-orange .message.ai .help-buy-card,
#app.bubble-style-orange .message.ai .share-card {
    background: #f2f2f2 !important;
    border: none !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
}

/* Round / sharp also apply to special cards */
#app.bubble-style-round .special-card {
    border-radius: 22px;
}
#app.bubble-style-sharp .special-card {
    border-radius: 8px;
}

.special-card:hover {
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.12);
    transform: none;
}

/* Location Card - Mini Map Style */
.location-card {
    position: relative;
    overflow: hidden;
}

.location-card-postmark {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border: 2px dashed #000000;
    border-radius: 50%;
    opacity: 0.3;
}

.location-card-map {
    position: relative;
    background: #e8e8e8;
    border: 2px solid #000000;
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.location-card-map .map-preview {
    width: 100%;
    height: 70px;
    display: block;
}

.location-star {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: #000000;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.8));
}

.location-card-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.location-card-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.location-card-item:last-child {
    border-bottom: none;
}

.location-card-item.distance {
    padding-top: 12px;
    margin-top: 4px;
    border-top: 2px solid #000000;
    border-bottom: none;
}

.location-card-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #666666;
    text-transform: uppercase;
}

.location-card-value {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    text-align: right;
    max-width: 70%;
    word-wrap: break-word;
}

/* Transfer Card - Handwritten Check Style */
.transfer-card {
    position: relative;
    background: #fffbe6 !important;
    text-align: center;
    overflow: hidden;
}

.transfer-card-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #000000;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.transfer-card-amount {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
}

.transfer-card-coin {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    opacity: 0.4;
}

.transfer-card-hint {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-style: italic;
    color: #666666;
    margin-top: 8px;
}

/* Polaroid Card - Photo Frame Style */
.polaroid-card {
    background: #ffffff;
    transform: rotate(-2deg);
    padding: 12px 12px 28px;
}

.polaroid-frame {
    background: #f0f0f0;
    border: 2px solid #000000;
    border-radius: 4px;
    padding: 24px 16px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.polaroid-text {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    font-style: italic;
    color: #000000;
    text-align: center;
    line-height: 1.4;
}

.polaroid-frame .chat-image {
    max-width: 100%;
    max-height: 200px;
    border: none;
    border-radius: 4px;
    box-shadow: none;
    object-fit: cover;
}

.polaroid-bottom {
    text-align: center;
}

.polaroid-date {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #666666;
    letter-spacing: 1px;
}

/* Takeaway Card */
.takeaway-card {
    background: #FFF8E7;
    padding: 16px;
    min-width: 200px;
}

.takeaway-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #000000;
}

.takeaway-header i {
    font-size: 18px;
}

.takeaway-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.takeaway-restaurant {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
}

.takeaway-food {
    font-size: 13px;
    color: #666666;
}

.takeaway-price {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin-top: 8px;
}

/* Tarot Card */
.tarot-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 20px;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.tarot-emoji {
    font-size: 40px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.tarot-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tarot-name {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    color: #FFD700;
}

.tarot-meaning {
    font-size: 11px;
    color: #CCCCCC;
    line-height: 1.4;
}

/* Pet Card */
.pet-card {
    background: #FFF0F5;
    padding: 16px;
    min-width: 200px;
}

.pet-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
}

.pet-action {
    font-size: 13px;
    color: #666666;
    margin-bottom: 12px;
}

.pet-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pet-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #000000;
}

.pet-stat i {
    width: 16px;
    color: #FF69B4;
}

/* Vote Card */
.vote-card {
    background: #F8F9FA;
    padding: 16px;
    min-width: 220px;
}

.vote-question {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
}

.vote-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vote-option {
    position: relative;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.vote-option:hover:not(.voted) {
    background: #F0F0F0;
    transform: translateX(4px);
}

.vote-option.voted {
    cursor: default;
}

.vote-option-text {
    position: relative;
    z-index: 1;
    font-size: 13px;
    font-weight: 500;
    color: #000000;
}

.vote-option-bar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    transition: width 0.3s ease;
}

.vote-option-count {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #666666;
}

.vote-total {
    font-size: 12px;
    color: #666666;
    text-align: right;
    margin-top: 8px;
}

/* Order Card */
.order-card {
    background: #F0F9FF;
    border: 2px solid #000000;
    padding: 16px;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.order-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0066CC, #0099FF);
}

.order-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #000000;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.order-header i {
    font-size: 14px;
    color: #0066CC;
}

.order-item {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
}

.order-price {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
}

.order-price::before {
    content: '¥';
    font-size: 14px;
    margin-right: 2px;
}

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    background: #E5E7EB;
    color: #000000;
    border: 1px solid #000000;
    margin-bottom: 8px;
}

.order-status .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
}

.order-status.配送中,
.order-status.商家接单,
.order-status.已发货,
.order-status.运输中 {
    background: #DBEAFE;
    color: #0066CC;
}

.order-status.已签收 {
    background: #D1FAE5;
    color: #059669;
}

.order-status.已签收 .status-dot {
    background: #059669;
}

.order-eta {
    font-size: 11px;
    color: #666666;
}

/* Help Buy Card */
.help-buy-card {
    background: #FFF8E1;
    border: 2px solid #000000;
    position: relative;
    overflow: hidden;
}

.help-buy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFB800, #FF8C00);
}

.help-buy-card.purchased {
    background: #E8F5E9;
}

.help-buy-card.purchased::before {
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
}

.help-buy-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #000000;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.help-buy-header i {
    font-size: 14px;
    color: #FF8C00;
}

.help-buy-card.purchased .help-buy-header i {
    color: #4CAF50;
}

.help-buy-item {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
    line-height: 1.3;
}

.help-buy-price {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
}

.help-buy-price::before {
    content: '¥';
    font-size: 14px;
    margin-right: 2px;
}

.help-buy-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    background: #FFF3CD;
    color: #856404;
    border: 1px solid #000000;
}

.help-buy-status .status-dot.pending {
    width: 6px;
    height: 6px;
    background: #FFB800;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

.help-buy-thanks {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    background: #C8E6C9;
    color: #2E7D32;
    border: 1px solid #000000;
}

.help-buy-thanks i {
    font-size: 14px;
}

.help-buy-card.clickable {
    cursor: pointer;
    transition: all 0.15s ease;
}

.help-buy-card.clickable:hover {
    transform: translate(4px, 4px);
    box-shadow: 2px 2px 0px #000000;
}

.help-buy-card.clickable:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px #000000;
}

/* Share Card */
.share-card {
    background: #F5F5F5;
    border: 2px solid #000000;
    min-width: 200px;
    max-width: 280px;
    position: relative;
    overflow: hidden;
}

.share-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #000000;
}

.share-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #000000;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.share-header i {
    font-size: 14px;
    color: #666666;
}

.share-content {
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    line-height: 1.6;
    word-break: break-word;
    padding: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border: 1px solid #000000;
}

/* Share Modal */
.share-modal {
    width: 100%;
    max-width: 400px;
    background: #FFFFFF;
    border: 3px solid #000000;
    border-radius: 16px;
    box-shadow: 8px 8px 0px #000000;
    overflow: hidden;
}

.share-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #F5F5F5;
    border-bottom: 3px solid #000000;
}

.share-modal .modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.share-modal .modal-content {
    padding: 20px;
}

.share-input-group {
    margin-bottom: 16px;
}

.share-input-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #000000;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.share-source-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.share-source-item {
    padding: 10px 16px;
    background: #F5F5F5;
    border: 2px solid #000000;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    transition: all 0.15s ease;
}

.share-source-item:hover {
    background: #E0E0E0;
    transform: translate(2px, 2px);
}

.share-source-item.active {
    background: #000000;
    color: #FFFFFF;
}

.share-modal textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #000000;
    border-radius: 12px;
    font-size: 14px;
    resize: none;
    font-family: inherit;
    box-sizing: border-box;
    background: #FAFAFA;
}

.share-modal textarea:focus {
    outline: none;
    background: #FFFFFF;
}

.share-send-btn {
    width: 100%;
    padding: 14px;
    background: #000000;
    border: 2px solid #000000;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 4px 4px 0px #000000;
}

.share-send-btn:hover:not(:disabled) {
    background: #333333;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000000;
}

.share-send-btn:active:not(:disabled) {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #000000;
}

.share-send-btn:disabled {
    background: #BDBDBD;
    cursor: not-allowed;
    box-shadow: none;
}

/* Shopping Modal */
.taobao-modal {
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    background: #FFFFFF;
    border: 3px solid #000000;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 8px 8px 0px #000000;
    display: flex;
    flex-direction: column;
}

.taobao-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 2px solid #000000;
    background: #F5F5F5;
}

.taobao-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 24px;
    padding: 8px 16px;
}

.taobao-search i {
    color: #666666;
    font-size: 16px;
}

.taobao-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: transparent;
}

.taobao-search-btn {
    padding: 6px 16px;
    background: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.taobao-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.taobao-loading,
.taobao-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #666666;
}

.taobao-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #CCCCCC;
}

.taobao-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.taobao-product-card {
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 4px 4px 0px #000000;
    transition: transform 0.2s ease;
}

.taobao-product-card:hover {
    transform: translateY(-2px);
}

.taobao-product-image {
    width: 100%;
    aspect-ratio: 1;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.taobao-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.taobao-image-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.taobao-product-info {
    padding: 12px;
}

.taobao-product-name {
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.taobao-product-price {
    font-size: 16px;
    font-weight: 700;
    color: #FF6B6B;
    margin-bottom: 4px;
}

.taobao-product-category {
    font-size: 11px;
    color: #666666;
    background: #F0F0F0;
    padding: 2px 8px;
    border-radius: 8px;
    display: inline-block;
}

.taobao-action-btns {
    display: flex;
    gap: 8px;
    padding: 0 12px 12px;
}

.taobao-buy-btn {
    flex: 1;
    padding: 10px;
    background: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

.taobao-buy-btn:hover {
    background: #333333;
}

.taobao-buy-btn:active {
    transform: scale(0.98);
}

.taobao-help-buy-btn {
    flex: 1;
    padding: 10px;
    background: #FFFFFF;
    color: #000000;
    border: 2px solid #000000;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

.taobao-help-buy-btn:hover {
    background: #F5F5F5;
}

.taobao-help-buy-btn:active {
    transform: scale(0.98);
}

/* Vote Modal */
.vote-modal {
    width: 100%;
    max-width: 400px;
    background: #FFFFFF;
    border: 3px solid #000000;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 8px 8px 0px #000000;
}

.vote-input-group {
    margin-bottom: 20px;
}

.vote-input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
}

.vote-input-group input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 2px solid #000000;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}

.vote-options-group {
    margin-bottom: 20px;
}

.vote-options-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
}

.vote-option-input {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.vote-option-input input {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    border: 2px solid #000000;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
}

.remove-option-btn {
    width: 44px;
    height: 44px;
    border: 2px solid #000000;
    border-radius: 12px;
    background: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-option-btn:hover {
    background: #FFEBEE;
}

.add-option-btn {
    width: 100%;
    height: 44px;
    border: 2px dashed #000000;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    transition: all 0.2s ease;
}

.add-option-btn:hover {
    background: #F5F5F5;
}

.create-vote-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 12px;
    background: #000000;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.create-vote-btn:hover:not(:disabled) {
    background: #333333;
}

.create-vote-btn:disabled {
    background: #CCCCCC;
    cursor: not-allowed;
}

/* Image Message Style */
.image-message {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.chat-image {
    max-width: 240px;
    max-height: 240px;
    border: 2px solid #000000;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 6px 6px 0px #000000;
    transition: all 0.15s ease;
}

.chat-image:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    transform: none;
}

/* ==========================================
   Art Settings Panel - 艺术画报风
   ========================================== */

.art-settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 45%), rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
}

.art-settings-panel {
    background: #ffffff;
    border: none;
    border-radius: 24px;
    padding: 32px;
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
}

.art-settings-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
    color: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.art-settings-close:hover {
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.12);
    transform: scale(1.03);
}

.art-settings-close:active {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: scale(0.98);
}

.art-settings-title {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(3rem, 8vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -2px;
    color: #000000;
    margin: 8px 0 28px 0;
    line-height: 1.05;
}

.art-profile-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #ffffff;
    border: none;
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.15s ease;
    cursor: pointer;
}

.art-profile-card:hover {
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.12);
    transform: none;
}

.art-profile-avatar {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
}

.art-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.art-profile-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}

.art-profile-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    line-height: 1.2;
}

.art-profile-bio {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #666666;
    line-height: 1.3;
}

.art-reset-avatar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f5f5f5;
    border: none;
    border-radius: 999px;
    padding: 12px 22px;
    margin-bottom: 24px;
    cursor: pointer;
    transition: box-shadow 0.15s ease;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #000000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.art-reset-avatar-btn:hover {
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.12);
    transform: none;
}

.art-reset-avatar-btn svg {
    width: 16px;
    height: 16px;
}

.art-settings-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.art-settings-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border: none;
    border-radius: 24px;
    padding: 18px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.15s ease;
    cursor: pointer;
}

.art-settings-item:hover {
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.12);
    transform: none;
}

.art-settings-item:active {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    transform: none;
}

.art-settings-icon-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.art-settings-blob {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 60% 40% 50% 50% / 40% 60% 50% 50%;
    opacity: 0.25;
}

.blob-color-1 {
    background: #FFB3BA;
}

.blob-color-2 {
    background: #BAFFC9;
}

.art-settings-icon {
    position: relative;
    width: 22px;
    height: 22px;
    color: #000000;
    z-index: 1;
}

.art-settings-label {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #000000;
}

.art-settings-arrow {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.15s ease;
}

.art-settings-arrow:hover {
    transform: translateX(3px);
}

.art-bottom-decoration {
    margin-top: 8px;
    padding-top: 20px;
    position: relative;
}

.art-decoration-illustration {
    width: 100%;
    height: auto;
    display: block;
}

.art-version-info {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: #999999;
    letter-spacing: 2px;
}

.art-version-info span {
    line-height: 1;
}

.art-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin: 12px 0 14px 0;
    letter-spacing: -0.5px;
}

.art-settings-input-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #ffffff;
    border: none;
    border-radius: 24px;
    padding: 18px 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.18s ease;
    margin-bottom: 14px;
}

.art-settings-input-item:hover {
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.12);
    transform: none;
}

.art-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.art-input-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.art-settings-input {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 11px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #000000;
    background: #f5f5f5;
    outline: none;
    transition: box-shadow 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.art-settings-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06), inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.art-settings-input::placeholder {
    color: #999999;
}

.blob-color-3 {
    background: #BAE1FF;
}

.blob-color-4 {
    background: #FFFFBA;
}

.blob-color-5 {
    background: #FFD6A5;
}

.blob-color-6 {
    background: #E0BBE4;
}

.art-save-section {
    margin-top: 12px;
    margin-bottom: 24px;
}

.art-save-btn {
    width: 100%;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 14px 24px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.art-save-btn:hover {
    transform: none;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
}

/* 上下文菜单 */
.context-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

.context-menu {
    position: fixed;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 8px 8px 0px #000000;
    z-index: 10001;
    min-width: 140px;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.context-menu-item:hover {
    background: #F5F5F5;
}

.context-menu-item svg {
    width: 18px;
    height: 18px;
}

.message-like {
    position: absolute;
    bottom: -10px;
    width: 24px;
    height: 24px;
    animation: heartBeat 0.3s ease;
}

.message-like.user {
    left: -10px;
}

.message-like.ai {
    right: -10px;
}

.message-like svg {
    width: 100%;
    height: 100%;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.editing-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F5F5F5;
    border: 2px solid #000000;
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    padding: 10px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
}

.editing-indicator i {
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.15s ease;
}

.editing-indicator i:hover {
    transform: scale(1.2);
}

/* 引用消息样式 */
.reply-quote {
    margin-bottom: 12px;
    padding: 10px 14px;
    background: #E5E7EB;
    border-radius: 16px;
    position: relative;
    border-left: 4px solid #000000;
}

.reply-quote-content {
}

.reply-quote-sender {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 11px;
    font-weight: 700;
    color: #4B5563;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reply-quote-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
    word-break: break-word;
    font-style: italic;
}

.message.user .bubble .reply-quote {
    background: rgba(255, 255, 255, 0.12);
    border-left: none;
    border-radius: 14px;
}

.message.user .bubble .reply-quote-sender {
    color: rgba(255, 255, 255, 0.75);
}

.message.user .bubble .reply-quote-text {
    color: rgba(255, 255, 255, 0.92);
}

/* 回复预览样式 */
.reply-preview {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #F3F4F6;
    border: 2px solid #000000;
    border-bottom: none;
    border-radius: 24px 24px 0 0;
    padding: 12px 18px;
    box-shadow: 4px 0px 0px #000000;
}

.reply-preview-content {
    flex: 1;
    min-width: 0;
    margin-right: 12px;
    border-left: 3px solid #000000;
    padding-left: 12px;
}

.reply-preview-sender {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 11px;
    font-weight: 700;
    color: #4B5563;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reply-preview-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 13px;
    color: #374151;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-style: italic;
}

.reply-preview .fa-times {
    flex-shrink: 0;
    cursor: pointer;
    font-size: 18px;
    color: #000000;
    transition: transform 0.15s ease;
    margin-top: 2px;
}

.reply-preview .fa-times:hover {
    transform: scale(1.2);
}

.art-save-btn:active {
    transform: translate(6px, 6px);
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.3);
}

/* Workshop, Console, Theme, Notice Styles */
/* Workshop Styles */
.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    width: 100%;
    overflow: hidden;
}

.card .flex {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.card input[type="text"],
.card select {
    flex: 1;
    min-width: 0;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.character-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.1);
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.character-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px 0 rgba(31, 38, 135, 0.15);
}

.character-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.character-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.character-summary {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.profile-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.1);
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px 0 rgba(31, 38, 135, 0.15);
}

.profile-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.profile-meta {
    font-size: 12px;
    color: #666;
}

/* Console Styles */
.console-logs {
    max-height: 300px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
}

.console-log-item {
    margin-bottom: 8px;
    padding: 4px 8px;
    border-radius: 4px;
}

.console-log-item.error {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

.console-log-item.info {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.console-log-item.success {
    background: rgba(7, 193, 96, 0.1);
    color: #07c160;
}

/* Theme Styles */
.theme-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.theme-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px 0 rgba(31, 38, 135, 0.15);
}

.theme-preview {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.theme-light {
    background: #ffffff;
}

.theme-dark {
    background: #1a1a1a;
}

.theme-auto {
    background: linear-gradient(135deg, #ffffff 0%, #1a1a1a 100%);
}

.wallpaper-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.wallpaper-item {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.wallpaper-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px 0 rgba(31, 38, 135, 0.15);
}

.wallpaper-preview {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.wallpaper-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    font-size: 12px;
    text-align: center;
}

/* Notice Styles */
.notice-item {
    margin-bottom: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.1);
}

.notice-date {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.notice-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.notice-content {
    font-size: 13px;
    line-height: 1.5;
    color: #333;
}

.notice-content ul {
    padding-left: 20px;
    margin: 8px 0;
}

.notice-content li {
    margin-bottom: 4px;
}

.notice-content p {
    margin-bottom: 8px;
}

/* Button Styles */
.btn-small {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px 0 rgba(31, 38, 135, 0.1);
}

.btn {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px 0 rgba(31, 38, 135, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #07C160 0%, #00A854 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px 0 rgba(7, 193, 96, 0.3);
}

.art-archive-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.art-archive-panel {
    width: 100%;
    max-width: 380px;
    max-height: 75vh;
    background: #FDFDFB;
    border: 3px solid #000000;
    border-radius: 24px;
    padding: 24px 24px 20px 24px;
    box-shadow: 12px 12px 0px #000000;
    overflow-y: auto;
    position: relative;
}

.art-archive-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    z-index: 10;
}

.art-archive-close:hover {
    background: #000000;
    color: #FFFFFF;
}

.art-archive-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -2px;
    color: #000000;
    margin: 0 0 24px 0;
    line-height: 1;
    padding-right: 40px;
}

.art-archive-empty {
    text-align: center;
    padding: 20px 0 30px 0;
}

.art-empty-illustration {
    margin-bottom: 16px;
}

.art-empty-illustration svg {
    width: 120px;
    height: 120px;
}

.art-empty-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 8px 0;
}

.art-empty-hint {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #666666;
    margin: 0;
}

.art-archive-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.art-archive-card {
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 6px 6px 0px #000000;
    transition: all 0.15s ease;
}

.art-archive-card:hover {
    box-shadow: 2px 2px 0px #000000;
    transform: translate(4px, 4px);
}

.art-archive-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.art-archive-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.art-archive-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
}

.art-archive-name-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.art-archive-tag-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.art-archive-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.art-archive-tag.single-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #FFFFFF;
}

.art-archive-tag.group-tag {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #FFFFFF;
}

.art-archive-chatname {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #999999;
}

.art-archive-preview {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #333333;
    line-height: 1.5;
    margin-bottom: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.art-archive-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.art-archive-time {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #666666;
}

.art-archive-buttons {
    display: flex;
    gap: 8px;
}

.art-archive-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 2px solid #000000;
}

.art-archive-btn-restore {
    background: #FFFFFF;
    color: #000000;
}

.art-archive-btn-restore:hover {
    background: #000000;
    color: #FFFFFF;
}

.art-archive-btn-delete {
    background: #FFE4E4;
    color: #000000;
}

.art-archive-btn-delete:hover {
    background: #000000;
    color: #FFFFFF;
}

.art-archive-bottom {
    margin-top: 8px;
}

.art-archive-decoration {
    width: 100%;
    height: 60px;
}

.art-savearchive-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.art-savearchive-panel {
    width: 100%;
    max-width: 360px;
    background: #FDFDFB;
    border: 3px solid #000000;
    border-radius: 24px;
    padding: 24px 24px 20px 24px;
    box-shadow: 12px 12px 0px #000000;
    position: relative;
}

.art-savearchive-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    z-index: 10;
}

.art-savearchive-close:hover {
    background: #000000;
    color: #FFFFFF;
}

.art-savearchive-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -2px;
    color: #000000;
    margin: 0 0 16px 0;
    line-height: 1;
    padding-right: 40px;
}

.art-savearchive-illustration {
    margin-bottom: 20px;
    text-align: center;
}

.art-savearchive-illustration svg {
    width: 160px;
    height: 100px;
}

.art-savearchive-input-group {
    margin-bottom: 16px;
}

.art-savearchive-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.art-savearchive-input {
    width: 100%;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #000000;
    background: #FFFFFF;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.art-savearchive-input:focus {
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
}

.art-savearchive-input::placeholder {
    color: #999999;
}

.art-savearchive-textarea {
    width: 100%;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #000000;
    background: #FFFFFF;
    outline: none;
    transition: all 0.2s ease;
    min-height: 80px;
    resize: vertical;
    box-sizing: border-box;
}

.art-savearchive-textarea:focus {
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
}

.art-savearchive-textarea::placeholder {
    color: #999999;
}

.art-savearchive-buttons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.art-savearchive-btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 2px solid #000000;
}

.art-savearchive-btn-cancel {
    background: #FFFFFF;
    color: #000000;
}

.art-savearchive-btn-cancel:hover {
    background: #F5F5F5;
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
}

.art-savearchive-btn-save {
    background: #000000;
    color: #FFFFFF;
}

.art-savearchive-btn-save:hover {
    transform: translate(3px, 3px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   Mate System - Visual Diary Style
   ========================================== */

/* Background Noise - Premium Magazine Style */
.mate-app {
    background: linear-gradient(135deg, #FAFAF8 0%, #F5F0E8 100%);
    position: relative;
    overflow: hidden;
}

.mate-app::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(#000000 0.5px, transparent 0.5px),
        radial-gradient(#000000 0.5px, transparent 0.5px),
        radial-gradient(#000000 0.5px, transparent 0.5px);
    background-size: 20px 20px, 30px 30px, 40px 40px;
    background-position: 0 0, 10px 10px, 20px 20px;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.mate-app::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23000000' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 150px 150px;
    pointer-events: none;
    z-index: 0;
}

/* Header - Premium Magazine Style */
.mate-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 24px 32px;
    padding-top: calc(48px + env(safe-area-inset-top));
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFEF9 100%);
    border-bottom: 3px solid #000000;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.mate-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        #000000,
        #000000 8px,
        transparent 8px,
        transparent 16px
    );
}

.mate-back {
    position: absolute;
    top: 48px;
    left: 24px;
    width: 44px;
    height: 44px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    z-index: 2;
    box-shadow: 2px 2px 0px #000000;
}

.mate-back:hover {
    background: #000000;
    color: #FFFFFF;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #000000;
}

.mate-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #000000;
    margin-bottom: 12px;
    text-align: center;
    text-transform: uppercase;
    position: relative;
}

.mate-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: #000000;
}

.mate-decoration {
    width: 100%;
    max-width: 350px;
    margin-bottom: 20px;
    position: relative;
}

.hand-drawn-wave {
    width: 100%;
    height: auto;
    color: #000000;
    stroke-width: 2;
}

.mate-decoration::before,
.mate-decoration::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #000000;
    border-radius: 50%;
    transform: translateY(-50%);
}

.mate-decoration::before {
    left: -30px;
}

.mate-decoration::after {
    right: -30px;
}

.mate-actions {
    position: absolute;
    top: 48px;
    right: 24px;
    z-index: 2;
}

.mate-btn {
    width: 44px;
    height: 44px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    box-shadow: 2px 2px 0px #000000;
}

.mate-btn:hover {
    background: #000000;
    color: #FFFFFF;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #000000;
}

.mate-btn svg {
    width: 18px;
    height: 18px;
}

/* Companion Section - Premium Style */
.mate-companion-section {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFEF9 100%);
    border: 3px solid #000000;
    border-radius: 36px;
    margin: 32px 24px;
    box-shadow: 12px 12px 0px #000000;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.mate-companion-section:hover {
    transform: translate(-2px, -2px);
    box-shadow: 16px 16px 0px #000000;
}

.active-companion {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.active-companion:hover {
    transform: translateX(-4px);
}

.companion-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid #000000;
    object-fit: cover;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.active-companion:hover .companion-avatar {
    transform: scale(1.05);
    box-shadow: 6px 6px 0px rgba(0,0,0,0.15);
}

.companion-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.01em;
}

.no-companion {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #666666;
    transition: all 0.2s ease;
    flex: 1;
}

.no-companion:hover {
    color: #000000;
    transform: translateX(-4px);
}

.companion-select-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.mate-ai-bubble {
    position: absolute;
    top: -12px;
    right: 32px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFEF9 100%);
    border: 2px solid #000000;
    border-radius: 24px;
    padding: 10px 18px;
    box-shadow: 6px 6px 0px #000000;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 14px;
    color: #000000;
    max-width: 220px;
    z-index: 2;
    font-style: italic;
}

.mate-ai-bubble::before {
    content: '"';
    position: absolute;
    top: -8px;
    left: 8px;
    font-size: 24px;
    color: #000000;
    opacity: 0.3;
}

/* Grid Layout - Asymmetric Premium */
.mate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    padding: 0 24px 64px;
    position: relative;
    z-index: 1;
}

/* Card Base Style - Premium Magazine */
.mate-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFEF9 100%);
    border: 3px solid #000000;
    border-radius: 40px;
    padding: 32px;
    box-shadow: 12px 12px 0px #000000;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.mate-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, transparent 50%, #F0E6D3 50%);
    border-radius: 0 40px 0 0;
    opacity: 0.4;
}

.mate-card:hover {
    transform: translate(-6px, -6px);
    box-shadow: 18px 18px 0px #000000;
}

.module-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: -0.02em;
    position: relative;
}

.module-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #000000;
    border-radius: 2px;
}

/* Focus Card - Premium */
.focus-card {
    grid-row: span 2;
    background: linear-gradient(135deg, #E8F5E9 0%, #D4E8D4 100%);
}

.focus-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Study Companion */
.study-companion {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 20px;
    box-shadow: 4px 4px 0px #000000;
}

/* Study Status */
.study-status {
    padding: 20px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 20px;
    box-shadow: 4px 4px 0px #000000;
}

.status-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.time-display {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.time-value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 48px;
    font-weight: 800;
    color: #000000 !important;
    letter-spacing: -0.02em;
    line-height: 1;
}

.time-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #333333 !important;
    font-weight: 600;
    margin-top: 8px;
}

.session-count {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #D4E8D4 0%, #A8D8B8 100%);
    border-radius: 12px;
    color: #000000 !important;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
}

.session-count i {
    font-size: 16px;
    color: #000000 !important;
}

.session-count span {
    color: #000000 !important;
}

/* Study Duration */
.study-duration {
    padding: 16px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 20px;
    box-shadow: 4px 4px 0px #000000;
}

.duration-label {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
    text-align: center;
}

.duration-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.study-duration .duration-btn {
    padding: 12px 8px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 12px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    transition: all 0.2s ease;
}

.study-duration .duration-btn:hover {
    background: #000000;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px #000000;
}

.study-duration .duration-btn.active {
    background: linear-gradient(135deg, #D4E8D4 0%, #A8D8B8 100%);
    border-color: #000000;
    color: #000000;
    box-shadow: 4px 4px 0px #000000;
}

/* Study Controls */
.study-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.study-btn {
    padding: 14px 20px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 16px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.study-btn:hover:not(:disabled) {
    background: #000000;
    color: #FFFFFF;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #000000;
}

.study-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.study-btn.primary {
    background: linear-gradient(135deg, #D4E8D4 0%, #A8D8B8 100%);
    color: #000000;
}

.study-btn.primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #A8D8B8 0%, #D4E8D4 100%);
    color: #000000;
}

.study-btn.warning {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000000;
}

.study-btn.warning:hover:not(:disabled) {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
    color: #000000;
}

.study-btn.secondary {
    background: #F5F5F5;
}

.study-btn.accent {
    background: linear-gradient(135deg, #E8F5E9 0%, #D4E8D4 100%);
    color: #000000;
    grid-column: span 2;
}

.study-btn.accent:hover:not(:disabled) {
    background: linear-gradient(135deg, #D4E8D4 0%, #E8F5E9 100%);
}

/* Exercise Card - Premium */
.exercise-card {
    grid-row: span 1;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE4B5 100%);
}

.exercise-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Exercise Companion */
.exercise-companion {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 20px;
    box-shadow: 4px 4px 0px #000000;
}

.companion-avatar {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #000000;
    background: #F0F0F0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.companion-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.companion-avatar:active {
    transform: scale(0.95);
}

.companion-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.companion-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F0F0F0;
    color: #999999;
}

.companion-avatar-placeholder i {
    font-size: 24px;
}

.companion-message {
    flex: 1;
    display: flex;
    align-items: center;
}

.message-bubble {
    padding: 12px 16px;
    background: #FFF9E6;
    border: 2px solid #000000;
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #000000;
    position: relative;
}

.message-bubble::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-right-color: #000000;
}

.message-placeholder {
    padding: 12px 16px;
    background: #F5F5F5;
    border: 2px dashed #000000;
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #999999;
    font-style: italic;
}

/* Exercise Types */
.exercise-types {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.exercise-type-btn {
    padding: 12px 8px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 12px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 12px;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.exercise-type-btn:hover {
    background: #000000;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px #000000;
}

.exercise-type-btn.active {
    background: #FFD700;
    border-color: #000000;
    color: #000000;
    box-shadow: 4px 4px 0px #000000;
}

.exercise-type-btn i {
    font-size: 20px;
}

.exercise-type-btn span {
    font-size: 11px;
}

/* Exercise Stats */
.exercise-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 16px;
    transition: all 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px #000000;
}

.stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 18px;
}

.stat-info {
    text-align: center;
}

.stat-value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.02em;
    line-height: 1;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #666666;
    font-weight: 500;
    margin-top: 4px;
}

/* Exercise Controls */
.exercise-controls {
    display: flex;
    gap: 12px;
}

.exercise-btn {
    flex: 1;
    padding: 14px 20px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 16px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.exercise-btn:hover:not(:disabled) {
    background: #000000;
    color: #FFFFFF;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #000000;
}

.exercise-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.exercise-btn.primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000000;
}

.exercise-btn.primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
}

.exercise-btn.secondary {
    background: #F5F5F5;
}

/* Sleep Card - Premium */
.sleep-card {
    grid-row: span 2;
    background: linear-gradient(135deg, #2C3E50 0%, #1A1A2E 100%);
    color: #FFFFFF;
}

.sleep-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Sleep Companion */
.sleep-companion {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Sleep Status */
.sleep-status {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.status-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.time-display {
    text-align: center;
}

.time-display .time-value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.time-display .time-value i {
    font-size: 28px;
}

.time-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    margin-top: 8px;
}

.sleep-quality {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
}

.sleep-quality i {
    font-size: 16px;
    color: #FFD700;
}

/* Sleep Duration Setting */
.sleep-duration-setting {
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.duration-label {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
    text-align: center;
}

.duration-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.duration-btn {
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
}

.duration-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.duration-btn.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Sleep Controls */
.sleep-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.sleep-btn {
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.sleep-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
}

.sleep-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sleep-btn.primary {
    background: rgba(100, 200, 255, 0.3);
    border-color: rgba(100, 200, 255, 0.5);
}

.sleep-btn.primary:hover:not(:disabled) {
    background: rgba(100, 200, 255, 0.4);
}

.sleep-btn.warning {
    background: rgba(255, 200, 100, 0.3);
    border-color: rgba(255, 200, 100, 0.5);
}

.sleep-btn.warning:hover:not(:disabled) {
    background: rgba(255, 200, 100, 0.4);
}

.sleep-btn.accent {
    background: rgba(200, 150, 255, 0.3);
    border-color: rgba(200, 150, 255, 0.5);
    grid-column: span 2;
}

.sleep-btn.accent:hover:not(:disabled) {
    background: rgba(200, 150, 255, 0.4);
}

.sleep-diaries {
    width: 100%;
    margin-top: 20px;
}

.sleep-diaries h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -0.01em;
}

.diary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.diary-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-4px);
}

.diary-date {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 14px;
    color: #FFFFFF;
    font-weight: 600;
}

.diary-score {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
}

/* Finance Card - Premium */
.finance-card {
    grid-row: span 2;
}

.finance-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.check-style {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFEF9 100%);
    border: 3px solid #000000;
    border-radius: 28px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 6px 6px 0px #000000;
}

.check-style::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, #000000 1px, transparent 1px),
        linear-gradient(#000000 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.05;
    pointer-events: none;
}

.check-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.check-date {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 14px;
    color: #666666;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.check-amount {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 52px;
    font-weight: 800;
    color: #000000;
    text-align: center;
    margin: 24px 0;
    letter-spacing: -0.02em;
}

.expense-categories {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
}

.expense-category {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #F8F8F8 0%, #FFFFFF 100%);
    border-radius: 16px;
    border: 2px solid #000000;
    transition: all 0.2s ease;
}

.expense-category:hover {
    transform: translateX(-4px);
    box-shadow: 4px 4px 0px #000000;
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 2px 2px 0px #000000;
}

.category-name {
    flex: 1;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 15px;
    color: #000000;
    font-weight: 600;
}

.category-amount {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
}

.finance-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Period Card - Premium */
.period-card {
    grid-row: span 1;
    background: linear-gradient(135deg, #FFF8F8 0%, #FFE8E8 100%);
}

.period-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.moon-phase {
    width: 100px;
    height: 100px;
    margin: 20px 0;
    opacity: 0.9;
}

.period-status {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    text-align: center;
    color: #000000;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.predicted-date {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 14px;
    color: #666666;
    text-align: center;
    font-weight: 600;
}

/* Schedule Card - Premium */
.schedule-card {
    grid-row: span 2;
}

.schedule-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Timeline - Premium */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    padding: 16px;
    background: linear-gradient(135deg, #F8F8F8 0%, #FFFFFF 100%);
    border-radius: 20px;
    border: 2px solid #000000;
    transition: all 0.2s ease;
}

.timeline-item:hover {
    transform: translateX(-4px);
    box-shadow: 6px 6px 0px #000000;
}

.timeline-time {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    min-width: 70px;
    letter-spacing: -0.02em;
}

.timeline-line {
    display: none;
}

.timeline-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.01em;
}

.timeline-category {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #666666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Todo List - Premium */
.todo-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #F8F8F8 0%, #FFFFFF 100%);
    border-radius: 20px;
    border: 2px solid #000000;
    transition: all 0.2s ease;
}

.todo-item:hover {
    transform: translateX(-4px);
    box-shadow: 4px 4px 0px #000000;
}

.todo-checkbox {
    flex-shrink: 0;
}

.checkbox-custom {
    width: 28px;
    height: 28px;
    border: 3px solid #000000;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 2px 2px 0px #000000;
}

.checkbox-custom:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #000000;
}

.checkbox-custom.checked {
    background: #000000;
}

.checkbox-custom.checked::before {
    content: '✓';
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
}

.todo-text {
    flex: 1;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 15px;
    color: #000000;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.todo-text.completed {
    text-decoration: line-through;
    color: #999999;
    font-style: italic;
}

/* Buttons - Premium */
.mate-card-btn {
    padding: 14px 24px;
    border: 3px solid #000000;
    border-radius: 28px;
    background: #FFFFFF;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 15px;
    font-weight: 700;
    color: #000000;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 4px 4px 0px #000000;
    letter-spacing: -0.01em;
}

.mate-card-btn:hover {
    background: #000000;
    color: #FFFFFF;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000000;
}

.mate-card-btn:active {
    transform: translate(0, 0);
    box-shadow: 4px 4px 0px #000000;
}

.mate-card-btn.primary {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: #FFFFFF;
}

.mate-card-btn.primary:hover {
    background: linear-gradient(135deg, #333333 0%, #000000 100%);
    box-shadow: 8px 8px 0px #000000;
}

.mate-card-btn.secondary {
    background: linear-gradient(135deg, #F0F0F0 0%, #E8E8E8 100%);
}

.mate-card-btn.secondary:hover {
    background: #000000;
    color: #FFFFFF;
}

.mate-card-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.mate-card-btn:disabled:hover {
    background: #F0F0F0;
    color: #000000;
    box-shadow: 4px 4px 0px #000000;
}

/* ==========================================
   Mate System Modals - Premium Magazine Style
   ========================================== */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Content - Premium Card Style */
.modal-content {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFEF9 100%);
    border: 3px solid #000000;
    border-radius: 40px;
    box-shadow: 16px 16px 0px #000000;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent 50%, #F0E6D3 50%);
    border-radius: 0 40px 0 0;
    opacity: 0.4;
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 32px;
    border-bottom: 3px solid #000000;
    background: linear-gradient(135deg, #FAFAF8 0%, #F8F5F0 100%);
    position: relative;
}

.modal-header span {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.02em;
}

.modal-header .close-btn {
    width: 44px;
    height: 44px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 2px 2px 0px #000000;
    z-index: 1;
}

.modal-header .close-btn:hover {
    background: #000000;
    color: #FFFFFF;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #000000;
}

.modal-header .close-btn i {
    font-size: 18px;
}

/* Modal Body */
.modal-body {
    padding: 32px;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

/* Form Elements */
.modal-body label {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.modal-body label.mt-2 {
    margin-top: 20px;
}

.modal-body input,
.modal-body select,
.modal-body textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #000000;
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #000000;
    background: #FFFFFF;
    transition: all 0.2s ease;
    box-shadow: 3px 3px 0px #E0E0E0;
}

.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 5px 5px 0px #000000;
    transform: translate(-1px, -1px);
}

.modal-body input::placeholder,
.modal-body textarea::placeholder {
    color: #999999;
}

/* Submit Button in Modal */
.modal-body .journal-btn {
    margin-top: 24px;
    padding: 16px 28px;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: #FFFFFF;
    border: 3px solid #000000;
    border-radius: 28px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0px #000000;
    letter-spacing: -0.01em;
    width: 100%;
}

.modal-body .journal-btn:hover {
    background: linear-gradient(135deg, #333333 0%, #000000 100%);
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px #000000;
}

.modal-body .journal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: 4px 4px 0px #000000;
}

.modal-body .journal-btn i {
    margin-right: 8px;
}

/* Detail Items (Category Detail Modal) */
.detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #F8F8F8 0%, #FFFFFF 100%);
    border: 2px solid #000000;
    border-radius: 20px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.detail-item:hover {
    transform: translateX(-4px);
    box-shadow: 6px 6px 0px #000000;
}

.detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-desc {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 15px;
    font-weight: 600;
    color: #000000;
}

.detail-date {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #666666;
}

.detail-amount {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
}

.delete-mini-btn {
    width: 36px;
    height: 36px;
    background: #FFFFFF;
    border: 2px solid #FF4444;
    border-radius: 18px;
    color: #FF4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 2px 2px 0px #FF4444;
}

.delete-mini-btn:hover {
    background: #FF4444;
    color: #FFFFFF;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #FF4444;
}

.no-data {
    text-align: center;
    padding: 40px 20px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    color: #999999;
    font-style: italic;
}

/* Sleep Diary Modal - Special Styling */
.sleep-diary-modal {
    max-width: 520px;
}

.diary-header-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    border-radius: 24px;
    margin-bottom: 24px;
    border: 2px solid #000000;
}

.diary-char-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.diary-char-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid #FFFFFF;
    object-fit: cover;
}

.diary-char-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
}

.sleep-score-badge {
    padding: 12px 24px;
    border-radius: 24px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 800;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.sleep-score-badge.score-5 {
    background: linear-gradient(135deg, #00C853 0%, #00E676 100%);
}

.sleep-score-badge.score-4 {
    background: linear-gradient(135deg, #64DD17 0%, #76FF03 100%);
}

.sleep-score-badge.score-3 {
    background: linear-gradient(135deg, #FFD600 0%, #FFEA00 100%);
    color: #000000;
}

.sleep-score-badge.score-2 {
    background: linear-gradient(135deg, #FF6D00 0%, #FF9100 100%);
}

.sleep-score-badge.score-1,
.sleep-score-badge.score-0 {
    background: linear-gradient(135deg, #DD2C00 0%, #FF3D00 100%);
}

.diary-meta-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #F8F8F8 0%, #FFFFFF 100%);
    border: 2px solid #000000;
    border-radius: 20px;
}

.diary-meta-row span {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.diary-meta-row i {
    margin-right: 6px;
    color: #666666;
}

.diary-section {
    margin-bottom: 24px;
}

.section-label {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #000000;
    letter-spacing: -0.01em;
}

.diary-content {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #333333;
    padding: 16px 20px;
    background: linear-gradient(135deg, #F8F8F8 0%, #FFFFFF 100%);
    border: 2px solid #000000;
    border-radius: 20px;
}

/* ==========================================
   Finance Module - Enhanced Styles
   ========================================== */

.finance-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.finance-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, #F8F8F8 0%, #FFFFFF 100%);
    border: 2px solid #000000;
    border-radius: 20px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.finance-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000000;
}

.finance-label {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 13px;
    color: #666666;
    margin-bottom: 4px;
    text-align: center;
}

.finance-value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
}

.finance-value.income {
    color: #2E7D32;
}

.finance-value.expense {
    color: #C62828;
}

.finance-value.balance {
    color: #1565C0;
}

/* Saving Goal */
.saving-goal {
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #F8F8F8 0%, #FFFFFF 100%);
    border: 2px solid #000000;
    border-radius: 24px;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.goal-label {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.goal-value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: #1565C0;
    cursor: pointer;
    text-decoration: underline;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #E0E0E0;
    border: 2px solid #000000;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #1565C0 0%, #1E88E5 100%);
    transition: width 0.3s ease;
}

.progress-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    text-align: right;
}

/* Expense Comparison */
.expense-comparison {
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #F8F8F8 0%, #FFFFFF 100%);
    border: 2px solid #000000;
    border-radius: 24px;
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.comparison-label {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.comparison-change {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    border: 2px solid #000000;
}

.comparison-change.increase {
    background: #FFEBEE;
    color: #C62828;
}

.comparison-change.decrease {
    background: #E8F5E9;
    color: #2E7D32;
}

.comparison-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-label {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    width: 40px;
}

.bar-container {
    flex: 1;
    height: 10px;
    background: #E0E0E0;
    border: 2px solid #000000;
    border-radius: 5px;
    overflow: hidden;
}

.bar {
    height: 100%;
    background: linear-gradient(135deg, #757575 0%, #9E9E9E 100%);
    transition: width 0.3s ease;
}

.bar.current {
    background: linear-gradient(135deg, #C62828 0%, #EF5350 100%);
}

.bar-value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 13px;
    font-weight: 700;
    color: #000000;
    width: 80px;
    text-align: right;
}

/* Expense Categories */
.expense-categories {
    margin-bottom: 24px;
}

.expense-category {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #F8F8F8 0%, #FFFFFF 100%);
    border: 2px solid #000000;
    border-radius: 20px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.expense-category:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000000;
}

.category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 12px;
    font-size: 18px;
}

.category-name {
    flex: 1;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 15px;
    font-weight: 600;
    color: #000000;
}

.category-amount {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
}

.expense-category i.fas.fa-chevron-right {
    font-size: 14px;
    color: #666666;
}

/* Finance Actions */
.finance-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.finance-actions .mate-card-btn {
    flex: 1;
    min-width: 120px;
}

.finance-actions .mate-card-btn.primary {
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    color: #FFFFFF;
    border-color: #2E7D32;
}

.finance-actions .mate-card-btn.primary:hover {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
    border-color: #1B5E20;
}

/* Category Section Title */
.category-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #000000;
    letter-spacing: -0.01em;
}

/* Income Categories */
.income-categories {
    margin-bottom: 24px;
}

.income-category {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #E8F5E9 0%, #FFFFFF 100%);
    border: 2px solid #000000;
    border-radius: 20px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.income-category:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000000;
}

.income-icon {
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    color: #FFFFFF;
}

.income-amount {
    color: #2E7D32;
}

.income-category i.fas.fa-chevron-right {
    font-size: 14px;
    color: #2E7D32;
}

.income-delete-btn {
    border-color: #2E7D32;
    color: #2E7D32;
    box-shadow: 2px 2px 0px #2E7D32;
}

.income-delete-btn:hover {
    background: #2E7D32;
    color: #FFFFFF;
    box-shadow: 4px 4px 0px #2E7D32;
}

/* ==========================================
   Period Module - Cycle Tracker
   ========================================== */

/* Period Card - Special Background */
.period-card {
    background: #FFF0F5 !important;
    position: relative;
    overflow: hidden;
    border: 2px solid #000000 !important;
    border-radius: 32px !important;
    box-shadow: 8px 8px 0px #000000 !important;
    padding: 24px !important;
}

/* Moon Ring Container */
.moon-ring-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
}

.moon-ring {
    width: 200px;
    height: 200px;
}

/* Moon Center Display */
.moon-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 50%;
    padding: 30px;
    box-shadow: 4px 4px 0px #000000;
}

.cycle-day {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 36px;
    font-weight: 800;
    color: #000000;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1;
}

.cycle-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Moon Phase Details */
.moon-phase-detail {
    margin-top: 16px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Phase Timeline */
.phase-timeline {
    margin-bottom: 24px;
}

.timeline-line {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 20px;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
}

.timeline-segment {
    flex: 1;
    height: 4px;
    background: #E0E0E0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.timeline-segment.active {
    background: #000000;
}

.timeline-labels {
    display: flex;
    justify-content: space-around;
    margin-top: 8px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 11px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Character Care */
.character-care {
    margin-bottom: 24px;
}

.care-header {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.character-selector {
    flex: 1;
}

.character-btn {
    width: 100%;
    padding: 12px 16px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 16px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.character-btn:hover {
    background: #000000;
    color: #FFFFFF;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #000000;
}

.character-btn i {
    font-size: 18px;
}

.generate-care-btn {
    flex: 1;
    padding: 12px 16px;
    background: #FFF0F5;
    border: 2px solid #000000;
    border-radius: 16px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.generate-care-btn:hover:not(:disabled) {
    background: #000000;
    color: #FFFFFF;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #000000;
}

.generate-care-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.generate-care-btn i {
    font-size: 18px;
    color: #FF69B4;
}

.generate-care-btn:hover:not(:disabled) i {
    color: #FFFFFF;
}

.care-content {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 20px;
    box-shadow: 4px 4px 0px #000000;
}

.care-avatar {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #000000;
    background: #F0F0F0;
}

.care-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.care-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F0F0F0;
    color: #999999;
}

.care-avatar-placeholder i {
    font-size: 24px;
}

.care-message {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #000000;
    display: flex;
    align-items: center;
}

.care-placeholder {
    padding: 32px;
    background: #FFFFFF;
    border: 2px dashed #000000;
    border-radius: 20px;
    text-align: center;
    color: #999999;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
}

.care-placeholder i {
    font-size: 32px;
    margin-bottom: 12px;
    color: #FF69B4;
}

.care-placeholder span {
    display: block;
    font-size: 14px;
}

/* Quick Log Cards */
.quick-log-cards {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.quick-log-cards::-webkit-scrollbar {
    display: none;
}

.quick-card {
    flex: 1;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: #FFFFFF;
    border: 1.5px solid #000000;
    border-radius: 16px;
    box-shadow: 4px 4px 0px #000000;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000000;
}

.quick-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 16px;
    margin-bottom: 8px;
}

.mood-icon {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #000000;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 8px;
    padding: 6px 10px;
}

.quick-label {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 12px;
    font-weight: 600;
    color: #000000;
    text-align: center;
}

/* History Prediction */
.history-prediction {
    margin-bottom: 24px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    color: #000000;
}

.history-header:hover {
    background: #000000;
    color: #FFFFFF;
}

.history-header i {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.history-header i.rotate {
    transform: rotate(180deg);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 16px;
    transition: all 0.2s ease;
}

.history-item:hover {
    transform: translateX(-4px);
    box-shadow: 4px 4px 0px #000000;
}

.history-month {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.02em;
}

.history-dates {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #666666;
    text-align: center;
}

.history-ovulation {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #000000;
    font-weight: 600;
    background: #FFF0F5;
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid #000000;
}

/* Period Logs */
.period-logs {
    margin-bottom: 24px;
}

.logs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.log-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 16px;
    transition: all 0.2s ease;
}

.log-item:hover {
    transform: translateX(-4px);
    box-shadow: 4px 4px 0px #000000;
}

.log-date {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    color: #000000;
}

.log-flow, .log-mood {
    display: inline-block;
    padding: 4px 12px;
    background: #F0F0F0;
    border: 1px solid #000000;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    margin-right: 8px;
}

.log-symptoms {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #666666;
    margin-top: 4px;
}

.empty-logs {
    text-align: center;
    padding: 24px;
    background: #FFFFFF;
    border: 2px dashed #000000;
    border-radius: 16px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 14px;
    color: #999999;
    font-style: italic;
}

.delete-mini-btn {
    align-self: flex-start;
    padding: 4px 8px;
    background: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.delete-mini-btn:hover {
    background: #FF0000;
    transform: scale(1.05);
}

/* Period Log Modal */
.symptoms-checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.symptom-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.symptom-checkbox:hover {
    background: #000000;
    color: #FFFFFF;
}

.symptom-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #000000;
    cursor: pointer;
}

/* Modal Enhancements */
.modal-content {
    border: 2px solid #000000;
    box-shadow: 6px 6px 0px #000000;
    border-radius: 24px;
    background: #FFFFFF;
}

.modal-header {
    border-bottom: 2px solid #000000;
    padding: 16px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
}

.modal-body {
    padding: 20px;
}

.modal-body label {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #000000;
}

.modal-body input,
.modal-body select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #000000;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background: #FFFFFF;
    transition: all 0.2s ease;
}

.modal-body input:focus,
.modal-body select:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
}

.journal-btn {
    transition: all 0.2s ease;
}

.journal-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
}

.delete-btn {
    width: 32px;
    height: 32px;
    border: 2px solid #FF4444;
    border-radius: 16px;
    background: #FFFFFF;
    color: #FF4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.delete-btn:hover {
    background: #FF4444;
    color: #FFFFFF;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .mate-grid {
        grid-template-columns: 1fr;
    }
    
    .mate-title {
        font-size: 36px;
    }
    
    .mate-companion-section {
        flex-direction: column;
        text-align: center;
    }
    
    .focus-card,
    .finance-card,
    .schedule-card {
        grid-row: span 1;
    }
}

@media (max-width: 480px) {
    .mate-header {
        padding: 40px 16px 24px;
    }
    
    .mate-title {
        font-size: 28px;
    }
    
    .mate-back,
    .mate-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .mate-companion-section {
        margin: 16px;
        padding: 16px;
    }
    
    .mate-grid {
        padding: 0 16px 32px;
        gap: 16px;
    }
    
    .mate-card {
        padding: 20px;
    }
    
    .module-title {
        font-size: 20px;
    }
    
    .check-amount {
        font-size: 36px;
    }
    
    .focus-controls,
    .finance-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .mate-card-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

/* ==========================================
   Journal / Art Zine Style Feed
   ========================================== */

/* Paper Texture Background */
.feed-app {
    background-color: #FAFAF8;
    background-image: 
        radial-gradient(#E0E0E0 1px, transparent 1px),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23e0e0e0' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 24px 24px, 100px 100px;
    position: relative;
}

/* Decorative Elements */
.feed-app::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0,0,0,0.03) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(0,0,0,0.03) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(0,0,0,0.03) 1px, transparent 1px),
        radial-gradient(circle at 70% 20%, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 50px 50px, 60px 60px, 70px 70px, 80px 80px;
    pointer-events: none;
    z-index: 0;
}

/* Header - Art Magazine Style */
.journal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px 24px;
    background: linear-gradient(135deg, #FAFAF8 0%, #F8F5F0 100%);
    border-bottom: 3px solid #000000;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Header Decorations */
.journal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        #000000,
        #000000 10px,
        transparent 10px,
        transparent 20px
    );
}

.journal-back {
    position: absolute;
    top: 32px;
    left: 24px;
    width: 44px;
    height: 44px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    z-index: 2;
    box-shadow: 2px 2px 0px #000000;
}

.journal-back:hover {
    background: #000000;
    color: #FFFFFF;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #000000;
}

.journal-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #000000;
    margin-bottom: 12px;
    text-align: center;
    text-transform: uppercase;
    position: relative;
    line-height: 1.1;
}

.journal-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: #000000;
}

.journal-line {
    width: 100%;
    max-width: 350px;
    height: 3px;
    background: #000000;
    position: relative;
    margin: 20px 0;
    border-radius: 2px;
}

.line-dot {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #000000;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Date Badge */
.journal-date {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 12px;
    font-weight: 600;
    color: #666666;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* Profile Button */
.journal-profile-btn {
    position: absolute;
    top: 32px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    z-index: 2;
    box-shadow: 2px 2px 0px #000000;
}

.journal-profile-btn:hover {
    background: #000000;
    color: #FFFFFF;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #000000;
}

.journal-profile-btn svg {
    width: 20px;
    height: 20px;
}

/* Content Area */
.journal-content {
    padding: 32px 24px;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

/* Loading State */
.journal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: 24px;
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 18px;
    color: #666666;
}

.journal-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #E0E0E0;
    border-top-color: #000000;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.journal-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    gap: 32px;
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 20px;
    color: #666666;
    text-align: center;
    letter-spacing: 0.02em;
}

.empty-illustration {
    width: 120px;
    height: 120px;
    opacity: 0.2;
}

/* Journal Posts */
.journal-posts {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding-bottom: 120px;
    max-width: 800px;
    margin: 0 auto;
}

/* Journal Entry */
.journal-entry {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    position: relative;
}

/* Decorative Line Between Entries */
.journal-entry:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 54px;
    top: 100%;
    width: 2px;
    height: 48px;
    background: linear-gradient(to bottom, #000000 0%, transparent 100%);
}

/* Date Side */
.entry-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    padding: 12px 8px;
    margin-right: 16px;
    position: relative;
}

.entry-date::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 1px;
    background: #e5e5e5;
}

.entry-date::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 1px;
    background: #e5e5e5;
}

.entry-date:hover {
    transform: none;
}

.entry-date-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    padding: 12px 8px;
    margin-right: 16px;
    visibility: hidden;
    position: relative;
}

.entry-date-empty::before,
.entry-date-empty::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 1px;
    background: #e5e5e5;
}

.entry-date-empty::before {
    left: 0;
    width: 8px;
}

.entry-date-empty::after {
    right: 0;
    width: 8px;
}

.date-day {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    line-height: 1;
    margin-bottom: 2px;
}

.date-month {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Entry Card */
.entry-card {
    flex: 1;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFEF9 100%);
    border: 3px solid #000000;
    border-radius: 36px;
    padding: 28px;
    box-shadow: 10px 10px 0px #000000;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Card Decorative Corner */
.entry-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 50%, #F0E6D3 50%);
    border-radius: 0 36px 0 0;
    opacity: 0.5;
}

.entry-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 14px 14px 0px #000000;
}

/* Author */
.entry-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px 12px;
    background: #F8F5F0;
    border-radius: 20px;
    border: 2px solid transparent;
}

.entry-author:hover {
    background: #000000;
    transform: translateX(4px);
}

.entry-author:hover .author-name {
    color: #FFFFFF;
}

.author-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid #000000;
    object-fit: cover;
    transition: all 0.2s ease;
}

.entry-author:hover .author-avatar {
    border-color: #FFFFFF;
}

.author-name {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.01em;
}

/* Delete Post Button */
.delete-post-btn {
    margin-left: auto;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    transition: all 0.2s ease;
    padding: 0;
}

.delete-post-btn:hover {
    color: #FF0000;
    transform: scale(1.1);
}

.delete-post-btn svg {
    width: 20px;
    height: 20px;
}

/* Content */
.entry-content {
    margin-bottom: 24px;
}

.entry-text {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.9;
    color: #000000;
    margin-bottom: 24px;
    letter-spacing: 0.01em;
}

.entry-text.entry-quote {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    padding: 28px 32px;
    background: linear-gradient(135deg, #F8F5F0 0%, #FFFFFF 100%);
    border-radius: 24px;
    border: 3px solid #000000;
    box-shadow: 4px 4px 0px #000000;
    letter-spacing: -0.01em;
    position: relative;
}

.entry-text.entry-quote::before {
    content: '"';
    position: absolute;
    top: 8px;
    left: 16px;
    font-size: 48px;
    color: #000000;
    opacity: 0.2;
    font-family: 'Playfair Display', 'Georgia', serif;
    line-height: 1;
}

/* Images - Stacked Style */
.entry-images {
    display: grid;
    gap: 20px;
    margin-bottom: 24px;
}

.entry-images.single {
    grid-template-columns: 1fr;
}

.entry-images.stacked {
    grid-template-columns: repeat(2, 1fr);
}

.entry-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 3px solid #000000;
    background: #FFFFFF;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0px #000000;
}

.entry-image-wrap:hover {
    transform: scale(1.03);
    box-shadow: 8px 8px 0px #000000;
}

.entry-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 200px;
}

/* Tape Effect */
.tape {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    width: 80px;
    height: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 245, 240, 0.9) 100%);
    border: 2px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    z-index: 2;
    backdrop-filter: blur(2px);
}

/* Tape Texture */
.tape::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    opacity: 0.5;
}

/* Text Image Display */
.text-image-display {
    min-height: 220px;
    padding: 20px;
    background: linear-gradient(135deg, #F8F5F0 0%, #FFFFFF 100%);
    border-radius: 20px;
    border: 3px solid #000000;
    box-shadow: 4px 4px 0px #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-image-text {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 20px;
    font-weight: 600;
    color: #000;
    text-align: center;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

/* Minimal Actions */
.entry-actions {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    border-top: 2px solid #E0E0E0;
    margin-top: 24px;
}

.action-icon {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #000000;
    font-size: 18px;
}

.action-icon:hover {
    color: #000000;
    transform: scale(1.1);
}

.action-icon.active {
    color: #000000;
    transform: scale(1.05);
}

.action-icon.ai-comment {
    color: #666666;
}

.action-icon.ai-comment:hover {
    color: #666666;
}

/* Comments */
.entry-comments {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 2px solid #E0E0E0;
}

.comment-item {
    margin-bottom: 24px;
    padding: 16px;
    background: linear-gradient(135deg, #F8F5F0 0%, #FFFFFF 100%);
    border-radius: 16px;
    border: 2px solid #E0E0E0;
    transition: all 0.2s ease;
}

.comment-item:hover {
    border-color: #000000;
    transform: translateX(4px);
}

.comment-line {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.comment-author {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 15px;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.01em;
}

.comment-text {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #333333;
    flex: 1;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.comment-time {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #999999;
    font-weight: 500;
}

/* Delete Comment Button */
.delete-comment-btn {
    background: none;
    border: none;
    color: #999999;
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.delete-comment-btn:hover {
    color: #FF0000;
    transform: scale(1.1);
}

.delete-comment-btn svg {
    width: 16px;
    height: 16px;
}

.reply-btn {
    background: none;
    border: none;
    color: #666666;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.reply-btn:hover {
    background: #000000;
    color: #FFFFFF;
}

/* Replies */
.comment-replies {
    margin-left: 24px;
    margin-top: 16px;
    padding-left: 16px;
    border-left: 3px solid #E0E0E0;
}

.reply-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px;
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E0E0E0;
    transition: all 0.2s ease;
}

.reply-item:hover {
    border-color: #000000;
    transform: translateX(4px);
}

.reply-author {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.01em;
}

.reply-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #333333;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.reply-time {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #999999;
    font-weight: 500;
}

/* Reply Input */
.reply-input {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.reply-input input {
    flex: 1;
    padding: 12px 16px;
    border: 3px solid #000000;
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    background: #FFFFFF;
}

.reply-input input:focus {
    box-shadow: 3px 3px 0px #000000;
    transform: translate(-1px, -1px);
}

.reply-input button {
    width: 44px;
    height: 44px;
    background: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
    box-shadow: 3px 3px 0px #000000;
}

.reply-input button:hover {
    transform: translate(-2px, -2px) scale(1.1);
    box-shadow: 6px 6px 0px #000000;
}

/* More Comments */
.more-comments {
    display: block;
    text-align: center;
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 16px;
    font-weight: 600;
    color: #666666;
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #F8F5F0;
    border-radius: 16px;
    border: 2px solid transparent;
    letter-spacing: 0.02em;
}

.more-comments:hover {
    color: #000000;
    background: #000000;
    border-color: #000000;
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px #000000;
}

/* Comment Input */
.entry-comment-input {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.entry-comment-input input {
    flex: 1;
    padding: 16px 20px;
    border: 3px solid #000000;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
    background: #FFFFFF;
}

.entry-comment-input input:focus {
    box-shadow: 3px 3px 0px #000000;
    transform: translate(-1px, -1px);
}

.entry-comment-input button {
    width: 52px;
    height: 52px;
    background: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s ease;
    box-shadow: 3px 3px 0px #000000;
}

.entry-comment-input button:hover {
    transform: translate(-2px, -2px) scale(1.1);
    box-shadow: 6px 6px 0px #000000;
}

/* Separator */
.entry-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px 0;
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 28px;
    color: #999999;
    letter-spacing: 0.1em;
    position: relative;
}

.entry-separator::before,
.entry-separator::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, #E0E0E0, transparent);
}

/* FAB Button */
.feed-fab {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: #FFFFFF;
    border: 4px solid #000000;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 6px 6px 0px #000000;
    transition: all 0.3s ease;
    z-index: 100;
}

.feed-fab:hover {
    transform: translate(-6px, -6px) rotate(90deg);
    box-shadow: 12px 12px 0px #000000;
}

.feed-fab::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px dashed #000000;
    border-radius: 50%;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.feed-fab:hover::before {
    opacity: 0.6;
    transform: rotate(45deg);
}

/* FAB Menu Overlay */
.fab-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* FAB Menu */
.fab-menu {
    position: fixed;
    bottom: 130px;
    right: 40px;
    background: #FFFFFF;
    border: 3px solid #000000;
    border-radius: 20px;
    box-shadow: 8px 8px 0px #000000;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    z-index: 100;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fab-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: #FFFFFF;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    border-bottom: 2px solid #E0E0E0;
}

.fab-menu-item:last-child {
    border-bottom: none;
}

.fab-menu-item:hover {
    background: #000000;
    color: #FFFFFF;
    transform: translateX(-4px);
}

.fab-menu-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.fab-menu-item span {
    flex: 1;
    text-align: left;
}

/* Create Post Overlay */
.create-post-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
}

.create-post-panel {
    width: 100%;
    max-width: 700px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFEF9 100%);
    border: 4px solid #000000;
    border-radius: 40px 40px 0 0;
    padding: 32px;
    box-shadow: 12px 12px 0px #000000;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.create-post-panel::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, transparent 50%, #F0E6D3 50%);
    border-radius: 0 40px 0 0;
    opacity: 0.4;
}

.create-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.back-btn-small {
    width: 48px;
    height: 48px;
    background: #FFFFFF;
    border: 3px solid #000000;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
    box-shadow: 3px 3px 0px #000000;
}

.back-btn-small:hover {
    background: #000000;
    color: #FFFFFF;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000000;
}

.create-post-header span {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.01em;
}

.publish-btn {
    padding: 12px 28px;
    background: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.publish-btn:hover {
    background: #333333;
}

.publish-btn:disabled {
    background: #CCCCCC;
    cursor: not-allowed;
}

.create-post-content {
    margin-bottom: 20px;
}

.create-post-content textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid #000000;
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    resize: vertical;
    outline: none;
    transition: all 0.2s ease;
}

.create-post-content textarea:focus {
    box-shadow: 2px 2px 0px #000000;
}

/* Create Post Images */
.create-post-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.create-post-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #000000;
}

.create-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-image-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: #FF4444;
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
}

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

/* Text Image Creator */
.text-image-creator {
    margin-top: 20px;
    padding: 20px;
    background: #F8F8F8;
    border-radius: 16px;
    border: 2px solid #000000;
}

.text-image-creator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.text-image-creator-header h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.close-text-image-btn {
    width: 32px;
    height: 32px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.close-text-image-btn:hover {
    background: #000000;
    color: #FFFFFF;
}

.text-image-creator-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.text-image-preview {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #000000;
    margin-bottom: 16px;
}

.text-card-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.text-card-decoration {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border: 2px solid #000000;
    border-radius: 50%;
    opacity: 0.3;
}

.text-card-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 500;
    color: #000;
    text-align: center;
    padding: 20px;
}

.text-image-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.text-image-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #000000;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    resize: vertical;
    outline: none;
    transition: all 0.2s ease;
    min-height: 80px;
}

.text-image-input:focus {
    box-shadow: 2px 2px 0px #000000;
}

.color-options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.color-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #000000;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    box-shadow: 0 0 0 3px #000000;
}

.text-image-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.cancel-text-image-btn,
.add-text-image-btn {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #000000;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cancel-text-image-btn {
    background: #FFFFFF;
    color: #000000;
}

.cancel-text-image-btn:hover {
    background: #F0F0F0;
}

.add-text-image-btn {
    background: #000000;
    color: #FFFFFF;
}

.add-text-image-btn:hover {
    background: #333333;
}

.add-text-image-btn:disabled {
    background: #CCCCCC;
    cursor: not-allowed;
}

/* Create Post Actions */
.create-post-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    flex: 1;
    padding: 12px 16px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #000000;
    color: #FFFFFF;
}

/* Profile Overlay */
.profile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.profile-panel {
    width: 100%;
    max-width: 400px;
    background: #FFFFFF;
    border: 3px solid #000000;
    border-radius: 32px;
    padding: 24px;
    box-shadow: 8px 8px 0px #000000;
    max-height: 80vh;
    overflow-y: auto;
}

.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.profile-header span {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: #000000;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-bg {
    position: relative;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #000000;
    background-size: cover;
    background-position: center;
}

.profile-avatar-large {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #000000;
    background: #FFFFFF;
    overflow: hidden;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    margin-top: 50px;
    text-align: center;
}

.profile-info h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
}

.profile-bio {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.edit-profile-btn {
    padding: 10px 24px;
    background: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.edit-profile-btn:hover {
    background: #333333;
}

/* Profile Posts */
.profile-posts {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #000000;
}

.profile-posts h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 16px;
    text-align: center;
}

.no-posts {
    text-align: center;
    padding: 40px 20px;
    color: #999999;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.profile-post-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-post {
    background: #f8f9fa;
    border: 2px solid #000000;
    border-radius: 16px;
    padding: 16px;
    transition: all 0.3s ease;
}

.profile-post:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
}

.profile-post-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-post-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
    margin: 0;
}

.profile-post-images {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-post-image-wrap {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #000000;
}

.profile-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.profile-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
}

.profile-post-time {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #999999;
}

.profile-post-actions {
    display: flex;
    gap: 16px;
}

.profile-post-action {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #666666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.profile-post-action:hover {
    color: #000000;
}

/* Edit Profile Overlay */
.edit-profile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.edit-profile-panel {
    width: 100%;
    max-width: 400px;
    background: #FFFFFF;
    border: 3px solid #000000;
    border-radius: 32px;
    padding: 24px;
    box-shadow: 8px 8px 0px #000000;
    max-height: 80vh;
    overflow-y: auto;
}

.edit-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.edit-profile-header span {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: #000000;
}

.save-btn {
    padding: 8px 20px;
    background: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.save-btn:hover {
    background: #333333;
}

.edit-profile-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.edit-avatar-section,
.edit-bg-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.edit-avatar-preview,
.edit-bg-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #000000;
    object-fit: cover;
}

.edit-bg-preview {
    border-radius: 16px;
    width: 100%;
    height: 150px;
}

.change-avatar-btn,
.change-bg-btn {
    padding: 8px 16px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    transition: all 0.2s ease;
}

.change-avatar-btn:hover,
.change-bg-btn:hover {
    background: #000000;
    color: #FFFFFF;
}

.edit-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edit-input-group label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.edit-input-group input,
.edit-input-group textarea {
    padding: 12px 16px;
    border: 2px solid #000000;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.edit-input-group input:focus,
.edit-input-group textarea:focus {
    box-shadow: 2px 2px 0px #000000;
}

.edit-input-group textarea {
    min-height: 80px;
    resize: vertical;
}

/* Role Comment Modal */
.role-comment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.role-comment-panel {
    width: 100%;
    max-width: 400px;
    background: #FFFFFF;
    border: 3px solid #000000;
    border-radius: 32px;
    padding: 24px;
    box-shadow: 8px 8px 0px #000000;
    max-height: 80vh;
    overflow-y: auto;
}

.role-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.role-comment-header span {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: #000000;
}

.role-comment-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.role-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.role-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #F8F8F8;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.role-item:hover {
    background: #F0F0F0;
    border-color: #000000;
}

.role-item.selected {
    background: #000000;
    border-color: #000000;
}

.role-item.selected .role-name {
    color: #FFFFFF;
}

.role-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #000000;
    object-fit: cover;
}

.role-name {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
}

.generate-btn {
    width: 100%;
    padding: 14px 20px;
    background: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.generate-btn:hover {
    background: #333333;
}

.generate-btn:disabled {
    background: #CCCCCC;
    cursor: not-allowed;
}

/* Image Viewer Overlay */
.image-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.image-viewer {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.viewer-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.viewer-desc {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #FFFFFF;
    text-align: center;
    max-width: 600px;
    line-height: 1.6;
}

.close-viewer-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s ease;
}

.close-viewer-btn:hover {
    background: #000000;
    color: #FFFFFF;
}

/* 角色编辑模态框 - 艺术家工作室风格 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 角色编辑模态框内容 */
.modal-content {
    background: #FFFFFF;
    border: 3px solid #000000;
    border-radius: 0;
    box-shadow: 12px 12px 0px rgba(0,0,0,0.15);
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow: visible;
    position: relative;
    animation: slideUpModal 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

@keyframes slideUpModal {
    from {
        transform: translateY(40px) rotate(-1deg);
        opacity: 0;
    }
    to {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
}

/* 装饰性角标 */
.modal-content::before {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 50%, #f0f0f0 50%);
    border-radius: 0;
    pointer-events: none;
    z-index: 1;
}

/* 模态框头部 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 3px solid #000000;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    position: relative;
}

.modal-header span {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.02em;
    position: relative;
}

.modal-header span::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #000000;
}

/* 关闭按钮 */
.modal-header .close-btn {
    width: 44px;
    height: 44px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
    z-index: 2;
}

.modal-header .close-btn:hover {
    background: #000000;
    color: #FFFFFF;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(0,0,0,0.15);
}

/* 模态框内容区域 */
.modal-body {
    padding: 28px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(85vh - 80px);
    background: #FFFFFF;
    flex: 1;
}

/* 表单标签 */
.modal-content label {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 10px;
    margin-top: 20px;
    position: relative;
    padding-left: 12px;
}

.modal-content label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: #000000;
}

.modal-content label:first-of-type {
    margin-top: 0;
}

/* 输入框样式 */
.modal-content input[type="text"],
.modal-content input[type="url"],
.modal-content textarea,
.modal-content select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #000000;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #000000;
    background: #FFFFFF;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.05);
}

.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 6px 6px 0px rgba(0,0,0,0.1);
    transform: translate(-2px, -2px);
}

.modal-content textarea {
    resize: vertical;
    min-height: 80px;
}

/* 头像输入区域 */
.modal-content .flex {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* 开场白输入区域 */
.modal-content .flex.mt-1 {
    margin-top: 12px;
    padding: 12px;
    background: rgba(0,0,0,0.02);
    border: 1px solid #e0e0e0;
}

/* 标签样式 */
.modal-content .tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #FFFFFF;
    border: 2px solid #000000;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #000000;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.modal-content .tag:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px rgba(0,0,0,0.12);
}

.modal-content .tag i {
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-content .tag i:hover {
    color: #ff5555;
}

/* 世界书列表 */
.modal-content .worldbook-list {
    border: 2px solid #000000;
    background: #FFFFFF;
    max-height: 200px;
    overflow-y: auto;
}

.modal-content .worldbook-item {
    padding: 14px 18px;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.modal-content .worldbook-item:hover {
    background: rgba(0,0,0,0.02);
}

.modal-content .worldbook-item:last-child {
    border-bottom: none;
}

.modal-content .worldbook-item span {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.modal-content .worldbook-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #000000;
    border-radius: 0;
    cursor: pointer;
    appearance: none;
    background: #FFFFFF;
    position: relative;
    transition: all 0.2s ease;
}

.modal-content .worldbook-item input[type="checkbox"]:checked {
    background: #000000;
}

.modal-content .worldbook-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
}

/* 按钮样式 */
.modal-content .btn-small {
    padding: 10px 16px;
    background: #FFFFFF;
    border: 2px solid #000000;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.modal-content .btn-small:hover {
    background: #000000;
    color: #FFFFFF;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(0,0,0,0.15);
}

.modal-content .btn-small.danger {
    border-color: #ff5555;
    color: #ff5555;
}

.modal-content .btn-small.danger:hover {
    background: #ff5555;
    color: #FFFFFF;
}

/* 底部按钮区域 */
.modal-content .flex.mt-2:last-child {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #000000;
}

.modal-content .btn {
    padding: 12px 24px;
    background: #FFFFFF;
    border: 2px solid #000000;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

.modal-content .btn:hover {
    background: #000000;
    color: #FFFFFF;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(0,0,0,0.15);
}

.modal-content .btn-primary {
    background: #000000;
    color: #FFFFFF;
}

.modal-content .btn-primary:hover {
    background: #333333;
    box-shadow: 6px 6px 0px rgba(0,0,0,0.2);
}

/* 自定义滚动条 */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-left: 1px solid #000000;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 0;
}

/* 编辑界面按钮样式 - 特别美化 */
.modal-content .btn {
    padding: 14px 28px;
    background: #FFFFFF;
    border: 2px solid #000000;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.12);
    min-width: 80px;
    text-align: center;
}

.modal-content .btn:hover {
    background: #000000;
    color: #FFFFFF;
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0px rgba(0,0,0,0.18);
}

.modal-content .btn:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

/* 主要按钮 - 保存 */
.modal-content .btn-primary {
    background: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
    position: relative;
    overflow: hidden;
}

.modal-content .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.modal-content .btn-primary:hover {
    background: #333333;
    color: #FFFFFF;
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0px rgba(0,0,0,0.2);
}

.modal-content .btn-primary:hover::before {
    left: 100%;
}

/* 危险按钮 - 删除 */
.modal-content .btn-danger {
    background: #FFFFFF;
    color: #ff4444;
    border: 2px solid #ff4444;
    position: relative;
}

.modal-content .btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ff4444;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: -1;
}

.modal-content .btn-danger:hover {
    color: #FFFFFF;
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0px rgba(255,68,68,0.25);
}

.modal-content .btn-danger:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* 底部按钮区域特殊样式 */
.modal-content .flex.mt-2:last-child {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 3px solid #000000;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 世界书编辑界面样式 */
.worldbook-entry {
    border: 2px solid #000000;
    padding: 16px;
    margin-bottom: 16px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.worldbook-entry:hover {
    box-shadow: 6px 6px 0px rgba(0,0,0,0.12);
}

.worldbook-entry .entry-key {
    margin-bottom: 12px;
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #000000;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background: #FFFFFF;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.05);
}

.worldbook-entry .entry-content {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #000000;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background: #FFFFFF;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.05);
    resize: vertical;
    min-height: 80px;
}

.worldbook-entry .entry-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.worldbook-entry .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    cursor: pointer;
}

.worldbook-entry .checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #000000;
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    background: #FFFFFF;
    position: relative;
    transition: all 0.2s ease;
}

.worldbook-entry .checkbox-label input[type="checkbox"]:checked {
    background: #000000;
}

.worldbook-entry .checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
}

/* 预设编辑界面样式 */
.preset-segment {
    border: 2px solid #000000;
    padding: 16px;
    margin-bottom: 16px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.preset-segment:hover {
    box-shadow: 6px 6px 0px rgba(0,0,0,0.12);
}

.preset-segment .segment-title {
    margin-bottom: 12px;
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #000000;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background: #FFFFFF;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.05);
}

.preset-segment .segment-content {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #000000;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background: #FFFFFF;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.05);
    resize: vertical;
    min-height: 80px;
}

.preset-segment .segment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.preset-segment .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    cursor: pointer;
}

.preset-segment .checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #000000;
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    background: #FFFFFF;
    position: relative;
    transition: all 0.2s ease;
}

.preset-segment .checkbox-label input[type="checkbox"]:checked {
    background: #000000;
}

.preset-segment .checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
}

/* 批量删除模态框 - 精进美化 */
.batch-delete-modal {
    max-width: 520px;
    width: 90%;
}

.batch-delete-modal .modal-body {
    padding: 24px;
}

/* 工具栏 */
.batch-delete-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #FAFAFA;
    border: 2px solid #000000;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.06);
}

.batch-stats .stats-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #000000;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.batch-actions {
    display: flex;
    gap: 8px;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 2px 2px 0px rgba(0,0,0,0.08);
}

.toolbar-btn:hover:not(:disabled) {
    background: #000000;
    color: #FFFFFF;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.12);
}

.toolbar-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.toolbar-btn.danger:hover:not(:disabled) {
    background: #ff4444;
    border-color: #ff4444;
}

/* 项目列表 */
.batch-delete-list {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 24px;
}

.batch-delete-list::-webkit-scrollbar {
    width: 6px;
}

.batch-delete-list::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 3px;
}

.batch-delete-list::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.batch-delete-item {
    margin-bottom: 12px;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    background: #FFFFFF;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    overflow: hidden;
}

.batch-delete-item:hover {
    border-color: #000000;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.08);
}

.batch-delete-item.selected {
    border-color: #000000;
    background: #FAFAFA;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

.batch-delete-label {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    cursor: pointer;
    width: 100%;
}

.hidden-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #000000;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    background: #FFFFFF;
}

.custom-checkbox.checked {
    background: #000000;
    color: #FFFFFF;
}

.custom-checkbox i {
    font-size: 12px;
}

.batch-delete-info {
    flex: 1;
    min-width: 0;
}

.batch-delete-name {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.batch-delete-meta {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #888888;
}

/* 空状态 */
.batch-delete-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    color: #AAAAAA;
    gap: 12px;
}

.batch-delete-empty i {
    font-size: 48px;
    opacity: 0.3;
}

.batch-delete-empty span {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

/* 底部按钮区域 */
.batch-delete-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    border-top: 2px solid #000000;
}

/* Console 设置界面 - 精进美化 */
.console-content {
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.console-card {
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 16px;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.08);
    overflow: visible;
    flex-shrink: 0;
}

.console-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    border-bottom: 2px solid #000000;
    color: #000000;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
}

.console-card-header i {
    font-size: 18px;
    color: #000000;
}

/* Console 按钮系统 */
.console-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #000000;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: #FFFFFF;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.1);
}

.console-btn:hover:not(:disabled) {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px rgba(0,0,0,0.15);
}

.console-btn:active:not(:disabled) {
    transform: translate(0, 0);
    box-shadow: 1px 1px 0px rgba(0,0,0,0.1);
}

.console-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.console-btn-primary {
    background: #000000;
    color: #FFFFFF;
}

.console-btn-primary:hover:not(:disabled) {
    background: #333333;
}

.console-btn-secondary {
    background: #FFFFFF;
    color: #000000;
}

.console-btn-secondary:hover:not(:disabled) {
    background: #F5F5F5;
}

.console-btn-danger {
    background: #FFFFFF;
    color: #ff4444;
    border-color: #ff4444;
}

.console-btn-danger:hover:not(:disabled) {
    background: #ff4444;
    color: #FFFFFF;
}

.console-btn-activate {
    background: #FFFFFF;
    color: #000000;
    border-color: #000000;
}

.console-btn-activate:hover:not(:disabled) {
    background: #000000;
    color: #FFFFFF;
}

.console-btn-small {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 8px;
}

.console-btn-full {
    width: calc(100% - 40px);
    margin: 0 20px 20px;
}

.console-btn-save {
    margin-top: 8px;
}

/* Console 配置列表 */
.console-profile-list {
    padding: 20px 24px;
}

.console-profile-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    margin-bottom: 12px;
    border: 2px solid #E8E8E8;
    border-radius: 12px;
    background: #FFFFFF;
    transition: all 0.3s ease;
}

.console-profile-item:last-child {
    margin-bottom: 0;
}

.console-profile-item:hover {
    border-color: #000000;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.08);
}

.console-profile-item.active {
    border-color: #000000;
    background: #FAFAFA;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

.console-profile-info {
    flex: 1;
    min-width: 0;
}

.console-profile-name {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 4px;
}

.console-profile-endpoint {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #888888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.console-profile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.console-active-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #000000;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

/* Console 表单 */
.console-form {
    padding: 20px 24px;
}

.console-form-group {
    margin-bottom: 20px;
}

.console-form-group:last-child {
    margin-bottom: 0;
}

.console-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.console-label i {
    font-size: 14px;
    color: #666666;
}

.console-input,
.console-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #000000;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background: #FFFFFF;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.console-input:focus,
.console-select:focus {
    outline: none;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
    transform: translate(-1px, -1px);
}

.console-model-select {
    display: flex;
    gap: 10px;
}

.console-model-select .console-select {
    flex: 1;
}

/* Console 日志 */
.console-logs-container {
    padding: 20px 24px;
    background: #FAFAFA;
    border: 2px solid #E8E8E8;
    border-radius: 10px;
}

.console-log-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #E8E8E8;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}

.console-log-item:last-child {
    border-bottom: none;
}

.console-log-time {
    color: #888888;
    font-size: 12px;
    white-space: nowrap;
    font-family: 'SF Mono', monospace;
}

.console-log-message {
    color: #000000;
    flex: 1;
    word-break: break-word;
}

.console-log-item.error .console-log-message {
    color: #ff4444;
}

.console-log-item.success .console-log-message {
    color: #00aa00;
}

/* Console 空状态 */
.console-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    color: #AAAAAA;
    gap: 12px;
}

.console-empty-state i {
    font-size: 40px;
    opacity: 0.4;
}

.console-empty-state span {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

/* Console 卡片独立滚动 */
.console-view {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.console-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    overflow-y: auto;
}

.console-card.scrollable-card {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 16px;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.08);
    overflow: visible;
    max-height: none;
    min-height: auto;
}

.console-card-body {
    padding: 20px 24px;
    overflow: visible;
}

.console-card-footer {
    padding: 16px 24px 20px;
    border-top: 2px solid #000000;
    flex-shrink: 0;
}

.console-card-footer .console-btn-full {
    width: 100%;
    margin: 0;
}

/* 自定义滚动条 */
.console-card-body::-webkit-scrollbar {
    width: 6px;
}

.console-card-body::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.03);
    border-radius: 3px;
}

.console-card-body::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 3px;
}

.console-card-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.25);
}

.console-backup-desc {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.55;
    color: #444;
}
.console-backup-desc strong {
    font-weight: 700;
}
.console-backup-hint {
    margin: 0 0 12px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}
.console-backup-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 温度滑块样式 */
.console-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #E8E8E8 !important;
    border-radius: 4px !important;
    outline: none;
    cursor: pointer;
    margin: 12px 0;
    padding: 0 !important;
    border: 0 !important;
}

.console-slider::-webkit-slider-runnable-track {
    height: 4px !important;
    background: #E8E8E8 !important;
    border-radius: 4px !important;
}

.console-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #000000;
    border-radius: 50% !important;
    cursor: pointer;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.console-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 3px 3px 6px rgba(0,0,0,0.3);
}

.console-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #000000;
    border-radius: 50% !important;
    cursor: pointer;
    border: none;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.console-slider::-moz-range-track {
    height: 4px !important;
    background: #E8E8E8 !important;
    border-radius: 4px !important;
}

.temperature-value {
    margin-left: auto;
    padding: 4px 12px;
    background: #000000;
    color: #FFFFFF;
    font-family: 'SF Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    flex: 0 0 auto;
    white-space: nowrap;
    text-align: center;
    display: inline-flex;
    flex-grow: 0;
    flex-shrink: 0;
    width: fit-content;
    max-width: 140px;
}

.temperature-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding: 12px 16px;
    background: #FAFAFA;
    border: 2px solid #E8E8E8;
    border-radius: 10px;
}

.temperature-hint .hint-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #666666;
    white-space: nowrap;
}

.temperature-hint .hint-desc {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #888888;
    line-height: 1.5;
    text-align: center;
}

/* 温度拉条适配：避免温度 badge 在很窄时变成黑色长方形 */
@media (max-width: 760px) {
    .console-label {
        flex-wrap: wrap;
        row-gap: 8px;
        align-items: flex-start;
    }
    .temperature-value {
        margin-left: 0 !important;
        max-width: 110px;
        padding: 3px 10px;
        font-size: 12px;
    }
    .console-slider {
        height: 4px !important;
        margin: 8px 0 0 0;
        background: #E8E8E8 !important;
        border-radius: 4px !important;
        display: block;
        padding: 0 !important;
        border: 0 !important;
    }

    .console-slider::-webkit-slider-runnable-track {
        height: 4px !important;
        background: #E8E8E8 !important;
        border-radius: 4px !important;
    }

    .console-slider::-moz-range-track {
        height: 4px !important;
        background: #E8E8E8 !important;
        border-radius: 4px !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .journal-title {
        font-size: 40px;
    }
    
    .entry-date {
        min-width: 50px;
        padding: 8px 4px;
        margin-right: 12px;
    }
    
    .entry-date::before {
        width: 6px;
    }
    
    .entry-date::after {
        width: 6px;
    }
    
    .entry-date-empty {
        min-width: 50px;
        padding: 8px 4px;
        margin-right: 12px;
    }
    
    .entry-date-empty::before {
        width: 6px;
    }
    
    .entry-date-empty::after {
        width: 6px;
    }
    
    .date-day {
        font-size: 16px;
    }
    
    .date-month {
        font-size: 9px;
    }
    
    .create-post-panel {
        max-width: 100%;
        border-radius: 32px 32px 0 0;
    }
    
    .entry-images.stacked {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .journal-header {
        padding: 40px 16px 24px;
    }
    
    .journal-title {
        font-size: 32px;
    }
    
    .journal-back,
    .journal-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .journal-entry {
        flex-direction: column;
        gap: 16px;
    }
    
    .entry-date {
        position: static;
        min-width: auto;
        width: fit-content;
    }
    
    .entry-date-empty {
        position: static;
        min-width: auto;
        width: fit-content;
    }
    
    .entry-card {
        padding: 20px;
    }
    
    .feed-fab {
        bottom: 24px;
        right: 24px;
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
    
    .profile-panel,
    .edit-profile-panel,
    .role-comment-panel {
        max-width: 100%;
        border-radius: 24px 24px 0 0;
    }
}

/* 全局移动端适配 - 全面优化 */
@media (max-width: 768px) {
    /* 基础容器 */
    #app {
        font-size: 14px;
    }
    
    .app-view {
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    /* Feed 应用适配 */
    .feed-app {
        padding-bottom: 60px;
    }
    
    .journal-header {
        padding: 20px 16px 16px;
    }
    
    .feed-fab {
        bottom: 70px;
        right: 16px;
        width: 52px;
        height: 52px;
    }
    
    .entry {
        padding: 16px;
        margin: 0;
    }
    
    .entry-text {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .entry-images {
        gap: 4px;
    }
    
    .entry-images.single {
        max-height: 300px;
    }
    
    .entry-images.stacked {
        max-height: 200px;
    }
    
    /* 状态栏 */
    .status-bar {
        padding: 8px 16px;
        padding-top: calc(8px + env(safe-area-inset-top));
        font-size: 12px;
    }
    
    /* 主屏幕 */
    .homescreen {
        padding: 16px;
        padding-top: calc(96px + env(safe-area-inset-top));
    }
    
    .hero-section {
        padding: 20px 0;
    }
    
    .hero-title {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-top: 8px;
    }
    
    /* 应用网格 */
    .app-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        padding: 16px 0;
    }
    
    .app-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    
    .app-name {
        font-size: 11px;
        margin-top: 6px;
    }
    
    /* 底部导航 */
    .bottom-nav {
        padding: 8px 0;
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
        height: 60px;
    }
    
    .nav-btn {
        padding: 6px 12px;
    }
    
    .nav-btn svg {
        width: 22px;
        height: 22px;
    }
    
    /* 通用按钮 */
    button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* 输入框 */
    input, textarea {
        font-size: 16px;
        min-height: 44px;
    }
    
    /* 模态框 */
    .modal-overlay {
        padding: 16px;
    }
    
    .modal {
        width: 100%;
        max-height: 90vh;
    }
}

/* 小屏幕适配 */
@media (max-width: 480px) {
    /* 基础容器 */
    #app {
        font-size: 13px;
    }
    
    /* Feed 应用小屏幕适配 */
    .feed-app {
        padding-bottom: 56px;
    }
    
    .journal-header {
        padding: 16px 12px 12px;
    }
    
    .feed-fab {
        bottom: 66px;
        right: 12px;
        width: 48px;
        height: 48px;
    }
    
    .entry {
        padding: 12px;
    }
    
    .entry-text {
        font-size: 13px;
    }
    
    .entry-images.single {
        max-height: 250px;
    }
    
    .entry-images.stacked {
        max-height: 180px;
    }
    
    /* 状态栏 */
    .status-bar {
        padding: 6px 12px;
        padding-top: calc(6px + env(safe-area-inset-top));
        font-size: 11px;
    }
    
    /* 主屏幕 */
    .homescreen {
        padding: 12px;
        padding-top: calc(96px + env(safe-area-inset-top));
    }
    
    .hero-section {
        padding: 16px 0;
    }
    
    .hero-title {
        font-size: 24px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 13px;
    }
    
    /* 应用网格 */
    .app-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 12px 0;
    }
    
    .app-icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
    
    .app-name {
        font-size: 10px;
        margin-top: 4px;
    }
    
    /* 底部导航 */
    .bottom-nav {
        padding: 6px 0;
        padding-bottom: calc(6px + env(safe-area-inset-bottom));
        height: 56px;
    }
    
    .nav-btn {
        padding: 4px 8px;
    }
    
    .nav-btn svg {
        width: 20px;
        height: 20px;
    }
    
    /* 卡片样式 */
    .card {
        padding: 16px;
        margin: 12px 0;
    }
    
    /* 列表项 */
    .list-item {
        padding: 12px;
        min-height: 56px;
    }
    
    /* 头像 */
    .avatar {
        width: 40px;
        height: 40px;
    }
    
    .avatar-small {
        width: 32px;
        height: 32px;
    }
    
    .avatar-large {
        width: 64px;
        height: 64px;
    }
    
    /* 聊天输入框小屏幕适配 */
    .chat-input-container {
        padding: 12px 12px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
    
    .wechat-input-row {
        gap: 8px;
    }
    
    .wechat-input-row input,
    .chat-input {
        height: 40px;
        padding: 0 16px;
        font-size: 14px;
    }
    
    .wechat-input-row .action-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        font-size: 16px;
    }
    
    .wechat-input-row .send-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        font-size: 14px;
    }
    
    /* 附件面板小屏幕适配 */
    .attachment-panel {
        left: 12px;
        right: 12px;
        bottom: 80px;
        padding: 12px;
        border-radius: 16px;
    }
    
    .attachment-grid {
        gap: 8px;
    }
    
    .attachment-item {
        padding: 12px;
        min-height: 50px;
        border-radius: 12px;
    }
    
    .attachment-item i {
        font-size: 24px;
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 375px) {
    /* 聊天输入框超小屏幕适配 */
    .chat-input-container {
        padding: 10px 10px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }
    
    .wechat-input-row {
        gap: 6px;
    }
    
    .wechat-input-row input,
    .chat-input {
        height: 36px;
        padding: 0 12px;
        font-size: 13px;
    }
    
    .wechat-input-row .action-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        font-size: 14px;
    }
    
    .wechat-input-row .send-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        font-size: 12px;
    }
    
    /* 附件面板超小屏幕适配 */
    .attachment-panel {
        left: 8px;
        right: 8px;
        bottom: 70px;
        padding: 10px;
        border-radius: 14px;
    }
    
    .attachment-grid {
        gap: 8px;
    }
    
    .attachment-item {
        padding: 10px;
        min-height: 44px;
        border-radius: 10px;
    }
    
    .attachment-item i {
        font-size: 22px;
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
}

/* 横屏适配 */
@media (max-height: 500px) and (orientation: landscape) {
    .status-bar {
        padding: 4px 12px;
        padding-top: calc(4px + env(safe-area-inset-top));
    }
    
    .homescreen {
        padding: 8px;
        padding-top: calc(48px + env(safe-area-inset-top));
    }
    
    .hero-section {
        padding: 8px 0;
    }
    
    .hero-title {
        font-size: 18px;
    }
    
    .app-grid {
        gap: 6px;
    }
    
    .app-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .bottom-nav {
        height: 50px;
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* 触摸优化 */
@media (hover: none) and (pointer: coarse) {
    button, .btn, .nav-btn, .app-icon {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    .app-icon:active {
        transform: scale(0.95);
        opacity: 0.8;
    }
    
    .nav-btn:active {
        transform: scale(0.9);
    }
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    #app {
        color: #ffffff;
    }
    
    .status-bar {
        color: #ffffff;
    }
    
    .hero-title {
        color: #ffffff;
    }
    
    .hero-subtitle {
        color: rgba(255, 255, 255, 0.7);
    }
}

/* ==========================================
   主屏幕移动端适配 (补充)
   ========================================== */
@media (max-width: 480px) {
    /* 主屏幕容器 */
    .homescreen {
        padding: 48px 16px 120px 16px; /* 缩小内边距 */
    }

    /* Hero 区域 */
    .hero-section {
        padding: 40px 0 30px 0;
    }
    .hero-title {
        font-size: 36px;  /* 缩小标题 */
        margin-bottom: 12px;
    }
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }
    .hero-illustration {
        max-width: 280px; /* 缩小插图 */
    }
    .decorative-blob,
    .decorative-arrow {
        width: 30px;      /* 缩小装饰元素 */
        height: 30px;
    }

    /* 应用卡片网格 */
    .app-cards-grid {
        gap: 20px;
        margin-bottom: 40px;
    }

    /* 统一缩小所有卡片的内边距，覆盖原有固定值 */
    .app-card {
        padding: 16px !important;
    }
    /* 调整卡片内的图标大小 */
    .app-card-icon {
        width: 40px;
        height: 40px;
    }
    .app-card-title {
        font-size: 20px;
    }
    .app-card-description {
        font-size: 12px;
    }
    .app-card-action {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    /* 音乐播放器 */
    .music-widget {
        padding: 16px;
        border-radius: 28px;
        margin-bottom: 40px;
    }
    .player-header {
        margin-bottom: 16px;
    }
    .player-label {
        font-size: 16px;
    }
    .now-playing-area {
        gap: 16px;
    }
    .spectrum-bars {
        height: 40px;
    }
    .spectrum-bar {
        width: 6px;
    }
    .widget-song {
        font-size: 16px;
    }
    .widget-artist {
        font-size: 12px;
        margin-bottom: 12px;
    }
    .widget-progress-container {
        gap: 8px;
    }
    .widget-time {
        font-size: 10px;
        min-width: 30px;
    }
    .widget-controls {
        gap: 16px;
        margin-top: 16px;
    }
    .widget-control-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    .widget-control-btn.play-pause {
        padding: 12px 16px;
    }

    /* Dock 栏 */
    .dock {
        gap: 16px;
        padding: 16px 24px;
        border-radius: 36px;
    }
    .dock-icon {
        width: 48px;
        height: 48px;
    }
    .dock-icon i {
        font-size: 20px;
    }
    .dock-icon span {
        font-size: 9px;
    }
}

/* 更小屏幕（如 iPhone SE） */
@media (max-width: 375px) {
    .hero-title {
        font-size: 28px;
    }
    .app-card {
        padding: 12px !important;
    }
    .app-card-icon {
        width: 36px;
        height: 36px;
    }
    .app-card-title {
        font-size: 18px;
    }
    .dock {
        gap: 12px;
        padding: 12px 18px;
    }
    .dock-icon {
        width: 44px;
        height: 44px;
    }
}

/* 锁屏设置样式 */
.lock-screen-setting {
    padding: 20px 24px;
}

.setting-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #FFFFFF;
    border: 2px solid #E8E8E8;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 0;
    flex-wrap: wrap;
    gap: 12px;
}

.setting-info {
    flex: 1;
    min-width: 120px;
    margin-right: 0;
}

.setting-item-full {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}

.setting-item:hover {
    border-color: #000000;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.05);
}

.setting-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.setting-label {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    font-family: 'Inter', Arial, sans-serif;
}

.setting-desc {
    font-size: 13px;
    color: #666666;
    font-family: 'Inter', Arial, sans-serif;
}

.setting-toggle {
    cursor: pointer;
    width: 52px;
    height: 28px;
    position: relative;
}

.toggle-slider {
    width: 100%;
    height: 100%;
    background: #E8E8E8;
    border-radius: 14px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid #D0D0D0;
}

.toggle-slider.active {
    background: #000000;
    border-color: #000000;
}

.toggle-thumb {
    width: 22px;
    height: 22px;
    background: #FFFFFF;
    border-radius: 11px;
    position: absolute;
    top: 1px;
    left: 1px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.toggle-slider.active .toggle-thumb {
    left: 27px;
}

/* 密码设置样式 */
.password-setting {
    display: flex;
    flex: 1;
    gap: 10px;
    align-items: center;
    min-width: 0;
    width: 100%;
}

.password-save-btn {
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 60px;
}

.password-input {
    flex: 1;
    min-width: 100px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid #E8E8E8;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter', Arial, sans-serif;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.password-input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.password-save-btn {
    padding: 8px 16px;
    background: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: 'Inter', Arial, sans-serif;
}

.password-save-btn:hover:not(:disabled) {
    background: #333333;
    transform: translateY(-1px);
}

.password-save-btn:disabled {
    background: #E8E8E8;
    color: #999999;
    cursor: not-allowed;
}

/* 个性签名设置样式 */
.signature-setting {
    display: flex;
    flex: 1;
    gap: 10px;
    align-items: center;
    min-width: 0;
    width: 100%;
}

.signature-save-btn {
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 60px;
}

.signature-input {
    flex: 1;
    min-width: 150px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid #E8E8E8;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', Arial, sans-serif;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.signature-input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.signature-save-btn {
    padding: 8px 16px;
    background: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: 'Inter', Arial, sans-serif;
}

.signature-save-btn:hover {
    background: #333333;
    transform: translateY(-1px);
}

/* 字体设置样式 */
.font-setting {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* 测试字体是否加载 */
.test-font {
    font-family: 'CustomFont1', sans-serif;
}

/* 字体导入对话框 */
.font-import-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.font-import-dialog-content {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.font-import-dialog-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    text-align: center;
}

.font-import-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333333;
}

.form-group input {
    padding: 12px;
    border: 2px solid #E8E8E8;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', Arial, sans-serif;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-group input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 8px;
}

.cancel-btn {
    padding: 10px 20px;
    background: #FFFFFF;
    color: #000000;
    border: 2px solid #E8E8E8;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: 'Inter', Arial, sans-serif;
}

.cancel-btn:hover {
    border-color: #000000;
    background: #f5f5f5;
}

.confirm-btn {
    padding: 10px 20px;
    background: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: 'Inter', Arial, sans-serif;
}

.confirm-btn:hover {
    background: #333333;
    transform: translateY(-1px);
}

.font-cards-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 12px;
    scrollbar-width: thin;
    scrollbar-color: #000000 #f5f5f5;
    width: 100%;
    box-sizing: border-box;
}

.font-cards-container::-webkit-scrollbar {
    height: 6px;
}

.font-cards-container::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.font-cards-container::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 3px;
}

.font-card {
    min-width: 120px;
    padding: 12px;
    background: #FFFFFF;
    border: 2px solid #E8E8E8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    align-items: center;
    height: auto;
    flex-shrink: 0;
}

.font-card:hover {
    border-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.font-card.active {
    border-color: #000000;
    background: #f0f0f0;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.font-card-row {
    font-size: 14px;
    line-height: 1.4;
    color: #000000;
}

.font-card-name {
    font-size: 16px;
    font-weight: 500;
}

.font-card-english {
    font-size: 14px;
    font-weight: 400;
}

.font-card-number {
    font-size: 14px;
    font-weight: 400;
    color: #666666;
}

.font-save-btn {
    padding: 8px 16px;
    background: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: 'Inter', Arial, sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 60px;
}

.font-save-btn:hover {
    background: #333333;
    transform: translateY(-1px);
}

.font-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
}

.font-import {
    display: flex;
    align-items: center;
}

.font-import-btn {
    padding: 10px 20px;
    background: #FFFFFF;
    color: #000000;
    border: 2px solid #E8E8E8;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: 'Inter', Arial, sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 100px;
}

.font-import-btn:hover {
    border-color: #000000;
    background: #f5f5f5;
}

/* 锁屏壁纸设置样式 */
.lock-wallpaper-setting {
    display: flex;
    flex: 1;
    gap: 10px;
    align-items: center;
    min-width: 0;
    width: 100%;
}

.lock-wallpaper-save-btn {
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 60px;
}

.lock-wallpaper-input {
    flex: 1;
    min-width: 150px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid #E8E8E8;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', Arial, sans-serif;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lock-wallpaper-input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.lock-wallpaper-save-btn {
    padding: 8px 16px;
    background: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: 'Inter', Arial, sans-serif;
}

.lock-wallpaper-save-btn:hover {
    background: #333333;
    transform: translateY(-1px);
}

/* 锁屏颜色设置样式 */
.lock-color-setting {
    display: flex;
    flex: 1;
    gap: 10px;
    align-items: center;
    min-width: 0;
    width: 100%;
}

.lock-color-save-btn {
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 60px;
}

.lock-color-input {
    width: 50px;
    height: 40px;
    border: 2px solid #E8E8E8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lock-color-input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.lock-color-save-btn {
    padding: 8px 16px;
    background: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: 'Inter', Arial, sans-serif;
}

.lock-color-save-btn:hover {
    background: #333333;
    transform: translateY(-1px);
}

/* 锁屏预览样式 */
.lock-screen-preview {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.lock-preview-header {
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', Arial, sans-serif;
    color: #000000;
    margin-bottom: 15px;
    text-align: center;
}

.lock-preview-container {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    aspect-ratio: 9/16;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lock-preview-time {
    text-align: center;
    padding-top: 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.lock-preview-clock {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.lock-preview-date {
    font-size: 12px;
    font-weight: 400;
    font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.lock-preview-signature {
    font-size: 10px;
    font-weight: 300;
    font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    max-width: 80%;
    margin: 0 auto;
    line-height: 1.4;
}

.lock-preview-password {
    position: absolute;
    top: 60%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lock-preview-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.lock-preview-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.lock-preview-keyboard {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lock-preview-row {
    display: flex;
    gap: 8px;
}

/* 移动端响应式样式 */
@media (max-width: 600px) {
    .lock-screen-setting {
        padding: 16px 12px;
    }
    
    .setting-item {
        padding: 12px;
        gap: 10px;
    }
    
    .setting-info {
        min-width: 100%;
        margin-bottom: 8px;
    }
    
    .password-setting,
    .signature-setting,
    .lock-wallpaper-setting,
    .lock-color-setting {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .password-input,
    .signature-input,
    .lock-wallpaper-input {
        min-width: 0;
        width: calc(100% - 80px);
    }
    
    .font-cards-container {
        padding: 8px;
    }
    
    .font-card {
        min-width: 100px;
        padding: 10px;
    }
    
    .font-actions {
        flex-direction: column;
        gap: 10px;
        padding: 0;
    }
    
    .font-import {
        width: 100%;
    }
    
    .font-import-btn,
    .font-save-btn {
        width: 100%;
    }
}

.lock-preview-key {
    width: 25px;
    height: 25px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

/* ==========================================================
   Home 布局稳定化（解决极端比例“乱飞”）
   - 通过固定设计尺寸 + 等比缩放，保证网格坐标不随视口畸变
   - Dock/页面指示器改为同一 flex 流布局，始终贴底
   - 左/右底部区域用 2 列网格，避免百分比 flex 导致的比例漂移
   ========================================================== */

.homescreen {
    height: 100dvh;
    width: 100%;
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-sizing: border-box;
    position: relative;
}

.homescreen-inner {
    width: 430px;
    height: 930px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: auto;
    bottom: 0;
    /* 预留底部 UI（翻页器 + Dock）高度，避免遮住第5-6行 */
    --home-bottom-gap: clamp(120px, calc(18vh + env(safe-area-inset-bottom)), 190px);
    /* 关键：用 100dvh 并扣掉顶部/底部安全区，确保横屏宽屏也能完整显示 */
    --phone-scale: min(
        calc(100vw / 430px),
        calc((100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom)) / 930px)
    );
    transform: translateX(-50%) scale(var(--phone-scale));
    transform-origin: center bottom;
    padding: 0;
}

.home-pages {
    width: 100%;
    flex: 1 1 auto;
    display: flex;
    overflow: visible !important;
    transition: transform 0.3s ease;
    box-sizing: border-box;
    touch-action: none;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.home-pages::-webkit-scrollbar {
    display: none;
}

.home-page {
    width: 100%;
    min-width: 100%;
    height: 100%;
    min-height: 100%;
    flex-shrink: 0;
    overflow: auto;
    padding: 4% 4%;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #000000 #f5f5f5;
}

/* 页面指示器：固定在舞台内靠近底部，但不压到第5-6行 */
.page-indicator-container {
    position: absolute !important;
    left: 50% !important;
    bottom: calc(110px + env(safe-area-inset-bottom)) !important;
    transform: translateX(-50%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 99;
    width: 100%;
    padding: 0;
    flex: 0 0 auto;
}

/* Dock：贴住舞台最底部中间 */
.dock {
    position: absolute !important;
    left: 50% !important;
    bottom: calc(20px + env(safe-area-inset-bottom)) !important;
    transform: translateX(-50%) !important;
    width: auto;
    min-width: 320px;
    max-width: calc(100% - 32px);
    padding: 12px 18px; /* 缩小，避免撑破“1行”高度 */
    z-index: 100;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 24px;
    margin: 0;
    flex: 0 0 auto;
}

/* Hover 时不要再套用旧版 fixed 布局的 translateX(-50%) */
.dock:hover {
    transform: translateX(-50%) translateY(-4px) !important;
}

/* 第一页底部：左侧贴纸 右侧应用（严格 50/50） */
.first-page-bottom-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    justify-content: stretch;
    height: 100%;
    padding: 0;
    gap: 0;
}

.first-page-bottom-content .sticker-widget {
    width: 100%;
    height: 100%;
    flex: none;
}

.first-page-apps {
    width: 100%;
    height: 100%;
    flex: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
}

/* 主页底部：让 app 图标随网格单元“高度”自适应（避免只按宽度出高） */
.first-page-apps .app-icon {
    height: 100%;
    justify-content: flex-start; /* 不拉伸到非等比尺寸 */
}

.first-page-apps .app-icon-wrapper {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* 强制正方形 */
    margin-bottom: 0;
}

.page-2-grid .app-grid-bottom-left .app-icon {
    height: 100%;
    justify-content: flex-start;
}

.page-2-grid .app-grid-bottom-left .app-icon-wrapper {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    margin-bottom: 0;
}

/* 第二页底部：左侧应用 右侧胶囊（严格 50/50，高度铺满） */
.app-grid-bottom-left {
    top: 0;
    bottom: 0;
    left: 0;
    width: 50%;
}

.glass-capsules {
    top: 0;
    bottom: 0;
    right: 0;
    width: 50%;
}

/* LIVE App — 黑白灰（白为主）· 全屏底图 · 仅弹幕轨高饱和彩色 */
.live-app {
    position: relative;
    overflow: hidden;
    height: 100%;
    color: #1c1c1e;
    font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", sans-serif;
    background:
        var(--live-app-bg, url("https://img.heliar.top/file/1774163610764_1774163583725.png"))
        center center / cover no-repeat;
}

/* 最左页：角色手机模拟 */
.home-page-left-peek .grid-6x4 {
    padding: 4px;
}
.home-page-left-peek .grid-row-1-6 {
    grid-column: 1 / 5;
    grid-row: 1 / 7;
}
.home-page-left-peek .grid-cell {
    padding: 0;
}
.left-peek-cell {
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.left-peek-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 6px;
    background: rgba(0,0,0,0.02);
    border-radius: 0;
}
.left-peek-container.dark {
    background: rgba(0,0,0,0.2);
}
.left-peek-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-shrink: 0;
}
.left-peek-select {
    flex: 1;
    height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.9);
    font-size: 12px;
}
.left-peek-theme-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.left-peek-ai-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.left-peek-ai-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}
.left-peek-container.dark .left-peek-select,
.left-peek-container.dark .left-peek-theme-btn,
.left-peek-container.dark .left-peek-ai-btn {
    background: rgba(40,40,42,0.92);
    color: #f2f2f4;
    border-color: rgba(255,255,255,0.16);
}
.left-peek-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: rgba(0,0,0,0.5);
}
.left-peek-phone-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 4px 0 2px;
}
.left-peek-phone-frame {
    position: relative;
    flex: 1;
    min-height: 0;
    width: min(100%, 320px);
    aspect-ratio: 9 / 19.5;
    background:
        linear-gradient(140deg, #4b4c53 0%, #232429 36%, #131316 72%, #0d0d0f 100%);
    border-radius: 20px;
    padding: 7px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.18),
        0 0 0 2px rgba(26,26,30,0.95),
        0 0 0 3px rgba(0,0,0,0.45),
        inset 1px 1px 2px rgba(255,255,255,0.22),
        inset -2px -2px 5px rgba(0,0,0,0.5);
}
.left-peek-phone-frame::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 10px;
    right: 10px;
    height: 20%;
    border-radius: 12px 12px 40px 40px;
    background: linear-gradient(180deg, rgba(255,255,255,0.24), rgba(255,255,255,0.03) 55%, rgba(255,255,255,0));
    pointer-events: none;
    z-index: 1;
}
.left-peek-phone-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    pointer-events: none;
    background:
        radial-gradient(125% 56% at 50% -12%, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 68%),
        radial-gradient(90% 40% at 50% 112%, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 72%);
    z-index: 2;
}
.left-peek-side-buttons {
    position: absolute;
    top: 84px;
    width: 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 4;
}
.left-peek-side-buttons.left {
    left: -3px;
}
.left-peek-side-buttons.right {
    right: -3px;
    top: 108px;
}
.left-peek-side-buttons .side-btn {
    display: block;
    width: 100%;
    border-radius: 999px;
    background: linear-gradient(180deg, #b6b6bc 0%, #6b6c74 46%, #4f5057 100%);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.36),
        0 2px 5px rgba(0,0,0,0.45),
        inset 0 -1px 0 rgba(0,0,0,0.28);
}
.left-peek-side-buttons .volume-up {
    height: 26px;
}
.left-peek-side-buttons .volume-down {
    height: 42px;
}
.left-peek-side-buttons .power {
    height: 58px;
}
.left-peek-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 116px;
    height: 30px;
    border-radius: 999px;
    background: linear-gradient(180deg, #060606, #141414 62%, #1d1d1d);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.08),
        inset 0 6px 12px rgba(255,255,255,0.03),
        0 1px 2px rgba(0,0,0,0.45);
}
.left-peek-notch::before {
    content: '';
    width: 46px;
    height: 6px;
    border-radius: 99px;
    background: linear-gradient(180deg, rgba(118,118,123,0.72), rgba(60,60,64,0.55));
    position: absolute;
    top: 8px;
}
.left-peek-notch::after {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #7fd8ff 0%, #304a76 48%, #151827 72%, #0d0d0f 100%);
    position: absolute;
    right: 22px;
    top: 12px;
    box-shadow: 0 0 8px rgba(83,173,255,0.3);
}
.left-peek-screen {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.08),
        inset 0 10px 18px rgba(255,255,255,0.02);
}

/* Read App · grey bookshelf theme */
.read-app {
    --read-bg: #f3f3f6;
    --read-text: #1f2933;
    --read-accent: #111827;
    --read-muted: #6b7280;
    --read-card: rgba(255,255,255,0.86);
    --read-shadow: 0 10px 30px rgba(15,23,42,0.16);
    display: flex;
    flex-direction: column;
    background-color: var(--read-bg);
    /* 背景图由 read.readAppBackgroundStyle 绑定 */
    color: var(--read-text);
}
.read-app .read-header {
    background: rgba(255,255,255,0.86);
    border-bottom: 1px solid rgba(45,47,54,0.12);
    backdrop-filter: blur(8px);
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    padding: 6px 10px 8px;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
}
.read-app .read-header .back-btn.read-nav-btn {
    margin-top: -6px;
}
.read-app .read-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}
.read-app .read-header-row-bottom {
    justify-content: flex-start;
    padding-left: 52px;
    padding-right: 8px;
    box-sizing: border-box;
}
.read-app .read-header-row-bottom .read-top-tabs {
    max-width: 100%;
}
.read-app .read-header-center {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    overflow: hidden;
}
.read-app .app-title {
    font-family: Inter, sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.03em;
}
.read-app .read-subtitle {
    font-size: 11px;
    color: rgba(31,41,51,0.58);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.read-app .read-top-tabs {
    display: flex;
    gap: 6px;
    justify-content: flex-start;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 999px;
    padding: 4px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    flex: 0 0 auto;
}
.read-app .read-top-tabs::-webkit-scrollbar {
    display: none;
}
.read-app .read-top-tab {
    border: 1px solid transparent;
    background: transparent;
    color: var(--read-muted);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .15s ease;
    flex: 0 0 auto;
}
.read-app .read-top-tab i {
    font-size: 10px;
    opacity: 0.8;
}
.read-app .read-top-tab span {
    white-space: nowrap;
}
.read-app .read-top-tab.active {
    background: #fff;
    color: var(--read-accent);
    border-color: rgba(15,23,42,0.2);
    box-shadow: 0 3px 8px rgba(15,23,42,0.12);
}
.read-app .read-top-tab:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.read-app .read-header-right {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    min-width: 102px;
}
.read-app .read-nav-btn {
    width: 30px;
    height: 30px;
    border-radius: 999px !important;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15,23,42,0.14) !important;
    background: rgba(255,255,255,0.9) !important;
}
.read-app .read-api-status {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,0.14);
    background: rgba(255,255,255,0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.read-app .read-api-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.read-app .read-api-dot.ok { background: #22c55e; }
.read-app .read-api-dot.bad { background: #ef4444; }

@media (max-width: 900px) {
    .read-app .read-subtitle {
        display: none;
    }
}

@media (max-width: 560px) {
    .read-app .read-header-right {
        min-width: auto;
    }
}
.read-app .read-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: transparent;
    max-width: none;
    margin: 0;
}
.read-app .read-view { display: flex; flex-direction: column; gap: 12px; }
.read-app .read-card {
    padding: 12px;
    border-radius: 16px !important;
    border: 1px solid rgba(45,47,54,0.1) !important;
    background: var(--read-card);
    box-shadow: var(--read-shadow) !important;
    backdrop-filter: blur(16px);
}
.read-app .read-search-row { display: flex; gap: 10px; align-items: center; }
.read-app .read-input,
.read-app input,
.read-app textarea,
.read-app select {
    background: #fff !important;
    border: 1px solid rgba(45,47,54,0.16) !important;
    border-radius: 12px !important;
    outline: none;
}
.read-app .read-input { flex: 1; padding: 10px; }
.read-app .btn-small {
    border-radius: 8px !important;
    border: 1px solid rgba(45,47,54,0.2);
    background: #fff;
    color: var(--read-text);
}
.read-app .btn-small.primary {
    background: var(--read-accent);
    border-color: var(--read-accent);
    color: #fff;
}
.read-app .read-chip-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    max-height: 132px;
    overflow-y: auto;
}
.read-app .read-works-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 12px;
}
.read-app .read-work-card {
    transition: transform .15s ease, box-shadow .15s ease;
}
.read-app .read-work-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08) !important;
}
.read-app .read-title {
    font-family: Inter, sans-serif;
    font-weight: 700;
    color: var(--read-text);
}
.read-app .read-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.read-app .read-tag {
    background: #fff;
    border: 1px solid rgba(45,47,54,0.12);
    border-radius: 999px;
    font-size: 12px;
    padding: 3px 8px;
}
.read-app .read-tag.warning {
    color: #b45309;
    border-color: rgba(180,83,9,0.35);
    background: rgba(251,191,36,0.14);
}
.read-app .read-chapter-item {
    padding: 10px;
    border-radius: 12px !important;
    background: rgba(255,255,255,0.92) !important;
    border: 1px solid rgba(15,23,42,0.06) !important;
}
.read-app .read-reader-body-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 16px 8px 12px;
    background: transparent;
}
.read-app .read-body {
    font-family: 'Long Cang', 'ZCOOL XiaoWei', 'KaiTi', 'STKaiti', 'FangSong', 'SimSun', serif;
    white-space: pre-wrap;
    line-height: 1.85;
    font-size: 17px;
    letter-spacing: 0.03em;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 4px 18px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--read-text);
}
.read-app .read-notes {
    background: rgba(74,78,105,0.1) !important;
    border: 1px solid rgba(74,78,105,0.2);
}
.read-app .read-reader-nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.read-app .read-writer-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.read-app .back-btn {
    background: #fff !important;
    border-color: rgba(45,47,54,0.2) !important;
}

@media (min-width: 768px) {
    .read-app .read-works-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .read-app .read-works-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    .read-app .read-header-center {
        align-items: flex-start;
        margin-left: 6px;
    }
    .read-app .read-top-tabs {
        overflow-x: auto;
        width: auto;
        max-width: 100%;
        padding-bottom: 2px;
    }
    .read-app .read-body {
        font-size: 16px;
        line-height: 1.75;
    }
}
.read-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: rgba(0,0,0,0.5);
}
.read-placeholder i { font-size: 48px; }
.read-placeholder p { margin: 0; font-size: 14px; }

/* Peek App（原全屏版已移除，保留共用样式） */
.peek-app {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    padding-bottom: 0;
    background: #f6f6f8;
    min-height: 0;
}
.peek-app.dark {
    background: #16171b;
    color: #f2f2f4;
}
.peek-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.peek-icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}
.peek-app.dark .peek-icon-btn {
    background: #262831;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f2f2f4;
}
.peek-title-wrap h2 {
    margin: 0;
    font-size: 16px;
    letter-spacing: 0.08em;
}
.peek-title-wrap p {
    margin: 2px 0 0 0;
    font-size: 11px;
    opacity: 0.7;
}
.peek-character-picker {
    display: flex;
}
.peek-select {
    width: 100%;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    padding: 0 10px;
}
.peek-app.dark .peek-select {
    background: #262831;
    border-color: rgba(255, 255, 255, 0.14);
    color: #f2f2f4;
}
.peek-empty {
    padding: 24px 12px;
    text-align: center;
    font-size: 13px;
    opacity: 0.75;
}

/* 手机外框 */
.peek-phone-wrapper {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
}
.peek-phone-frame {
    width: min(260px, 85vw);
    aspect-ratio: 9 / 19.5;
    max-height: calc(100vh - 180px);
    background: #1c1c1e;
    border-radius: 36px;
    padding: 10px;
    box-shadow:
        0 0 0 3px #2c2c2e,
        0 0 0 6px #1c1c1e,
        0 20px 50px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    position: relative;
}
.peek-phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 22px;
    background: #1c1c1e;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}
.peek-phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    background: #000;
    display: flex;
    flex-direction: column;
    position: relative;
}
.peek-phone-screen.dark {
    background: #000;
}

/* 锁屏 */
.peek-lockscreen {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
    padding: 16px 14px 12px;
}
.peek-lockscreen::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.52) 100%);
    pointer-events: none;
}
.peek-lock-time-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 16px;
}
.peek-lockscreen .lock-time {
    text-align: center;
    color: #fff;
    text-shadow: 0 3px 14px rgba(0,0,0,0.45);
}
.peek-lockscreen .lock-clock {
    font-size: 46px;
    font-weight: 300;
    letter-spacing: -1px;
    line-height: 1.05;
}
.peek-lockscreen .lock-date {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 400;
    opacity: 0.95;
}
.peek-lockscreen .lock-signature {
    margin-top: 6px;
    font-size: 11px;
    opacity: 0.92;
}
.peek-passcode-panel {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.peek-passcode-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}
.peek-passcode-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.42);
}
.peek-passcode-dot.active {
    background: rgba(255,255,255,0.95);
    border-color: rgba(255,255,255,0.98);
}
.peek-passcode-hint {
    min-height: 18px;
    font-size: 11px;
    line-height: 1.35;
    color: rgba(255,255,255,0.92);
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.peek-passcode-expire {
    font-size: 10px;
    color: rgba(255,255,255,0.82);
    text-shadow: 0 1px 6px rgba(0,0,0,0.28);
}
.peek-passcode-keypad {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}
.peek-passcode-key {
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.16);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.peek-passcode-key.muted {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.92);
}
.peek-passcode-key:active {
    transform: scale(0.97);
}

/* 状态栏 */
.peek-statusbar {
    height: 50px;
    padding: 8px 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(180deg, #0a0a0b 0%, #000 100%);
    flex-shrink: 0;
    letter-spacing: 0.02em;
}
.peek-phone-screen.dark .peek-statusbar {
    color: #ffffff;
}
.peek-status-right {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    opacity: 0.9;
}

/* 主屏 */
.peek-home-content {
    flex: 1;
    min-height: 0;
    padding: 12px 14px 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(160deg, #f5f6f8 0%, #eceef2 100%);
}
.peek-phone-screen.dark .peek-home-content {
    background: linear-gradient(160deg, #1a1c22 0%, #101217 100%);
}

/* 小组件 */
.peek-widget-row {
    flex-shrink: 0;
}
.peek-home-headline {
    padding: 8px 6px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.peek-widget-greeting {
    font-size: 21px;
    font-weight: 650;
    color: #1c1d22;
    letter-spacing: -0.4px;
}
.peek-phone-screen.dark .peek-widget-greeting {
    color: #f6f7fb;
}
.peek-home-headline .peek-widget-date {
    font-size: 12px;
    font-weight: 500;
    color: rgba(28,29,34,0.58);
    letter-spacing: 0.03em;
}
.peek-phone-screen.dark .peek-home-headline .peek-widget-date {
    color: rgba(246,247,251,0.62);
}
.peek-widget-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(96px, auto);
    gap: 10px;
    flex-shrink: 0;
}
.peek-widget-card {
    border-radius: 16px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #1c1d22;
}
.peek-widget-card-title {
    font-size: 11px;
    color: rgba(28,29,34,0.62);
    margin-bottom: 6px;
}
.peek-widget-weather-value {
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.02em;
}
.peek-widget-weather-value i {
    margin-right: 6px;
}
.peek-widget-card-sub {
    margin-top: 4px;
    font-size: 11px;
    color: rgba(28,29,34,0.58);
}
.peek-widget-weather-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.peek-widget-note {
    cursor: pointer;
}
.peek-widget-photos {
    cursor: pointer;
}
.peek-widget-photo-row {
    display: flex;
    gap: 6px;
}
.peek-widget-photo {
    flex: 1;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
}
.peek-phone-screen.dark .peek-widget-card {
    background: rgba(35,38,46,0.78);
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 10px 24px rgba(0,0,0,0.28);
    color: #f5f6fa;
}
.peek-phone-screen.dark .peek-widget-card-title,
.peek-phone-screen.dark .peek-widget-card-sub {
    color: rgba(245,246,250,0.62);
}
.peek-widget-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.peek-widget-note {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.peek-widget-note-fallback .peek-widget-note-title {
    font-weight: 600;
}
.peek-widget-note-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.peek-widget-note-title {
    font-size: 13px;
    font-weight: 600;
}
.peek-widget-note-preview {
    font-size: 11px;
    color: rgba(28,29,34,0.74);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.peek-phone-screen.dark .peek-widget-note-preview {
    color: rgba(245,246,250,0.72);
}
.peek-app-icon {
    position: relative;
}
.peek-app-badge {
    position: absolute;
    top: -2px;
    right: 50%;
    transform: translate(50%, 0);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #ff3b30;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.peek-generate-tip {
    font-size: 11px;
    color: rgba(28,29,34,0.52);
    padding: 0 4px;
}
.peek-phone-screen.dark .peek-generate-tip {
    color: rgba(245,246,250,0.58);
}
.peek-home-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 8px;
    flex: 1;
    min-height: 0;
    align-content: start;
    padding: 8px 2px 0;
    overflow: hidden;
}
.peek-app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 2px 1px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 10px;
    color: #1c1d22;
}
.peek-phone-screen.dark .peek-app-icon {
    color: #f5f6fa;
}
.peek-app-icon i {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.9);
    color: #fff;
    border: 1px solid rgba(0,0,0,0.9);
    box-shadow: 2px 3px 0 rgba(0,0,0,0.12);
}
.peek-phone-screen.dark .peek-app-icon i {
    background: rgba(255,255,255,0.92);
    color: #111319;
    border-color: rgba(255,255,255,0.92);
    box-shadow: 2px 3px 0 rgba(0,0,0,0.28);
}
.peek-app-label {
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none;
}
.peek-app-icon:active .peek-app-label,
.peek-app-icon:hover .peek-app-label,
.peek-app-icon:focus-visible .peek-app-label {
    opacity: 1;
    transform: translateY(0);
}

/* 底部 Dock */
.peek-dock {
    padding: 8px 12px 18px;
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
    background: rgba(255,255,255,0.74);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    margin: 0 6px 0;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.peek-phone-screen.dark .peek-dock {
    background: rgba(35,38,46,0.82);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.36);
}
.peek-dock-item {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(0,0,0,0.9);
    border: 1px solid rgba(0,0,0,0.9);
    border-radius: 12px;
    cursor: pointer;
    color: #fff;
    box-shadow: 2px 3px 0 rgba(0,0,0,0.14);
    transition: transform .15s ease, filter .15s ease;
}
.peek-phone-screen.dark .peek-dock-item {
    background: rgba(255,255,255,0.92);
    border-color: rgba(255,255,255,0.92);
    color: #111319;
    box-shadow: 2px 3px 0 rgba(0,0,0,0.28);
}
.peek-dock-item i {
    font-size: 18px;
}
.peek-dock-item:hover {
    transform: translateY(-1px);
}
.peek-dock-item:active {
    transform: scale(0.95);
}
.peek-dock-label {
    display: none;
}
.peek-home-indicator {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: rgba(0,0,0,0.3);
    border-radius: 2px;
}
.peek-phone-screen.dark .peek-home-indicator {
    background: rgba(255,255,255,0.35);
}

/* 应用内导航 */
.peek-app-nav {
    height: 44px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: rgba(255,255,255,0.92);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.peek-phone-screen.dark .peek-app-nav {
    background: rgba(50,50,52,0.92);
    border-bottom-color: rgba(255,255,255,0.12);
}
.peek-app-back {
    padding: 8px 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #007aff;
}
.peek-app-title {
    font-size: 17px;
    font-weight: 600;
}
.peek-app-lock {
    color: inherit;
    font-size: 14px;
}
.peek-app-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 12px;
    background: #f2f2f7;
}
.peek-phone-screen.dark .peek-app-body {
    background: #1c1c1e;
}
.peek-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}
.peek-chat-stream {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 100%;
}
.peek-chat-empty {
    margin: auto;
    padding: 10px 12px;
    font-size: 12px;
    color: rgba(60, 60, 67, 0.7);
}
.peek-phone-screen.dark .peek-chat-empty {
    color: rgba(235, 235, 245, 0.62);
}
.peek-chat-msg {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 82%;
}
.peek-chat-msg.user {
    align-self: flex-end;
}
.peek-chat-msg.ai {
    align-self: flex-start;
}
.peek-chat-bubble {
    padding: 8px 10px;
    border-radius: 16px;
    font-size: 12px;
    line-height: 1.45;
    word-break: break-word;
    white-space: pre-wrap;
}
.peek-chat-msg.user .peek-chat-bubble {
    background: #000;
    color: #fff;
    border-bottom-right-radius: 8px;
}
.peek-chat-msg.ai .peek-chat-bubble {
    background: rgba(0, 0, 0, 0.08);
    color: #1c1d22;
    border-bottom-left-radius: 8px;
}
.peek-phone-screen.dark .peek-chat-msg.user .peek-chat-bubble {
    background: #f5f6fa;
    color: #111319;
}
.peek-phone-screen.dark .peek-chat-msg.ai .peek-chat-bubble {
    background: rgba(255, 255, 255, 0.12);
    color: #f5f6fa;
}
.peek-chat-time {
    font-size: 10px;
    opacity: 0.62;
    padding: 0 2px;
}
.peek-chat-msg.user .peek-chat-time {
    align-self: flex-end;
}
.peek-chat-msg.ai .peek-chat-time {
    align-self: flex-start;
}
.peek-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.04);
    font-size: 12px;
}
.peek-app.dark .peek-list-item {
    background: rgba(255, 255, 255, 0.07);
}
.peek-note {
    padding: 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.04);
}
.peek-note h4 {
    margin: 0 0 6px;
    font-size: 13px;
}
.peek-note p {
    margin: 0;
    white-space: pre-wrap;
    font-size: 12px;
    line-height: 1.45;
}
.peek-app.dark .peek-note {
    background: rgba(255, 255, 255, 0.07);
}
.peek-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow-y: auto;
}
.peek-photo-grid img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}
.live-bg-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(ellipse 90% 70% at 50% -10%, rgba(255, 255, 255, 0.92), transparent 55%),
        radial-gradient(circle at 85% 90%, rgba(0, 0, 0, 0.05), transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(248, 248, 250, 0.72) 100%);
}
.live-bg-caption {
    position: absolute;
    left: 24px;
    bottom: 118px;
    z-index: 2;
    color: rgba(60, 60, 67, 0.5);
    letter-spacing: 5px;
    font-size: 11px;
    font-family: system-ui, -apple-system, "PingFang SC", sans-serif;
    font-weight: 500;
}
.live-bgm-audio {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}
.live-header-bar,
.live-dashboard .live-card,
.live-left-social .live-social-btn,
.live-player {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}
.live-header-bar {
    position: absolute;
    top: 16px;
    left: 14px;
    right: 14px;
    z-index: 3;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 11px 14px;
}
.live-brand { display: flex; align-items: center; gap: 10px; }
.live-tag {
    color: #636366;
    letter-spacing: 2px;
    font-size: 11px;
    font-weight: 700;
}
.live-wave { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.live-wave span {
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #aeaeb2, #3a3a3c);
    transition: height 0.35s ease;
}
.live-title {
    margin: 0;
    color: #1c1c1e;
    font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", sans-serif;
    letter-spacing: 4px;
    font-size: 17px;
    font-weight: 600;
}
.live-greet {
    justify-self: end;
    color: rgba(60, 60, 67, 0.55);
    font-size: 11px;
    font-weight: 400;
}

.live-settings-btn {
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
}

.live-disguise-hint-edit {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* LIVE 设置弹层 */
.live-settings-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.live-settings-panel {
    width: 100%;
    max-width: 360px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.live-settings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.live-settings-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #1c1c1e;
}

.live-settings-close {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1c1c1e;
}

.live-settings-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.live-settings-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(60, 60, 67, 0.7);
    margin-bottom: 6px;
}

.live-settings-input {
    width: 100%;
    min-height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    padding: 10px 12px;
    font-size: 12px;
    outline: none;
    box-sizing: border-box;
}

.live-wallpaper-upload-row {
    width: 100%;
    display: flex;
    align-items: center;
}

.live-wallpaper-upload-input {
    width: 100%;
    min-height: 42px;
    border-radius: 14px;
    border: 1px dashed rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.72);
    padding: 8px 10px;
    font-size: 12px;
    box-sizing: border-box;
}

.live-wallpaper-preview {
    margin-top: 8px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.live-wallpaper-preview img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.live-settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.live-settings-cancel {
    height: 40px;
    min-width: 82px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.92);
    color: #1c1c1e;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.live-settings-save {
    height: 40px;
    min-width: 82px;
    border-radius: 14px;
    border: none;
    background: #1c1c1e;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* LIVE BGM picker */
.live-bgm-picker {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.live-bgm-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.live-bgm-mini-play {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: #000000;
    color: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-bgm-current {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 24px;
    border: none;
    background: #000000;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.live-bgm-current-cover {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    border: none;
}

.live-bgm-current-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.live-bgm-current-title {
    font-size: 12px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-bgm-current-artist {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-bgm-search-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.live-bgm-search-input {
    flex: 1;
}

.live-bgm-search-btn {
    height: 42px;
    min-width: 76px;
    border-radius: 999px;
    border: none;
    background: #000000;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.live-bgm-status {
    font-size: 11px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.55);
}

.live-bgm-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 2px;
}

.live-bgm-empty {
    font-size: 11px;
    color: rgba(60, 60, 67, 0.6);
    text-align: center;
    padding: 10px 0;
}

.live-bgm-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.live-bgm-result.active {
    background: rgba(28, 28, 30, 0.06);
    border-color: rgba(0, 0, 0, 0.18);
}

.live-bgm-result-cover {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.live-bgm-result-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.live-bgm-result-title {
    font-size: 12px;
    font-weight: 900;
    color: #1c1c1e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-bgm-result-artist {
    font-size: 11px;
    color: rgba(60, 60, 67, 0.65);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-bgm-result-play {
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(60, 60, 67, 0.75);
    flex-shrink: 0;
}

.live-bgm-result.active .live-bgm-result-play {
    color: #1c1c1e;
}
.live-left-social {
    position: absolute;
    z-index: 3;
    left: 16px;
    top: 130px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.live-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #f9dcb0;
    cursor: pointer;
}
.live-social-btn.active {
    color: #ffbd84;
    border-color: rgba(255, 185, 116, 0.5);
}
.live-left-social,
.live-dashboard {
    display: none !important;
}
.live-room-tabs {
    position: absolute;
    z-index: 3;
    left: 14px;
    right: 14px;
    top: 92px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.live-room-tabs::-webkit-scrollbar { display: none; }
.live-room-tab {
    flex: 0 0 auto;
    min-width: 108px;
    border-radius: 16px;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    color: #3a3a3c;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.live-room-tab .name { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }
.live-room-tab .sub { display: block; font-size: 10px; opacity: 0.55; margin-top: 2px; }
.live-room-tab.active {
    border-color: rgba(0, 0, 0, 0.2);
    background: #1c1c1e;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.live-room-tab.active .sub {
    opacity: 0.65;
    color: rgba(255, 255, 255, 0.85);
}
.live-speaker-stage {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 144px;
    z-index: 3;
    border-radius: 20px;
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}
.live-speaker-stage .stage-title {
    color: #636366;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}
.live-speaker-stage .seats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.live-speaker-stage .seat {
    min-height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    color: #3a3a3c;
    background: rgba(0, 0, 0, 0.03);
}
.live-speaker-stage .seat img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 0, 0, 0.08);
}
.live-speaker-stage .seat.waiting {
    border: 1px dashed rgba(0, 0, 0, 0.12);
    color: rgba(60, 60, 67, 0.45);
}
.live-speaker-stage .seat.active:not(.host) {
    border: 1px solid rgba(28, 28, 30, 0.2);
    background: rgba(28, 28, 30, 0.06);
    color: #1c1c1e;
}
.live-speaker-stage .seat.host {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.04);
}
.live-chat-panel {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 282px;
    /* 手机上避免留言区/输入框被挤出视口：底部预留给语音底部按钮与 BGM 小卡片 */
    bottom: calc(16px + 46px + 10px + 70px + env(safe-area-inset-bottom));
    z-index: 3;
    border-radius: 20px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

@media (max-height: 720px) {
    .live-chat-panel {
        top: 240px;
    }
}
/* 语音厅动态 · 留言区透明，透出全屏背景图 */
.live-feed-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
}
.live-feed-head-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #1c1c1e;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.95), 0 1px 2px rgba(255, 255, 255, 0.9);
}
.live-feed-head-tag {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    padding: 4px 8px;
    border-radius: 8px;
    color: #ffffff;
    background: #1c1c1e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.live-feed-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 0;
    background: transparent;
}
.live-feed-now {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-shrink: 0;
    min-height: 96px;
    padding: 15px 14px;
    margin-bottom: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.live-feed-now-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 68px;
    justify-content: flex-start;
}
.live-feed-now-avatar {
    flex-shrink: 0;
}
.live-feed-now-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 0, 0, 0.08);
}
.live-feed-now-label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #636366;
    margin-bottom: 4px;
}
.live-feed-now-text {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: #1c1c1e;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
    flex: 1;
}
.live-feed-now-text.is-loading {
    opacity: 0.72;
    font-style: italic;
}

.live-bgm-lyrics-hint {
    margin: 6px 0 0 0;
    font-family: "Noto Serif SC", "Times New Roman", serif;
    font-size: 11px;
    line-height: 1.45;
    color: rgba(60, 60, 67, 0.55);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.live-bgm-lyrics-hint.is-loading {
    opacity: 0.65;
    font-style: italic;
}

.live-bgm-lyrics-window {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.live-bgm-lyrics-loading {
    font-family: "Noto Serif SC", "Times New Roman", serif;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(60, 60, 67, 0.55);
    font-style: italic;
}

.live-bgm-lyrics-empty {
    font-family: "Noto Serif SC", "Times New Roman", serif;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(60, 60, 67, 0.45);
}

.live-bgm-lyrics-prev,
.live-bgm-lyrics-next {
    font-family: "Noto Serif SC", "Times New Roman", serif;
    font-size: 11px;
    line-height: 1.35;
    color: rgba(60, 60, 67, 0.45);
}

.live-host-speech-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.live-host-speech-divider {
    height: 1px;
    background: rgba(60, 60, 67, 0.22);
    width: 100%;
}

.live-host-speech-translation {
    color: rgba(60, 60, 67, 0.55) !important;
    font-style: italic;
}

.live-host-speech {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: #1c1c1e;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
}

.live-settings-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 34px;
    cursor: pointer;
}

.live-bgm-lyrics-current {
    font-family: "Noto Serif SC", "Times New Roman", serif;
    font-size: 12px;
    line-height: 1.35;
    color: rgba(60, 60, 67, 0.92);
    font-weight: 900;
    letter-spacing: -0.01em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.65);
}
/* 留言 + 右侧礼物竖带（同高） */
.live-feed-stream {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: stretch;
    gap: 10px;
}
.live-feed-messages {
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 2px;
    background: transparent;
}
.live-feed-rail {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    flex: 0 0 auto;
    width: fit-content;
    min-width: 0;
    min-height: 0;
    align-self: stretch;
}
.live-feed-msg {
    font-size: 11px;
    line-height: 1.4;
    color: #1c1c1e;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.92), 0 1px 1px rgba(255, 255, 255, 0.85);
}
.live-feed-msg-user {
    font-weight: 700;
    margin-right: 6px;
    color: #1c1c1e;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}
.live-feed-msg-user.system {
    color: rgba(60, 60, 67, 0.55);
    font-weight: 500;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
}
.live-feed-msg.is-gift .live-feed-msg-body {
    color: #636366;
}
.live-feed-msg.is-npc .live-feed-msg-user {
    color: #636366;
}
.live-feed-compose-wrap {
    flex-shrink: 0;
    position: relative;
    margin-top: 10px;
    padding-top: 0;
    border-top: none;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
}
.live-feed-compose-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}
.live-disguise-row {
    margin-bottom: 6px;
    font-size: 11px;
    color: rgba(60, 60, 67, 0.65);
}
.live-disguise-hint {
    flex: 1;
}
.live-disguise-swap {
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    color: #5c5c60;
    cursor: pointer;
}
.live-disguise-swap:hover {
    background: rgba(0, 0, 0, 0.05);
}
/* 自主播说下方起与留言同高，下密上淡；无圆底框 */
.live-gift-shower {
    position: relative;
    box-sizing: border-box;
    container-type: size;
    container-name: livegift;
    flex: 1 1 0;
    min-height: 72px;
    width: 100%;
    margin: 0;
    pointer-events: none;
    overflow: hidden;
    background: transparent;
    border: none;
    -webkit-mask-image: linear-gradient(to top, #000 0%, #000 32%, rgba(0, 0, 0, 0.5) 68%, transparent 100%);
    mask-image: linear-gradient(to top, #000 0%, #000 32%, rgba(0, 0, 0, 0.5) 68%, transparent 100%);
}
.live-gf {
    position: absolute;
    left: var(--x, 50%);
    bottom: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: liveGiftFloat 3.1s cubic-bezier(0.28, 0, 0.2, 1) infinite;
    animation-delay: var(--d, 0s);
    will-change: transform, opacity;
}
.live-gf--alt {
    animation-duration: 2.65s;
}
.live-gf i {
    font-size: 15px;
    line-height: 1;
    color: var(--c, #b87a8f);
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.85)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
    opacity: 0.92;
}
@keyframes liveGiftFloat {
    0% {
        transform: translate3d(-50%, 0, 0) scale(0.88);
        opacity: 0;
    }
    4% {
        opacity: 0.95;
    }
    40% {
        opacity: 0.88;
    }
    72% {
        opacity: 0.42;
    }
    100% {
        transform: translate3d(calc(-50% + var(--gx, 0px)), calc(-92cqh + 6px), 0) scale(0.78);
        opacity: 0;
    }
}
.live-quick-btn {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    color: #5c5c60;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease, border-color 0.15s ease;
}
.live-quick-btn:active {
    transform: scale(0.96);
}
.live-feed-compose-row .live-feed-input {
    flex: 1;
    min-width: 0;
    width: auto;
}
.live-feed-input {
    flex: 1;
    min-width: 0;
    min-height: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    color: #1c1c1e;
    padding: 10px 12px;
    font-size: 12px;
    outline: none;
    box-sizing: border-box;
}
.live-feed-input::placeholder {
    color: rgba(60, 60, 67, 0.35);
}
.live-feed-compose-row .live-feed-send {
    flex-shrink: 0;
    box-sizing: border-box;
    min-width: 58px;
    height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    border: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    color: #ffffff;
    background: #1c1c1e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}
.live-feed-compose-row .live-feed-send:active {
    transform: scale(0.97);
}
.live-voice-actions {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 16px;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.live-voice-actions .voice-btn {
    height: 46px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: #3a3a3c;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.live-voice-actions .voice-btn.primary {
    background: #1c1c1e;
    border-color: #1c1c1e;
    color: #ffffff;
    font-weight: 600;
}
.live-voice-actions .voice-btn.primary.active {
    background: #34c759;
    border-color: #34c759;
}
.live-voice-actions .voice-btn.off {
    color: #8e8e93;
    border-color: rgba(0, 0, 0, 0.12);
}
.live-player {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: calc(16px + 46px + 10px);
    z-index: 4;
    border-radius: 18px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.92);
}
.live-player-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px 11px 11px;
}
.live-player-icon-wrap {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f2f4;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    overflow: hidden;
}
.live-player.is-bgm-playing .live-player-icon-wrap {
    animation: none;
    transform: scale(1.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.live-player-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}
@keyframes liveDiscSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.live-player-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.live-player-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #1c1c1e;
}
.live-player-sub {
    font-size: 10px;
    color: rgba(60, 60, 67, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.live-player-play {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1c1c1e;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.live-player-play:active {
    transform: scale(0.94);
}

.live-host-avatar-tap {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.live-speaker-stage .seat.host .live-host-avatar-tap:active {
    transform: scale(0.94);
}
.live-feed-now-avatar.live-host-avatar-tap {
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    outline: none;
}
.live-feed-now-avatar.live-host-avatar-tap:focus-visible {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
}
.live-feed-now-avatar.live-host-avatar-tap:active {
    transform: scale(0.96);
}

.live-host-history-overlay {
    position: fixed;
    inset: 0;
    z-index: 220;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}
.live-host-history-sheet {
    width: 100%;
    max-width: 400px;
    max-height: min(72vh, 520px);
    border-radius: 20px 20px 16px 16px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.live-host-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 8px;
    flex-shrink: 0;
}
.live-host-history-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #1c1c1e;
}
.live-host-history-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 12px;
    background: #f2f2f4;
    color: #3a3a3c;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.live-host-history-close:active {
    transform: scale(0.94);
}
.live-host-history-sub {
    margin: 0 14px 10px;
    font-size: 11px;
    color: rgba(60, 60, 67, 0.5);
    flex-shrink: 0;
}
.live-host-history-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.live-host-history-item {
    padding: 10px 12px;
    border-radius: 14px;
    background: #f9f9fa;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.live-host-history-time {
    display: block;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    color: rgba(60, 60, 67, 0.45);
    margin-bottom: 6px;
}
.live-host-history-text {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #1c1c1e;
}
.live-host-history-empty {
    text-align: center;
    padding: 28px 16px;
    font-size: 12px;
    line-height: 1.55;
    color: rgba(60, 60, 67, 0.45);
}

/* 旧版 dashboard 区块（无 DOM 时无害，保留以防复用） */
.live-dashboard {
    position: absolute;
    right: 16px;
    top: 94px;
    width: 290px;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.live-card {
    border-radius: 16px;
    padding: 12px;
    color: #f2dfc9;
    font-family: 'Inter', sans-serif;
}
.live-card h3 {
    margin: 0 0 8px;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
    font-size: 14px;
    font-weight: 600;
}
.live-singer-item { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.live-singer-item img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.live-singer-item .name { font-size: 12px; margin-bottom: 2px; }
.live-singer-item .follow {
    border: 0.5px solid rgba(255, 188, 120, 0.8);
    background: rgba(255, 160, 79, 0.16);
    color: #ffd7a9;
    border-radius: 999px;
    font-size: 11px;
    padding: 2px 9px;
}
.live-calendar .week {
    font-size: 10px;
    color: rgba(255, 230, 198, 0.72);
    letter-spacing: 0.3px;
}
.live-calendar .days {
    margin-top: 6px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    font-size: 11px;
}
.live-calendar .days span {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.live-calendar .days .active { background: #ff9d4a; color: #1e140d; font-weight: 600; }
.live-stats .big {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #ffdfb8;
}
.live-stats .progress {
    margin-top: 8px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 190, 122, 0.2);
    overflow: hidden;
}
.live-stats .progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffb866, #ff8f42);
}
.live-stats .percent {
    margin-top: 5px;
    font-size: 11px;
    color: #ffd6a3;
}
.live-bookings .booking-item {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    padding: 6px 0;
    border-bottom: 0.5px solid rgba(255,255,255,0.09);
}
.live-bookings .booking-item:last-child { border-bottom: none; }

/* MATE V2: single-scene immersive layout */
.mate-v2 {
    position: relative;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.9) 0%, rgba(243, 243, 243, 0.92) 38%, rgba(228, 228, 228, 0.96) 100%);
    overflow: hidden;
}
.mate-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(0, 0, 0, 0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.018) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.35;
}
.mate-v2::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.35) 0%, transparent 36%),
        radial-gradient(circle at 76% 76%, rgba(0, 0, 0, 0.05) 0%, transparent 34%);
    mix-blend-mode: multiply;
}
.mate-v2-topbar {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 4;
}
.mate-v2-icon-btn {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.mate-v2-title-wrap { text-align: center; }
.mate-v2-title {
    margin: 0;
    font-size: 16px;
    letter-spacing: 4px;
    font-weight: 700;
    color: #141414;
}
.mate-v2-sub {
    margin: 2px 0 0;
    font-size: 10px;
    letter-spacing: 2px;
    color: #6a6a6a;
    text-transform: uppercase;
}
.mate-v2-stage {
    position: absolute;
    inset: 70px 12px 90px;
}
.mate-v2-scene {
    height: 100%;
    border-radius: 0;
    padding: 18px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}
.mate-v2-scene::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.018) 0px,
        rgba(0, 0, 0, 0.018) 1px,
        transparent 1px,
        transparent 4px
    );
    opacity: 0.25;
}
.mate-v2-scene::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 110px;
    height: 110px;
    border-left: 1px solid rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    opacity: 0.7;
}
.mate-v2-scene.focus,
.mate-v2-scene.exercise,
.mate-v2-scene.life {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.86), rgba(236, 236, 236, 0.86));
}
.mate-v2-scene.sleep {
    background: linear-gradient(165deg, rgba(34, 34, 34, 0.92), rgba(76, 76, 76, 0.88));
    color: #f3f3f3;
    border-color: rgba(255, 255, 255, 0.28);
}
.scene-badge {
    font-size: 11px;
    letter-spacing: 2.2px;
    opacity: 0.84;
    text-transform: uppercase;
}
.scene-watermark {
    position: absolute;
    right: 12px;
    top: 26px;
    font-size: 56px;
    font-weight: 800;
    letter-spacing: 4px;
    color: rgba(0, 0, 0, 0.06);
    z-index: 0;
    user-select: none;
}
.mate-v2-scene.sleep .scene-watermark {
    color: rgba(255, 255, 255, 0.08);
}
.scene-editorial-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(24, 24, 24, 0.6);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    padding-bottom: 6px;
    margin-bottom: 2px;
    z-index: 1;
}
.mate-v2-scene.sleep .scene-editorial-top {
    color: rgba(245, 245, 245, 0.7);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}
.scene-badge,
.scene-ring,
.scene-chip-row,
.scene-inline-stats,
.scene-action-row,
.scene-metrics,
.scene-progress,
.scene-sleep-core,
.life-finance-mini,
.life-todo-list,
.life-events-mini {
    position: relative;
    z-index: 1;
}
.scene-ring {
    margin: 8px auto 0;
    width: 168px;
    height: 168px;
    border-radius: 50%;
    border: 8px solid rgba(23, 23, 23, 0.18);
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08), inset 0 0 36px rgba(255, 255, 255, 0.6);
    animation: editorialPulse 6s ease-in-out infinite;
}
.scene-ring-time { font-size: 28px; font-weight: 700; letter-spacing: 1px; }
.scene-ring-sub { font-size: 10px; letter-spacing: 1.4px; opacity: 0.62; margin-top: 4px; text-transform: uppercase; }
.scene-chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.scene-chip-row.scrollable { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
.scene-chip {
    border: 0;
    border-radius: 0;
    padding: 7px 12px;
    font-size: 12px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(0, 0, 0, 0.18);
    white-space: nowrap;
}
.scene-chip.active { background: #111111; color: #fff; border-color: #111111; }
.scene-inline-stats {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    opacity: 0.75;
}
.scene-action-row { margin-top: auto; display: flex; gap: 8px; }
.scene-btn {
    flex: 1;
    border: 0;
    border-radius: 0;
    height: 40px;
    font-size: 13px;
    font-weight: 600;
}
.scene-btn.primary { background: #111111; color: #fff; border: 1px solid #111111; }
.scene-btn.ghost { background: rgba(255,255,255,0.76); border: 1px solid rgba(0, 0, 0, 0.2); }
.scene-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.metric { background: rgba(255,255,255,0.76); border-radius: 0; padding: 10px; border: 1px solid rgba(0,0,0,0.14); }
.metric span { display: block; font-size: 11px; opacity: 0.6; }
.metric strong { font-size: 16px; }
.scene-progress { height: 8px; border-radius: 0; background: rgba(0,0,0,0.12); overflow: hidden; }
.scene-progress span { display: block; height: 100%; background: linear-gradient(90deg, #111, #5b5b5b); }
.mate-v2-scene.exercise .scene-progress span {
    animation: shimmerBar 2.4s linear infinite;
    background-size: 140% 100%;
    background-image: linear-gradient(90deg, #111 0%, #6e6e6e 48%, #111 100%);
}
.scene-sleep-core { display: flex; align-items: center; justify-content: center; flex: 1; }
.scene-sleep-btn {
    min-width: 220px;
    height: 58px;
    border: 0;
    border-radius: 0;
    background: rgba(255,255,255,0.9);
    font-size: 16px;
    font-weight: 700;
}
.scene-sleep-btn.active { background: rgba(255,255,255,0.16); color: #fff; border: 1px solid rgba(255,255,255,0.52); }
.mate-v2-scene.sleep .scene-sleep-btn.active {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 0 18px rgba(255,255,255,0.12);
    animation: dreamBreath 3.2s ease-in-out infinite;
}
.life-finance-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.life-finance-mini > div { background: rgba(255,255,255,0.78); border-radius: 0; padding: 10px; border: 1px solid rgba(0,0,0,0.14); }
.life-finance-mini span { display: block; font-size: 11px; opacity: 0.62; }
.life-finance-mini strong { font-size: 16px; }
.life-todo-list, .life-events-mini { background: rgba(255,255,255,0.72); border-radius: 0; padding: 10px; border: 1px solid rgba(0,0,0,0.14); }
.life-section-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-bottom: 8px; }
.life-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; font-size: 12px; border-bottom: 1px dashed rgba(0,0,0,0.08); }
.life-item:last-child { border-bottom: 0; }
.life-item button { border: 0; background: transparent; }
.life-item small { opacity: 0.62; }
.life-empty { font-size: 12px; opacity: 0.56; padding: 8px 0; }
.scene-float-action {
    position: absolute; right: 14px; bottom: 14px; border-radius: 0;
    border: 1px solid #111; padding: 8px 14px; background: #111; color: #fff; font-size: 12px;
}
.scene-moon-action {
    position: absolute; left: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.2); background: rgba(255,255,255,0.94);
}
.scene-mini-btn { border: 1px solid #111; width: 20px; height: 20px; border-radius: 0; background: #111; color: #fff; }
.mate-v2-dots {
    position: absolute; left: 50%; transform: translateX(-50%); bottom: 56px; z-index: 4;
    display: flex; gap: 8px;
}
.mate-dot { width: 8px; height: 8px; border: 1px solid rgba(0,0,0,0.4); border-radius: 0; background: rgba(255,255,255,0.6); }
.mate-dot.active { width: 20px; border-radius: 0; background: rgba(17,17,17,0.85); border-color: rgba(17,17,17,0.85); }
.mate-floating-companion {
    position: absolute; right: 14px; bottom: 14px; width: 52px; height: 52px; border-radius: 0;
    border: 1px solid rgba(0,0,0,0.25);
    background: #fff; box-shadow: 0 10px 28px rgba(0,0,0,0.18); z-index: 5; overflow: visible;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    animation: companionFloat 4.2s ease-in-out infinite;
}
.mate-floating-companion img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; filter: grayscale(100%); }
.mate-floating-bubble {
    position: absolute; right: 58px; bottom: 8px; max-width: 210px; padding: 8px 10px;
    border-radius: 0;
    border: 1px solid rgba(0,0,0,0.16);
    background: rgba(255,255,255,0.96); font-size: 12px; line-height: 1.4;
}
.mate-quick-scene-menu {
    position: absolute; right: 14px; bottom: 72px; z-index: 6;
    background: rgba(255,255,255,0.97); border-radius: 0; padding: 8px; box-shadow: 0 8px 26px rgba(0,0,0,0.14);
    border: 1px solid rgba(0,0,0,0.18);
    display: grid; gap: 6px;
}
.mate-quick-scene-menu button { border: 1px solid rgba(0,0,0,0.14); border-radius: 0; padding: 8px 12px; background: #f7f7f7; text-align: left; }
.mate-chat-pop {
    position: absolute; right: 14px; bottom: 132px; z-index: 6; width: 220px;
    background: rgba(255,255,255,0.97); border-radius: 0; box-shadow: 0 12px 30px rgba(0,0,0,0.14); overflow: hidden;
    border: 1px solid rgba(0,0,0,0.2);
}
.mate-chat-pop-head { display: flex; justify-content: space-between; align-items: center; padding: 10px; font-size: 12px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.mate-chat-pop-head button { border: 0; background: transparent; }
.mate-chat-pop-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
.mate-chat-pop-actions button { border: 1px solid rgba(0,0,0,0.18); border-radius: 0; background: #f2f2f2; padding: 8px; font-size: 12px; }

@keyframes editorialPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.015); }
}
@keyframes shimmerBar {
    0% { background-position: 120% 0; }
    100% { background-position: -20% 0; }
}
@keyframes dreamBreath {
    0%, 100% { transform: scale(1); opacity: 0.95; }
    50% { transform: scale(1.03); opacity: 1; }
}
@keyframes companionFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

/* Feed moments UI override */
.feed-app {
    background-color: #f2f3f5;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.feed-moments-bg-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.18), rgba(0,0,0,0.06) 30%, rgba(242,243,245,0.92) 70%, rgba(242,243,245,1));
    pointer-events: none;
    z-index: 0;
}

.feed-app::before {
    display: none;
}

.feed-app .journal-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 14px 16px;
    background: rgba(237, 237, 237, 0.52);
    border-bottom: 1px solid rgba(215, 215, 215, 0.55);
    box-shadow: none;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 2;
}

.feed-app .journal-header::before,
.feed-app .journal-line,
.feed-app .entry-date,
.feed-app .entry-date-empty,
.feed-app .entry-separator,
.feed-app .tape {
    display: none;
}

.feed-app .journal-title {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: #222;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.feed-app .journal-title::after {
    display: none;
}

.feed-app .journal-back,
.feed-app .journal-profile-btn {
    top: 10px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
    background: rgba(246, 246, 246, 0.58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #4f4f4f;
}

.feed-app .journal-back {
    left: 12px;
}

.feed-app .journal-profile-btn {
    right: 12px;
}

.feed-app .journal-content {
    padding: 10px 0 96px;
    position: relative;
    z-index: 1;
}

.feed-app .journal-posts {
    gap: 8px;
    max-width: 100%;
    padding-bottom: 0;
}

.feed-app .journal-entry {
    display: block;
}

.feed-app .entry-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 12px 12px 10px;
}

/* Keep readability on photo background */
.feed-app .entry-card {
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.feed-app .author-name,
.feed-app .entry-text,
.feed-app .entry-time {
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.feed-app .entry-card::before {
    display: none;
}

.feed-app .entry-card:hover {
    transform: none;
    box-shadow: none;
}

.feed-app .entry-author {
    margin-bottom: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    gap: 10px;
}

.feed-app .entry-author:hover {
    transform: none;
    background: transparent;
}

.feed-app .author-avatar {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
}

.feed-app .author-name {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #2f2f2f;
}

.feed-app .entry-content {
    margin-bottom: 6px;
    margin-left: 52px;
    padding: 0;
}

.feed-app .entry-text,
.feed-app .entry-text.entry-quote {
    margin-bottom: 10px;
    padding: 6px 8px 8px;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: #171717;
    text-align: left;
}

.feed-app .entry-text.entry-quote::before {
    display: none;
}

.feed-app .entry-images {
    gap: 4px;
    margin-bottom: 0;
}

.feed-app .entry-images.single {
    max-width: 220px;
}

.feed-app .entry-images.stacked {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 236px;
}

.feed-app .entry-image-wrap {
    border: 0;
    border-radius: 4px;
    box-shadow: none;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.feed-app .entry-image-wrap:hover {
    transform: none;
    box-shadow: none;
}

.feed-app .entry-image {
    width: 100%;
    min-height: 72px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.feed-app .entry-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 52px;
    margin-top: 2px;
}

.feed-app .entry-time {
    font-size: 12px;
    color: #8f8f8f;
    line-height: 1;
}

.feed-app .delete-post-text {
    margin-left: 4px;
    border: 0;
    background: transparent;
    color: #8f8f8f;
    font-size: 12px;
    padding: 0;
    cursor: pointer;
}

.feed-app .entry-actions {
    margin-left: auto;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.feed-app .entry-action-trigger {
    width: 30px;
    height: 24px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 3px;
    background: transparent;
    color: #6a6a6a;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.feed-app .entry-action-pop {
    position: absolute;
    right: 34px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    background: #3a3a3a;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #2f2f2f;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.feed-app .action-icon {
    width: auto;
    min-width: 52px;
    height: 28px;
    border: 0;
    border-right: 1px solid #5a5a5a;
    border-radius: 0;
    color: #f3f3f3;
    background: transparent;
    font-size: 12px;
    padding: 0 10px;
}

.feed-app .action-icon.active {
    color: #ffffff;
    background: #4a4a4a;
}

.feed-app .action-icon:last-child {
    border-right: 0;
}

.feed-app .action-icon:hover {
    transform: none;
    background: #4a4a4a;
    color: #fff;
}

.feed-app .entry-comments {
    margin-top: 6px;
    padding-top: 0;
    padding-left: 52px;
    border-top: 0;
}

.feed-app .entry-stats {
    margin-top: 6px;
    margin-left: 52px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 4px 4px 0 0;
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #e7e7e7;
}

.feed-app .entry-comments:empty {
    display: none;
}

.feed-app .comment-item {
    margin-bottom: 0;
    padding: 6px 8px;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.55);
}

.feed-app .comment-item + .comment-item {
    border-top: 1px solid #e6e6e6;
}

.feed-app .comment-item:hover {
    transform: none;
    border: 0;
}

.feed-app .comment-author,
.feed-app .reply-author {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #3a3a3a;
    font-size: 13px;
    font-weight: 600;
}

.feed-app .comment-text,
.feed-app .reply-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    color: #1f1f1f;
}

.feed-app .comment-line {
    gap: 6px;
    align-items: baseline;
}

.feed-app .more-comments {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
    color: #8d8d8d;
    padding: 4px 0;
    font-size: 13px;
}

.feed-app .more-comments:hover {
    transform: none;
    background: transparent;
    color: #2d2d2d;
    box-shadow: none;
}

.feed-app .reply-input,
.feed-app .entry-comment-input {
    padding-left: 52px;
}

.feed-app .reply-input input,
.feed-app .entry-comment-input input {
    height: 36px;
    border: 1px solid #d8d8d8;
    border-radius: 18px;
    box-shadow: none;
    background: #fff;
    font-size: 13px;
    padding: 0 12px;
}

.feed-app .reply-input button,
.feed-app .entry-comment-input button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: none;
    background: #2f2f2f;
    font-size: 14px;
}

.feed-app .reply-input button:hover,
.feed-app .entry-comment-input button:hover {
    transform: none;
    box-shadow: none;
}

.feed-app .journal-empty {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    color: #888;
}

.feed-app .feed-fab {
    bottom: 82px;
    right: 16px;
    width: 52px;
    height: 52px;
    font-size: 20px;
    border: 0;
    background: #1f1f1f;
    color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
}

.feed-app .feed-fab::before {
    display: none;
}

.feed-app .feed-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.32);
}

.feed-app .fab-menu {
    right: 16px;
    bottom: 146px;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.feed-app .fab-menu-item {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    border-bottom: 1px solid #ededed;
}

.feed-app .fab-menu-item:hover {
    transform: none;
    background: #f2f2f2;
    color: #222;
}

@media (max-width: 480px) {
    .feed-app .entry-card {
        padding: 12px 10px 10px;
    }

    .feed-app .entry-content,
    .feed-app .entry-comments,
    .feed-app .reply-input,
    .feed-app .entry-comment-input {
        padding-left: 0;
    }

    .feed-app .entry-meta-row {
        padding-left: 0;
    }

    .feed-app .entry-actions {
        margin-left: 0;
    }

    .feed-app .action-icon {
        min-width: 50px;
        padding: 0 10px;
    }

    .feed-app .entry-stats {
        margin-left: 0;
    }
}

/* Feed secondary pages - closer to WeChat moments */
.feed-app .create-post-overlay,
.feed-app .profile-overlay,
.feed-app .edit-profile-overlay,
.feed-app .role-comment-overlay {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: none;
    padding: 0;
}

.feed-app .create-post-panel,
.feed-app .profile-panel,
.feed-app .edit-profile-panel,
.feed-app .role-comment-panel {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    background: #f5f5f5;
}

.feed-app .create-post-panel {
    background: #ffffff;
}

.feed-app .create-post-panel::before {
    display: none;
}

.feed-app .create-post-header,
.feed-app .profile-header,
.feed-app .edit-profile-header,
.feed-app .role-comment-header {
    height: 52px;
    margin: 0;
    padding: 0 10px;
    border-bottom: 1px solid #e4e4e4;
    background: #ededed;
}

.feed-app .create-post-header {
    background: #f7f7f7;
}

.feed-app .create-post-header span,
.feed-app .profile-header span,
.feed-app .edit-profile-header span,
.feed-app .role-comment-header span {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.feed-app .create-post-cancel {
    border: 0;
    background: transparent;
    color: #4b4b4b;
    font-size: 14px;
    padding: 0 6px;
}

.feed-app .back-btn-small {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    background: #f8f8f8;
    color: #444;
}

.feed-app .back-btn-small:hover {
    transform: none;
    box-shadow: none;
    background: #eaeaea;
    color: #222;
}

.feed-app .publish-btn,
.feed-app .save-btn,
.feed-app .generate-btn {
    border-radius: 8px;
    box-shadow: none;
    font-size: 13px;
    padding: 8px 14px;
}

.feed-app .publish-btn.wechat {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
    background: #2e2e2e;
}

.feed-app .create-post-content,
.feed-app .role-comment-content,
.feed-app .edit-profile-content,
.feed-app .profile-content {
    padding: 12px;
}

.feed-app .create-post-content {
    min-height: calc(100% - 120px);
    background: #fff;
}

.feed-app .create-post-input-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.feed-app .create-post-avatar {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.feed-app .create-post-content textarea,
.feed-app .edit-input-group input,
.feed-app .edit-input-group textarea {
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    box-shadow: none;
    background: #fff;
}

.feed-app .create-post-content textarea {
    border: 0;
    padding: 4px 0;
    min-height: 210px;
    font-size: 16px;
}

.feed-app .create-post-content textarea:focus,
.feed-app .edit-input-group input:focus,
.feed-app .edit-input-group textarea:focus {
    box-shadow: none;
    border-color: #bdbdbd;
}

.feed-app .create-post-content textarea:focus {
    border-color: transparent;
}

.feed-app .create-post-light-options {
    margin: 2px 0 10px 48px;
    border-top: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
    background: #fff;
}

.feed-app .create-post-media-row {
    margin-left: 48px;
    padding: 10px 2px 6px;
    display: flex;
    gap: 14px;
    border-bottom: 1px solid #f1f1f1;
}

.feed-app .media-entry {
    border: 0;
    background: transparent;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #2f2f2f;
    width: 54px;
    padding: 6px 0;
}

.feed-app .media-entry .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f3f3f3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3a3a3a;
    font-size: 16px;
    border: 1px solid #ececec;
}

.feed-app .media-entry .label {
    font-size: 12px;
    color: #5a5a5a;
}

.feed-app .light-option-item {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 10px 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #2f2f2f;
    font-size: 13px;
    border-bottom: 1px solid #f1f1f1;
}

.feed-app .light-option-item:last-child {
    border-bottom: 0;
}

.feed-app .light-option-item .left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.feed-app .light-option-item .right {
    color: #8f8f8f;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.feed-app .create-post-images {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.feed-app .create-post-add-tile {
    aspect-ratio: 1;
    width: 100%;
    border: 1px dashed #d6d6d6;
    border-radius: 6px;
    background: #fafafa;
    color: #9a9a9a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.feed-app .create-post-add-tile:disabled {
    opacity: 0.5;
}

.feed-app .create-post-image-wrapper {
    border: 0;
    border-radius: 6px;
}

.feed-app .remove-image-btn {
    width: 22px;
    height: 22px;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
}

.feed-app .create-post-actions {
    padding: 0 12px 12px;
    border-top: 1px solid #efefef;
    margin-top: 6px;
}

.feed-app .action-btn,
.feed-app .change-avatar-btn,
.feed-app .change-bg-btn {
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    background: #fff;
    color: #333;
    box-shadow: none;
}

.feed-app .action-btn:hover,
.feed-app .change-avatar-btn:hover,
.feed-app .change-bg-btn:hover {
    background: #f2f2f2;
    color: #222;
}

.feed-app .action-btn.wechat-line {
    justify-content: flex-start;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid #efefef;
    padding: 12px 2px;
    background: transparent;
}

.feed-app .action-btn.wechat-line:last-child {
    border-bottom: 0;
}

@media (max-width: 480px) {
    .feed-app .create-post-light-options {
        margin-left: 0;
    }

    .feed-app .create-post-media-row {
        margin-left: 0;
    }
}

/* Text image creator -> full screen subpage inside create-post */
.feed-app .text-image-creator {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
    background: #ffffff;
    border: 0;
    border-radius: 0;
    z-index: 10;
}

.feed-app .text-image-creator-header {
    height: 52px;
    padding: 0 10px;
    margin: 0;
    border-bottom: 1px solid #e6e6e6;
    background: #f7f7f7;
    display: grid;
    grid-template-columns: 80px 1fr 80px;
    align-items: center;
}

.feed-app .text-image-creator-header h4 {
    margin: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #222;
}

.feed-app .text-image-nav-btn {
    border: 0;
    background: transparent;
    font-size: 14px;
    padding: 8px 6px;
    color: #4b4b4b;
}

.feed-app .text-image-nav-btn.primary {
    justify-self: end;
    font-weight: 600;
    color: #222;
}

.feed-app .text-image-creator-content {
    padding: 12px;
}

.feed-app .text-image-preview {
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    margin-bottom: 12px;
}

.feed-app .text-image-input {
    border: 1px solid #dedede;
    border-radius: 10px;
    box-shadow: none;
    background: #fff;
}

/* WeChat bottom sheets for create-post options */
.feed-app .wechat-sheet-overlay {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 3000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.feed-app .wechat-sheet {
    width: 100%;
    background: #f6f6f6;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    max-height: 86vh;
    box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.18);
}

.feed-app .wechat-sheet-head {
    height: 52px;
    background: #f7f7f7;
    border-bottom: 1px solid #e6e6e6;
    display: grid;
    grid-template-columns: 80px 1fr 80px;
    align-items: center;
    padding: 0 10px;
}

.feed-app .wechat-sheet-title {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.feed-app .wechat-sheet-cancel,
.feed-app .wechat-sheet-ok {
    border: 0;
    background: transparent;
    font-size: 14px;
    padding: 8px 6px;
    color: #4b4b4b;
}

.feed-app .wechat-sheet-ok {
    justify-self: end;
    color: #222;
    font-weight: 600;
}

.feed-app .wechat-sheet-body {
    padding: 10px 12px 16px;
    overflow-y: auto;
}

.feed-app .wechat-field input {
    width: 100%;
    height: 42px;
    border: 1px solid #dedede;
    border-radius: 10px;
    padding: 0 12px;
    outline: none;
    background: #fff;
    font-size: 14px;
}

.feed-app .wechat-row {
    width: 100%;
    border: 0;
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #222;
    border: 1px solid #ededed;
}

.feed-app .wechat-row span i {
    width: 18px;
    display: inline-flex;
    justify-content: center;
    margin-right: 8px;
    opacity: 0.9;
}

.feed-app .wechat-row .muted {
    font-size: 12px;
    color: #8a8a8a;
}

.feed-app .wechat-row.danger {
    color: #222;
    background: #fff;
    border-color: #e9e9e9;
}

.feed-app .wechat-sub {
    margin-top: 12px;
}

.feed-app .wechat-subtitle {
    font-size: 12px;
    color: #6f6f6f;
    margin: 10px 2px 8px;
    font-weight: 600;
}

.feed-app .wechat-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feed-app .wechat-chip {
    border: 1px solid #dedede;
    background: #fff;
    color: #222;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.feed-app .wechat-chip.active {
    border-color: #2f2f2f;
    background: #2f2f2f;
    color: #fff;
}

.feed-app .profile-bg {
    border: 0;
    border-radius: 10px;
    height: 170px;
    position: relative;
    overflow: hidden;
}

.feed-app .profile-bg-mask {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.28));
}

.feed-app .profile-avatar-large {
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.feed-app .profile-info h3 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
}

.feed-app .profile-info {
    margin-top: 52px;
    text-align: left;
    padding: 0 2px;
}

.feed-app .profile-bio {
    margin-bottom: 8px;
}

.feed-app .profile-mini-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.feed-app .profile-mini-meta span {
    font-size: 12px;
    color: #8a8a8a;
    background: #f4f4f4;
    padding: 4px 8px;
    border-radius: 999px;
}

.feed-app .profile-stats {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: #5a5a5a;
    margin-bottom: 10px;
}

.feed-app .profile-stats b {
    color: #222;
    margin-right: 2px;
}

.feed-app .profile-posts {
    margin-top: 8px;
    padding: 12px;
    border-top: 0;
    background: #f6f6f6;
    border-radius: 10px;
}

.feed-app .profile-posts h4 {
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    margin-bottom: 10px;
}

.feed-app .profile-post {
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fff;
    padding: 12px;
}

.feed-app .profile-post-text {
    font-size: 14px;
    line-height: 1.55;
    color: #232323;
}

.feed-app .profile-post:hover {
    transform: none;
    box-shadow: none;
}

.feed-app .profile-post-image-wrap {
    border: 0;
    border-radius: 6px;
}

.feed-app .profile-post-meta {
    margin-top: 8px;
    padding-top: 8px;
}

.feed-app .profile-post-time {
    color: #9a9a9a;
}

.feed-app .profile-post-action {
    color: #7f7f7f;
}

.feed-app .edit-avatar-preview {
    width: 76px;
    height: 76px;
    border: 1px solid #d8d8d8;
}

.feed-app .edit-bg-preview {
    border: 1px solid #d8d8d8;
    border-radius: 10px;
}

.feed-app .role-item {
    border: 1px solid #dfdfdf;
    border-radius: 10px;
    background: #fff;
}

.feed-app .role-item.selected {
    background: #2d2d2d;
    border-color: #2d2d2d;
}

.feed-app .role-avatar {
    border: 0;
    border-radius: 8px;
}

.feed-app .image-viewer-overlay {
    background: rgba(0, 0, 0, 0.78);
}

.feed-app .viewer-image {
    max-width: min(92vw, 560px);
    max-height: 72vh;
    border-radius: 10px;
}

.feed-app .viewer-desc {
    font-size: 14px;
    color: #f1f1f1;
    max-width: min(92vw, 560px);
}

.feed-app .close-viewer-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: none;
    font-size: 16px;
}

.feed-app .close-viewer-btn:hover {
    background: #fff;
    color: #000;
}

.feed-app .viewer-ai-image {
    width: min(92vw, 560px) !important;
    height: min(72vh, 520px) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    padding: 20px !important;
}

/* SoulPocket Discord 登录（白底 + 灰卡片 · 高光与网格保留） */
.login-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 5vw, 40px);
    overflow: hidden;
    background: #fafafa;
    color: #111111;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.login-screen-aurora {
    position: absolute;
    inset: -25%;
    pointer-events: none;
    background:
        radial-gradient(ellipse 58% 48% at 50% 12%, rgba(255, 255, 255, 0.95), transparent 58%),
        radial-gradient(ellipse 42% 36% at 12% 88%, rgba(255, 255, 255, 0.45), transparent 52%),
        radial-gradient(ellipse 48% 40% at 92% 78%, rgba(255, 255, 255, 0.35), transparent 55%),
        radial-gradient(ellipse 50% 45% at 50% 110%, rgba(0, 0, 0, 0.04), transparent 45%),
        linear-gradient(168deg, #ffffff 0%, #f3f3f5 38%, #ebecef 100%);
}

.login-screen-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.72;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.055) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 78% 68% at 50% 46%, #000 22%, transparent 74%);
    -webkit-mask-image: radial-gradient(ellipse 78% 68% at 50% 46%, #000 22%, transparent 74%);
}

.login-container.login-card {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 340px;
    width: 100%;
    padding: clamp(28px, 6vw, 40px) clamp(24px, 5vw, 36px) clamp(32px, 6vw, 44px);
    border-radius: 22px;
    /* 顶部高光直接画在底色上，避免伪元素形成「嵌套白块」 */
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 32%),
        linear-gradient(168deg, #e6e6ea 0%, #d9d9df 45%, #cacad2 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.55) inset,
        0 18px 36px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.login-container.login-card > * {
    position: relative;
    z-index: 1;
}

.login-brand-wrap {
    margin-bottom: 0.6rem;
}

.login-screen h1.login-brand {
    margin: 0;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(2rem, 7vw, 2.65rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #0d0d0d;
    line-height: 1.15;
}

.login-brand-line {
    display: block;
    width: 40px;
    height: 1px;
    margin: 12px auto 0;
    border-radius: 1px;
    background: rgba(0, 0, 0, 0.12);
    opacity: 1;
}

.login-welcome {
    margin: 0 0 0.65em;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #1a1a1a;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.login-hint {
    margin: 0 0 1.85rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(0, 0, 0, 0.48);
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.login-hint-accent {
    display: block;
    margin-top: 0.35em;
    color: rgba(0, 0, 0, 0.62);
    font-size: 0.88em;
    letter-spacing: 0.02em;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 280px;
    padding: 14px 24px;
    margin: 0 auto;
    border: 1px solid #0d0d0d;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(180deg, #1f1f1f 0%, #0d0d0d 100%);
    cursor: pointer;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 6px 20px rgba(0, 0, 0, 0.12);
    transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.discord-btn .fab.fa-discord {
    font-size: 1.35rem;
    color: #f0f0f0;
}

.discord-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, #2a2a2a 0%, #141414 100%);
    border-color: #000000;
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.14) inset,
        0 10px 26px rgba(0, 0, 0, 0.16);
}

.discord-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.guest-btn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 14px auto 0;
    padding: 13px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333333;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.guest-btn:hover {
    background: rgba(0, 0, 0, 0.055);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

/* 游客不可用：桌面图标置灰（点击仍由 openApp 拦截并提示） */
.homescreen .app-icon--guest-off {
    opacity: 0.38;
    filter: grayscale(0.85);
}

.guest-peek-placeholder-wrap {
    min-height: 100%;
}

.guest-peek-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 16px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 12px;
}

.guest-peek-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.guest-peek-hint {
    margin: 12px 0 0;
    font-size: 0.82rem;
    opacity: 0.85;
}