/* 第72期 page27-39 阿彌陀佛四十八題 樣式 */

/* 固定垂直標籤樣式*/
.bundle-27-39-active .fixed-vertical-label {
	position: fixed;
	top: 30px;
	left: 10px;
	writing-mode: vertical-rl;
	text-orientation: upright;
	background-color: #968678;
	color: white;
	padding: 10px 8px;
	font-size: 1rem;
	white-space: nowrap;
	border-radius: 5px;
	z-index: 1000;
	font-weight: bold;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* 主容器 */
.bundle-27-39 .container {
    max-width: 800px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 100px 20px 100px;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    background-color: #fff;
    position: relative;
}

/* 標題樣式 */
.bundle-27-39 .title {
    text-align: center;
    color: #806856;
    margin: 10px 0 5px 0;
    font-size: 2.4rem;
    font-weight: bold;
    line-height: 1.3;
}

.bundle-27-39 .subtitle {
    text-align: center;
    color: #806856;
    font-size: 1.2rem;
    margin: 0 auto 10px auto;
    max-width: 90%;
}

.bundle-27-39 .chapter {
    text-align: center;
    color: #806856;
    margin: 5px 0 20px 0;
    font-size: 1.2rem;
}

/* Specific Title Styles for page 27 */
.bundle-27-39 .page-27 .title {
    color: #806856;
    font-size: 2.8rem;
}

.bundle-27-39 .page-27 .subtitle,
.bundle-27-39 .page-27 .chapter {
    color: #806856;
    font-weight: bold;
}

/* 作者樣式 */
.bundle-27-39 .author {
    text-align: center;
    margin: 15px 0;
    font-size: 1rem;
    color: #333;
}

/* 圓形點點的虛線 */
.bundle-27-39 .dotted-line {
    height: 8px;
    width: 100%;
    margin: 25px 0;
    background-image: radial-gradient(circle, #aaa 1px, transparent 1px);
    background-size: 8px 8px;
    background-position: center;
}

/* 分享組件樣式 */
.bundle-27-39 .share-container {
    margin: 15px 0 25px 0;
}

/* 內容樣式 */
.bundle-27-39 .content {
    max-width: 600px;
    margin: 0 auto;
}

/* Specific content styling for pages */
.bundle-27-39 .page-27 .content,
.bundle-27-39 .page-28 .content,
.bundle-27-39 .page-29 .content,
.bundle-27-39 .page-30 .content,
.bundle-27-39 .page-31 .content,
.bundle-27-39 .page-32 .content,
.bundle-27-39 .page-33 .content,
.bundle-27-39 .page-34 .content,
.bundle-27-39 .page-35 .content {
    max-width: none;
}

.bundle-27-39 .content-title {
    text-align: left;
    color: #806856;
    margin: 30px 0 20px;
    font-size: 1.3rem;
    font-weight: bold;
}

.bundle-27-39 .content-paragraph {
    text-indent: 2em;
    margin-bottom: 15px;
    line-height: 1.8;
}

/* 粗體樣式 */
.bundle-27-39 .fw-bold {
    font-weight: bold;
    font-family: "DFKaiShuStd-W7", serif;
}

/* 圖片樣式 */
.bundle-27-39 figure {
    margin-bottom: 1rem;
}

.bundle-27-39 figure img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid #eee;
    border-radius: 4px;
    margin: 0 auto;
}

.bundle-27-39 figcaption {
    font-size: 0.9em;
    color: #555;
    text-align: center;
    margin-top: 5px;
}

/* 頁碼 */
.bundle-27-39 .page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    padding: 8px 0;
    clear: both;
}

.bundle-27-39 .page-text {
    font-size: 0.9em;
    color: #555;
}

.bundle-27-39 .page-circle {
    background-color: #968678;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* 第29頁文繞圖樣式 - 右側排版 */
.bundle-27-39 .page-29-text-wrap-image {
    float: right;
    width: 180px;
    margin: 0 0 15px 40px;
    clear: none;
}

.bundle-27-39 .page-29-text-wrap-image img {
    width: 100%;
    height: auto;
    border: 1px solid #eee;
    border-radius: 4px;
    display: block;
}

.bundle-27-39 .page-29-text-wrap-image figcaption {
    font-size: 0.85em;
    color: #555;
    text-align: center;
    margin-top: 5px;
    line-height: 1.3;
    padding: 0 5px;
}

/* 確保第29頁內容容器允許文繞圖 */
.bundle-27-39 .page-29 .content {
    overflow: hidden;
}

/* 第30頁文繞圖樣式 - 右側排版 */
.bundle-27-39 .page-30-text-wrap-image {
    float: right;
    max-width: 400px;
    margin: 0 0 15px 40px;
    clear: none;
}

.bundle-27-39 .page-30-text-wrap-image img {
    width: 100%;
    height: auto;
    border: 1px solid #eee;
    border-radius: 4px;
    display: block;
}

.bundle-27-39 .page-30-text-wrap-image figcaption {
    font-size: 0.85em;
    color: #555;
    text-align: center;
    margin-top: 5px;
    line-height: 1.3;
    padding: 0 5px;
}

/* 確保第30頁內容容器允許文繞圖 */
.bundle-27-39 .page-30 .content {
    overflow: visible;
}

/* 第32頁文繞圖樣式（左側圖片） */
.bundle-27-39 .page-32-text-wrap-image {
    float: left;
    width: 200px;
    margin: 0 20px 15px 0;
    clear: none;
}

/* 確保第32頁內容容器允許文繞圖 */
.bundle-27-39 .page-32 .content {
    overflow: hidden;
}

/* 第34頁文繞圖樣式（左側圖片） */
.bundle-27-39 .page-34-text-wrap-image {
    float: left;
    width: 200px;
    margin: 0 20px 15px 0;
    clear: none;
}

/* 確保第34頁內容容器允許文繞圖 */
.bundle-27-39 .page-34 .content {
    overflow: hidden;
}

/* 第35頁全頁圖片樣式 */
.bundle-27-39 .page-35 .full-page-image {
    margin: 0;
    padding: 20px 0;
}

.bundle-27-39 .page-35 .full-page-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #eee;
    border-radius: 4px;
}

.bundle-27-39 .page-35 .full-page-image figcaption {
    font-size: 0.9em;
    color: #555;
    margin-top: 15px;
    line-height: 1.5;
}

/* 第36頁文章開始頁樣式（參考 page 5 結構） */
.bundle-27-39 .page-36 .title {
    text-align: center;
    color: #806856;
    margin: 10px 0 5px 0;
    font-size: 2.4rem;
    font-weight: bold;
    line-height: 1.3;
}

.bundle-27-39 .page-36 .subtitle {
    text-align: center;
    color: #806856;
    font-size: 1.2rem;
    margin: 0 auto 10px auto;
    max-width: 90%;
    font-weight: bold;
}

.bundle-27-39 .page-36 .author {
    text-align: center;
    color: #231F20;
    margin: 5px 0 10px 0;
    font-size: 1rem;
}

/* 圓形點點的虛線（用於 page 36） */
.bundle-27-39 .dotted-line {
    height: 8px;
    width: 100%;
    margin: 25px 0;
    background-image: radial-gradient(circle, #aaa 1px, transparent 1px);
    background-size: 8px 8px;
    background-position: center;
}

.bundle-27-39 .page-36 .content-title {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    background-color: #806856;
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 50%;
    margin: 15px auto;
    text-align: center;
}

.bundle-27-39 .page-37 .content-title {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    background-color: #806856;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50%;
    margin: 15px auto;
    text-align: center;
}

/* 第37頁註腳樣式 */
.bundle-27-39 .footnote-ref {
    font-size: 0.8em;
    vertical-align: super;
    color: #665344;
}

.bundle-27-39 .footnote {
    font-size: 0.9em;
    color: #665344;
    line-height: 1.6;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

/* 第38頁全頁圖片樣式 */
.bundle-27-39 .page-38 .full-page-image {
    margin: 0;
    padding: 20px 0;
}

.bundle-27-39 .page-38 .full-page-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #eee;
    border-radius: 4px;
}

.bundle-27-39 .page-38 .full-page-image figcaption {
    font-size: 0.9em;
    color: #555;
    margin-top: 15px;
    line-height: 1.5;
}

/* 清除浮動 */
.bundle-27-39 .container::after,
.bundle-27-39 .container::before {
    content: '';
    display: table;
    clear: both;
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .bundle-27-39 .container {
        padding: 15px 40px;
    }

    .bundle-27-39 .title {
        font-size: 1.8rem;
    }

    .bundle-27-39 .page-27 .title {
        font-size: 2rem;
    }

    .bundle-27-39 .subtitle,
    .bundle-27-39 .chapter,
    .bundle-27-39 .content-title {
        font-size: 1.1rem;
    }

    .bundle-27-39 .content {
        max-width: 100%;
        margin-left: 0;
    }

    .bundle-27-39 .page-circle {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .bundle-27-39-active .fixed-vertical-label {
        font-size: 11px;
        padding: 2px 0;
        left: 0 !important;
        line-height: 1.2;
    }
}

@media (max-width: 768px) {
    .bundle-27-39 .container {
        padding: 15px 15px;
        margin-bottom: 2rem;
    }

    .bundle-27-39 .title {
        font-size: 1.8rem;
    }

    .bundle-27-39 .page-27 .title {
        font-size: 2rem;
    }

    .bundle-27-39 .subtitle,
    .bundle-27-39 .chapter,
    .bundle-27-39 .content-title {
        font-size: 1.1rem;
    }

    .bundle-27-39 .content {
        max-width: 100%;
    }

    .bundle-27-39 .page-text {
        font-size: 0.8rem;
    }

    .bundle-27-39 .page-circle {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .bundle-27-39-active .fixed-vertical-label {
        font-size: 11px;
        padding: 2px 0;
        left: 0 !important;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .bundle-27-39 .title {
        font-size: 1.5rem;
    }

    .bundle-27-39 .page-27 .title {
        font-size: 1.8rem;
    }

    .bundle-27-39 .subtitle,
    .bundle-27-39 .chapter,
    .bundle-27-39 .content-title {
        font-size: 1rem;
    }
}
