/* Global Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #EDE7E1;
    font-family: 'Inter', sans-serif;
}

::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    background: #EDE7E1;
}

::-webkit-scrollbar-thumb {
    background: #A8BBC6;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: #21486A;
}

/* Sidebar Navigation */
.sidebar-nav {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 40;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-nav.hidden {
    transform: translateX(-100%);
}

.sidebar {
    width: 175px;
    background: #ECDAD2;
    border-right: 1px solid rgba(168, 187, 198, 0.35);
    padding: 26px 18px 22px;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.sidebar-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #0A223D;
    line-height: 1.2;
    margin-bottom: 4px;
    text-align: center;
}

.sidebar-divider {
    height: 1px;
    background: rgba(168, 187, 198, 0.5);
    margin: 13px 0 10px;
}

.sidebar-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    letter-spacing: 0.18em;
    color: #0A223D;
    text-transform: uppercase;
    margin-bottom: 13px;
    text-align: center;
}

.sidebar-nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    overflow-y: auto;
}

.sidebar-nav-links button {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #0A223D;
    font-weight: 400;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    padding: 3px 0 3px 4px;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: color 0.2s;
    line-height: 1.35;
}

.sidebar-nav-links button:hover {
    color: #0A223D;
    font-weight: 600;
}

.sidebar-nav-links button.active {
    color: #0A223D;
    font-weight: 600;
}

.nav-dot {
    font-size: 8px;
    flex-shrink: 0;
}

/* Content Pages Container */
.content-pages {
    padding-left: 175px;
}

/* 当导航栏隐藏时，移除padding-left */
.sidebar-nav.hidden ~ main .content-pages {
    padding-left: 0;
}

/* Page 1: Cover */
.page-cover {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: url('images/1.png') center/cover no-repeat, #EDE7E1;
}

#cover-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}



.cover-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
}

.cover-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.28em;
    color: #21486A;
    opacity: 0.7;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.cover-title {
    font-family: 'Darumadrop One', sans-serif;
    font-size: clamp(52px, 100vw, 200px);
    color: #0D3057;
    margin: 0 0 12px 0;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 24px rgba(13, 48, 87, 0.12);
}

.cover-subtitle {
    font-family: 'Inter', sans-serif;
    font-style: italic;
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 700;
    color: #CA9B9A;
    margin-bottom: 6px;
    letter-spacing: 0.04em;
    line-height: 1.05;
}

.cover-author {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #0A223D;
    opacity: 0.85;
    letter-spacing: 0.2em;
    margin-bottom: 36px;
}

.cover-button {
    pointer-events: auto;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.22em;
    color: #21486A;
    background: transparent;
    border: 1.5px solid #21486A;
    padding: 10px 28px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 3px 3px 0 #21486A;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.cover-button:hover {
    background: #21486A;
    color: #F7F4EE;
    box-shadow: 1px 1px 0 #21486A;
}

.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: breathe 2.2s ease-in-out infinite;
}

.scroll-hint span {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    letter-spacing: 0.25em;
    color: #21486A;
}

@keyframes breathe {
    0%, 100% {
        opacity: 0.35;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) translateY(5px);
    }
}

/* Page 2: Introduction */
.page-intro {
    min-height: 100vh;
    background: url('images/2.png') center/cover no-repeat, #EDE7E1;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 2px solid #dce8ef;
}

.intro-container {
    max-width: 800px;
    margin-left: 40px;
    margin-right: 80px;
}

.intro-title {
    font-family: 'Hanalei Fill', cursive;
    font-size: clamp(28px, 4vw, 80px);
    text-transform: uppercase;
    color: #9A5A6B;
    margin: 0 0 14px 0;
    letter-spacing: 0.04em;
    line-height: 1.15;
}

.intro-subtitle {
    font-family: 'Hanken Grotesk', sans-serif;
    font-style: italic;
    font-size: 28px;
    color: #000000;
    margin-bottom: 18px;
    line-height: 1.6;
}

.intro-subheader {
    font-family: 'Hanalei Fill', cursive;
    font-size: 22px;
    color: #9A5A6B;
    letter-spacing: 0.08em;
    margin-bottom: 28px;
    text-transform: uppercase;
}

.intro-paragraph {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    line-height: 1.82;
    color: #1F1F1F;
    margin-bottom: 22px;
}

.highlight-text {
    color: #cc2222;
    font-weight: 700;
    display: inline-block;
    animation: pulse-text 0.5s ease-in-out;
}

.intro-quote {
    border-left: 4px solid #21486A;
    padding-left: 22px;
    margin-bottom: 8px;
}

.quote-text {
    font-family: 'Inter', sans-serif;
    font-style: italic;
    font-size: 18px;
    color: #21486A;
    line-height: 1.6;
    margin: 0;
}

/* Page 3: Chapter 1 */
.page-chapter1 {
    min-height: 100vh;
    background: #EDE7E1;
    display: flex;
    gap: 0;
    border-top: 2px solid #dce8ef;
}

.chapter1-left {
    width: 24%;
    border-right: 1.5px solid #dce8ef;
    padding: 60px 30px 60px 28px;
    background: rgba(220, 232, 239, 0.12);
}

.pattern-row {
    width: 148px;
    margin-left: 30%;
    margin-bottom: 28px;
}

.pattern-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}

.pattern-label svg {
    flex-shrink: 0;
}

.pattern-label span {
    font-family: 'Inter', sans-serif;
    font-size: 9.5px;
    letter-spacing: 0.2em;
    color: #21486A;
    text-transform: uppercase;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    margin-bottom: 8px;
}

.carousel-wrapper {
    position: relative;
    width: 148px;
    height: 148px;
    overflow: hidden;
    border: 1.5px solid #dce8ef;
}

.carousel-wrapper img {
    position: absolute;
    width: 148px;
    height: 148px;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-wrapper img.active {
    opacity: 1;
}

.carousel-image-name {
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    color: #21486A;
    letter-spacing: 0.1em;
    text-align: center;
    margin-top: 4px;
    width: 148px;
    text-transform: none;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    width: 148px;
}

.carousel-btn {
    background: rgba(26, 58, 86, 0.1);
    border: 1px solid #dce8ef;
    color: #21486A;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(26, 58, 86, 0.2);
    border-color: #21486A;
}

.carousel-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #dce8ef;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: #21486A;
}

.chapter1-right {
    flex: 1;
    padding: 0 52px 60px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.chapter1-title {
    font-family: 'Hanalei Fill', sans-serif;
    font-size: clamp(28px, 3.8vw, 76px);
    color: #9A5A6B;
    margin: 0 0 12px 0;
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.chapter1-paragraph {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    line-height: 1.82;
    color: #1F1F1F;
    margin-bottom: 20px;
}

/* Page 4: Chapter 2 */
.page-chapter2 {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-image: url('images/4.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #1F1F1F;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chapter2-header {
    height: 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 40px;
    box-sizing: border-box;
}

.chapter2-body {
    height: 90%;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.chapter2-main-row {
    display: flex;
    width: 100%;
}

.chapter2-images-left {
    width: 10%;
    height: 20%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    box-sizing: border-box;
}

.chapter2-images-left img {
    width: 190%;
    max-width: 150px;
    height: auto;
    object-fit: contain;
}

.chapter2-text-top {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 40px;
    box-sizing: border-box;
}

.chapter2-text-top p {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    line-height: 1.82;
    color: #1F1F1F;
    margin-bottom: 20px;
}

.chapter2-images-right {
    width: 12%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    padding: 20px 56px 20px 20px;
    box-sizing: border-box;
}

.chapter2-images-right img {
    width: 100%;
    max-width: 150px;
    height: auto;
    object-fit: contain;
}

.chapter2-right-section {
    display: flex;
    width: 100%;
}

.chapter2-text-bottom {
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
}

.chapter2-text-bottom p {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    line-height: 1.82;
    color: #1F1F1F;
    margin: 0;
}

.chapter2-title {
    font-family: 'Hanalei Fill', sans-serif;
    font-size: clamp(22px, 3.2vw, 64px);
    color: #9A5A6B;
    line-height: 1.2;
    margin-bottom: 4px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Page 5: Chapter 3 */
.page-chapter3 {
    min-height: 100vh;
    background: #EDE7E1;
    padding: 0 0 80px 0;
    border-top: 2px solid #dce8ef;
}

.chapter3-header {
    padding: 28px 52px 22px 52px;
    margin-bottom: 0;
}

.chapter3-title {
    font-family: 'Hanalei Fill', serif;
    font-size: clamp(22px, 3.2vw, 38px);
    color: #9A5A6B;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.15;
}

.chapter3-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    padding: 0 0 0 0;
}

.chapter3-col1 {
    padding: 32px 28px 32px 52px;
    border-right: 1px solid #dce8ef;
}

.chapter3-col1 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #1F1F1F;
    margin-bottom: 14px;
}

.chapter3-col2 {
    padding: 32px 24px;
    border-right: 1px solid #dce8ef;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.stat-block {
    border-left: 3px solid #cc2222;
    padding-left: 16px;
}

.stat-block p {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    line-height: 1.6;
    color: #1F1F1F;
}

.chapter3-col3 {
    padding: 32px 52px 32px 28px;
}

.chapter3-col3 p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.82;
    color: #1F1F1F;
    margin-bottom: 16px;
    border-left: 3px solid #cc2222;
    padding-left: 16px;
}

.chapter3-footer {
    padding: 36px 52px;
    border-top: 1px solid #dce8ef;
}

.chapter3-footer p {
    font-family: 'Inter', sans-serif;
    font-style: italic;
    font-size: 20px;
    line-height: 1.85;
    color: #21486A;
}

.stat-number {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #cc2222;
    font-size: 1.15em;
    letter-spacing: 0.02em;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
    display: inline-block;
}

.stat-number:hover {
    transform: scale(1.08);
    text-shadow: 0 0 8px rgba(204, 34, 34, 0.3);
}

/* Page 7: Artwork */
.page-artwork {
    min-height: 100vh;
    background: #EDE7E1;
    border-top: 2px solid #dce8ef;
    display: flex;
    flex-direction: column;
}

.artwork-header {
    height: 10%;
    padding: 0 48px;
    display: flex;
    align-items: center;
}

.artwork-title {
    font-family: 'Hanalei Fill', sans-serif;
    font-size: clamp(22px, 3.2vw, 28px);
    color: #9A5A6B;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.artwork-body {
    flex: 1;
    padding: 20px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.artwork-top-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex: 1;
}

.artwork-video-container {
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.artwork-video {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.artwork-text-top {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.artwork-images-row {
    display: flex;
    flex-direction: row;
    gap: 32px;
    justify-content: center;
    align-items: center;
    padding: 16px 0;
}

.artwork-image {
    max-width: 45%;
    height: auto;
    object-fit: contain;
}

.artwork-text-bottom {
    display: flex;
    flex-direction: column;
}

.artwork-paragraph {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.82;
    color: #1F1F1F;
    margin: 0;
}

/* Page 8: Conclusion */
.page-conclusion {
    min-height: 100vh;
    background: url('images/8.png') center/cover no-repeat, #EDE7E1;
    display: flex;
    border-top: 2px solid #dce8ef;
}

.conclusion-left {
    flex: 1;
    padding: 64px 48px 64px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.conclusion-title {
    font-family: 'Hanalei Fill', cursive;
    font-size: clamp(22px, 3vw, 56px);
    text-transform: uppercase;
    color: #9A5A6B;
    margin: 0 0 14px 0;
    letter-spacing: 0.04em;
    line-height: 1.15;
}

.conclusion-paragraph {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.72;
    color: #1F1F1F;
    margin-bottom: 18px;
}

.conclusion-paragraph:nth-child(2) {
    margin-right: 20%;
}

.conclusion-paragraph:nth-child(3) {
    margin-right: 30%;
}

.conclusion-paragraph:nth-child(4) {
    margin-right: 50%;
}

/* Page 9: References */
.page-references {
    min-height: 100vh;
    background: url('images/9.png') center/cover no-repeat, #EDE7E1;
    position: relative;
    overflow: hidden;
    padding: 72px 0 72px 0;
    display: flex;
    flex-direction: column;
}

.references-container {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 0;
    flex: 1;
    padding: 0 52px;
}

.references-left {
    flex: 1;
    padding-right: 52px;
}

.references-title {
    font-family: 'Hanalei Fill', sans-serif;
    font-size: clamp(22px, 3.2vw, 64px);
    color: #9A5A6B;
    margin: 0 0 12px 0;
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.references-list {
    display: flex;
    flex-direction: column;
    margin-right: 35%;
}

.reference-item {
    margin-bottom: 18px;
}

.reference-item:last-child {
    margin-bottom: 0;
}

.reference-item {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.82;
    color: #1F1F1F;
    padding-left: 16px;
    border-left: 1px solid rgba(220, 232, 239, 0.2);
}

.reference-item p {
    margin: 0 0 24px 0;
    text-align: justify;
    text-justify: left;
}

.reference-item:last-child p {
    margin-bottom: 0;
}

.reference-item.no-border {
    border-left: none;
    padding-left: 0;
}

.reference-item.no-bottom-gap {
    margin-bottom: 0;
}

.reference-item.no-bottom-gap p {
    margin-bottom: 0;
}

.return-top-btn {
    margin-top: 52px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.22em;
    color: #21486A;
    background: #dce8ef;
    border: none;
    padding: 11px 24px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 3px 3px 0 rgba(220, 232, 239, 0.35);
    transition: background 0.18s, box-shadow 0.18s;
    display: block;
}

.return-top-btn:hover {
    background: #F7F4EE;
    box-shadow: 1px 1px 0 rgba(220, 232, 239, 0.35);
}

.page9-primary-button,
.page9-secondary-button {
    pointer-events: auto;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.page9-primary-button {
    margin-top: 40px;
    color: #21486A;
    background: transparent;
    border: 1.5px solid #21486A;
    padding: 10px 28px;
    box-shadow: 3px 3px 0 #21486A;
}

.page9-primary-button:hover {
    background: #21486A;
    color: #F7F4EE;
    box-shadow: 1px 1px 0 #21486A;
}

.page9-primary-button:focus-visible {
    background: #21486A;
    color: #F7F4EE;
    box-shadow: 0 0 0 2px rgba(33, 72, 106, 0.2);
    outline: none;
}

.page9-primary-button:active {
    background: #21486A;
    color: #F7F4EE;
    box-shadow: 1px 1px 0 #21486A;
}

.references-right {
    width: 38%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
}

.return-top-btn-2 {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: rgba(220, 232, 239, 0.7);
    background: #000000;
    border: 1px solid rgba(220, 232, 239, 0.3);
    padding: 10px 22px;
    cursor: pointer;
    text-transform: uppercase;
    transition: color 0.18s, border-color 0.18s;
}

.return-top-btn-2:hover {
    color: #dce8ef;
    border-color: rgba(220, 232, 239, 0.7);
}

.references-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: 48px;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    color: rgba(220, 232, 239, 0.28);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(33, 72, 106, 0.55);
    z-index: 200;
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #F7F4EE;
    max-width: 560px;
    width: 90vw;
    padding: 32px 36px 28px;
    box-shadow: 0 24px 80px rgba(33, 72, 106, 0.22);
}

.modal-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    color: #21486A;
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: 0.06em;
}

.modal-content img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 18px;
    filter: sepia(0.2) contrast(1.05);
}

.modal-content p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.78;
    color: #1F1F1F;
}

.modal-close {
    margin-top: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: #21486A;
    background: none;
    border: 1px solid #21486A;
    padding: 7px 18px;
    cursor: pointer;
    text-transform: uppercase;
}

/* Animation Classes */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.printing-text {
    opacity: 1;
    transform: none;
}

.printing-text .printing-word {
    display: inline-block;
    margin-right: 0.28em;
    opacity: 0;
    filter: blur(4px);
    transition: opacity 0.1s ease, filter 0.1s ease;
    transition-delay: var(--word-delay, 0s);
}

.printing-text.visible .printing-word {
    opacity: 1;
    filter: blur(0);
}

@keyframes pulse-text {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Responsive */
@media (max-width: 768px) {
    .content-pages {
        padding-left: 0;
    }

    .sidebar-nav {
        display: none;
    }

    .intro-container,
    .page-chapter1,
    .chapter3-grid,
    .page-conclusion {
        flex-direction: column;
    }

    .chapter1-left {
        width: 100%;
        padding: 40px 24px;
    }

    .pattern-row {
        width: 148px;
        margin-left: 0;
    }
}
