@charset "utf-8";
/* ==========================================================================
   dm-faq  |  常見問題（FAQ）區塊
   dentistzh.com 五個頁面共用：
     /            首頁        -> .dm-faq--home
     /ppjj/       品牌簡介     -> .dm-faq--about
     /ystd/       醫師團隊     -> .dm-faq--doctor
     /sfbz/       收費標準     -> .dm-faq--price
     /jyzy/       就醫指引     -> .dm-faq--guide
   設計基調沿用站內既有風格：#4688af 主藍 / #033146 深藍 / 細分割線 / 置中標題。
   交互：原生 <details> 摺疊，無需 JS；無 JS 時答案同樣在 DOM 內，可被搜索引擎讀取。
   序號由 CSS 計數器輸出，DOM 中不含數字（避免 AI 轉錄時污染 ### 行）。
   建立：2026-11-10
   ========================================================================== */

/* ---------- 底座 ---------- */
.dm-faq,
.dm-faq *,
.dm-faq *::before,
.dm-faq *::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.dm-faq {
    width: 100%;
    clear: both;
    background: #fff;
    padding: 64px 0 74px;
    -webkit-font-smoothing: antialiased;
}

.dm-faq .dm-faq-in {
    width: 1200px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
}

/* 各頁內容寬度對齊 */
.dm-faq--price .dm-faq-in {
    width: 1250px;
}

.dm-faq--guide .dm-faq-in {
    width: 65%;
}

/* ---------- 標題 ---------- */
.dm-faq .dm-faq-head {
    margin: 0 0 30px;
    text-align: center;
}

.dm-faq .dm-faq-head h2 {
    margin: 0;
    padding: 0;
    font-size: 30px;
    font-weight: bold;
    line-height: 1.4;
    letter-spacing: 2px;
    color: #4688af;
}

.dm-faq .dm-faq-head .dm-faq-en {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #a9b4bb;
    font-weight: 400;
}

.dm-faq .dm-faq-head .dm-faq-desc {
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: #033146;
}

/* 標題下的雙線（沿用站內 .part-title 的裝飾語言） */
.dm-faq .dm-faq-head::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin: 18px auto 0;
    border-radius: 3px;
    background: #4688af;
}

/* ---------- 列表 ---------- */
.dm-faq .dm-faq-list {
    margin: 0;
    padding: 0;
    counter-reset: dm-q;
    border-top: 1px solid #e6eef2;
}

.dm-faq .dm-faq-item {
    display: block;
    counter-increment: dm-q;
    border-bottom: 1px solid #e6eef2;
}

/* ---------- 問題行 ---------- */
.dm-faq .dm-faq-q {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    padding: 20px 4px;
    cursor: pointer;
    list-style: none;
    outline: none;
}

.dm-faq .dm-faq-q::-webkit-details-marker {
    display: none;
}

.dm-faq .dm-faq-q::marker {
    content: "";
}

.dm-faq .dm-faq-num {
    -webkit-flex: 0 0 30px;
    flex: 0 0 30px;
    width: 30px;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.65;
    color: #9fc3d6;
    font-family: Arial, Helvetica, sans-serif;
}

.dm-faq .dm-faq-num::before {
    content: counter(dm-q, decimal-leading-zero);
}

.dm-faq .dm-faq-q h3 {
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.65;
    letter-spacing: 0;
    color: #1a1a1a;
    -webkit-transition: color 0.25s;
    transition: color 0.25s;
}

.dm-faq .dm-faq-item:hover .dm-faq-q h3,
.dm-faq .dm-faq-item[open] .dm-faq-q h3 {
    color: #4688af;
}

/* 加減號 */
.dm-faq .dm-faq-ic {
    position: relative;
    -webkit-flex: 0 0 14px;
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    margin: 7px 0 0 14px;
}

.dm-faq .dm-faq-ic::before,
.dm-faq .dm-faq-ic::after {
    content: "";
    position: absolute;
    background: #4688af;
    -webkit-transition: -webkit-transform 0.25s;
    transition: transform 0.25s;
}

.dm-faq .dm-faq-ic::before {
    left: 0;
    top: 6px;
    width: 14px;
    height: 2px;
}

.dm-faq .dm-faq-ic::after {
    left: 6px;
    top: 0;
    width: 2px;
    height: 14px;
}

.dm-faq .dm-faq-item[open] .dm-faq-ic::after {
    -webkit-transform: scaleY(0);
    transform: scaleY(0);
}

/* ---------- 答案 ---------- */
.dm-faq .dm-faq-a {
    padding: 0 34px 22px 34px;
}

.dm-faq .dm-faq-a p {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.9;
    color: #555;
    text-align: justify;
}

.dm-faq .dm-faq-a p:last-child {
    margin-bottom: 0;
}

.dm-faq .dm-faq-a a {
    color: #4688af;
    text-decoration: underline;
}

.dm-faq .dm-faq-a a:hover {
    color: #033146;
}

/* 聯絡方式條列（就醫指引第 4 題） */
.dm-faq .dm-faq-tel {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.dm-faq .dm-faq-tel li {
    position: relative;
    padding-left: 16px;
    font-size: 15px;
    line-height: 2;
    color: #555;
}

.dm-faq .dm-faq-tel li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #bfd8e5;
}

/* ---------- 響應式 ---------- */
@media screen and (max-width: 1400px) {
    .dm-faq {
        padding: 52px 0 60px;
    }

    .dm-faq--guide .dm-faq-in {
        width: 76%;
    }
}

@media screen and (max-width: 768px) {
    .dm-faq {
        padding: 36px 0 42px;
    }

    .dm-faq .dm-faq-in,
    .dm-faq--price .dm-faq-in,
    .dm-faq--guide .dm-faq-in {
        width: auto;
        max-width: none;
        margin: 0 16px;
    }

    .dm-faq .dm-faq-head {
        margin-bottom: 20px;
    }

    .dm-faq .dm-faq-head h2 {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .dm-faq .dm-faq-head .dm-faq-en {
        margin-top: 6px;
        font-size: 11px;
        letter-spacing: 2px;
    }

    .dm-faq .dm-faq-head .dm-faq-desc {
        margin-top: 8px;
        font-size: 14px;
    }

    .dm-faq .dm-faq-head::after {
        margin-top: 12px;
    }

    .dm-faq .dm-faq-q {
        padding: 15px 2px;
    }

    .dm-faq .dm-faq-num {
        -webkit-flex-basis: 24px;
        flex-basis: 24px;
        width: 24px;
        font-size: 14px;
        line-height: 1.6;
    }

    .dm-faq .dm-faq-q h3 {
        font-size: 16px;
        line-height: 1.6;
    }

    .dm-faq .dm-faq-ic {
        -webkit-flex-basis: 12px;
        flex-basis: 12px;
        width: 12px;
        height: 12px;
        margin: 6px 0 0 10px;
    }

    .dm-faq .dm-faq-ic::before {
        top: 5px;
        width: 12px;
    }

    .dm-faq .dm-faq-ic::after {
        left: 5px;
        height: 12px;
    }

    .dm-faq .dm-faq-a {
        padding: 0 0 16px 24px;
    }

    .dm-faq .dm-faq-a p,
    .dm-faq .dm-faq-tel li {
        font-size: 14px;
        line-height: 1.85;
        text-align: left;
    }

    .dm-faq .dm-faq-tel li::before {
        top: 11px;
    }
}

@media screen and (max-width: 500px) {
    .dm-faq .dm-faq-a {
        padding-left: 0;
    }
}
