* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
    min-height: 100vh;
    padding: 20px;
    color: #1a1a2e;
    position: relative;
    overflow-x: hidden;
}

/* 动态背景容器 */
.dynamic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* 掉落字母效果 */
.falling-letter {
    position: absolute;
    font-size: 24px;
    font-weight: 300;
    color: rgba(56, 189, 248, 0.15);
    animation: fall linear infinite;
    transform-origin: center;
    font-family: 'Georgia', serif;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 励志名言流效果 */
.floating-quote {
    position: absolute;
    font-size: 14px;
    font-weight: 400;
    color: rgba(71, 85, 105, 0.95);
    animation: floatQuote linear infinite;
    white-space: nowrap;
    font-style: italic;
    font-family: 'Georgia', serif;
    letter-spacing: 0.5px;
}

@keyframes floatQuote {
    0% {
        transform: translateX(100vw) translateY(0px);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translateX(-100%) translateY(20px);
        opacity: 0;
    }
}

/* 轻微的光点效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(56, 189, 248, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(14, 165, 233, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(125, 211, 252, 0.01) 0%, transparent 60%);
    pointer-events: none;
    z-index: -2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    padding: 40px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    backdrop-filter: blur(0.5px) saturate(1.01);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

h1 {
    text-align: center;
    background: linear-gradient(135deg, #0369a1 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
    font-size: 3.2em;
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #0369a1 0%, #1e40af 100%);
    border-radius: 2px;
    opacity: 0.6;
}

/* 模式切换器 */
.mode-switcher {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(0.5px) saturate(1.01);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.mode-btn {
    padding: 16px 32px;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 16px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
}

.mode-btn.active {
    background: linear-gradient(135deg, #0369a1 0%, #1e40af 100%);
    color: white;
    box-shadow: 
        0 8px 25px rgba(3, 105, 161, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transform: translateY(-1px);
}

.mode-btn:not(.active):hover {
    background: rgba(3, 105, 161, 0.1);
    color: #0369a1;
    transform: translateY(-1px);
}

/* 播放器区域 */
.player-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 32px;
    border-radius: 28px;
    margin-bottom: 32px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    backdrop-filter: blur(0.5px) saturate(1.01);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.now-playing {
    text-align: center;
    font-size: 1.4em;
    margin-bottom: 32px;
    color: #1e293b;
    min-height: 40px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* 总体进度条容器 */
.overall-progress-container {
    margin-bottom: 32px;
}

.overall-progress {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.progress-segment {
    flex: 1;
    height: 40px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-segment:hover {
    transform: translateY(-2px) scale(1.02);
            box-shadow: 0 12px 32px rgba(3, 105, 161, 0.2);
}

.segment-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(135deg, #00bfff 0%, #b074ff 100%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
}

.segment-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: #000807;
    z-index: 1;
    white-space: nowrap;
    font-weight: 600;
}

.overall-progress-bar {
    height: 8px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) inset;
}

.overall-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0;
    transition: width 0.1s linear;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

/* 普通进度条 */
.progress-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
    color: #64748b;
    font-weight: 600;
}

.progress-bar-wrapper {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 12px;
    height: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) inset;
}

.progress-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    transition: width 0.1s linear;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.progress-time-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

#progressBar {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border-radius: 12px;
    outline: none;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

/* 进度条轨道样式 */
#progressBar::-webkit-slider-track {
    background: transparent;
    height: 8px;
    border-radius: 12px;
}

#progressBar::-moz-range-track {
    background: transparent;
    height: 8px;
    border-radius: 12px;
    border: none;
}

#progressBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 
        0 4px 12px rgba(102, 126, 234, 0.4),
        0 0 0 3px rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

#progressBar::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 
        0 6px 20px rgba(102, 126, 234, 0.6),
        0 0 0 4px rgba(255, 255, 255, 0.9);
}

/* 控制按钮 */
.controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.controls-row2 {
    margin-bottom: 32px;
}

.control-btn {
    padding: 16px 28px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: #475569;
    border-radius: 16px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    backdrop-filter: blur(0.5px) saturate(1.01);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.control-btn:hover::before {
    left: 100%;
}

.control-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 700;
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transform: scale(1.05);
}

.control-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.control-btn.primary:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.6);
}

/* 音量控制 */
.volume-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #64748b;
    font-weight: 600;
}

#volumeBar {
    width: 120px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 8px;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) inset;
}

#volumeBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 
        0 3px 10px rgba(102, 126, 234, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

#volumeBar::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* 播放列表 */
.playlist-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 28px;
    border-radius: 24px;
    margin-bottom: 28px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    backdrop-filter: blur(0.5px) saturate(1.01);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.playlist-header-row h3 {
    font-size: 1.5em;
    color: #1e293b;
    font-weight: 700;
}

.playlist-btn {
    padding: 12px 24px;
    font-size: 14px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: #475569;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    backdrop-filter: blur(0.5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.playlist-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.playlist {
    max-height: 320px;
    overflow-y: auto;
    border-radius: 16px;
    background: transparent;
}

.playlist-item {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #475569;
    font-weight: 500;
}

.playlist-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(4px);
    border-color: rgba(102, 126, 234, 0.2);
}

.playlist-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transform: translateX(4px);
}

.playlist-item-remove {
    padding: 6px 12px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.playlist-item-remove:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* 教材列表 */
.books-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 28px;
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    backdrop-filter: blur(0.5px) saturate(1.01);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.books-section h3 {
    font-size: 1.5em;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 24px;
}

.book-item {
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.book-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.book-header:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.units-container {
    display: none;
    padding: 24px;
    background: rgba(248, 250, 252, 0.1);
    backdrop-filter: blur(0.5px) saturate(1.01);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
}

.unit-item {
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(0.5px) saturate(1.01);
}

.unit-header {
    font-weight: 700;
    margin-bottom: 16px;
    color: #374151;
    font-size: 1.1em;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #475569;
    font-weight: 400;
    font-size: 0.8em;
}

.file-item:hover {
    background: rgba(102, 126, 234, 0.08);
    transform: translateX(6px);
    border-color: rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
}

.file-actions button {
    padding: 8px 20px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: #475569;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.file-actions button:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

/* 总体播放模式 */
.overall-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.overall-book-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 28px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    backdrop-filter: blur(0.5px) saturate(1.01);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.overall-book-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s;
}

.overall-book-item:hover::before {
    left: 100%;
}

.overall-book-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
}

.overall-book-item h4 {
    margin-bottom: 20px;
    color: #1e293b;
    font-size: 1.3em;
    font-weight: 700;
}

.play-book-btn {
    padding: 14px 28px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.play-book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.5);
}

.overall-play-all {
    text-align: center;
}

.play-all-books-btn {
    padding: 20px 48px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(102, 126, 234, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
}

.play-all-books-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.play-all-books-btn:hover::before {
    left: 100%;
}

.play-all-books-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 60px rgba(102, 126, 234, 0.6);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(248, 250, 252, 0.8);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* 需要添加JavaScript来创建动态背景 */
@media (max-width: 768px) {
    .container {
        padding: 20px 8px;
        border-radius: 20px;
    }
    
    h1 {
        font-size: 2.4em;
    }
    
    /* 减少各个section的左右padding和margin */
    .player-section {
        padding: 24px 8px;
        margin-bottom: 16px;
    }
    
    .playlist-section {
        padding: 20px 8px;
        margin-bottom: 16px;
    }
    
    .books-section {
        padding: 20px 8px;
    }
    
    /* 减少内部元素的间距 */
    .now-playing {
        margin-bottom: 20px;
    }
    
    .overall-progress-container {
        margin-bottom: 20px;
    }
    
    .progress-container {
        margin-bottom: 20px;
        gap: 6px;
    }
    
    .progress-time-labels {
        font-size: 10px;
    }
    
    .controls {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .controls-row2 {
        margin-bottom: 20px;
    }
    
    /* 按钮保持原始大小 */
    .control-btn {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    .playlist-btn {
        font-size: 14px;
        padding: 12px 24px;
    }
    
    .file-actions button {
        font-size: 14px;
        padding: 8px 20px;
    }
    
    .play-book-btn {
        font-size: 16px;
        padding: 14px 28px;
    }
    
    .play-all-books-btn {
        font-size: 18px;
        padding: 20px 48px;
    }
    
    .overall-books-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .overall-book-item {
        padding: 20px 8px;
        margin-bottom: 1px;
    }
    
    .mode-switcher {
        width: 100%;
        padding: 4px;
        gap: 4px;
    }
    
    .mode-btn {
        flex: 1;
        padding: 10px 12px;
        font-size: 12px;
    }
    
    /* 减少内部元素间距 */
    .book-item {
        margin-bottom: 8px;
    }
    
    .book-header {
        padding: 16px 12px;
        font-size: 1em;
    }
    
    .units-container {
        padding: 16px 8px;
    }
    
    .unit-item {
        margin-bottom: 12px;
        padding: 16px 12px;
    }
    
    .file-item {
        padding: 12px 8px;
        margin-bottom: 4px;
    }
    
    .playlist-item {
        padding: 12px 8px;
        margin-bottom: 4px;
    }
    
    .volume-container {
        gap: 8px;
    }
    
    #volumeBar {
        width: 120px;
    }
}

/* 弹窗和提示 */
.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.98);
    color: #1e293b;
    font-size: 16px;
    padding: 20px 28px;
    border-radius: 16px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.dialog-mask {
    position: fixed;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 9998;
}

.dialog {
    position: fixed;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.98);
    color: #1e293b;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 
        0 20px 80px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    z-index: 9999;
    min-width: 360px;
    text-align: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dialog-btn {
    margin: 0 12px;
    padding: 14px 32px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.dialog-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.5);
}