/* 基础样式：沿用原来的分区、类名和定位方法 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: clip;
    background: #eb282b;
    color: #fffdf5;
    font-family: Georgia, 'Times New Roman', serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
}

a:focus-visible {
    outline: 3px solid white;
    outline-offset: 8px;
}

header, main {
    max-width: 1440px;
    margin: auto;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3.3% 6.6%;
}

.txt {
    font: 14px Arial, sans-serif;
    padding: 8px 0;
}

.txt span {
    color: #351c1c;
    margin-left: 10px;
    display: inline-block;
    transition: transform .25s;
}

.txt:hover span {
    transform: translateY(4px);
}

section {
    width: 100%;
    position: relative;
}

/* 第一页：唱片与介绍 */
.page1 {
    aspect-ratio: 1440 / 1760;
}

.page1 .title-name {
    position: absolute;
    top: 14.5%;
    width: 100%;
    text-align: center;
    font-family: Mistral, 'Brush Script MT', cursive;
    font-size: clamp(70px, 16vw, 230px);
    font-weight: normal;
    line-height: 1;
    transform: rotate(-5deg);
}

.page1 .album, .page2 .album-img {
    position: absolute;
    display: block;
    transition: transform .35s, filter .35s;
}

.page1 .album:hover, .page2 .album-img:hover, .page1 .album:focus-visible, .page2 .album-img:focus-visible {
    transform: rotate(0deg) scale(1.12);
    filter: drop-shadow(0 14px 15px #72101155);
    z-index: 10;
}

.page1 .album1 {
    top: 6.3%;
    left: 8%;
    width: 10.8%;
    transform: rotate(-15deg);
}

.page1 .album2 {
    top: 1.6%;
    left: 32.6%;
    width: 7.1%;
    transform: rotate(15deg);
}

.page1 .album3 {
    top: 4.6%;
    right: 10.2%;
    width: 11%;
    transform: rotate(29deg);
}

.page1 .album4 {
    top: 23%;
    left: 13%;
    width: 8%;
    transform: rotate(30deg);
}

.page1 .album5 {
    top: 32%;
    left: 34%;
    width: 8%;
    transform: rotate(-30deg);
}

.page1 .album6 {
    top: 24.4%;
    right: 12.5%;
    width: 8.3%;
    transform: rotate(-30deg);
}

.page1 .album7 {
    top: 30.8%;
    left: 54%;
    width: 13%;
    transform: rotate(28deg);
}

.page1 .album8 {
    top: 1.7%;
    left: 57%;
    width: 9.8%;
    transform: rotate(-30deg);
}

.page1 .big-s {
    position: absolute;
    top: 48%;
    left: 13%;
    font-family: 'Times New Roman', serif;
    font-size: clamp(200px, 66vw, 950px);
    font-style: italic;
    line-height: .9;
    transform: rotate(19deg);
}

.page1 .text-block {
    position: absolute;
    left: 56%;
    top: 59.5%;
    width: 15.5%;
    font-size: clamp(14px, 1.63vw, 23.5px);
    font-weight: bold;
    line-height: 1.35;
}

.page1 .portrait {
    position: absolute;
    right: 6.5%;
    top: 59%;
    width: 17.8%;
}

.page1 .portrait figcaption {
    font: clamp(14px, 1.45vw, 21px)/1.15 'Arial Narrow', Arial, sans-serif;
    margin-top: 15px;
}

/* 第二页：专辑 */
.page2 {
    aspect-ratio: 1440 / 1030;
}

.page2 .main-title {
    position: absolute;
    top: 14%;
    left: 0;
    font-size: clamp(40px, 8.3vw, 120px);
    line-height: 1.1;
}

.page2 .sub-title {
    position: absolute;
    top: 28%;
    left: 0;
    font-size: clamp(20px, 3.3vw, 48px);
}

.page2 .desc-text {
    position: absolute;
    top: 39%;
    left: 34.2%;
    width: 28%;
    font-size: clamp(14px, 1.8vw, 26px);
    font-weight: bold;
    line-height: 1.4;
}

.page2 .a1 {
    top: 3%;
    right: 22.5%;
    width: 12%;
    transform: rotate(43deg);
    z-index: 1;
}

.page2 .a2 {
    top: 15%;
    right: 12.8%;
    width: 15%;
    transform: rotate(-17deg);
    z-index: 2;
}

.page2 .a3 {
    top: 32%;
    right: 6.2%;
    width: 20%;
    z-index: 5;
}

.page2 .a4 {
    top: 54%;
    right: 13%;
    width: 16%;
    transform: rotate(30deg);
    z-index: 4;
}

.page2 .a5 {
    top: 70%;
    right: 25%;
    width: 12%;
    transform: rotate(-30deg);
    z-index: 3;
}

/* 第三页：难忘今宵 */
.page3 {
    aspect-ratio: 1440 / 740;
}

.page3 h2 {
    padding-top: 3%;
    text-align: right;
    white-space: nowrap;
    font-size: clamp(32px, 7.7vw, 111px);
    letter-spacing: -2px;
}

.page3 .song-img {
    position: absolute;
    left: 16.2%;
    top: 35%;
    width: 23.2%;
    transition: transform .3s;
}

.page3 .song-img:hover {
    transform: scale(1.04);
}

.page3 .lyrics {
    position: absolute;
    right: 9.5%;
    top: 33%;
    width: 41%;
    font-size: clamp(14px, 1.75vw, 25px);
    font-weight: bold;
    line-height: 1.4;
    text-align: center;
}

.page3 .farewell {
    font-size: 1.45em;
}

/* 第四页：结尾 */
.page4 {
    aspect-ratio: 1440 / 680;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    padding-top: 3%;
}

.page4 .footer-text {
    font-size: clamp(36px, 8.1vw, 116px);
    font-weight: bold;
    line-height: .98;
}

.page4 .copyright {
    position: absolute;
    bottom: 3%;
    left: 4.3%;
    font-size: clamp(14px, 2vw, 29px);
    font-weight: bold;
}

.page4 .social {
    position: absolute;
    bottom: 3%;
    right: 2.5%;
    font: bold clamp(14px, 1.7vw, 24px) Arial, sans-serif;
}

/* CSS 图片放大 */
.lightbox {
    position: fixed;
    inset: 0;
    background: #210909e8;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.lightbox:target {
    display: flex;
}

.close-area {
    position: absolute;
    inset: 0;
}

.lightbox figure {
    position: relative;
    width: min(75vh, 85vw, 700px);
}

.lightbox img {
    max-height: 75vh;
    object-fit: contain;
}

.lightbox figcaption {
    padding: 18px 0;
    font: 16px Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.close {
    font: 36px/1 Arial, sans-serif;
    padding: 0 8px;
}

/* 小屏幕排版 */
@media (max-width: 700px) {
    nav {
        padding: 20px 6%;
        gap: 14px;
    }

    .txt {
        font-size: 12px;
    }

    .txt span {
        margin-left: 3px;
    }

    .page1 {
        aspect-ratio: auto;
        min-height: 1040px;
        padding-top: 450px;
    }

    .page1 .title-name {
        top: 135px;
        font-size: 100px;
    }

    .page1 .album1 {
        top: 55px;
        width: 16%;
    }

    .page1 .album2 {
        top: 10px;
        width: 10%;
    }

    .page1 .album3 {
        top: 50px;
        width: 15%;
        right: 6%;
    }

    .page1 .album4 {
        top: 250px;
        width: 13%;
    }

    .page1 .album5 {
        top: 325px;
        width: 12%;
        left: 30%;
    }

    .page1 .album6 {
        top: 250px;
        width: 13%;
        right: 7%;
    }

    .page1 .album7 {
        top: 320px;
        width: 20%;
    }

    .page1 .album8 {
        top: 15px;
        width: 13%;
    }

    .page1 .big-s {
        top: 455px;
        left: 7%;
        font-size: 310px;
    }

    .page1 .text-block {
        position: relative;
        top: auto;
        left: 48%;
        width: 45%;
        font-size: 16px;
        line-height: 1.4;
    }

    .page1 .portrait {
        position: relative;
        top: auto;
        right: auto;
        margin: 32px 7% 30px auto;
        width: 75%;
        display: flex;
        gap: 20px;
        align-items: center;
    }

    .page1 .portrait img {
        width: 43%;
    }

    .page1 .portrait figcaption {
        font-size: 14px;
        margin: 0;
    }

    .page2 {
        aspect-ratio: auto;
        min-height: 810px;
        padding: 30px 6%;
    }

    .page2 .main-title, .page2 .sub-title, .page2 .desc-text {
        position: static;
    }

    .page2 .main-title {
        font-size: 48px;
    }

    .page2 .sub-title {
        font-size: 24px;
        margin-top: 14px;
    }

    .page2 .desc-text {
        width: 65%;
        margin: 24px 0;
        font-size: 16px;
    }

    .page2 .a1 {
        top: 340px;
        right: 35%;
        width: 23%;
    }

    .page2 .a2 {
        top: 400px;
        right: 21%;
        width: 25%;
    }

    .page2 .a3 {
        top: 480px;
        right: 10%;
        width: 33%;
    }

    .page2 .a4 {
        top: 590px;
        right: 23%;
        width: 28%;
    }

    .page2 .a5 {
        top: 670px;
        right: 44%;
        width: 22%;
    }

    .page3 {
        aspect-ratio: auto;
        padding: 35px 6% 60px;
    }

    .page3 h2 {
        font-size: clamp(29px, 7.6vw, 52px);
        text-align: center;
        letter-spacing: -1px;
    }

    .page3 .song-img {
        position: static;
        width: 48%;
        margin: 35px auto;
    }

    .page3 .lyrics {
        position: static;
        width: 100%;
        font-size: 15px;
        line-height: 1.6;
    }

    .page4 {
        aspect-ratio: auto;
        min-height: 370px;
        padding: 30px 4% 80px;
    }

    .page4 .footer-text {
        font-size: clamp(32px, 8vw, 56px);
        line-height: 1.05;
    }

    .page4 .copyright, .page4 .social {
        bottom: 22px;
        font-size: 14px;
    }

}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }

}
/* 新增内容：保留红白配色与大字排版 */
.story, .collection, .listening {
    padding: 100px 6.6%;
}
.section-label {
    font: 13px Arial, sans-serif;
    letter-spacing: 2px;
    padding-bottom: 24px;
    border-bottom: 1px solid #fff8;
    margin-bottom: 64px;
}
.story-layout, .listening-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}
.story h2, .listening h2 {
    font-size: clamp(56px, 7.8vw, 112px);
    line-height: .98;
    font-weight: normal;
    letter-spacing: -3px;
}
.story-list details {
    border-bottom: 1px solid #fff7;
    padding: 24px 0;
}
summary {
    cursor: pointer;
    font: 24px Georgia, serif;
    padding: 6px 0;
}
summary span {
    float: right;
    font: 12px Arial, sans-serif;
    opacity: .7;
}
details p {
    font: 17px/1.7 Arial, sans-serif;
    padding-top: 20px;
    max-width: 48ch;
}
.text-link {
    display: inline-block;
    margin-top: 24px;
    border-bottom: 1px solid;
    padding-bottom: 6px;
}
.collection-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 40px;
}
.collection-heading h2 {
    font-size: clamp(42px, 5vw, 72px);
    font-weight: normal;
    max-width: 650px;
}
.collection-heading p {
    font: 16px/1.5 Arial, sans-serif;
    max-width: 210px;
}
.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}
.filters label {
    border: 1px solid #fff9;
    border-radius: 30px;
    padding: 13px 22px;
    font: 14px Arial, sans-serif;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.filter-input {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
}
#all-records:checked ~ .filters label[for="all-records"],
#selected-records:checked ~ .filters label[for="selected-records"] {
    background: #fffdf5;
    color: #b51920;
}
#all-records:focus-visible ~ .filters label[for="all-records"],
#selected-records:focus-visible ~ .filters label[for="selected-records"] {
    outline: 3px solid white;
    outline-offset: 4px;
}
#selected-records:checked ~ .record-grid .more-record {
    display: none;
}
.record-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 46px 24px;
}
.record-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #a91c22;
}
.record-image img {
    height: 100%;
    object-fit: cover;
    transition: transform .45s;
}
.record-image span {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 9px 12px;
    background: #fffdf5;
    color: #95181c;
    font: 12px Arial, sans-serif;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s;
}
.record a:hover img, .record a:focus-visible img {
    transform: scale(1.06);
}
.record a:hover span, .record a:focus-visible span {
    opacity: 1;
    transform: translateY(0);
}
.record-caption {
    display: flex;
    gap: 12px;
    padding-top: 18px;
}
.record-caption > span {
    font: 12px Arial, sans-serif;
    opacity: .65;
    padding-top: 4px;
}
.record-caption h3 {
    font-size: 18px;
    font-weight: normal;
}
.record-caption small {
    display: block;
    margin-top: 8px;
    font: 13px/1.4 Arial, sans-serif;
}
.song-label {
    font: 12px Arial, sans-serif;
    letter-spacing: 2px;
    margin-bottom: 24px;
}
.page3 {
    margin-top: 90px;
    aspect-ratio: 1440 / 840;
}
.song-jump {
    position: absolute;
    top: 81%;
    left: 16.2%;
    font: 14px Arial, sans-serif;
    border-bottom: 1px solid;
    padding-bottom: 8px;
}
.listening {
    background: #ce2025;
    margin-bottom: 110px;
}
.listening-layout > div > p {
    margin-top: 28px;
    font-size: 19px;
}
.listen-card {
    border: 1px solid #fff7;
    padding: 36px;
    align-self: center;
}
.song-tag {
    font: 12px Arial, sans-serif;
    letter-spacing: 2px;
}
.listen-card h3 {
    font-size: 35px;
    font-weight: normal;
    margin: 24px 0 14px;
}
.listen-card > p {
    font: 16px/1.6 Arial, sans-serif;
}
.music-player {
    display: block;
    width: 100%;
    height: 110px;
    border: 0;
    margin: 26px 0 10px;
    background: #fffdf5;
    border-radius: 4px;
}
.listen-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 24px 0 12px;
    background: #fffdf5;
    color: #b71920;
    padding: 18px;
    font: 15px Arial, sans-serif;
    transition: transform .2s;
}
.listen-button:hover {
    transform: translateY(-3px);
}
.listen-card .listen-note {
    font-size: 13px;
    opacity: .8;
}
.listen-card details {
    border-top: 1px solid #fff5;
    margin-top: 26px;
    padding-top: 18px;
}
.listen-card summary {
    font: 14px Arial, sans-serif;
}
.page4 .social {
    border-bottom: 1px solid;
    padding-bottom: 5px;
}
@media (max-width: 900px) {
    .story-layout, .listening-layout {
        gap: 36px;
    }
    .record-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 700px) {
    .story, .collection, .listening {
        padding: 60px 6%;
    }
    .section-label {
        margin-bottom: 40px;
    }
    .story-layout, .listening-layout {
        grid-template-columns: 1fr;
    }
    .collection-heading {
        display: block;
    }
    .collection-heading p {
        margin-top: 20px;
        max-width: none;
    }
    .record-grid {
        gap: 32px 16px;
    }
    .record-image span {
        display: none;
    }
    .record-caption {
        gap: 8px;
    }
    .record-caption h3 {
        font-size: 16px;
    }
    .page3 {
        aspect-ratio: auto;
        margin-top: 35px;
    }
    .song-jump {
        position: static;
        display: table;
        margin: 28px auto 0;
    }
    .listen-card {
        padding: 24px;
    }
    .listening {
        margin-bottom: 45px;
    }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
/* 专辑交互与视觉完善 */
:root {
    --paper: #fff8eb;
    --ink: #49181d;
}
::selection {
    background: var(--paper);
    color: #bc1d26;
}
section[id], article[id] {
    scroll-margin-top: 28px;
}
nav .txt {
    position: relative;
}
nav .txt::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width .25s;
}
nav .txt:hover::after {
    width: 100%;
}
.collection {
    padding-bottom: 70px;
}
.collection-guide {
    font: 14px/1.8 Arial, sans-serif;
    margin-bottom: 24px;
    opacity: .85;
}
.collection-guide span {
    margin: 0 14px;
}
.record {
    transition: transform .25s;
}
.record:hover {
    transform: translateY(-6px);
}
.record-image {
    padding: 12px;
    background: #b51e26;
    border: 1px solid #fff3;
}
.record-image img {
    box-shadow: 0 8px 18px #5a141333;
}
.record-image span {
    opacity: 1;
    transform: none;
}
.album-library {
    padding: 0 6.6%;
}
.album-panel {
    display: none;
    background: var(--paper);
    color: var(--ink);
    padding: 32px 40px 44px;
    margin: 0 auto 80px;
    border-radius: 3px;
    box-shadow: 0 22px 50px #780d2030;
}
.album-panel:target {
    display: block;
    animation: panel-in .35s ease-out;
}
@keyframes panel-in {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.panel-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font: 12px/1.5 Arial, sans-serif;
    letter-spacing: 1.5px;
    border-bottom: 1px solid #49181d30;
    padding-bottom: 22px;
    margin-bottom: 38px;
}
.panel-top a {
    padding: 8px;
    letter-spacing: 0;
    white-space: nowrap;
    border: 1px solid #49181d40;
}
.album-layout {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr);
    gap: 55px;
    align-items: start;
}
.album-art {
    position: sticky;
    top: 28px;
}
.album-art img {
    aspect-ratio: 1;
    object-fit: cover;
    box-shadow: 10px 10px 0 #49181d12;
    margin-bottom: 32px;
}
.album-art > p:first-of-type {
    font: 12px Arial, sans-serif;
    letter-spacing: 2px;
    margin-bottom: 14px;
}
.album-art h2 {
    font-size: clamp(28px, 3vw, 44px);
    font-weight: normal;
    margin-bottom: 10px;
}
.album-art > span {
    font: italic 18px Georgia, serif;
}
.album-art .album-note {
    font: 13px/1.8 Arial, sans-serif;
    color: #805a5b;
    margin-top: 24px;
}
.album-art .text-link {
    font: 14px Arial, sans-serif;
}
.track-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.track-heading h3 {
    font-size: 32px;
    font-weight: normal;
}
.track-heading > span {
    font: 11px Arial, sans-serif;
    letter-spacing: 1px;
}
.track-help {
    font: 13px Arial, sans-serif;
    color: #805a5b;
    margin: 15px 0 26px;
}
.track {
    border-top: 1px solid #49181d30;
}
.track:last-child {
    border-bottom: 1px solid #49181d30;
}
.track > summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 23px 12px;
    transition: background .2s;
}
.track > summary::-webkit-details-marker {
    display: none;
}
.track > summary:hover {
    background: #49181d08;
}
.track > summary span {
    float: none;
    opacity: 1;
}
.track .track-number {
    font: 12px Arial, sans-serif;
    color: #9b7374;
}
.track .track-name {
    flex: 1;
    font: 19px Georgia, 'Microsoft YaHei', serif;
}
.track-name small {
    display: block;
    font: 10px Arial, sans-serif;
    letter-spacing: 2px;
    margin-top: 7px;
    color: #9b7374;
}
.track .track-plus {
    font-size: 24px;
    color: #ce2025;
    transition: transform .2s;
}
.track[open] .track-plus {
    transform: rotate(45deg);
}
.track[open] > summary {
    color: #ce2025;
    background: #ce202508;
}
.track-lyrics {
    padding: 22px 24px 32px 43px;
}
.lyric-label {
    font: 10px Arial, sans-serif;
    letter-spacing: 2px;
    color: #9b7374;
    margin-bottom: 25px;
}
.track-lyrics blockquote {
    font-size: 25px;
    line-height: 1.9;
    border-left: 2px solid #ce2025;
    padding-left: 20px;
}
.track-lyrics p {
    font-size: 14px;
    line-height: 1.8;
}
.track-lyrics .lyric-lines p {
    font: 17px/1.8 Georgia, serif;
    padding: 0;
}
.track-lyrics .lyric-lines .song-label {
    display: none;
}
.song-action {
    display: inline-block;
    font: 13px/1.5 Arial, sans-serif;
    color: #b82029;
    border-bottom: 1px solid #b82029;
    padding-bottom: 5px;
    margin-top: 28px;
}
.album-panel a:focus-visible, .album-panel summary:focus-visible {
    outline: 2px solid #b82029;
    outline-offset: 4px;
}
.floating-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--paper);
    color: #ce2025;
    border: 1px solid #ce202530;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    z-index: 20;
    box-shadow: 0 4px 18px #49181d22;
}
.page4 .copyright {
    font-size: clamp(12px, 1.4vw, 20px);
}
@media (max-width: 700px) {
    .album-library {
        padding: 0 5%;
    }
    .album-panel {
        padding: 22px;
    }
    .album-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .album-art {
        position: static;
    }
    .album-art img {
        max-width: 230px;
    }
    .panel-top {
        font-size: 10px;
        margin-bottom: 26px;
    }
    .track-heading h3 {
        font-size: 28px;
    }
    .track-lyrics {
        padding-left: 12px;
        padding-right: 12px;
    }
    .track-lyrics blockquote {
        font-size: 21px;
    }
    .collection-guide {
        font-size: 12px;
    }
    .collection-guide span {
        margin: 0 3px;
    }
    .floating-top {
        bottom: 65px;
        right: 14px;
    }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
