@charset "UTF-8";

/* 第77期 page83-85 樣式 */
/**
 * 生成時間：2025-12-24 11:40:00
 * 功能描述：第77期雙月刊 page83-85 頁面樣式
 * 包含頁面：page83（我的命盤標題頁）、page84（目錄）、page85（南無阿彌陀佛）
 */

/* ============ 主容器 ============ */
.bundle-83-85 .container {
    max-width: 800px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0 20px 0 !important;
    /* Force padding 0 */
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    background-color: #fff;
    position: relative;
}

/* ============ Page 83 標題頁樣式 (基於 Page 5 樣式) ============ */
/* Page 83 樣式 - 我的命盤 */

.bundle-83-85 #page-83.container {
    padding: 0 !important;
}

/* Container - 依照 PDF 尺寸 538.58 x 737.01 建立比例 */
.page-83 .page-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    /* 以 PDF 原始寬度為基準 */
    aspect-ratio: 538.58 / 737.01;
    margin: 0 auto;
    overflow: hidden;
    font-family: "Microsoft JhengHei", "Heiti TC", sans-serif !important;
    /* 強制微軟正黑體 */
    color: #FFFFFF;
    /* 文字全白 */
    background-color: #823D5B;
    /* 使用與 Page 5 相同的底色，或依據需求調整 */
    /* 深色底備案 */
    border-radius: 0 50px 50px 0;
}

.bundle-83-85 #page-83 .content {
    max-width: 100% !important;
    /* Full width */
}

/* 背景圖片 - 佔據下方 50% */
.page-83 .page-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    object-fit: cover;
    z-index: 99;
}

/* 內容層 - 覆蓋在圖片上 */
.page-83 .content-layer {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

/* ----------- 左側區域 (橫書) ----------- */
.page-83 .left-section {
    position: absolute;
    top: 8%;
    left: 14%;
    width: 40%;
    border-left: 1px white solid;
    padding-left: 2em;
    padding-bottom: 10rem;
}

.page-83 .decorative-text {
    font-family: 'Times New Roman', Times, serif;
    font-size: clamp(18px, 3vw, 22px);
    line-height: 1.4;
    margin-bottom: 3.5rem;
}

.page-83 .quote-block {
    font-family: 'Zen Old Mincho', serif;
    font-size: clamp(16px, 3vw, 18px);
    line-height: 4;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-top: 6em;
}

/* ----------- 右側區域 (直書) ----------- */
.page-83 .right-section {
    position: absolute;
    top: 8%;
    /* PDF Y: ~85pt */
    right: 15%;
    /* PDF X: ~453pt */
    height: 85%;
    writing-mode: vertical-rl;
    display: flex;
    flex-direction: column;
    /* R->L Flow in Vertical Mode */
    align-items: flex-start;
    gap: 1.5rem;
}

.page-83 .main-title {
    font-family: 'Zen Old Mincho', serif;
    font-size: clamp(48px, 12vw, 64px);
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1;
}

.page-83 .sub-title {
    font-family: 'Zen Old Mincho', serif;
    font-size: clamp(16px, 5vw, 22px);
    font-weight: 500;
}

.page-83 .dash {
    letter-spacing: -0.15em;
}

.page-83 .dash-text {
    letter-spacing: 0.15em;
}

/* ----------- Page 83 封面頁 RWD (複製自 p5) ----------- */
@media screen and (max-width: 640px) {
    .page-83 .quote-block {
        line-height: 4;
        margin-top: 4em;
    }

    .page-83 .decorative-text {
        margin-bottom: 1.5em;
    }

    /* 調整左右區域位置，爭取上方空間 */
    .page-83 .left-section,
    .page-83 .right-section {
        top: 6%;
    }

    /* 縮小右側直書的間距 */
    .page-83 .right-section {
        gap: 0.5rem;
    }

    .page-83 .sub-title {
        font-size: 18px;
    }

    .page-83 .main-title {
        font-size: clamp(36px, 9vw, 64px);
    }
}

@media screen and (max-width: 510px) {
    .page-83 .quote-block {
        line-height: 3.5;
        margin-top: 3.5em;
    }

    .page-83 .decorative-text {
        margin-bottom: 1.2em;
    }

    .page-83 .sub-title {
        font-size: 16px;
    }

    .page-83 .left-section {
        position: absolute;
        left: 10%;
        width: 45%;
    }
}

@media screen and (max-width: 460px) {
    .page-83 .quote-block {
        line-height: 3.5;
        margin-top: 3.5em;
    }

    .page-83 .sub-title {
        font-size: 15px;
    }

    .page-83 .left-section {
        width: 50%;
    }

    .page-83 .quote-block {
        font-size: clamp(14px, 3vw, 16px);
    }
}

/* 針對極小螢幕的進一步壓縮，確保不與圖片重疊 */
@media screen and (max-width: 400px) {
    .page-83 .quote-block {
        line-height: 3.5;
        margin-top: 1em;
    }

    .page-83 .left-section {
        width: 56%;
    }

    .page-83 .decorative-text {
        margin-bottom: 1rem;
    }

    .page-83 .sub-title {
        font-size: 13px;
    }

    .page-83 .right-section {
        right: 10%;
    }
}


/* ============ Page 84 目錄頁樣式 ============ */
.bundle-83-85 #page-84.container {
    padding: 0 0 20px 100px !important;
}

.bundle-83-85 .page-84 .toc-header {
    text-align: left;
    margin-bottom: 30px;
    border-bottom: none;
    padding-bottom: 0;
    margin-left: 0;
    padding-left: 40px;
    /* Align with list margin */
}

.bundle-83-85 .page-84 .toc-title {
    font-weight: bold;
    color: #6850a1;
    /* Purple */
    font-family: 'Zen Old Mincho', serif;
    writing-mode: horizontal-tb;
    letter-spacing: 0.1em;
    display: block;
    margin: 0;
    line-height: 1.2;
}

.bundle-83-85 .page-84 .toc-title .title-main {
    display: block;
    font-size: 2.2rem;
}

.bundle-83-85 .page-84 .toc-title .title-sub {
    display: block;
    font-size: 1.5rem;
    /* Smaller size */
    margin-top: 10px;
}

.bundle-83-85 .page-84 .toc-list {
    list-style: none;
    padding: 0 40px;
    /* Left margin ~85pt approx 40-50px */
    margin: 0;
    max-width: 100%;
    /* Full width */
}

.bundle-83-85 .page-84 .toc-item {
    display: flex;
    align-items: baseline;
    margin-bottom: 8px;
    /* Tighter spacing */
    font-size: 1.1rem;
    color: #231f20;
    line-height: 1.4;
    font-family: "DFMincho-W5", "Zen Old Mincho", serif;
    /* Use Serif */
}

.bundle-83-85 .page-84 .toc-item.chapter {
    font-weight: bold;
    font-size: 1.15rem;
    margin-top: 15px;
    color: #231f20;
    border: none;
    font-family: "DFMincho-W5", "Zen Old Mincho", serif;
}

/* Indentation for Sections to align with '我的命盤' (after '第一章　') */
.bundle-83-85 .page-84 .toc-item.section,
.bundle-83-85 .page-84 .toc-item.sub-section {
    padding-left: 4em;
}

.bundle-83-85 .page-84 .item-title {
    position: relative;
    padding-right: 10px;
    order: 1;
}

/* Align Page Number close to text with 2 spaces gap */
.bundle-83-85 .page-84 .item-page {
    flex-shrink: 0;
    margin-left: 1em;
    /* Approx 2 spaces */
    font-family: "DauphinPlain", "Times New Roman", serif;
    font-size: 1.1rem;
    padding-left: 0;
    order: 2;
}

/* Remove Dotted Line filler */
.bundle-83-85 .page-84 .toc-item::after {
    display: none;
}


/* ============ Page 85 全圖片樣式 ============ */
.bundle-83-85 #page-85.container.full-page-image {
    padding: 0;
    background-color: transparent;
    box-shadow: none;
}

.bundle-83-85 .page-85.full-page-image .content {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.bundle-83-85 .page-85.full-page-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}



/* ============ 頁碼樣式 ============ */
.bundle-83-85 .page-number {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #666;
    /* Standard Color */
    position: relative;
    z-index: 2;
    background-color: transparent;
}


.bundle-83-85 .page-number .page-text {
    color: #666;
    /* Standard Color */
}

.bundle-83-85 .page-number .page-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #813758;
    color: white;
    font-weight: bold;
    font-size: 1rem;
}

/* Page 84 頁碼水平置中 */
.bundle-83-85 .page-84 .page-number {
    position: relative;
    /* Fixed: remove absolute */
    left: auto;
    bottom: auto;
    width: 100%;
    margin-top: 30px;
    padding: 20px 0 0 0;
    /* Left padding for alignment */
    justify-content: center;
}


/* ============ RWD 響應式設計 ============ */
@media (max-width: 992px) {
    .bundle-83-85 .container {
        padding: 20px 60px;
    }
}


/* ============ 固定垂直標籤（Fixed Vertical Label）============ */
.bundle-83-85-active .fixed-vertical-label {
    position: fixed;
    top: 30px;
    left: 30px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    background-color: #823D5B;
    color: white;
    padding: 10px 8px;
    font-size: 1rem;
    white-space: nowrap;
    border-radius: 5px;
    z-index: 1000;
    font-weight: bold;
}

@media (max-width: 768px) {
    .bundle-83-85 .container {
        padding: 20px 30px;
    }

    /* Page 84 RWD */
    .bundle-83-85 .page-84 .toc-list {
        padding: 0 10px;
    }

    .bundle-83-85 .page-84 .toc-item {
        font-size: 1rem;
    }

    /* 固定垂直標籤 RWD */
    .bundle-83-85-active .fixed-vertical-label {
        font-size: 11px;
        padding: 2px 0;
        left: 0;
        line-height: 1.2;
    }
}

@media (max-width: 576px) {
    .bundle-83-85 .container {
        padding: 15px 15px;
    }

    .bundle-83-85 .page-84 .toc-item.section {
        padding-left: 20px;
    }

    .bundle-83-85 .page-84 .toc-item.sub-section {
        padding-left: 40px;
    }
}

/* Page 84 寬度 < 645px 時 toc-list 左移 */
@media (max-width: 645px) {
    .bundle-83-85 #page-84.container {
        padding-left: calc(100px - 4em) !important;
    }
}

/* Page 84 寬度 < 440px 時 toc-list 移至 x=0.5em */
@media (max-width: 440px) {
    .bundle-83-85 #page-84.container {
        padding-left: 0.5em !important;
    }
}