﻿/* ==========================================================================
   特定內容專屬排版樣式 (rules-modal.css)
   注意：本檔案需與 shared-components.css 搭配使用
   ========================================================================== */

/* 1. 文件主要大標題 */
.rules-main-title {
    text-align: center;
    color: #0056b3;
    font-weight: bold;
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 30px;
}

/* 2. 章節大點 (如：壹、前言 / 貳、適用範圍) */
.rules-section {
    margin-bottom: 35px;
}

.rules-section-title {
    color: #0056b3;
    font-weight: bold;
    font-size: 1.2rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.rules-sub-section {
    margin-bottom: 30px;
}

/* 3. 小節標題 (如：一、申請資格) */
.rules-heading {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 12px;
}

.rules-text-justify {
    text-align: justify;
    margin: 0 0 15px 0;
}

.rules-text {
    margin: 0 0 15px 0;
}

/* 4. 條文法規專用：內縮突排文字區塊 (處理 (一) (二) 下方的特殊排版) */
.rules-item-block {
    padding-left: 25px;
    text-indent: -25px; /* 懸掛縮排，讓第一行的標題突排，後續換行乖乖對齊 */
    margin-bottom: 15px;
}

.rules-indent-text {
    padding-left: 25px;
    text-indent: 0; /* 恢復正常縮排，讓內文整塊內縮 */
    display: block;
    margin-top: 5px;
}

/* 灰色小註解文字 */
.rules-note {
    color: #777;
    font-size: 0.9em;
    display: block;
    margin-top: 5px;
    line-height: 1.5;
}

/* 5. 專用條列式清單設定 */
.rules-list {
    text-indent: 0;
    padding-left: 25px;
    margin-top: 8px;
    margin-bottom: 15px;
}

.rules-list-disc {
    list-style-type: disc;
}

.rules-list-circle {
    list-style-type: circle;
}

.rules-list li {
    margin-bottom: 6px;
    text-align: justify;
}

/* 6. 領域說明專用表格 */
.rules-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
}

    .rules-table th {
        background-color: #f0f7ff;
        color: #0056b3;
        padding: 12px 15px;
        text-align: left;
        border-bottom: 2px solid #0056b3;
    }

    .rules-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
        color: #555;
        line-height: 1.6;
    }

/* ==========================================================================
   7. 申請流程 (Phase Timeline) 專屬樣式
   ========================================================================== */
.phase-intro {
    text-align: center;
    margin-bottom: 30px;
}

    .phase-intro h4 {
        color: #0056b3;
        font-weight: bold;
        margin-top: 0;
        margin-bottom: 10px;
        font-size: 1.3rem;
    }

    .phase-intro p {
        color: #555;
        line-height: 1.6;
        font-size: 0.95em;
        margin: 0;
    }

.phase-timeline {
    padding-left: 10px;
}

.timeline-item {
    margin-bottom: 25px;
    padding-left: 15px;
    border-left-width: 4px;
    border-left-style: solid;
}

.timeline-title {
    color: #333;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.step-badge {
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    margin-right: 8px;
    vertical-align: middle;
}

.timeline-desc {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 0.95em;
    text-align: justify;
}

/* 流程各步驟邊框與膠囊色彩設定 */
.timeline-item.step-1 {
    border-color: #4CAF50;
}

    .timeline-item.step-1 .step-badge {
        background-color: #4CAF50;
    }

.timeline-item.step-2 {
    border-color: #2196F3;
}

    .timeline-item.step-2 .step-badge {
        background-color: #2196F3;
    }

.timeline-item.step-3 {
    border-color: #FF9800;
}

    .timeline-item.step-3 .step-badge {
        background-color: #FF9800;
    }

.timeline-item.step-4 {
    border-color: #E91E63;
}

    .timeline-item.step-4 .step-badge {
        background-color: #E91E63;
    }

.timeline-item.step-5 {
    border-color: #9C27B0;
}

    .timeline-item.step-5 .step-badge {
        background-color: #9C27B0;
    }

.timeline-item.step-6 {
    border-color: #009688;
}

    .timeline-item.step-6 .step-badge {
        background-color: #009688;
    }

.timeline-hint, .timeline-note {
    color: #777;
    font-size: 0.9em;
    display: inline-block;
    margin-top: 5px;
}

/* 線上送件黃色警告框 */
.timeline-alert {
    display: block;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #fff3cd;
    border-left: 3px solid #ffc107;
    color: #856404;
    font-weight: bold;
    border-radius: 0 4px 4px 0;
    line-height: 1.5;
    font-size: 0.95em;
}

.alert-note {
    font-weight: normal;
    font-size: 0.9em;
}

/* 底部藍色大提示框 */
.phase-footer-box {
    background-color: #e3f2fd;
    border-left: 4px solid #0d47a1;
    color: #0d47a1;
    padding: 15px 20px;
    border-radius: 0 6px 6px 0;
    margin-top: 35px;
}

    .phase-footer-box strong {
        display: block;
        margin-bottom: 8px;
        font-size: 1.05em;
    }

    .phase-footer-box span {
        line-height: 1.6;
        font-size: 0.95em;
        display: block;
        text-align: justify;
    }

/* ==========================================================================
   RWD 手機板微調
   ========================================================================== */
@media (max-width: 600px) {
    .rules-item-block {
        padding-left: 15px;
        text-indent: -15px;
    }

    .rules-indent-text {
        padding-left: 15px;
    }

    .rules-table th, .rules-table td {
        padding: 10px;
        font-size: 0.95em;
    }
}
