/* 云音乐平台 - 全局样式 */

/* 变量定义 */
:root {
    --primary-color: #ff6b9d;
    --primary-dark: #c44569;
    --secondary-color: #1e3c72;
    --accent-color: #f5af19;
    --bg-dark: #1a1a2e;
    --bg-card: #16213e;
    --bg-light: #0f3460;
    --bg-input: #0f3460;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --primary-hover: #c44569;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-y: scroll;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    color: var(--text-primary);
    font-size: 15px;
    padding: 8px 0;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 移动端导航按钮 - 默认隐藏 */
.mobile-nav-toggle {
    display: none;
}

/* 移动端导航菜单 - 默认隐藏 */
.nav-links {
    display: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 12px;
}

/* 主内容区 */
.main {
    padding-top: 70px;
    padding-bottom: 20px;
    min-height: calc(100vh - 60px);
}

/* 页面标题 */
.page-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* 卡片网格 - 固定一行八列 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
}
/* PC端只显示一排 */
@media (min-width: 769px) {
    .card-grid .card:nth-child(n+9) {
        display: none;
    }
}

.card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.card-cover-link {
    display: block;
    text-decoration: none;
}
.card-title a {
    color: inherit;
    text-decoration: none;
}
.card-title a:hover {
    color: var(--primary-color);
}
.card-singer a {
    color: var(--text-secondary);
    text-decoration: none;
}
.card-singer a:hover {
    color: var(--primary-color);
}

.card-cover {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-cover img {
    transform: scale(1.1);
}

.card-play {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.card:hover .card-play {
    opacity: 1;
    transform: scale(1);
}

.card-play svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.card-info {
    padding: 16px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-singer {
    font-size: 13px;
    color: var(--text-secondary);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 列表样式 */
.list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.list-item:hover {
    background: var(--bg-light);
}

.list-item-index {
    width: 40px;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-secondary);
    text-align: center;
}

.list-item-index.top {
    color: var(--accent-color);
}

.list-item-cover {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 16px;
}

.list-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-item-info {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item-singer {
    font-size: 13px;
    color: var(--text-secondary);
}

.list-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.list-item-action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.list-item-action:hover {
    background: var(--primary-color);
}

.list-item-action svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* 标签 */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.1);
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tag:hover,
.tag.active {
    background: var(--primary-color);
    color: white;
}

/* 播放进度条 */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
    position: relative;
    transition: width 0.1s linear;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-bar:hover .progress-bar-fill::after {
    opacity: 1;
}

/* 播放器 */
.player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.player-info {
    display: flex;
    align-items: center;
    width: 280px;
}

.player-cover {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 16px;
    animation: rotate 20s linear infinite;
    animation-play-state: paused;
}

.player-cover.playing {
    animation-play-state: running;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.player-song {
    flex: 1;
    min-width: 0;
}

.player-song-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-song-singer {
    font-size: 13px;
    color: var(--text-secondary);
}

.player-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.player-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.player-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.player-btn:hover {
    color: var(--primary-color);
}

.player-btn.play {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
}

.player-btn.play:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
}

.player-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.player-btn.play svg {
    width: 24px;
    height: 24px;
}

.player-time {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

.player-progress {
    width: 100%;
    max-width: 600px;
}

.player-volume {
    width: 200px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-slider {
    flex: 1;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .active {
    background: var(--primary-color);
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.2);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary-color);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ===== 公共底部样式 ===== */
.site-footer {
    background: rgba(22, 33, 62, 0.8);
    padding: 20px 0;
    margin-top: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* 空状态 */
.empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* 加载动画 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式 */
@media (max-width: 768px) {
    .header .nav {
        display: none;
    }
    
    /* 移动端：header 布局 */
    .header .container {
        justify-content: space-between !important;
    }
    
    /* 移动端：header-actions 布局 */
    .header-actions {
        gap: 0 !important;
        flex-shrink: 0;
        margin-left: auto;
    }
    .header .header-actions .btn {
        display: none !important;
    }
    .header .user-info {
        margin: 0;
    }

    
    /* 移动端导航按钮 */
    .mobile-nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 6px;
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
        margin-left: 10px;
    }
    
    .mobile-nav-toggle .hamburger,
    .mobile-nav-toggle .hamburger::before,
    .mobile-nav-toggle .hamburger::after {
        display: block;
        width: 18px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-toggle .hamburger {
        position: relative;
    }
    
    .mobile-nav-toggle .hamburger::before,
    .mobile-nav-toggle .hamburger::after {
        content: '';
        position: absolute;
        left: 0;
    }
    
    .mobile-nav-toggle .hamburger::before {
        top: -6px;
    }
    
    .mobile-nav-toggle .hamburger::after {
        top: 6px;
    }
    
    /* 汉堡菜单动画 */
    .mobile-nav-toggle.active .hamburger {
        background: transparent;
    }
    
    .mobile-nav-toggle.active .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }
    
    .mobile-nav-toggle.active .hamburger::after {
        top: 0;
        transform: rotate(-45deg);
    }
    
    /* 移动端导航菜单 */
    .header .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        right: 15px;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        padding: 10px 0;
        min-width: 160px;
        max-width: calc(100vw - 30px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        z-index: 9999;
    }
    
    .header .nav-links.show {
        display: flex !important;
        flex-direction: column;
    }
    
    .header .nav-links a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 20px;
        color: #fff;
        text-decoration: none;
        font-size: 14px;
        transition: background 0.2s;
        border-radius: 0;
    }
    
    .header .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .header .nav-links a.active {
        color: #ff6b9d;
    }
    
    .header .nav-links a i {
        width: 18px;
        text-align: center;
        font-size: 14px;
    }
    
    /* 隐藏PC端的header-actions中的登录按钮 */
    .header .header-actions .btn {
        display: none;
    }
    
    .player {
        height: 70px;
    }
    
    .player-info {
        width: auto;
        flex: 1;
    }
    
    .player-volume {
        display: none;
    }
    
    .player-progress {
        display: none;
    }
}

/* 工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-secondary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* 用户头像 */
.user-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.user-avatar span {
    font-size: 14px;
    color: var(--text-primary);
}

/* ===== 公共滚动条隐藏 ===== */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ===== 按钮悬停效果 ===== */
.list-item button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===== 歌曲网格布局（移动端适配） ===== */
@media (max-width: 768px) {
    .song-grid-list {
        grid-template-columns: 1fr !important;
    }
    .song-list-row {
        grid-template-columns: 1fr !important;
    }
}

/* ===== 公共迷你播放器容器滚动条 ===== */
.mini-scroll::-webkit-scrollbar {
    display: none;
}
.mini-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ===== 通用区块标题 ===== */
.section-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title i {
    font-size: 24px;
}
@media (max-width: 768px) {
    .section-title {
        font-size: 18px !important;
    }
}

/* ===== 歌曲卡片网格布局 ===== */
.song-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 992px) {
    .song-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .song-grid { grid-template-columns: repeat(2, 1fr); }
}

.song-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}
.song-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.song-card-cover {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}
.song-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.song-card:hover .song-card-cover img {
    transform: scale(1.05);
}
.song-card-play {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.song-card:hover .song-card-play {
    opacity: 1;
}
.song-card-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: var(--text-secondary);
}
.song-card-rank.top {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
}
.song-card-info {
    padding: 12px;
}
.song-card-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.song-card-singer {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== 歌曲并排列表布局 ===== */
.song-list-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}
.song-list-row > * {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}
@media (max-width: 768px) {
    .song-list-row {
        grid-template-columns: 1fr !important;
    }
}
.song-row-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-card);
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.song-row-item:hover {
    background: var(--bg-light);
}
.song-row-left {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}
.song-row-cover-link {
    display: block;
    flex-shrink: 0;
    margin-right: 12px;
}
.song-row-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.song-row-title-link {
    font-size: 14px;
    font-weight: 500;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.song-row-title-link:hover {
    color: var(--primary-color);
}
.song-row-singer-link {
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-top: 2px;
    display: block;
}
.song-row-singer-link:hover {
    color: var(--primary-color);
}
.song-row-singer-link:hover {
    color: var(--primary-color);
}

.song-row-cover {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 12px;
}
.song-row-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.song-row-info {
    flex: 1;
    min-width: 0;
}
.song-row-title {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.song-row-singer {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.song-row-singer-link {
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-top: 4px;
    display: block;
}
.song-row-singer-link:hover {
    color: var(--primary-color);
}
.play-btn-icon {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}
.play-btn-icon:hover {
    background: var(--primary-dark);
    color: white;
}
.song-row-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 6px;
}
.song-row-play {
    font-size: 12px;
    color: var(--text-secondary);
}
.song-row-play i {
    margin-right: 4px;
}
.song-row-time {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}
.song-row-time i {
    margin-right: 4px;
}
.song-row-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}
.song-row-icon:hover {
    background: var(--primary-color);
    color: white;
}
.song-row-icon.play {
    background: var(--primary-color);
    color: white;
}
.song-row-icon.play:hover {
    background: var(--primary-hover);
}

/* ===== 链接样式 ===== */
a.card, .card a, .list-item {
    text-decoration: none;
    color: inherit;
}

/* ============================================================
   页面级移动端适配 & 特殊样式（从各PHP文件提取，统一管理）
   ============================================================ */

/* -- 首页移动端适配 -- */
@media (max-width: 768px) {
    .banner-content { padding: 30px 15px !important; border-radius: 12px !important; }
    .banner-content h1 { font-size: 28px !important; }
    .banner-content p { font-size: 14px !important; }
    .banner-content .btn { padding: 12px 24px !important; font-size: 14px !important; }
    .card-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 6px !important; }
    .card-grid .card:nth-child(n+7) { display: none !important; }
    .singer-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; }
    .singer-grid a { padding: 15px 10px !important; }
    .singer-grid a div:first-child { width: 60px !important; height: 60px !important; }
    .singer-grid h4 { font-size: 13px !important; }
    .singer-grid p { font-size: 11px !important; }
}

/* -- 专辑页移动端适配 + 悬停效果 -- */
@media (max-width: 768px) {
    .album-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .album-grid > a { padding: 10px !important; border-radius: 12px !important; }
    .album-grid [style*='140px'] { width: 100% !important; height: auto !important; aspect-ratio: 1 !important; margin-bottom: 8px !important; }
    .album-grid h3 { font-size: 13px !important; margin-bottom: 4px !important; }
    .album-grid p { font-size: 11px !important; }
    .album-header { padding: 15px !important; margin-bottom: 15px !important; border-radius: 12px !important; }
    .album-header > div:first-child { gap: 12px !important; align-items: flex-start !important; }
    .album-cover { width: 90px !important; height: 90px !important; border-radius: 10px !important; flex-shrink: 0 !important; }
    .album-info { min-width: 0 !important; flex: 1 !important; }
    .album-info h1 { font-size: 16px !important; margin: 0 0 6px 0 !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; display: inline !important; }
    .album-info span:first-child { font-size: 10px !important; padding: 2px 6px !important; margin-right: 6px !important; display: inline !important; vertical-align: middle !important; }
    .album-info > div:nth-of-type(2) { gap: 10px !important; font-size: 14px !important; margin-bottom: 8px !important; }
    .album-header .btn { font-size: 11px !important; padding: 5px 10px !important; }
    .album-header .btn .fa-arrow-left { display: none !important; }
    .album-intro { font-size: 12px !important; margin-top: 12px !important; padding-top: 12px !important; line-height: 1.5 !important; }
}
.album-grid a:hover div[style*='opacity: 0'] { opacity: 1 !important; }
.album-grid a:hover { transform: translateY(-4px); }

/* -- 分类页移动端适配 -- */
@media (max-width: 768px) {
    .category-scroll { -webkit-overflow-scrolling: touch; }
}

/* -- 歌手页移动端适配 -- */
@media (max-width: 768px) {
    .singer-grid .singer-card { padding: 15px 10px !important; }
    .singer-grid .singer-card > div:first-child { width: 50px !important; height: 50px !important; }
    .singer-grid h3 { font-size: 12px !important; margin-bottom: 4px !important; }
    .singer-header { padding: 15px !important; margin-bottom: 15px !important; border-radius: 12px !important; }
    .singer-header > div:first-child { gap: 15px !important; }
    .singer-avatar { width: 80px !important; height: 80px !important; border-radius: 12px !important; }
    .singer-info { min-width: 0 !important; }
    .singer-info h1 { font-size: 18px !important; margin-bottom: 6px !important; }
    .singer-info > div:nth-of-type(2) { gap: 10px !important; font-size: 12px !important; }
    .singer-info > div:nth-of-type(2) span { font-size: 12px !important; }
    .singer-header .btn { font-size: 11px !important; padding: 5px 10px !important; }
    .singer-header .btn .fa-arrow-left { display: none !important; }
    .singer-intro { font-size: 12px !important; margin-top: 12px !important; padding-top: 12px !important; line-height: 1.5 !important; }
    .list { gap: 10px !important; }
    .list-item { padding: 12px !important; flex-wrap: nowrap !important; }
    .list-item-index { width: 25px !important; font-size: 12px !important; }
    .list-item-cover { width: 45px !important; height: 45px !important; margin: 0 10px !important; }
    .list-item-info { flex: 1 !important; min-width: 0 !important; }
    .list-item-title { font-size: 13px !important; }
    .list-item-singer { font-size: 11px !important; }
    .list-item-actions { gap: 6px !important; flex-shrink: 0 !important; }
    .list-item-actions button { padding: 6px 10px !important; font-size: 11px !important; }
    .list-item-actions .fa { display: none !important; }
}

/* -- 排行榜特殊样式 -- */
.rank-card .card-rank { box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.rank-card .card-rank-num { box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.rank-scroll { -webkit-overflow-scrolling: touch; }

/* -- 搜索页样式（提取到共享CSS以利用缓存） -- */
.search-header { padding: 40px 0; text-align: center; }
.search-header h1 { color: white; font-size: 32px; margin-bottom: 30px; }
.search-box { display: flex; gap: 10px; max-width: 600px; margin: 0 auto; }
.search-box input { flex: 1; padding: 15px 25px; border: none; border-radius: 30px; font-size: 16px; outline: none; background: rgba(255,255,255,0.95); }
.search-box button { padding: 15px 30px; background: linear-gradient(135deg, #667eea, #764ba2); color: white; border: none; border-radius: 30px; cursor: pointer; font-size: 16px; }
.search-page .song-list { display: flex; flex-direction: column; gap: 12px; }
.search-page .song-item { display: flex; align-items: center; padding: 15px 20px; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border-radius: 15px; color: white; cursor: pointer; transition: all 0.3s; }
.search-page .song-item:hover { background: rgba(255,255,255,0.2); transform: translateX(5px); }
.search-page .song-cover { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; margin-right: 15px; }
.search-page .song-info { flex: 1; }
.search-page .song-title { font-size: 18px; font-weight: 600; margin-bottom: 5px; }
.search-page .song-singer { font-size: 14px; opacity: 0.7; }
.search-page .song-actions { display: flex; gap: 10px; }
.search-page .btn-play, .search-page .btn-download { width: 45px; height: 45px; border-radius: 50%; background: linear-gradient(135deg, #667eea, #764ba2); border: none; color: white; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
@media (max-width: 768px) {
    .search-header { padding: 25px 0; }
    .search-header h1 { font-size: 24px; }
    .search-box { flex-direction: column; }
    .search-box input { border-radius: 25px; }
    .search-box button { border-radius: 25px; }
    .search-page .song-item { padding: 12px 15px; }
    .search-page .song-cover { width: 50px; height: 50px; margin-right: 12px; }
    .search-page .song-title { font-size: 15px; }
}

/* -- 下载页移动端适配 + 悬停效果 -- */
a[href*="/get/"]:hover div[style*="opacity: 0"] { opacity: 1 !important; }
a[href*="/get/"]:hover { transform: translateY(-4px); }
@media (max-width: 768px) {
    .download-header { padding: 20px !important; }
    .download-header > div:first-child { flex-direction: column !important; gap: 20px !important; align-items: center !important; }
    .download-header > div:first-child > div:first-child { width: 140px !important; height: 140px !important; margin: 0 auto; }
    .download-header > div:first-child > div:last-child { text-align: center !important; min-width: 100% !important; }
    .download-header h1 { font-size: 22px !important; text-align: center !important; }
    .download-header .btn { font-size: 16px !important; padding: 14px 28px !important; }
    .download-header .btn i { font-size: 18px !important; }
    .download-recommend { grid-template-columns: repeat(2, calc((100% - 10px) / 2)) !important; gap: 10px !important; }
    .download-recommend a { padding: 8px !important; }
    .download-recommend h4 { font-size: 11px !important; }
    .download-recommend p { font-size: 10px !important; }
}

/* -- 通用移动端容器内边距（首页/分类/排行榜共用） -- */
@media (max-width: 768px) {
    .page-container { padding: 0 10px !important; }
    .page-title { font-size: 22px !important; }
    .page-subtitle { font-size: 13px !important; }
}




