html {
    overflow-x: clip;
}
body {
    font-family: "Noto Sans TC", system-ui, sans-serif;
    overflow-x: clip;
}
.mobile-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.25s ease-out,
        visibility 0.25s;
}
.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Hero banner — aspect ratio 1440/540（Figma 設計稿尺寸） */
.hero-img {
    aspect-ratio: 1440 / 540;
}

/* ============================================================
       Rich-text container：給後台 WYSIWYG 編輯器吐出的 HTML 用
       內容（p / strong / em / a / ul / ol / h2~h4 / blockquote / img / hr）
       的視覺呈現由這邊統一定義，工程師串接時把編輯器 HTML 直接插進
       .rich-text 容器內即可（不需要 inline class）
       ============================================================ */
.rich-text {
    color: #4b5563; /* ink */
    font-size: 1rem;
    line-height: 1.75;
}
@media (min-width: 768px) {
    .rich-text {
        font-size: 1.125rem;
        line-height: 1.85;
    }
}
.rich-text > * + * {
    margin-top: 1.25rem;
}

.rich-text p {
    margin: 0;
}
.rich-text strong,
.rich-text b {
    font-weight: 600;
    color: #111827;
}
.rich-text em,
.rich-text i {
    font-style: italic;
}

.rich-text a {
    color: #0016a2;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
}
.rich-text a:hover {
    color: #000f78;
}

.rich-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.rich-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.rich-text h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.rich-text ul,
.rich-text ol {
    padding-left: 1.5rem;
    margin: 0;
}
.rich-text ul {
    list-style: disc;
}
.rich-text ol {
    list-style: decimal;
}
.rich-text li + li {
    margin-top: 0.5rem;
}

.rich-text blockquote {
    border-left: 4px solid #e1e2fa;
    padding-left: 1rem;
    color: #6b7280;
    font-style: italic;
    margin: 0;
}

.rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.rich-text hr {
    border: 0;
    border-top: 1px solid #e1e2fa;
    margin: 2.5rem 0;
}

.rich-text table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.rich-text th,
.rich-text td {
    border: 1px solid #e1e2fa;
    padding: 0.5rem 0.75rem;
    text-align: left;
}
.rich-text th {
    background: #eff0ff;
    font-weight: 600;
    color: #111827;
}
