:root {
    /* 莫奈風格漸層色票 */
    --color-misty-blue: #a3b9c9;
    --color-soft-lavender: #d6cadd;
    --color-pale-gold: #f3e5ab;
    --color-deep-ocean: #2c4a52;
    --color-text-main: #3d3b3a;
    --color-quote-bg: rgba(243, 229, 171, 0.2);
    --color-paper: rgba(255, 253, 249, 0.7); 
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: 'Noto Serif TC', serif;
    color: var(--color-text-main);
    overflow-x: hidden;
    /* 印象派的柔和漸層背景 */
    background: linear-gradient(135deg, var(--color-misty-blue) 0%, var(--color-soft-lavender) 40%, var(--color-pale-gold) 80%, #8caeb4 100%);
    background-attachment: fixed;
}

/* 漂浮的霧氣與微光感 */
.dream-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.4) 100%);
    mix-blend-mode: overlay;
    z-index: 1;
}

/* 故事書的視覺容器 */
.storybook-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 60px auto;
    padding: 70px 90px;
    background: var(--color-paper);
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(44, 74, 82, 0.15),
                inset 0 0 30px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

/* 標題設計 */
.title-section {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.title-section::after {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background: var(--color-deep-ocean);
    margin: 35px auto 0;
    opacity: 0.3;
}

.main-title {
    font-size: 2.8rem;
    font-weight: 600;
    letter-spacing: 8px;
    color: var(--color-deep-ocean);
    margin-bottom: 10px;
    text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.9);
}

.en-title {
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
    font-weight: 300;
    letter-spacing: 3px;
}

.subtitle {
    font-size: 1.1rem;
    color: #65747c;
    letter-spacing: 4px;
    font-weight: 300;
}

/* 內文排版 */
.story-content {
    line-height: 2.3;
    font-size: 1.15rem;
    text-align: justify;
    letter-spacing: 1.5px;
}

.chapter {
    margin-bottom: 50px;
    animation: fadeIn 2s ease-in-out;
}

.chapter-title {
    font-size: 1.5rem;
    color: var(--color-deep-ocean);
    margin-bottom: 25px;
    font-weight: 400;
    text-align: center;
    letter-spacing: 2px;
}

.story-content p {
    margin-bottom: 25px;
    text-indent: 2em; 
}

/* 爺爺的引言區塊設計 */
.quote-block {
    margin: 30px 0 45px 0;
    padding: 30px 40px;
    background: var(--color-quote-bg);
    border-left: 3px solid var(--color-pale-gold);
    border-radius: 4px;
}

.quote-text {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--color-deep-ocean);
    text-indent: 0 !important;
    text-align: center;
    margin-bottom: 15px !important;
}

.quote-author {
    text-align: right;
    font-size: 1rem;
    color: #7b8b94;
    text-indent: 0 !important;
    margin-bottom: 0 !important;
}

/* 十一個空間的列表設計 */
.space-list {
    list-style: none;
    padding-left: 0;
    margin: 30px auto;
    width: 80%;
}

.space-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    color: #51636a;
}

.space-list li::before {
    content: '✧'; /* 奇幻風格的列表符號 */
    position: absolute;
    left: 0;
    color: var(--color-pale-gold);
    font-size: 1.2rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); filter: blur(3px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@media (max-width: 768px) {
    .storybook-container {
        margin: 30px 15px;
        padding: 40px 25px;
    }
    .main-title {
        font-size: 2.2rem;
    }
    .quote-block {
        padding: 20px;
    }
}