:root {
    --site-ink: #18324a;
    --site-muted: #66788a;
    --site-line: #d9e2e8;
    --site-brand: #2083b3;
    --site-brand-dark: #17678e;
    --site-white: #fff;
}

.quote-notice li { color: #b43d12; }

.site-nav {
    display: flex;
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto 26px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.site-brand { color: #fff; font-size: 20px; font-weight: 900; text-decoration: none; }
.site-nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.site-nav-links a {
    padding: 8px 10px;
    border-radius: 8px;
    color: rgba(255,255,255,.92);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.site-nav-links a:hover, .site-nav-links a:focus-visible { background: rgba(255,255,255,.16); }
.nav-toggle {
    display: none;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 8px;
    padding: 7px 12px;
    color: #fff;
    background: rgba(255,255,255,.12);
    font-weight: 800;
}

.ad-preview {
    border: 1px dashed #aebbc5;
    border-radius: 12px;
    color: #71818d;
    background: #f7f9fa;
    text-align: center;
}
.ad-preview-inline { min-height: 92px; margin: 18px 0 24px; padding: 18px; }
.ad-preview span, .mobile-ad-preview span {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 6px;
    border: 1px solid #b8c3ca;
    border-radius: 4px;
    font-size: 10px;
    letter-spacing: .08em;
}
.ad-preview p { margin: 8px 0 0; font-size: 12px; }
.ads-live .ad-preview, .ads-live .mobile-ad-preview { display: none; }
.mobile-ad-preview { display: none; }

.site-footer { color: #d8e5ed; background: #173247; }
.footer-inner {
    display: grid;
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 34px 0 100px;
    gap: 18px;
}
.footer-inner strong { color: #fff; font-size: 18px; }
.footer-inner p { max-width: 720px; margin: 7px 0 0; font-size: 13px; line-height: 1.7; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-inner a { color: #d8e5ed; font-size: 13px; text-decoration: none; }
.footer-inner a:hover, .footer-inner a:focus-visible { color: #fff; text-decoration: underline; }
.footer-inner small { color: #8fa6b5; }

.cookie-banner {
    position: fixed;
    z-index: 1200;
    right: 16px;
    bottom: 16px;
    left: 16px;
    display: flex;
    max-width: 920px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    border: 1px solid #bdd0dc;
    border-radius: 14px;
    color: var(--site-ink);
    background: #fff;
    box-shadow: 0 18px 48px rgba(20,48,68,.22);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 5px 0 0; color: var(--site-muted); font-size: 12px; line-height: 1.55; }
.cookie-banner a { color: var(--site-brand-dark); }
.cookie-actions { display: flex; flex: 0 0 auto; gap: 8px; }

.content-page {
    margin: 0;
    color: var(--site-ink);
    background: #f2f7fa;
    font-family: "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif;
}
.content-page * { box-sizing: border-box; }
.content-page button { font: inherit; cursor: pointer; }
.content-hero {
    padding: 22px 0 42px;
    color: #fff;
    background: linear-gradient(125deg, #126c98, #2b9ac6 60%, #54b8d7);
}
.content-hero-inner, .article-shell { width: min(900px, calc(100% - 28px)); margin: 0 auto; }
.content-hero h1 { margin: 0; font-size: clamp(30px, 5vw, 46px); }
.content-hero p { max-width: 720px; margin: 10px 0 0; color: rgba(255,255,255,.9); line-height: 1.7; }
.article-shell { padding: 30px 0 60px; }
.article-card {
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid var(--site-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(25,55,77,.07);
}
.article-card h2, .article-card h3 { margin-top: 0; color: #17678e; }
.article-card p, .article-card li { line-height: 1.8; }
.article-card li + li { margin-top: 8px; }
.article-card table { width: 100%; border-collapse: collapse; }
.article-card th, .article-card td { padding: 11px; border: 1px solid var(--site-line); text-align: left; }
.article-card th { background: #eef7fb; }
.article-note { border-left: 5px solid #ef8b18; background: #fff9ef; }
.page-cta {
    display: inline-block;
    padding: 11px 16px;
    border-radius: 9px;
    color: #fff;
    background: var(--site-brand);
    font-weight: 800;
    text-decoration: none;
}
.cookie-secondary { color: var(--site-brand-dark); background: #e8f5fb; }
.contact-qr { display: block; width: min(360px, 100%); height: auto; margin: 18px auto; }
.faq-list details { padding: 15px 0; border-bottom: 1px solid var(--site-line); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary { cursor: pointer; color: #184f70; font-weight: 900; }
.faq-list details p { margin-bottom: 0; }

@media (max-width: 760px) {
    .site-nav { position: relative; margin-bottom: 18px; }
    .nav-toggle { display: block; }
    .site-nav-links {
        position: absolute;
        z-index: 20;
        top: calc(100% + 8px);
        right: 0;
        display: none;
        min-width: 230px;
        padding: 10px;
        border: 1px solid rgba(255,255,255,.35);
        border-radius: 12px;
        background: #17678e;
        box-shadow: 0 14px 28px rgba(10,38,55,.24);
    }
    .site-nav-links.is-open { display: grid; }
    .site-nav-links a { padding: 10px; }
    .mobile-ad-preview {
        position: fixed;
        z-index: 800;
        right: 8px;
        bottom: 8px;
        left: 8px;
        display: block;
        min-height: 52px;
        padding: 14px 10px;
        border: 1px dashed #8798a4;
        border-radius: 10px;
        color: #647682;
        background: rgba(255,255,255,.96);
        box-shadow: 0 8px 22px rgba(20,48,68,.18);
        text-align: center;
        font-size: 12px;
    }
    .cookie-banner { bottom: 70px; align-items: stretch; flex-direction: column; }
    .cookie-actions { display: grid; grid-template-columns: 1fr; }
    .article-card { padding: 18px; overflow-x: auto; }
}
