:root {
    --ink: #163247;
    --ink-soft: #4d687b;
    --paper: #ffffff;
    --paper-warm: #f1f9fd;
    --green: #278bb9;
    --green-dark: #155477;
    --gold: #b97718;
    --red: #a84f61;
    --line: #cfe1eb;
    --shadow: 0 16px 44px rgba(30, 95, 132, 0.12);
    --content: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    font-size: 17px;
    line-height: 1.75;
    letter-spacing: 0;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid #f2b84b;
    outline-offset: 3px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    transform: translateY(-160%);
    padding: 8px 12px;
    background: var(--paper);
    color: var(--ink);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(18, 99, 143, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

.header-inner {
    width: min(var(--content), calc(100% - 40px));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: #fff;
    text-decoration: none;
    flex: 0 0 auto;
}

.brand img {
    width: 184px;
    height: auto;
}

.brand span {
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.28);
    color: #dff5ff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.primary-navigation {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 15px;
    font-weight: 700;
}

.primary-navigation a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}

.primary-navigation a:hover {
    color: #fff;
}

.primary-navigation .nav-cta {
    padding: 10px 15px;
    background: #ffffff;
    border-radius: 4px;
    color: #155477;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: transparent;
    color: #fff;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: currentColor;
    content: "";
}

.nav-toggle-icon::before {
    transform: translateY(-6px);
}

.nav-toggle-icon::after {
    transform: translateY(4px);
}

.page-hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: flex-end;
    background-image: linear-gradient(90deg, rgba(244, 251, 255, 0.98) 0%, rgba(224, 244, 253, 0.92) 50%, rgba(220, 242, 252, 0.28) 100%), var(--hero-image);
    background-position: center;
    background-size: cover;
    color: var(--ink);
}

.hero-inner {
    width: min(var(--content), calc(100% - 40px));
    margin: 0 auto;
    padding: 118px 0 82px;
}

.hero-inner > * {
    max-width: 690px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    text-transform: uppercase;
}

.page-hero .eyebrow,
.closing-cta .eyebrow {
    color: #0d638f;
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.26;
    letter-spacing: 0;
    text-wrap: balance;
}

p,
li,
summary {
    text-wrap: pretty;
}

h1 {
    margin-bottom: 22px;
    font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
    font-size: 56px;
    font-weight: 700;
}

h2 {
    margin-bottom: 18px;
    font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
    font-size: 40px;
}

h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.page-hero p:not(.eyebrow) {
    margin: 0;
    color: var(--ink-soft);
    font-size: 19px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.button-primary {
    background: #278bb9;
    color: #ffffff;
}

.button-secondary {
    border-color: #278bb9;
    background: rgba(255, 255, 255, 0.88);
    color: #155477;
}

.button-light {
    background: #fff;
    color: var(--green-dark);
}

.trust-strip {
    background: #2b89b4;
    color: #fff;
}

.trust-strip-inner {
    width: min(var(--content), calc(100% - 40px));
    min-height: 76px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
}

.trust-strip span {
    padding: 8px 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.trust-strip span:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.content-band {
    padding: 92px 0;
}

.content-band-muted {
    background: var(--paper-warm);
}

.content-inner {
    width: min(var(--content), calc(100% - 40px));
    margin: 0 auto;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 42px;
}

.section-heading-wide {
    max-width: 850px;
}

.section-heading-wide > p:last-child {
    text-wrap: balance;
}

.section-heading > p:last-child {
    margin-bottom: 0;
    color: var(--ink-soft);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.service-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.service-card a {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.service-card figure {
    aspect-ratio: 4 / 3;
    margin: 0;
    overflow: hidden;
    background: #e1f2f9;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.service-card:hover img {
    transform: scale(1.025);
}

.service-card-copy {
    padding: 26px;
}

.service-card-copy > span {
    display: block;
    margin-bottom: 8px;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.service-card-copy p {
    color: var(--ink-soft);
}

.service-card-copy strong {
    color: var(--green);
    font-size: 14px;
}

.information-list {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 28px;
    counter-reset: item;
    list-style: none;
}

.information-list li {
    min-height: 82px;
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    counter-increment: item;
}

.information-list li span::before {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--green);
    border-radius: 50%;
    color: #fff;
    content: counter(item, decimal-leading-zero);
    font-size: 12px;
    font-weight: 800;
}

.information-list p {
    margin: 0;
}

.fact-band {
    background: #1a6f99;
    color: #fff;
}

.fact-band .section-heading {
    margin-bottom: 34px;
}

.fact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.fact-grid article {
    padding: 34px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.fact-grid article:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.fact-grid p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.72);
}

.faq-band {
    background: var(--paper-warm);
}

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-list details {
    border-bottom: 1px solid var(--line);
}

.faq-list summary {
    position: relative;
    padding: 22px 52px 22px 0;
    cursor: pointer;
    font-size: 19px;
    font-weight: 800;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    position: absolute;
    top: 19px;
    right: 4px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    content: "+";
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list details p {
    max-width: 820px;
    margin: 0;
    padding: 0 52px 22px 0;
    color: var(--ink-soft);
}

.closing-cta {
    padding: 78px 0;
    background: linear-gradient(135deg, #227fad, #62b9dd);
    color: #fff;
}

.closing-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 50px;
}

.closing-cta h2 {
    max-width: 760px;
}

.closing-cta p:not(.eyebrow) {
    max-width: 760px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.78);
}

.site-footer {
    padding: 70px 0 24px;
    background: #103f5b;
    color: rgba(255, 255, 255, 0.74);
}

.footer-inner {
    width: min(var(--content), calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
    gap: 42px;
}

.footer-brand img {
    width: 190px;
    margin-bottom: 20px;
}

.footer-brand strong {
    display: block;
    color: #fff;
    font-size: 18px;
}

.site-footer h2 {
    margin-bottom: 14px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
}

.site-footer a {
    display: block;
    margin: 7px 0;
    color: rgba(255, 255, 255, 0.74);
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer p {
    margin: 6px 0;
    font-size: 14px;
}

.footer-bottom {
    width: min(var(--content), calc(100% - 40px));
    margin: 46px auto 0;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.floating-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    background: #25d366;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
    color: #102116;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.not-found {
    width: min(760px, calc(100% - 40px));
    min-height: 620px;
    margin: 0 auto;
    padding: 140px 0 100px;
}

.not-found .button-secondary {
    border-color: var(--green);
    color: var(--green);
}

.editorial-index-hero {
    padding: 92px 0 78px;
    background: var(--paper-warm);
    border-bottom: 1px solid var(--line);
}

.editorial-index-hero .content-inner {
    max-width: var(--content);
}

.editorial-index-hero h1 {
    max-width: 760px;
    margin-bottom: 20px;
    color: var(--green-dark);
    font-size: 50px;
}

.editorial-index-hero p:last-child {
    max-width: 760px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 19px;
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.editorial-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    box-shadow: var(--shadow);
}

.editorial-card > a {
    display: block;
    height: 100%;
    text-decoration: none;
}

.editorial-card figure {
    aspect-ratio: 16 / 9;
    margin: 0;
    overflow: hidden;
    background: var(--paper-warm);
}

.editorial-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editorial-card-copy {
    padding: 28px;
}

.editorial-card-copy h2 {
    margin-bottom: 14px;
    font-size: 29px;
}

.editorial-card-copy p:not(.editorial-meta) {
    color: var(--ink-soft);
}

.editorial-card-copy strong {
    color: var(--green);
    font-size: 14px;
}

.editorial-meta {
    margin: 0 0 12px;
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
}

.editorial-article-hero {
    padding: 72px 0;
    background: var(--paper-warm);
    border-bottom: 1px solid var(--line);
}

.editorial-article-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    align-items: center;
    gap: 56px;
}

.editorial-article-hero h1 {
    margin-bottom: 22px;
    color: var(--green-dark);
    font-size: 46px;
}

.editorial-article-hero p:last-child {
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: 18px;
}

.editorial-article-hero figure {
    aspect-ratio: 16 / 9;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    box-shadow: var(--shadow);
}

.editorial-article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editorial-article-layout {
    padding-top: 76px;
    padding-bottom: 92px;
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(250px, 1fr);
    align-items: start;
    gap: 64px;
}

.editorial-entry {
    min-width: 0;
}

.editorial-entry > h2 {
    margin-top: 50px;
    margin-bottom: 18px;
    color: var(--green-dark);
    font-size: 32px;
}

.editorial-entry > p,
.editorial-entry > ul {
    color: var(--ink);
}

.editorial-entry > ul {
    padding-left: 1.35em;
}

.editorial-entry > ul li + li {
    margin-top: 8px;
}

.editorial-entry a {
    color: var(--green);
    font-weight: 750;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.editorial-evidence-boundary,
.editorial-callout,
.editorial-author {
    margin: 0 0 30px;
    padding: 22px 24px;
    border-left: 4px solid var(--red);
    background: #f3f9fc;
}

.editorial-evidence-boundary p,
.editorial-callout p,
.editorial-author p:last-child {
    margin: 8px 0 0;
}

.editorial-quick-read {
    margin: 0 0 40px;
    padding: 28px;
    border: 1px solid rgba(39, 139, 185, 0.34);
    background: #f7fcff;
}

.editorial-quick-read .eyebrow {
    margin-bottom: 8px;
}

.editorial-quick-read h2 {
    margin-bottom: 12px;
    font-size: 30px;
}

.editorial-quick-read p:last-child {
    margin: 0;
}

.editorial-sources {
    margin-top: 54px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.editorial-sources h2 {
    font-size: 30px;
}

.editorial-sources ol {
    padding-left: 1.3em;
}

.editorial-sources li {
    overflow-wrap: anywhere;
}

.editorial-sources li + li {
    margin-top: 14px;
}

.editorial-sources li span {
    display: block;
    color: var(--ink-soft);
    font-size: 14px;
}

.editorial-sources > p {
    color: var(--ink-soft);
    font-size: 14px;
}

.editorial-author {
    margin-top: 44px;
    border-left-color: var(--green);
    background: #edf8fd;
}

.editorial-author h2 {
    margin-bottom: 10px;
    font-size: 27px;
}

.editorial-aside {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 18px;
}

.editorial-aside-block {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

.editorial-aside-block > span {
    display: block;
    margin-bottom: 10px;
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.editorial-aside-block p {
    margin-top: 0;
    color: var(--ink-soft);
    font-size: 15px;
}

.editorial-aside-block .button {
    width: 100%;
}

.editorial-aside-block nav {
    display: grid;
    gap: 10px;
}

.editorial-aside-block nav a {
    color: var(--green);
    font-size: 15px;
    font-weight: 750;
}

@media (max-width: 1080px) {
    .header-inner {
        min-height: 74px;
    }

    .brand img {
        width: 160px;
    }

    .brand span {
        display: none;
    }

    .primary-navigation {
        gap: 14px;
        font-size: 14px;
    }

    h1 {
        font-size: 48px;
    }

    .editorial-article-hero-layout {
        grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
        gap: 36px;
    }

    .editorial-article-layout {
        gap: 40px;
    }
}

@media (max-width: 820px) {
    .site-footer a {
        min-height: 44px;
        display: flex;
        align-items: center;
        margin: 0;
        padding: 8px 0;
    }

    .nav-toggle {
        display: block;
        flex: 0 0 auto;
    }

    .primary-navigation {
        position: fixed;
        top: 74px;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 99;
        padding: 28px 20px 40px;
        display: none;
        align-items: stretch;
        overflow-y: auto;
        background: #105d84;
        font-size: 17px;
    }

    .primary-navigation.is-open {
        display: flex;
        flex-direction: column;
    }

    .primary-navigation a {
        padding: 12px 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .primary-navigation .nav-cta {
        margin-top: 14px;
        padding: 13px 16px;
        border-bottom: 0;
        text-align: center;
    }

    .page-hero {
        min-height: 600px;
        background-image: linear-gradient(180deg, rgba(236, 249, 255, 0.7) 0%, rgba(228, 246, 254, 0.98) 72%), var(--hero-image);
        background-position: 58% center;
    }

    .hero-inner {
        padding: 130px 0 60px;
    }

    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 34px;
    }

    .trust-strip-inner {
        grid-template-columns: repeat(2, 1fr);
        padding: 12px 0;
    }

    .trust-strip span,
    .trust-strip span:last-child {
        min-height: 54px;
        display: grid;
        place-items: center;
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .service-grid,
    .fact-grid {
        grid-template-columns: 1fr;
    }

    .fact-grid article,
    .fact-grid article:last-child {
        border-right: 1px solid rgba(255, 255, 255, 0.18);
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .information-list {
        grid-template-columns: 1fr;
    }

    .closing-cta-inner {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .editorial-grid,
    .editorial-article-hero-layout,
    .editorial-article-layout {
        grid-template-columns: 1fr;
    }

    .editorial-article-hero-layout {
        gap: 34px;
    }

    .editorial-article-hero figure {
        order: -1;
    }

    .editorial-aside {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    body {
        font-size: 16px;
    }

    .header-inner,
    .hero-inner,
    .content-inner,
    .trust-strip-inner,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 28px, var(--content));
    }

    .brand img {
        width: 150px;
    }

    .page-hero {
        min-height: 610px;
    }

    h1 {
        font-size: 37px;
    }

    h2 {
        font-size: 30px;
    }

    .page-hero p:not(.eyebrow) {
        font-size: 17px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .content-band {
        padding: 68px 0;
    }

    .service-grid {
        gap: 16px;
    }

    .service-card-copy {
        padding: 22px;
    }

    .fact-grid article {
        padding: 26px 22px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .editorial-index-hero {
        padding: 64px 0 56px;
    }

    .editorial-index-hero h1,
    .editorial-article-hero h1 {
        font-size: 35px;
    }

    .editorial-article-hero {
        padding: 48px 0;
    }

    .editorial-article-layout {
        padding-top: 54px;
        padding-bottom: 68px;
        gap: 42px;
    }

    .editorial-entry > h2,
    .editorial-quick-read h2,
    .editorial-sources h2 {
        font-size: 27px;
    }

    .editorial-card-copy,
    .editorial-quick-read {
        padding: 22px;
    }

    .editorial-aside {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .service-card img {
        transition: none;
    }
}
