/* --- 全局与炫光背景 --- */
:root {
    /* 夜间模式颜色 */
    --bg-outside: linear-gradient(135deg, #7c4afc 0%, #f49ee2 100%);
    --app-bg: #151521;
    --sidebar-bg: #1c1c28;
    --card-bg: #222232;
    --text-main: #ffffff;
    --text-muted: #8b8b9e;
    --accent: #9d65ff;
    --border-color: rgba(255,255,255,0.02);
    --input-bg: rgba(255, 255, 255, 0.03);
    --input-border: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0,0,0,0.3);
}

/* 白天模式颜色 */
body.light-mode {
    --app-bg: #f5f7fa;
    --sidebar-bg: #ffffff;
    --card-bg: #ffffff;
    --text-main: #1a1a2e;
    --text-muted: #6b7280;
    --accent: #7c4afc;
    --border-color: rgba(0,0,0,0.08);
    --input-bg: rgba(0, 0, 0, 0.03);
    --input-border: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0,0,0,0.1);
}

body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0a0a0f;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, sans-serif;
    overflow: hidden;
    position: relative;
}

body.light-mode {
    background: #e5e7eb;
}

/* 主题切换全屏遮罩 */
.theme-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--click-x, 50%) var(--click-y, 50%), 
                rgba(255, 255, 255, 0.3) 0%, 
                rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    pointer-events: none;
    z-index: 99999;
    transition: opacity 0.4s ease;
}

.theme-transition-overlay.active {
    opacity: 1;
}

/* 隐藏滚动条但保留滚动功能 */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* --- 应用主窗口 --- */
.app-window {
    width: 100vw;
    height: 100vh;
    background: var(--app-bg);
    display: flex;
    overflow: hidden;
    position: relative;
}

/* --- 左侧边栏 --- */
.sidebar-left {
    width: 280px;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    padding: 25px;
    border-right: 1px solid var(--border-color);
}

body.light-mode .sidebar-left {
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
}

/* 主题切换按钮 - 固定在整个视口的右上角，与搜索栏对齐 */
/* =========================================
   页面切换动画
   ========================================= */

/* 页面加载时的淡入动画 */
body {
    animation: pageEnter 0.4s ease-out;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 页面切换时的淡出效果 */
body.page-exit {
    animation: pageExit 0.3s ease-in forwards;
}

@keyframes pageExit {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* =========================================
   主题切换按钮 - 饱满版昼夜切换开关
   ========================================= */

/* 1. 外层容器：80x44，比例更紧凑饱满 */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 44px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

/* 隐藏真实的选择框 */
.theme-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

/* 2. 胶囊轨道 (默认暗黑模式：发光的星际紫) */
.theme-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    border-radius: 44px; /* 高度的一半 */
    overflow: hidden;
    /* 柔和的外发光与内侧深色包裹阴影 */
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4), 
                0 0 0 1px rgba(255, 255, 255, 0.05),
                0 4px 12px rgba(79, 70, 229, 0.3);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 黑夜星空背景 */
.theme-stars {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-image: radial-gradient(circle at 18px 12px, #ffffff 1px, transparent 1px),
                      radial-gradient(circle at 35px 28px, #ffffff 1.5px, transparent 1.5px),
                      radial-gradient(circle at 45px 15px, #ffffff 1px, transparent 1px);
    opacity: 1;
    transition: opacity 0.4s ease;
}

/* 3. 极其饱满的滑块 (贴紧轨道边缘) */
.theme-thumb {
    position: absolute;
    top: 3px;  /* 极小的上下边距 */
    left: 3px;
    width: 38px; /* 极大的圆球宽度 */
    height: 38px;
    border-radius: 50%;
    background-color: #f8fafc;
    /* 底部内阴影增加立体厚度 */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 
                inset 0 -2px 4px rgba(0,0,0,0.1); 
    display: flex;
    justify-content: center;
    align-items: center;
    /* 苹果级顺滑Q弹回弹曲线 */
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), 
                background-color 0.5s ease;
}

/* 图标基础控制 */
.theme-icon {
    position: absolute;
    width: 20px;
    height: 20px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 默认状态：月亮 */
.theme-icon.moon {
    color: #4338ca;
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-icon.sun {
    color: #f59e0b;
    opacity: 0;
    transform: rotate(-90deg) scale(0.2);
}

/* =========================================
   4. 勾选状态 (白天模式) 纯 CSS 动画触发
   ========================================= */

/* 轨道变蓝天 */
.theme-checkbox:checked + .theme-slider {
    background: linear-gradient(135deg, #60a5fa, #3b82f6); 
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1), 
                0 0 0 1px rgba(255, 255, 255, 0.4),
                0 4px 12px rgba(96, 165, 250, 0.4);
}

/* 隐藏星星 */
.theme-checkbox:checked + .theme-slider .theme-stars {
    opacity: 0;
}

/* 饱满滑块平移计算：宽度 80 - 滑块 38 - 左距 3 - 右距 3 = 36px */
.theme-checkbox:checked + .theme-slider .theme-thumb {
    transform: translateX(36px);
    background-color: #ffffff;
}

/* 日月星辰轮转特效 */
.theme-checkbox:checked + .theme-slider .theme-thumb .theme-icon.moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.2);
}

.theme-checkbox:checked + .theme-slider .theme-thumb .theme-icon.sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* 鼠标悬停时的诱导光晕 */
.theme-slider:hover .theme-thumb {
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4), 
                inset 0 -2px 4px rgba(0,0,0,0.1);
}

/* ==========================================
   Privé Logo 样式 - 小尺寸标题版
   ========================================== */
.prive-header-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 0 10px 0;
    margin-bottom: 15px;
}

.prive-icon-small {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4)) drop-shadow(0 0 8px rgba(212, 175, 55, 0.06));
}

.prive-title-small {
    font-family: "Times New Roman", Times, serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    letter-spacing: 8px !important;
    margin: 0 0 0 8px !important;
    line-height: 1 !important;
    background: linear-gradient(135deg, #FFF2C8 0%, #D4AF37 50%, #8A5A19 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
}

.nav-title { color: var(--text-main); font-size: 20px; font-weight: bold; margin-bottom: 25px; margin-top: 0; transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);}
.menu { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.menu-group { display: flex; flex-direction: column; }
.menu-item {
    display: flex; align-items: center; gap: 15px;
    padding: 12px 16px; color: var(--text-muted);
    text-decoration: none; border-radius: 12px;
    font-size: 15px; font-weight: 500; transition: all 0.3s;
}
.menu-item.has-submenu {
    justify-content: space-between;
}
.menu-item-content {
    display: flex; align-items: center; gap: 15px;
}
.chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.menu-item.has-submenu.expanded .chevron {
    transform: rotate(180deg);
}
.menu-item.active, .menu-item:hover {
    background: rgba(157, 101, 255, 0.1);
    color: var(--accent);
}

body.light-mode .menu-item.active,
body.light-mode .menu-item:hover {
    background: rgba(124, 74, 252, 0.08);
}
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 48px;
    margin-top: 8px;
}
.submenu.expanded {
    max-height: 400px;
    padding-bottom: 8px;
}
.submenu-item {
    display: block;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    border-radius: 10px;
    transition: all 0.3s;
    margin-bottom: 6px;
    line-height: 1.4;
}
.submenu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    transform: translateX(4px);
}

.submenu-item.active {
    background: rgba(124, 74, 252, 0.15);
    color: #7c4afc;
    font-weight: 500;
    transform: translateX(4px);
}

body.light-mode .submenu-item:hover {
    background: rgba(124, 74, 252, 0.08);
}

body.light-mode .submenu-item.active {
    background: rgba(124, 74, 252, 0.2);
    color: #7c4afc;
}

/* ========================================= 
   黑胶播放器样式
========================================= */
.hifi-player-wrapper {
    --track-theme: #00f3ff;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    color: #fff;
    user-select: none;
    position: relative;
    width: 100%;
    height: 120px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.9);
    background-color: #111116;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    margin-top: auto;
}

.ambient-light {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, var(--track-theme) 0%, transparent 40%);
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
    animation: pulseGlow 4s ease-in-out infinite alternate;
    animation-play-state: paused;
}

.is-playing .ambient-light {
    animation-play-state: running;
    opacity: 0.4;
}

@keyframes pulseGlow {
    0% { transform: scale(0.8); }
    100% { transform: scale(1.1); }
}

.hifi-board {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    box-sizing: border-box;
    z-index: 10;
}

.visual-area {
    position: relative;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    z-index: 20;
}

.cover-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    z-index: 10;
    overflow: hidden;
    box-shadow: 5px 0 20px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    background-color: #1a1a24;
}

.album-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.cover-changing {
    opacity: 0;
    filter: blur(4px);
    transform: scale(0.9);
}

.cover-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 40%);
    pointer-events: none;
}

.vinyl-drawer {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 66px;
    height: 66px;
    z-index: 5;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vinyl-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #111;
    box-shadow: 0 0 10px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    animation: spinRecord 5s linear infinite;
    animation-play-state: paused;
}

.vinyl-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.vinyl-disc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
    background-image: repeating-radial-gradient(rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px, rgba(0,0,0,0.5) 3px, rgba(0,0,0,0.5) 4px);
}

.vinyl-hole-center {
    position: absolute;
    z-index: 5;
    width: 18px;
    height: 18px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vinyl-hole {
    width: 6px;
    height: 6px;
    background: #0b0c10;
    border-radius: 50%;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.9);
}

.vinyl-drawer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: conic-gradient(from 20deg, transparent 0deg, rgba(255,255,255,0.2) 20deg, transparent 40deg, transparent 180deg, rgba(255,255,255,0.2) 200deg, transparent 220deg);
    pointer-events: none;
    z-index: 10;
    mix-blend-mode: overlay;
}

@keyframes spinRecord {
    100% { transform: rotate(360deg); }
}

.is-playing .vinyl-drawer {
    transform: translateX(40px);
}

.is-playing .vinyl-disc {
    animation-play-state: running;
}

.info-area {
    margin-left: 45px;
    flex: 1;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 0;
}

.title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.track-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.eq-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.eq {
    width: 3px;
    height: 3px;
    background: var(--track-theme);
    border-radius: 2px;
    transition: background 0.5s ease;
    box-shadow: 0 0 8px var(--track-theme);
}

.is-playing .eq {
    animation: eqBounce 1s ease-in-out infinite alternate;
}

.is-playing .eq:nth-child(1) {
    animation-delay: 0.1s;
    animation-duration: 0.6s;
}

.is-playing .eq:nth-child(2) {
    animation-delay: 0.3s;
    animation-duration: 0.8s;
}

.is-playing .eq:nth-child(3) {
    animation-delay: 0.0s;
    animation-duration: 0.5s;
}

@keyframes eqBounce {
    0% { height: 3px; }
    100% { height: 12px; filter: brightness(1.5); }
}

.track-artist {
    color: #8b8b9e;
    font-size: 11px;
    margin: 0;
    font-weight: 500;
}

.progress-container {
    margin-top: 6px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(0,0,0,0.5);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--track-theme);
    border-radius: 2px;
    box-shadow: 0 0 12px var(--track-theme);
    transition: background 0.5s ease;
}

.is-playing .progress-fill {
    animation: progressMove 120s linear infinite;
}

@keyframes progressMove {
    0% { width: 0%; }
    100% { width: 100%; }
}

.time-row {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #6b6b80;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
}

.controls-area {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    z-index: 20;
    flex-shrink: 0;
}

.ctrl-btn {
    background: transparent;
    border: none;
    color: #a1a1aa;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    padding: 5px;
}

.ctrl-btn:hover {
    color: #fff;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.4));
}

.ctrl-btn:active {
    transform: scale(0.9);
}

.play-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a2a35 0%, #111116 100%);
    border: 1px solid #333;
    color: #fff;
    padding: 0;
    box-shadow: 0 6px 12px rgba(0,0,0,0.6), inset 0 1px 1px rgba(255,255,255,0.1), inset 0 -1px 2px rgba(0,0,0,0.4);
}

.play-btn:hover {
    border-color: var(--track-theme);
    box-shadow: 0 0 20px var(--track-theme), inset 0 1px 1px rgba(255,255,255,0.1);
}

.play-btn:active {
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.8);
}

.icon-pause {
    display: none;
}

.is-playing .icon-play {
    display: none;
}

.is-playing .icon-pause {
    display: block;
}

.ctrl-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

body.light-mode .hifi-player-wrapper {
    background-color: #f5f5f7;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

body.light-mode .hifi-board {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(240,240,245,0.9) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .track-title {
    color: #1a1a2e;
}

body.light-mode .track-artist {
    color: #6b6b80;
}

body.light-mode .ctrl-btn {
    color: #6b6b80;
}

body.light-mode .ctrl-btn:hover {
    color: #1a1a2e;
}

body.light-mode .play-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f5 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1a1a2e;
}

body.light-mode .time-row {
    color: #8b8b9e;
}

/* --- 中间主内容区 --- */
.main-content {
    flex: 1;
    padding: 30px 40px;
    overflow-y: auto;
}

body.light-mode .main-content {
    background: #f5f7fa;
}
.top-bar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 30px; 
}

.search-box-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}
.search-box {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 12px 20px;
    width: 500px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border-color);
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode .search-box {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    width: 100%;
    font-size: 14px;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

/* 顶部大横幅 - 不对称极简电影 Banner */
.hero-banner {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 240px;
    border-radius: 24px;
    background: linear-gradient(135deg, #13141c 0%, #0a0a0f 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

body.light-mode .hero-banner {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* --- 1. 左侧：3D 层叠电影海报 --- */
.poster-array {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    /* 遮罩渐变：让海报向右完美消融进黑暗中 */
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 95%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 95%);
    pointer-events: none;
}

.poster-card {
    width: 150px;
    height: 220px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    position: absolute;
    box-shadow: 20px 0 40px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
}

.poster-1 {
    left: 60px;
    transform: scale(0.85) rotate(-5deg);
    z-index: 1;
    filter: brightness(0.3);
    background-image: url('https://images.unsplash.com/photo-1534447677768-be436bb09401?auto=format&fit=crop&w=400&q=80');
}

.poster-2 {
    left: 140px;
    transform: scale(0.95) rotate(-2deg);
    z-index: 2;
    filter: brightness(0.6);
    background-image: url('https://images.unsplash.com/photo-1509316785289-025f5b846b35?auto=format&fit=crop&w=400&q=80');
}

.poster-3 {
    left: 230px;
    transform: scale(1.05) rotate(2deg);
    z-index: 3;
    filter: brightness(0.9);
    background-image: url('https://images.unsplash.com/photo-1555580399-ca1eb761611d?auto=format&fit=crop&w=400&q=80');
}

/* --- 2. 背景网格与微光 --- */
.tech-lines {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60%;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    mask-image: radial-gradient(circle at 80% 50%, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
    -webkit-mask-image: radial-gradient(circle at 80% 50%, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
}

.spotlight {
    position: absolute;
    top: -150px;
    right: 100px;
    width: 300px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    transform: rotate(-45deg);
    pointer-events: none;
    z-index: 5;
}

/* --- 3. 右侧：极其纯粹的巨幕排版 --- */
.typography-zone {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

/* 小蓝标提升细节质感 */
.tech-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #38bdf8;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.tech-tag::after {
    content: '';
    width: 50px;
    height: 2px;
    background: rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

/* 核心标题区 */
.title-wrapper {
    position: relative;
}

/* 放大水印字母，增加透明度对比，营造强烈的空间撕裂感 */
.huge-bg-text {
    font-size: 140px;
    font-weight: 900;
    line-height: 0.75;
    letter-spacing: -4px;
    color: rgba(255, 255, 255, 0.04);
    text-transform: uppercase;
    position: absolute;
    right: -20px;
    top: -70px;
    white-space: nowrap;
    z-index: -1;
}

.main-title {
    margin: 0;
    font-size: 58px;
    font-weight: 800;
    letter-spacing: 8px;
    color: #ffffff;
    text-shadow: 0 15px 35px rgba(0,0,0,0.9);
    /* 银灰色渐变，自带高级感 */
    background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

body.light-mode .main-title {
    background: linear-gradient(180deg, #1a1a2e 0%, #6b7280 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.light-mode .huge-bg-text {
    color: rgba(0, 0, 0, 0.03);
}

body.light-mode .tech-tag {
    color: #7c4afc;
}

body.light-mode .tech-tag::after {
    background: rgba(124, 74, 252, 0.6);
    box-shadow: 0 0 8px rgba(124, 74, 252, 0.4);
}

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-header h3 { color: var(--text-main); margin: 0; font-size: 18px; transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);}
.section-header .see-all { color: var(--text-muted); text-decoration: none; font-size: 13px; font-weight: 500;}

.filter-controls {
    display: flex;
    gap: 10px;
}

.filter-select {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 12px;
    color: var(--text-main);
    font-size: 13px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
}

.filter-select:hover {
    background: rgba(157, 101, 255, 0.08);
    border-color: var(--accent);
}

body.light-mode .filter-select:hover {
    background: rgba(124, 74, 252, 0.05);
}

.filter-select:focus {
    border-color: var(--accent);
    background: rgba(157, 101, 255, 0.08);
}

body.light-mode .filter-select:focus {
    background: rgba(124, 74, 252, 0.05);
}

.filter-select option {
    background: var(--card-bg);
    color: var(--text-main);
}

/* --- 电影卡片 --- */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    align-items: start;
}

@media (max-width: 1600px) {
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .movie-grid {
        grid-template-columns: 1fr;
    }
}

.movie-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
                background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    display: flex;
    gap: 20px;
    align-items: center;
    min-height: 140px;
}

.movie-card:hover {
    transform: translateY(-5px);
    background: var(--card-bg);
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(157, 101, 255, 0.2);
}

body.light-mode .movie-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

body.light-mode .movie-card:hover {
    box-shadow: 0 8px 24px rgba(124, 74, 252, 0.15);
    background: #ffffff;
}

.card-img {
    width: 110px;
    height: 110px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: all 0.4s;
}

.card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s;
}

.card-title {
    color: var(--text-main);
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 6px 0;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.movie-card.expanded .card-title {
    font-size: 24px;
    margin-bottom: 10px;
    word-break: break-word;
    white-space: normal;
}

.card-desc {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0 0 12px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card.expanded .card-desc {
    display: block;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #ddd;
    overflow: visible;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

.card-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rating-badge {
    background: rgba(245, 197, 24, 0.1);
    color: #f5c518;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid rgba(245,197,24,0.3);
}

/* 状态徽章（国漫专用） */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

.status-ongoing {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-completed {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-paused {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

body.light-mode .status-ongoing {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

body.light-mode .status-completed {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

body.light-mode .status-paused {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.year-text {
    color: var(--text-muted);
    font-size: 12px;
}

.card-platforms h4 {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
}

.card-platform-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.card-platform-btn {
    padding: 8px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    background: var(--accent);
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-platform-btn:hover {
    background: #b47fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(157, 101, 255, 0.4);
}

/* --- 右侧边栏 (常驻完美融合设计) --- */
.sidebar-right {
    width: 340px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 30px;
    box-sizing: border-box;
    /* 核心 1：拒绝死黑。使用极其深邃的午夜紫向下的渐变 */
    background: linear-gradient(180deg, #11111a 0%, #08080d 100%);
    /* 核心 2：拒绝生硬的分割线！用巨大的左侧内阴影制造深度融合感 */
    box-shadow: -20px 0 50px rgba(0,0,0,0.5);
    border-left: none;
    overflow-y: auto;
    position: relative;
    z-index: 10;
}

body.light-mode .sidebar-right {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: -2px 0 10px rgba(0,0,0,0.05);
}

/* 只在未登录状态（有view-container时）显示极光背景 */
.sidebar-right:has(.view-container) {
    justify-content: center;
}

/* 为右侧边栏添加微妙的光晕效果（仅未登录状态） */
.sidebar-right:has(.view-container)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 30%, rgba(102, 126, 234, 0.03), transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.auth-section {
    width: 100%;
    position: relative;
    z-index: 10; /* 确保在光晕效果之上 */
}

/* =========================================
   动态极光流体背景 (无界深海极光)
   ========================================= */
.ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 700px;
    height: 700px;
    transform: translate(-50%, -50%);
    /* 紫蓝色的柔和极光 */
    background: radial-gradient(circle at 30% 40%, rgba(102, 126, 234, 0.25), transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(118, 75, 162, 0.3), transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15), transparent 60%);
    filter: blur(90px);
    z-index: 1;
    animation: glowBreathe 15s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes glowBreathe {
    0% { transform: translate(-50%, -50%) scale(0.9) rotate(0deg); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.2) rotate(15deg); opacity: 1; }
}

/* =========================================
   无容器纯排版区 - 视图切换容器
   ========================================= */
.view-container {
    position: relative;
    z-index: 10; /* 确保在光晕效果之上 */
    width: 100%;
    max-width: 340px;
    height: 480px; /* 设定固定高度，防止切换时抖动 */
    padding: 0;
    /* 设定3D透视，为切换动画做准备 */
    perspective: 1000px;
}

/* 两个表单面板 (绝对定位重叠) */
.form-view {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    padding: 0 20px; /* 在form-view内部添加左右padding */
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    /* 默认隐藏所有的面板 */
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px) scale(0.95);
}

/* 当前激活的面板才显示 */
.form-view.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* 退出的面板往上飘走 */
.form-view.exit {
    transform: translateY(-30px) scale(0.95);
    opacity: 0;
}

.glass-panel {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    /* 悬浮入场动画 */
    animation: floatUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

@keyframes floatUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 可爱的小猫咪 --- */
.cat-container {
    position: relative;
    cursor: pointer;
    width: 180px;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    margin: 0 auto 20px;
    animation: bodyBreathe 3.5s ease-in-out infinite;
    z-index: 10; /* 确保在光晕效果之上 */
}

.magic-cat {
    width: 160px;
    height: 160px;
    overflow: visible;
    transform-origin: bottom center;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
    transition: filter 0.3s;
}

.cat-container:hover .magic-cat {
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 25px rgba(255, 182, 193, 0.3));
}

.pupil {
    transition: transform 0.08s ease-out;
}

.cat-tail {
    transform-origin: 150px 150px;
    animation: tailWag 4s ease-in-out infinite;
}

.cat-ear-left {
    transform-origin: 50px 50px;
    animation: earTwitch 5s infinite;
}

.cat-ear-right {
    transform-origin: 150px 50px;
    animation: earTwitch 5s infinite 0.5s;
}

.cat-shadow {
    width: 90px;
    height: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    margin-top: 5px;
    filter: blur(5px);
    animation: shadowBreathe 3.5s ease-in-out infinite;
}

.meow-bubble {
    position: absolute;
    top: 10px;
    right: -10px;
    background: white;
    color: #ff4757;
    padding: 6px 12px;
    border-radius: 15px 15px 15px 0;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(10px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    z-index: 10;
}

.cat-container.jump-anim .meow-bubble {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 爪子捂眼动画 */
.paw-left {
    transform-origin: 75px 180px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.paw-right {
    transform-origin: 125px 180px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cat-container.blindfold .paw-left {
    transform: translate(-3px, -80px) rotate(45deg);
}

.cat-container.blindfold .paw-right {
    transform: translate(3px, -80px) rotate(-45deg);
}

/* 动画关键帧 */
@keyframes bodyBreathe {
    0%, 100% { transform: translateY(0) scale(1, 1); }
    50% { transform: translateY(-6px) scale(1.02, 0.98); }
}

@keyframes shadowBreathe {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(0.85); opacity: 0.15; }
}

@keyframes tailWag {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(18deg); }
}

@keyframes earTwitch {
    0%, 90%, 100% { transform: rotate(0deg); }
    93% { transform: rotate(-5deg); }
    96% { transform: rotate(5deg); }
}

/* 跳跃动画 */
.cat-container.jump-anim .magic-cat {
    animation: happyJump 1s cubic-bezier(0.28, 0.84, 0.42, 1) forwards;
}

.cat-container.jump-anim .cat-shadow {
    animation: shadowJump 1s cubic-bezier(0.28, 0.84, 0.42, 1) forwards;
}

@keyframes happyJump {
    0%   { transform: scale(1, 1) translateY(0); }
    15%  { transform: scale(1.2, 0.8) translateY(15px); }
    40%  { transform: scale(0.85, 1.15) translateY(-80px); }
    55%  { transform: scale(1.1, 0.9) translateY(0); }
    70%  { transform: scale(0.95, 1.05) translateY(-30px); }
    85%  { transform: scale(1.05, 0.95) translateY(0); }
    100% { transform: scale(1, 1) translateY(0); }
}

@keyframes shadowJump {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    40%, 70% { transform: scale(0.3); opacity: 0.1; }
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}
.auth-header h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0 0 10px 0;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

body.light-mode .auth-header h1 {
    color: #1a1a2e;
    text-shadow: none;
}

.auth-header p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin: 0;
    font-weight: 400;
    transition: color 0.3s ease;
}

body.light-mode .auth-header p {
    color: rgba(0,0,0,0.5);
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
}

/* --- 悬浮立体输入框 (无容器版本) --- */
.input-wrapper {
    position: relative;
}

.input-wrapper input,
.glass-input {
    width: 100%;
    box-sizing: border-box;
    height: 54px;
    /* 采用极其通透但带有极微弱白底的颜色，确保在极光中能看清轮廓 */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* 顶部高光增强立体感 */
    border-radius: 14px;
    padding: 0 20px;
    color: var(--text-main);
    font-size: 15px;
    outline: none;
    backdrop-filter: blur(10px); /* 让输入框自己带一点模糊 */
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.light-mode .input-wrapper input,
body.light-mode .glass-input {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    color: #1a1a2e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.input-wrapper input::placeholder,
.glass-input::placeholder {
    color: rgba(255,255,255,0.3);
}

body.light-mode .input-wrapper input::placeholder,
body.light-mode .glass-input::placeholder {
    color: rgba(0,0,0,0.3);
}

/* 选中输入框：边框亮起蓝紫色，整体微微上浮 */
.input-wrapper input:focus,
.glass-input:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2), 0 15px 30px rgba(0,0,0,0.5);
    transform: translateY(-2px);
}

body.light-mode .input-wrapper input:focus,
body.light-mode .glass-input:focus {
    background: rgba(124, 74, 252, 0.03);
    border-color: rgba(124, 74, 252, 0.6);
    box-shadow: 0 0 0 3px rgba(124, 74, 252, 0.1), 0 4px 12px rgba(0,0,0,0.08);
}

.auth-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}
.auth-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
}
.auth-input::placeholder {
    color: var(--text-muted);
}

body.light-mode .auth-input {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1a1a2e;
}

body.light-mode .auth-input:focus {
    background: rgba(124, 74, 252, 0.03);
    border-color: var(--accent);
}

body.light-mode .auth-input::placeholder {
    color: #6b7280;
}
/* =========================================
   登录主按钮 (无界深海极光版本)
   ========================================= */
.action-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btn-primary {
    position: relative;
    width: 100%;
    height: 54px;
    /* 完美还原截图的渐变 */
    background: linear-gradient(90deg, #7c73fa 0%, #4679f8 50%, #8777c5 100%);
    background-size: 200% auto;
    animation: liquidGradient 6s ease infinite;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    /* 提供同色系的质感投影，让按钮在深空背景中"发光" */
    box-shadow: 0 8px 25px rgba(70, 121, 248, 0.4);
    overflow: hidden;
}

/* 按钮悬停时的高光划过特效 */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    transition: 0s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(70, 121, 248, 0.6);
    filter: brightness(1.05);
}

.btn-primary:hover::after {
    left: 200%;
    transition: 0.8s ease-in-out;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(70, 121, 248, 0.3);
}

@keyframes liquidGradient {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* 次级按钮 */
.btn-secondary {
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.btn-secondary:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

body.light-mode .btn-secondary {
    color: rgba(0,0,0,0.4);
}

body.light-mode .btn-secondary:hover {
    color: #1a1a2e;
    text-shadow: none;
}

.auth-btn {
    background: var(--accent);
    color: var(--text-main);
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}
.auth-btn:hover {
    background: #b47fff;
    transform: translateY(-2px);
}
.auth-btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}
.auth-btn-secondary:hover {
    color: var(--text-main);
    border-color: var(--accent);
}

.user-profile-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    padding: 0; /* 确保没有额外的padding */
}

/* --- 头像区域：带呼吸流光的能量环 --- */
.avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 25px; /* 添加 auto 确保居中 */
}

.avatar-wrapper::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4679f8, #ff2a7a, #8777c5);
    background-size: 200% 200%;
    animation: spinGlow 4s linear infinite;
    z-index: 1;
}

.avatar-inner {
    position: relative; /* 改为 relative */
    width: 100%;
    height: 100%;
    /* 内部圈的颜色与侧边栏顶部背景色一致 */
    background: #11111a;
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-sizing: border-box;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(20%) contrast(110%);
    position: relative;
    z-index: 3;
}

@keyframes spinGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- 管理员皇冠标识 --- */
.admin-crown {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    z-index: 10;
    animation: crownFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.6));
}

.admin-crown svg {
    width: 100%;
    height: 100%;
}

@keyframes crownFloat {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-3px);
    }
}

body.light-mode .admin-crown {
    filter: drop-shadow(0 2px 8px rgba(255, 165, 0, 0.8));
}

/* --- 个人信息文字 --- */
.user-info {
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
}

.user-name {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px 0;
    letter-spacing: 1px;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode .user-name {
    color: #1a1a2e;
}

.user-id {
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    font-family: monospace;
    margin: 0;
    letter-spacing: 2px;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode .user-id {
    color: rgba(0,0,0,0.4);
}

/* --- 幽灵悬浮操作按钮 --- */
.action-menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ghost-btn {
    width: 100%;
    height: 48px;
    background: transparent;
    /* 用极细的底边框或者全包边框 */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #a1a1aa;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
}

body.light-mode .ghost-btn {
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #6b7280;
}

/* 幽灵白光悬停特效：瞬间亮起，脱离平庸 */
.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

body.light-mode .ghost-btn:hover {
    background: rgba(124, 74, 252, 0.05);
    border-color: rgba(124, 74, 252, 0.3);
    color: #7c4afc;
    box-shadow: 0 4px 12px rgba(124, 74, 252, 0.15);
}

/* 为"退出"按钮单独设计的微弱红色警示感 */
.btn-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ff4757;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.15);
}

body.light-mode .btn-logout:hover {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.activity-list { display: flex; flex-direction: column; gap: 15px; }
.activity-item { display: flex; align-items: center; gap: 15px; padding: 10px; background: rgba(255,255,255,0.03); border-radius: 12px; cursor: pointer; transition: all 0.3s;}
.activity-item:hover { background: rgba(255,255,255,0.06); }
.activity-item img { width: 45px; height: 45px; border-radius: 10px; object-fit: cover;}
.activity-info h5 { color: var(--text-main); margin: 0 0 4px 0; font-size: 14px; transition: color 0.3s ease;}
.activity-info p { color: var(--text-muted); margin: 0; font-size: 12px;}

/* --- 弹窗样式 --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: linear-gradient(135deg, #1c1c28 0%, #222232 100%);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    display: flex;
    gap: 30px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: scale(0.9);
    transition: transform 0.3s ease,
                background 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
    padding: 0;
    z-index: 100;
}

body.light-mode .close-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1a1a2e;
}

.close-btn:hover {
    background: rgba(255, 95, 86, 0.2);
    border-color: #ff5f56;
    color: #ff5f56;
    transform: rotate(90deg);
}

.favorite-btn {
    position: absolute;
    top: 20px;
    right: 70px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
    padding: 0;
    z-index: 100;
}

body.light-mode .favorite-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1a1a2e;
}

.favorite-btn:hover {
    background: rgba(255, 105, 180, 0.2);
    border-color: #ff69b4;
    color: #ff69b4;
    transform: scale(1.1);
}

.favorite-btn.favorited {
    background: rgba(255, 105, 180, 0.2);
    border-color: #ff69b4;
    color: #ff69b4;
}

.favorite-btn.favorited svg {
    fill: #ff69b4;
}

.favorite-btn.favorited:hover {
    transform: scale(1.1) rotate(10deg);
}

.modal-img-container {
    flex-shrink: 0;
}

.modal-img-container img {
    width: 280px;
    height: 380px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.modal-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-right: 20px;
}

.modal-title {
    color: var(--text-main);
    font-size: 32px;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
    transition: color 0.3s ease;
}

body.light-mode .modal-title {
    color: #1a1a2e;
}

body.light-mode .login-prompt-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

body.light-mode .login-prompt-box h3 {
    color: #1a1a2e;
}

body.light-mode .success-prompt-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

body.light-mode .success-prompt-box h3 {
    color: #1a1a2e;
}

body.light-mode .error-prompt-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(255, 77, 77, 0.3);
    box-shadow: 0 25px 70px rgba(255, 77, 77, 0.2);
}

body.light-mode .error-prompt-box h3 {
    color: #1a1a2e;
}

body.light-mode .edit-profile-modal {
    background: rgba(0, 0, 0, 0.6);
}

body.light-mode .edit-profile-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body.light-mode .edit-profile-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .edit-profile-header h3 {
    color: #1a1a2e;
}

body.light-mode .close-edit-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1a1a2e;
}

body.light-mode .form-group label {
    color: #1a1a2e;
}

body.light-mode .upload-placeholder p {
    color: #1a1a2e;
}

body.light-mode .avatar-preview {
    border: 2px dashed rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.02);
}

body.light-mode .avatar-preview:hover {
    background: rgba(124, 74, 252, 0.05);
}

body.light-mode .form-divider {
    background: rgba(0, 0, 0, 0.08);
}

body.light-mode .change-avatar-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1a1a2e;
}

body.light-mode .change-avatar-btn:hover {
    background: rgba(124, 74, 252, 0.05);
    border-color: rgba(124, 74, 252, 0.3);
}

body.light-mode .remove-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1a1a2e;
}

body.light-mode .remove-btn:hover {
    background: rgba(255, 95, 86, 0.9);
    color: #ffffff;
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.modal-meta .year-text {
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.3s ease;
}

body.light-mode .modal-meta .year-text {
    border-left: 1px solid rgba(0, 0, 0, 0.2);
}

.modal-desc {
    color: #ddd;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
    transition: color 0.3s ease;
}

body.light-mode .modal-desc {
    color: #4b5563;
}

.platforms {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease;
}

body.light-mode .platforms {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.platforms h4 {
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 15px 0;
}

.platform-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
        padding: 30px 20px;
        max-height: 90vh;
    }
    
    .modal-img-container img {
        width: 100%;
        height: auto;
        max-width: 280px;
        margin: 0 auto;
        display: block;
    }
    
    .modal-details {
        padding-right: 0;
    }
    
    .modal-title {
        font-size: 24px;
    }
}

/* --- 弹窗样式 --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode .modal-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, #1c1c28 0%, #2a2a3e 100%);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9) translateY(30px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode .modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.close-btn:hover {
    background: rgba(255, 95, 86, 0.2);
    border-color: #ff5f56;
    color: #ff5f56;
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    display: flex;
    gap: 30px;
    padding: 30px;
    overflow-y: auto;
    max-height: 85vh;
}

.modal-img-container {
    flex-shrink: 0;
    width: 320px;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: slideInLeft 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.modal-img-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.modal-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-img-container img {
    transform: scale(1.05);
}

.modal-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: slideInRight 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.modal-title {
    color: var(--text-main);
    font-size: 32px;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
}

body.light-mode .modal-title {
    color: #1a1a2e;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.modal-meta .rating-badge {
    background: rgba(245, 197, 24, 0.15);
    color: #f5c518;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    border: 1px solid rgba(245, 197, 24, 0.4);
    box-shadow: 0 4px 15px rgba(245, 197, 24, 0.2);
}

.modal-meta .year-text {
    color: var(--text-muted);
    font-size: 15px;
    padding-left: 15px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.modal-desc {
    color: #ddd;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

.modal-desc::-webkit-scrollbar {
    width: 6px;
}

.modal-desc::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-desc::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.platforms {
    margin-top: auto;
}

.platforms h4 {
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.platform-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.platform-links a {
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    background: var(--accent);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(157, 101, 255, 0.3);
}

.platform-links a:hover {
    background: #b47fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(157, 101, 255, 0.5);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
        padding: 20px;
    }
    
    .modal-img-container {
        width: 100%;
        height: 400px;
    }
    
    .modal-title {
        font-size: 24px;
    }
}

/* --- 登录提示弹窗 --- */
.login-prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.login-prompt-overlay.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

.login-prompt-box {
    background: linear-gradient(135deg, #1e1e2e 0%, #252535 100%);
    border-radius: 24px;
    padding: 50px 60px;
    text-align: center;
    max-width: 440px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

/* 添加微妙的光晕背景 */
.login-prompt-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(157, 101, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.prompt-icon {
    font-size: 64px;
    margin-bottom: 25px;
    display: inline-block;
    animation: iconFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(255, 193, 7, 0.3));
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.login-prompt-box h3 {
    color: var(--text-main);
    font-size: 28px;
    margin: 0 0 15px 0;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
}

.login-prompt-box p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 35px 0;
    position: relative;
}

body.light-mode .login-prompt-box p {
    color: rgba(0, 0, 0, 0.65);
}

.prompt-btn {
    background: linear-gradient(135deg, #9d65ff 0%, #7c4afc 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 20px rgba(157, 101, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.prompt-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;
}

.prompt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(157, 101, 255, 0.5);
}

.prompt-btn:hover::before {
    left: 100%;
}

.prompt-btn:active {
    transform: translateY(0);
}

/* --- 精美的成功提示动画 --- */
.success-prompt-box {
    background: linear-gradient(135deg, #1c1c28 0%, #222232 100%);
    border-radius: 24px;
    padding: 50px 60px;
    text-align: center;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: successSlideUp 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* --- 错误提示动画 --- */
.error-prompt-box {
    background: linear-gradient(135deg, #1c1c28 0%, #222232 100%);
    border-radius: 24px;
    padding: 50px 60px;
    text-align: center;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 77, 77, 0.3);
    animation: successSlideUp 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.error-icon {
    margin: 0 auto 30px;
    width: 80px;
    height: 80px;
}

.error-mark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #ff4d4d;
    stroke-miterlimit: 10;
    box-shadow: inset 0 0 0 #ff4d4d;
    animation: fillRed 0.4s ease-in-out 0.4s forwards, scaleCheckmark 0.3s ease-in-out 0.9s both;
}

.error-mark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #ff4d4d;
    fill: none;
    animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.error-mark-x {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #fff;
    stroke-width: 3;
    animation: strokeCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.error-prompt-box h3 {
    color: var(--text-main);
    font-size: 28px;
    margin: 0 0 12px 0;
    font-weight: 700;
    animation: fadeInUp 0.5s ease 0.3s both;
}

.error-prompt-box p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    animation: fadeInUp 0.5s ease 0.4s both;
}

@keyframes fillRed {
    100% {
        box-shadow: inset 0 0 0 50px #ff4d4d;
    }
}

.success-checkmark {
    margin: 0 auto 30px;
    width: 80px;
    height: 80px;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #4caf50;
    stroke-miterlimit: 10;
    box-shadow: inset 0 0 0 #4caf50;
    animation: fillGreen 0.4s ease-in-out 0.4s forwards, scaleCheckmark 0.3s ease-in-out 0.9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #4caf50;
    fill: none;
    animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #fff;
    stroke-width: 3;
    animation: strokeCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.success-prompt-box h3 {
    color: var(--text-main);
    font-size: 28px;
    margin: 0 0 12px 0;
    font-weight: 700;
    animation: fadeInUp 0.5s ease 0.3s both;
}

.success-prompt-box p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    animation: fadeInUp 0.5s ease 0.4s both;
}

/* 动画关键帧 */
@keyframes strokeCircle {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes strokeCheck {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes fillGreen {
    100% {
        box-shadow: inset 0 0 0 50px #4caf50;
    }
}

@keyframes scaleCheckmark {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes successSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 编辑资料弹窗 --- */
.edit-profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.edit-profile-content {
    background: linear-gradient(135deg, #1c1c28 0%, #222232 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: slideUp 0.3s ease;
}

.edit-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.edit-profile-header h3 {
    color: var(--text-main);
    margin: 0;
    font-size: 22px;
}

.close-edit-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
    padding: 0;
}

.close-edit-btn:hover {
    background: rgba(255, 95, 86, 0.2);
    border-color: #ff5f56;
    color: #ff5f56;
    transform: rotate(90deg);
}

.edit-profile-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 5px;
}

/* 头像上传区域 */
.avatar-upload-area {
    width: 100%;
}

.avatar-preview {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 300px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.avatar-preview:hover {
    border-color: var(--accent);
    background: rgba(157, 101, 255, 0.05);
}

.avatar-preview.drag-over {
    border-color: var(--accent);
    background: rgba(157, 101, 255, 0.1);
    transform: scale(1.02);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.avatar-preview.has-image img {
    display: block;
}

.avatar-preview.has-image .upload-placeholder {
    display: none;
}

.upload-placeholder {
    text-align: center;
    padding: 20px;
}

.upload-placeholder svg {
    margin: 0 auto 15px;
    opacity: 0.5;
}

.upload-placeholder p {
    color: var(--text-main);
    margin: 0 0 8px 0;
    font-size: 14px;
}

.upload-placeholder small {
    color: var(--text-muted);
    font-size: 12px;
}

.form-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 25px 0;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.form-actions .auth-btn,
.form-actions .auth-btn-secondary {
    flex: 1;
    margin: 0;
}

/* ========================================
   个人资料页面样式
   ======================================== */

.profile-page {
    padding: 30px 50px;
}

.profile-page-header {
    margin-bottom: 40px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.back-btn:hover {
    color: var(--text-main);
    transform: translateX(-5px);
}

.profile-page-header h1 {
    color: var(--text-main);
    font-size: 32px;
    margin: 0;
    font-weight: 700;
    transition: color 0.3s ease;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 1200px;
}

/* 资料卡片 */
.profile-card {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
    transition: all 0.3s,
                background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.profile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-card-header h2 {
    color: var(--text-main);
    font-size: 20px;
    margin: 0;
    font-weight: 600;
    transition: color 0.3s ease;
}

.edit-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(157, 101, 255, 0.1);
    color: var(--accent);
    border: 1px solid rgba(157, 101, 255, 0.3);
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.edit-btn:hover {
    background: rgba(157, 101, 255, 0.2);
    border-color: var(--accent);
}

.profile-card-body {
    padding: 30px;
}

/* 头像区域 */
.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #ff7eb3, #9b63f8, #00d2ff);
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--card-bg);
}

.change-avatar-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.change-avatar-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 信息网格 */
.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.info-item label {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item p {
    color: var(--text-main);
    font-size: 16px;
    margin: 0;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* 用户身份徽章 */
.user-role-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.user-role-badge.admin {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
}

.user-role-badge.user {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
}

body.light-mode .user-role-badge {
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

body.light-mode .user-role-badge.admin {
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.4);
}

body.light-mode .user-role-badge.user {
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.4);
}

/* 安全项 */
.security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.security-item:last-child {
    border-bottom: none;
}

.security-info h3 {
    color: var(--text-main);
    font-size: 16px;
    margin: 0 0 5px 0;
    font-weight: 600;
    transition: color 0.3s ease;
}

.security-info p {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
}

.action-btn {
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #b47fff;
    transform: translateY(-2px);
}

.action-btn.secondary {
    background: var(--input-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.action-btn.secondary:hover {
    background: rgba(157, 101, 255, 0.08);
}

body.light-mode .action-btn.secondary:hover {
    background: rgba(124, 74, 252, 0.05);
}

.action-btn.danger {
    background: rgba(255, 95, 86, 0.1);
    color: #ff5f56;
    border: 1px solid rgba(255, 95, 86, 0.3);
}

.action-btn.danger:hover {
    background: rgba(255, 95, 86, 0.2);
    border-color: #ff5f56;
}

/* 统计网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.stat-value {
    color: var(--text-main);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.stat-label {
    color: var(--text-muted);
    font-size: 12px;
}

/* 危险区域 */
.danger-zone {
    border: 1px solid rgba(255, 95, 86, 0.2);
}

.danger-zone .profile-card-header {
    border-bottom-color: rgba(255, 95, 86, 0.1);
}

.danger-zone .profile-card-header h2 {
    color: #ff5f56;
}

/* 响应式 */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-page {
        padding: 20px 25px;
    }
    
    .profile-info-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* 观看记录和收藏影片样式 */
.movie-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.history-movie-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.history-movie-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.history-movie-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.history-card-info {
    padding: 15px;
}

.history-card-info h4 {
    color: var(--text-main);
    font-size: 16px;
    margin: 0 0 10px 0;
    font-weight: 600;
    transition: color 0.3s ease;
}

.history-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
}

.history-movie-card:hover .remove-btn {
    opacity: 1;
}

.remove-btn:hover {
    background: rgba(255, 95, 86, 0.8);
    border-color: #ff5f56;
    transform: rotate(90deg);
}

.clear-btn {
    background: rgba(255, 95, 86, 0.1);
    color: #ff5f56;
    border: 1px solid rgba(255, 95, 86, 0.3);
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.clear-btn:hover {
    background: rgba(255, 95, 86, 0.2);
    border-color: #ff5f56;
}

.empty-message {
    color: var(--text-muted);
    text-align: center;
    padding: 60px 20px;
    font-size: 15px;
    grid-column: 1 / -1;
}

/* 查看全部按钮 */
.show-more-btn {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.show-more-btn button {
    padding: 12px 32px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.show-more-btn button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

@media (max-width: 768px) {
    .movie-history-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   页面切换过渡动画
   ======================================== */

/* 页面淡入动画 */
body {
    animation: pageEnter 0.5s ease-out;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 页面淡出动画 */
body.page-exit {
    animation: pageExit 0.3s ease-in forwards;
}

@keyframes pageExit {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* 链接点击时的过渡效果 */
.page-transition-link {
    position: relative;
}

.page-transition-link::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--app-bg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.page-transition-link.transitioning::after {
    opacity: 1;
}

/* --- 删除账户确认弹窗 --- */
.delete-confirm {
    max-width: 550px;
}

.delete-warning {
    padding: 30px;
}

.warning-text {
    color: #ff6b6b;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.warning-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.warning-list li {
    color: var(--text-main);
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    font-size: 15px;
}

.warning-list li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #ff6b6b;
    font-weight: bold;
    font-size: 18px;
}

.confirm-text {
    color: var(--text-main);
    font-size: 15px;
    margin-bottom: 15px;
    font-weight: 500;
}

.danger-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%) !important;
}

.danger-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #e04856 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

body.light-mode .warning-text {
    color: #e03131;
}

body.light-mode .warning-list li::before {
    color: #e03131;
}
