
        iframe {
            max-width: 100%;
        }

        a {
            text-decoration: none;
        }

        article p {
            margin-top: 1rem;

        }

        article h2 {

            font-weight: 700;
            font-size: 2rem;
            border-left: 5px solid red;
            padding: 0 0 0 1rem;
        }

        article h3 {
            font-weight: 700;
            margin-top: 1rem;
            font-size: 1.5rem;

        }

        article .toc {
            position: relative;
            padding: 1rem;
            margin: 1rem 0;
            color: #16481e;
            background-color: #afe1b7;
            border: 1px solid #afe1b7;
            border-radius: var(--bs-alert-border-radius);
        }

        article .toc h4 {
            margin-top: 0px;
            font-size: 1.5rem;
        }

        article blockquote {
            background-color: #ffe393;
            color: #000;
            border: 1px solid #eab522;
            padding: 1rem;
        }

        article img {
            max-width: 100%;
            margin-left: auto !important;
            margin-right: auto !important;
        }

        .multi-line {
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 5;
            -webkit-box-orient: vertical;
        }

        .mce-toc ul {
            list-style: none;
        }

        .toc-h3 {
            text-indent: 2em;
        }

        .toc-h4 {
            text-indent: 4em;
        }
        article .table thead th {
            background-color: #495057;
            color: white;
            font-weight: 600;
            border: none;
        }

        article .table tbody td {
            padding: 12px 15px;
            vertical-align: middle;
        }

        article .table tbody tr:hover {
            background-color: #f1f3f5;
            transition: background-color 0.2s ease;
        }


/* 自定義 Footer 樣式 */
.custom-footer {
    background-color: #f8f9fa; /* 淺灰色背景 */
    color: #6c757d; /* 次要文字顏色 */
    padding: 2rem 0 1rem;
    border-top: 1px solid #dee2e6; /* 頂部分隔線 */
    margin-top: 2rem; /* 與上方內容的間距 */
}

/* 確保 footer 的 container 與主 content 的 container 對齊 */
.custom-footer .container {
    /* 保持與 Bootstrap 的 container 相同的響應式寬度 */
    width: 100%;
    padding-right: var(--bs-gutter-x, 0.75rem);
    padding-left: var(--bs-gutter-x, 0.75rem);
    margin-right: auto;
    margin-left: auto;
    /* 可以根據需要加入最大寬度，例如 Bootstrap 的預設斷點 */
    /* max-width: 1200px; */ /* 如果想固定最大寬度，取消此行註釋 */
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem; /* 區塊間距 */
    margin-bottom: 1.5rem;
}

.footer-section {
    flex: 1;
    min-width: 200px; /* 最小寬度，防止過度擠壓 */
}

.footer-section h5 {
    color: #343a40; /* 主要文字顏色 */
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: bold;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease; /* 滑鼠懸停效果 */
}

.footer-links a:hover {
    color: #007bff; /* Bootstrap 主色調 */
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info span {
    font-size: 0.85rem;
}

.back-to-top {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.back-to-top:hover {
    background-color: #e9ecef; /* 懸停背景色 */
    text-decoration: none;
}

/* 在小螢幕上調整佈局 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .back-to-top {
        align-self: flex-start; /* 讓回頂部連結靠左對齊 */
    }
}