/* 第73期 page5-17 樣式 */
/**
 * 生成時間：2025-10-11 10:52:56
 * 功能描述：第73期雙月刊 page5-17 頁面樣式
 * 包含頁面：page5-17（阿彌陀佛四十八題、般舟讚之研究等）
 */

/* 主容器 */
.bundle-5-17 .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;
}

/* ============ 標題樣式 ============ */

/* Page 5-8: 阿彌陀佛四十八題 - 使用 #86633A 色系 */
.bundle-5-17 .page-5 .title,
.bundle-5-17 .page-5 .subtitle,
.bundle-5-17 .page-5 .chapter {
    color: #86633A;
}

.bundle-5-17 .title {
    text-align: center;
    color: #806856;
    margin: 10px 0 5px 0;
    font-size: 2.4rem;
    font-weight: bold;
    line-height: 1.3;
}

.bundle-5-17 .subtitle {
    text-align: center;
    color: #806856;
    font-size: 1.2rem;
    margin: 0 auto 10px auto;
    max-width: 90%;
}

.bundle-5-17 .chapter {
    text-align: center;
    color: #806856;
    margin: 5px 0 20px 0;
    font-size: 1.2rem;
}

/* Page 9: 般舟讚之研究 - 特殊標題樣式 */
.bundle-5-17 .page-9 .title {
    color: #806856;
    font-size: 2.8rem;
    font-weight: bold;
}

.bundle-5-17 .page-9 .subtitle {
    color: #806856;
    font-size: 1.8rem;
    font-weight: bold;
}

/* ============ 作者樣式 ============ */
.bundle-5-17 .author {
    text-align: center;
    margin: 15px 0;
    font-size: 1rem;
    color: #231f20;
}

/* ============ 圓形點點的虛線 ============ */
.bundle-5-17 .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-5-17 .content {
    max-width: 600px;
    margin: 0 auto;
}

/* 頁面 6-17 使用全寬 */
.bundle-5-17 .page-6 .content,
.bundle-5-17 .page-7 .content,
.bundle-5-17 .page-8 .content,
.bundle-5-17 .page-9 .content,
.bundle-5-17 .page-10 .content,
.bundle-5-17 .page-11 .content,
.bundle-5-17 .page-12 .content,
.bundle-5-17 .page-13 .content,
.bundle-5-17 .page-14 .content,
.bundle-5-17 .page-15 .content,
.bundle-5-17 .page-16 .content,
.bundle-5-17 .page-17 .content {
    max-width: none;
}

/* ============ 小標題樣式 ============ */

/* 一般小標題 */
.bundle-5-17 .content-title {
    text-align: left;
    color: #86633A;
    margin: 30px 0 20px;
    font-size: 1.3rem;
    font-weight: bold;
}

/* Page 9 的特殊小標題「三」- 白色文字在深色背景 */
.bundle-5-17 .content-title-san {
    display: flex;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #806856;
    color: #ffffff;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    margin: 30px auto 20px;
    text-align: center;
}

/* ============ 段落樣式 ============ */
.bundle-5-17 .content-paragraph {
    text-indent: 2em;
    margin-bottom: 15px;
    line-height: 1.8;
    color: #231f20;
}

/* 粗體文字 */
.bundle-5-17 .content-paragraph .fw-bold {
    font-weight: 700;
}

/* ============ Page 7 圖片頁樣式 ============ */
.bundle-5-17 .page-7 .content {
    text-align: center;
}

.bundle-5-17 .page-7 .full-page-image {
    margin: 0;
    padding: 0;
}

.bundle-5-17 .page-7 .full-page-image img {
    width: 100%;
    height: auto;
    max-height: 800px;
    object-fit: contain;
}

.bundle-5-17 .page-7 figcaption {
    color: #806856;
    font-size: 0.9rem;
    margin-top: 15px;
}

/* ============ Page 8 文繞圖樣式 ============ */
.bundle-5-17 .page-8 .content {
    position: relative;
}

.bundle-5-17 .page-8-text-wrap-image {
    float: right;
    margin: 0 0 15px 20px;
    max-width: 40%;
}

.bundle-5-17 .page-8-text-wrap-image img {
    width: 100%;
    height: auto;
}

.bundle-5-17 .page-8-text-wrap-image figcaption {
    font-size: 0.85rem;
    color: #806856;
    margin-top: 8px;
    text-align: center;
}

/* ============ 頁碼樣式 ============ */
.bundle-5-17 .page-number {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
    color: #666;
}

.bundle-5-17 .page-number .page-text {
    color: #666;
}

.bundle-5-17 .page-number .page-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #806856;
    color: white;
    font-weight: bold;
    font-size: 1rem;
}

/* ============ 響應式設計 ============ */
@media (max-width: 768px) {
    .bundle-5-17 .container {
        padding: 15px 30px;
    }

    .bundle-5-17 .title {
        font-size: 1.8rem;
    }

    .bundle-5-17 .page-9 .title {
        font-size: 2.2rem;
    }

    .bundle-5-17 .subtitle {
        font-size: 1rem;
    }

    .bundle-5-17 .page-9 .subtitle {
        font-size: 1.4rem;
    }

    .bundle-5-17 .content-title {
        font-size: 1.1rem;
    }

    .bundle-5-17 .content-title-san {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .bundle-5-17 .page-8-text-wrap-image {
        float: none;
        max-width: 100%;
        margin: 15px 0;
    }
}

@media (max-width: 480px) {
    .bundle-5-17 .container {
        padding: 10px 20px;
    }

    .bundle-5-17 .title {
        font-size: 1.5rem;
    }

    .bundle-5-17 .page-9 .title {
        font-size: 1.8rem;
    }

    .bundle-5-17 .content-paragraph {
        text-indent: 1.5em;
    }
}

/* ============ Page 10 表格樣式 ============ */

/* 表格容器 */
.bundle-5-17 .comparison-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 30px 0;
}

/* 表格基本樣式 */
.bundle-5-17 .comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin: 0 auto;
}

/* 表格單元格 */
.bundle-5-17 .comparison-table th,
.bundle-5-17 .comparison-table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: top;
    line-height: 1.8;
}

/* 表頭樣式 */
.bundle-5-17 .comparison-table thead tr th {
    font-weight: bold;
    font-size: 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 24px;
}

/* 第一欄表頭 - 金黃色 */
.bundle-5-17 .comparison-table thead tr th:nth-child(1) {
    background-color: #D0A74A;
    color: white;
    font-size: 24px;
}

/* 第二欄表頭 - 粉紅色 */
.bundle-5-17 .comparison-table thead tr th:nth-child(2) {
    background-color: #F598B2;
    color: white;
    font-size: 24px;
}

/* 第一欄內容 - 淺黃色 */
.bundle-5-17 .comparison-table tbody tr td:nth-child(1) {
    background-color: #FFFBD6;
}

/* 第二欄內容 - 淺紫色 */
.bundle-5-17 .comparison-table tbody tr td:nth-child(2) {
    background-color: #EDDAEA;
}

/* 表格行 hover 效果 */
.bundle-5-17 .comparison-table tbody tr:hover td {
    filter: brightness(0.95);
}

/* 大標題樣式（帶括號的標題） */
.bundle-5-17 .comparison-table tbody tr td.major-title {
    font-weight: bold;
    font-size: 1.1rem;
}

/* 圓圈數字樣式 */
.bundle-5-17 .comparison-table .circle-number {
    vertical-align: 2px;
    display: inline-block;
    font-weight: normal;
}

/* 表格內引用文字 */
.bundle-5-17 .comparison-table .quote-in-table {
    display: block;
    margin-top: 6px;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.6;
}

/* 響應式：平板 */
@media (max-width: 768px) {

    .bundle-5-17 .comparison-table th,
    .bundle-5-17 .comparison-table td {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .bundle-5-17 .comparison-table .quote-in-table {
        font-size: 0.85rem;
    }
}

/* ============ 移動端檢視樣式 ============ */

/* 檢視模式切換按鈕 */
.bundle-5-17 .view-mode-toggle {
    display: none;
    gap: 8px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.bundle-5-17 .mode-btn {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.bundle-5-17 .mode-btn:hover {
    border-color: #D0A74A;
    color: #D0A74A;
    background: #FFF9E6;
}

.bundle-5-17 .mode-btn.active {
    background: #B8902E;
    border-color: #B8902E;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 桌面表格檢視 */
.bundle-5-17 .desktop-table-view {
    display: block;
}

/* 卡片和手風琴檢視預設隱藏 */
.bundle-5-17 .mobile-card-view,
.bundle-5-17 .mobile-accordion-view {
    display: none;
}

/* 卡片檢視 */
.bundle-5-17 .comparison-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bundle-5-17 .comparison-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bundle-5-17 .card-header {
    background: #B8902E;
    color: white;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.bundle-5-17 .comparison-card:hover .card-header {
    background: #A07D26;
}

.bundle-5-17 .row-number {
    background: rgba(255, 255, 255, 0.3);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.bundle-5-17 .card-title {
    font-weight: 600;
    font-size: 15px;
    flex: 1;
}

.bundle-5-17 .card-body {
    padding: 15px;
}

.bundle-5-17 .card-column {
    margin-bottom: 12px;
}

.bundle-5-17 .card-column:last-of-type {
    margin-bottom: 0;
}

.bundle-5-17 .column-label {
    font-size: 14px;
    color: #9B7B2E;
    font-weight: 600;
    margin-bottom: 6px;
    padding-left: 8px;
    border-left: 3px solid #D0A74A;
}

.bundle-5-17 .column-content {
    background: #f8f9fa;
    padding: 10px 12px;
    border-radius: 6px;
    line-height: 1.6;
    font-size: 14px;
    color: #333;
}

.bundle-5-17 .quote {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: #666;
    padding-left: 10px;
    border-left: 2px solid #ddd;
    font-weight: 600;
}

/* 合併內容樣式 */
.bundle-5-17 .merged-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bundle-5-17 .merged-item {
    padding: 10px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    line-height: 1.6;
}

.bundle-5-17 .merged-item.major-title {
    font-weight: bold;
    background: #f8f9fa;
    text-align: center;
}

.bundle-5-17 .merged-item .circle-number {
    font-weight: normal;
    margin-right: 4px;
}

.bundle-5-17 .merged-item .quote {
    margin-top: 6px;
    padding-left: 10px;
    border-left: 2px solid #ddd;
    font-size: 14px;
    color: #666;
}

/* 手風琴檢視 */
.bundle-5-17 .accordion-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s;
}

.bundle-5-17 .accordion-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.bundle-5-17 .accordion-header {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    background: #B8902E;
    color: white;
    user-select: none;
    transition: background 0.3s;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.bundle-5-17 .accordion-header:hover {
    background: #A07D26;
}

.bundle-5-17 .accordion-header:active {
    background: #8F6E20;
}

.bundle-5-17 .header-number {
    background: rgba(255, 255, 255, 0.3);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    margin-right: 12px;
    flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.bundle-5-17 .header-title {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.bundle-5-17 .header-icon {
    font-size: 12px;
    transition: transform 0.3s;
    margin-left: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.bundle-5-17 .accordion-item.active .header-icon {
    transform: rotate(180deg);
}

.bundle-5-17 .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 15px;
}

.bundle-5-17 .accordion-item.active .accordion-content {
    max-height: 600px;
    padding: 15px;
    border-top: 2px solid #f0f0f0;
}

.bundle-5-17 .content-label {
    font-size: 14px;
    color: #9B7B2E;
    font-weight: 600;
    margin-bottom: 8px;
    padding-left: 8px;
    border-left: 3px solid #D0A74A;
}

.bundle-5-17 .content-text {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    line-height: 1.6;
    font-size: 14px;
}

/* ============ 圖片頁樣式 ============ */

/* 圖片容器 */
.bundle-5-17 .image-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.bundle-5-17 .main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.bundle-5-17 .image-caption {
    font-size: 14px;
    color: #806856;
    line-height: 1.6;
    margin: 0;
    padding: 0 20px;
}

/* 結束標記 */
.bundle-5-17 .end-mark {
    text-align: right;
    font-weight: 600;
    color: #666;
}

/* 響應式：手機 */
@media (max-width: 480px) {

    .bundle-5-17 .comparison-table th,
    .bundle-5-17 .comparison-table td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .bundle-5-17 .comparison-table thead tr th {
        font-size: 0.95rem;
    }

    .bundle-5-17 .comparison-table tbody tr td.major-title {
        font-size: 1rem;
    }

    .bundle-5-17 .comparison-table .quote-in-table {
        font-size: 0.8rem;
        margin-top: 4px;
    }

    /* 小螢幕顯示切換按鈕和移動端檢視 */
    .bundle-5-17 .desktop-table-view {
        display: none;
    }

    .bundle-5-17 .view-mode-toggle {
        display: flex;
    }

    .bundle-5-17 .mobile-card-view.active,
    .bundle-5-17 .mobile-accordion-view.active {
        display: block;
    }
}

/* ============ 固定垂直標籤樣式 ============ */
/* MODIFIED: Scoped .fixed-vertical-label styles for bundle 5-17 */
.bundle-5-17-active .fixed-vertical-label {
    position: fixed;
    top: 30px;
    left: 30px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    background-color: #86633A;
    /* 與頁面標題色系一致 */
    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-5-17-active .fixed-vertical-label {
        font-size: 11px;
        padding: 2px 0px;
        left: 0px;
        line-height: 1.2;
    }
}