/* ============================================
   现代化主页样式 - 渐变背景 + 毛玻璃效果
   ============================================ */

/* CSS 变量定义 */
:root {
    --primary-gradient-start: #1e40af;
    --primary-gradient-end: #2563eb;
    --secondary-gradient-start: #059669;
    --secondary-gradient-end: #d97706;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: rgba(255, 255, 255, 0.9);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    background: #0a192f;
}

/* 粒子背景容器 */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a192f 0%, #112240 50%, #0a192f 100%);
    z-index: -1;
}

/* particles.js canvas 样式 */
#particles-js canvas {
    display: block;
    vertical-align: bottom;
}

/* 主容器 */
.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 主卡片 - 毛玻璃效果 */
.main-card {
    width: 100%;
    max-width: 900px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 60px 50px;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.8s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
}

/* 淡入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* 标题区域 */
.header-section {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.main-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.hitokoto-text {
    font-size: 18px;
    color: var(--text-light);
    margin-top: 15px;
    font-style: italic;
    opacity: 0.95;
}

.hitokoto-link {
    color: var(--text-light);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.hitokoto-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* 介绍区域 */
.intro-section {
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.intro-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-light);
    text-align: center;
    opacity: 0.9;
}

/* 导航按钮区域 */
.nav-section {
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.nav-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* 现代化按钮 */
.modern-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 32px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    color: var(--text-light);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

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

.modern-btn:hover {
    transform: translateY(-4px) scale(1.02);
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.modern-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-text {
    position: relative;
    z-index: 1;
}

.nav-btn-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.nav-btn-path {
    fill: var(--text-light);
    transition: fill 0.3s ease;
}

.modern-btn:hover .nav-btn-icon {
    transform: rotate(90deg) scale(1.1);
}

/* 音乐播放器区域 */
.music-section {
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

/* 播放器样式修改 */
.music-section .aplayer {
    background: transparent !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: none !important;
}

/* 播放器主体 */
.music-section .aplayer .aplayer-body {
    background: transparent !important;
}

/* 播放器信息区域 */
.music-section .aplayer .aplayer-info {
    background: transparent !important;
    backdrop-filter: none !important;
    border-radius: 16px 16px 0 0 !important;
    border: none !important;
}

/* 专辑图片 */
.music-section .aplayer .aplayer-pic {
    border-radius: 50% !important;
    overflow: visible !important;
    margin: 10px !important;
    width: 80px !important;
    height: 80px !important;
    position: relative !important;
    z-index: 1 !important;
}

/* 确保专辑图片容器可见 */
.music-section .aplayer .aplayer-pic img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    position: relative !important;
    z-index: 2 !important;
    overflow: hidden !important;
}

/* 将暂停按钮置于圆形唱片图片的裁切之外 */
.music-section .aplayer .aplayer-pic .aplayer-button {
    position: absolute !important;
    border-radius: 50% !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2) !important;
    background: rgba(0, 0, 0, 0.2) !important;
    transition: all 0.1s ease !important;
    z-index: 3 !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 0 !important;
}

/* 确保SVG图标在中心位置 */
.music-section .aplayer .aplayer-pic .aplayer-button svg {
    margin: 0 !important;
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 60% !important;
    height: 60% !important;
}

/* 暂停按钮位置 */
.music-section .aplayer .aplayer-pic .aplayer-pause {
    width: 24px !important;
    height: 24px !important;
    border: 2px solid white !important;
    bottom: -8px !important;
    right: -8px !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 播放按钮位置 */
.music-section .aplayer .aplayer-pic .aplayer-play {
    width: 30px !important;
    height: 30px !important;
    border: 2px solid white !important;
    bottom: 50% !important;
    right: 50% !important;
    margin: 0 -17px -17px 0 !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}


/* 控制栏 */
.music-section .aplayer .aplayer-controller {
    background: transparent !important;
    backdrop-filter: none !important;
    border-radius: 0 0 16px 16px !important;
    border: none !important;
}

/* 播放列表 */
.music-section .aplayer .aplayer-list {
    background: transparent !important;
    backdrop-filter: none !important;
    border-radius: 0 0 16px 16px !important;
    border: none !important;
}

/* 播放列表项样式 */
.music-section .aplayer .aplayer-list ol li {
    background: transparent !important;
    transition: all 0.3s ease !important;
    border-radius: 6px !important;
    margin: 1px 8px !important;
    padding: 3px 10px !important;
    line-height: 1.3 !important;
    font-size: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 28px !important;
}

/* 歌手信息右对齐 */
.music-section .aplayer .aplayer-list-author {
    margin-left: auto !important;
    text-align: right !important;
}

/* 播放列表项悬浮效果 */
.music-section .aplayer .aplayer-list ol li:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateX(5px) !important;
}

/* 当前播放项样式 */
.music-section .aplayer .aplayer-list ol li.aplayer-list-light {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(10px) !important;
    border-left: 3px solid white !important;
}

/* 当前播放指示器样式 */
.music-section .aplayer .aplayer-list-cur {
    background: rgba(255, 255, 255, 0.8) !important;
    width: 3px !important;
    border-radius: 0 3px 3px 0 !important;
}

/* 移除白色渐变效果 */
.music-section .aplayer .aplayer-lrc:before,
.music-section .aplayer .aplayer-lrc:after {
    background: transparent !important;
    display: none !important;
}

/* 将所有文字颜色更改为白色 */
.music-section .aplayer .aplayer-title,
.music-section .aplayer .aplayer-author,
.music-section .aplayer .aplayer-time,
.music-section .aplayer .aplayer-time-inner,
.music-section .aplayer .aplayer-lrc p,
.music-section .aplayer .aplayer-list ol li,
.music-section .aplayer .aplayer-list-index,
.music-section .aplayer .aplayer-list-author {
    color: white !important;
}

/* 移除所有白色背景和叠加效果 */
.music-section .aplayer .aplayer-body,
.music-section .aplayer .aplayer-info,
.music-section .aplayer .aplayer-controller,
.music-section .aplayer .aplayer-list,
.music-section .aplayer .aplayer-lrc,
.music-section .aplayer .aplayer-miniswitcher,
.music-section .aplayer .aplayer-notice {
    background: transparent !important;
    backdrop-filter: none !important;
}

/* 移除边框和阴影（保留必要的背景） */
.music-section .aplayer * {
    border: none !important;
    box-shadow: none !important;
}

/* 确保进度条可见 */
.music-section .aplayer .aplayer-bar {
    background: rgba(255, 255, 255, 0.3) !important;
}

.music-section .aplayer .aplayer-bar .aplayer-loaded {
    background: rgba(255, 255, 255, 0.5) !important;
}

.music-section .aplayer .aplayer-bar .aplayer-played {
    background: white !important;
}

.music-section .aplayer .aplayer-bar .aplayer-thumb {
    background: white !important;
}

/* 确保音量条可见 */
.music-section .aplayer .aplayer-volume-bar {
    background: rgba(255, 255, 255, 0.3) !important;
}

.music-section .aplayer .aplayer-volume-bar .aplayer-volume {
    background: white !important;
}

/* 确保图标颜色为白色 */
.music-section .aplayer .aplayer-icon path,
.music-section .aplayer .aplayer-button path {
    fill: white !important;
}

/* 兼容旧版样式（确保功能正常） */
#aplayer {
    z-index: 20000000;
}

/* 社交媒体区域 */
.social-section {
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.social {
    padding: 0;
    margin: 0;
    text-align: center;
}

.social ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social li {
    display: inline-block;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 24px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-md);
    color: var(--text-light);
    text-decoration: none;
}

/* 页脚 */
.footer-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.footer-section p {
    font-size: 14px;
    color: var(--text-light);
    opacity: 0.8;
    line-height: 1.8;
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 播放列表滚动条样式 */
.music-section .aplayer .aplayer-list::-webkit-scrollbar {
    width: 6px;
}

.music-section .aplayer .aplayer-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.music-section .aplayer .aplayer-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.music-section .aplayer .aplayer-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-card {
        padding: 40px 30px;
        border-radius: 20px;
        margin: 20px;
    }
    
    .main-title {
        font-size: 36px;
    }
    
    .hitokoto-text {
        font-size: 16px;
    }
    
    .intro-text {
        font-size: 15px;
    }
    
    .nav-buttons {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modern-btn {
        padding: 16px 28px;
        font-size: 16px;
    }
    
    .social ul {
        gap: 20px;
    }
    
    .social-link {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 10px;
    }
    
    .main-card {
        padding: 30px 20px;
        border-radius: 16px;
    }
    
    .main-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .hitokoto-text {
        font-size: 14px;
    }
    
    .intro-text {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .modern-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .nav-btn-icon {
        width: 20px;
        height: 20px;
    }
}

/* 兼容旧版样式（确保功能正常） */
#aplayer {
    z-index: 20000000;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 选择文本样式 */
::selection {
    background: rgba(255, 255, 255, 0.3);
    color: var(--text-light);
}

::-moz-selection {
    background: rgba(255, 255, 255, 0.3);
    color: var(--text-light);
}
