/* ===================================
   Page 38-40 樣式表
   淨土宗妙喻 - 彌陀不捨惡業眾生：摩尼寶珠喻
   =================================== */

/* 固定垂直標籤 */
.bundle-38-40-active .fixed-vertical-label {
	position: fixed;
	top: 30px;
	left: 30px;
	writing-mode: vertical-rl;
	text-orientation: upright;
	background-color: #77AB42;
	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;
}

@media (max-width: 768px) {
	.bundle-38-40-active .fixed-vertical-label {
		font-size: 11px;
		padding: 2px 0px;
		left: 0px;
		line-height: 1.2;
	}
}

/* 主容器 */
.bundle-38-40 .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;
}

/* 標題樣式 - Page 38 綠色標題 */
.bundle-38-40 .page-38 .title {
    text-align: center;
    color: #77AB42;
    margin-bottom: 10px;
    font-size: 2.8rem;
    font-weight: bold;
    line-height: 1.3;
}

/* 作者樣式 */
.bundle-38-40 .author {
    text-align: center;
    margin: 15px 0;
    font-size: 1rem;
}

/* 圓形點點的虛線 */
.bundle-38-40 .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-38-40 .content {
    margin-top: 20px;
}

.bundle-38-40 .content p {
    text-indent: 2em;
    margin-bottom: 15px;
    line-height: 1.8;
}

/* 粗體文字 */
.bundle-38-40 .fw-bold {
    font-weight: bold;
}

/* 圖片容器 */
.bundle-38-40 .page-figure {
    margin: 0 0 20px 0;
    text-align: center;
    position: relative;
}

.bundle-38-40 .top-image {
    margin-bottom: 25px;
}

.bundle-38-40 .bottom-image {
    margin-top: 25px;
    margin-bottom: 20px;
    position: relative;
}

.bundle-38-40 .page-figure img {
    width: 100%;
    height: auto;
    display: block;
}

/* Page 40 下方圖片上的白色文字 */
.bundle-38-40 .bottom-image .image-text {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

/* 頁碼 */
.bundle-38-40 .page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    padding: 8px 0;
}

.bundle-38-40 .page-text {
    font-size: 14px;
    color: #666;
}

.bundle-38-40 .page-circle {
    background: #FBA51D;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* ===================================
   分享組件樣式
   注意：分享組件的樣式由全域 share.css 提供
   =================================== */

/* ===================================
   響應式設計 (RWD)
   =================================== */

/* 平板尺寸 (768px - 1024px) */
@media (max-width: 1024px) {
    .bundle-38-40 .container {
        padding: 20px 60px;
    }

    .bundle-38-40 .page-38 .title {
        font-size: 2.4rem;
    }

    .bundle-38-40 .bottom-image .image-text {
        font-size: 0.95rem;
        bottom: 25px;
    }
}

/* 手機尺寸 (小於 768px) */
@media (max-width: 768px) {
    .bundle-38-40 .container {
        padding: 15px 30px;
        margin-bottom: 2rem;
    }

    .bundle-38-40 .page-38 .title {
        font-size: 2rem;
    }

    .bundle-38-40 .author {
        font-size: 0.9rem;
    }

    .bundle-38-40 .content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .bundle-38-40 .dotted-line {
        margin: 20px 0;
    }

    .bundle-38-40 .top-image {
        margin-bottom: 20px;
    }

    .bundle-38-40 .bottom-image {
        margin-top: 20px;
    }

    .bundle-38-40 .bottom-image .image-text {
        font-size: 0.9rem;
        bottom: 20px;
        letter-spacing: 1.5px;
    }
}

/* 小手機尺寸 (小於 480px) */
@media (max-width: 480px) {
    .bundle-38-40 .container {
        padding: 15px 20px;
        margin-bottom: 1.5rem;
    }

    .bundle-38-40 .page-38 .title {
        font-size: 1.6rem;
    }

    .bundle-38-40 .author {
        font-size: 0.85rem;
        margin: 10px 0;
    }

    .bundle-38-40 .content p {
        font-size: 0.9rem;
        line-height: 1.6;
        text-indent: 1.5em;
        margin-bottom: 12px;
    }

    .bundle-38-40 .dotted-line {
        height: 6px;
        margin: 15px 0;
        background-size: 6px 6px;
    }

    .bundle-38-40 .page-number {
        margin-top: 20px;
        gap: 6px;
    }

    .bundle-38-40 .page-text {
        font-size: 12px;
    }

    .bundle-38-40 .page-circle {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .bundle-38-40 .top-image {
        margin-bottom: 15px;
    }

    .bundle-38-40 .bottom-image {
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .bundle-38-40 .bottom-image .image-text {
        font-size: 0.85rem;
        bottom: 15px;
        letter-spacing: 1px;
    }
}

