/* ===== CSS 变量定义 ===== */
:root {
    /* 背景颜色 */
    --primary-bg: linear-gradient(135deg, #2f29a4, #cc92fe);
    --glass-bg: rgba(0, 0, 0, 0.45);
    --glass-border: rgba(255, 255, 255, 0.18);
    
    /* 阴影效果 */
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    
    /* 文本颜色 */
    --text-main: #fff;
    --text-secondary: #c0d4ff;
    --text-accent: #b0e0ff;
    --purple-accent: #E6E6FA;
    --lavender-border: #D8BFD8;
    
    /* 渐变效果 */
    --progress-gradient: linear-gradient(to right, #FF416C, #FF4B2B);
    --icon-gradient: linear-gradient(45deg, #6A5ACD, #9370DB);
    
    /* 模糊效果 */
    --blur-filter: blur(10px);
    --blur-filter-light: blur(5px);
}

/* ===== 基础重置样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ===== 页面主体样式 ===== */
body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-bg);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

/* 加载状态样式 */
body.loading .container {
    opacity: 0;
    transform: translateY(20px);
}

body:not(.loading) .container {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

body.audio-playing .container {
    box-shadow: 
        inset 0 0 20px rgba(255, 75, 43, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===== 背景样式 ===== */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('bj.avif') no-repeat center center;
    background-size: cover;
    filter: blur(5px) brightness(0.5);
    z-index: 0;
}

/* ===== 主容器样式 ===== */
.container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 680px;
    background: var(--glass-bg);
    backdrop-filter: var(--blur-filter);
    border-radius: 20px;
    /* 移除或注释掉这行发光效果 */
    /* box-shadow: var(--glass-shadow); */
    border: 1px solid var(--glass-border);
    display: grid;
    grid-template-columns: 30% 38% 32%;
    padding: 25px;
    overflow: hidden;
    z-index: 2;
    transition: box-shadow 0.5s ease;
}

/* ===== 左侧面板样式 ===== */
.left-panel {
    display: flex;
    flex-direction: column;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 90px;
}

/* 时间显示区域 */
.time-display {
    padding: 15px;
    background: var(--glass-bg);
    border-radius: 12px;
    margin-bottom: 20px;
}

.time-display .time {
    font-size: 3.8rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--text-main);
    margin-bottom: 5px;
    transition: transform 0.3s ease;
}

.time-display .date {
    font-size: 1.15rem;
    color: var(--text-secondary);
    opacity: 0.9;
}

/* 水平布局的时间显示 */
.time-display.horizontal {
    position: relative;
    padding: 12px 15px;
    min-width: 240px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
}

.time-display.horizontal .time {
    font-size: 3rem;
    font-weight: 500;
}

.time-display.horizontal .date {
    font-size: 1.2rem;
    opacity: 0.85;
    white-space: nowrap;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 个人资料区域 */
.profile-section {
    background: var(--glass-bg);
    border-radius: 12px;
    padding: 15px;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    gap: 20px;
}

/* 头像样式 */
.profile-pic-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    aspect-ratio: 1/1;
    flex-shrink: 0;
}

.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: url('2.jpg') no-repeat center center/cover;
    border: 3px solid var(--lavender-border);
    box-shadow: 
        0 0 0 4px rgba(230, 230, 250, 0.3),
        0 0 20px rgba(147, 112, 219, 0.6);
    position: relative;
}

.profile-pic::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 1px solid rgba(216, 191, 216, 0.8);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* 个人信息文本 */
.profile-name-container {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(202, 156, 255, 0.7);
}

.profile-title {
    font-size: 0.95rem;
    color: var(--text-accent);
    opacity: 0.9;
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.profile-bio p {
    margin-top: 8px;
    font-style: italic;
    opacity: 0.8;
}

/* ===== 中间面板样式 ===== */
.middle-panel {
    padding: 0 25px;
    display: flex;
    flex-direction: column;
}

/* 网站标题 */
.website-title {
    text-align: center;
    font-size: 2.2rem;
    margin: 10px 0 25px;
    color: var(--purple-accent);
    text-shadow: 0 0 15px rgba(230, 230, 250, 0.7);
    position: relative;
}

.website-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--purple-accent), transparent);
}

/* 站点容器 */
.sites-container {
    margin-top: 15px;
    background: var(--glass-bg);
    border-radius: 15px;
    padding: 20px;
    height: calc(100% - 150px);
}

.sites-title {
    color: var(--text-main);
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 3px solid #20BDFF;
}

/* 站点网格布局 */
.sites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.site-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.site-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.site-item:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* 站点图标 */
.site-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--icon-gradient);
    font-size: 1.5rem;
    color: white;
}

.site-name {
    color: var(--text-accent);
    font-size: 0.9rem;
}

/* 站点状态指示器 */
.site-item::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4CAF50;
    box-shadow: 0 0 5px #4CAF50;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.site-item.active::before {
    opacity: 1;
}

.site-item.loading::before {
    background: #FFC107;
    box-shadow: 0 0 5px #FFC107;
    animation: pulse 1.5s infinite;
    opacity: 1;
}

/* ===== 右侧面板样式 ===== */
.right-panel {
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 80px;
}

/* 音乐播放器 */
.music-player {
    padding: 20px;
    background: var(--glass-bg);
    border-radius: 15px;
    margin-top: 20px;
    position: relative;
    min-height: 420px;
}

/* 专辑封面 */
.album-art-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.album-art {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-art.playing {
    animation: rotateAlbum 20s linear infinite;
}

.album-art.loading {
    background: 
        linear-gradient(45deg, 
            rgba(106, 90, 205, 0.2) 25%, 
            rgba(147, 112, 219, 0.4) 25% 50%,
            rgba(106, 90, 205, 0.2) 50% 75%,
            rgba(147, 112, 219, 0.4) 75%);
    background-size: 200% 200%;
    animation: loadingAnimation 1.5s linear infinite;
}

/* 音频播放状态视觉反馈 */
body.audio-playing .album-art::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    box-shadow: 
        inset 0 0 20px rgba(255, 75, 43, 0.3),
        0 0 30px rgba(255, 75, 43, 0.2);
    animation: glowPulse 2s infinite alternate;
    opacity: 1;
}

/* 歌曲信息 */
.song-info {
    text-align: center;
    margin-bottom: 25px;
}

.song-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 8px;
}

.artist {
    font-size: 1.1rem;
    color: var(--text-accent);
}

/* 进度条 */
.progress-container {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    position: relative;
    cursor: pointer;
}

.progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--progress-gradient);
    border-radius: 5px;
    transition: width 0.1s linear;
}

/* 进度条交互效果 */
.progress-bar::after {
    content: '';
    position: absolute;
    top: -4px;
    left: var(--progress-percent);
    height: 12px;
    width: 12px;
    background: white;
    border-radius: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.progress-bar:hover::after,
.progress-bar:active::after {
    opacity: 1;
}

/* 时间显示 */
.progress-container .time-display {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-accent);
}

/* 控制按钮 */
.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.control-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.control-btn.prev-btn,
.control-btn.next-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
}

.control-btn.play-pause {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6A5ACD, #9370DB);
    box-shadow: 0 5px 15px rgba(106, 90, 205, 0.4);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.control-btn.prev-btn:hover,
.control-btn.next-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.1);
}

.control-btn.play-pause:hover {
    transform: scale(1.1);
    box-shadow: 0 7px 20px rgba(106, 90, 205, 0.6);
}

/* 触摸涟漪效果 */
.control-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    padding-top: 0;
    border-radius: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}

.control-btn:active::after {
    width: 200%;
    padding-top: 200%;
    opacity: 1;
    transition: 
        width 0.4s ease-out, 
        padding-top 0.4s ease-out,
        opacity 0.3s ease;
}

/* 焦点状态 */
.control-btn:focus-visible {
    outline: 3px solid var(--purple-accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(147, 112, 219, 0.3);
}

/* ===== 歌词按钮（右上角） ===== */
.music-player {
    position: relative;
}

.control-btn.lyrics-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.06);
    z-index: 5;
}

.control-btn.lyrics-btn.active {
    background: rgba(106, 90, 205, 0.5);
    box-shadow: 0 0 8px rgba(106, 90, 205, 0.3);
}

/* ===== 歌词侧边栏 ===== */
.lyrics-sidebar {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    height: 100vh;
    background: rgba(20, 18, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.4);
}

.lyrics-sidebar.visible {
    right: 0;
}

.lyrics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.lyrics-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.lyrics-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
    line-height: 1;
}

.lyrics-close:hover {
    color: var(--text-main);
}

.lyrics-content {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px 20px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 2.4;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.lyrics-content::-webkit-scrollbar {
    display: none;
}

.lyrics-placeholder {
    text-align: center;
    color: var(--text-accent);
    padding: 60px 0;
    opacity: 0.5;
    font-size: 0.9rem;
}

.lyrics-line {
    transition: all 0.35s ease;
    opacity: 0.4;
    padding: 2px 0;
    cursor: default;
}

.lyrics-line.current {
    opacity: 1;
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(230, 230, 250, 0.6);
    padding-left: 4px;
}

/* ===== 加载动画样式 ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: all 0.5s ease 0.3s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: var(--blur-filter);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    min-width: 200px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--purple-accent);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 500;
}

/* ===== 流星效果 ===== */
.meteors-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.meteor {
    position: absolute;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8));
    border-radius: 50%;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
    transform-origin: center right;
    z-index: 1;
    transition: all 0.5s ease;
    cursor: pointer;
}

/* ===== 动画定义 ===== */
@keyframes timePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes rotateAlbum {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.05); }
    100% { opacity: 0.6; transform: scale(1); }
}

@keyframes meteor-fall {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(-30deg) scale(1);
    }
    10% { opacity: 1; }
    100% {
        opacity: 0;
        transform: translate(var(--translate-x), var(--translate-y)) rotate(-30deg) scale(1);
    }
}

@keyframes loadingAnimation {
    0% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

@keyframes glowPulse {
    from { opacity: 0.3; }
    to { opacity: 0.7; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== 响应式设计 ===== */
/* 中等屏幕调整 */
@media (max-width: 1100px) {
    .time-display.horizontal .time {
        font-size: 2.6rem !important;
    }
    
    .time-display.horizontal .date {
        font-size: 1.1rem;
        max-width: 140px;
    }
    
    .profile-pic-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .profile-name {
        font-size: 1.6rem !important;
    }
}

/* 平板设备 */
@media (max-width: 900px) {
    .container {
        overflow: auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
        gap: 20px;
    }

    .left-panel, .middle-panel, .right-panel {
        border: none;
        padding: 0;
    }

    .left-panel, .middle-panel {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding-bottom: 20px;
    }
    
    .music-player {
        height: auto;
    }
    
    .time-display.horizontal {
        min-width: auto;
        flex-wrap: wrap;
    }
    
    .time-display.horizontal .date {
        white-space: normal;
        max-width: 100%;
        margin-top: 8px;
        text-overflow: clip;
    }
    
    body {
        overflow: auto;
        align-items: flex-start;
        justify-content: flex-start;
    }
    
    .container {
        height: auto;
        max-height: 100vh;
        overflow-y: auto;
    }
}

/* 移动设备 */
@media (max-width: 768px) {
    .profile-pic-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .profile-name {
        font-size: 1.5rem !important;
    }
    
    #waifu { 
        display: none; 
    }
}

/* 小屏幕设备 */
@media (max-width: 480px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-pic-wrapper {
        width: 50px;
        height: 50px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .sites-grid {
        grid-template-columns: 1fr;
    }
    
    .time-display.horizontal {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .container {
        padding: 10px;
    }
    
    .sites-container {
        height: auto;
    }
}

/* 移动设备 */
@media (max-width: 768px) {
    .profile-pic-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .profile-name {
        font-size: 1.5rem !important;
    }
    
    #waifu { 
        display: none; 
    }
    
    /* 新增：修复站点网格布局 */
    .sites-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .site-item {
        margin: 0 10px;
        padding: 20px 15px;
    }
    
    .middle-panel {
        padding: 0 15px;
    }
    
    .sites-container {
        padding: 15px;
        margin-top: 10px;
    }
}

/* 小屏幕设备 */
@media (max-width: 480px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-pic-wrapper {
        width: 50px;
        height: 50px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    /* 修复：确保站点网格单列布局 */
    .sites-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .site-item {
        margin: 0 5px;
        padding: 15px 10px;
        min-height: 80px;
    }
    
    .time-display.horizontal {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .container {
        padding: 10px;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 15px;
    }
    
    .sites-container {
        height: auto;
        padding: 12px;
    }
    
    /* 新增：确保中间面板宽度正确 */
    .middle-panel {
        padding: 0 10px;
        width: 100%;
        overflow: hidden;
    }
    
    /* 新增：修复站点项内容对齐 */
    .site-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        gap: 15px;
    }
    
    .site-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    .site-name {
        font-size: 0.85rem;
        flex: 1;
    }
}

/* 站点图片样式 */
.site-img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.2));
}

/* 预加载优化*/
link[rel="preload"] {
    display: none;
}

/* 平板设备 */
@media (max-width: 900px) {
    .sites-container {
        height: auto; /* 改为自动高度 */
        min-height: 300px; /* 设置最小高度 */
    }
    
    .middle-panel {
        height: auto;
        overflow: visible; /* 允许内容正常显示 */
    }
}

/* 移动设备 */
@media (max-width: 768px) {
    .sites-container {
        height: auto;
        min-height: 280px;
        margin-bottom: 20px; /* 添加底部间距 */
    }
    
    .sites-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .site-item {
        margin: 0;
        padding: 15px;
        min-height: 70px;
    }
}

/* 小屏幕设备 */
@media (max-width: 480px) {
    .sites-container {
        height: auto;
        min-height: 250px;
        padding: 15px 10px;
    }
    
    .sites-grid {
        gap: 10px;
    }
    
    .site-item {
        padding: 12px 10px;
        min-height: 65px;
    }
    
    .site-icon {
        width: 35px;
        height: 35px;
    }
    
    .site-name {
        font-size: 0.8rem;
    }
}

/* 修改专辑封面样式，移除CSS动画 */
.album-art {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease; /* 添加平滑过渡 */
}

/* 移除原有的CSS动画关键帧 */
@keyframes rotateAlbum {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 修改音频播放时的视觉反馈 */
body.audio-playing .album-art::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    box-shadow: 
        inset 0 0 20px rgba(255, 75, 43, 0.3),
        0 0 30px rgba(255, 75, 43, 0.2);
    animation: glowPulse 2s infinite alternate;
    opacity: 1;
}

/* ===== 加载动画样式 ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* 改为透明背景 */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: all 0.5s ease 0.3s;
}

.loading-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.1); /* 半透明白色背景 */
    backdrop-filter: var(--blur-filter);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* 半透明边框 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* 轻微阴影 */
    min-width: 200px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--purple-accent); /* 使用紫色强调色 */
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: var(--text-main); /* 使用主文本颜色 */
    font-size: 1.2rem;
    font-weight: 500;
}

.background {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: url('bj.avif') no-repeat center center;
    background-size: cover;
    filter: blur(5px) brightness(0.5);
    z-index: 0;
}

/* 调整响应式布局 */
@media (max-width: 900px) {
    .container {
        height: 100vh;
    }
}

/* ===== 版权声明样式 ===== */
.copyright {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
}

.copyright p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.copyright a {
    color: var(--text-accent);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.copyright a:hover {
    color: var(--text-main);
    opacity: 1;
}

.copyright p:hover {
    opacity: 1;
}


