﻿@charset "utf-8";

/* ==========================================================
   ESG / FAQ
   僅放 FAQ 頁面專用樣式。
   Header、Title、次選單、Footer、RWD 主架構沿用 ESG 共用 CSS。
   ========================================================== */

.faq-page {
    width: 95%;
    margin: 0 auto;
}

/* ==========================================================
   FAQ Index
   ========================================================== */

.faq-list-heading {
    display: flex;
    margin-bottom: 18px;
    align-items: center;
    gap: 7px;
}

    .faq-list-heading img {
        width: 18px;
        height: 18px;
    }

/* ---------- 列表 ---------- */

.faq-list-wrap {
    width: 100%;
    overflow: hidden;
}

.faq-list-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    border-bottom: 2px solid #adcfef;
    background: #fff;
}

    /* 表頭沿用先前 Download 的淡藍漸層風格 */
    .faq-list-table thead th {
        height: 36px;
        padding: 7px 10px;
        border-top: 1px solid #c2dbef;
        border-right: 1px solid rgba(255, 255, 255, .75);
        border-bottom: 1px solid #9fbdd8;
        background-color: #dceefa;
        background-image: linear-gradient( to bottom, #f7fbff 0%, #edf7fd 30%, #dceefa 65%, #c7e1f1 100% );
        color: #2e3289;
        font-size: 13px;
        font-weight: bold;
        line-height: 22px;
        text-align: center;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 2px 2px rgba(0, 0, 0, .15);
    }

        .faq-list-table thead th:first-child {
            border-left: 1px solid #c2dbef;
            border-radius: 7px 0 0 7px;
        }

        .faq-list-table thead th:last-child {
            border-right: 1px solid #c2dbef;
            border-radius: 0 7px 7px 0;
        }

.faq-col-no {
    width: 90px;
}

.faq-col-date {
    width: 130px;
}

.faq-col-question {
    width: auto;
}

.faq-list-table tbody td {
    padding: 10px;
    border-bottom: 1px dotted #d0d0d0;
    background: #fff;
    color: #555;
    font-size: 13px;
    line-height: 1.6;
    vertical-align: middle;
}

.faq-list-table tbody tr:last-child td {
    border-bottom: 0;
}

.faq-list-table tbody tr:hover td {
    background: #f7fbff;
}

.faq-list-no,
.faq-list-date {
    text-align: center;
}

.faq-list-date {
    color: #636bda;
    white-space: nowrap;
}

.faq-list-question {
    text-align: left;
    overflow-wrap: break-word;
}

    .faq-list-question a,
    .faq-list-question a:link,
    .faq-list-question a:visited {
        color: #222;
        text-decoration: none;
    }

        .faq-list-question a:hover,
        .faq-list-question a:focus {
            color: #636bda;
            text-decoration: underline;
        }

.faq-empty {
    padding: 28px 10px !important;
    color: #777;
    text-align: center;
}

.faq-pager {
    margin-top: 15px;
    text-align: center;
}

    .faq-pager table {
        max-width: 100%;
    }

/* ==========================================================
   FAQ Detail
   ========================================================== */

.faq-detail-header {
    margin-bottom: 8px;
}

.faq-detail-title {
    margin: 0 0 3px;
    line-height: 1.6;
}

.faq-detail-date {
    line-height: 1.7;
}

.faq-detail-line {
    height: 1px;
    margin: 10px 0 18px;
}

/* 問題 */
.faq-question-block,
.faq-answer-block {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: flex-start;
}

.faq-question-block {
    margin-bottom: 14px;
    padding: 4px 2px;
}

.faq-answer-block {
    padding: 20px 22px;
    border: 1px solid #d8e7e5;
    border-radius: 4px;
    background: #ebf6f5;
}

/* 不再依賴舊 CSR qa-icon-Q/A.gif */
.faq-qa-badge {
    display: inline-flex;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: bold;
    line-height: 1;
}

.faq-qa-q {
    background: #2e3289;
}

.faq-qa-a {
    background: #4b9f94;
}

.faq-question-text {
    padding-top: 1px;
    color: #2e3289;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.75;
}

.faq-answer-text {
    min-width: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.85;
    overflow-wrap: break-word;
}

    .faq-answer-text p {
        margin: 0 0 10px;
    }

        .faq-answer-text p:last-child {
            margin-bottom: 0;
        }

    .faq-answer-text img {
        max-width: 100%;
        height: auto;
    }

    .faq-answer-text table {
        max-width: 100%;
    }

.faq-back {
    margin-top: 28px;
    text-align: center;
}

/* ==========================================================
   RWD
   ========================================================== */

@media screen and (max-width: 768px) {
    .faq-page {
        width: 100%;
        margin: 0;
    }

    .faq-list-table {
        width: 100% !important;
        table-layout: fixed;
    }

        .faq-list-table thead th {
            height: 34px;
            padding: 6px 5px;
            font-size: 12px;
        }

        .faq-list-table tbody td {
            padding: 8px 5px;
            font-size: 12px;
        }

    .faq-col-no {
        width: 52px;
    }

    .faq-col-date {
        width: 105px;
    }

    .faq-list-question {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .faq-answer-block {
        padding: 16px 14px;
    }
}

@media screen and (max-width: 500px) {
    .faq-list-table thead th {
        height: 32px;
        padding: 5px 3px;
        font-size: 11px;
    }

    .faq-list-table tbody td {
        padding: 7px 3px;
        font-size: 11px;
        line-height: 1.45;
    }

    .faq-col-no {
        width: 40px;
    }

    .faq-col-date {
        width: 86px;
    }

    .faq-list-date {
        font-size: 11px;
        line-height: 1.35;
        white-space: normal;
    }

    .faq-question-block,
    .faq-answer-block {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .faq-answer-block {
        padding: 14px 10px;
    }

    .faq-qa-badge {
        width: 23px;
        height: 23px;
        font-size: 14px;
    }

    .faq-question-text,
    .faq-answer-text {
        font-size: 13px;
    }

    .faq-back {
        margin-top: 22px;
    }
}
