
/*----------------------------------------*/

/* 套用於文章內文的標題 */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: 'Noto Sans JP', sans-serif; /* 日式字體，建議啟用 */
    color: #c06c2f; /* 深溫暖橘色作為主標題色 */
    line-height: 1.4;
    margin: 20px 0 15px;
    padding-bottom: 5px;
}

/* 特定層級樣式 */
.entry-content h1 {
    background-color: #f9e7d4; /* 溫暖橘色背景，柔和的日式暖意 */
    font-size: 2.2em;
    border-bottom: 3px solid #d4a373; /* 溫暖橘色底線 */
    font-weight: 700;
}

.entry-content h2 {
    font-size: 1.8em;
    font-weight: 600;
    position: relative;
    padding: 10px 20px 10px 40px; /* 左側留空間給書籤效果 */
    background: linear-gradient(to right, #f9e7d4 30px, #fff 30px); /* 書籤背景與內容分隔 */
    color: #c06c2f; /* 深溫暖橘色文字 */
    border-radius: 0 5px 5px 0; /* 右側圓角，模擬書籤邊緣 */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); /* 輕微陰影，增加立體感 */
}

/* 書籤的左側垂直條效果 */
.entry-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 100%;
    background-color: #8aa77a; /* 抹茶綠色作為書籤條 */
    border-right: 2px solid #d4a373; /* 橘色邊線，增添細節 */
}

.entry-content h3 {
    font-size: 1.5em;
    color: #8aa77a; /* 抹茶綠色作為次標題色 */
    font-weight: 500;
}

.entry-content h4 {
    font-size: 1.3em;
    color: #5c4b3f; /* 親切灰棕色 */
    font-weight: 500;
}

.entry-content h5,
.entry-content h6 {
    font-size: 1.1em;
    color: #6f8c65; /* 深抹茶綠色 */
    font-weight: 400;
    font-style: italic; /* 輕微斜體，增添溫暖感 */
}

/* 懸停效果 */
.entry-content h1:hover,
.entry-content h2:hover,
.entry-content h3:hover,
.entry-content h4:hover,
.entry-content h5:hover,
.entry-content h6:hover {
    color: #d4a373; /* 懸停時轉為溫暖橘色 */
    transition: color 0.3s ease;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .entry-content h1 { font-size: 1.8em; }
    .entry-content h2 { font-size: 1.5em; }
    .entry-content h3 { font-size: 1.3em; }
    .entry-content h4 { font-size: 1.1em; }
    .entry-content h5,
    .entry-content h6 { font-size: 1em; }
}

/*----------------------------------------*/

/* 適用於自訂 HTML 區塊 */
.custom-html-block {
    background-color: #f9e7d4; /* 溫暖橘色背景，柔和的日式暖意 */
    border: 2px solid #d4a373; /* 稍深的橘色邊框 */
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px; /* 圓潤邊角，增添溫暖感 */
    font-family: 'Noto Sans JP', sans-serif; /* 日式字體，建議在 WordPress 啟用 */
    color: #5c4b3f; /* 親切灰棕色文字，柔和易讀 */
    box-shadow: 0 4px 8px rgba(212, 163, 115, 0.1); /* 輕微陰影，增加層次 */
    line-height: 1.6; /* 舒適的行高 */
}

/* 覆蓋標題樣式，避免 .entry-content 影響 */
.custom-html-block h1,
.custom-html-block h2,
.custom-html-block h3,
.custom-html-block h4,
.custom-html-block h5,
.custom-html-block h6 {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0 0 15px;
    padding-bottom: 5px;
}

.custom-html-block h2 {
    color: #c06c2f; /* 深溫暖橘色，作為主標題色 */
    font-size: 1.8em;
    border-bottom: 2px solid #d4a373; /* 橘色底線 */
}

.custom-html-block h3 {
    color: #d4a373; /* 溫暖橘色子標題 */
    font-size: 1.4em;
    margin: 15px 0 10px;
}

/* 清單樣式 */
.custom-html-block ul {
    list-style: none;
    padding-left: 0;
}

.custom-html-block ul li {
    position: relative;
    padding-left: 20px;
    margin: 10px 0;
}

.custom-html-block ul li::before {
    content: '✿'; /* 日式風格的花朵符號 */
    color: #8aa77a; /* 抹茶綠色作為裝飾色 */
    position: absolute;
    left: 0;
}

/* 連結樣式 */
.custom-html-block a {
    color: #6f8c65; /* 深抹茶綠色連結 */
    text-decoration: none;
    transition: color 0.3s ease;
}

.custom-html-block a:hover {
    color: #8aa77a; /* 抹茶綠色懸停效果 */
    text-decoration: underline;
}

/* 段落樣式 */
.custom-html-block p {
    color: #5c4b3f; /* 親切灰棕色 */
    margin: 10px 0;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .custom-html-block {
        padding: 15px;
        margin: 15px 0;
    }

    .custom-html-block h2 {
        font-size: 1.5em;
    }

    .custom-html-block h3 {
        font-size: 1.2em;
    }
}

/*----------------------------------------*/

/* 特定於文章目錄的樣式，基於 custom-html-block */
#toc-list {
    /* 繼承 custom-html-block 的基本樣式 */
    padding-left: 0; /* 確保清單不額外縮進 */
}

#toc-list .toc-h3 {
    margin-left: 20px; /* 保持 H3 縮進 */
}

#toc-list .toc-h4 {
    margin-left: 40px; /* 保持 H4 縮進 */
}

/*----------------------------------------*/
