﻿/**
 * 文件：assets/css/main.css
 * 项目：12134 商用音乐统一站
 * 说明：全站唯一公共样式文件。
 *
 * 模块顺序：
 * 01 设计变量 / 02 基础 / 03 导航 / 04 Hero / 05 通用区块
 * 06 随机听歌 / 07 TOP20 / 08 精选方块 / 09 完整曲库
 * 10 播放器 / 11 CTA与页脚 / 12 响应式
 */

/* ==================== 01. 设计变量 ==================== */
:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #7209b7;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --border: #e9ecf5;
    --success: #0b8f75;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 12px rgba(0, 0, 0, .08);
    --shadow-hover: 0 12px 32px rgba(33, 48, 110, .14);
    --transition: all .22s ease;
    --container: 1200px;
}

/* ==================== 02. 基础 ==================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    color: var(--dark);
    background: #fff;
    line-height: 1.65;
}

body.has-player {
    padding-bottom: 92px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

code {
    padding: 2px 6px;
    border-radius: 4px;
    background: #f4f5f8;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.noscript-note {
    padding: 10px 20px;
    color: #664d03;
    background: #fff3cd;
    text-align: center;
}

.button-primary,
.button-secondary,
.preview-button,
.random-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 20px;
    border-radius: var(--radius);
    font-weight: 650;
    transition: var(--transition);
}

.button-primary,
.random-refresh {
    border: 1px solid var(--primary);
    color: #fff;
    background: var(--primary);
    box-shadow: 0 4px 14px rgba(67, 97, 238, .25);
}

.button-secondary,
.preview-button {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: #fff;
}

.button-primary:hover,
.random-refresh:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
}

.button-secondary:hover,
.preview-button:hover {
    transform: translateY(-2px);
    background: rgba(67, 97, 238, .06);
}

/* ==================== 03. 顶部导航 ==================== */
.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
    backdrop-filter: blur(12px);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: baseline;
    color: var(--primary);
    font-size: 24px;
    font-weight: 750;
}

.logo span {
    margin-left: 5px;
    color: var(--secondary);
    font-size: 16px;
}

.header-buttons,
.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ==================== 04. Hero ==================== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 132px 0 64px;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,.13) 0 80px, transparent 81px),
        radial-gradient(circle at 85% 55%, rgba(255,255,255,.09) 0 125px, transparent 126px);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, .96);
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .04em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .16);
}

.hero h1 {
    margin-bottom: 16px;
    font-size: clamp(2.35rem, 5vw, 3.35rem);
    font-weight: 750;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .22);
}

.hero > .container > p:not(.hero-kicker) {
    max-width: 850px;
    margin: 0 auto 22px;
    color: rgba(255,255,255,.92);
    font-size: 1.08rem;
}

.hero-actions {
    justify-content: center;
}

.hero-main-button {
    color: var(--primary);
    background: #fff;
    border-color: #fff;
    box-shadow: 0 8px 26px rgba(0,0,0,.18);
}

.hero-main-button:hover {
    color: var(--primary-dark);
    background: #fff;
}

.hero-light-button {
    color: #fff;
    border-color: rgba(255,255,255,.86);
    background: rgba(255,255,255,.06);
}

.hero-light-button:hover {
    color: #fff;
    background: rgba(255,255,255,.14);
}

.hero-facts {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 26px;
    color: rgba(255,255,255,.82);
    font-size: .88rem;
}

.hero-facts strong {
    color: #fff;
}

/* ==================== 05. 通用区块 ==================== */
.section {
    padding: 64px 0;
}

.section:nth-of-type(even) {
    background: #fbfcff;
}

.section-heading {
    margin-bottom: 26px;
}

.heading-with-action {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
}

.centered-heading {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--secondary);
    font-size: .85rem;
    font-weight: 750;
    letter-spacing: .08em;
}

.section-heading h2 {
    margin-bottom: 8px;
    color: var(--primary);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    line-height: 1.25;
}

.section-heading p {
    max-width: 820px;
    color: #555;
}

/* ==================== 06. 随机听歌 ==================== */
.section-random {
    background: #fff;
}

.random-refresh {
    flex: 0 0 auto;
}

.random-status {
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: var(--radius);
    color: var(--primary);
    background: #f0f4ff;
}

.random-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.random-song {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
    padding: 15px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 3px 12px rgba(0,0,0,.05);
    transition: var(--transition);
}

.random-song:hover {
    transform: translateY(-3px);
    border-color: #d9dffd;
    box-shadow: var(--shadow-hover);
}

.random-song-main {
    min-width: 0;
}

.random-song-id {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
    word-break: break-all;
}

.random-song-plays {
    color: var(--gray);
    font-size: .82rem;
}

.preview-button {
    min-width: 68px;
    min-height: 38px;
    padding: 7px 14px;
    flex: 0 0 auto;
}

.preview-button.is-playing {
    color: #fff;
    background: var(--primary);
}

.song-quick-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
}

/* ==================== 07. TOP20 ==================== */
.section-top {
    color: #fff;
    background: linear-gradient(135deg, #3448b8, #6a2b95) !important;
}

.top-panel {
    padding: 36px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 20px;
    background: rgba(255,255,255,.08);
    box-shadow: 0 16px 40px rgba(19,24,74,.18);
}

.top-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.top-heading h2,
.top-heading p,
.eyebrow-light {
    color: #fff;
}

.top-heading p {
    opacity: .82;
}

.top-date {
    flex: 0 0 auto;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.12);
    font-size: .82rem;
    font-weight: 700;
}

.top-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.top-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: rgba(255,255,255,.07);
}

.top-row.is-leading {
    background: rgba(255,255,255,.14);
}

.top-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    font-weight: 800;
}

.is-leading .top-rank {
    color: #4637a2;
    background: #fff;
}

.top-song-info {
    min-width: 0;
}

.top-song-info strong,
.top-song-info span {
    display: block;
}

.top-song-info strong {
    word-break: break-all;
}

.top-song-info span {
    margin-top: 2px;
    color: rgba(255,255,255,.73);
    font-size: .78rem;
}

.top-preview {
    color: #fff;
    border-color: rgba(255,255,255,.65);
    background: transparent;
}

.top-preview:hover,
.top-preview.is-playing {
    color: #4a3fa3;
    background: #fff;
}

/* ==================== 08. 精选磁吸方块 ==================== */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.collection-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 330px;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.collection-card:hover {
    transform: translateY(-8px) scale(1.015);
    border-color: #d9dffd;
    box-shadow: var(--shadow-hover);
}

.collection-card:active {
    transform: translateY(-3px) scale(.995);
}

.collection-card.is-primary {
    border: 2px solid var(--primary);
    box-shadow: 0 10px 28px rgba(67,97,238,.17);
}

.collection-tag {
    align-self: flex-start;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(67,97,238,.08);
    font-size: .76rem;
    font-weight: 750;
}

.collection-number {
    margin: 26px 0 6px;
    color: var(--primary);
    font-size: 3.2rem;
    line-height: 1;
}

.collection-card h3 {
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 1.22rem;
}

.collection-card p {
    color: var(--gray);
    font-size: .9rem;
}

.collection-action {
    margin-top: auto;
    padding-top: 22px;
    color: var(--primary);
    font-weight: 700;
}

/* ==================== 09. 完整曲库 ==================== */
.section-library {
    background: #f8f9ff !important;
}

.library-shell {
    padding: 34px;
    border: 1px solid #e2e7ff;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.search-input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 2px solid #dce2ff;
    border-radius: var(--radius);
    outline: none;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67,97,238,.12);
}

.library-summary {
    margin-bottom: 12px;
    color: var(--gray);
    font-size: .9rem;
}

.library-status {
    padding: 18px;
    border-radius: var(--radius);
    color: var(--gray);
    background: #f8f9fa;
    text-align: center;
}

.library-status[hidden] {
    display: none;
}

.library-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
}

.library-song {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.library-song-info strong,
.library-song-info span {
    display: block;
}

.library-song-info span {
    color: var(--gray);
    font-size: .78rem;
}

.library-play-count {
    color: var(--gray);
    font-size: .78rem;
    white-space: nowrap;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
}

/* ==================== 10. 固定播放器 ==================== */
.audio-player {
    position: fixed;
    z-index: 1200;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 11px 18px;
    border-top: 1px solid #e5e8f0;
    background: rgba(255,255,255,.98);
    box-shadow: 0 -8px 28px rgba(0,0,0,.10);
    backdrop-filter: blur(14px);
}

.player-main {
    display: grid;
    grid-template-columns: auto minmax(170px, 260px) minmax(180px, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    max-width: var(--container);
    margin: 0 auto;
}

.player-toggle,
.player-close {
    min-height: 38px;
    padding: 7px 14px;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    color: var(--primary);
    background: #fff;
}

.player-song strong,
.player-song span {
    display: block;
}

.player-song span {
    color: var(--gray);
    font-size: .76rem;
}

.player-progress {
    width: 100%;
    accent-color: var(--primary);
}

.player-time {
    color: var(--gray);
    font-size: .78rem;
    white-space: nowrap;
}

/* ==================== 11. CTA 与页脚 ==================== */
.section-cta {
    padding-top: 30px;
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.cta-panel h2 {
    margin-bottom: 6px;
}

.cta-panel p {
    color: rgba(255,255,255,.83);
}

.cta-panel .button-primary {
    color: var(--primary);
    border-color: #fff;
    background: #fff;
}

.cta-panel .button-secondary {
    color: #fff;
    border-color: rgba(255,255,255,.8);
    background: transparent;
}

.site-footer {
    margin-top: 30px;
    padding: 42px 0 24px;
    color: #d9dde3;
    background: #212529;
    text-align: center;
}

.site-footer strong {
    color: #fff;
    font-size: 1.08rem;
}

.site-footer p {
    margin-top: 7px;
    color: #adb5bd;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 18px;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    margin-top: 22px !important;
    padding-top: 18px;
    border-top: 1px solid #3b4147;
    font-size: .82rem;
}

.toast {
    position: fixed;
    z-index: 1400;
    left: 50%;
    bottom: 105px;
    transform: translate(-50%, 20px);
    padding: 10px 16px;
    border-radius: 999px;
    color: #fff;
    background: rgba(33,37,41,.94);
    opacity: 0;
    pointer-events: none;
    transition: .2s ease;
}

.toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

/* ==================== 12. 响应式 ==================== */
@media (max-width: 980px) {
    .collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .top-list,
    .library-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body.has-player {
        padding-bottom: 118px;
    }

    .navbar {
        min-height: 66px;
    }

    .header-buttons .button-secondary {
        display: none;
    }

    .header-buttons .button-primary {
        min-height: 38px;
        padding: 7px 12px;
        font-size: .84rem;
    }

    .hero {
        padding: 112px 0 46px;
    }

    .hero-facts {
        display: none;
    }

    .section {
        padding: 46px 0;
    }

    .heading-with-action,
    .top-heading,
    .cta-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .random-refresh {
        width: 100%;
    }

    .random-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .random-song {
        min-height: 62px;
        padding: 11px 12px;
        border-radius: 11px;
    }

    .random-song-plays {
        font-size: .75rem;
    }

    .top-panel {
        padding: 22px 14px;
    }

    /* 手机端 TOP20：只保留歌曲编号 + 试听按钮，减少信息拥挤。 */
    .top-row {
        grid-template-columns: minmax(0,1fr) auto;
        min-height: 58px;
        padding: 10px 11px;
    }

    .top-rank,
    .top-song-info span {
        display: none;
    }

    .top-song-info strong {
        font-size: .92rem;
    }

    .collection-grid {
        grid-template-columns: 1fr 1fr;
        gap: 11px;
    }

    .collection-card {
        min-height: 250px;
        padding: 18px 15px;
        border-radius: 14px;
    }

    .collection-number {
        margin-top: 18px;
        font-size: 2.55rem;
    }

    .collection-card h3 {
        font-size: 1rem;
    }

    .collection-card p {
        font-size: .8rem;
    }

    .library-shell {
        padding: 22px 14px;
    }

    .search-form {
        flex-direction: column;
    }

    .library-song {
        grid-template-columns: minmax(0,1fr) auto;
    }

    .library-play-count {
        display: none;
    }

    .player-main {
        grid-template-columns: auto minmax(0,1fr) auto;
        gap: 8px;
    }

    .player-progress {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .player-time {
        display: none;
    }

    .player-close {
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .logo {
        font-size: 21px;
    }

    .logo span {
        font-size: 13px;
    }

    .hero-kicker {
        margin-bottom: 9px;
        font-size: 1.45rem;
        letter-spacing: .02em;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .collection-grid {
        grid-template-columns: 1fr;
    }

    .collection-card {
        min-height: 225px;
    }
}

/* ==================== 13. 精选子页面兼容布局 ====================
 * packs/50.html、300.html、500.html 沿用同一公共 CSS。
 * 下列样式只补充子页面所需结构，避免子页面自行内嵌 CSS。
 */
.main-content {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    margin: 34px auto 60px;
}

.sidebar,
.content-area {
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}

.sidebar {
    position: sticky;
    top: 92px;
    height: fit-content;
    padding: 24px;
}

.sidebar h3 {
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    color: var(--primary);
    font-size: 1.15rem;
}

.sidebar-nav {
    margin: 0 0 20px;
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 7px;
}

.sidebar-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: #fff;
    background: var(--primary);
}

.sidebar-action {
    display: block;
    margin-top: 10px;
    padding: 11px 12px;
    border-radius: var(--radius);
    color: #fff;
    background: var(--secondary);
    text-align: center;
    font-weight: 650;
}

.sidebar-action.download {
    background: linear-gradient(135deg, #ff8a3c, #ff3e7f);
}

.content-area {
    min-width: 0;
    padding: 34px;
}

.section-info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: #fff;
    background: var(--primary);
    font-weight: 800;
}

.section-info h2 {
    margin: 0 0 4px;
    color: var(--primary);
}

.section-info p {
    color: var(--gray);
}

.highlight-box {
    margin: 18px 0;
    padding: 16px 18px;
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: #f0f7ff;
}

.rank-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    padding: 7px 12px;
    border: 1px solid var(--primary);
    border-radius: 7px;
    color: var(--primary);
    background: #fff;
    font-size: .88rem;
    font-weight: 700;
    transition: var(--transition)
}

.rank-link:hover {
    color: #fff;
    background: var(--primary);
    text-decoration: none;
    transform: translateY(-1px)
}

/* ==================== 08. 磁吸式曲库入口 ==================== */
.choice-section {
    padding-top: 8px;
    border-top: 2px solid #f1f2f6
}

.choice-head {
    margin: 28px 0 18px
}

.choice-head h2 {
    margin-bottom: 8px
}

.choice-head p {
    margin: 0;
    color: var(--gray)
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px;
    margin: 22px 0 28px
}

.selection-card {
    position: relative;
    display: flex;
    min-height: 220px;
    padding: 28px;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #e4e9ff;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(33,37,41,.08);
    transition: transform .22s ease,box-shadow .22s ease,border-color .22s ease;
    overflow: hidden;
    isolation: isolate
}

.selection-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 14px;
    background: radial-gradient(circle at 18% 10%,rgba(67,97,238,.10),transparent 38%),radial-gradient(circle at 88% 92%,rgba(114,9,183,.08),transparent 42%);
    opacity: .55;
    z-index: -1;
    transition: opacity .22s ease
}

.selection-card:hover {
    transform: translateY(-7px) scale(1.012);
    border-color: rgba(67,97,238,.42);
    box-shadow: 0 16px 36px rgba(67,97,238,.16)
}

.selection-card:hover::before {
    opacity: 1
}

.selection-card:active {
    transform: translateY(-2px) scale(.995);
    box-shadow: 0 8px 18px rgba(67,97,238,.14)
}

.selection-card.is-core {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg,#f7f9ff 0%,#fff 100%)
}

.selection-badge {
    align-self: flex-start;
    padding: 4px 10px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(67,97,238,.08);
    color: var(--primary);
    font-size: .78rem;
    font-weight: 700
}

.selection-card.is-core .selection-badge {
    background: var(--primary);
    color: #fff
}

.selection-number {
    color: var(--primary);
    font-size: 3.15rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px
}

.selection-card h3 {
    margin: 10px 0 6px;
    color: var(--dark);
    font-size: 1.2rem
}

.selection-card p {
    margin-bottom: 14px;
    color: var(--gray);
    font-size: .92rem
}

.selection-link {
    color: var(--primary);
    font-weight: 700
}

.selection-card.is-full .selection-number {
    font-size: 2.55rem;
    color: var(--secondary)
}

/* ==================== 09. 精选页面公共模块 ==================== */
.pack-summary {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
    margin: 22px 0
}

.summary-card {
    padding: 20px;
    border: 1px solid #edf0ff;
    border-radius: var(--border-radius);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.05)
}

.summary-card strong {
    display: block;
    margin-bottom: 7px;
    color: var(--primary)
}

.summary-card p {
    margin: 0;
    color: var(--gray);
    font-size: .9rem
}

.pack-status {
    margin: 24px 0;
    padding: 24px;
    border: 1px dashed #cfd7ff;
    border-radius: var(--border-radius);
    background: #fafbff;
    text-align: center
}

.pack-status strong {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 1.1rem
}

.pack-status p {
    margin: 0;
    color: var(--gray)
}

/* ==================== 10. 精选50歌曲表格 ==================== */
.song-table-wrap {
    overflow-x: auto;
    margin: 25px 0;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,.05)
}

.song-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse
}

.song-table th {
    padding: 12px;
    color: #fff;
    background: var(--primary);
    text-align: left;
    font-weight: 600
}

.song-table td {
    padding: 12px;
    border-bottom: 1px solid #eaeaea
}

.song-table tr:nth-child(even) {
    background: #f8f9fa
}

.song-table .no {
    color: var(--primary);
    font-weight: 800
}

/* ==================== 11. 页脚与返回顶部 ==================== */
.site-footer {
    padding: 40px 0 20px;
    color: #fff;
    background: var(--dark)
}

.filing-info {
    margin-bottom: 20px;
    text-align: center
}

.filing-link {
    color: #adb5bd;
    font-size: .9rem
}

.filing-beian, .filing-beian p {
    margin-top: 10px;
    color: #adb5bd;
    font-size: .8rem
}

.copyright {
    padding-top: 20px;
    border-top: 1px solid #495057;
    color: #adb5bd;
    font-size: .9rem;
    text-align: center
}

.copyright p {
    margin: 0;
    color: #adb5bd
}

.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    cursor: pointer;
    font-size: 18px
}

/* ==================== 12. 响应式规则 ==================== */
@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr
    }

    .sidebar {
        position: static
    }

    .pack-summary {
        grid-template-columns: 1fr
    }

}

@media (max-width: 768px) {
    .hero {
        padding: 105px 0 34px
    }

    .hero h1 {
        font-size: 2rem
    }

    .hero p {
        font-size: 1rem
    }

    .header-buttons .button-secondary {
        display: none
    }

    .content-area {
        padding: 25px
    }

    .selection-grid {
        grid-template-columns: 1fr;
        gap: 14px
    }

    .selection-card {
        min-height: 176px;
        padding: 22px
    }

    .selection-number {
        font-size: 2.8rem
    }

    .selection-card.is-full .selection-number {
        font-size: 2.35rem
    }

    /* 手机端：TOP列表只保留歌曲编号 + 试听按钮 */
    .rank-card {
        display: grid;
        grid-template-columns: minmax(0,1fr) 76px;
        gap: 12px;
        padding: 13px 14px;
        align-items: center
    }

    .rank-no, .rank-count, .rank-license, .song-meta {
        display: none!important
    }

    .rank-listen {
        display: block!important;
        text-align: right
    }

    .rank-link {
        width: 72px;
        min-width: 72px;
        padding: 8px 10px
    }

    /* 手机端：精选表格只保留歌曲编号 + 试听按钮 */
    .song-table-wrap {
        overflow: visible;
        box-shadow: none;
        border-radius: 0
    }

    .song-table {
        min-width: 0;
        width: 100%;
        table-layout: fixed;
        border-collapse: separate;
        border-spacing: 0 10px
    }

    .song-table thead {
        display: none
    }

    .song-table tbody, .song-table tr {
        display: block;
        width: 100%
    }

    .song-table tr {
        position: relative;
        min-height: 58px;
        padding: 10px 90px 10px 14px;
        border: 1px solid #edf0ff;
        border-radius: 10px;
        background: #fff!important;
        box-shadow: 0 2px 8px rgba(0,0,0,.05)
    }

    .song-table td {
        display: none;
        padding: 0;
        border: 0
    }

    .song-table td:nth-child(2) {
        display: block!important;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        line-height: 38px
    }

    .song-table td:last-child {
        display: block!important;
        position: absolute;
        right: 10px;
        top: 10px
    }

    .song-table td:nth-child(2) strong {
        font-size: .96rem
    }

    .song-table td:nth-child(2) .song-meta {
        display: none!important
    }

    .song-table td:last-child .rank-link {
        width: 70px;
        min-width: 70px
    }

}

@media (max-width: 480px) {
    .container {
        padding: 0 15px
    }

    .navbar {
        padding: 12px 0
    }

    .logo {
        font-size: 21px
    }

    .logo span {
        font-size: 13px
    }

    .button-primary {
        padding: 9px 13px;
        font-size: .88rem
    }

    .hero h1 {
        font-size: 1.7rem
    }

    .content-area {
        padding: 20px
    }

    .section-info {
        align-items: flex-start
    }

    .rank-card {
        gap: 9px
    }

    .rank-no {
        width: 36px;
        height: 36px
    }

    .rank-count {
        font-size: .9rem
    }

    .song-meta {
        font-size: .76rem
    }

}


/* ==================== 13. 页内试听播放器 ====================
 * 音频实际存放在 music.12134.com；本模块只负责 music站的播放界面。
 * 播放器固定在底部，不改变页面主体结构；关闭后不占据视觉空间。
 */
.hot-player {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1200;
    padding: 10px 20px;
    border-top: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(10px);
}

.hot-player[hidden] {
    display: none;
}

.hot-player-inner {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) minmax(180px, 2fr) auto auto;
    gap: 14px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hot-player-toggle,
.hot-player-close {
    border: 0;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.hot-player-toggle {
    min-width: 62px;
    padding: 10px 14px;
    color: #fff;
    background: var(--primary);
}

.hot-player-toggle:hover {
    background: var(--primary-dark);
}

.hot-player-close {
    padding: 9px 12px;
    color: var(--gray);
    background: #f1f3f5;
}

.hot-player-info {
    min-width: 0;
}

.hot-player-info strong,
.hot-player-info span {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hot-player-info strong {
    color: var(--dark);
    font-size: 0.95rem;
}

.hot-player-info span {
    margin-top: 2px;
    color: var(--gray);
    font-size: 0.78rem;
}

.hot-player-progress {
    width: 100%;
    accent-color: var(--primary);
}

.hot-player-time {
    color: var(--gray);
    font-size: 0.78rem;
    white-space: nowrap;
}

/* rank-link 既可用于链接，也可用于页内试听按钮。 */
button.rank-link {
    border: 0;
    cursor: pointer;
    font: inherit;
}

body.has-hot-player {
    padding-bottom: 82px;
}

@media (max-width: 768px) {
    .hot-player {
        padding: 9px 12px;
    }

    .hot-player-inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 10px;
    }

    .hot-player-progress,
    .hot-player-time {
        grid-column: 1 / -1;
    }

    .hot-player-close {
        padding: 8px 10px;
    }

    body.has-hot-player {
        padding-bottom: 112px;
    }
}

@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

/* ==================== 14. 本机选曲单（保留原 music 功能） ==================== */
.library-song-actions {
    display: flex;
    gap: 7px;
}

.select-button {
    min-height: 38px;
    padding: 7px 11px;
    border: 1px solid #d9deef;
    border-radius: var(--radius);
    color: #555;
    background: #fff;
}

.select-button.is-selected {
    color: #fff;
    border-color: var(--secondary);
    background: var(--secondary);
}

.selection-panel {
    margin-top: 28px;
    padding: 20px;
    border: 1px solid #e4e8f5;
    border-radius: 14px;
    background: #fafbff;
}

.selection-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.selection-heading strong,
.selection-heading span {
    display: block;
}

.selection-heading span {
    margin-top: 2px;
    color: var(--gray);
    font-size: .8rem;
}

.selection-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selection-actions .button-secondary {
    min-height: 36px;
    padding: 6px 10px;
    font-size: .8rem;
}

.selection-actions .button-primary {
    min-height: 36px;
    padding: 6px 12px;
    font-size: .8rem;
}

.selection-dock {
    position: fixed;
    z-index: 1150;
    right: 22px;
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid #dfe4f4;
    border-radius: 14px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 10px 34px rgba(34,47,95,.18);
    backdrop-filter: blur(12px);
}

.selection-dock[hidden] {
    display: none;
}

.selection-dock > span {
    color: var(--gray);
    font-size: .82rem;
    white-space: nowrap;
}

body.has-player .selection-dock {
    bottom: 84px;
}

.selection-empty {
    color: var(--gray);
    font-size: .86rem;
}

.selection-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selection-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 8px 6px 10px;
    border: 1px solid #dde2f2;
    border-radius: 999px;
    background: #fff;
    font-size: .8rem;
}

.selection-chip button {
    border: 0;
    color: var(--gray);
    background: transparent;
}

@media (max-width: 760px) {
    .selection-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .selection-actions {
        width: 100%;
    }

    .selection-actions .button-secondary {
        flex: 1;
    }

    .selection-actions .button-primary {
        flex: 1 0 100%;
    }

    .library-song-actions {
        gap: 5px;
    }

    .select-button {
        padding: 7px 9px;
        font-size: .78rem;
    }

    .song-quick-actions {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 5px;
    }

    .song-quick-actions .preview-button {
        min-width: 54px;
        padding: 7px 9px;
    }

    .song-quick-actions .select-button {
        min-width: 68px;
        padding: 7px 8px;
        font-size: .75rem;
    }

    .selection-dock {
        left: 10px;
        right: 10px;
        bottom: 10px;
        justify-content: center;
    }

    body.has-player .selection-dock {
        bottom: 102px;
    }
}


/* ==========================================================================
   18. 精选子页面统一规则
   --------------------------------------------------------------------------
   packs/20、50、300、500 均复用首页的 header / hero / collection / player。
   这里只补充“当前页面状态”和表格容器，不另建一套视觉。
   ========================================================================== */
.hero-subpage {
    padding-bottom: 64px;
}

.pack-main-section {
    padding-top: 64px;
}

.pack-date {
    color: var(--gray);
    background: #f8f9ff;
    border: 1px solid #e0e7ff;
}

.pack-table-shell {
    background: #ffffff;
    border: 1px solid #edf0ff;
    border-radius: 14px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.collection-card.is-current {
    outline: 3px solid rgba(67, 97, 238, 0.18);
    outline-offset: 3px;
}

.collection-card.is-current .collection-action {
    color: var(--secondary);
    font-weight: 700;
}

.pack-status-home {
    max-width: 860px;
    margin: 32px auto 0;
    text-align: center;
}

.pack-status-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.pack-collections {
    background: #f8f9ff;
}

@media (max-width: 768px) {
    .hero-subpage {
        padding-bottom: 48px;
    }

    .pack-main-section {
        padding-top: 48px;
    }

    .pack-table-shell {
        border-radius: 10px;
        overflow: visible;
        background: transparent;
        border: 0;
        box-shadow: none;
    }
}


/* ==================== 17. 精选包网盘状态 ==================== */
.pack-link-status {
    margin-top: 10px;
    color: var(--gray);
    font-size: 0.92rem;
}

.button-primary.is-disabled {
    cursor: not-allowed;
    opacity: 0.55;
    box-shadow: none;
    transform: none;
}

/* ==================== 18. Hero 品牌层级统一（2026-09-04） ====================
 * 设计原则：
 * 1) “12134 商用音乐”是品牌识别，不与主口号抢视觉焦点；
 * 2) “让每个人都能用的好音乐”是首屏唯一主标题；
 * 3) 功能说明退到第三层，用较轻字重和更舒适行距承接操作路径。
 *
 * 注意：本区块作为 Hero 最终覆盖规则放在样式表末尾，
 * 后期如需调整首屏层级，优先修改这里，不要在单个页面写内联样式。
 */
.hero-kicker {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .08em;
    text-shadow: none;
}

.hero h1 {
    max-width: 980px;
    margin: 0 auto 20px;
    color: #fff;
    font-size: clamp(2.6rem, 5.4vw, 4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
    text-shadow: 0 3px 14px rgba(0, 0, 0, .22);
}

.hero > .container > .hero-description,
.hero > .container > p:not(.hero-kicker) {
    max-width: 880px;
    margin: 0 auto 26px;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    font-weight: 400;
    line-height: 1.85;
}

.hero-description span {
    display: block;
}

.hero-description-lead {
    margin-bottom: 2px;
    color: rgba(255, 255, 255, .97);
    font-weight: 600;
}

.hero-description-guide {
    color: rgba(255, 255, 255, .84);
}

@media (max-width: 768px) {
    .hero-kicker {
        margin-bottom: 9px;
        font-size: 1.05rem;
        letter-spacing: .06em;
    }

    .hero h1 {
        margin-bottom: 15px;
        font-size: clamp(2rem, 9vw, 2.55rem);
        line-height: 1.16;
    }

    .hero > .container > .hero-description,
    .hero > .container > p:not(.hero-kicker) {
        margin-bottom: 22px;
        font-size: .98rem;
        line-height: 1.72;
    }
}
