/* ============================================
   乐韵兰章 · 专辑页面样式
   青绿古典风格
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 68px;
}

:root {
    --primary: #3d7e8c;
    --primary-dark: #2c5f6b;
    --primary-light: #5aa0b0;
    --accent: #d48aa0;
    --accent-light: #e8a8b8;
    --gold: #c9a96e;
    --bg-cream: #f7f5f0;
    --bg-white: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #5a6c7d;
    --text-muted: #8a9aa8;
    --border: rgba(61, 126, 140, 0.15);
    --shadow-sm: 0 2px 12px rgba(61, 126, 140, 0.08);
    --shadow-md: 0 8px 32px rgba(61, 126, 140, 0.12);
    --shadow-lg: 0 20px 60px rgba(61, 126, 140, 0.18);
}

body {
    color: var(--text-primary);
    background: var(--bg-cream);
    line-height: 1.8;
    overflow-x: hidden;
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; }

/* ===== 顶部导航 ===== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.top-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
}

.nav-logo .logo-icon {
    color: var(--accent);
    font-size: 22px;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-link {
    position: relative;
    font-size: 15px;
    color: var(--text-secondary);
    transition: color 0.3s;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== Hero 横幅 ===== */
.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 68px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a4a54 0%, #3d7e8c 40%, #5aa0b0 70%, #8fc4d0 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(212, 138, 160, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(201, 169, 110, 0.1) 0%, transparent 50%);
}

.hero-petals {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.petal {
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50% 0 50% 50%;
    animation: petalFall 20s infinite linear;
}

.petal-1 { left: 10%; top: -30px; animation-duration: 25s; animation-delay: 0s; }
.petal-2 { left: 30%; top: -30px; animation-duration: 18s; animation-delay: 3s; }
.petal-3 { left: 55%; top: -30px; animation-duration: 22s; animation-delay: 6s; }
.petal-4 { left: 75%; top: -30px; animation-duration: 28s; animation-delay: 2s; }
.petal-5 { left: 90%; top: -30px; animation-duration: 20s; animation-delay: 8s; }

@keyframes petalFall {
    0% { transform: translateY(-30px) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-text { color: #fff; }

.hero-subtitle {
    font-size: 16px;
    letter-spacing: 6px;
    margin-bottom: 12px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: 10px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #e8d4a0 50%, #d48aa0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.hero-title::after {
    content: '作曲';
    position: absolute;
    top: 0;
    right: -40px;
    font-size: 12px;
    color: var(--accent-light);
    background: rgba(212, 138, 160, 0.2);
    border: 1px solid rgba(212, 138, 160, 0.4);
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 2px;
    -webkit-text-fill-color: var(--accent-light);
    transform: rotate(-5deg);
}

.hero-artist {
    font-size: 22px;
    letter-spacing: 5px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 20px rgba(212, 138, 160, 0.4);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(212, 138, 160, 0.5);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.hero-cover {
    display: flex;
    justify-content: center;
}

.cover-frame {
    position: relative;
    width: 340px;
    max-width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.cover-frame:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.cover-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

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

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-icon {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 13px;
    position: relative;
}

.scroll-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(12px); }
}

/* ===== 通用 Section ===== */
.section {
    padding: 60px 0;
    position: relative;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
    position: relative;
    letter-spacing: 3px;
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-title::before { right: calc(50% + 100px); }
.section-title::after { left: calc(50% + 100px); }

/* ===== 专辑信息 ===== */
.section-info { background: var(--bg-cream); }

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
    align-items: center;
}

.info-left {
    position: relative;
}

.info-cover-wrap {
    position: absolute;
    top: 0;
    right: 0;
    width: 180px;
    border-radius: 10px;
    overflow: hidden;
    z-index: 1;
}

.info-cover-wrap img {
    width: 100%;
    display: block;
}

.info-table {
    width: calc(100% - 200px);
    border-collapse: collapse;
}

.info-table th,
.info-table td {
    padding: 14px 0;
    text-align: left;
    border-bottom: 1px dashed var(--border);
    vertical-align: top;
}

.info-table th {
    width: 100px;
    color: rgb(26 58 74 / 0.7);
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}

.info-table td {
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.7;
}

.info-image {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.info-book {
    padding: 48px 44px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.info-book-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 14px;
    line-height: 1.1;
    margin-bottom: 8px;
}

.info-book-sub {
    display: inline-block;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 6px;
    padding: 4px 14px;
    border: 1px solid var(--border);
    border-radius: 2px;
    margin-bottom: 36px;
}

.info-book-body p {
    font-size: 14px;
    line-height: 2.15;
    color: var(--text-secondary);
    text-align: justify;
    text-indent: 2em;
    margin-bottom: 0;
    letter-spacing: 0.3px;
}

.info-book-sign {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.info-book-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 8px;
    margin-bottom: 4px;
}

.info-book-role {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 3px;
}

.info-book-foot {
    margin-top: 24px;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    line-height: 1.9;
}

.info-intro {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.info-intro-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 6px;
    margin-bottom: 14px;
    display: inline-block;
    position: relative;
    padding-left: 18px;
}

.info-intro-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 22px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--gold) 100%);
    border-radius: 3px;
    transform: translateY(-50%);
}

.info-intro p {
    font-size: 15px;
    line-height: 2.05;
    color: var(--text-secondary);
    text-indent: 2em;
    margin-bottom: 0;
}

.info-intro-reco {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
    font-size: 13px !important;
    color: var(--text-muted) !important;
    text-indent: 0 !important;
    line-height: 1.9 !important;
    letter-spacing: 0.5px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.info-intro-reco::before {
    content: '★';
    color: var(--gold);
    font-size: 11px;
    flex-shrink: 0;
    line-height: inherit;
    margin-top: 3px;
}

@media (max-width: 960px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        align-items: start;
    }
    .info-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .info-cover-wrap {
        position: static;
        float: none;
        margin: 0 auto 20px;
        width: 180px;
    }
    .info-table {
        width: 100%;
    }
    .info-book { padding: 36px 28px 32px; }
    .info-book-title { font-size: 34px; letter-spacing: 10px; }
    .info-book-sub { margin-bottom: 24px; }
    .info-book-body p { font-size: 14px; line-height: 2.05; }
    .info-book-sign { margin-top: 24px; padding-top: 16px; }
    .info-book-name { font-size: 20px; letter-spacing: 6px; }
    .info-book-foot { font-size: 11px; }
    .info-intro { margin-top: 20px; padding-top: 20px; }
    .info-intro-title { font-size: 20px; letter-spacing: 4px; }
    .info-intro p { font-size: 14px; line-height: 1.95; }
    .info-intro-reco { font-size: 12px !important; line-height: 1.85 !important; margin-top: 16px; }
}

/* ===== 曲目目录 ===== */
.section-tracklist { background: var(--bg-white); }

.tracklist-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.tracklist-table {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.tracklist-header {
    display: grid;
    grid-template-columns: 60px 1.5fr 2fr 80px 80px;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    gap: 16px;
    align-items: center;
}

.tracklist-body {
    max-height: 600px;
    overflow-y: auto;
}

.tracklist-body::-webkit-scrollbar { width: 6px; }
.tracklist-body::-webkit-scrollbar-track { background: transparent; }
.tracklist-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.track-row {
    display: grid;
    grid-template-columns: 60px 1.5fr 2fr 80px 80px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    align-items: center;
    gap: 16px;
    transition: background 0.2s;
    cursor: pointer;
}

.track-row:last-child { border-bottom: none; }

.track-row:hover {
    background: #f7fafb;
}

.track-row.playing {
    background: linear-gradient(90deg, rgba(212, 138, 160, 0.08), transparent);
    border-left: 3px solid var(--accent);
    padding-left: 21px;
}

.track-row.playing .track-name { color: var(--accent); }

.track-index {
    font-size: 16px;
    color: var(--text-muted);
    text-align: center;
}

.track-row.playing .track-index {
    color: var(--accent);
    font-weight: 700;
}

.track-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.2s;
}

.track-credit {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.track-credit span { display: block; }

.track-dur {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 8px;
}

.track-name {
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.track-name-title { font-size: 16px; }

.track-name-sub {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

.track-action {
    display: flex;
    gap: 8px;
}

.track-play-btn,
.track-detail-btn {
    width: 24px;
    height: 24px;
    background: transparent;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    opacity: 1;
    border: none;
    cursor: pointer;
    padding: 0;
}

.track-play-btn svg { width: 22px; height: 22px; fill: currentColor; }
.track-detail-btn svg { width: 22px; height: 22px; }

.track-play-btn:hover,
.track-detail-btn:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* ===== 歌唱家简介 ===== */
.section-artist { background: var(--bg-cream); }

.artist-wrap {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 50px;
    margin-top: 30px;
    align-items: start;
}

.artist-photo-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 3/4;
}

.artist-photo-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(44, 95, 107, 0.3) 100%);
    pointer-events: none;
}

.artist-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.artist-quote {
    font-size: 15px;
    color: var(--accent);
    margin-bottom: 28px;
    font-style: italic;
    letter-spacing: 2px;
}

.artist-bio p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 2;
    margin-bottom: 18px;
    text-indent: 2em;
}

/* .artist-bio p:last-child { margin-bottom: 24px; } */

.artist-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.artist-tag {
    padding: 6px 16px;
    background: rgba(61, 126, 140, 0.08);
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid rgba(61, 126, 140, 0.15);
}

/* ===== 专辑图片 ===== */
.section-gallery { background: var(--bg-white); }

.gallery-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 16px 12px;
    background: linear-gradient(180deg, transparent, rgba(44, 95, 107, 0.85));
    color: #fff;
    font-size: 14px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* ===== 图片查看器 ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    touch-action: none;
}

.lightbox.show { display: flex; }

.lightbox-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
    will-change: transform;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

.lightbox-hint {
    position: absolute;
    bottom: calc(30px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 2px;
    pointer-events: none;
    z-index: 2;
}

.lightbox-close {
    position: absolute;
    top: max(20px, env(safe-area-inset-top));
    right: 20px;
    color: #fff;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s, transform 0.3s;
    z-index: 2;
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
    display: block;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-close:active { transform: scale(0.9); }

/* ===== 专辑后记 ===== */
.section-postscript {
    background: var(--bg-white);
    position: relative;
    padding-top: 30px;
}

.section-postscript::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(61, 126, 140, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(201, 169, 110, 0.1) 0%, transparent 55%);
    pointer-events: none;
}

.postscript-wrap {
    position: relative;
    max-width: 820px;
    margin: 24px auto 0;
    padding: 48px 56px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.postscript-quote {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 96px;
    line-height: 1;
    color: var(--primary-light);
    opacity: 0.35;
    position: absolute;
    top: 8px;
    left: 28px;
    user-select: none;
}

.postscript-quote-close {
    top: auto;
    left: auto;
    bottom: -36px;
    right: 28px;
    transform: rotate(180deg);
}

.postscript-content {
    position: relative;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 2.15;
    letter-spacing: 1.3px;
}

.postscript-content p {
    text-indent: 2em;
    margin-bottom: 18px;
}

.postscript-content p:last-child {
    margin-bottom: 0;
    color: var(--primary-dark);
    font-weight: 500;
}

.postscript-sign {
    margin-top: 36px;
    text-align: right;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.postscript-sign-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 10px;
    padding-right: 2px;
}

.postscript-sign-date {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-top: 6px;
}

@media (max-width: 640px) {
    .section-postscript { padding-top: 20px; }
    .postscript-wrap {
        padding: 36px 28px;
        margin-top: 20px;
    }
    .postscript-quote {
        font-size: 72px;
        left: 16px;
        top: 2px;
    }
    .postscript-quote-close {
        right: 16px;
        bottom: -28px;
    }
    .postscript-content {
        font-size: 15px;
        line-height: 2;
    }
    .postscript-sign { margin-top: 28px; padding-top: 16px; }
    .postscript-sign-name { font-size: 18px; letter-spacing: 8px; }
    .postscript-sign-date { font-size: 12px; letter-spacing: 1px; }
}

/* ===== 底部 ===== */
.footer {
    background: #1b3b4a;
    color: rgba(255, 255, 255, 0.75);
    padding: 56px 0 28px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 36px;
    gap: 40px;
}

.footer-brand {
    flex: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo-icon {
    width: 64px;
    height: auto;
    flex-shrink: 0;
    display: block;
}

.footer-logo-cn {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.footer-logo-en {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
}

.footer-publish {
    font-size: 15px;
    color: rgb(255 255 255 / 0.7);
    white-space: nowrap;
}

.footer-isbn {
    text-align: right;
    flex-shrink: 0;
}

.footer-isbn-label {
    font-size: 0.875rem;
    border-width: 0;
    border-style: solid;
    color: rgb(255 255 255 / 0.7);
}

.footer-isbn-num {
    font-size: 0.875rem;
    color: rgb(255 255 255 / 0.7);
    font-weight: 700;
}

.footer-middle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 28px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-info-item,
.footer-credit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

.footer-info-icon,
.footer-credit-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.75);
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
}

.footer-bottom p {
    margin: 0;
}

.footer-icp {
    font-size: 12px;
    margin-top: 4px !important;
}

/* ===== 底部播放栏 ===== */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 90;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    padding-bottom: env(safe-area-inset-bottom);
}

.player-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 40px;
    display: grid;
    grid-template-columns: minmax(220px, 340px) 1fr 60px;
    gap: 24px;
    align-items: center;
    min-height: 76px;
}

.player-bar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.player-bar-cover {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

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

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

.player-bar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.player-bar-artist {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-bar-center {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.pc-btn {
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color 0.25s, transform 0.15s;
    padding: 0;
}

.pc-btn:hover { color: var(--primary); }
.pc-btn:active { transform: scale(0.9); }

.pc-btn-play {
    color: var(--primary);
}

.pc-btn-play:hover { color: var(--primary-dark); }

.player-progress {
    width: 100%;
    max-width: 520px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pc-time {
    font-size: 12px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.pc-bar {
    position: relative;
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: rgba(44, 62, 80, 0.15);
    cursor: pointer;
}

.pc-bar-played {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: 4px;
    background: var(--primary);
    width: 0;
}

.pc-bar-thumb {
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    transform: translate(-50%, -50%);
    box-shadow: 0 1px 4px rgba(61, 126, 140, 0.4);
    opacity: 0;
    transition: opacity 0.2s;
}

.pc-bar:hover .pc-bar-thumb { opacity: 1; }

.player-bar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    position: relative;
}

.player-bar-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    font-size: 16px;
}

.player-bar-btn:hover {
    color: var(--primary);
    background: rgba(61, 126, 140, 0.1);
}

.volume-slider-wrap {
    position: absolute;
    right: 0;
    bottom: 100%;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 20px;
    padding: 10px 16px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.25s;
}

.player-bar-right:hover .volume-slider-wrap {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 110px;
    height: 4px;
    border-radius: 4px;
    background: rgba(44, 62, 80, 0.15);
    outline: none;
    cursor: pointer;
}

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

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

.aplayer-engine-hidden { display: none !important; }

/* ===== 歌曲详情弹窗 ===== */
.lyric-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lyric-modal.show {
    display: flex;
}

.lyric-modal-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 30, 45, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lyric-modal-box {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lyric-modal-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.lyric-modal-title {
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.lyric-modal-subtitle {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.8;
}

.lyric-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
}

.lyric-modal-close svg {
    width: 18px;
    height: 18px;
    display: block;
}

.lyric-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.lyric-modal-meta {
    flex-shrink: 0;
    padding: 16px 28px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.lyric-modal-detail {
    flex-shrink: 0;
    padding: 14px 28px;
    background: linear-gradient(135deg, rgba(61, 126, 140, 0.06) 0%, rgba(212, 138, 160, 0.06) 100%);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
    white-space: pre-line;
}

.lyric-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px 28px;
    text-align: center;
    line-height: 2.2;
    font-size: 15px;
    color: var(--text-primary);
}

.lyric-modal-body p {
    margin: 0 0 4px;
}

.lyric-modal-body p.empty {
    color: var(--text-muted);
    font-style: italic;
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
    .nav-links { display: none; }
    .nav-links.show {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #fff;
        padding: 12px 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        border-top: 1px solid var(--border);
    }
    .nav-links.show .nav-link {
        padding: 14px 24px;
        width: 100%;
        text-align: left;
    }
    .nav-links.show .nav-link::after { display: none; }
    .nav-toggle { display: flex; }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 24px;
        gap: 40px;
    }

    .hero-title { font-size: 56px; letter-spacing: 8px; }
    .hero-subtitle { font-size: 16px; letter-spacing: 4px; }
    .hero-artist { font-size: 20px; letter-spacing: 4px; }
    .hero-actions { justify-content: center; }

    .cover-frame {
        width: 280px;
        transform: none;
    }

    .section { padding: 70px 0; }
    .section-inner { padding: 0 24px; }
    .section-title { font-size: 28px; }
    .section-title::before, .section-title::after { width: 40px; }
    .section-title::before { right: calc(50% + 80px); }
    .section-title::after { left: calc(50% + 80px); }

    .info-grid,
    .artist-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .nav-inner { padding: 0 24px; height: 60px; }
    .nav-logo { font-size: 17px; }

    .tracklist-header { display: none; }
    .track-row {
        grid-template-columns: 40px 1fr 60px;
        grid-template-areas:
            "index name action"
            "index credit dur";
        padding: 14px 16px;
        gap: 8px;
    }
    .track-index { grid-area: index; }
    .track-name { grid-area: name; font-size: 15px; }
    .track-credit { grid-area: credit; }
    .track-dur { grid-area: dur; text-align: right; font-size: 13px; }
    .track-action { grid-area: action; }
    .track-play-btn,
    .track-detail-btn { width: 22px; height: 22px; }
    .track-play-btn svg,
    .track-detail-btn svg { width: 20px; height: 20px; }

    /* 底部响应式 */
    .footer-inner { padding: 0 24px; }
    .footer-top {
        flex-direction: column;
        gap: 20px;
    }
    .footer-isbn {
        text-align: left;
    }
    .footer-middle {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-logo-cn { font-size: 18px; }
    .footer-logo-en { font-size: 12px; }
    .footer-logo-icon { width: 48px; height: auto; }
    .footer-publish { font-size: 13px; }

    .player-bar-inner {
        grid-template-columns: 1fr auto;
        padding: 8px 16px;
        gap: 10px;
        min-height: 64px;
    }
    .player-bar-center {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    .player-progress { display: none; }
    .player-controls { gap: 18px; }
    .volume-slider-wrap { display: none; }
    .player-bar-cover { width: 48px; height: 48px; }
    .player-bar-title { font-size: 15px; }
    .player-bar-right { grid-column: 2; grid-row: 1; }

    body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}

@media (max-width: 480px) {
    .hero-title { font-size: 44px; letter-spacing: 6px; }
    .hero-subtitle { font-size: 14px; }
    .hero-artist { font-size: 18px; }
    .cover-frame { width: 240px; }
    .btn { padding: 12px 24px; font-size: 14px; }
    .section-title { font-size: 24px; letter-spacing: 2px; }
    .gallery-grid { grid-template-columns: 1fr; }
}
