/* 基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0a0a1a;
    --secondary-bg: #1a0b2e;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-pink: #ff00ff;
    --neon-blue: #00ffff;
    --neon-purple: #9b59b6;
    --text-primary: #ffffff;
    --text-secondary: #b0b0d0;
    --shadow-glow: 0 0 20px rgba(255, 0, 255, 0.3);
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 120px;
}

/* 粒子背景 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 玻璃拟态效果 */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(9px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--neon-pink);
}

.logo i {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item:hover, .nav-item.active {
    color: white;
    background: linear-gradient(45deg, 
        rgba(255, 0, 255, 0.1), 
        rgba(0, 255, 255, 0.1)
    );
}

.nav-item.active {
    color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}

.theme-toggle {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--neon-blue);
    transition: transform 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.1);
}

.theme-toggle:hover {
    transform: rotate(30deg);
    background: rgba(0, 255, 255, 0.2);
}

/* 主内容区 */
.main-content {
    margin-bottom: 50px;
}

/* 轮播图容器 */
.slideshow-container {
    padding: 30px;
}

.slideshow-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.slideshow-header h2 {
    font-size: 1.8rem;
    color: var(--neon-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.slideshow-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.slideshow-mode {
    margin-left: 15px;
}

#transitionMode {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

#transitionMode:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 轮播图主体 */
.slideshow-wrapper {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
    position: relative;
}

.slideshow-track {
    display: flex;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.slide-item {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

/* 添加: Fade 和 Zoom 模式下的特殊样式 */
.slideshow-track.fade-mode,
.slideshow-track.zoom-mode {
    display: block;
}

.slideshow-track.fade-mode .slide-item,
.slideshow-track.zoom-mode .slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.slideshow-track.fade-mode .slide-item.active,
.slideshow-track.zoom-mode .slide-item.active {
    opacity: 1;
}

.slideshow-track.zoom-mode .slide-item {
    transform: scale(0.8);
}

.slideshow-track.zoom-mode .slide-item.active {
    transform: scale(1);
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
    color: white;
}

.slide-title {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.slide-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* 轮播图底部 */
.slideshow-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.thumbnail-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnail-item {
    flex: 0 0 60px;
    height: 45px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail-item:hover {
    opacity: 0.8;
    transform: translateY(-3px);
}

.thumbnail-item.active {
    opacity: 1;
    border: 2px solid var(--neon-pink);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-number {
    position: absolute;
    top: 3px;
    left: 3px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.slideshow-progress {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 12.5%;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.progress-time {
    font-size: 0.9rem;
    color: var(--neon-blue);
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--neon-pink);
}

.heart-beat {
    color: #ff3366;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 全局音乐播放器 */
.global-music-player {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%); 
    width: 90%;
    /* max-width: 600px; */
    display: flex;
    align-items: center;
    padding: 15px;
    z-index: 1000;
    gap: 15px;
}

.player-controls {
    display: flex;
    gap: 10px;
}

.player-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.play-btn {
    background: var(--neon-purple);
}

.play-btn:hover {
    background: #8e44ad;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.player-cover {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.player-details {
    flex: 1;
}

.player-title {
    font-size: 0.9rem;
    font-weight: 500;
}

.player-progress {
    flex: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    min-width: 35px;
}

.progress-bar-container {
    flex: 1;
}

.progress-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1.5px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 45%;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple));
    border-radius: 1.5px;
}

.progress-thumb {
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-pink);
    display: none;
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.volume-slider {
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1.5px;
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--neon-blue);
    cursor: pointer;
}

/* 添加音乐播放列表样式 */
.playlist-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.playlist-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.music-playlist {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(26, 11, 46, 0.9);
    border-radius: 15px;
    padding: 20px;
    z-index: 1001;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: none;
}

.music-playlist.visible {
    display: block;
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.playlist-header h3 {
    margin: 0;
    color: var(--neon-blue);
    font-size: 1.2rem;
}

.close-playlist {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.close-playlist:hover {
    color: white;
}

.playlist-items {
    max-height: 200px;
    overflow-y: auto;
}

.playlist-item {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.playlist-item.active {
    background: rgba(155, 89, 182, 0.3);
}

.playlist-item .item-number {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.playlist-item.active .item-number {
    background: var(--neon-purple);
}

.playlist-item .item-title {
    flex: 1;
    font-size: 0.9rem;
}

.playlist-item .item-status {
    color: var(--neon-pink);
    font-size: 0.8rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-item {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .slideshow-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .slideshow-controls {
        align-self: stretch;
        justify-content: space-between;
    }
    
    .slideshow-wrapper {
        height: 300px;
    }
    
    .global-music-player {
        flex-wrap: wrap;
        padding: 12px;
        gap: 10px;
    }
    
    .player-progress {
        order: 1;
        flex: 1 100%;
        margin-top: 10px;
    }
    
    .music-playlist {
        width: 95%;
        bottom: 90px;
    }
}

@media (max-width: 480px) {
    .slideshow-wrapper {
        height: 250px;
    }
    
    .slideshow-container {
        padding: 20px;
    }
    
    .thumbnail-item {
        flex: 0 0 50px;
        height: 35px;
    }
}

/* ====================
   用户登录注册样式
   ==================== */

/* 认证区域 */
.auth-section {
    max-width: 800px;
    width: 40vw;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr ;
    gap: 30px;
    align-items: start;
}

@media (max-width: 768px) {
    .auth-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 认证容器 */
.auth-container {
    padding: 30px;
}

/* 选项卡 */
.auth-tabs {
    display: flex;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 5px;
}

.auth-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.auth-tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.auth-tab.active {
    color: white;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-purple));
    box-shadow: 0 5px 15px rgba(255, 0, 255, 0.3);
}

/* 表单 */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.auth-form h3 {
    margin-bottom: 25px;
    color: var(--neon-blue);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-group label i {
    width: 16px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.2);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--neon-pink);
}

.checkbox a {
    color: var(--neon-blue);
    text-decoration: none;
}

.checkbox a:hover {
    text-decoration: underline;
}

.forgot-link {
    color: var(--neon-blue);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--neon-pink);
    text-decoration: underline;
}

/* 认证按钮 */
.auth-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn {
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-purple));
    color: white;
    box-shadow: 0 5px 20px rgba(255, 0, 255, 0.3);
}

.register-btn {
    background: linear-gradient(45deg, var(--neon-blue), #3498db);
    color: white;
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.3);
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 255, 0.4);
}

/* 分割线 */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    position: relative;
    display: inline-block;
    padding: 0 15px;
    background: var(--glass-bg);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 社交登录 */
.social-login {
    display: flex;
    gap: 15px;
}

.social-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bilibili-btn {
    background: rgba(251, 114, 153, 0.1);
    color: #fb7299;
    border: 1px solid rgba(251, 114, 153, 0.3);
}

.weibo-btn {
    background: rgba(230, 22, 45, 0.1);
    color: #e6162d;
    border: 1px solid rgba(230, 22, 45, 0.3);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 成功消息 */
.success-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease;
}

.success-message.active {
    display: block;
}

.success-message i {
    font-size: 4rem;
    color: #2ecc71;
    margin-bottom: 20px;
    animation: successIcon 0.6s ease;
}

.success-message h3 {
    color: var(--neon-blue);
    margin-bottom: 10px;
}

.success-message p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

@keyframes successIcon {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* 用户资料卡片 */
.user-profile {
    padding: 25px;
    display: none;
}

.user-profile.active {
    display: block;
    animation: slideIn 0.5s ease;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.profile-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.profile-status {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    margin: 25px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}

.profile-stats .stat-item {
    text-align: center;
}

.profile-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.profile-stats .stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 5px;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.profile-btn {
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

.profile-btn#logoutBtn:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 响应式调整 */
@media (max-width: 480px) {
    .auth-container {
        padding: 20px;
    }
    
    .social-login {
        flex-direction: column;
    }
    
    .profile-stats {
        flex-direction: column;
        gap: 15px;
    }
}