:root {
    --primary: #6e00ff;
    --secondary: #ff00aa;
    --dark: #0f0f1a;
    --light: #f0f0ff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark);
    color: var(--light);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    background: linear-gradient(to right, #fff, #ddd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

nav {
    background-color: rgba(30, 30, 60, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav li {
    margin: 0 15px;
}

.auth-links.vertical-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 15px 10px;
}

.auth-links.vertical-links a {
    font-size: 0.95rem;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-links.vertical-links a:hover {
    transform: scale(0.95);
}

.auth-links.vertical-links span {
    color: var(--light);
    opacity: 0.6;
}

nav a {
    color: var(--light);
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: all 0.3s ease;
    font-weight: 500;
}

nav a:hover {
    color: var(--secondary);
    transform: translateY(-3px);
}

footer {
    background-color: rgba(15, 15, 26, 0.9);
    color: var(--light);
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

.user-area {
    padding: 20px;
    text-align: center;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 30px auto 10px;
    border: 2px solid var(--primary);
    transition: width 0.3s ease, height 0.3s ease;
}

.sidebar:not(:hover) .avatar {
    width: 40px;
    height: 40px;
}

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

.auth-links {
    font-size: 14px;
}



.user-area .avatar {
    margin: 0 auto 10px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    overflow: hidden;
}

.user-area .unlogged .avatar img {
    opacity: 0.5;
}

.auth-links a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: var(--secondary);
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 5px 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(110, 0, 255, 0.3);
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255,255,255,0) 45%,
        rgba(255,255,255,0.8) 50%,
        rgba(255,255,255,0) 55%
    );
    transform: rotate(30deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    from { transform: translateX(-100%) rotate(30deg); }
    to { transform: translateX(100%) rotate(30deg); }
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.profile-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.profile-actions .btn {
    margin-top: 0;
    padding: 12px 30px; /* 与基础.btn的padding保持一致 */
}


/* 个人中心按钮样式 */
  .profile-actions {
      display: flex;
      gap: 20px;
      justify-content: center;
      align-items: center;
      margin-top: 30px;
  }
  .profile-actions .btn {
      margin-top: 0;
      padding: 12px 25px;
  }
  /* 每日一言样式 */

/* 音乐播放器样式 */
.song-list-container {

    overflow: auto;
    list-style: none;
    position: absolute;
    bottom: 50%; /* 垂直居中对齐按钮 */
    right: 100%; /* 右侧对齐按钮左侧 */
    margin: 0 5px 0 0; /* 右侧留8px间距 */
    height: 300px;
    max-width: 300px;
    display: none;
    transform: translateY(50%); /* 垂直居中修正 */
    z-index: 1000;
    background: rgba(30, 30, 60, 0.9);
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 自定义滚动条样式 */
.song-list-container::-webkit-scrollbar {
    width: 8px; /* 滚动条宽度 */
}
.song-list-container::-webkit-scrollbar-track {
    background: rgba(30, 30, 60, 0.5); /* 轨道背景色（与主题背景同色系） */
}
.song-list-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3); /* 滑块颜色（白色半透明） */
    border-radius: 4px; /* 滑块圆角 */
}
.song-list-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5); /* 悬停时颜色加深 */
}


.song-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.song-item.active {
    background: rgba(138, 43, 226, 0.2); /* 蓝紫色半透明背景，与主题深紫色协调 */
    color: #8A2BE2; /* 蓝紫色文字，与背景形成柔和对比 */
    font-weight: bold;
}

.music-btn.list-btn {
    /* margin-right: 8px; */
}

.song-list-container.active {
    display: block;
}

.song-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.song-item {
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.song-item:hover {
    background: rgba(110, 0, 255, 0.2);
    transform: translateX(5px);
}

.song-item:active {
    background: rgba(255, 0, 170, 0.2);
}

.music-player {
    position: fixed;
    right: 20px;
    bottom: 150px; /* 位于每日一言上方 */
    background-color: rgba(30, 30, 60, 0.9);
    padding: 15px;
    border-radius: 10px;
    width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    /* animation: float 3s ease-in-out infinite; */
}

.music-player p{
    margin-top: 10px;
    /* text-align: center; */
} 
.music-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.music-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.music-btn:hover {
    transform: scale(1.1);
}

.volume-control {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary);
    cursor: pointer;
}

.progress-container {
    margin: 10px 0;
    width: 100%;
}

.progress-slider {
    width: 100%;
    height: 5px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}


.daily-quote {
    position: fixed;
    right: 20px;
    bottom: 50px;
    background-color: rgba(30, 30, 60, 0.9);
    padding: 15px;
    border-radius: 10px;
    width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    /* animation: float 3s ease-in-out infinite; */
}

.daily-quote p {
    margin: 5px 0;
    line-height: 1.4;
}

.daily-quote p:first-child {
    font-style: italic;
    color: var(--secondary);
}

.daily-quote p:last-child {
    text-align: right;
    font-size: 0.8rem;
    color: var(--light);
}

@keyframes float {
    0%, 100% { transform: translateY(10px); }
    50% { transform: translateY(0); }
}
/* 侧边栏样式 */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 40px;
    height: 100vh;
    background-color: rgba(30, 30, 60, 0.5);
    backdrop-filter: blur(15px);
    z-index: 100;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.3s ease;
}

.sidebar:hover {
    width: 120px;
}

.user-area {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    text-align: center;
}

nav {
    flex: 1;
    display: flex;
    align-items: center;
    margin-top: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sidebar:hover nav {
    opacity: 1;
}

.user-area .avatar {
    margin: 0 auto;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--gray);
    margin: 0 auto 10px;
}

.auth-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.auth-links a {
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.auth-links a:hover {
    color: var(--secondary);
}

.auth-links span {
    color: var(--light);
    opacity: 0.5;
}

nav {
    margin-top: 20px;
}

nav ul {
    flex-direction: column;
    padding: 0;
    display: flex;
    flex: 1;
    justify-content: center;
}

nav li {
    text-align: center;
    margin: 10px 0;
}

.auth-links.vertical-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 15px 10px;
}

.auth-links.vertical-links a {
    font-size: 0.95rem;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-links.vertical-links a:hover {
    transform: scale(0.95);
}

.auth-links.vertical-links span {
    color: var(--light);
    opacity: 0.6;
}

nav a {
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: rgba(110, 0, 255, 0.2);
}