* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== 全局变量 ==================== */
:root {
    --primary: #ff6b9d;
    --primary-dark: #e0557f;
    --gold: #d4a574;
    --gold-light: #f0d6b8;
    --bg-dark: #1a1a2e;
    --bg-mid: #16213e;
    --bg-light: #0f3460;
    --text: #ffffff;
    --text-muted: rgba(255,255,255,0.6);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.3);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 20px;
    --radius-xl: 25px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==================== 首页样式 ==================== */
.home-page {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    min-height: 100dvh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

/* 背景粒子 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: floatUp 6s ease-in infinite;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1.5);
    }
}

.home-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.home-content {
    text-align: center;
    width: 100%;
    max-width: 1000px;
}

.home-header {
    margin-bottom: 40px;
}

.home-title {
    font-size: clamp(28px, 5vw, 56px);
    color: #fff;
    margin-bottom: 10px;
    font-weight: 300;
    letter-spacing: 4px;
    text-shadow: 0 2px 20px rgba(255, 107, 157, 0.3);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 2px 20px rgba(255, 107, 157, 0.3); }
    50% { text-shadow: 0 2px 40px rgba(255, 107, 157, 0.6), 0 0 80px rgba(255, 107, 157, 0.2); }
}

.home-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: clamp(14px, 2vw, 20px);
    margin-bottom: 15px;
    letter-spacing: 3px;
    font-weight: 300;
}

.home-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.divider-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
}

.divider-icon {
    color: var(--primary);
    font-size: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.album-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.album-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    min-height: 420px;
    -webkit-tap-highlight-color: transparent;
    border: 1px solid rgba(255,255,255,0.05);
}

.album-card:active {
    transform: scale(0.97);
}

.album-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px rgba(255, 107, 157, 0.1);
}

.album-card:hover .album-card-bg {
    transform: scale(1.1);
}

.album-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}

.album-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.4) 40%,
        rgba(0,0,0,0.1) 70%,
        rgba(0,0,0,0.2) 100%
    );
}

.album-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    padding: 40px 30px;
    text-align: center;
}

.album-icon {
    font-size: clamp(45px, 8vw, 70px);
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    animation: iconBounce 4s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.album-title {
    color: #fff;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    letter-spacing: 2px;
}

.album-desc {
    color: rgba(255,255,255,0.7);
    font-size: clamp(12px, 1.5vw, 15px);
    margin-bottom: 6px;
    letter-spacing: 1px;
    font-weight: 300;
}

.album-count {
    color: var(--gold-light);
    font-size: 13px;
    margin-bottom: 20px;
    padding: 4px 12px;
    background: rgba(0,0,0,0.3);
    border-radius: 20px;
    border: 1px solid rgba(212, 167, 116, 0.3);
}

.album-btn {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 12px 28px;
    border-radius: 50px;
    font-size: clamp(14px, 1.5vw, 16px);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.album-card:hover .album-btn {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.2);
}

.album-btn svg {
    transition: transform 0.3s ease;
}

.album-card:hover .album-btn svg {
    transform: translateX(3px);
}

.home-footer {
    margin-top: 40px;
    color: rgba(255,255,255,0.3);
    font-size: 13px;
    letter-spacing: 2px;
}

/* ==================== 首页响应式 ==================== */
@media (max-width: 1024px) and (min-width: 769px) {
    .album-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 15px;
    }
    .album-card {
        min-height: 380px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .home-container { padding: 15px; }
    .home-header { margin-bottom: 20px; }
    .album-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .album-card {
        min-height: 260px;
        border-radius: var(--radius-md);
    }
    .album-card-content { padding: 20px 15px; }
}

@media (max-width: 768px) and (orientation: portrait) {
    .home-container {
        padding: 30px 20px;
        align-items: flex-start;
        padding-top: 60px;
    }
    .home-header { margin-bottom: 30px; }
    .album-cards {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .album-card { min-height: 350px; }
}

@media (max-width: 480px) {
    .home-container { padding: 20px 15px; padding-top: 40px; }
    .home-header { margin-bottom: 25px; }
    .album-cards { gap: 20px; padding: 5px; }
    .album-card {
        min-height: 300px;
        border-radius: var(--radius-md);
    }
    .album-card-content { padding: 25px 20px; }
    .divider-line { width: 40px; }
}

@media (max-width: 360px) {
    .album-card { min-height: 250px; }
    .album-card-content { padding: 20px 15px; }
}

@media (min-width: 1400px) {
    .home-content { max-width: 1200px; }
    .album-cards { gap: 40px; }
    .album-card { min-height: 500px; border-radius: var(--radius-xl); }
}

/* ==================== 浏览器基础样式 ==================== */
body {
    background: #000;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    position: relative;
}

/* ==================== 加载进度条 ==================== */
.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.1);
    z-index: 100;
    transition: opacity 0.5s ease;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #ffd93d, var(--primary));
    background-size: 200% 100%;
    animation: progressGlow 2s linear infinite;
    transition: width 0.3s ease;
    border-radius: 0 2px 2px 0;
}

@keyframes progressGlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.progress-text {
    position: absolute;
    top: 8px;
    right: 15px;
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    background: rgba(0,0,0,0.5);
    padding: 2px 8px;
    border-radius: 10px;
}

/* ==================== 音乐控制 ==================== */
.music-controls {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 8px;
}

.music-btn {
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
    overflow: hidden;
}

.music-btn.playing {
    background: rgba(255, 107, 157, 0.3);
    border-color: rgba(255, 107, 157, 0.5);
    animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 157, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 107, 157, 0); }
}

.music-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.music-btn:active {
    transform: scale(0.95);
}

.music-volume {
    display: flex;
    align-items: center;
}

.music-volume input[type="range"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 80px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.music-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    border: none;
}

.music-volume input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    border: none;
}

/* 音乐选择弹窗 */
.music-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.music-modal.active {
    opacity: 1;
    visibility: visible;
}

.music-modal-content {
    background: rgba(30,30,50,0.95);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 25px;
    width: 90%;
    max-width: 400px;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.music-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.music-modal-header h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}

.music-modal-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.music-modal-close:hover {
    color: #fff;
}

.music-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.music-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.03);
    border: 1px solid transparent;
}

.music-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.music-item.active {
    background: rgba(255, 107, 157, 0.15);
    border-color: rgba(255, 107, 157, 0.3);
    color: #fff;
}

.music-item-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.music-item-name {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== 返回按钮 ==================== */
.back-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 25;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.back-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(-3px);
}

.back-btn:active {
    transform: scale(0.95);
}

/* ==================== 主视图 ==================== */
.viewer {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #000;
}

/* ==================== 图片容器（支持缩放） ==================== */
.img-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slides-container {
    display: flex;
    height: 100%;
    will-change: transform;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 背景图片层 */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(25px);
    opacity: 0.25;
    transform: scale(1.15);
    transition: opacity 0.5s ease;
    z-index: 1;
}

/* 主图片 */
.slide img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center center;
    cursor: grab;
}

.slide img.loaded {
    opacity: 1;
    transform: scale(1);
}

/* 加载指示器 */
.loading-indicator {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: opacity 0.4s ease;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: rgba(255,255,255,0.8);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== 导航按钮 ==================== */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 15;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.5;
    -webkit-tap-highlight-color: transparent;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.2);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.nav-btn:active {
    transform: translateY(-50%) scale(0.9);
}

.prev-btn { left: 20px; padding-right: 3px; }
.next-btn { right: 20px; padding-left: 3px; }

/* ==================== 顶部信息栏 ==================== */
.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 15;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 100%);
    pointer-events: none;
}

.counter {
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    pointer-events: auto;
}

.image-name {
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    pointer-events: auto;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== 滑动指示器 ==================== */
.slide-indicators {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 15;
    pointer-events: auto;
}

.indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.indicator-dot.active {
    background: #fff;
    width: 20px;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(255,255,255,0.5);
}

.indicator-dot:hover {
    background: rgba(255,255,255,0.6);
}

/* ==================== 浏览器标题 ==================== */
.viewer-title {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
    color: rgba(255,255,255,0.2);
    font-size: 13px;
    letter-spacing: 10px;
    z-index: 5;
    pointer-events: none;
    white-space: nowrap;
}

/* ==================== 缩略图栏 ==================== */
.thumbnail-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 15px 0;
    z-index: 20;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.thumbnail-bar.active {
    transform: translateY(0);
}

.thumbnail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 10px;
}

.thumbnail-title {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.thumbnail-close {
    color: rgba(255,255,255,0.6);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.thumbnail-close:hover { color: #fff; }

.thumbnail-container {
    display: flex;
    gap: 8px;
    padding: 0 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.thumbnail-container::-webkit-scrollbar { height: 4px; }
.thumbnail-container::-webkit-scrollbar-track { background: transparent; }
.thumbnail-container::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

.thumbnail {
    width: 60px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.thumbnail:hover {
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-4px);
}

.thumbnail.active {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 107, 157, 0.5);
    transform: translateY(-4px);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== 底部控制 ==================== */
.bottom-controls {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 15;
    transition: bottom 0.4s ease;
}

.bottom-controls.shifted {
    bottom: 130px;
}

.control-btn {
    background: rgba(255,255,255,0.08);
    color: white;
    border: 1px solid rgba(255,255,255,0.12);
    padding: 9px 16px;
    border-radius: 25px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    -webkit-tap-highlight-color: transparent;
}

.control-btn:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.control-btn:active {
    transform: scale(0.95);
}

/* ==================== 提示文字 ==================== */
.hint-text {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    z-index: 5;
    pointer-events: none;
    transition: opacity 1s ease;
}

/* ==================== 长按菜单 ==================== */
.context-menu {
    position: fixed;
    z-index: 50;
    background: rgba(20,20,35,0.95);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.context-menu.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.context-menu-item {
    padding: 10px 15px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.context-menu-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

/* ==================== Toast 提示 ==================== */
@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ==================== 响应式 - 浏览器 ==================== */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-btn { width: 46px; height: 46px; font-size: 26px; }
    .thumbnail { width: 56px; height: 74px; }
    .music-volume input[type="range"] { width: 60px; }
}

@media (max-width: 768px) {
    .viewer-title { display: none; }
    
    .back-btn {
        top: 10px; left: 10px;
        padding: 6px 12px; font-size: 12px;
    }
    
    .music-controls {
        top: 10px; right: 10px; gap: 5px;
    }
    
    .music-btn {
        width: 34px; height: 34px; font-size: 12px;
    }
    
    .music-volume input[type="range"] { width: 50px; }
    
    .nav-btn {
        width: 40px; height: 40px;
        font-size: 22px; opacity: 0.6;
    }
    
    .prev-btn { left: 8px; }
    .next-btn { right: 8px; }
    
    .top-bar { padding: 12px 15px; }
    .counter { font-size: 11px; padding: 5px 10px; }
    .image-name { font-size: 10px; max-width: 130px; }
    
    .thumbnail { width: 50px; height: 66px; }
    .thumbnail-container { gap: 6px; padding: 0 15px; }
    
    .slide-indicators { bottom: 70px; }
    .bottom-controls { bottom: 18px; gap: 8px; }
    .bottom-controls.shifted { bottom: 115px; }
    .control-btn { padding: 7px 12px; font-size: 11px; }
    .hint-text { bottom: 75px; font-size: 10px; }
}

@media (max-width: 480px) {
    .nav-btn {
        width: 36px; height: 36px;
        font-size: 20px; opacity: 0.7;
    }
    .prev-btn { left: 5px; }
    .next-btn { right: 5px; }
    
    .thumbnail { width: 44px; height: 58px; }
    .control-btn { padding: 6px 10px; font-size: 10px; }
    .slide-indicators { bottom: 65px; gap: 4px; }
    .indicator-dot { width: 5px; height: 5px; }
    
    .music-volume { display: none; }
}

@media (max-width: 360px) {
    .nav-btn { width: 32px; height: 32px; font-size: 18px; }
    .thumbnail { width: 40px; height: 52px; }
}

@media (max-width: 768px) and (orientation: landscape) {
    .viewer-title {
        display: block;
        font-size: 10px;
        letter-spacing: 6px;
        left: 8px;
    }
    .thumbnail { width: 46px; height: 60px; }
    .bottom-controls.shifted { bottom: 105px; }
}

@media (min-width: 1400px) {
    .nav-btn { width: 60px; height: 60px; font-size: 34px; }
    .prev-btn { left: 40px; }
    .next-btn { right: 40px; }
    .thumbnail { width: 72px; height: 94px; }
    .counter { font-size: 15px; padding: 8px 18px; }
    .control-btn { padding: 12px 24px; font-size: 15px; }
}

/* ==================== 触摸设备 ==================== */
@media (hover: none) and (pointer: coarse) {
    .album-card:hover { transform: none; }
    .album-card:active { transform: scale(0.97); }
    .album-card:hover .album-card-bg { transform: none; }
    .album-card:active .album-card-bg { transform: scale(1.05); }
    
    .nav-btn:hover { transform: translateY(-50%); }
    .nav-btn:active { transform: translateY(-50%) scale(0.9); }
    
    .control-btn:hover { transform: none; }
    .control-btn:active { transform: scale(0.95); }
    
    .thumbnail:hover { transform: none; }
    .thumbnail:active { transform: scale(0.95); }
}

/* ==================== 暗色模式 ==================== */
@media (prefers-color-scheme: dark) {
    .home-page {
        background: linear-gradient(135deg, #0a0a1a 0%, #0d1b2a 50%, #1b2838 100%);
    }
}

/* ==================== 减少动画 ==================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}