/* ========== 渐暗模式遮罩 ========== */
.dim-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    z-index: 9998;
    transition: background 1s ease;
}

.dim-overlay.active {
    background: rgba(0, 0, 0, 0.5);
}

/* ========== iOS Liquid Glass 液态玻璃主题 ========== */
:root {
    /* 背景图配置 */
    --bg-home: url('./qinche4.0/images/home-bg.jpg');
    --bg-emotion: url('./qinche4.0/images/emotions-bg.jpg');
    --bg-night: url('./qinche4.0/images/night-bg.jpg');
    --bg-efficiency: url('./qinche4.0/images/night-bg.jpg');
    --bg-settings: url('./qinche4.0/images/settings-bg.jpg');
    
    /* 基础色 */
    --bg-dark: #0a0c12;
    
    /* ========== Liquid Glass 核心变量 ========== */
    /* 玻璃透明度 - 高透明 */
    --glass-opacity: 0.1;
    --glass-opacity-hover: 0.14;
    /* 玻璃模糊 - 性能优化：大幅降低模糊值 */
    --glass-blur: 8px;
    --glass-saturate: 120%;
    --glass-brightness: 108%;
    --glass-contrast: 102%;
    /* 高光强度 */
    --glass-highlight: 0.35;
    --glass-highlight-soft: 0.15;
    /* 边缘高光 (rim light) */
    --glass-rim: rgba(255, 255, 255, 0.22);
    --glass-rim-strong: rgba(255, 255, 255, 0.35);
    /* 内阴影深度 */
    --glass-inner-shadow: rgba(0, 0, 0, 0.25);
    --glass-outer-shadow: rgba(0, 0, 0, 0.35);
    /* 圆角 - 胶囊感 */
    --glass-radius: 26px;
    --glass-radius-pill: 50px;
    
    /* 红色点缀（不是主边框） */
    --red-primary: #ff1a4d;
    --red-light: #ff6b8a;
    --red-dark: #cc1540;
    --red-glow: rgba(255, 26, 77, 0.4);
    --red-soft: rgba(255, 26, 77, 0.15);
    
    /* 文字 */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    
    /* 圆角 */
    --radius-sm: 16px;
    --radius-md: 22px;
    --radius-lg: 28px;
    
    /* 布局 */
    --header-height: 56px;
    --tabbar-height: 70px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    
    /* 动效 - 性能优化：缩短过渡时间 */
    --transition-fast: 100ms ease;
    --transition-base: 180ms ease-out;
    --transition-slow: 300ms ease-out;
    --spring: cubic-bezier(0.25, 1.5, 0.5, 1);
    --jelly: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========== .liquid-glass 可复用组件 ========== */
/* 
 * iOS Liquid Glass 效果 - 3层结构：
 * 1. 基础层：高透明玻璃 + 强模糊 + 折射效果
 * 2. ::before 高光层：斜向反光渐变
 * 3. ::after 深度层：内阴影 + 边缘亮线
 */
.liquid-glass {
    position: relative;
    /* 简化版玻璃效果 - 性能优化 */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--glass-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* 禁用伪元素以提升性能 */
.liquid-glass::before,
.liquid-glass::after {
    display: none;
}

/* 果冻按压动画 */
.liquid-glass:active {
    transform: scale(0.97);
    transition: transform 120ms var(--jelly);
}

.liquid-glass:active::before {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.45) 0%,
        rgba(255, 255, 255, 0.2) 30%,
        transparent 60%
    );
}

/* ========== Liquid Glass 变体 ========== */
/* 更强高光版本 */
.liquid-glass--strong {
    --glass-opacity: 0.1;
    --glass-highlight: 0.45;
    --glass-rim: rgba(255, 255, 255, 0.3);
}

/* 红色点缀版本（外发光，不是边框） */
.liquid-glass--red-glow {
    box-shadow: 
        0 10px 40px var(--glass-outer-shadow),
        0 2px 10px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(255, 26, 77, 0.15);
}

/* 胶囊形状 */
.liquid-glass--pill {
    border-radius: var(--glass-radius-pill);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* 性能优化：GPU 加速 */
.app-container,
.view,
.player-bar,
.toast,
.home-card,
.audio-item,
.tab-btn {
    transform: translateZ(0);
    backface-visibility: hidden;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ========== 背景层 ========== */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-dark);
}

#starfield {
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.bg-glow {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 26, 77, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255, 100, 120, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse 50% 30% at 20% 90%, rgba(255, 50, 80, 0.06) 0%, transparent 35%);
    pointer-events: none;
}

/* 噪点纹理叠层 */
.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* 散景光斑叠层 */
.bokeh-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle 120px at 15% 25%, rgba(255, 50, 100, 0.08) 0%, transparent 70%),
        radial-gradient(circle 80px at 85% 15%, rgba(255, 100, 150, 0.06) 0%, transparent 60%),
        radial-gradient(circle 100px at 70% 80%, rgba(255, 50, 80, 0.05) 0%, transparent 65%),
        radial-gradient(circle 60px at 25% 85%, rgba(255, 80, 120, 0.04) 0%, transparent 55%);
    /* animation: bokeh-drift 20s ease-in-out infinite alternate; 禁用以提升性能 */
}

@keyframes bokeh-drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(15px, -10px); }
}

/* ========== App 容器 ========== */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

/* ========== 固定顶部 Header - Liquid Glass ========== */
.app-header {
    height: calc(var(--header-height) + var(--safe-top));
    padding: var(--safe-top) 20px 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* 简化样式 - 性能优化 */
    background: rgba(20, 20, 30, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    z-index: 100;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: var(--text-shadow);
    letter-spacing: 1px;
}

.header-btn {
    position: absolute;
    left: 16px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--glass-border-light);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.header-btn:active {
    transform: scale(0.9);
    transition: transform 100ms var(--spring);
    background: var(--red-soft);
    box-shadow: 
        0 0 15px rgba(255, 50, 120, 0.2);
}

/* ========== View Container ========== */
.view-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.view {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(0);
    transition: opacity 150ms ease-out, visibility 0s 150ms;
    overflow: hidden;
}

/* 每个 Tab 独立背景图 */
.view::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    opacity: 0;
    transition: opacity var(--transition-slow);
    /* animation: bg-drift 30s ease-in-out infinite alternate; 禁用以提升性能 */
}

/* 背景图慢速漂移动画 */
@keyframes bg-drift {
    0% { transform: scale(1.05) translate(0, 0); }
    100% { transform: scale(1.05) translate(-10px, 5px); }
}

/* 背景遮罩层 - 保证可读性（降低透明度让背景更清晰） */
.view::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(5, 5, 8, 0.4) 0%, 
        rgba(5, 5, 8, 0.5) 50%,
        rgba(5, 5, 8, 0.6) 100%);
    z-index: -1;
    pointer-events: none;
}

/* 各 Tab 背景图 */
#view-home::before { background-image: var(--bg-home); }
#view-emotion::before { background-image: var(--bg-emotion); }
#view-night::before { background-image: var(--bg-night); }
#view-efficiency::before { background-image: var(--bg-efficiency); }
#view-settings::before { background-image: var(--bg-settings); }

.view.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 150ms ease-out, visibility 0s;
}

.view.active::before {
    opacity: 1;
}

.view.subview {
    transform: translateX(100%);
}

.view.subview.active {
    transform: translateX(0);
}

/* 子页面继承父页面背景 */
.view.subview::before {
    background-image: var(--bg-night);
}

/* ========== 固定底部 TabBar - Liquid Glass ========== */
.tab-bar {
    height: calc(var(--tabbar-height) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    display: flex;
    align-items: center;
    justify-content: space-around;
    /* 简化样式 - 性能优化 */
    background: rgba(20, 20, 30, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    z-index: 100;
    position: relative;
}

.tab-item {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-base);
    padding-bottom: var(--safe-bottom);
}

.tab-item svg {
    width: 24px;
    height: 24px;
    transition: var(--transition-base);
}

.tab-item span {
    font-size: 11px;
    font-weight: 500;
    text-shadow: var(--text-shadow);
}

.tab-item.active {
    color: var(--red-primary);
}

.tab-item.active svg {
    filter: drop-shadow(0 0 10px var(--red-glow));
    /* animation: tab-breathe 2.5s ease-in-out infinite; 禁用以提升性能 */
}

@keyframes tab-breathe {
    0%, 100% { filter: drop-shadow(0 0 8px var(--red-glow)); }
    50% { filter: drop-shadow(0 0 14px var(--red-neon)); }
}

.tab-item:active {
    transform: scale(0.92);
    transition: transform 100ms var(--spring);
}

/* ========== Home 主页 ========== */
.home-content {
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* ========== Home 卡片 - Liquid Glass ========== */
.home-card {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    cursor: pointer;
    /* Liquid Glass 基础层 */
    position: relative;
    background: rgba(255, 255, 255, var(--glass-opacity));
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    /* 软边缘 - 白色rim light，无红边框 */
    border: 1px solid var(--glass-rim);
    border-radius: var(--glass-radius);
    /* 柔和外阴影 + 红色点缀发光 */
    box-shadow: 
        0 10px 40px var(--glass-outer-shadow),
        0 2px 10px rgba(0, 0, 0, 0.2),
        0 0 25px rgba(255, 26, 77, 0.1);
    overflow: hidden;
    isolation: isolate;
    transition: transform 200ms var(--jelly), box-shadow var(--transition-base);
}

/* 高光层：斜向反光 */
.home-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, var(--glass-highlight)) 0%,
        rgba(255, 255, 255, var(--glass-highlight-soft)) 25%,
        rgba(255, 255, 255, 0.02) 50%,
        transparent 100%
    );
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

/* 深度层：内阴影 + rim light */
.home-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 
        inset 0 8px 20px var(--glass-inner-shadow),
        inset 0 -2px 10px rgba(255, 255, 255, 0.05),
        inset 0 0 0 1px var(--glass-rim);
    pointer-events: none;
    z-index: 2;
}

/* 果冻按压 */
.home-card:active {
    transform: scale(0.96);
    transition: transform 120ms var(--jelly);
    box-shadow: 
        0 5px 20px var(--glass-outer-shadow),
        0 1px 5px rgba(0, 0, 0, 0.2),
        0 0 35px rgba(255, 26, 77, 0.15);
}

.home-card:active::before {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.25) 30%,
        transparent 60%
    );
}

/* 图标容器 - 红色玻璃球 */
.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 红色玻璃效果 */
    background: linear-gradient(
        180deg,
        rgba(255, 80, 120, 0.25) 0%,
        rgba(255, 26, 77, 0.35) 100%
    );
    border: 1px solid rgba(255, 150, 180, 0.3);
    border-radius: 50%;
    position: relative;
    z-index: 3;
    box-shadow: 
        0 4px 15px rgba(255, 26, 77, 0.3),
        inset 0 2px 4px rgba(255, 200, 220, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

.card-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--red-light);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: var(--text-shadow);
    position: relative;
    z-index: 3;
}

.card-desc {
    font-size: 13px;
    color: var(--text-muted);
    text-shadow: var(--text-shadow);
    position: relative;
    z-index: 3;
}

/* ========== 横滑栏 ========== */
.carousel-section {
    flex-shrink: 0;
}

.section-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    text-shadow: var(--text-shadow);
    margin-bottom: 12px;
    padding-left: 4px;
}

.carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

/* ========== 横滑卡片 - Liquid Glass ========== */
.carousel-item {
    flex-shrink: 0;
    width: 140px;
    padding: 16px;
    cursor: pointer;
    /* Liquid Glass */
    position: relative;
    background: rgba(255, 255, 255, var(--glass-opacity));
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-rim);
    border-radius: var(--radius-md);
    box-shadow: 
        0 6px 25px var(--glass-outer-shadow),
        0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    isolation: isolate;
    transition: transform 200ms var(--jelly), box-shadow var(--transition-base);
}

/* 高光层 */
.carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.28) 0%,
        rgba(255, 255, 255, 0.08) 30%,
        transparent 60%
    );
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

/* 深度层 */
.carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 
        inset 0 5px 15px var(--glass-inner-shadow),
        inset 0 0 0 1px var(--glass-rim);
    pointer-events: none;
    z-index: 2;
}

.carousel-item:active {
    transform: scale(0.96);
    transition: transform 100ms var(--jelly);
    box-shadow: 
        0 3px 12px var(--glass-outer-shadow),
        0 1px 4px rgba(0, 0, 0, 0.15);
}

.carousel-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-shadow: var(--text-shadow);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.carousel-item-desc {
    font-size: 12px;
    color: var(--text-muted);
    text-shadow: var(--text-shadow);
}

/* ========== AI 智能体入口 ========== */
.ai-bot-section {
    padding: 0 20px 20px;
}

.ai-bot-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, var(--glass-opacity));
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-rim);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px var(--glass-outer-shadow);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-bot-card:active {
    transform: scale(0.98);
}

.ai-bot-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--red-primary), var(--red-light));
    border-radius: 14px;
    box-shadow: 0 4px 12px var(--red-glow);
}

.ai-bot-icon svg {
    width: 26px;
    height: 26px;
    color: white;
}

.ai-bot-info {
    flex: 1;
}

.ai-bot-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: var(--text-shadow);
    margin-bottom: 4px;
}

.ai-bot-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.ai-bot-actions {
    display: flex;
    gap: 8px;
}

.ai-bot-copy,
.ai-bot-open {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-bot-copy svg,
.ai-bot-open svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.ai-bot-copy:hover,
.ai-bot-open:hover {
    background: rgba(255, 255, 255, 0.15);
}

.ai-bot-copy:active,
.ai-bot-open:active {
    transform: scale(0.9);
}

.ai-bot-copy.copied {
    background: var(--red-soft);
    border-color: var(--red-primary);
}

.ai-bot-copy.copied svg {
    color: var(--red-primary);
}

/* ========== 情绪页 ========== */
.emotion-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-tabs {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    overflow-x: auto;
    flex-shrink: 0;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

/* ========== 分类标签 - Liquid Glass 胶囊 ========== */
.tab-btn {
    flex-shrink: 0;
    padding: 10px 22px;
    cursor: pointer;
    /* Liquid Glass 基础 */
    position: relative;
    background: rgba(255, 255, 255, var(--glass-opacity));
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-rim);
    border-radius: var(--glass-radius-pill);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 
        0 6px 20px var(--glass-outer-shadow),
        0 2px 6px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    isolation: isolate;
    transition: all var(--transition-base);
}

/* 高光层 */
.tab-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.08) 30%,
        transparent 60%
    );
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

/* 深度层 */
.tab-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 
        inset 0 4px 12px var(--glass-inner-shadow),
        inset 0 0 0 1px var(--glass-rim);
    pointer-events: none;
    z-index: 2;
}

/* 选中状态 - 红色玻璃 */
.tab-btn.active {
    background: rgba(255, 50, 100, 0.15);
    color: var(--red-light);
    box-shadow: 
        0 6px 20px var(--glass-outer-shadow),
        0 2px 6px rgba(0, 0, 0, 0.15),
        0 0 25px rgba(255, 26, 77, 0.2);
}

.tab-btn.active::after {
    box-shadow: 
        inset 0 4px 12px rgba(200, 20, 60, 0.2),
        inset 0 0 0 1px rgba(255, 100, 150, 0.35);
}

.tab-btn:active {
    transform: scale(0.95);
    transition: transform 100ms var(--jelly);
}

/* ========== 搜索框 - Liquid Glass ========== */
.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    margin: 16px 20px 0;
    /* Liquid Glass */
    position: relative;
    background: rgba(255, 255, 255, var(--glass-opacity));
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-rim);
    border-radius: var(--radius-md);
    box-shadow: 
        0 6px 25px var(--glass-outer-shadow),
        0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    isolation: isolate;
}

/* 高光层 */
.search-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.08) 30%,
        transparent 60%
    );
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

/* 深度层 */
.search-box::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 
        inset 0 4px 12px var(--glass-inner-shadow),
        inset 0 0 0 1px var(--glass-rim);
    pointer-events: none;
    z-index: 2;
}

.search-box svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-muted);
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    text-shadow: var(--text-shadow);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

/* ========== 空状态 ========== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
}

.empty-state p {
    font-size: 15px;
    margin-bottom: 8px;
    text-shadow: var(--text-shadow);
}

.empty-hint {
    font-size: 13px;
    opacity: 0.7;
}

/* 加载更多按钮 */
.load-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.load-more-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

.load-more-btn:active {
    transform: scale(0.98);
}

.audio-list-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 20px 20px;
}

.audio-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ========== 音频列表项 - Liquid Glass ========== */
.audio-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    cursor: pointer;
    /* Liquid Glass 基础层 */
    position: relative;
    background: rgba(255, 255, 255, var(--glass-opacity));
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    /* 白色rim light边缘 */
    border: 1px solid var(--glass-rim);
    border-radius: var(--radius-md);
    /* 柔和阴影 */
    box-shadow: 
        0 8px 30px var(--glass-outer-shadow),
        0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    isolation: isolate;
    transition: transform 200ms var(--jelly), box-shadow var(--transition-base);
}

/* 高光层 */
.audio-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 25%,
        transparent 50%
    );
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

/* 深度层 */
.audio-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 
        inset 0 6px 15px var(--glass-inner-shadow),
        inset 0 0 0 1px var(--glass-rim);
    pointer-events: none;
    z-index: 2;
}

.audio-item:active {
    transform: scale(0.97);
    transition: transform 100ms var(--jelly);
    box-shadow: 
        0 4px 15px var(--glass-outer-shadow),
        0 1px 4px rgba(0, 0, 0, 0.15),
        0 0 20px rgba(255, 26, 77, 0.1);
}

.audio-item.playing {
    box-shadow: 
        0 8px 30px var(--glass-outer-shadow),
        0 2px 8px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(255, 26, 77, 0.2);
}

.audio-item.playing::after {
    box-shadow: 
        inset 0 6px 15px var(--glass-inner-shadow),
        inset 0 0 0 1.5px rgba(255, 100, 150, 0.4);
}

.audio-item-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 26, 77, 0.12);
    border: 1px solid rgba(255, 50, 120, 0.15);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(255, 50, 120, 0.15);
}

.audio-item-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--red-light);
    filter: drop-shadow(0 0 3px var(--red-glow));
}

.audio-item-info {
    flex: 1;
    min-width: 0;
}

.audio-item-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    text-shadow: var(--text-shadow);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.audio-item-meta {
    font-size: 12px;
    color: var(--text-muted);
    text-shadow: var(--text-shadow);
}

.audio-item-fav {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-base);
}

.audio-item-fav:active {
    transform: scale(0.9);
}

.audio-item-fav.active {
    color: var(--red-primary);
    background: rgba(255, 26, 77, 0.15);
    box-shadow: 0 0 12px rgba(255, 50, 120, 0.3);
}

.audio-item-fav svg {
    width: 20px;
    height: 20px;
}

/* ========== 夜晚页 ========== */
.night-content {
    height: 100%;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.night-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ========== 夜晚卡片 - Liquid Glass ========== */
.night-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    cursor: pointer;
    text-align: left;
    /* Liquid Glass 基础层 */
    position: relative;
    background: rgba(255, 255, 255, var(--glass-opacity));
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-rim);
    border-radius: var(--glass-radius);
    box-shadow: 
        0 10px 40px var(--glass-outer-shadow),
        0 2px 10px rgba(0, 0, 0, 0.2),
        0 0 25px rgba(255, 26, 77, 0.08);
    overflow: hidden;
    isolation: isolate;
    transition: transform 200ms var(--jelly), box-shadow var(--transition-base);
}

/* 高光层 */
.night-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, var(--glass-highlight)) 0%,
        rgba(255, 255, 255, var(--glass-highlight-soft)) 25%,
        rgba(255, 255, 255, 0.02) 50%,
        transparent 100%
    );
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

/* 深度层 */
.night-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 
        inset 0 8px 20px var(--glass-inner-shadow),
        inset 0 -2px 10px rgba(255, 255, 255, 0.05),
        inset 0 0 0 1px var(--glass-rim);
    pointer-events: none;
    z-index: 2;
}

.night-card:active {
    transform: scale(0.97);
    transition: transform 120ms var(--jelly);
    box-shadow: 
        0 5px 20px var(--glass-outer-shadow),
        0 1px 5px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(255, 26, 77, 0.12);
}

.night-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 26, 77, 0.12);
    border: 1px solid rgba(255, 50, 120, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(255, 50, 120, 0.2);
    position: relative;
    z-index: 1;
}

.night-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--red-light);
    filter: drop-shadow(0 0 4px var(--red-glow));
}

.night-title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: var(--text-shadow);
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.night-desc {
    font-size: 13px;
    color: var(--text-muted);
    text-shadow: var(--text-shadow);
    position: relative;
    z-index: 1;
}

/* ========== 开始按钮 - Liquid Glass 胶囊 ========== */
.start-now-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px 40px;
    cursor: pointer;
    /* Liquid Glass 基础层 - 高透明 */
    position: relative;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* 白色rim light边缘 */
    border: 1px solid var(--glass-rim-strong);
    border-radius: var(--glass-radius-pill);
    color: white;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    /* 柔和阴影 + 红色点缀发光 */
    box-shadow: 
        0 12px 50px var(--glass-outer-shadow),
        0 4px 15px rgba(0, 0, 0, 0.25),
        0 0 40px rgba(255, 26, 77, 0.15);
    overflow: hidden;
    isolation: isolate;
    transition: transform 200ms var(--jelly), box-shadow var(--transition-base);
}

/* 高光层 - 斜向反光 */
.start-now-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.2) 25%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 100%
    );
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

/* 深度层 - 内阴影 + rim light */
.start-now-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 
        inset 0 10px 30px var(--glass-inner-shadow),
        inset 0 -3px 15px rgba(255, 255, 255, 0.08),
        inset 0 0 0 1.5px var(--glass-rim-strong);
    pointer-events: none;
    z-index: 2;
}

/* 内嵌红色图标容器 - 玻璃球 */
.start-now-btn .btn-icon-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 红色玻璃效果 */
    background: linear-gradient(
        180deg,
        rgba(255, 80, 120, 0.7) 0%,
        rgba(255, 26, 77, 0.9) 100%
    );
    border: 1px solid rgba(255, 150, 180, 0.4);
    border-radius: 14px;
    position: relative;
    z-index: 3;
    box-shadow: 
        0 4px 15px rgba(255, 26, 77, 0.4),
        inset 0 2px 6px rgba(255, 200, 220, 0.4),
        inset 0 -2px 6px rgba(0, 0, 0, 0.2);
}

.start-now-btn .btn-icon-wrap svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.start-now-btn .btn-text {
    position: relative;
    z-index: 3;
    text-shadow: var(--text-shadow);
}

/* 果冻按压 */
.start-now-btn:active {
    transform: scale(0.96);
    transition: transform 120ms var(--jelly);
    box-shadow: 
        0 6px 25px var(--glass-outer-shadow),
        0 2px 8px rgba(0, 0, 0, 0.25),
        0 0 50px rgba(255, 26, 77, 0.2);
}

.start-now-btn:active::before {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.3) 30%,
        transparent 60%
    );
}

/* 旧版兼容 */
.start-now-btn > svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
    position: relative;
    z-index: 3;
}

.start-now-btn > span {
    position: relative;
    z-index: 3;
    text-shadow: var(--text-shadow);
}

.start-hint {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.7;
    margin-left: 4px;
}

/* ========== 音乐入口 - Liquid Glass ========== */
.music-entry {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    cursor: pointer;
    /* Liquid Glass */
    position: relative;
    background: rgba(255, 255, 255, var(--glass-opacity));
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-rim);
    border-radius: var(--radius-md);
    box-shadow: 
        0 8px 30px var(--glass-outer-shadow),
        0 2px 8px rgba(0, 0, 0, 0.15);
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    overflow: hidden;
    isolation: isolate;
    transition: transform 200ms var(--jelly), box-shadow var(--transition-base);
}

/* 高光层 */
.music-entry::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 25%,
        transparent 50%
    );
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

/* 深度层 */
.music-entry::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 
        inset 0 6px 18px var(--glass-inner-shadow),
        inset 0 0 0 1px var(--glass-rim);
    pointer-events: none;
    z-index: 2;
}

.music-entry svg {
    width: 22px;
    height: 22px;
    stroke: var(--red-light);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 3;
}

.music-entry span {
    position: relative;
    z-index: 3;
    text-shadow: var(--text-shadow);
}

.music-entry:active {
    transform: scale(0.96);
    transition: transform 100ms var(--jelly);
    box-shadow: 
        0 4px 15px var(--glass-outer-shadow),
        0 1px 4px rgba(0, 0, 0, 0.15);
}

.night-settings {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========== 设置页 ========== */
.settings-content {
    height: 100%;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.settings-group {
    margin-bottom: 28px;
}

.settings-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-shadow: var(--text-shadow);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.setting-label {
    font-size: 15px;
    color: var(--text-primary);
    text-shadow: var(--text-shadow);
}

/* 音量滑块 - 液态风格 */
.volume-slider {
    width: 140px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--red-light) 0%, var(--red-primary) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px var(--red-glow);
    transition: box-shadow var(--transition-fast);
}

.volume-slider::-webkit-slider-thumb:active {
    box-shadow: 0 0 25px var(--red-neon);
}

.setting-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.setting-toggle span:first-child {
    font-size: 15px;
    color: var(--text-primary);
    text-shadow: var(--text-shadow);
}

.setting-toggle input {
    display: none;
}

/* 开关 - 液态玻璃 */
.toggle-slider {
    width: 50px;
    height: 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    position: relative;
    transition: all var(--transition-base);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(200, 200, 200, 0.8) 100%);
    border-radius: 50%;
    transition: all var(--transition-base);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.setting-toggle input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
    border-color: rgba(255, 100, 150, 0.3);
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(255, 50, 120, 0.3);
}

.setting-toggle input:checked + .toggle-slider::after {
    left: 24px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.setting-toggle input:disabled + .toggle-slider {
    opacity: 0.4;
}

/* 设置按钮 - 液态玻璃 */
.setting-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 18px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.25),
        0 0 12px rgba(255, 50, 120, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-size: 15px;
    text-shadow: var(--text-shadow);
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.setting-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
    pointer-events: none;
}

.setting-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--red-light);
    filter: drop-shadow(0 0 3px var(--red-glow));
}

.setting-btn:active {
    transform: scale(0.97);
    transition: transform 100ms var(--spring);
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 50, 120, 0.1);
}

.about-text {
    font-size: 14px;
    color: var(--text-muted);
    text-shadow: var(--text-shadow);
    line-height: 1.8;
}

/* ========== 子页面 ========== */
.subview-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.music-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.music-list-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
}

.music-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* 音乐列表项 - 液态玻璃 */
.music-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 
        0 0 0 1px rgba(255, 50, 120, 0.08),
        0 6px 24px rgba(0, 0, 0, 0.35),
        0 0 15px rgba(255, 50, 120, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    position: relative;
    overflow: hidden;
}

.music-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, transparent 60%);
    pointer-events: none;
}

.music-item:active {
    transform: scale(0.97);
    transition: transform 100ms var(--spring);
    box-shadow: 
        0 0 0 1px rgba(255, 50, 120, 0.2),
        0 3px 12px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(255, 50, 120, 0.12);
}

.music-item.playing {
    border-color: var(--red-primary);
    box-shadow: 
        0 0 0 1px rgba(255, 50, 120, 0.4),
        0 6px 24px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 50, 120, 0.2);
}

.music-cover {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: rgba(255, 26, 77, 0.1);
    border: 1px solid rgba(255, 50, 120, 0.15);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(255, 50, 120, 0.1);
}

.music-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.music-info {
    flex: 1;
    min-width: 0;
}

.music-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    text-shadow: var(--text-shadow);
    margin-bottom: 4px;
}

.music-artist {
    font-size: 12px;
    color: var(--text-muted);
    text-shadow: var(--text-shadow);
}

.music-duration {
    font-size: 13px;
    color: var(--text-muted);
    text-shadow: var(--text-shadow);
}

/* ========== Mini Player - Liquid Glass ========== */
.player-bar {
    position: fixed;
    bottom: calc(var(--tabbar-height) + var(--safe-bottom) + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: calc(100% - 32px);
    max-width: 468px;
    /* Liquid Glass 基础层 */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* 白色rim light边缘 */
    border: 1px solid var(--glass-rim-strong);
    border-radius: var(--glass-radius);
    /* 柔和阴影 + 红色点缀 */
    box-shadow: 
        0 12px 50px var(--glass-outer-shadow),
        0 4px 15px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(255, 26, 77, 0.1);
    padding: 14px 18px;
    padding-top: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 90;
    overflow: hidden;
    isolation: isolate;
    transition: transform var(--transition-base), opacity var(--transition-base), box-shadow var(--transition-base);
}

/* 高光层 */
.player-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.15) 25%,
        rgba(255, 255, 255, 0.02) 50%,
        transparent 100%
    );
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

/* 深度层 */
.player-bar > .player-depth {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 
        inset 0 8px 25px var(--glass-inner-shadow),
        inset 0 -2px 10px rgba(255, 255, 255, 0.05),
        inset 0 0 0 1px var(--glass-rim);
    pointer-events: none;
    z-index: 2;
}

.player-bar.active {
    transform: translateX(-50%) translateY(0);
}

.player-bar.ended {
    opacity: 0.5;
    box-shadow: 
        0 0 0 1px rgba(255, 50, 120, 0.05),
        0 4px 16px rgba(0, 0, 0, 0.4);
}

.player-bar.buffering .player-progress {
    animation: buffering-pulse 1s ease-in-out infinite;
}

@keyframes buffering-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* 液态进度条 */
.player-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    touch-action: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
}

.player-progress-bar:active {
    height: 8px;
}

/* 上边缘红色光线 */
.player-progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, var(--red-neon) 50%, transparent 95%);
    opacity: 0.6;
}

.player-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--red-primary), var(--red-light));
    width: 0%;
    transition: width 100ms linear;
    border-radius: 0 3px 3px 0;
    position: relative;
    box-shadow: 0 0 10px var(--red-glow);
}

.player-progress::after {
    content: '';
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: var(--red-primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--red-glow);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.player-progress-bar:active .player-progress::after {
    opacity: 1;
}

.player-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.player-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-shadow: var(--text-shadow);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.player-time-wrap {
    display: flex;
    align-items: center;
    gap: 3px;
}

.player-time, .player-duration {
    font-size: 12px;
    color: var(--text-muted);
    text-shadow: var(--text-shadow);
}

.player-time-sep {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.5;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

/* Loading 状态 */
.player-loading {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 26px;
    height: 26px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--red-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 10px var(--red-glow);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== 播放按钮 - Liquid Glass 红色球 ========== */
.player-btn {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /* 红色玻璃球 */
    position: relative;
    background: linear-gradient(
        180deg,
        rgba(255, 100, 140, 0.7) 0%,
        rgba(255, 26, 77, 0.9) 100%
    );
    border: 1px solid rgba(255, 150, 180, 0.4);
    border-radius: 50%;
    color: white;
    box-shadow: 
        0 6px 20px rgba(255, 26, 77, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 3px 8px rgba(255, 200, 220, 0.4),
        inset 0 -3px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 200ms var(--jelly), box-shadow var(--transition-base);
}

/* 高光层 */
.player-btn::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 15%;
    right: 15%;
    height: 40%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.15) 60%,
        transparent 100%
    );
    border-radius: 50%;
    pointer-events: none;
}

.player-btn:active {
    transform: scale(0.9);
    transition: transform 100ms var(--jelly);
    box-shadow: 
        0 3px 10px rgba(255, 26, 77, 0.5),
        0 1px 4px rgba(0, 0, 0, 0.3),
        inset 0 4px 10px rgba(0, 0, 0, 0.2),
        inset 0 -2px 6px rgba(255, 200, 220, 0.3);
}

.player-btn svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
}

/* ========== Toast - 液态玻璃 ========== */
.toast {
    position: fixed;
    bottom: calc(var(--tabbar-height) + var(--safe-bottom) + 90px);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 14px 26px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 50, 120, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-size: 14px;
    text-shadow: var(--text-shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast.with-retry {
    padding-right: 18px;
}

.toast-retry {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
    border: none;
    border-radius: 18px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 0 12px rgba(255, 50, 120, 0.3);
}

.toast-retry:active {
    transform: scale(0.92);
    box-shadow: 0 0 18px rgba(255, 50, 120, 0.5);
}

/* ========== 动画 ========== */
@keyframes breathe {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px var(--red-glow); }
    50% { box-shadow: 0 0 30px var(--red-glow), 0 0 40px rgba(255, 26, 77, 0.2); }
}

.audio-item.playing .audio-item-icon {
    /* animation: pulse-glow 2s ease-in-out infinite; 禁用以提升性能 */
    background: var(--red-primary);
}

/* ========== 悬浮圆形卡片板块 (Voice Bubbles) ========== */
.voice-bubbles-section {
    padding: 0 20px 20px;
}

.voice-bubbles-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 20px 0;
    perspective: 800px;
}

/* ========== 悬浮圆形卡片 (Floating Bubble) ========== */
.floating-bubble {
    --bubble-size: 72px;
    --float-duration: 3s;
    --float-delay: 0s;
    --float-distance: 8px;
    
    width: var(--bubble-size);
    height: var(--bubble-size);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    
    /* 3D 透视 */
    transform-style: preserve-3d;
    
    /* 玻璃拟态基础 */
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 100%
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    /* 边缘高光 rim light */
    border: 1px solid rgba(255, 255, 255, 0.25);
    
    /* 软阴影 + 落地阴影 */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.35),
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.15),
        inset 0 -2px 6px rgba(0, 0, 0, 0.1);
    
    /* 悬浮漂浮动画 - 只用 transform */
    animation: bubble-float var(--float-duration) ease-in-out infinite;
    animation-delay: var(--float-delay);
    
    /* 过渡 */
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.2s ease;
    
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 高光反射层 (specular highlight) */
.floating-bubble::before {
    content: '';
    position: absolute;
    top: 8%;
    left: 15%;
    width: 35%;
    height: 25%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.2) 40%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

/* 底部反光层 */
.floating-bubble::after {
    content: '';
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 15%;
    background: linear-gradient(
        to top,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 100%
    );
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

/* 气泡图标 */
.bubble-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    z-index: 3;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.bubble-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.bubble-icon.filled svg {
    fill: currentColor;
    stroke: none;
}

/* 悬浮漂浮动画 - 只用 transform */
@keyframes bubble-float {
    0%, 100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: translateY(calc(var(--float-distance) * -0.5)) rotateX(2deg) rotateY(-1deg);
    }
    50% {
        transform: translateY(calc(var(--float-distance) * -1)) rotateX(0deg) rotateY(0deg);
    }
    75% {
        transform: translateY(calc(var(--float-distance) * -0.5)) rotateX(-2deg) rotateY(1deg);
    }
}

/* Hover 效果 - 轻微倾斜 + 光晕 */
.floating-bubble:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 6px 20px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(255, 100, 150, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 6px rgba(0, 0, 0, 0.1);
    animation-play-state: paused;
}

/* 点击回弹 (press + spring) */
.floating-bubble:active {
    transform: translateY(0) scale(0.92);
    transition: transform 0.1s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.35),
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(255, 100, 150, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.15);
}

/* 播放中状态 - 呼吸光效 */
.floating-bubble.playing {
    animation: bubble-float var(--float-duration) ease-in-out infinite,
               bubble-breathing 2s ease-in-out infinite;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.35),
        0 4px 16px rgba(0, 0, 0, 0.2),
        0 0 25px rgba(255, 50, 100, 0.35),
        inset 0 2px 4px rgba(255, 255, 255, 0.15);
}

@keyframes bubble-breathing {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.35),
            0 4px 16px rgba(0, 0, 0, 0.2),
            0 0 20px rgba(255, 50, 100, 0.3),
            inset 0 2px 4px rgba(255, 255, 255, 0.15);
    }
    50% {
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.35),
            0 4px 16px rgba(0, 0, 0, 0.2),
            0 0 35px rgba(255, 50, 100, 0.5),
            inset 0 2px 4px rgba(255, 255, 255, 0.2);
    }
}

/* 不同颜色变体 */
.floating-bubble.bubble-red {
    background: linear-gradient(
        145deg,
        rgba(255, 80, 120, 0.25) 0%,
        rgba(255, 50, 100, 0.15) 50%,
        rgba(255, 30, 80, 0.08) 100%
    );
    border-color: rgba(255, 150, 180, 0.3);
}

.floating-bubble.bubble-purple {
    background: linear-gradient(
        145deg,
        rgba(180, 100, 255, 0.22) 0%,
        rgba(150, 80, 220, 0.12) 50%,
        rgba(120, 60, 200, 0.06) 100%
    );
    border-color: rgba(200, 150, 255, 0.3);
}

.floating-bubble.bubble-blue {
    background: linear-gradient(
        145deg,
        rgba(100, 180, 255, 0.22) 0%,
        rgba(80, 150, 230, 0.12) 50%,
        rgba(60, 120, 200, 0.06) 100%
    );
    border-color: rgba(150, 200, 255, 0.3);
}

.floating-bubble.bubble-green {
    background: linear-gradient(
        145deg,
        rgba(100, 220, 180, 0.22) 0%,
        rgba(80, 200, 160, 0.12) 50%,
        rgba(60, 180, 140, 0.06) 100%
    );
    border-color: rgba(150, 230, 200, 0.3);
}

/* 不同大小变体 */
.floating-bubble.bubble-sm {
    --bubble-size: 56px;
}

.floating-bubble.bubble-sm .bubble-icon svg {
    width: 20px;
    height: 20px;
}

.floating-bubble.bubble-lg {
    --bubble-size: 88px;
}

.floating-bubble.bubble-lg .bubble-icon svg {
    width: 32px;
    height: 32px;
}

/* ========== 语音气泡弹窗 (Voice Panel) ========== */
.voice-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0s 0.2s;
    will-change: opacity;
}

.voice-panel-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, visibility 0s;
}

.voice-panel {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: calc(100% - 48px);
    max-width: 320px;
    padding: 28px 24px;
    z-index: 501;
    
    /* 玻璃拟态 - 简化blur提升性能 */
    background: rgba(25, 25, 35, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 8px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, 
                transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                visibility 0s 0.2s;
    will-change: transform, opacity;
}

.voice-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity 0.3s ease, 
                transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                visibility 0s;
}

/* 面板高光 */
.voice-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 100%
    );
    border-radius: 28px 28px 0 0;
    pointer-events: none;
}

/* 关闭按钮 */
.voice-panel-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
    z-index: 10;
}

.voice-panel-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.voice-panel-close:active {
    transform: scale(0.9);
}

.voice-panel-close svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
}

/* 面板头部 */
.voice-panel-header {
    text-align: center;
    margin-bottom: 20px;
}

.voice-panel-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(
        145deg,
        rgba(255, 80, 120, 0.3) 0%,
        rgba(255, 50, 100, 0.2) 100%
    );
    border: 1px solid rgba(255, 150, 180, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 20px rgba(255, 50, 100, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.voice-panel-icon svg {
    width: 28px;
    height: 28px;
    stroke: rgba(255, 180, 200, 0.9);
    fill: none;
    stroke-width: 1.5;
}

.voice-panel-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 6px;
}

.voice-panel-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* 播放控制区 */
.voice-panel-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* 进度条 */
.voice-progress-wrap {
    width: 100%;
}

.voice-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.voice-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--red-primary), var(--red-light));
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.voice-progress-bar:hover .voice-progress {
    background: linear-gradient(90deg, var(--red-light), #ff8fab);
}

.voice-time-wrap {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

/* 播放按钮 */
.voice-play-btn {
    width: 64px;
    height: 64px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--red-primary), var(--red-dark));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 
        0 6px 24px rgba(255, 50, 100, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.voice-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 
        0 8px 30px rgba(255, 50, 100, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.voice-play-btn:active {
    transform: scale(0.95);
}

.voice-play-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.voice-play-btn .icon-pause {
    display: none;
}

.voice-play-btn.playing .icon-play {
    display: none;
}

.voice-play-btn.playing .icon-pause {
    display: block;
}

/* 加载状态 */
.voice-loading {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
}

.voice-play-btn.loading .voice-loading {
    display: flex;
}

.voice-play-btn.loading svg {
    display: none;
}

.voice-loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 错误重试 */
.voice-error {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 80, 80, 0.1);
    border: 1px solid rgba(255, 80, 80, 0.2);
    border-radius: 16px;
}

.voice-panel.error .voice-error {
    display: flex;
}

.voice-panel.error .voice-panel-controls {
    display: none;
}

.voice-error-text {
    font-size: 14px;
    color: rgba(255, 150, 150, 0.9);
}

.voice-retry-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.voice-retry-btn:active {
    transform: scale(0.95);
}

/* 卡片进入动画 (stagger) */
.floating-bubble {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
}

.floating-bubble.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: bubble-float var(--float-duration) ease-in-out infinite;
    animation-delay: var(--float-delay);
}

@keyframes bubble-enter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========== 响应式 ========== */
@media (max-width: 360px) {
    .home-card {
        padding: 16px;
    }
    
    .card-icon {
        width: 48px;
        height: 48px;
    }
    
    .card-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .floating-bubble {
        --bubble-size: 64px;
    }
    
    .voice-bubbles-container {
        gap: 12px;
    }
}

/* ========== 效率入口卡片 ========== */
.efficiency-entry-section {
    padding: 0 20px 16px;
}

.efficiency-entry-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.efficiency-entry-card:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.12);
}

.efficiency-entry-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--red-primary), var(--red-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(255, 50, 100, 0.3);
}

.efficiency-entry-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.efficiency-entry-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.efficiency-entry-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.efficiency-entry-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.efficiency-entry-arrow {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
}

.efficiency-entry-arrow svg {
    width: 20px;
    height: 20px;
}

/* ========== 效率页面 ========== */
.efficiency-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 二级切换 Tabs */
.efficiency-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    flex-shrink: 0;
}

.efficiency-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.efficiency-tab.active {
    background: linear-gradient(145deg, var(--red-primary), var(--red-dark));
    color: white;
    box-shadow: 0 4px 20px rgba(255, 50, 100, 0.3);
}

.efficiency-tab:active {
    transform: scale(0.97);
}

/* 效率面板 */
.efficiency-panel {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.efficiency-panel.active {
    display: block;
    opacity: 1;
}

/* ========== 番茄钟 ========== */
.pomodoro-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.pomodoro-quote {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    font-style: italic;
    opacity: 0.9;
}

/* 圆环计时器 */
.pomodoro-timer {
    position: relative;
    width: 220px;
    height: 220px;
}

.timer-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.timer-ring-progress {
    fill: none;
    stroke: url(#timerGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.5s ease;
    filter: drop-shadow(0 0 12px rgba(255, 50, 100, 0.5));
}

.timer-display {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.timer-time {
    font-size: 48px;
    font-weight: 300;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
}

.timer-phase {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 控制按钮 */
.pomodoro-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pomodoro-btn {
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pomodoro-btn:active {
    transform: scale(0.92);
}

.pomodoro-btn-primary {
    width: 72px;
    height: 72px;
    background: linear-gradient(145deg, var(--red-primary), var(--red-dark));
    color: white;
    box-shadow: 
        0 8px 32px rgba(255, 50, 100, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.pomodoro-btn-primary svg {
    width: 32px;
    height: 32px;
}

.pomodoro-btn-primary.running .icon-play {
    display: none;
}

.pomodoro-btn-primary.running .icon-pause {
    display: block !important;
}

.pomodoro-btn-secondary {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}

.pomodoro-btn-secondary svg {
    width: 22px;
    height: 22px;
}

.pomodoro-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* 任务输入 */
.pomodoro-task {
    width: 100%;
    max-width: 300px;
}

.pomodoro-task-input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 15px;
    text-align: center;
    outline: none;
    transition: all 0.2s ease;
}

.pomodoro-task-input::placeholder {
    color: var(--text-muted);
}

.pomodoro-task-input:focus {
    border-color: var(--red-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* 友情提示 */
.pomodoro-tip {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

.pomodoro-tip svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.6;
}

/* 配置卡片 */
.pomodoro-config {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.config-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.config-label-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.config-label {
    font-size: 12px;
    color: var(--text-muted);
}

.config-unit {
    font-size: 11px !important;
    color: var(--text-muted) !important;
    min-width: auto !important;
}

.config-value {
    display: flex;
    align-items: center;
    gap: 6px;
}

.config-value span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 24px;
    text-align: center;
}

.config-btn {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.config-btn:active {
    transform: scale(0.9);
    background: var(--red-primary);
    color: white;
}

/* 长休开关 */
.config-toggle {
    position: relative;
    width: 32px;
    height: 18px;
    cursor: pointer;
}

.config-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.config-toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 9px;
    transition: all 0.2s ease;
}

.config-toggle-slider::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    left: 2px;
    top: 2px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.config-toggle input:checked + .config-toggle-slider {
    background: var(--red-primary);
}

.config-toggle input:checked + .config-toggle-slider::before {
    transform: translateX(14px);
}

/* 长休禁用状态 */
#longBreakItem.disabled .config-value {
    opacity: 0.35;
    pointer-events: none;
}

#longBreakCountItem.disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* 周期配置 */
.pomodoro-cycle-config {
    width: 100%;
    margin-top: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cycle-config-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cycle-config-row .config-item {
    flex-direction: row;
    justify-content: space-between;
}

.cycle-preview {
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(255, 26, 77, 0.08);
    border: 1px solid rgba(255, 26, 77, 0.15);
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

.cycle-hint {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

/* 统计 */
.pomodoro-stats {
    width: 100%;
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 600;
    color: var(--red-light);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== 日程表 ========== */
.schedule-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 20px 20px;
}

/* 日期选择条头部 */
.schedule-date-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* 日期选择条 */
.schedule-date-strip {
    flex: 1;
    display: flex;
    gap: 8px;
    padding: 12px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.schedule-date-strip::-webkit-scrollbar {
    display: none;
}

/* 回到今天按钮 */
.back-to-today-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-to-today-btn svg {
    width: 14px;
    height: 14px;
}

.back-to-today-btn:active {
    transform: scale(0.95);
    background: rgba(255, 26, 77, 0.2);
    color: var(--red-light);
}

.date-item {
    position: relative;
    flex-shrink: 0;
    padding: 10px 16px;
    border: none;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.date-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.date-item .date-day {
    font-size: 11px;
    opacity: 0.7;
}

.date-item .date-num {
    font-size: 17px;
    font-weight: 600;
}

.date-item.active {
    background: rgba(255, 26, 77, 0.25);
    color: white;
    border-color: rgba(255, 26, 77, 0.4);
    transform: scale(1.03);
    box-shadow: 
        0 0 20px rgba(255, 26, 77, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.date-item.active::before {
    opacity: 1;
}

.date-item.today:not(.active) {
    border-color: rgba(255, 26, 77, 0.5);
    box-shadow: 0 0 12px rgba(255, 26, 77, 0.2);
}

.date-item:active {
    transform: scale(0.96);
}

/* 今日概览 */
.schedule-overview {
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* 日程列表 */
.schedule-list-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 80px;
}

/* 日程项 */
.schedule-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.schedule-item:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.12);
}

.schedule-item.done {
    opacity: 0.5;
}

.schedule-item.done .schedule-item-title {
    text-decoration: line-through;
}

.schedule-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.schedule-checkbox.checked {
    background: var(--red-primary);
    border-color: var(--red-primary);
}

.schedule-checkbox svg {
    width: 14px;
    height: 14px;
    stroke: white;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.schedule-checkbox.checked svg {
    opacity: 1;
}

.schedule-item-content {
    flex: 1;
    min-width: 0;
}

.schedule-item-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.schedule-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.schedule-item-tag {
    padding: 2px 8px;
    background: rgba(255, 100, 150, 0.2);
    border-radius: 6px;
    font-size: 12px;
    color: var(--red-light);
}

/* 空状态 */
.schedule-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.schedule-empty.hidden {
    display: none;
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    opacity: 0.4;
}

.empty-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--text-muted);
}

.empty-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-hint {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-quick-add {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.empty-quick-add svg {
    width: 16px;
    height: 16px;
}

.empty-quick-add:active {
    transform: scale(0.96);
    background: rgba(255, 26, 77, 0.15);
    color: var(--red-light);
}

/* 日程项左滑删除 */
.schedule-item-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.schedule-item-delete {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 80, 80, 0.9);
    color: white;
    font-size: 13px;
    transform: translateX(100%);
    transition: transform 0.2s ease;
}

.schedule-item-wrapper.swiped .schedule-item-delete {
    transform: translateX(0);
}

.schedule-item-wrapper.swiped .schedule-item {
    transform: translateX(-80px);
}

/* 日程项完成状态增强 */
.schedule-item.done {
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.04);
}

.schedule-item.done .schedule-item-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.schedule-item-done-badge {
    padding: 2px 8px;
    background: rgba(100, 200, 100, 0.2);
    border-radius: 6px;
    font-size: 11px;
    color: #8fdf8f;
}

/* 新增按钮 */
.schedule-add-btn {
    position: fixed;
    bottom: calc(140px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(145deg, var(--red-primary), var(--red-dark));
    border: none;
    border-radius: 28px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 
        0 8px 32px rgba(255, 50, 100, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
}

.schedule-add-btn:active {
    transform: translateX(-50%) scale(0.95);
}

.schedule-add-btn svg {
    width: 20px;
    height: 20px;
}

/* ========== 日程 Bottom Sheet ========== */
.schedule-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 600;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s 0.25s;
}

.schedule-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, visibility 0s;
}

.schedule-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 85vh;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(28px) saturate(170%) contrast(110%) brightness(108%);
    -webkit-backdrop-filter: blur(28px) saturate(170%) contrast(110%) brightness(108%);
    border-radius: 28px 28px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: none;
    box-shadow: 
        0 -20px 60px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 45, 85, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 18px 30px rgba(0, 0, 0, 0.2);
    z-index: 601;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom);
}

.schedule-sheet::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px 28px 0 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 40%);
    mix-blend-mode: overlay;
    pointer-events: none;
}

.schedule-sheet.active {
    transform: translateY(0);
}

.schedule-sheet-grabber {
    width: 40px;
    height: 5px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    margin: 12px auto 0;
}

.schedule-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.schedule-sheet-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.schedule-sheet-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.schedule-sheet-close:active {
    transform: scale(0.9);
    background: rgba(255, 80, 80, 0.3);
}

.schedule-sheet-close svg {
    width: 18px;
    height: 18px;
}

.schedule-sheet-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 24px;
}

.schedule-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-label {
    font-size: 13px;
    color: var(--text-muted);
}

.form-input,
.form-textarea {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    border-color: rgba(255, 26, 77, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.form-textarea {
    min-height: 80px;
    resize: none;
}

.form-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.form-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-tag.active {
    background: rgba(255, 26, 77, 0.2);
    border-color: rgba(255, 26, 77, 0.4);
    color: var(--red-light);
}

.form-priority {
    display: flex;
    gap: 10px;
}

.priority-btn {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.priority-btn.active {
    background: rgba(255, 26, 77, 0.2);
    border-color: rgba(255, 26, 77, 0.4);
    color: var(--red-light);
}

.schedule-sheet-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.schedule-sheet-delete {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(255, 80, 80, 0.15);
    border: 1px solid rgba(255, 80, 80, 0.3);
    border-radius: 12px;
    color: #ff7878;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.schedule-sheet-delete svg {
    width: 16px;
    height: 16px;
}

.schedule-sheet-delete:active {
    transform: scale(0.95);
    background: rgba(255, 80, 80, 0.3);
}

.schedule-sheet-actions {
    display: flex;
    gap: 12px;
}

.schedule-btn-cancel {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.schedule-btn-cancel:active {
    transform: scale(0.95);
}

.schedule-btn-save {
    padding: 12px 28px;
    background: linear-gradient(145deg, var(--red-primary), var(--red-dark));
    border: none;
    border-radius: 24px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 50, 100, 0.3);
    transition: all 0.2s ease;
}

.schedule-btn-save:active {
    transform: scale(0.95);
}

.sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sheet-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.sheet-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sheet-close svg {
    width: 18px;
    height: 18px;
}

.sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sheet-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sheet-field label {
    font-size: 13px;
    color: var(--text-muted);
}

.sheet-input {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    transition: all 0.2s ease;
}

.sheet-input:focus {
    border-color: var(--red-primary);
    background: rgba(255, 255, 255, 0.1);
}

.sheet-row {
    display: flex;
    gap: 12px;
}

.sheet-field.half {
    flex: 1;
}

.sheet-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sheet-tag {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sheet-tag.active {
    background: var(--red-primary);
    border-color: var(--red-primary);
    color: white;
}

.sheet-textarea {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    min-height: 80px;
    resize: none;
    outline: none;
    font-family: inherit;
}

.sheet-textarea:focus {
    border-color: var(--red-primary);
}

.sheet-actions {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sheet-btn {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sheet-btn:active {
    transform: scale(0.97);
}

.sheet-btn-save {
    background: linear-gradient(145deg, var(--red-primary), var(--red-dark));
    color: white;
}

.sheet-btn-delete {
    background: rgba(255, 80, 80, 0.2);
    color: #ff6b6b;
}

/* ========== 专注记录入口按钮 ========== */
.focus-history-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 200px;
    margin: 20px auto 8px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.focus-history-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.02) 50%, transparent 100%);
    border-radius: inherit;
    pointer-events: none;
}

.focus-history-btn:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.12);
}

.focus-history-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--red-light);
}

.focus-history-hint {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* ========== 专注记录 Bottom Sheet ========== */
.focus-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 9998;
    pointer-events: none;
    transition: background 0.3s ease;
}

.focus-sheet-overlay.active {
    background: rgba(0, 0, 0, 0.55);
    pointer-events: auto;
}

.focus-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80vh;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    
    /* iOS Liquid Glass 厚玻璃透镜 */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(28px) saturate(170%) contrast(110%) brightness(108%);
    -webkit-backdrop-filter: blur(28px) saturate(170%) contrast(110%) brightness(108%);
    border-radius: 28px 28px 0 0;
    
    /* 边缘高光 */
    box-shadow: 
        inset 0 0 0 1px rgba(255, 255, 255, 0.22),
        inset 0 18px 30px rgba(0, 0, 0, 0.25),
        0 -4px 30px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(255, 45, 85, 0.12);
    
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.focus-sheet::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.03) 40%, transparent 70%);
    border-radius: inherit;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.focus-sheet.active {
    transform: translateY(0);
}

/* Grabber 手柄 */
.focus-sheet-grabber {
    padding: 12px 0 8px;
    display: flex;
    justify-content: center;
    cursor: grab;
    touch-action: none;
}

.focus-sheet-grabber:active {
    cursor: grabbing;
}

.grabber-bar {
    width: 40px;
    height: 5px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 3px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

/* 头部 */
.focus-sheet-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 8px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.focus-sheet-title-wrap {
    flex: 1;
}

.focus-sheet-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
}

.focus-sheet-subtitle {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--text-muted);
}

.focus-sheet-export {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.focus-sheet-export:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.14);
}

.focus-sheet-export svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
}

/* 可滚动区域 */
.focus-sheet-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 20px;
}

/* 本周概览卡片 */
.focus-week-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 0 0 0 1px rgba(255,255,255,0.1),
        inset 0 8px 20px rgba(0,0,0,0.15);
}

.focus-week-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 100%);
    border-radius: 20px 20px 0 0;
    pointer-events: none;
}

.focus-week-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.focus-week-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.focus-week-range {
    font-size: 12px;
    color: var(--text-muted);
}

/* 7天柱状图 */
.focus-week-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 80px;
    gap: 8px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.chart-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.chart-bar {
    width: 100%;
    max-width: 28px;
    min-height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chart-bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--red-light) 0%, var(--red-primary) 100%);
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(255, 26, 77, 0.5);
    transition: height 0.4s ease;
}

.chart-bar-label {
    font-size: 11px;
    color: var(--text-muted);
}

.chart-bar-wrap.today .chart-bar-label {
    color: var(--red-light);
    font-weight: 500;
}

/* 本周统计 */
.focus-week-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.focus-week-stat {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.focus-week-stat .stat-num {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.focus-week-stat .stat-text {
    font-size: 13px;
    color: var(--text-muted);
}

.focus-week-quote {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* 日记录列表 */
.focus-logs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.focus-log-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.focus-log-item:active {
    transform: scale(0.98);
}

.focus-log-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    cursor: pointer;
}

.focus-log-date {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.focus-log-date-main {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.focus-log-date-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.focus-log-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.focus-log-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.focus-log-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--red-light);
}

.focus-log-stat-label {
    font-size: 11px;
    color: var(--text-muted);
}

.focus-log-expand-icon {
    width: 20px;
    height: 20px;
    stroke: var(--text-muted);
    transition: transform 0.2s ease;
}

.focus-log-item.expanded .focus-log-expand-icon {
    transform: rotate(180deg);
}

/* 展开详情 */
.focus-log-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.focus-log-item.expanded .focus-log-detail {
    max-height: 300px;
}

.focus-log-detail-content {
    padding: 14px 16px;
}

.focus-log-tasks {
    margin-bottom: 12px;
}

.focus-log-task {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
}

.focus-log-task:last-child {
    border-bottom: none;
}

.focus-log-task-name {
    color: var(--text-secondary);
}

.focus-log-task-count {
    color: var(--text-muted);
}

.focus-log-quote {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    margin: 8px 0 0;
}

/* 空状态 */
.focus-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.focus-empty-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    opacity: 0.4;
}

.focus-empty-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--text-muted);
}

.focus-empty-main {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0 0 8px;
}

.focus-empty-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 24px;
}

.focus-empty-btn {
    padding: 14px 32px;
    background: linear-gradient(145deg, var(--red-primary), var(--red-dark));
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(255, 26, 77, 0.4);
}

.focus-empty-btn:active {
    transform: scale(0.95);
}

/* 底部操作区 */
.focus-sheet-footer {
    padding: 12px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
}

.focus-clear-btn {
    padding: 10px 20px;
    background: rgba(255, 80, 80, 0.1);
    border: 1px solid rgba(255, 80, 80, 0.2);
    border-radius: 12px;
    color: rgba(255, 120, 120, 0.8);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.focus-clear-btn:active {
    transform: scale(0.95);
    background: rgba(255, 80, 80, 0.2);
}

/* 清空确认弹窗 */
.focus-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 10000;
    pointer-events: none;
    transition: background 0.25s ease;
}

.focus-confirm-overlay.active {
    background: rgba(0, 0, 0, 0.6);
    pointer-events: auto;
}

.focus-confirm-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 85%;
    max-width: 320px;
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    padding: 28px 24px;
    text-align: center;
    
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.15),
        inset 0 10px 20px rgba(0,0,0,0.2),
        0 20px 50px rgba(0,0,0,0.4);
}

.focus-confirm-modal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 50%);
    border-radius: inherit;
    pointer-events: none;
}

.focus-confirm-modal.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.focus-confirm-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.focus-confirm-desc {
    margin: 0 0 24px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.focus-confirm-actions {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.focus-confirm-btn {
    flex: 1;
    padding: 14px 16px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.focus-confirm-btn:active {
    transform: scale(0.95);
}

.focus-confirm-btn.cancel {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
}

.focus-confirm-btn.confirm {
    background: rgba(255, 80, 80, 0.25);
    border: 1px solid rgba(255, 80, 80, 0.3);
    color: #ff7878;
}

/* ========== 语音提示 Mini Toast ========== */
.cue-mini-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 
        0 0 30px rgba(255, 26, 77, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.cue-mini-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* 番茄钟提示文案激活效果 */
.pomodoro-quote.cue-active {
    animation: cueHighlight 0.3s ease;
}

@keyframes cueHighlight {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); color: var(--red-light); }
    100% { transform: scale(1); }
}

/* ========== 效率互动设置区块 ========== */
.settings-group.efficiency-settings {
    margin-top: 20px;
}

.setting-slider-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.setting-slider-label {
    font-size: 15px;
    color: var(--text-secondary);
}

.setting-slider-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.setting-slider {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    outline: none;
}

.setting-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(145deg, var(--red-light), var(--red-primary));
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 26, 77, 0.4);
}

.setting-slider-value {
    font-size: 13px;
    color: var(--text-muted);
    min-width: 32px;
    text-align: right;
}
