/* ============================================
   禁書圖書館 — Forbidden Library
   配色：黑 · 深酒紅 · 金
   ============================================ */

:root {
    --black: #0a0608;
    --black-soft: #120a0f;
    --burgundy-dark: #2d0a1a;
    --burgundy: #4a0e2e;
    --burgundy-light: #6b1a3a;
    --red-spider: #8b1a3a;
    --red-spider-bright: #c41e3a;
    --gold: #d4af37;
    --gold-light: #f0d060;
    --gold-dark: #8b6914;
    --text-primary: #e8dcc8;
    --text-muted: #9a8a7a;
    --font-zh: 'Noto Serif TC', 'Noto Serif JP', serif;
    --font-en: 'Cinzel', serif;
    --font-brand: 'Marcellus', 'Cormorant Garamond', serif;
    --nav-height: 72px;
    --glass-bg: rgba(18, 10, 15, 0.52);
    --glass-border: rgba(212, 175, 55, 0.2);
    --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(212, 175, 55, 0.14);
    --section-gap: clamp(3rem, 8vw, 5rem);
    --hero-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --hero-max: 880px;

    /* ---- 禁書圖書館設計系統 ---- */
    --chapter-max: 1100px;
    --chapter-num-size: clamp(0.64rem, 1.3vh, 0.74rem);
    --chapter-num-spacing: 0.52em;
    --chapter-title-size: clamp(2.22rem, 5.04vw, 3.18rem);
    --chapter-title-size-sm: clamp(1.85rem, 4.2vw, 2.65rem);
    --chapter-subtitle-size: clamp(0.6rem, 1.25vh, 0.72rem);
    --chapter-subtitle-spacing: 0.38em;
    --chapter-header-gap: clamp(2rem, 4vh, 2.75rem);
    --lib-glass-bg: rgba(8, 5, 10, 0.55);
    --lib-glass-bg-soft: rgba(18, 10, 15, 0.52);
    --lib-glass-border: rgba(212, 175, 55, 0.28);
    --lib-glass-border-soft: rgba(212, 175, 55, 0.2);
    --lib-glass-inset: inset 0 1px 0 rgba(212, 175, 55, 0.06);
    --lib-glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    --lib-glow-soft: 0 0 36px rgba(212, 175, 55, 0.16);
    --lib-glow-hover: 0 0 36px rgba(212, 175, 55, 0.16), 0 0 72px rgba(212, 175, 55, 0.07);
    --lib-hover-scale: 1.03;
    --lib-hover-duration: 0.45s;
    --lib-body-line: 1.9;
    --lib-body-color: rgba(232, 220, 200, 0.88);
    --lib-body-muted: rgba(154, 138, 122, 0.92);
}

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

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-zh);
    background-color: var(--black);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    line-height: 1.7;
}

body.is-site-loading {
    overflow: hidden;
}

/* ---- 開場 Loading ---- */
.site-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 50% 42%, rgba(45, 10, 26, 0.28) 0%, transparent 58%),
        linear-gradient(180deg, #070408 0%, #050306 100%);
    opacity: 0;
    pointer-events: auto;
    transition: opacity 0.48s ease;
}

.site-loader[hidden] {
    display: none;
}

.site-loader.is-visible {
    opacity: 1;
}

.site-loader.is-hiding {
    opacity: 0;
    pointer-events: none;
}

.site-loader__ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.site-loader__sigil {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(420px, 82vw);
    height: min(420px, 82vw);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.04);
    box-shadow:
        inset 0 0 0 1px rgba(212, 175, 55, 0.025),
        0 0 64px rgba(212, 175, 55, 0.03);
}

.site-loader__sigil::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 68%;
    height: 68%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.03);
}

.site-loader__inner {
    position: relative;
    z-index: 1;
    width: min(100%, 320px);
    padding: 0 1.5rem;
    text-align: center;
}

.site-loader__brand {
    margin: 0 0 1.35rem;
    font-family: var(--font-en);
    font-size: clamp(0.82rem, 2.2vw, 0.98rem);
    font-weight: 400;
    letter-spacing: 0.38em;
    text-indent: 0.38em;
    color: rgba(212, 175, 55, 0.88);
}

.site-loader__status {
    margin: 0 0 1.15rem;
    font-family: var(--font-zh);
    font-size: clamp(0.82rem, 1.8vh, 0.92rem);
    font-weight: 300;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
    color: rgba(176, 160, 142, 0.82);
}

.site-loader__track {
    height: 1px;
    margin: 0 auto;
    background: rgba(212, 175, 55, 0.12);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.06);
    overflow: hidden;
}

.site-loader__fill {
    display: block;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, rgba(139, 26, 58, 0.55) 0%, rgba(212, 175, 55, 0.92) 100%);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.28);
    transition: width 0.12s linear;
}

.site-loader__percent {
    margin: 0.75rem 0 0;
    font-family: var(--font-en);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    color: rgba(212, 175, 55, 0.62);
}

.site-loader__opened {
    margin: 0.35rem 0 0;
    font-family: var(--font-en);
    font-size: clamp(0.72rem, 1.6vh, 0.82rem);
    font-weight: 400;
    letter-spacing: 0.34em;
    text-indent: 0.34em;
    color: rgba(240, 208, 96, 0.92);
    opacity: 0;
    transform: translateY(6px);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.site-loader__opened.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Glassmorphism ---- */
.glass,
.lib-card {
    background: var(--lib-glass-bg-soft);
    backdrop-filter: blur(18px) saturate(1.12);
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
    border: 1px solid var(--lib-glass-border-soft);
    box-shadow: var(--lib-glass-inset), var(--lib-glass-shadow);
}

.lib-card {
    background: var(--lib-glass-bg);
    border-color: var(--lib-glass-border);
}

/* ---- 章節標題系統 ---- */
.chapter-header {
    margin-bottom: var(--chapter-header-gap);
}

.chapter-header--center {
    text-align: center;
}

.chapter-header__chapter,
.archive-section__chapter {
    margin: 0 0 1.25rem;
    font-family: var(--font-en);
    font-size: var(--chapter-num-size);
    font-weight: 400;
    letter-spacing: var(--chapter-num-spacing);
    text-indent: var(--chapter-num-spacing);
    color: rgba(212, 175, 55, 0.55);
}

.chapter-header--center .chapter-header__chapter {
    text-indent: 0;
}

.chapter-header__title,
.archive-section__title {
    margin: 0 0 0.65rem;
    font-family: var(--font-zh);
    font-size: var(--chapter-title-size-sm);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-indent: 0.18em;
    color: var(--text-primary);
}

.chapter-header--center .chapter-header__title {
    font-size: var(--chapter-title-size-sm);
    text-indent: 0;
}

.archive-section__title {
    font-size: var(--chapter-title-size);
}

.chapter-header__subtitle,
.archive-section__subtitle {
    margin: 0;
    font-family: var(--font-en);
    font-size: var(--chapter-subtitle-size);
    font-weight: 300;
    letter-spacing: var(--chapter-subtitle-spacing);
    text-indent: var(--chapter-subtitle-spacing);
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.62);
}

.chapter-header--center .chapter-header__subtitle {
    text-indent: 0;
}

.chapter-header__subtitle::after,
.archive-section__subtitle::after {
    content: '';
    display: block;
    width: clamp(2.5rem, 5vw, 3.5rem);
    height: 1px;
    margin-top: clamp(1rem, 2vh, 1.35rem);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.55), rgba(212, 175, 55, 0.18));
}

.chapter-header--center .chapter-header__subtitle::after {
    margin-inline: auto;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.55) 20%, rgba(212, 175, 55, 0.55) 80%, transparent);
}

.archive-section__subtitle::after {
    margin-left: var(--chapter-subtitle-spacing);
}

/* ---- 章節區塊容器 ---- */
.lib-section {
    position: relative;
    z-index: 2;
    padding: var(--section-gap) clamp(1.25rem, 4vw, 2rem);
}

.lib-section__inner {
    width: 100%;
    max-width: var(--chapter-max);
    margin: 0 auto;
}

.lib-section__lead {
    max-width: 36em;
    margin: 0 auto clamp(2.5rem, 5vh, 3.5rem);
    font-family: var(--font-zh);
    font-size: clamp(0.92rem, 1.8vh, 1.02rem);
    font-weight: 300;
    line-height: var(--lib-body-line);
    letter-spacing: 0.06em;
    text-align: center;
    color: var(--lib-body-muted);
}

/* ---- 統一 Hover / Glow ---- */
.lib-hover {
    transform-origin: center center;
    transition:
        transform var(--lib-hover-duration) var(--hero-ease),
        box-shadow var(--lib-hover-duration) var(--hero-ease),
        border-color var(--lib-hover-duration) var(--hero-ease),
        opacity var(--lib-hover-duration) var(--hero-ease);
}

.lib-hover:hover {
    transform: scale(var(--lib-hover-scale));
    box-shadow:
        var(--lib-glass-inset),
        0 24px 52px rgba(0, 0, 0, 0.38),
        var(--lib-glow-hover);
    border-color: rgba(212, 175, 55, 0.38);
}

/* ---- 固定導覽列 ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.nav__inner {
    position: relative;
    max-width: 1100px;
    height: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    min-width: 0;
}

.nav__seal {
    width: 36px;
    height: 36px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-zh);
    font-size: 0.95rem;
    color: var(--gold);
    background: rgba(74, 14, 46, 0.35);
    flex-shrink: 0;
}

.nav__name {
    font-family: var(--font-en);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav__link {
    position: relative;
    font-family: var(--font-en);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav__link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 24px;
    height: 1px;
    margin-left: -12px;
    background: rgba(212, 175, 55, 0.88);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
    opacity: 0.9;
}

.nav:not(.nav--scrolled) {
    background: linear-gradient(180deg, rgba(10, 6, 8, 0.72) 0%, rgba(10, 6, 8, 0) 100%);
}

.nav:not(.nav--scrolled) .nav__link {
    color: rgba(232, 220, 200, 0.72);
}

.nav:not(.nav--scrolled) .nav__name {
    color: var(--text-primary);
}

.nav__link.is-active {
    color: rgba(245, 236, 220, 0.96);
}

.nav__link.is-active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav__link:hover:not(.is-active),
.nav__link:focus-visible:not(.is-active) {
    color: var(--gold-light);
}

.nav__link:hover:not(.is-active)::after,
.nav__link:focus-visible:not(.is-active)::after {
    transform: translateX(-50%) scaleX(1);
}

.nav__cta {
    padding: 0.65rem 1.25rem;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 2px;
    color: var(--gold-light);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-decoration: none;
    background: rgba(74, 14, 46, 0.45);
}

.nav__toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 4px;
    background: rgba(18, 10, 15, 0.55);
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav__toggle span {
    display: block;
    width: 18px;
    height: 1px;
    background: var(--gold);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav--scrolled {
    background: rgba(10, 6, 8, 0.72);
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ---- Scroll reveal ---- */
.reveal,
.archive-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.65s ease-out,
        transform 0.65s ease-out;
    transition-delay: var(--reveal-delay, 0s);
}

.reveal--visible,
.archive-reveal.reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- 全站按鈕 Hover 統一 ---- */
.lib-btn-interact {
    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease,
        text-shadow 0.3s ease;
}

.lib-btn-interact:hover,
.lib-btn-interact:focus-visible {
    border-color: rgba(212, 175, 55, 0.52);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(74, 14, 46, 0.22) 100%);
    color: rgba(255, 248, 232, 0.98);
    box-shadow:
        0 0 18px rgba(212, 175, 55, 0.18),
        0 4px 16px rgba(0, 0, 0, 0.22);
    transform: translateY(-2px);
}

.lib-btn-interact:active {
    transform: translateY(0);
}

.lib-btn-interact--gold:hover,
.lib-btn-interact--gold:focus-visible {
    color: rgba(12, 8, 6, 0.98);
    background: linear-gradient(
        135deg,
        rgba(240, 208, 96, 0.98) 0%,
        rgba(212, 175, 55, 0.92) 52%,
        rgba(212, 175, 55, 0.16) 100%
    );
    border-color: rgba(240, 208, 96, 0.72);
    box-shadow:
        0 0 18px rgba(212, 175, 55, 0.22),
        0 4px 16px rgba(0, 0, 0, 0.22);
    transform: translateY(-2px);
}

.archive-panel-wrap:hover .archive-panel__hint.lib-btn-interact {
    border-color: rgba(212, 175, 55, 0.52);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(74, 14, 46, 0.22) 100%);
    color: rgba(255, 248, 232, 0.98);
    box-shadow:
        0 0 18px rgba(212, 175, 55, 0.18),
        0 4px 16px rgba(0, 0, 0, 0.22);
    transform: translateY(-2px);
}

/* ---- 全站氛圍：金色灰塵 canvas ---- */
#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ---- 全站氛圍：滑鼠燭光（桌機） ---- */
.mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: clamp(280px, 24vw, 360px);
    height: clamp(280px, 24vw, 360px);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    border-radius: 50%;
    background: radial-gradient(
        circle closest-side,
        rgba(228, 198, 130, 0.07) 0%,
        rgba(212, 165, 90, 0.035) 32%,
        rgba(196, 140, 70, 0.012) 52%,
        rgba(212, 175, 55, 0) 72%
    );
    filter: blur(32px);
    transform: translate(-50%, -50%);
    will-change: transform;
}

.mouse-glow.is-active {
    opacity: 1;
}

@media (hover: none), (pointer: coarse) {
    .mouse-glow {
        display: none;
    }
}

/* ---- 全站自訂滑鼠（桌機） ---- */
html.has-custom-cursor,
html.has-custom-cursor * {
    cursor: none !important;
}

.custom-cursor {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.custom-cursor[hidden] {
    display: none;
}

.custom-cursor.is-visible {
    opacity: 1;
}

.custom-cursor__dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    margin: -2px 0 0 -2px;
    border-radius: 50%;
    background: rgba(139, 105, 20, 0.94);
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.22);
    will-change: transform;
}

.custom-cursor__ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.52);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform, width, height;
    transition:
        width 0.25s ease,
        height 0.25s ease,
        margin 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.custom-cursor__ring.is-hover {
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border-color: rgba(240, 208, 96, 0.82);
    background: rgba(212, 175, 55, 0.08);
}

.custom-cursor__label {
    font-family: var(--font-en);
    font-size: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-indent: 0.2em;
    color: rgba(240, 208, 96, 0.9);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    user-select: none;
}

.custom-cursor__ring.has-label .custom-cursor__label {
    opacity: 1;
}

@media (hover: none), (pointer: coarse) {
    .custom-cursor {
        display: none;
    }

    html.has-custom-cursor,
    html.has-custom-cursor * {
        cursor: auto !important;
    }
}

/* ---- 彼岸花裝飾 ---- */
.lily {
    position: fixed;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    animation: lilyFadeIn 2.4s var(--hero-ease) 0.4s forwards;
}

.lily__inner {
    width: 100%;
    height: 100%;
    transform-origin: bottom center;
    animation: lilyFloat 7s ease-in-out infinite;
}

.lily--right .lily__inner {
    animation-name: lilyFloatRight;
}

.lily svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 24px rgba(196, 30, 58, 0.35));
}

.lily--left {
    left: -16px;
    bottom: -8px;
    width: clamp(72px, 10vw, 120px);
    height: clamp(180px, 24vw, 280px);
}

.lily--right {
    right: -16px;
    bottom: -8px;
    width: clamp(72px, 10vw, 120px);
    height: clamp(180px, 24vw, 280px);
}

.lily--left .lily__inner {
    animation-delay: 0s;
}

.lily--right .lily__inner {
    animation-delay: -2.5s;
}

@keyframes lilyFadeIn {
    to { opacity: 0.72; }
}

@keyframes lilyFloat {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50% { transform: rotate(3deg) translateY(-10px); }
}

@keyframes lilyFloatRight {
    0%, 100% { transform: scaleX(-1) rotate(-3deg) translateY(0); }
    50% { transform: scaleX(-1) rotate(3deg) translateY(-10px); }
}

/* ---- 古書裝飾 ---- */
.books {
    position: fixed;
    z-index: 1;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    animation: booksFadeIn 2s ease 1s forwards;
}

.books--left {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.books--right {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.book {
    width: 48px;
    height: 8px;
    border-radius: 1px 3px 3px 1px;
    position: relative;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.book::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: rgba(212, 175, 55, 0.3);
}

.book--1 { width: 42px; background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%); }
.book--2 { width: 50px; background: linear-gradient(135deg, #1a1020 0%, var(--black-soft) 100%); margin-left: 6px; }
.book--3 { width: 38px; background: linear-gradient(135deg, var(--gold-dark) 0%, #3d2e10 100%); margin-left: 3px; }
.book--4 { width: 45px; background: linear-gradient(135deg, var(--burgundy-light) 0%, var(--burgundy) 100%); margin-left: auto; }
.book--5 { width: 52px; background: linear-gradient(135deg, #1a1020 0%, var(--black-soft) 100%); margin-left: auto; margin-right: 4px; }
.book--6 { width: 40px; background: linear-gradient(135deg, var(--gold-dark) 0%, #3d2e10 100%); margin-left: auto; margin-right: 8px; }

@keyframes booksFadeIn {
    to { opacity: 0.5; }
}

/* ---- 魔法圓陣 ---- */
.magic-circle {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    animation: circleAppear 3s ease 0.3s forwards, circleRotate 60s linear infinite;
}

.magic-circle svg {
    width: 100%;
    height: 100%;
}

@keyframes circleAppear {
    to { opacity: 0.4; }
}

@keyframes circleRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ---- Hero 區塊 ---- */
.hero {
    position: relative;
    min-height: 88vh;
    min-height: 88dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 88px 0 40px;
    overflow: hidden;
    background: #050306;
}

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

.hero__library {
    position: absolute;
    inset: -8%;
    width: 116%;
    height: 116%;
    object-fit: cover;
    filter: blur(8px) brightness(0.32) saturate(0.8);
    opacity: 0;
    transition: opacity 2s var(--hero-ease);
}

.hero.is-atmosphere .hero__library {
    opacity: 0.85;
}

.hero__bg-dim {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 42% at 50% 46%, rgba(212, 175, 55, 0.04) 0%, transparent 68%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(10, 6, 8, 0.82) 100%);
}

.hero__fog {
    position: absolute;
    left: -20%;
    right: -20%;
    height: 55%;
    background: radial-gradient(ellipse at center, rgba(45, 10, 26, 0.18) 0%, transparent 70%);
    filter: blur(40px);
    opacity: 0;
}

.hero.is-atmosphere .hero__fog {
    opacity: 1;
    animation: heroFogDrift 22s ease-in-out infinite;
}

.hero__fog--1 { bottom: 8%; }
.hero__fog--2 {
    bottom: 24%;
    animation-delay: -8s;
}

@keyframes heroFogDrift {
    0%, 100% { transform: translateX(-1.5%); opacity: 0.25; }
    50% { transform: translateX(1.5%); opacity: 0.4; }
}

.hero__lily {
    position: absolute;
    bottom: 6%;
    width: clamp(40px, 6vw, 60px);
    height: auto;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.8s ease 0.6s;
}

.hero.is-atmosphere .hero__lily {
    opacity: 0.16;
}

.hero__lily--left { left: clamp(0.5rem, 4vw, 2rem); }
.hero__lily--right {
    right: clamp(0.5rem, 4vw, 2rem);
    transform: scaleX(-1);
}

.hero__lily svg {
    width: 100%;
    height: auto;
}

.hero__vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, transparent 32%, rgba(0, 0, 0, 0.78) 100%);
}

.hero__content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 0 0 auto;
    margin-top: -40px;
}

.hero__canvas {
    --hero-float-range: 5px;
    --hero-book-width: clamp(320px, 28vw, 460px);
    --hero-book-height: calc(var(--hero-book-width) * 1536 / 1024);
    --hero-circle-size: calc(var(--hero-book-height) * 1.8);
    --hero-panel-width: min(520px, 90vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 1180px);
    padding-inline: clamp(1rem, 3vw, 2rem);
}

/* ---- 標題層級 ---- */
.hero__header {
    flex-shrink: 0;
    width: 100%;
    max-width: 820px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0 0;
    padding: 0;
}

.hero__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

.hero__title-year {
    font-family: var(--font-en);
    font-size: clamp(0.7rem, 1.36vh, 0.85rem);
    font-weight: 300;
    letter-spacing: 0.62em;
    text-indent: 0.62em;
    color: rgba(212, 175, 55, 0.52);
    white-space: nowrap;
    margin-bottom: 12px;
}

.hero__title-line {
    display: block;
    white-space: nowrap;
}

.hero__title-line--brand {
    font-family: var(--font-zh);
    font-size: clamp(2rem, 5.2vh, 3.15rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.15;
    margin-bottom: 6px;
}

.hero__title-zh {
    color: #ffffff;
    font-weight: 600;
}

.hero__title-line--sub {
    font-family: var(--font-zh);
    font-size: calc(clamp(2rem, 5.2vh, 3.15rem) * 0.7);
    font-weight: 400;
    letter-spacing: 0.22em;
    text-indent: 0.22em;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.82);
}

.hero__title-brand {
    font-family: var(--font-brand);
    font-size: 1.06em;
    font-weight: 400;
    letter-spacing: 0.14em;
    color: var(--gold-light);
}

.hero__title-en {
    margin: 24px 0 0;
    font-family: var(--font-en);
    font-size: clamp(0.78rem, 1.85vh, 1.05rem);
    font-weight: 300;
    letter-spacing: 0.6em;
    text-indent: 0.6em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.72);
    white-space: nowrap;
}

.hero__tagline {
    margin: 12px 0 0;
    font-family: var(--font-zh);
    font-size: clamp(0.74rem, 1.55vh, 0.92rem);
    font-weight: 300;
    font-style: normal;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    opacity: 0.7;
    line-height: 1.55;
    max-width: 34ch;
    text-align: center;
}

/* ---- 禁書展示區 ---- */
.hero__showcase {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: visible;
}

.hero__focal {
    position: relative;
    width: var(--hero-book-width);
    max-width: 100%;
    height: var(--hero-book-height);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 -60px;
    padding: 0;
    overflow: visible;
    transform: translateY(-60px);
}

.hero__circles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.6s ease 0.2s;
}

.hero.is-phase-book .hero__circles {
    opacity: 0.045;
}

.hero__circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero__circle--primary {
    width: var(--hero-circle-size);
    height: var(--hero-circle-size);
}

.hero__circle--outer {
    width: calc(var(--hero-circle-size) * 1.04);
    height: calc(var(--hero-circle-size) * 1.04);
}

.hero__circle--primary svg {
    width: 100%;
    height: 100%;
    animation: heroCircleSpin1 40s linear infinite;
}

.hero__circle--outer svg {
    width: 100%;
    height: 100%;
    animation: heroCircleSpin2 40s linear infinite reverse;
}

@keyframes heroCircleSpin1 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes heroCircleSpin2 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero__book-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--hero-book-width) * 1.35);
    height: calc(var(--hero-book-height) * 0.88);
    transform: translate(-50%, -50%);
    background:
        radial-gradient(ellipse at 50% 44%, rgba(240, 208, 96, 0.14) 0%, rgba(212, 175, 55, 0.05) 45%, transparent 72%);
    filter: blur(16px);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.2s ease 0.3s;
}

.hero.is-phase-book .hero__book-glow {
    opacity: 1;
    animation: heroGlowPulse 5s ease-in-out infinite;
}

@keyframes heroGlowPulse {
    0%, 100% { opacity: 0.45; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.68; transform: translate(-50%, -50%) scale(1.04); }
}

.hero__book-particles {
    position: absolute;
    inset: -6%;
    width: 112%;
    height: 112%;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease 0.5s;
}

.hero.is-phase-book .hero__book-particles {
    opacity: 0.28;
}

.hero__book-wrap {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.hero__book-float {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heroBookFloat 8s ease-in-out infinite;
    will-change: transform;
}

.hero__book-breathe {
    position: absolute;
    inset: -4%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 42%, rgba(240, 208, 96, 0.12) 0%, transparent 68%);
    filter: blur(10px);
    z-index: 0;
    pointer-events: none;
    animation: heroBookBreathe 5s ease-in-out infinite;
}

@keyframes heroBookBreathe {
    0%, 100% { opacity: 0.35; transform: scale(0.98); }
    50% { opacity: 0.62; transform: scale(1.02); }
}

.hero__book {
    position: relative;
    z-index: 1;
    width: var(--hero-book-width);
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    transition: transform 0.55s var(--hero-ease);
    filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.45));
}

.hero__book-wrap:hover .hero__book {
    transform: scale(1.02);
}

@keyframes heroBookFloat {
    0%, 100% { transform: translateY(calc(var(--hero-float-range) * 0.5)); }
    50% { transform: translateY(calc(var(--hero-float-range) * -0.5)); }
}

.hero__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 0;
}

/* ---- 募資資訊卡（精品風格） ---- */
.hero__fund {
    box-sizing: border-box;
    flex-shrink: 0;
    width: min(420px, 92vw);
    min-height: 170px;
    padding: 28px 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(8, 5, 7, 0.58);
    backdrop-filter: blur(18px) saturate(1.1);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
    border: 1px solid rgba(212, 175, 55, 0.32);
    border-radius: 4px;
    box-shadow:
        inset 0 1px 0 rgba(212, 175, 55, 0.07),
        0 8px 32px rgba(0, 0, 0, 0.28);
}

.hero__fund-row {
    margin: 0 0 24px;
    padding: 0 24px;
    font-family: var(--font-en);
    font-size: clamp(1rem, 2.2vh, 1.22rem);
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(154, 138, 122, 0.92);
    font-variant-numeric: tabular-nums;
}

.hero__fund-row span:first-child {
    color: var(--gold-light);
    font-weight: 600;
}

.hero__fund-sep {
    margin-inline: 0.45em;
    opacity: 0.45;
}

.hero__fund-track {
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
    border: none;
    background: transparent;
    box-shadow: none;
}

.hero__fund-track .progress__bar {
    height: 8px;
    background: rgba(38, 34, 36, 0.95);
    border-radius: 999px;
    overflow: hidden;
}

.hero__fund-track .progress__fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(184, 148, 46, 0.85) 0%, #d4af37 48%, var(--gold-light) 100%);
    border-radius: 999px;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.32);
    transition: width 2.2s var(--hero-ease);
}

.hero__fund-track .progress__shimmer {
    opacity: 0.18;
}

.hero__fund-track .progress__glow {
    display: none;
}

.hero__fund-meta {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    margin: 20px 0 0;
    padding: 0 24px;
    box-sizing: border-box;
    font-family: var(--font-en);
    font-size: clamp(0.72rem, 1.5vh, 0.84rem);
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.68);
    font-variant-numeric: tabular-nums;
}

.hero__fund-meta-item {
    flex: 1;
    text-align: center;
}

.hero__fund-dot {
    flex: 0 0 auto;
    margin: 0;
    padding: 0 0.35em;
    opacity: 0.4;
}

/* ---- CTA 按鈕 ---- */
.hero__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    width: 220px;
    max-width: 92vw;
    height: 54px;
    min-width: 0;
    padding: 0 1rem;
    box-sizing: border-box;
    background: rgba(6, 4, 6, 0.32);
    border: 1px solid rgba(212, 175, 55, 0.42);
    border-radius: 2px;
    color: var(--gold-light);
    font-family: var(--font-zh);
    font-size: clamp(0.78rem, 1.5vh, 0.88rem);
    letter-spacing: 0.28em;
    text-indent: 0.28em;
    text-decoration: none;
    cursor: pointer;
    transition:
        color 0.45s ease,
        background 0.45s ease,
        border-color 0.45s ease,
        box-shadow 0.55s ease,
        transform 0.45s var(--hero-ease);
}

.hero__btn:hover,
.hero__btn:focus-visible {
    color: #fff8e8;
    background: rgba(10, 6, 8, 0.48);
    border-color: rgba(212, 175, 55, 0.65);
    box-shadow:
        0 0 22px rgba(212, 175, 55, 0.26),
        0 0 44px rgba(212, 175, 55, 0.12);
    transform: translateY(-1px);
}

.hero__btn:active {
    transform: translateY(0);
    transition-duration: 0.12s;
}

/* Hero phased entrance */
.hero-reveal {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
}

.hero.is-phase-title .hero-reveal[data-hero-phase="title"],
.hero.is-phase-book .hero-reveal[data-hero-phase="book"],
.hero.is-phase-metrics .hero-reveal[data-hero-phase="metrics"],
.hero.is-phase-cta .hero-reveal[data-hero-phase="cta"] {
    animation: heroFadeIn 1.15s var(--hero-ease) forwards;
}

.hero.is-phase-book .hero-reveal[data-hero-phase="title"],
.hero.is-phase-metrics .hero-reveal[data-hero-phase="title"],
.hero.is-phase-metrics .hero-reveal[data-hero-phase="book"],
.hero.is-phase-cta .hero-reveal[data-hero-phase="title"],
.hero.is-phase-cta .hero-reveal[data-hero-phase="book"],
.hero.is-phase-cta .hero-reveal[data-hero-phase="metrics"] {
    opacity: 1;
    transform: none;
    filter: none;
}

.hero.is-ready .hero-reveal {
    opacity: 1;
    transform: none;
    filter: none;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.22));
    }
    50% {
        filter: drop-shadow(0 0 28px rgba(212, 175, 55, 0.38));
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- 募資進度條 ---- */
.progress {
    border-radius: 16px;
    padding: clamp(1.15rem, 3vw, 1.5rem) clamp(1.15rem, 3vw, 1.65rem);
    margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
    text-align: left;
}

.progress__stats {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.progress__stat {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.progress__stat--right {
    text-align: right;
}

.progress__label {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    text-transform: uppercase;
    font-family: var(--font-en);
}

.progress__value {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--gold-light);
    font-weight: 600;
    font-family: var(--font-en);
    font-variant-numeric: tabular-nums;
}

.progress__track {
    padding: 3px;
    border-radius: 999px;
    background: rgba(10, 6, 8, 0.45);
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.35);
}

.progress__bar {
    height: 8px;
    background: rgba(45, 10, 26, 0.85);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.progress__fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--burgundy) 0%, var(--red-spider) 38%, var(--gold) 100%);
    border-radius: 999px;
    position: relative;
    transition: width 2.4s var(--hero-ease);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.25);
}

.progress__fill.animated {
    width: var(--progress-percent, 64%);
}

.progress__shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.22) 50%,
        transparent 70%
    );
    transform: translateX(-120%);
    animation: progressShimmer 2.8s ease-in-out infinite;
    opacity: 0;
}

.progress__fill.animated .progress__shimmer {
    opacity: 1;
}

@keyframes progressShimmer {
    0% { transform: translateX(-120%); }
    55%, 100% { transform: translateX(120%); }
}

.progress__glow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: var(--gold-light);
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.progress__fill.animated .progress__glow {
    opacity: 0.85;
    animation: glowPulse 2.4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.3); }
}

.progress__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    margin-top: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.progress__percent {
    font-family: var(--font-en);
    color: var(--gold);
    font-weight: 600;
    font-size: 0.92rem;
    font-variant-numeric: tabular-nums;
}

.progress__supporters {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.progress__supporters-icon {
    color: var(--gold);
    font-size: 0.72rem;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.progress__days {
    font-family: var(--font-en);
}

/* ---- 立即支持按鈕 ---- */
.btn-support {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    min-width: min(100%, 280px);
    padding: 1.05rem 2.75rem;
    background:
        linear-gradient(135deg, rgba(74, 14, 46, 0.95) 0%, rgba(107, 26, 58, 0.92) 50%, rgba(74, 14, 46, 0.95) 100%);
    border: 1px solid rgba(212, 175, 55, 0.55);
    color: var(--gold-light);
    font-family: var(--font-zh);
    font-size: clamp(0.92rem, 2vw, 1rem);
    letter-spacing: 0.28em;
    text-decoration: none;
    border-radius: 999px;
    position: relative;
    overflow: visible;
    isolation: isolate;
    cursor: pointer;
    transition:
        transform 0.45s var(--hero-ease),
        box-shadow 0.45s var(--hero-ease),
        border-color 0.45s ease;
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.08),
        0 0 24px rgba(212, 175, 55, 0.22),
        0 0 48px rgba(212, 175, 55, 0.12),
        inset 0 1px 0 rgba(212, 175, 55, 0.2);
}

.btn-support__ring {
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    border: 1px solid rgba(212, 175, 55, 0.25);
    opacity: 0.6;
    transition: opacity 0.45s ease, transform 0.45s var(--hero-ease);
}

.btn-support::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: inherit;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.28) 0%, transparent 70%);
    z-index: -1;
    opacity: 0.7;
    transition: opacity 0.45s ease, transform 0.45s var(--hero-ease);
    animation: btnHaloRing 4s ease-in-out infinite;
}

.btn-support:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(240, 208, 96, 0.75);
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.15),
        0 0 32px rgba(212, 175, 55, 0.42),
        0 0 64px rgba(212, 175, 55, 0.22),
        inset 0 1px 0 rgba(212, 175, 55, 0.35);
}

.btn-support:hover::before {
    opacity: 1;
    transform: scale(1.06);
}

.btn-support:hover .btn-support__ring {
    opacity: 1;
    transform: scale(1.04);
}

.btn-support:active {
    transform: translateY(-1px) scale(1);
    transition-duration: 0.15s;
}

@keyframes btnHaloRing {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.05); }
}

.btn-support__glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    background: linear-gradient(105deg, transparent 35%, rgba(212, 175, 55, 0.22) 50%, transparent 65%);
    transform: translateX(-130%);
    animation: btnShine 4.5s ease-in-out infinite;
}

@keyframes btnShine {
    0% { transform: translateX(-100%); }
    50%, 100% { transform: translateX(100%); }
}

.btn-support__text {
    position: relative;
    z-index: 1;
}

.btn-support__sub {
    position: relative;
    z-index: 1;
    font-family: var(--font-en);
    font-size: 0.58rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.65);
    margin-top: -0.15rem;
}

.hero__cta {
    flex-direction: column;
    gap: 0.2rem;
    min-width: min(100%, 300px);
    padding: 1.1rem 2.5rem 0.95rem;
}

.hero__cta .btn-support__glow {
    animation: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero__cta:hover .btn-support__glow,
.hero__cta:focus-visible .btn-support__glow {
    opacity: 1;
    animation: btnShine 1.2s ease forwards;
}

.btn-support__sweep {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
}

.btn-support__sweep::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(240, 208, 96, 0.16) 50%, transparent 60%);
    transform: translateX(-120%);
    transition: transform 0.65s var(--hero-ease);
}

.hero__cta:hover .btn-support__sweep::after,
.hero__cta:focus-visible .btn-support__sweep::after {
    transform: translateX(120%);
}

.btn-support__icon {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    animation: iconSpin 4s linear infinite;
}

@keyframes iconSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ---- 往下滑提示 ---- */
.scroll-hint {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    cursor: pointer;
    z-index: 4;
}

.scroll-hint--flow {
    position: static;
    transform: none;
    left: auto;
    bottom: auto;
    margin-top: 20px;
    opacity: 0;
}

.hero.is-phase-cta .scroll-hint--flow {
    animation: fadeDown 1s ease forwards, scrollBounceFlow 2s ease-in-out 1.2s infinite;
}

.hero.is-phase-cta .scroll-hint:not(.scroll-hint--flow) {
    animation: fadeDown 1s ease forwards, scrollBounce 2s ease-in-out 1.2s infinite;
}

.scroll-hint__text {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    font-family: var(--font-zh);
}

.scroll-hint__arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.scroll-hint__arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    transform: rotate(45deg);
    opacity: 0.6;
}

.scroll-hint__arrow span:first-child {
    opacity: 0.3;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scrollBounceFlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

.scroll-hint.hidden {
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* ---- 館藏紀錄 ---- */
.archive-section {
    --archive-hover-dur: 0.4s;
    --archive-glow-hover: 0 0 22px rgba(212, 175, 55, 0.07), 0 0 44px rgba(212, 175, 55, 0.03);
    position: relative;
    z-index: 2;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: clamp(4rem, 10vh, 6rem) clamp(1.25rem, 4vw, 2rem);
    background:
        linear-gradient(180deg, #050306 0%, var(--black) 14%, var(--black-soft) 48%, rgba(45, 10, 26, 0.35) 100%);
}

.archive-section__inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.archive-section__grid {
    display: grid;
    grid-template-columns: 42% 58%;
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: center;
}

.archive-section__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    width: 115%;
    max-width: 115%;
    margin-top: 24px;
    padding-right: clamp(0.5rem, 2vw, 1.5rem);
    box-sizing: border-box;
}

.archive-section__subtitle {
    margin: 0 0 clamp(2rem, 4vh, 2.75rem);
}

.archive-section__subtitle::after {
    width: 60px;
    height: 1px;
    margin-top: clamp(1rem, 2vh, 1.25rem);
    margin-left: var(--chapter-subtitle-spacing);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.32), rgba(212, 175, 55, 0.08));
}

.archive-section__body p {
    margin: 0;
    font-family: var(--font-zh);
    font-size: clamp(0.92rem, 1.8vh, 1.02rem);
    font-weight: 300;
    line-height: 1.88;
    letter-spacing: 0.06em;
    color: rgba(245, 236, 220, 0.96);
}

.archive-section__body p + p {
    margin-top: 1.7em;
}

.archive-section__body p:last-child {
    color: rgba(176, 160, 142, 0.96);
}

/* 古書頁裝飾面板 */
.archive-section__aside {
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: center;
    padding: clamp(0.5rem, 2vw, 1rem);
    overflow: visible;
}

.archive-panel-wrap {
    position: relative;
    width: min(100%, 386px);
    cursor: default;
    overflow: visible;
}

.archive-panel {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    padding: 0;
    box-sizing: border-box;
    background: linear-gradient(168deg, #0c080a 0%, #050306 42%, #080508 100%);
    border: 1px solid var(--lib-glass-border);
    box-shadow:
        var(--lib-glass-inset),
        inset 0 0 0 1px rgba(212, 175, 55, 0.06),
        var(--lib-glass-shadow);
    transform-origin: center center;
    transition:
        transform var(--archive-hover-dur) var(--hero-ease),
        box-shadow var(--archive-hover-dur) var(--hero-ease);
    animation: archive-panel-float 3s ease-in-out infinite;
    overflow: hidden;
}

/* 禁書封面 */
.archive-panel__cover {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: clamp(1.75rem, 3vw, 2.25rem);
    box-sizing: border-box;
}

.archive-panel__cover-texture {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            92deg,
            transparent,
            transparent 3px,
            rgba(212, 175, 55, 0.012) 3px,
            rgba(212, 175, 55, 0.012) 4px
        ),
        radial-gradient(ellipse at 30% 20%, rgba(74, 14, 46, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(45, 10, 26, 0.18) 0%, transparent 55%);
    pointer-events: none;
}

.archive-panel__cover-frame {
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(212, 175, 55, 0.14);
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.28);
    pointer-events: none;
    transition:
        border-color 0.4s var(--hero-ease),
        box-shadow 0.4s var(--hero-ease);
}

.archive-panel__cover-frame::before,
.archive-panel__cover-frame::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: rgba(212, 175, 55, 0.32);
    border-style: solid;
}

.archive-panel__cover-frame::before {
    top: -1px;
    left: -1px;
    border-width: 1px 0 0 1px;
}

.archive-panel__cover-frame::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 1px 1px 0;
}

.archive-panel__cover-art {
    position: absolute;
    inset: 14px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    overflow: hidden;
    filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.45));
    transition: filter 0.4s var(--hero-ease);
}

.archive-panel__cover-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transform: scale(0.966);
    transform-origin: center center;
    filter: brightness(1.1) contrast(1.05);
    transition: transform 0.4s var(--hero-ease), filter 0.4s var(--hero-ease);
}

.archive-panel-wrap:hover .archive-panel {
    animation-play-state: paused;
    transform: none;
    box-shadow:
        var(--lib-glass-inset),
        inset 0 0 0 1px rgba(212, 175, 55, 0.06),
        var(--lib-glass-shadow);
}

.archive-panel-wrap:hover .archive-panel__cover-frame {
    border-color: rgba(212, 175, 55, 0.26);
    box-shadow:
        inset 0 0 24px rgba(0, 0, 0, 0.28),
        0 0 14px rgba(212, 175, 55, 0.1);
}

.archive-panel-wrap:hover .archive-panel__cover-image {
    transform: scale(0.985);
    filter: brightness(1.1) contrast(1.05);
}

.archive-panel-wrap:hover .archive-panel__cover-art {
    filter:
        drop-shadow(0 12px 25px rgba(0, 0, 0, 0.45))
        drop-shadow(0 0 8px rgba(212, 175, 55, 0.12));
}

.archive-panel__sigil {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    width: 78%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 0.5px solid rgba(212, 175, 55, 0.07);
    opacity: 0.07;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 50%, transparent 38%, rgba(212, 175, 55, 0.35) 39%, transparent 40%),
        radial-gradient(circle at 50% 50%, transparent 62%, rgba(212, 175, 55, 0.25) 63%, transparent 64%),
        radial-gradient(rgba(212, 175, 55, 0.2) 0.5px, transparent 0.5px);
    background-size: auto, auto, 28px 28px;
}

.archive-panel__sigil::before,
.archive-panel__sigil::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.archive-panel__sigil::before {
    inset: 16%;
    border: 0.5px solid rgba(212, 175, 55, 0.06);
}

.archive-panel__sigil::after {
    inset: 32%;
    border: 0.5px solid rgba(212, 175, 55, 0.05);
    transform: rotate(45deg);
}

@keyframes archive-panel-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.archive-panel__hint {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0.85rem 0 0;
    font-family: var(--font-zh);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-indent: 0;
    text-align: center;
    color: rgba(212, 175, 55, 0.82);
    opacity: 0;
    pointer-events: none;
    border: 1px solid transparent;
    border-radius: 2px;
    padding: 0.35rem 0.55rem;
}

.archive-panel-wrap:hover .archive-panel__hint {
    opacity: 1;
}

/* 館藏資料卡 */
.archive-meta-card {
    position: absolute;
    top: 50%;
    left: calc(100% + 22px);
    z-index: 1;
    width: clamp(154px, 14.3vw, 192px);
    padding: 1rem 1.05rem 1.05rem;
    box-sizing: border-box;
    background: rgba(15, 8, 8, 0.28);
    border: 0.5px solid rgba(212, 175, 55, 0.18);
    box-shadow: inset 0 1px 0 rgba(212, 175, 55, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0.85;
    transform: translateY(-50%);
    transition:
        opacity var(--archive-hover-dur) var(--hero-ease),
        transform var(--archive-hover-dur) var(--hero-ease),
        box-shadow var(--archive-hover-dur) var(--hero-ease);
    pointer-events: none;
}

.archive-meta-card__list {
    margin: 0;
}

.archive-meta-card__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.18rem;
    padding: 0.62rem 0;
    border-bottom: 0.5px solid rgba(212, 175, 55, 0.11);
}

.archive-meta-card__row:first-child {
    padding-top: 0.1rem;
}

.archive-meta-card__row:last-child {
    padding-bottom: 0.1rem;
    border-bottom: none;
}

.archive-meta-card__label {
    margin: 0;
    font-family: var(--font-en);
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.48);
}

.archive-meta-card__row:nth-child(n + 2) .archive-meta-card__label {
    font-family: var(--font-zh);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: none;
}

.archive-meta-card__value {
    margin: 0;
    font-family: var(--font-zh);
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: rgba(238, 228, 210, 0.9);
}

.archive-meta-card__row:first-child .archive-meta-card__value,
.archive-meta-card__value--id {
    font-family: var(--font-en);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: rgba(232, 220, 200, 0.88);
}

.archive-panel-wrap:hover .archive-meta-card {
    opacity: 1;
    transform: translateY(-50%) translateX(-10px);
    box-shadow:
        inset 0 1px 0 rgba(212, 175, 55, 0.05),
        var(--archive-glow-hover);
}

.archive-panel__cover,
.archive-panel__cover-art {
    z-index: 1;
}

/* 館藏紀錄進場動畫（併入全站 Scroll Reveal） */
.archive-reveal--chapter,
.archive-reveal--title,
.archive-reveal--subtitle,
.archive-reveal--body,
.archive-reveal--panel {
    transform: translateY(24px);
}

/* ---- 世界觀故事區（禁書書頁） ---- */
.story-section {
    position: relative;
    z-index: 2;
    padding: var(--section-gap) clamp(1rem, 4vw, 2rem);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(74, 14, 46, 0.22) 0%, transparent 55%),
        linear-gradient(180deg, var(--burgundy-dark) 0%, var(--black-soft) 50%, var(--black) 100%);
}

.story-section__inner {
    max-width: 820px;
    margin: 0 auto;
}

.story-section__page {
    position: relative;
    padding: clamp(2rem, 5vw, 3.25rem) clamp(1.5rem, 4vw, 2.75rem);
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 28px,
            rgba(212, 175, 55, 0.025) 28px,
            rgba(212, 175, 55, 0.025) 29px
        ),
        radial-gradient(ellipse at 50% 0%, rgba(74, 14, 46, 0.18) 0%, transparent 60%),
        var(--lib-glass-bg);
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    border: 1px solid var(--lib-glass-border);
    box-shadow:
        var(--lib-glass-inset),
        inset 0 0 0 1px rgba(212, 175, 55, 0.06),
        var(--lib-glass-shadow);
    overflow: hidden;
}

.story-section__frame {
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    pointer-events: none;
}

.story-section__frame::before,
.story-section__frame::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: var(--gold);
    border-style: solid;
    opacity: 0.55;
}

.story-section__frame::before {
    top: -1px;
    left: -1px;
    border-width: 1px 0 0 1px;
}

.story-section__frame::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 1px 1px 0;
}

.story-section__lily {
    position: absolute;
    width: clamp(36px, 8vw, 56px);
    height: clamp(84px, 18vw, 130px);
    pointer-events: none;
    opacity: 0.45;
    filter: drop-shadow(0 0 12px rgba(196, 30, 58, 0.25));
}

.story-section__lily svg {
    width: 100%;
    height: 100%;
}

.story-section__lily--tl {
    top: -8px;
    left: 8px;
    transform: rotate(-8deg);
}

.story-section__lily--br {
    bottom: -8px;
    right: 8px;
    transform: scaleX(-1) rotate(-6deg);
}

.story-section__ornament {
    text-align: center;
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    opacity: 0.65;
    margin-bottom: 1.25rem;
}

.story-section__ornament--bottom {
    margin-bottom: 0;
    margin-top: 1.75rem;
    font-family: var(--font-en);
}

.story-section__title {
    font-family: var(--font-zh);
    font-size: var(--chapter-title-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.18em;
    text-align: center;
    margin-bottom: 0.65rem;
}

.story-section__subtitle {
    font-family: var(--font-en);
    font-size: var(--chapter-subtitle-size);
    letter-spacing: var(--chapter-subtitle-spacing);
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.62);
    text-align: center;
    margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.story-section__subtitle::after {
    content: '';
    display: block;
    width: clamp(2.5rem, 5vw, 3.5rem);
    height: 1px;
    margin: clamp(1rem, 2vh, 1.35rem) auto 0;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.55) 20%, rgba(212, 175, 55, 0.55) 80%, transparent);
}

.story-section__body {
    max-width: 36em;
    margin-inline: auto;
    text-align: center;
}

.story-section__body p {
    font-size: clamp(0.92rem, 2.2vw, 1.02rem);
    line-height: var(--lib-body-line);
    color: var(--lib-body-color);
    font-weight: 300;
    letter-spacing: 0.06em;
}

.story-section__body p + p {
    margin-top: 1.35em;
}

.story-section__body p:last-child {
    color: var(--lib-body-muted);
}

/* ---- CHAPTER 03 解鎖目標（封印卷宗時間軸） ---- */
.sealed-section {
    background:
        radial-gradient(ellipse at 50% 40%, rgba(74, 14, 46, 0.28) 0%, transparent 65%),
        linear-gradient(180deg, var(--black-soft) 0%, var(--black) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.08);
}

.sealed-section__inner {
    text-align: center;
}

.sealed-section__desc {
    max-width: 34em;
    margin: 0 auto clamp(2rem, 4vh, 2.75rem);
    color: rgba(176, 160, 142, 0.96);
    font-family: var(--font-zh);
    font-weight: 300;
    font-size: clamp(0.92rem, 1.8vh, 1.02rem);
    line-height: 1.88;
    letter-spacing: 0.06em;
}

.sealed-summary {
    max-width: 920px;
    margin: 0 auto clamp(2rem, 4vh, 2.75rem);
    text-align: left;
}

.sealed-summary__inner {
    padding: clamp(1.35rem, 3vw, 1.75rem) clamp(1.5rem, 3.5vw, 2rem);
    background:
        linear-gradient(135deg, rgba(18, 8, 14, 0.72) 0%, rgba(8, 5, 10, 0.88) 100%);
    border: 1px solid rgba(212, 175, 55, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(212, 175, 55, 0.06),
        0 10px 28px rgba(0, 0, 0, 0.28);
}

.sealed-summary__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.85rem, 2.5vw, 1.25rem);
    margin-bottom: 1.15rem;
}

.sealed-summary__stat {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.sealed-summary__label {
    font-family: var(--font-zh);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    color: rgba(176, 160, 142, 0.88);
}

.sealed-summary__value {
    font-family: var(--font-en);
    font-size: clamp(0.95rem, 2vw, 1.12rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--gold-light);
    overflow-wrap: anywhere;
}

.sealed-summary__track {
    height: 5px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.1);
    overflow: hidden;
}

.sealed-summary__fill {
    display: block;
    height: 100%;
    width: var(--sealed-summary-progress, 0%);
    background: linear-gradient(90deg, rgba(139, 26, 58, 0.85) 0%, rgba(212, 175, 55, 0.9) 100%);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.28);
    transition: width 0.6s var(--hero-ease);
}

.sealed-goals {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 clamp(0.25rem, 1.5vw, 0.75rem);
    text-align: left;
}

.sealed-goals__spine {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.45) 0%, rgba(212, 175, 55, 0.08) 100%);
    pointer-events: none;
    z-index: 0;
}

.sealed-goal {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: clamp(0.5rem, 1.4vw, 1rem);
    align-items: start;
}

.sealed-goal + .sealed-goal {
    margin-top: clamp(0.65rem, 1.5vw, 1rem);
}

.sealed-goal__node {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: clamp(44px, 7vw, 54px);
}

.sealed-goal--left .sealed-goal__scroll {
    grid-column: 1;
    justify-self: end;
    max-width: min(100%, 320px);
}

.sealed-goal--right .sealed-goal__scroll {
    grid-column: 3;
    justify-self: start;
    max-width: min(100%, 320px);
}

.sealed-goal__seal {
    position: relative;
    width: clamp(44px, 7vw, 54px);
height: clamp(44px, 7vw, 54px);
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.22);
    background:
        radial-gradient(circle at 50% 38%, rgba(74, 14, 46, 0.35) 0%, rgba(8, 5, 10, 0.95) 68%),
        linear-gradient(165deg, rgba(18, 8, 14, 0.92) 0%, rgba(5, 3, 6, 1) 100%);
    box-shadow:
        inset 0 1px 0 rgba(212, 175, 55, 0.08),
        0 6px 18px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

.sealed-goal__seal-inner {
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.18);
}

.sealed-goal__seal-inner::before,
.sealed-goal__seal-inner::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.sealed-goal__seal-inner::before {
    width: 58%;
    height: 58%;
    border: 1px solid rgba(212, 175, 55, 0.14);
}

.sealed-goal__seal-inner::after {
    width: 22%;
    height: 22%;
    background: rgba(212, 175, 55, 0.22);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.12);
}

.sealed-goal__connector {
    position: relative;
    width: 1px;
    flex: 1;
    min-height: clamp(2.5rem, 6vw, 3.25rem);
    margin-top: 0.65rem;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.18) 0%, rgba(212, 175, 55, 0.06) 100%);
    overflow: hidden;
}

.sealed-goal:last-child .sealed-goal__connector {
    display: none;
}

.sealed-goal__connector-glow {
    position: absolute;
    left: 50%;
    width: 5px;
    height: 5px;
    margin-left: -2.5px;
    border-radius: 50%;
    background: rgba(240, 208, 96, 0.85);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.55);
    opacity: 0;
}

.sealed-goal--active .sealed-goal__connector-glow {
    opacity: 1;
    animation: sealedConnectorFlow 2.8s linear infinite;
}

@keyframes sealedConnectorFlow {
    0% {
        top: -6%;
        opacity: 0;
    }

    12% {
        opacity: 1;
    }

    88% {
        opacity: 1;
    }

    100% {
        top: 106%;
        opacity: 0;
    }
}

.sealed-goal__scroll {
    position: relative;
    width: 100%;
    padding:
    clamp(0.85rem,2vw,1.05rem)
    120px
    clamp(1rem,2.2vw,1.25rem)
    clamp(1rem,2.2vw,1.25rem);
    background:
        linear-gradient(135deg, rgba(18, 8, 14, 0.72) 0%, rgba(8, 5, 10, 0.88) 100%);
    border: 1px solid rgba(212, 175, 55, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(212, 175, 55, 0.05),
        0 10px 28px rgba(0, 0, 0, 0.28);
    transition:
        border-color 0.3s var(--hero-ease),
        box-shadow 0.3s var(--hero-ease),
        transform 0.3s var(--hero-ease);
}

.sealed-goal__scroll::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.45) 0%, rgba(212, 175, 55, 0.05) 100%);
    opacity: 0.65;
}

.sealed-goal:hover .sealed-goal__scroll {
    border-color: rgba(212, 175, 55, 0.32);
    box-shadow:
        inset 0 1px 0 rgba(212, 175, 55, 0.08),
        0 12px 32px rgba(0, 0, 0, 0.32),
        0 0 18px rgba(212, 175, 55, 0.06);
    transform: translateY(-2px);
}

.sealed-goal__code {
    margin: 0;
    font-family: var(--font-en);
    font-size: clamp(0.68rem, 1.4vw, 0.76rem);
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.58);
}

.sealed-goal__amount {
    margin: 0.45rem 0 0;
    font-family: var(--font-en);
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--gold-light);
}

.sealed-goal__reward {
    margin: 0.65rem 0 0;
    font-family: var(--font-zh);
    font-size: clamp(0.88rem, 1.8vh, 0.96rem);
    font-weight: 300;
    line-height: 1.85;
    letter-spacing: 0.05em;
    color: rgba(232, 220, 200, 0.92);
    overflow-wrap: anywhere;
}

.sealed-goal__status {
    display: inline-block;
    margin: 0.85rem 0 0;
    padding: 0.28rem 0.65rem;
    font-family: var(--font-zh);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    border: 1px solid rgba(212, 175, 55, 0.18);
    color: rgba(176, 160, 142, 0.92);
    background: rgba(6, 4, 7, 0.45);
}

.sealed-goal__gap {
    margin: 0.65rem 0 0;
    font-family: var(--font-en);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(240, 208, 96, 0.82);
}

.sealed-goal--unlocked .sealed-goal__seal {
    border-color: rgba(212, 175, 55, 0.58);
    box-shadow:
        inset 0 1px 0 rgba(212, 175, 55, 0.14),
        0 0 22px rgba(212, 175, 55, 0.2),
        0 8px 22px rgba(0, 0, 0, 0.35);
}

.sealed-goal--unlocked .sealed-goal__seal-inner::after {
    background: rgba(240, 208, 96, 0.82);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.38);
}

.sealed-goal--unlocked .sealed-goal__connector {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.72) 0%, rgba(212, 175, 55, 0.22) 100%);
}

.sealed-goal--unlocked .sealed-goal__status {
    color: rgba(240, 208, 96, 0.92);
    border-color: rgba(212, 175, 55, 0.38);
    background: rgba(212, 175, 55, 0.08);
}

.sealed-goal--active .sealed-goal__seal {
    border-color: rgba(212, 175, 55, 0.46);
    animation: sealedSealBreathe 2.6s ease-in-out infinite;
}

.sealed-goal--active .sealed-goal__status {
    color: rgba(240, 208, 96, 0.88);
    border-color: rgba(212, 175, 55, 0.32);
}

@keyframes sealedSealBreathe {
    0%, 100% {
        box-shadow:
            inset 0 1px 0 rgba(212, 175, 55, 0.1),
            0 0 12px rgba(212, 175, 55, 0.12),
            0 6px 18px rgba(0, 0, 0, 0.35);
    }

    50% {
        box-shadow:
            inset 0 1px 0 rgba(212, 175, 55, 0.14),
            0 0 24px rgba(212, 175, 55, 0.22),
            0 8px 22px rgba(0, 0, 0, 0.35);
    }
}

.sealed-goal--locked {
    opacity: 0.5;
}

.sealed-goal--locked .sealed-goal__seal {
    border-color: rgba(212, 175, 55, 0.16);
}

.sealed-goal--locked .sealed-goal__seal-inner::after {
    background: rgba(212, 175, 55, 0.18);
    box-shadow: none;
}

.sealed-goal--locked .sealed-goal__amount {
    color: rgba(212, 175, 55, 0.68);
}

.sealed-goal--locked:hover {
    opacity: 0.62;
}

.countdown-section {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(74, 14, 46, 0.28) 0%, transparent 65%),
        linear-gradient(180deg, var(--black-soft) 0%, var(--black) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.08);
}

.countdown-section__inner {
    text-align: center;
}

.countdown-section__desc {
    color: var(--lib-body-muted);
    font-weight: 300;
    margin-bottom: clamp(2rem, 4vh, 2.75rem);
    line-height: var(--lib-body-line);
    font-size: clamp(0.92rem, 1.8vh, 1.02rem);
    letter-spacing: 0.06em;
}

.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    padding: 1.75rem 1.5rem;
    border-radius: 0;
    max-width: 760px;
    margin: 0 auto;
}

.countdown__unit {
    min-width: 88px;
    padding: 1rem 0.75rem;
    background: var(--lib-glass-bg);
    border: 1px solid var(--lib-glass-border-soft);
    box-shadow: var(--lib-glass-inset);
}

.countdown__value {
    display: block;
    font-family: var(--font-en);
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    line-height: 1;
    color: var(--gold-light);
    text-shadow: 0 0 18px rgba(212, 175, 55, 0.25);
    font-variant-numeric: tabular-nums;
}

.countdown__label {
    display: block;
    margin-top: 0.55rem;
    font-family: var(--font-en);
    font-size: 0.65rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.countdown__sep {
    font-family: var(--font-en);
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.55;
    line-height: 1;
    animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.85; }
}

/* ---- CHAPTER 02 募資方案（禁書書架） ---- */
.rewards-section {
    background: linear-gradient(180deg, var(--black) 0%, var(--black-soft) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.08);
}

.rewards-section__inner {
    text-align: center;
}

.rewards-section__intro {
    max-width: 36em;
    margin: 0 auto clamp(2.5rem, 5vh, 3.5rem);
    font-family: var(--font-zh);
    font-size: clamp(0.92rem, 1.8vh, 1.02rem);
    font-weight: 300;
    line-height: 1.88;
    letter-spacing: 0.06em;
    color: rgba(245, 236, 220, 0.88);
}

.rewards-section__shelf {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 3vw, 1.75rem);
    text-align: left;
    align-items: start;
}

.reward-book {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(8, 5, 10, 0.55);
    border: 1px solid rgba(212, 175, 55, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(212, 175, 55, 0.05),
        0 12px 36px rgba(0, 0, 0, 0.32);
    transition:
        border-color 0.4s var(--hero-ease),
        box-shadow 0.4s var(--hero-ease);
}

.reward-book.is-selected {
    border-color: rgba(212, 175, 55, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(212, 175, 55, 0.1),
        0 16px 44px rgba(0, 0, 0, 0.38),
        0 0 24px rgba(212, 175, 55, 0.14);
}

.reward-book__front {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto auto auto;
    gap: 0 1rem;
    padding: clamp(1.25rem, 3vw, 1.65rem);
    align-items: start;
}

.reward-book__cover {
    position: relative;
    grid-row: 1 / span 4;
    align-self: start;
    flex-shrink: 0;
    perspective: 900px;
}

.reward-book__cover-frame {
    height: clamp(160px, 18vw, 180px);
    aspect-ratio: 3 / 4.2;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #050306;
    border: 1px solid rgba(212, 175, 55, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(212, 175, 55, 0.06),
        0 6px 18px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(212, 175, 55, 0.05),
        0 0 16px rgba(212, 175, 55, 0.07);
    overflow: hidden;
    transform: translateZ(0);
    transition:
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

.reward-cover-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transform: translate3d(0, 0, 0) scale(1);
    transition:
        transform 0.4s ease,
        filter 0.4s ease;
}

.reward-book__cover-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
}

.reward-cover-shine {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.reward-cover-shine::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -35%;
    width: 28%;
    height: 240%;
    background: linear-gradient(
        118deg,
        rgba(212, 175, 55, 0) 0%,
        rgba(212, 175, 55, 0.08) 42%,
        rgba(240, 208, 96, 0.14) 50%,
        rgba(212, 175, 55, 0.08) 58%,
        rgba(212, 175, 55, 0) 100%
    );
    transform: translate3d(-130%, -50%, 0) rotate(24deg);
    opacity: 0;
}

/* 各方案書封 Hover 強度 */
.reward-book[data-tier="reader"] {
    --cover-lift: -3px;
    --cover-scale: 1.028;
    --cover-glow: 0.08;
    --cover-shadow: 0.28;
}

.reward-book[data-tier="collector"] {
    --cover-lift: -3px;
    --cover-scale: 1.032;
    --cover-glow: 0.1;
    --cover-shadow: 0.32;
}

.reward-book[data-tier="archivist"] {
    --cover-lift: -4px;
    --cover-scale: 1.035;
    --cover-glow: 0.12;
    --cover-shadow: 0.36;
}

.reward-book[data-tier="key-bearer"] {
    --cover-lift: -4px;
    --cover-scale: 1.035;
    --cover-glow: 0.16;
    --cover-shadow: 0.4;
}

.reward-book[data-tier="grand-librarian"] {
    --cover-lift: -4px;
    --cover-scale: 1.035;
    --cover-glow: 0.14;
    --cover-shadow: 0.38;
}

.reward-book[data-tier="warden"] {
    --cover-lift: -4px;
    --cover-scale: 1.035;
    --cover-glow: 0.13;
    --cover-shadow: 0.36;
}

@media (hover: hover) and (pointer: fine) {
    .reward-book__cover-frame:hover {
        border-color: rgba(212, 175, 55, 0.38);
        box-shadow:
            inset 0 1px 0 rgba(212, 175, 55, 0.1),
            0 10px 26px rgba(0, 0, 0, calc(0.38 + var(--cover-shadow, 0.32) * 0.12)),
            0 0 0 1px rgba(212, 175, 55, 0.1),
            0 0 calc(18px + var(--cover-glow, 0.1) * 28px) rgba(212, 175, 55, var(--cover-glow, 0.1));
    }

    .reward-book__cover-frame:hover .reward-cover-wrap {
        transform: translate3d(0, var(--cover-lift, -4px), 0) scale(var(--cover-scale, 1.035));
    }

    .reward-book__cover-frame:hover .reward-cover-shine::after {
        animation: rewardCoverShine 0.8s ease-out forwards;
    }

    .reward-book[data-tier="grand-librarian"] .reward-book__cover-frame:hover .reward-cover-wrap::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 34%;
        z-index: 1;
        pointer-events: none;
        background: radial-gradient(ellipse at 50% 0%, rgba(240, 208, 96, 0.14) 0%, rgba(212, 175, 55, 0.06) 42%, transparent 72%);
        opacity: 1;
        transition: opacity 0.4s ease;
    }

    .reward-book[data-tier="warden"] .reward-book__cover-frame:hover .reward-cover-wrap::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 42%;
        z-index: 1;
        pointer-events: none;
        background:
            radial-gradient(ellipse at 18% 88%, rgba(196, 30, 58, 0.1) 0%, transparent 52%),
            radial-gradient(ellipse at 78% 92%, rgba(212, 175, 55, 0.11) 0%, transparent 48%);
        opacity: 1;
        transition: opacity 0.4s ease;
    }
}

@keyframes rewardCoverShine {
    0% {
        transform: translate3d(-130%, -50%, 0) rotate(24deg);
        opacity: 0;
    }

    12% {
        opacity: 0.85;
    }

    100% {
        transform: translate3d(430%, -50%, 0) rotate(24deg);
        opacity: 0;
    }
}

.reward-book__name-zh {
    margin: 0;
    font-family: var(--font-zh);
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--text-primary);
}

.reward-book__name-en {
    margin: 0.2rem 0 0;
    font-family: var(--font-en);
    font-size: clamp(0.62rem, 1.4vw, 0.72rem);
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.62);
}

.reward-book__price {
    margin: 0.65rem 0 0;
    font-family: var(--font-en);
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--gold-light);
}

.reward-book__tagline {
    grid-column: 1 / -1;
    margin: 0.85rem 0 0;
    font-family: var(--font-zh);
    font-size: clamp(0.82rem, 1.7vh, 0.92rem);
    font-weight: 300;
    line-height: 1.85;
    letter-spacing: 0.05em;
    color: rgba(176, 160, 142, 0.96);
}

.reward-book__toggle {
    grid-column: 1 / -1;
    margin-top: 1rem;
    width: 100%;
    padding: 0.72rem 1rem;
    font-family: var(--font-zh);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-indent: 0.22em;
    color: rgba(212, 175, 55, 0.88);
    background: rgba(6, 4, 7, 0.45);
    border: 1px solid rgba(212, 175, 55, 0.28);
    cursor: pointer;
}

.reward-book.is-selected .reward-book__toggle {
    color: var(--gold-light);
    border-color: rgba(212, 175, 55, 0.42);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.1);
}

/* ---- 方案詳情面板（書架下方全寬） ---- */
.rewards-detail {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 0;
    opacity: 0;
    transform: translateY(10px);
    transition:
        grid-template-rows 0.45s var(--hero-ease),
        opacity 0.4s var(--hero-ease),
        transform 0.4s var(--hero-ease),
        margin-top 0.4s var(--hero-ease);
    text-align: left;
}

.rewards-detail.is-visible {
    grid-template-rows: 1fr;
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
    opacity: 1;
    transform: translateY(0);
}

.rewards-detail__inner {
    overflow: hidden;
    display: grid;
    grid-template-columns: 38fr 62fr;
    grid-template-areas: "aside content";
    gap: clamp(1.75rem, 4vw, 2.75rem);
    padding: clamp(2rem, 4vw, 2.75rem) clamp(2rem, 4.5vw, 3rem);
    background:
        radial-gradient(ellipse at 0% 0%, rgba(74, 14, 46, 0.22) 0%, transparent 55%),
        linear-gradient(165deg, rgba(18, 8, 14, 0.96) 0%, rgba(5, 3, 6, 0.98) 100%);
    border: 1px solid rgba(212, 175, 55, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(212, 175, 55, 0.08),
        0 16px 40px rgba(0, 0, 0, 0.38),
        0 0 28px rgba(212, 175, 55, 0.06);
}

.rewards-detail__aside {
    grid-area: aside;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-right: clamp(1rem, 2.5vw, 1.75rem);
    border-right: 1px solid rgba(212, 175, 55, 0.12);
}

.rewards-detail__cover-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 1.35rem;
}

.rewards-detail__cover-img {
    display: block;
    height: 220px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center top;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.42));
}

.rewards-detail__info {
    flex: 1;
}

.rewards-detail__name-zh {
    margin: 0;
    font-family: var(--font-zh);
    font-size: clamp(1.25rem, 2.8vw, 1.55rem);
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--text-primary);
}

.rewards-detail__name-en {
    margin: 0.35rem 0 0;
    font-family: var(--font-en);
    font-size: clamp(0.68rem, 1.5vw, 0.78rem);
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.62);
}

.rewards-detail__price {
    margin: 1rem 0 0;
    font-family: var(--font-en);
    font-size: clamp(1.2rem, 2.5vw, 1.45rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--gold-light);
}

.rewards-detail__tagline {
    margin: 1rem 0 0;
    font-family: var(--font-zh);
    font-size: clamp(0.86rem, 1.8vh, 0.96rem);
    font-weight: 300;
    line-height: 1.88;
    letter-spacing: 0.05em;
    color: rgba(176, 160, 142, 0.96);
}

.rewards-detail__cta {
    display: inline-block;
    margin-top: 1.75rem;
    padding: 0.78rem 1.65rem;
    font-family: var(--font-zh);
    font-size: 0.86rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-indent: 0.22em;
    text-decoration: none;
    color: rgba(8, 5, 10, 0.92);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95) 0%, rgba(240, 208, 96, 0.88) 100%);
    border: 1px solid rgba(212, 175, 55, 0.55);
    align-self: flex-start;
}

button.rewards-detail__cta {
    appearance: none;
    cursor: pointer;
    text-align: center;
}

.rewards-detail__content {
    grid-area: content;
    display: grid;
    gap: clamp(1.75rem, 3.5vw, 2.25rem);
    align-content: start;
}

.rewards-detail__chapter-label {
    margin: 0;
    font-family: var(--font-en);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.5);
}

.rewards-detail__chapter-title {
    margin: 0.4rem 0 0;
    font-family: var(--font-zh);
    font-size: clamp(0.88rem, 1.8vh, 0.96rem);
    font-weight: 600;
    letter-spacing: 0.18em;
    color: rgba(212, 175, 55, 0.82);
}

.rewards-detail__chapter-line {
    width: 60px;
    height: 1px;
    margin: 0.85rem 0 1.15rem;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.75) 0%, rgba(212, 175, 55, 0.12) 100%);
}

.rewards-detail__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.rewards-detail__item {
    position: relative;
    display: grid;
    grid-template-columns: 0.55rem 1fr;
    gap: 0.75rem;
    align-items: start;
    padding-left: 0.35rem;
    font-family: var(--font-zh);
    font-size: clamp(0.82rem, 1.6vh, 0.9rem);
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.03em;
    color: rgba(232, 220, 200, 0.88);
    transition: color 0.25s var(--hero-ease);
}

.rewards-detail__item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0.82em;
    width: 0;
    height: 1px;
    background: rgba(212, 175, 55, 0.65);
    transition: width 0.25s var(--hero-ease);
}

.rewards-detail__item:hover {
    color: rgba(245, 236, 220, 0.98);
}

.rewards-detail__item:hover::after {
    width: 10px;
}

.rewards-detail__item-mark {
    display: block;
    width: 5px;
    height: 5px;
    margin-top: 0.72em;
    background: rgba(212, 175, 55, 0.45);
    transform: rotate(45deg);
    transition: background 0.25s var(--hero-ease);
}

.rewards-detail__item:hover .rewards-detail__item-mark {
    background: rgba(240, 208, 96, 0.78);
}

.rewards-detail__item-text {
    display: block;
}

.rewards-section .reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- CHAPTER 04 館員守則 ---- */
.rules-section {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(74, 14, 46, 0.18) 0%, transparent 55%),
        linear-gradient(180deg, var(--black-soft) 0%, var(--black) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.08);
}

.rules-section__desc {
    margin: 0 auto clamp(2rem, 4vh, 2.75rem);
    max-width: 36em;
    text-align: center;
    font-family: var(--font-zh);
    font-size: clamp(0.9rem, 1.8vh, 1rem);
    font-weight: 300;
    line-height: var(--lib-body-line);
    letter-spacing: 0.06em;
    color: var(--lib-body-color);
}

.rules-section__shelf {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.85rem, 2vw, 1.15rem);
    max-width: 960px;
    margin: 0 auto;
}

.rules-scroll {
    position: relative;
    min-width: 0;
    background:
        linear-gradient(90deg, rgba(212, 175, 55, 0.06) 0%, rgba(212, 175, 55, 0) 18%),
        linear-gradient(165deg, rgba(18, 8, 14, 0.92) 0%, rgba(8, 5, 10, 0.96) 100%);
    border: 1px solid rgba(212, 175, 55, 0.16);
    border-left: 3px solid rgba(212, 175, 55, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(212, 175, 55, 0.05),
        0 8px 24px rgba(0, 0, 0, 0.22);
    transition:
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
}

.rules-scroll::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 0.85rem;
    bottom: 0.85rem;
    width: 1px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.35) 0%, rgba(212, 175, 55, 0.05) 100%);
    pointer-events: none;
}

.rules-scroll.is-open {
    border-color: rgba(212, 175, 55, 0.38);
    border-left-color: rgba(240, 208, 96, 0.62);
    box-shadow:
        inset 0 1px 0 rgba(212, 175, 55, 0.1),
        0 0 22px rgba(212, 175, 55, 0.12),
        0 10px 28px rgba(0, 0, 0, 0.28);
}

.rules-scroll__heading {
    margin: 0;
}

.rules-scroll__toggle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1rem);
    width: 100%;
    padding: clamp(1rem, 2.2vw, 1.2rem) clamp(1rem, 2.5vw, 1.35rem);
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.rules-scroll__toggle:focus {
    outline: none;
}

.rules-scroll__toggle:focus-visible {
    outline: 1px solid rgba(212, 175, 55, 0.55);
    outline-offset: -1px;
}

.rules-scroll__code {
    flex-shrink: 0;
    font-family: var(--font-en);
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.24em;
    color: rgba(212, 175, 55, 0.62);
    white-space: nowrap;
}

.rules-scroll__question {
    font-family: var(--font-zh);
    font-size: clamp(0.88rem, 1.8vh, 0.98rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.55;
    color: rgba(232, 220, 200, 0.9);
    overflow-wrap: anywhere;
    transition: color 0.25s ease;
}

.rules-scroll__toggle:hover .rules-scroll__question,
.rules-scroll__toggle:focus-visible .rules-scroll__question {
    color: rgba(245, 236, 220, 0.98);
}

.rules-scroll__arrow {
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    margin-top: -2px;
    border-right: 1px solid rgba(212, 175, 55, 0.62);
    border-bottom: 1px solid rgba(212, 175, 55, 0.62);
    transform: rotate(45deg);
    transform-origin: center;
    transition: transform 0.35s ease, border-color 0.25s ease;
}

.rules-scroll__toggle:hover .rules-scroll__arrow,
.rules-scroll__toggle:focus-visible .rules-scroll__arrow {
    border-color: rgba(240, 208, 96, 0.78);
}

.rules-scroll.is-open .rules-scroll__arrow {
    transform: rotate(225deg);
}

.rules-scroll__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease-out;
}

.rules-scroll.is-open .rules-scroll__panel {
    grid-template-rows: 1fr;
}

.rules-scroll__panel-inner {
    overflow: hidden;
    min-width: 0;
}

.rules-scroll__answer {
    margin: 0;
    padding: 0 clamp(1rem, 2.5vw, 1.35rem) clamp(1rem, 2.2vw, 1.2rem);
    padding-left: calc(clamp(1rem, 2.5vw, 1.35rem) + 4.5rem);
    font-family: var(--font-zh);
    font-size: clamp(0.84rem, 1.7vh, 0.94rem);
    font-weight: 300;
    line-height: var(--lib-body-line);
    letter-spacing: 0.05em;
    color: var(--lib-body-muted);
    opacity: 0;
    overflow-wrap: anywhere;
    transition: opacity 0.35s ease-out;
}

.rules-scroll.is-open .rules-scroll__answer {
    opacity: 1;
}

/* ---- FINAL CHAPTER 加入館藏 ---- */
.join-section {
    position: relative;
    overflow: hidden;
    padding: clamp(5rem, 12vh, 7.5rem) clamp(1rem, 4vw, 2rem);
    background:
        radial-gradient(ellipse at 50% 100%, rgba(74, 14, 46, 0.22) 0%, transparent 60%),
        linear-gradient(180deg, var(--black) 0%, #050306 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.08);
}

.join-section__ambient {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.join-section__sigil {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(480px, 88vw);
    height: min(480px, 88vw);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.045);
    box-shadow:
        inset 0 0 0 1px rgba(212, 175, 55, 0.03),
        0 0 72px rgba(212, 175, 55, 0.035);
}

.join-section__sigil::before,
.join-section__sigil::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.join-section__sigil::before {
    width: 72%;
    height: 72%;
    border: 1px solid rgba(212, 175, 55, 0.035);
}

.join-section__sigil::after {
    width: 44%;
    height: 44%;
    border: 1px solid rgba(212, 175, 55, 0.028);
}

.join-section__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(620px, 105vw);
    height: min(380px, 68vw);
    transform: translate(-50%, -50%);
    background: radial-gradient(
        ellipse at center,
        rgba(212, 175, 55, 0.055) 0%,
        rgba(74, 14, 46, 0.025) 42%,
        rgba(10, 6, 8, 0) 72%
    );
}

.join-section__inner {
    position: relative;
    z-index: 1;
}

.chapter-header--final .chapter-header__title,
.join-section__title {
    font-size: clamp(2.05rem, 4.8vw, 3rem);
}

.join-section__body {
    max-width: 38em;
    margin: 0 auto;
    text-align: center;
}

.join-section__lead {
    margin: 0 0 clamp(1.35rem, 3vh, 1.85rem);
    font-family: var(--font-zh);
    font-size: clamp(1rem, 2vh, 1.12rem);
    font-weight: 400;
    line-height: 1.95;
    letter-spacing: 0.08em;
    color: rgba(238, 228, 210, 0.94);
}

.join-section__sub {
    margin: 0 0 clamp(2.25rem, 5vh, 3rem);
    font-family: var(--font-zh);
    font-size: clamp(0.9rem, 1.8vh, 1rem);
    font-weight: 300;
    line-height: var(--lib-body-line);
    letter-spacing: 0.06em;
    color: var(--lib-body-color);
}

.join-section__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.15rem, 2.5vh, 1.5rem);
}

.join-section__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    height: 54px;
    padding: 0 1.85rem;
    font-family: var(--font-zh);
    font-size: 0.92rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-indent: 0.18em;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--lib-glass-bg);
    border: 1px solid var(--lib-glass-border);
    box-shadow: var(--lib-glass-inset), var(--lib-glass-shadow);
}

.join-section__link {
    position: relative;
    display: inline-block;
    font-family: var(--font-zh);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-decoration: none;
    color: rgba(176, 160, 142, 0.9);
    transition: color 0.3s ease;
}

.join-section__link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 24px;
    height: 1px;
    margin-left: -12px;
    background: rgba(212, 175, 55, 0.88);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
    opacity: 0.9;
}

.join-section__link:hover,
.join-section__link:focus-visible {
    color: rgba(245, 236, 220, 0.96);
}

.join-section__link:hover::after,
.join-section__link:focus-visible::after {
    transform: translateX(-50%) scaleX(1);
}

.join-section__link:focus {
    outline: none;
}

.join-section__link:focus-visible {
    outline: 1px solid rgba(212, 175, 55, 0.45);
    outline-offset: 4px;
}

/* ---- 館藏查詢 ARCHIVE SEARCH ---- */
.archive-search-section {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(74, 14, 46, 0.16) 0%, transparent 55%),
        linear-gradient(180deg, var(--black-soft) 0%, #050306 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.08);
}

.archive-search-section__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: min(72vh, 720px);
    padding-block: clamp(3rem, 8vh, 5rem);
}

.archive-search-stack {
    width: min(100%, 700px);
    margin-inline: auto;
}

.archive-search-card {
    width: 100%;
    margin-inline: auto;
    padding: clamp(2rem, 4.5vw, 2.75rem) clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
    background:
        linear-gradient(165deg, rgba(18, 8, 14, 0.92) 0%, rgba(8, 5, 10, 0.96) 100%);
    border: 1px solid rgba(212, 175, 55, 0.28);
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.1);
}

.archive-search-card__header {
    margin-bottom: clamp(1.15rem, 2.5vh, 1.5rem);
    text-align: center;
}

.archive-search-card__title {
    margin: 0 0 0.65rem;
    font-family: var(--font-zh);
    font-size: var(--chapter-title-size-sm);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-indent: 0;
    color: var(--text-primary);
}

.archive-search-card__subtitle {
    margin: 0;
    font-family: var(--font-en);
    font-size: var(--chapter-subtitle-size);
    font-weight: 300;
    letter-spacing: var(--chapter-subtitle-spacing);
    text-indent: 0;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.62);
}

.archive-search-card__desc {
    margin: 0 0 clamp(1.5rem, 3vh, 1.75rem);
    font-family: var(--font-zh);
    font-size: clamp(0.88rem, 1.8vh, 0.96rem);
    font-weight: 300;
    line-height: 1.85;
    letter-spacing: 0.05em;
    text-align: center;
    color: var(--lib-body-color);
}

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

.archive-search-card__input {
    width: 100%;
    box-sizing: border-box;
    height: 56px;
    margin: 0 0 24px;
    padding: 0 0.85rem;
    font-family: var(--font-en);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-align: center;
    color: rgba(255, 255, 255, 0.96);
    background: #050306;
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 2px;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.archive-search-card__input::placeholder {
    color: rgba(154, 138, 122, 0.72);
    letter-spacing: 0.08em;
}

.archive-search-card__input:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.48);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.18);
    background: #080508;
}

.archive-search-card__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 0 0.85rem;
    font-family: var(--font-zh);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-indent: 0;
    cursor: pointer;
    border-radius: 2px;
    color: rgba(8, 5, 10, 0.92);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95) 0%, rgba(240, 208, 96, 0.88) 100%);
    border: 1px solid rgba(212, 175, 55, 0.55);
}

.archive-search-card__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.archive-search-feedback {
    margin: 0 0 1rem;
    font-family: var(--font-zh);
    font-size: 0.76rem;
    line-height: 1.6;
    letter-spacing: 0.04em;
    text-align: center;
}

.archive-search-feedback[hidden] {
    display: none;
}

.archive-search-feedback--error {
    color: rgba(196, 30, 58, 0.92);
}

.archive-search-card__input--error {
    border-color: rgba(196, 30, 58, 0.72);
}

.archive-search-result {
    width: 100%;
    margin-top: 1.5rem;
    padding: clamp(1.75rem, 4vw, 2.35rem) clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
    background:
        linear-gradient(165deg, rgba(18, 8, 14, 0.92) 0%, rgba(8, 5, 10, 0.96) 100%);
    border: 1px solid rgba(212, 175, 55, 0.28);
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.1);
    opacity: 0;
    transform: translateY(10px);
}

.archive-search-result[hidden] {
    display: none;
}

.archive-search-result.is-visible {
    animation: archive-search-result-in 0.48s ease forwards;
}

@keyframes archive-search-result-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.archive-search-result__header {
    margin-bottom: 1.15rem;
}

.archive-search-result__title {
    margin: 0 0 0.45rem;
    font-family: var(--font-zh);
    font-size: clamp(1.05rem, 2.2vh, 1.2rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-primary);
}

.archive-search-result__subtitle {
    margin: 0;
    font-family: var(--font-en);
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
    color: rgba(212, 175, 55, 0.62);
}

.archive-search-result__status {
    margin-bottom: 1.25rem;
    padding: 1rem 1.05rem;
    background: rgba(8, 5, 10, 0.55);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 2px;
}

.archive-search-result__status-label {
    margin: 0 0 0.35rem;
    font-family: var(--font-zh);
    font-size: clamp(0.95rem, 1.9vh, 1.02rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(240, 208, 96, 0.96);
}

.archive-search-result__status-en {
    margin: 0 0 0.55rem;
    font-family: var(--font-en);
    font-size: 0.64rem;
    letter-spacing: 0.24em;
    text-indent: 0.24em;
    color: rgba(212, 175, 55, 0.72);
}

.archive-search-result__status-desc {
    margin: 0;
    font-family: var(--font-zh);
    font-size: 0.84rem;
    font-weight: 300;
    line-height: 1.75;
    letter-spacing: 0.04em;
    color: var(--lib-body-color);
}

.archive-search-result__list {
    margin: 0;
    padding: 0;
    text-align: left;
}

.archive-search-result__row {
    display: grid;
    grid-template-columns: minmax(5.5em, 7.5em) minmax(0, 1fr);
    gap: 0.35rem 0.85rem;
    align-items: baseline;
    padding: 0.62rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.archive-search-result__row:last-child {
    border-bottom: none;
}

.archive-search-result__row dt {
    margin: 0;
    font-family: var(--font-zh);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: rgba(154, 138, 122, 0.88);
}

.archive-search-result__row dd {
    margin: 0;
    font-family: var(--font-zh);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    color: rgba(245, 236, 220, 0.96);
    word-break: break-word;
}

/* ---- 支持表單 FINAL CONTRACT ---- */
.contract-section {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(74, 14, 46, 0.2) 0%, transparent 55%),
        linear-gradient(180deg, #050306 0%, var(--black-soft) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.08);
}

.contract-section__desc {
    margin: 0 auto clamp(2rem, 4vh, 2.75rem);
    max-width: 36em;
    text-align: center;
    font-family: var(--font-zh);
    font-size: clamp(0.9rem, 1.8vh, 1rem);
    font-weight: 300;
    line-height: var(--lib-body-line);
    letter-spacing: 0.06em;
    color: var(--lib-body-color);
}

.contract-section__selected {
    max-width: 960px;
    margin: 0 auto clamp(1.5rem, 3vh, 2rem);
    padding: clamp(0.85rem, 2vw, 1.1rem) clamp(1rem, 2.5vw, 1.35rem);
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.28);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.08);
    text-align: center;
}

.contract-section__selected-label {
    margin: 0 0 0.35rem;
    font-family: var(--font-en);
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    color: rgba(212, 175, 55, 0.62);
}

.contract-section__selected-value {
    margin: 0;
    font-family: var(--font-zh);
    font-size: clamp(0.92rem, 1.8vh, 1.02rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(245, 236, 220, 0.96);
}

.contract-section__workspace {
    display: grid;
    grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
    gap: clamp(1.5rem, 3.5vw, 2.25rem);
    max-width: 960px;
    margin: 0 auto;
    align-items: start;
}

.contract-form__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2.2vh, 1.25rem);
}

.contract-field {
    min-width: 0;
}

.contract-field--full {
    grid-column: 1 / -1;
}

.contract-field__label,
.contract-field--fieldset .contract-field__label {
    display: block;
    margin-bottom: 0.45rem;
    font-family: var(--font-zh);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(232, 220, 200, 0.9);
}

.contract-field--fieldset {
    margin: 0;
    padding: 0;
    border: none;
}

.contract-field__optional {
    margin-left: 0.35rem;
    font-size: 0.76rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: rgba(154, 138, 122, 0.82);
}

.contract-field__control {
    width: 100%;
    box-sizing: border-box;
    padding: 0.72rem 0.85rem;
    font-family: var(--font-zh);
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    background: rgba(8, 5, 10, 0.55);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 2px;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.contract-field__control--textarea {
    min-height: 108px;
    resize: vertical;
    line-height: 1.75;
}

.contract-field__control:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.48);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.18);
    background: rgba(12, 8, 14, 0.72);
}

.contract-field__control:focus-visible {
    outline: none;
    border-color: rgba(212, 175, 55, 0.52);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.22);
}

.contract-field--error .contract-field__control,
.contract-field--error .contract-field__radios {
    border-color: rgba(139, 26, 58, 0.72);
}

.contract-field--checkbox.contract-field--error .contract-checkbox {
    outline: 1px solid rgba(139, 26, 58, 0.55);
    outline-offset: 3px;
    border-radius: 2px;
}

.contract-field__hint {
    margin: 0.4rem 0 0;
    font-family: var(--font-zh);
    font-size: 0.76rem;
    font-weight: 300;
    line-height: 1.65;
    letter-spacing: 0.04em;
    color: rgba(154, 138, 122, 0.82);
}

.contract-field__error {
    margin: 0.4rem 0 0;
    min-height: 1.1em;
    font-family: var(--font-zh);
    font-size: 0.76rem;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: rgba(196, 30, 58, 0.92);
}

.contract-field__error:empty {
    margin: 0;
    min-height: 0;
}

.contract-field__radios {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    padding: 0.72rem 0.85rem;
    background: rgba(8, 5, 10, 0.55);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 2px;
}

.contract-radio,
.contract-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-family: var(--font-zh);
    font-size: 0.84rem;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0.04em;
    color: rgba(232, 220, 200, 0.88);
    cursor: pointer;
}

.contract-radio input,
.contract-checkbox input {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin-top: 0.2rem;
    accent-color: var(--gold);
}

.contract-shipping__method {
    margin: 0 0 0.4rem;
    font-family: var(--font-zh);
    font-size: clamp(0.88rem, 1.8vh, 0.96rem);
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(240, 208, 96, 0.94);
}

.contract-shipping__hint {
    margin: 0;
    font-family: var(--font-zh);
    font-size: 0.76rem;
    font-weight: 300;
    line-height: 1.65;
    letter-spacing: 0.04em;
    color: rgba(154, 138, 122, 0.82);
}

.contract-shipping-fields {
    grid-column: 1 / -1;
}

.contract-shipping-fields[hidden] {
    display: none;
}

.contract-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin-top: clamp(0.5rem, 1.5vh, 0.85rem);
    padding: 0 1.5rem;
    font-family: var(--font-zh);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-indent: 0.18em;
    color: var(--text-primary);
    background: var(--lib-glass-bg);
    border: 1px solid var(--lib-glass-border);
    box-shadow: var(--lib-glass-inset), var(--lib-glass-shadow);
    cursor: pointer;
}

.contract-summary__card {
    padding: clamp(1.25rem, 2.5vw, 1.65rem);
    background:
        linear-gradient(165deg, rgba(18, 8, 14, 0.92) 0%, rgba(8, 5, 10, 0.96) 100%);
    border: 1px solid rgba(212, 175, 55, 0.24);
    box-shadow:
        inset 0 1px 0 rgba(212, 175, 55, 0.06),
        0 10px 28px rgba(0, 0, 0, 0.28);
}

.contract-summary__title {
    margin: 0 0 1rem;
    font-family: var(--font-zh);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: rgba(245, 236, 220, 0.96);
}

.contract-summary__list {
    margin: 0;
}

.contract-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}

.contract-summary__row:last-child {
    border-bottom: none;
}

.contract-summary__row dt {
    margin: 0;
    font-family: var(--font-zh);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: rgba(154, 138, 122, 0.88);
}

.contract-summary__row dd {
    margin: 0;
    font-family: var(--font-en);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(232, 220, 200, 0.92);
    text-align: right;
    overflow-wrap: anywhere;
}

.contract-summary__row--total {
    margin-top: 0.35rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(212, 175, 55, 0.16);
    border-bottom: none;
}

.contract-summary__row--total dt,
.contract-summary__row--total dd {
    font-size: 0.88rem;
    color: rgba(240, 208, 96, 0.96);
}

.contract-success {
    max-width: 36em;
    margin: 0 auto;
    padding: clamp(2rem, 5vh, 3rem) clamp(1rem, 3vw, 1.5rem);
    text-align: center;
    background:
        linear-gradient(165deg, rgba(18, 8, 14, 0.92) 0%, rgba(8, 5, 10, 0.96) 100%);
    border: 1px solid rgba(212, 175, 55, 0.28);
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.1);
}

.contract-success__title {
    margin: 0 0 0.5rem;
    font-family: var(--font-zh);
    font-size: clamp(1.2rem, 2.5vh, 1.45rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(245, 236, 220, 0.98);
}

.contract-success__subtitle {
    margin: 0 0 1.25rem;
    font-family: var(--font-en);
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    color: rgba(212, 175, 55, 0.72);
}

.contract-success__text {
    margin: 0 0 1.5rem;
    font-family: var(--font-zh);
    font-size: clamp(0.88rem, 1.8vh, 0.96rem);
    font-weight: 300;
    line-height: 1.85;
    letter-spacing: 0.05em;
    color: var(--lib-body-color);
}

.contract-success__summary {
    margin: 0 0 1.35rem;
    padding: 0;
    text-align: left;
}

.contract-success__summary-row {
    display: grid;
    grid-template-columns: minmax(5.5em, 7em) minmax(0, 1fr);
    gap: 0.35rem 0.75rem;
    align-items: baseline;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

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

.contract-success__summary dt {
    margin: 0;
    font-family: var(--font-zh);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: rgba(154, 138, 122, 0.88);
}

.contract-success__summary dd {
    margin: 0;
    font-family: var(--font-zh);
    font-size: clamp(0.88rem, 1.8vh, 0.96rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: rgba(245, 236, 220, 0.96);
    word-break: break-word;
}

.contract-success__summary-row:last-child dd {
    color: rgba(240, 208, 96, 0.96);
    font-weight: 500;
}

.contract-success__bank {
    margin: 0 0 1.35rem;
    padding: 1rem 1.15rem;
    background: rgba(8, 5, 10, 0.55);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 2px;
}

.contract-success__bank-name {
    margin: 0 0 0.55rem;
    font-family: var(--font-zh);
    font-size: clamp(0.95rem, 1.9vh, 1.05rem);
    font-weight: 500;
    letter-spacing: 0.1em;
    color: rgba(245, 236, 220, 0.96);
}

.contract-success__bank-row {
    margin: 0.25rem 0 0;
    font-family: var(--font-zh);
    font-size: clamp(0.86rem, 1.7vh, 0.94rem);
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: 0.06em;
    color: var(--lib-body-color);
}

.contract-success__hint {
    margin: 0 0 1.15rem;
    font-family: var(--font-zh);
    font-size: clamp(0.86rem, 1.7vh, 0.94rem);
    font-weight: 300;
    line-height: 1.85;
    letter-spacing: 0.05em;
    color: var(--lib-body-color);
}

.contract-success__seal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 1.35rem;
    font-family: var(--font-zh);
    font-size: 0.84rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    cursor: pointer;
    border-radius: 2px;
    color: rgba(8, 5, 10, 0.92);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95) 0%, rgba(240, 208, 96, 0.88) 100%);
    border: 1px solid rgba(212, 175, 55, 0.55);
}

.contract-seal-report {
    margin-top: 1.5rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
    text-align: left;
}

.contract-seal-report[hidden] {
    display: none;
}

.contract-seal-report.is-open {
    animation: contract-seal-report-in 0.48s ease forwards;
}

@keyframes contract-seal-report-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contract-seal-report__title {
    margin: 0 0 1rem;
    font-family: var(--font-zh);
    font-size: clamp(1rem, 2vh, 1.1rem);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-align: center;
    color: rgba(245, 236, 220, 0.98);
}

.contract-seal-report__form {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    max-width: 100%;
}

.contract-seal-report__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 0.35rem;
    padding: 0 1rem;
    font-family: var(--font-zh);
    font-size: 0.84rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    cursor: pointer;
    border-radius: 2px;
    color: rgba(8, 5, 10, 0.92);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95) 0%, rgba(240, 208, 96, 0.88) 100%);
    border: 1px solid rgba(212, 175, 55, 0.55);
}

.contract-seal-report__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.contract-seal-report__submit-error {
    margin: 0.35rem 0 0.15rem;
    font-family: var(--font-zh);
    font-size: 0.76rem;
    line-height: 1.5;
    letter-spacing: 0.04em;
    text-align: center;
    color: rgba(196, 30, 58, 0.92);
}

.contract-seal-report__submit-error[hidden] {
    display: none;
}

.contract-seal-report-success {
    margin-top: 1.5rem;
    padding-top: 0.35rem;
    text-align: center;
}

.contract-seal-report-success[hidden] {
    display: none;
}

.contract-seal-report-success__divider {
    margin: 0 0 0.85rem;
    font-family: var(--font-en);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: rgba(212, 175, 55, 0.55);
    word-break: break-all;
}

.contract-seal-report-success__title {
    margin: 0 0 0.45rem;
    font-family: var(--font-zh);
    font-size: clamp(1rem, 2vh, 1.12rem);
    font-weight: 500;
    letter-spacing: 0.1em;
    color: rgba(245, 236, 220, 0.98);
}

.contract-seal-report-success__subtitle {
    margin: 0 0 0.85rem;
    font-family: var(--font-en);
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    color: rgba(212, 175, 55, 0.72);
}

.contract-seal-report-success__text {
    margin: 0 0 0.85rem;
    font-family: var(--font-zh);
    font-size: clamp(0.86rem, 1.7vh, 0.94rem);
    font-weight: 300;
    line-height: 1.85;
    letter-spacing: 0.05em;
    color: var(--lib-body-color);
}

.contract-seal-report-success > .contract-seal-report-success__divider:last-child {
    margin-bottom: 0;
}

.contract-field__control--readonly {
    color: rgba(240, 208, 96, 0.88);
    background: rgba(8, 5, 10, 0.72);
    cursor: default;
}

.contract-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.contract-modal[hidden] {
    display: none;
}

.contract-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 3, 6, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.contract-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: min(88vh, 720px);
    overflow: auto;
    padding: clamp(1.5rem, 3vw, 2rem);
    background:
        linear-gradient(165deg, rgba(18, 8, 14, 0.98) 0%, rgba(8, 5, 10, 0.99) 100%);
    border: 1px solid rgba(212, 175, 55, 0.32);
    box-shadow:
        0 0 28px rgba(212, 175, 55, 0.12),
        0 20px 48px rgba(0, 0, 0, 0.45);
}

.contract-modal__title {
    margin: 0 0 1.15rem;
    font-family: var(--font-zh);
    font-size: clamp(1rem, 2vh, 1.12rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-align: center;
    color: rgba(245, 236, 220, 0.98);
}

.contract-modal__review {
    margin: 0 0 1.35rem;
}

.contract-modal__review div {
    display: grid;
    grid-template-columns: 5.5em minmax(0, 1fr);
    gap: 0.65rem 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}

.contract-modal__review div:last-child {
    border-bottom: none;
}

.contract-modal__review dt {
    margin: 0;
    font-family: var(--font-zh);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: rgba(154, 138, 122, 0.88);
}

.contract-modal__review dd {
    margin: 0;
    font-family: var(--font-zh);
    font-size: 0.84rem;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0.04em;
    color: rgba(232, 220, 200, 0.92);
    overflow-wrap: anywhere;
}

.contract-modal__review .contract-modal__review-total dd {
    color: rgba(240, 208, 96, 0.96);
    font-weight: 500;
}

.contract-modal__submit-error {
    margin: 0 0 1rem;
    font-family: var(--font-zh);
    font-size: 0.76rem;
    line-height: 1.5;
    letter-spacing: 0.04em;
    text-align: center;
    color: rgba(196, 30, 58, 0.92);
}

.contract-modal__submit-error[hidden] {
    display: none;
}

.contract-modal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.contract-modal__back,
.contract-modal__confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 0.85rem;
    font-family: var(--font-zh);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-indent: 0;
    cursor: pointer;
    border-radius: 2px;
}

.contract-modal__back {
    color: var(--text-primary);
    background: var(--lib-glass-bg);
    border: 1px solid var(--lib-glass-border);
    box-shadow: var(--lib-glass-inset), var(--lib-glass-shadow);
}

.contract-modal__confirm {
    color: rgba(8, 5, 10, 0.92);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95) 0%, rgba(240, 208, 96, 0.88) 100%);
    border: 1px solid rgba(212, 175, 55, 0.55);
}

.contract-modal__confirm:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ---- Footer ---- */
.footer {
    position: relative;
    z-index: 2;
    padding: clamp(1.75rem, 4vh, 2.35rem) clamp(1rem, 4vw, 1.5rem) clamp(1.5rem, 3.5vh, 2rem);
    border-top: 1px solid rgba(212, 175, 55, 0.14);
    background: #050306;
}

.footer__inner {
    max-width: 36em;
    margin: 0 auto;
    text-align: center;
}

.footer__brand {
    margin: 0 0 0.55rem;
    font-family: var(--font-en);
    font-size: clamp(0.72rem, 1.5vh, 0.82rem);
    font-weight: 400;
    letter-spacing: 0.32em;
    text-indent: 0.32em;
    color: rgba(212, 175, 55, 0.72);
}

.footer__project {
    margin: 0 0 1rem;
    font-family: var(--font-zh);
    font-size: clamp(0.78rem, 1.6vh, 0.88rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    color: rgba(176, 160, 142, 0.88);
}

.footer__archive {
    margin: 0 0 1rem;
    font-family: var(--font-en);
    font-size: clamp(0.68rem, 1.4vh, 0.76rem);
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0.22em;
    color: rgba(154, 138, 122, 0.82);
}

.footer__quote {
    margin: 0 0 1.15rem;
    padding: 0;
    border: none;
    font-family: var(--font-zh);
    font-size: clamp(0.78rem, 1.55vh, 0.86rem);
    font-weight: 300;
    line-height: 1.85;
    letter-spacing: 0.06em;
    color: rgba(154, 138, 122, 0.72);
}

.footer__social {
    margin-bottom: 1rem;
}

.footer__social-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(0.85rem, 2.5vw, 1.35rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer__social-link {
    position: relative;
    display: inline-block;
    font-family: var(--font-en);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(154, 138, 122, 0.78);
    transition: color 0.3s ease;
}

.footer__social-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 100%;
    max-width: 24px;
    height: 1px;
    background: rgba(212, 175, 55, 0.88);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
    opacity: 0.9;
}

.footer__social-link:hover,
.footer__social-link:focus-visible {
    color: rgba(245, 236, 220, 0.92);
}

.footer__social-link:hover::after,
.footer__social-link:focus-visible::after {
    transform: translateX(-50%) scaleX(1);
}

.footer__social-link:focus {
    outline: none;
}

.footer__social-link:focus-visible {
    outline: 1px solid rgba(212, 175, 55, 0.4);
    outline-offset: 3px;
}

.footer__copy {
    margin: 0;
    font-family: var(--font-en);
    font-size: 0.64rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: rgba(122, 110, 98, 0.72);
}

/* ============================================
   響應式設計
   ============================================ */
@media (max-width: 900px) {
    .rewards-section__shelf {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .archive-section {
        min-height: auto;
        padding: clamp(3.5rem, 12vh, 5rem) clamp(1rem, 4vw, 1.5rem);
    }

    .archive-section__grid {
        grid-template-columns: 1fr;
        gap: clamp(2.5rem, 8vw, 3.5rem);
    }

    .archive-section__content {
        padding-right: 0;
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .chapter-header__chapter,
    .chapter-header__title,
    .chapter-header__subtitle,
    .archive-section__chapter,
    .archive-section__title,
    .archive-section__subtitle {
        text-indent: 0;
    }

    .archive-panel-wrap {
        width: min(100%, 294px);
        margin-inline: auto;
    }

    .archive-meta-card {
        display: none;
    }

    .archive-reveal--panel {
        transform: translateY(24px);
    }

    .archive-reveal--panel.reveal--visible {
        transform: translateY(0);
    }

    .nav__toggle {
        display: inline-flex;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .nav:not(.nav--scrolled):not(.nav--open) .nav__toggle {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .nav--scrolled .nav__toggle,
    .nav--open .nav__toggle {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav__menu {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
        border-radius: 10px;
        background: rgba(10, 6, 8, 0.92);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border: 1px solid rgba(212, 175, 55, 0.15);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    }

    .nav--open .nav__menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav__links {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .nav__link {
        display: block;
        padding: 0.75rem 0.5rem;
    }

    .nav__cta {
        text-align: center;
    }

    .nav--open .nav__toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .nav--open .nav__toggle span:nth-child(2) {
        opacity: 0;
    }

    .nav--open .nav__toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .lily--left,
    .lily--right {
        width: 60px;
        height: 160px;
        opacity: 0.35;
    }

    .lily--left { left: -10px; }
    .lily--right { right: -10px; }

    .books {
        display: none;
    }

    .magic-circle {
        width: 300px;
        height: 300px;
        opacity: 0.25;
    }

    .hero {
        padding: 80px 20px 40px;
    }

    .hero__canvas {
        --hero-book-width: clamp(240px, 72vw, 340px);
        --hero-panel-width: min(520px, 90vw);
        padding-inline: 0;
    }

    .hero__header {
        margin-top: 20px;
    }

    .hero__title {
        gap: 0;
    }

    .hero__title-year {
        margin-bottom: 12px;
        letter-spacing: 0.54em;
        text-indent: 0.54em;
    }

    .hero__title-line--brand {
        font-size: clamp(1.55rem, 6.5vw, 2.15rem);
        letter-spacing: 0.08em;
        margin-bottom: 5px;
    }

    .hero__title-line--sub {
        font-size: calc(clamp(1.55rem, 6.5vw, 2.15rem) * 0.7);
        letter-spacing: 0.16em;
        text-indent: 0.16em;
    }

    .hero__title-brand {
        letter-spacing: 0.1em;
    }

    .hero__title-en {
        margin-top: 24px;
        letter-spacing: 0.48em;
        text-indent: 0.48em;
        font-size: clamp(0.68rem, 1.6vh, 0.82rem);
    }

    .hero__tagline {
        margin-top: 12px;
        font-size: 0.72rem;
        max-width: 28ch;
    }

    .hero__showcase {
        margin-top: 12px;
        margin-bottom: 0;
    }

    .hero__focal {
        margin-bottom: -60px;
        transform: translateY(-60px);
    }

    .hero__actions {
        margin-top: 0;
    }

    .hero__circle--primary {
        width: var(--hero-circle-size);
        height: var(--hero-circle-size);
    }

    .hero__circle--outer {
        width: calc(var(--hero-circle-size) * 1.04);
        height: calc(var(--hero-circle-size) * 1.04);
    }

    .hero__lily {
        opacity: 0.12;
        width: 36px;
    }

    .hero__fund {
        width: min(420px, 92vw);
        min-height: 160px;
        padding: 24px 0 20px;
    }

    .hero__fund-row {
        margin-bottom: 20px;
        font-size: clamp(0.92rem, 2vh, 1.05rem);
    }

    .hero__fund-track {
        padding-inline: 20px;
    }

    .hero__fund-meta {
        margin-top: 18px;
        padding-inline: 20px;
        font-size: 0.72rem;
    }

    .hero__btn {
        margin-top: 24px;
        width: min(220px, 72vw);
        height: 50px;
        letter-spacing: 0.22em;
        text-indent: 0.22em;
    }

    .scroll-hint--flow {
        margin-top: 20px;
    }

    .progress {
        padding: 1rem;
    }

    .progress__value {
        font-size: 0.95rem;
    }

    .progress__footer {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .btn-support {
        width: 100%;
        padding: 0.95rem 1.5rem;
        font-size: 0.88rem;
        letter-spacing: 0.18em;
    }

    .rewards-section {
        padding: 3rem 1rem;
    }

    .rewards-section__shelf {
        grid-template-columns: 1fr;
    }

    .rewards-detail__inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "cover"
            "info"
            "content"
            "cta";
        gap: 1.35rem;
        padding: clamp(1.75rem, 5vw, 2.25rem) clamp(1.25rem, 4vw, 1.75rem);
    }

    .rewards-detail__aside {
        display: contents;
    }

    .rewards-detail__cover-wrap {
        grid-area: cover;
        margin-bottom: 0;
    }

    .rewards-detail__info {
        grid-area: info;
        padding-bottom: 1.15rem;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    }

    .rewards-detail__content {
        grid-area: content;
    }

    .rewards-detail__cta {
        grid-area: cta;
        margin-top: 0.25rem;
        align-self: stretch;
        text-align: center;
    }

    .rules-section__shelf {
        grid-template-columns: 1fr;
    }

    .rules-scroll__toggle {
        gap: 0.65rem;
    }

    .rules-scroll__code {
        font-size: 0.58rem;
        letter-spacing: 0.18em;
    }

    .rules-scroll__answer {
        padding-left: clamp(1rem, 2.5vw, 1.35rem);
    }

    .contract-section__workspace {
        grid-template-columns: 1fr;
    }

    .contract-modal__actions {
        grid-template-columns: 1fr;
    }

    .contract-modal__review div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .contract-success__summary-row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .archive-search-result__row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .archive-search-stack,
    .contract-success {
        padding-inline: clamp(0.85rem, 4vw, 1.15rem);
    }

    .sealed-summary {
        max-width: 100%;
    }

    .sealed-summary__stats {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .sealed-goals {
        max-width: 100%;
        padding: 0;
    }

    .sealed-goals__spine {
        display: none;
    }

    .sealed-goal {
        grid-template-columns: auto 1fr;
        gap: 0.85rem;
    }

    .sealed-goal--left .sealed-goal__scroll,
    .sealed-goal--right .sealed-goal__scroll {
        grid-column: 2;
        grid-row: 1;
        justify-self: stretch;
        max-width: none;
    }

    .sealed-goal--left .sealed-goal__node,
    .sealed-goal--right .sealed-goal__node {
        grid-column: 1;
        grid-row: 1;
    }

    .sealed-goal__scroll {
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .countdown {
        gap: 0.65rem;
        padding: 1.25rem 1rem;
    }

    .countdown__unit {
        min-width: calc(50% - 1.25rem);
        flex: 1 1 calc(50% - 1.25rem);
    }

    .countdown__sep {
        display: none;
    }

    .story-section__page {
        padding: 1.75rem 1.25rem;
    }

    .story-section__lily {
        opacity: 0.3;
        width: 32px;
        height: 76px;
    }

    .story-section__title {
        letter-spacing: 0.12em;
    }

    .story-section__subtitle {
        letter-spacing: 0.18em;
    }

    .story-section__frame {
        inset: 8px;
    }
}

@media (max-width: 380px) {
    .hero__title-line--brand {
        font-size: clamp(1.35rem, 6vw, 1.75rem);
        letter-spacing: 0.06em;
    }

    .hero__title-line--sub {
        font-size: calc(clamp(1.35rem, 6vw, 1.75rem) * 0.7);
        letter-spacing: 0.12em;
        text-indent: 0.12em;
    }

    .hero__title-brand {
        letter-spacing: 0.08em;
    }

    .hero__title-en {
        letter-spacing: 0.32em;
        text-indent: 0.32em;
    }

    .nav__name {
        font-size: 0.72rem;
        letter-spacing: 0.12em;
    }

    .countdown__unit {
        min-width: 100%;
    }

    .progress__stats {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .progress__stat--right {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-reveal {
        opacity: 1;
        transform: none;
        filter: none;
        animation: none !important;
    }

    .archive-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .archive-panel {
        animation: none !important;
    }

    .archive-panel-wrap:hover .archive-panel {
        transform: none;
        box-shadow:
            inset 0 0 0 1px rgba(212, 175, 55, 0.06),
            inset 0 1px 0 rgba(212, 175, 55, 0.05),
            0 20px 48px rgba(0, 0, 0, 0.35);
    }

    .archive-panel-wrap:hover .archive-meta-card {
        opacity: 1;
        transform: translateY(-50%);
    }

    .archive-panel__hint {
        opacity: 0;
    }

    .reward-book__cover-frame {
        transition: border-color 0.4s ease, box-shadow 0.4s ease;
    }

    .reward-book__cover-frame:hover .reward-cover-wrap {
        transform: none;
        filter: brightness(1.04);
    }

    .reward-book__cover-frame:hover {
        border-color: rgba(212, 175, 55, 0.32);
        box-shadow:
            inset 0 1px 0 rgba(212, 175, 55, 0.08),
            0 6px 18px rgba(0, 0, 0, 0.42),
            0 0 12px rgba(212, 175, 55, 0.08);
    }

    .reward-cover-shine::after {
        animation: none !important;
    }

    .reward-book[data-tier="grand-librarian"] .reward-book__cover-frame:hover .reward-cover-wrap::before,
    .reward-book[data-tier="warden"] .reward-book__cover-frame:hover .reward-cover-wrap::before {
        content: none;
    }

    .sealed-goal--active .sealed-goal__seal {
        animation: none;
    }

    .sealed-goal--active .sealed-goal__connector-glow {
        animation: none;
        opacity: 0;
    }

    .sealed-goal:hover .sealed-goal__scroll {
        transform: none;
    }

    .rewards-detail {
        transition: none;
    }

    .rewards-detail.is-visible {
        transform: none;
    }

    .rewards-detail__item:hover::after {
        width: 0;
    }

    .lib-btn-interact:hover,
    .lib-btn-interact:focus-visible,
    .archive-panel-wrap:hover .archive-panel__hint.lib-btn-interact {
        transform: none;
        box-shadow: none;
    }

    .lib-hover:hover {
        transform: none;
        box-shadow: var(--lib-glass-inset), var(--lib-glass-shadow);
        border-color: var(--lib-glass-border-soft);
    }

    .rules-scroll__panel,
    .rules-scroll__answer,
    .rules-scroll__arrow,
    .rules-scroll {
        transition: none;
    }

    .rules-scroll.is-open .rules-scroll__answer {
        opacity: 1;
    }

    .hero__library,
    .hero__fog,
    .hero__lily,
    .hero__circles,
    .hero__book-glow,
    .hero__book-particles {
        opacity: 1 !important;
    }

    .hero__circle--primary svg,
    .hero__circle--outer svg,
    .hero__book-float,
    .hero__book-breathe,
    .hero__book-glow {
        animation: none !important;
    }

    .hero__book-particles {
        opacity: 0.2 !important;
    }

    .hero__title-en,
    .countdown__sep,
    .btn-support,
    .btn-support::before,
    .progress__glow,
    .progress__supporters-icon,
    .btn-support__glow,
    .btn-support__icon,
    .magic-circle,
    .lily--left,
    .lily--right {
        animation: none !important;
    }

    #particles,
    .mouse-glow {
        display: none;
    }

    .site-loader,
    .site-loader__fill,
    .site-loader__opened {
        transition: none;
    }

    html.has-custom-cursor,
    html.has-custom-cursor * {
        cursor: auto !important;
    }

    .contract-seal-report.is-open {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .archive-search-result.is-visible {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
.admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1rem 0 1.25rem;
}

.admin-filter {
    padding: 0.55rem 1rem;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(255,255,255,0.02);
    color: rgba(235,220,180,0.85);
    cursor: pointer;
    transition: .2s;
    font-size: .88rem;
    border-radius: 999px;
}

.admin-filter:hover {
    border-color: rgba(212,175,55,.75);
    color: #fff;
}

.admin-filter.is-active {
    background: linear-gradient(135deg, #d4af37, #f3dd8b);
    color: #22170d;
    font-weight: 600;
    border-color: #d4af37;
}
.admin-tracking {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.admin-tracking .admin-field__control {
    flex: 1;
}

.admin-tracking__copy {
    flex-shrink: 0;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(215, 180, 80, 0.45);
    background: rgba(215, 180, 80, 0.12);
    color: var(--gold);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-tracking__copy:hover {
    background: rgba(215, 180, 80, 0.22);
}
/* =========================================
   Chapter 03｜封印目標時間軸優化
   直接貼在 style.css 最底部
========================================= */

.sealed-goals {
    position: relative;
    width: min(100%, 720px);
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: left;
  }
  
  .sealed-goals__spine {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background:
      linear-gradient(
        180deg,
        rgba(212, 175, 55, 0.08) 0%,
        rgba(212, 175, 55, 0.58) 12%,
        rgba(212, 175, 55, 0.35) 88%,
        rgba(212, 175, 55, 0.08) 100%
      );
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.12);
    pointer-events: none;
    z-index: 0;
  }
  
  .sealed-goal {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
  }
  
  .sealed-goal + .sealed-goal {
    margin-top: 22px;
  }
  
  .sealed-goal__node {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
  }
  
  .sealed-goal__seal {
    position: relative;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.38);
    background:
      radial-gradient(
        circle at 50% 38%,
        rgba(120, 43, 73, 0.4) 0%,
        rgba(14, 7, 11, 0.96) 68%
      ),
      linear-gradient(
        165deg,
        rgba(24, 10, 18, 0.96) 0%,
        rgba(5, 3, 6, 1) 100%
      );
    box-shadow:
      inset 0 0 0 5px rgba(212, 175, 55, 0.03),
      inset 0 0 0 10px rgba(212, 175, 55, 0.05),
      0 0 18px rgba(0, 0, 0, 0.38);
  }
  
  .sealed-goal__seal::before,
  .sealed-goal__seal::after {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.26);
  }
  
  .sealed-goal__seal::after {
    inset: 15px;
    background: rgba(212, 175, 55, 0.72);
    border: 0;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.38);
  }
  
  .sealed-goal__scroll {
    position: relative;
    width: 100%;
    max-width: 270px;
    min-height: 150px;
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
      linear-gradient(
        135deg,
        rgba(18, 8, 14, 0.84) 0%,
        rgba(8, 5, 10, 0.94) 100%
      );
    border: 1px solid rgba(212, 175, 55, 0.22);
    box-shadow:
      inset 3px 0 0 rgba(212, 175, 55, 0.35),
      0 14px 34px rgba(0, 0, 0, 0.26);
    transition:
      transform 0.28s ease,
      border-color 0.28s ease,
      box-shadow 0.28s ease;
  }
  
  .sealed-goal__scroll::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 14px;
    height: 1px;
    background: rgba(212, 175, 55, 0.38);
  }
  
  .sealed-goal--left .sealed-goal__scroll {
    grid-column: 1;
    justify-self: end;
  }
  
  .sealed-goal--left .sealed-goal__scroll::before {
    right: -14px;
  }
  
  .sealed-goal--right .sealed-goal__scroll {
    grid-column: 3;
    justify-self: start;
  }
  
  .sealed-goal--right .sealed-goal__scroll::before {
    left: -14px;
  }
  
  .sealed-goal:hover .sealed-goal__scroll {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow:
      inset 3px 0 0 rgba(212, 175, 55, 0.5),
      0 18px 38px rgba(0, 0, 0, 0.34),
      0 0 18px rgba(212, 175, 55, 0.06);
  }
  
  /* 已解除封印 */
  .sealed-goal--unlocked .sealed-goal__seal {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow:
      inset 0 0 0 5px rgba(212, 175, 55, 0.06),
      inset 0 0 0 10px rgba(212, 175, 55, 0.08),
      0 0 20px rgba(212, 175, 55, 0.14);
  }
  
  /* 目前解鎖中的封印 */
  .sealed-goal--active .sealed-goal__seal {
    animation: sealedPulse 2.4s ease-in-out infinite;
  }
  
  .sealed-goal--active .sealed-goal__scroll {
    border-color: rgba(212, 175, 55, 0.38);
  }
  
  /* 尚未解鎖 */
  .sealed-goal--locked {
    opacity: 0.52;
  }
  
  @keyframes sealedPulse {
    0%,
    100% {
      box-shadow:
        inset 0 0 0 5px rgba(212, 175, 55, 0.04),
        inset 0 0 0 10px rgba(212, 175, 55, 0.06),
        0 0 14px rgba(212, 175, 55, 0.08);
    }
  
    50% {
      box-shadow:
        inset 0 0 0 5px rgba(212, 175, 55, 0.08),
        inset 0 0 0 10px rgba(212, 175, 55, 0.1),
        0 0 26px rgba(212, 175, 55, 0.25);
    }
  }
  
  /* 手機版改成單欄，避免左右太擠 */
  @media (max-width: 700px) {
    .sealed-goals {
      width: 100%;
      max-width: 520px;
      padding-left: 3.4rem;
      padding-right: 1rem;
    }
  
    .sealed-goals__spine {
      left: 1.55rem;
      transform: none;
    }
  
    .sealed-goal {
      grid-template-columns: 44px minmax(0, 1fr);
      column-gap: 12px;
    }
  
    .sealed-goal + .sealed-goal {
      margin-top: 18px;
    }
  
    .sealed-goal__node {
      grid-column: 1;
      grid-row: 1;
    }
  
    .sealed-goal--left .sealed-goal__scroll,
    .sealed-goal--right .sealed-goal__scroll {
      grid-column: 2;
      grid-row: 1;
      justify-self: stretch;
      max-width: none;
    }
  
    .sealed-goal--left .sealed-goal__scroll::before,
    .sealed-goal--right .sealed-goal__scroll::before {
      left: -12px;
      right: auto;
      width: 12px;
    }
  }
  /* =========================================
   Chapter 03｜封印圓環狀態動畫
========================================= */

/* 共用圓環 */
.sealed-goal__seal {
  overflow: visible;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    filter 0.3s ease,
    transform 0.3s ease;
}

/* 外圈 */
.sealed-goal__seal::before {
  animation: sealOrbit 14s linear infinite;
  transform-origin: center;
}

/* 核心 */
.sealed-goal__seal::after {
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

/* 已解除封印：穩定金光 */
.sealed-goal--unlocked .sealed-goal__seal {
  border-color: rgba(232, 196, 84, 0.72);
  filter: brightness(1.08);
  box-shadow:
    inset 0 0 0 5px rgba(212, 175, 55, 0.07),
    inset 0 0 0 10px rgba(212, 175, 55, 0.09),
    0 0 18px rgba(212, 175, 55, 0.2);
}

.sealed-goal--unlocked .sealed-goal__seal::after {
  background: rgba(235, 198, 85, 0.9);
  box-shadow:
    0 0 8px rgba(235, 198, 85, 0.7),
    0 0 18px rgba(212, 175, 55, 0.35);
}

/* 解鎖中：呼吸＋慢速旋轉 */
.sealed-goal--active .sealed-goal__seal {
  animation: sealBreathing 2.6s ease-in-out infinite;
}

.sealed-goal--active .sealed-goal__seal::before {
  animation:
    sealOrbit 8s linear infinite,
    sealRingBreathing 2.6s ease-in-out infinite;
}

.sealed-goal--active .sealed-goal__seal::after {
  animation: sealCoreBreathing 1.8s ease-in-out infinite;
}

/* 尚未解鎖：暗紅、低亮度 */
.sealed-goal--locked .sealed-goal__seal {
  border-color: rgba(116, 46, 67, 0.38);
  filter: saturate(0.75) brightness(0.72);
  box-shadow:
    inset 0 0 0 5px rgba(116, 46, 67, 0.04),
    inset 0 0 0 10px rgba(116, 46, 67, 0.05),
    0 0 10px rgba(70, 18, 37, 0.12);
}

.sealed-goal--locked .sealed-goal__seal::before {
  border-color: rgba(116, 46, 67, 0.22);
  animation-duration: 22s;
}

.sealed-goal--locked .sealed-goal__seal::after {
  background: rgba(116, 46, 67, 0.34);
  box-shadow: none;
}

/* 動畫 */
@keyframes sealOrbit {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes sealBreathing {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      inset 0 0 0 5px rgba(212, 175, 55, 0.05),
      inset 0 0 0 10px rgba(212, 175, 55, 0.07),
      0 0 14px rgba(212, 175, 55, 0.12);
  }

  50% {
    transform: scale(1.055);
    box-shadow:
      inset 0 0 0 5px rgba(212, 175, 55, 0.1),
      inset 0 0 0 10px rgba(212, 175, 55, 0.12),
      0 0 28px rgba(212, 175, 55, 0.32);
  }
}

@keyframes sealRingBreathing {
  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}

@keyframes sealCoreBreathing {
  0%,
  100% {
    transform: scale(0.9);
    box-shadow:
      0 0 7px rgba(235, 198, 85, 0.52),
      0 0 12px rgba(212, 175, 55, 0.18);
  }

  50% {
    transform: scale(1.18);
    box-shadow:
      0 0 11px rgba(235, 198, 85, 0.9),
      0 0 24px rgba(212, 175, 55, 0.48);
  }
}

/* 尊重使用者的減少動態設定 */
@media (prefers-reduced-motion: reduce) {
  .sealed-goal__seal,
  .sealed-goal__seal::before,
  .sealed-goal__seal::after {
    animation: none !important;
  }
}
/* =========================================
   Chapter 03｜卡片與封印同步 Hover
========================================= */

.sealed-goal__scroll {
    transition:
      transform 0.28s ease,
      border-color 0.28s ease,
      box-shadow 0.28s ease,
      filter 0.28s ease;
  }
  
  .sealed-goal:hover .sealed-goal__scroll {
    transform: translateY(-3px);
    border-color: rgba(232, 196, 84, 0.5);
    filter: brightness(1.06);
    box-shadow:
      inset 3px 0 0 rgba(232, 196, 84, 0.55),
      0 18px 38px rgba(0, 0, 0, 0.36),
      0 0 22px rgba(212, 175, 55, 0.1);
  }
  
  .sealed-goal:hover .sealed-goal__seal {
    transform: scale(1.08);
    border-color: rgba(244, 211, 106, 0.86);
    filter: brightness(1.18);
    box-shadow:
      inset 0 0 0 5px rgba(212, 175, 55, 0.1),
      inset 0 0 0 10px rgba(212, 175, 55, 0.12),
      0 0 30px rgba(212, 175, 55, 0.38);
  }
  
  .sealed-goal:hover .sealed-goal__seal::after {
    transform: scale(1.22);
    background: rgba(248, 216, 112, 0.96);
    box-shadow:
      0 0 12px rgba(248, 216, 112, 0.9),
      0 0 26px rgba(212, 175, 55, 0.5);
  }
  
  /* 未解鎖項目 Hover 不要亮得跟已解鎖一樣 */
  .sealed-goal--locked:hover {
    opacity: 0.72;
  }
  
  .sealed-goal--locked:hover .sealed-goal__seal {
    border-color: rgba(150, 66, 91, 0.58);
    filter: saturate(0.9) brightness(0.92);
    box-shadow:
      inset 0 0 0 5px rgba(116, 46, 67, 0.06),
      inset 0 0 0 10px rgba(116, 46, 67, 0.08),
      0 0 20px rgba(116, 46, 67, 0.22);
  }
  /* 修正：Hover 時停止原本呼吸動畫，讓放大與發光生效 */

.sealed-goal:hover .sealed-goal__seal {
    animation-play-state: paused;
    transform: scale(1.12) !important;
    border-color: rgba(244, 211, 106, 0.9) !important;
    filter: brightness(1.22) !important;
    box-shadow:
      inset 0 0 0 5px rgba(212, 175, 55, 0.12),
      inset 0 0 0 10px rgba(212, 175, 55, 0.14),
      0 0 32px rgba(212, 175, 55, 0.5) !important;
  }
  
  .sealed-goal:hover .sealed-goal__seal::before,
  .sealed-goal:hover .sealed-goal__seal::after {
    animation-play-state: paused;
  }
  
  .sealed-goal:hover .sealed-goal__seal::after {
    transform: scale(1.3) !important;
    background: rgba(250, 218, 114, 1) !important;
    box-shadow:
      0 0 12px rgba(250, 218, 114, 0.95),
      0 0 28px rgba(212, 175, 55, 0.6) !important;
  }
  
  /* 未解鎖：Hover 時維持暗紅光 */
  .sealed-goal--locked:hover {
    opacity: 0.8;
  }
  
  .sealed-goal--locked:hover .sealed-goal__seal {
    transform: scale(1.1) !important;
    border-color: rgba(165, 66, 96, 0.72) !important;
    filter: saturate(1.1) brightness(1) !important;
    box-shadow:
      inset 0 0 0 5px rgba(135, 39, 70, 0.09),
      inset 0 0 0 10px rgba(135, 39, 70, 0.12),
      0 0 28px rgba(145, 42, 76, 0.38) !important;
  }
  
  .sealed-goal--locked:hover .sealed-goal__seal::after {
    background: rgba(170, 57, 91, 0.78) !important;
    box-shadow:
      0 0 10px rgba(170, 57, 91, 0.65),
      0 0 24px rgba(125, 30, 61, 0.4) !important;
  }
 /* ===== Goal Icon ===== */

.sealed-goal__icon{
    width:24px;
    height:24px;
    margin:10px 0 14px;
}

.sealed-goal__icon img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
    filter:drop-shadow(0 0 8px rgba(212,175,55,.25));
}
/* ===== 卡片圖片 ===== */

.sealed-goal__icon {
    position: absolute;

    right: 18px;
    top: 35%;               /* 往上 */

    transform: translateY(-50%);

    width: 110px;
    height: 110px;

    opacity: .80;           /* 更亮 */

    filter:
        drop-shadow(0 0 10px rgba(212,175,55,.35))
        brightness(1.15);

    pointer-events: none;
}

.sealed-goal__icon img{
    width:100%;
    height:100%;
    object-fit:contain;
}
.sealed-goal__code,
.sealed-goal__amount,
.sealed-goal__reward,
.sealed-goal__status {
    position: relative;
    z-index: 2;
}