﻿/* --- CSS 修改說明：已將樣式限定在 main 標籤內，避免影響共用版型 --- */

/* 原本的 body 樣式改為設定在 main，只影響內容區塊的字體與行高 */
main {
    font-family: "Microsoft JhengHei", "Heiti TC", sans-serif;
    color: #333;
    line-height: 1.8;
}

    /* 標題樣式限定在 main 底下 */
    main h1 {
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 1.5rem;
    }

    main h2 {
        font-weight: 600;
        color: #d35400; /* 使用溫暖的橘色系 */
        margin-top: 3rem;
        margin-bottom: 1.5rem;
        border-bottom: 2px solid #eee;
        padding-bottom: 10px;
    }

    main h3 {
        font-weight: 600;
        color: #2c3e50;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

/* 其他自定義類別樣式 (原本就是 class 所以影響較小，但也建議保持現狀或視需要加 main) */
.article-lead {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 2rem;
}

.toc-box {
    background-color: #f8f9fa;
    border-left: 5px solid #d35400;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

    .toc-box ul {
        list-style: none;
        padding-left: 0;
        margin-bottom: 0;
    }

    .toc-box a {
        text-decoration: none;
        color: #333;
        font-weight: 500;
        display: block;
        padding: 5px 0;
        transition: color 0.3s;
    }

        .toc-box a:hover {
            color: #d35400;
        }

.highlight-box {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

/* FAQ Accordion 優化 */
.accordion-button:not(.collapsed) {
    color: #d35400;
    background-color: #fff3cd;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(211, 84, 0, 0.25);
}
