/* 展厅空间、各作品专属排版、谢幕卡与个人记录工具栏（第 3 层；手机端独立样式位于 css/mobile/） */

#space-gallery.active { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.gallery-topbar { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 20px 64px; border-bottom: 1px solid var(--border-soft); flex-shrink: 0; }
.back-link { font-family: 'LXGW WenKai TC', 'Noto Serif SC', serif; font-size: 13.5px; letter-spacing: 2px; text-decoration: none; color: var(--ink-main); transition: opacity 0.3s; }
.back-link:hover { opacity: 0.6; }
.gallery-top-title { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; pointer-events: none; font-family: 'LXGW WenKai TC', 'Noto Serif SC', serif; font-size: 14px; letter-spacing: 2.5px; color: var(--ink-muted); }
.gallery-music-placeholder { width: 160px; }
.gallery-container { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px 90px 60px 90px; gap: 68px; position: relative; overflow: hidden; }
.gallery-left { flex: 1.1; height: 100%; display: flex; justify-content: center; align-items: center; position: relative; }
.gal-slide-item { position: absolute; inset: 0; opacity: 0; pointer-events: none; transform: scale(0.985); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1); display: flex; align-items: center; justify-content: center; }
.gal-slide-item.active { opacity: 1; pointer-events: auto; transform: scale(1); }
.gal-slide-item .art-frame-wrapper img { max-height: calc(74vh - 32px); max-width: 100%; }

.gallery-right {
    flex: 1; display: flex; flex-direction: column; justify-content: flex-start;
    max-width: 500px; max-height: 80vh; overflow-y: auto;
    padding-top: 16px; padding-bottom: 28px; padding-right: 18px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 24px), transparent 100%);
}
.gallery-right::-webkit-scrollbar { width: 4px; }
.gallery-right::-webkit-scrollbar-track { background: transparent; }
.gallery-right::-webkit-scrollbar-thumb { background-color: rgba(120, 113, 101, 0.22); border-radius: 4px; }
.gallery-right:hover::-webkit-scrollbar-thumb { background-color: rgba(120, 113, 101, 0.42); }
body.dark-chapter .gallery-right::-webkit-scrollbar-thumb { background-color: rgba(232, 222, 200, 0.22); }
body.dark-chapter .gallery-right:hover::-webkit-scrollbar-thumb { background-color: rgba(232, 222, 200, 0.42); }
@supports not selector(::-webkit-scrollbar) {
    .gallery-right,
    #view-archive.active {
        scrollbar-width: thin;
        scrollbar-color: rgba(120, 113, 101, 0.28) transparent;
    }
}

.chapter-box { display: none; opacity: 0; transform: translateY(12px); margin: auto 0; }
.chapter-box.active { display: block; animation: gentleRise 0.55s ease forwards; }
.chapter-badge { display: inline-flex; align-items: baseline; gap: 10px; margin-bottom: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--border-soft); }
.badge-num { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 600; letter-spacing: 2px; color: var(--ink-muted); }
.badge-divider { font-size: 12px; color: #b5ae9e; }
.badge-char { font-family: 'Noto Serif SC', serif; font-size: 21px; letter-spacing: 4px; color: var(--ink-main); }
.chapter-title { font-family: 'Noto Serif SC', serif; font-size: 29px; font-weight: 400; line-height: 1.4; margin-bottom: 26px; letter-spacing: 2.5px; color: var(--ink-main); }
.chapter-essay { font-family: 'LXGW WenKai TC', 'Noto Serif SC', serif; font-size: 16.5px; line-height: 2.2; letter-spacing: 1.2px; color: var(--ink-main); margin-bottom: 12px; }
.chapter-essay > :last-child,
.chapter-essay > :last-child > :last-child { margin-bottom: 0; }
.gallery-footer { position: fixed; bottom: 20px; left: 0; width: 100%; display: flex; justify-content: center; align-items: center; gap: 26px; z-index: 20; }
.footer-track { display: flex; align-items: center; gap: 26px; }
.nav-dot-btn { background: none; border: none; font-family: 'LXGW WenKai TC', 'Noto Serif SC', serif; font-size: 15.5px; color: var(--ink-muted); cursor: pointer; transition: all 0.3s ease; padding: 6px; position: relative; }
.nav-dot-btn:hover { color: var(--ink-main); }
.nav-dot-btn.active { color: var(--ink-main); font-weight: 600; transform: translateY(-2px); }
.nav-dot-btn.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; background: var(--ink-main); border-radius: 50%; }
.mobile-dock-arrow { display: none; }

.page-nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(251, 249, 243, 0.8); border: 1px solid var(--border-soft); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; z-index: 10; font-size: 20px; color: var(--ink-main); }
.page-nav-arrow:hover { background: var(--ink-main); color: var(--paper-base); }
.arrow-left { left: 28px; }
.arrow-right { right: 28px; }

.gallery-container.cinematic-mode { gap: 54px; padding: 15px 76px 55px 76px; }
.gallery-container.cinematic-mode .gallery-left { flex: 1.35; }
.gallery-container.cinematic-mode .gal-slide-item .art-frame-wrapper { padding: 12px; background: rgba(255, 253, 248, 0.92); }
.gallery-container.cinematic-mode .gal-slide-item .art-frame-wrapper img { max-width: 56vw; max-height: 68vh; }

body.dark-chapter { color: #e6dfd3; }
body.dark-chapter .gallery-topbar { border-bottom-color: rgba(212, 175, 106, 0.2); }
body.dark-chapter .back-link, body.dark-chapter .chapter-title, body.dark-chapter .badge-char, body.dark-chapter .nav-dot-btn.active { color: #e8dec8; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); }
body.dark-chapter .nav-dot-btn.active::after { background: #d4af6a; }
body.dark-chapter .art-frame-wrapper { background: #26211b; border-color: rgba(212, 175, 106, 0.35); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65); }
body.dark-chapter .gallery-top-title { color: rgba(232, 222, 200, 0.58); }
body.dark-chapter .nav-dot-btn { color: rgba(232, 222, 200, 0.46); }
body.dark-chapter .nav-dot-btn:hover { color: rgba(232, 222, 200, 0.85); }
body.dark-chapter .chapter-badge { border-bottom-color: rgba(212, 175, 106, 0.24); }
body.dark-chapter .badge-num { color: rgba(232, 222, 200, 0.58); }
body.dark-chapter .badge-divider { color: rgba(212, 175, 106, 0.42); }
body.dark-chapter .page-nav-arrow { background: rgba(255, 255, 255, 0.06); border-color: rgba(230, 223, 211, 0.18); color: #cfc7b8; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.22); }
body.dark-chapter .page-nav-arrow:hover { background: rgba(232, 222, 200, 0.16); border-color: rgba(212, 175, 106, 0.45); color: #f3dfb6; }

.w2-stanza-dramatic { display: flex; flex-direction: column; gap: 18px; padding: 6px 0; }
.verse-pair { display: flex; flex-direction: column; border-left: 1.5px solid rgba(212, 175, 106, 0.35); padding-left: 16px; transition: transform 0.3s ease; }
.verse-pair:hover { transform: translateX(4px); border-left-color: #d4af6a; }
.verse-pair .v-en { font-family: 'Cormorant Garamond', serif; font-size: 21px; font-style: italic; font-weight: 500; letter-spacing: 1.2px; color: #d4af6a; line-height: 1.3; }
.verse-pair .v-zh { font-family: 'Noto Serif SC', serif; font-size: 15px; letter-spacing: 3px; color: #dcd4c6; margin-top: 3px; }
.verse-pair.climax { margin-top: 10px; border-left: 2px solid #e0b86c; padding-top: 6px; padding-bottom: 6px; }
.verse-pair.climax .v-en { font-size: 24px; color: #f3dfb6; }
.verse-pair.climax .v-zh { font-size: 17px; font-weight: 500; color: #ffffff; letter-spacing: 4px; }
.w2-prose-limbo p { margin-bottom: 16px; line-height: 2.1; color: #3d3b37; }
.w2-prose-limbo .lead-line { font-family: 'Noto Serif SC', serif; font-size: 20px; letter-spacing: 3px; color: #1f1e1b; margin-bottom: 22px; }
.w2-prose-limbo .em-self { font-family: 'Noto Serif SC', serif; border-bottom: 1px solid rgba(60, 58, 52, 0.4); padding-bottom: 2px; }
.w2-prose-limbo .fade-thought { color: #7a766e; font-style: italic; padding-left: 14px; border-left: 1px solid #d5d1c8; }
.w2-prose-limbo .dialogue-block { background: rgba(255, 255, 255, 0.65); padding: 14px 20px; border-radius: 4px; margin: 20px 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04); }
.w2-prose-limbo .dialogue-block p { margin-bottom: 8px; }
.w2-prose-limbo .sleep-fade-1 { color: #858179; margin-top: 24px; }
.w2-prose-limbo .sleep-fade-2 { font-family: 'Noto Serif SC', serif; font-size: 18px; letter-spacing: 4px; color: #a6a29a; margin-top: 12px; }
.w2-prose-sky p { margin-bottom: 18px; line-height: 2.15; }
.w2-prose-sky .float-callout { font-family: 'Noto Serif SC', serif; font-size: 19px; letter-spacing: 5px; color: #2f4f3e; padding: 8px 0 8px 24px; position: relative; }
.w2-prose-sky .float-callout::before { content: '↑'; position: absolute; left: 2px; top: 8px; font-size: 14px; opacity: 0.5; }
.w2-prose-sky .stop-mind { font-family: 'Noto Serif SC', serif; font-size: 18px; letter-spacing: 3px; color: #5c584f; margin: 22px 0; }
.w2-prose-sky .final-free { margin-top: 28px; font-family: 'Noto Serif SC', serif; font-size: 20px; letter-spacing: 4px; line-height: 2.2; }
.w2-prose-sky .final-free span { display: inline-block; margin-top: 6px; font-size: 24px; color: var(--ink-main); }

.era-stamp { display: inline-block; font-family: 'Cormorant Garamond', 'Noto Serif SC', serif; font-size: 11px; font-weight: 600; letter-spacing: 2.5px; color: var(--ink-muted); background: rgba(120, 113, 101, 0.1); padding: 3px 10px; border-radius: 2px; margin-bottom: 18px; }
.era-stamp.gold { background: rgba(212, 160, 72, 0.18); color: #8c621e; }
body[data-active-theme="w1-golden-glow"] { color: #383025; }
body[data-active-theme="w1-golden-glow"] .gallery-topbar { border-bottom-color: rgba(193, 154, 91, 0.28); }
body[data-active-theme="w1-golden-glow"] .back-link, body[data-active-theme="w1-golden-glow"] .chapter-title, body[data-active-theme="w1-golden-glow"] .badge-char, body[data-active-theme="w1-golden-glow"] .nav-dot-btn.active { color: #5c4723; }
body[data-active-theme="w1-golden-glow"] .nav-dot-btn.active::after { background: #c19a5b; }
body[data-active-theme="w1-golden-glow"] .art-frame-wrapper { background: #fffdf7; border-color: rgba(193, 154, 91, 0.4); box-shadow: 0 26px 60px rgba(160, 130, 80, 0.12), 0 4px 15px rgba(160, 130, 80, 0.06); }
.era-stamp.gold-light { background: rgba(193, 154, 91, 0.18); color: #7a5c28; border: 1px solid rgba(193, 154, 91, 0.3); }
.era-stamp.crash { background: rgba(210, 80, 70, 0.2); color: #e6857e; }
body[data-active-theme="w1-crash"] .chapter-essay { color: #d6dadf; }

.gallery-container.minimal-scatter-mode .chapter-badge {
    display: none;
}

.gallery-container.minimal-scatter-mode .chapter-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 6px;
    margin-bottom: 30px;
    opacity: 0.88;
}

.gallery-container.minimal-scatter-mode .gallery-left {
    flex: 1.3;
}

.scatter-stage-item {
    cursor: pointer;
}

.scatter-canvas {
    position: relative;
    width: 100%;
    height: 74vh;
    max-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scatter-card {
    position: absolute;
    max-width: 74%;
    max-height: 62%;
    opacity: 0;
    pointer-events: none;
    filter: blur(3px);
    will-change: opacity, transform;
    transform: translate3d(var(--sx, 0%), calc(var(--sy, 0%) + 4px), 0) rotate(var(--srot, 0deg)) scale(calc(var(--sscale, 1) * 0.985));
    transition:
        opacity 1.7s cubic-bezier(0.45, 0.05, 0.25, 1),
        filter 1.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 2.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.scatter-card.visible {
    opacity: 0.96;
    filter: blur(0px);
    transform: translate3d(var(--sx, 0%), var(--sy, 0%), 0) rotate(var(--srot, 0deg)) scale(var(--sscale, 1));
    z-index: 5;
}

.scatter-card.fading-out {
    opacity: 0;
    filter: blur(2.5px);
    transform: translate3d(var(--sx, 0%), calc(var(--sy, 0%) - 4px), 0) rotate(var(--srot, 0deg)) scale(calc(var(--sscale, 1) * 1.01));
    z-index: 3;
    transition:
        opacity 1.65s cubic-bezier(0.22, 0.61, 0.36, 1),
        filter 1.55s ease-out,
        transform 1.8s ease-out;
}

.scatter-card.is-final {
    max-width: 88%;
    max-height: 72%;
}

.scatter-card img {
    max-width: 100%;
    max-height: 56vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 3px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.42), 0 0 1px rgba(255, 255, 255, 0.15);
}

body[data-active-theme="w3-mirror"] .art-frame-wrapper {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(200, 206, 215, 0.4);
    padding: 12px;
    box-shadow: 0 20px 50px rgba(140, 150, 165, 0.12);
}

body[data-active-theme="w3-sunset"] .art-frame-wrapper {
    background: rgba(255, 248, 240, 0.75);
    border: 1px solid rgba(190, 120, 85, 0.25);
    padding: 10px;
    box-shadow: 0 24px 60px rgba(145, 75, 40, 0.15);
}
body[data-active-theme="w3-sunset"] .gal-slide-item .art-frame-wrapper img {
    max-width: 54vw;
    max-height: 64vh;
}

.w3-monologue p {
    margin-bottom: 20px;
    line-height: 2.25;
    letter-spacing: 1.5px;
    font-weight: 300;
}

.w3-ch1 { color: #cfd6e3; }
.w3-ch1 .m-fade { color: #9aa5b8; }
.w3-ch1 .m-dim { color: #7e8a9e; font-size: 15px; }
.w3-ch1 .m-warm { color: #e3e8f0; }
.w3-ch1 .m-rise { margin-top: 26px; color: #eceff4; letter-spacing: 2.5px; }
.w3-ch1 .m-question {
    margin-top: 28px;
    font-family: 'Noto Serif SC', serif;
    font-size: 18px;
    color: #ffffff;
    letter-spacing: 2.5px;
    line-height: 2.3;
}
.w3-ch1 .m-question span {
    display: inline-block;
    margin-top: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    padding-bottom: 2px;
}

.w3-ch2 { color: #3a3f47; }
.w3-ch2 .m-dim { color: #878e99; }
.w3-ch2 .m-stagger {
    margin: 24px 0;
    padding-left: 14px;
    border-left: 1px solid rgba(120, 130, 145, 0.25);
}
.w3-ch2 .m-stagger p { margin-bottom: 10px; color: #656c78; }
.w3-ch2 .s-indent-1 { padding-left: 16px; }
.w3-ch2 .s-indent-2 { padding-left: 32px; }
.w3-ch2 .m-bridge {
    font-family: 'Noto Serif SC', serif;
    font-size: 15px;
    color: #9299a3;
    letter-spacing: 6px;
    margin: 22px 0;
}
.w3-ch2 .m-question {
    font-family: 'Noto Serif SC', serif;
    font-size: 18px;
    color: #23272e;
    line-height: 2.3;
}
.w3-ch2 .m-question strong {
    font-weight: 500;
    border-bottom: 1.5px solid rgba(35, 39, 46, 0.45);
    padding-bottom: 2px;
}

.w3-ch3 .m-ardent {
    color: #522918;
    line-height: 2.15;
}
.w3-ch3 .m-quote {
    font-family: 'Noto Serif SC', serif;
    font-size: 20px;
    color: #8c3419;
    letter-spacing: 3px;
}
.w3-ch3 .m-vows {
    margin: 20px 0;
    padding-left: 16px;
    border-left: 2px solid rgba(175, 85, 45, 0.35);
}
.w3-ch3 .m-vows p {
    margin-bottom: 8px;
    color: #663520;
}
.w3-ch3 .m-rowing {
    margin: 24px 0;
    color: #785647;
}
.w3-ch3 .m-sinking {
    margin-top: 28px;
}
.w3-ch3 .m-sinking p { margin-bottom: 12px; }
.w3-ch3 .sink-1 { color: #7a6a61; }
.w3-ch3 .sink-2 { color: #8c8078; padding-left: 12px; }
.w3-ch3 .sink-3 { color: #9e958e; padding-left: 24px; font-size: 15px; }
.w3-ch3 .sink-4 {
    margin-top: 20px;
    font-family: 'Noto Serif SC', serif;
    font-size: 18px;
    color: #635c57;
    letter-spacing: 3px;
}

.w3-ch4 {
    padding-top: 10px;
}
.w3-ch4 p {
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 3.5px;
}
.w3-ch4 .walk-1 { font-size: 18px; color: #b8c2d4; margin-bottom: 14px; }
.w3-ch4 .walk-2 { font-size: 17px; color: #95a1b8; padding-left: 18px; margin-bottom: 28px; }
.w3-ch4 .walk-3 { font-size: 16px; color: #6e7a91; padding-left: 36px; margin-bottom: 42px; }
.w3-ch4 .walk-4 { font-size: 18px; color: #bfc9db; margin-bottom: 52px; }
.w3-ch4 .walk-call {
    font-size: 23px;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 5px;
    text-shadow: 0 0 18px rgba(180, 205, 255, 0.45);
}

.finale-overlay {
    position: fixed; inset: 0; z-index: 220;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    background: rgba(34, 29, 22, 0.46);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.45s ease;
}

.finale-overlay.show { opacity: 1; pointer-events: auto; }

.finale-card {
    width: min(460px, 100%);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    background: #f6f1e7;
    border: 1px solid var(--border-soft);
    box-shadow: 0 26px 64px rgba(30, 25, 18, 0.30);
    border-radius: 4px;
    padding: 40px 38px 28px;
    text-align: center;
    transform: translateY(16px) scale(0.985);
    transition: transform 0.55s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.finale-overlay.show .finale-card { transform: translateY(0) scale(1); }

.finale-eyebrow {
    font-family: 'Cormorant Garamond', serif;
    font-size: 11px; letter-spacing: 5px;
    color: var(--ink-muted);
    margin-bottom: 14px;
}

.finale-title {
    font-size: 26px; font-weight: 400; letter-spacing: 10px; text-indent: 10px;
    color: var(--ink-main);
    margin-bottom: 10px;
}

.finale-text {
    font-size: 14px;
    letter-spacing: 3px;
    text-indent: 3px;
    line-height: 1.8;
    color: var(--ink-secondary);
}

.finale-divider {
    display: flex; align-items: center; gap: 14px;
    margin: 28px 0 20px;
    font-size: 11px; letter-spacing: 4px;
    color: var(--ink-muted);
}

.finale-divider::before,
.finale-divider::after {
    content: ""; flex: 1; height: 1px;
    background: var(--border-soft);
}

.finale-rec {
    text-align: center;
}

.finale-rec-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 20px; font-weight: 400; letter-spacing: 2.5px;
    color: var(--ink-main); line-height: 1.7;
    margin-bottom: 8px;
}

.finale-rec-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 12.5px; letter-spacing: 3px;
    color: var(--ink-muted);
}

.finale-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }

.finale-btn-primary {
    font-family: inherit;
    font-size: 14px; letter-spacing: 6px; text-indent: 6px;
    color: #f6f1e7; background: var(--ink-main);
    border: 1px solid var(--ink-main);
    padding: 13px 20px;
    cursor: pointer; border-radius: 3px;
    transition: opacity 0.25s ease, transform 0.2s ease;
}

.finale-btn-primary:hover { opacity: 0.88; }
.finale-btn-primary:active { transform: scale(0.97); }

.finale-btn-ghost {
    font-family: inherit;
    font-size: 13px; letter-spacing: 4px; text-indent: 4px;
    color: var(--ink-secondary);
    background: transparent;
    border: 1px solid var(--border-soft);
    padding: 11px 20px;
    cursor: pointer; border-radius: 3px;
    transition: color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.finale-btn-ghost:hover { color: var(--ink-main); border-color: var(--ink-muted); }
.finale-btn-ghost:active { transform: scale(0.97); }

.finale-hint {
    margin-top: 18px;
    font-size: 11px; letter-spacing: 2px;
    color: var(--ink-muted); opacity: 0.85;
}

.archive-toolbar {
    position: sticky;
    top: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 6px 4px 12px;
    margin-bottom: 2px;
    background: transparent;
    border-bottom: none;
    transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.archive-toolbar.is-stuck {
    background: rgba(246, 243, 235, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(38, 34, 29, 0.05);
}

.archive-toolbar-sentinel {
    height: 1px;
    margin-bottom: -1px;
    pointer-events: none;
}

.archive-filters {
    display: flex;
    align-items: center;
    gap: 34px;
    flex-wrap: wrap;
}

.archive-filter-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 4px 1px;
    font-family: 'LiSu', 'SimLi', 'STLiti', 'Libian SC', '华文隶书', 'Noto Serif SC', serif;
    font-size: 18px;
    letter-spacing: 2.5px;
    color: rgba(38, 34, 29, 0.86);
    text-shadow: 0 0 12px rgba(242, 237, 226, 0.7);
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.archive-filter-btn:hover { color: var(--ink-main); }
.archive-filter-btn.active {
    color: var(--ink-main);
    border-bottom-color: var(--ink-main);
}
.archive-filter-btn:focus-visible,
.archive-sort-btn:focus-visible {
    outline: 1px solid var(--ink-muted);
    outline-offset: 3px;
}

.archive-tools {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.archive-search {
    width: 200px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(74, 69, 60, 0.36);
    padding: 5px 2px;
    font-family: 'LXGW WenKai TC', 'Noto Serif SC', serif;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--ink-main);
    text-shadow: 0 0 10px rgba(242, 237, 226, 0.72);
    outline: none;
    transition: border-color 0.3s ease;
}
.archive-search::placeholder { color: rgba(48, 43, 36, 0.72); }
.archive-search:focus { border-bottom-color: var(--ink-main); }

.archive-sort {
    display: flex;
    align-items: center;
    gap: 16px;
}
.archive-sort-btn {
    background: none;
    border: none;
    padding: 3px 0;
    font-family: 'LiSu', 'SimLi', 'STLiti', 'Libian SC', '华文隶书', 'Noto Serif SC', serif;
    font-size: 14px;
    letter-spacing: 2px;
    color: rgba(38, 34, 29, 0.82);
    text-shadow: 0 0 12px rgba(242, 237, 226, 0.72);
    cursor: pointer;
    transition: color 0.3s ease;
}
.archive-sort-btn:hover,
.archive-sort-btn.active { color: var(--ink-main); }

.archive-toolbar + #archive-grid-container {
    border-top: none;
    margin-top: 0;
}

.archive-empty {
    padding: 46px 16px;
    text-align: center;
    font-family: 'LXGW WenKai TC', 'Noto Serif SC', serif;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--ink-muted);
}

.w1-verse { text-align: left; }

.w1-verse .verse-scene {
    margin: 0 0 30px;
    padding-left: 16px;
    border-left: 1px solid currentColor;
    font-size: 14.5px;
    line-height: 2.15;
    letter-spacing: 1.8px;
    opacity: 0.68;
}

.w1-verse .verse-body {
    margin: 0;
    font-size: 16.5px;
    line-height: 2.4;
    letter-spacing: 2.2px;
}

.w1-verse .verse-turn {
    position: relative;
    margin: 30px 0 0;
    padding-top: 20px;
    font-family: 'Noto Serif SC', serif;
    font-size: 19px;
    line-height: 2;
    letter-spacing: 3px;
    font-weight: 500;
}
.w1-verse .verse-turn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 1px;
    background: currentColor;
    opacity: 0.32;
}
