/* =====================================================================
   崇業聯合會計師事務所 — Pages（頁面專屬樣式）
   ===================================================================== */

/* ================= 首頁 Hero ================= */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex; align-items: center;
    overflow: hidden;
    color: #fff;
    /* 缺圖時的 Logo 藍漸層備援（位於最底層，圖片載入後會覆蓋其上） */
    background:
        radial-gradient(circle at 78% 24%, rgba(45,184,255,.30), transparent 42%),
        linear-gradient(120deg, var(--navy-900), var(--navy-700) 55%, var(--navy-600));
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transform: scale(1.08);
    transition: opacity 1.2s var(--ease), transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
/* 缺圖時顯示備援漸層；有背景圖時交由 .hero 底層處理，此層不遮擋 */
.hero__img-fallback { display: none; }
.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(4,35,63,.52) 0%, rgba(4,35,63,.28) 48%, rgba(4,35,63,.06) 100%);
}

.hero__inner { position: relative; z-index: 2; padding-top: 96px; }
.hero__content { display: none; max-width: 640px; }
.hero__content.is-active { display: block; animation: heroIn 1s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.hero__eyebrow {
    font-family: var(--font-en);
    letter-spacing: .3em; text-transform: uppercase;
    font-size: .8rem; font-weight: 600;
    color: var(--gold-400);
    display: block; margin-bottom: 1.2rem;
}
.hero__title {
    color: #fff;
    font-size: clamp(2.5rem, 6.5vw, 4.6rem);
    font-weight: 900; line-height: 1.12;
    letter-spacing: .02em;
    text-shadow: 0 6px 40px rgba(0,0,0,.3);
}
.hero__sub { margin-top: 1.4rem; font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.9); }
.hero__cta { display: flex; gap: 1rem; margin-top: 2.4rem; flex-wrap: wrap; }

.hero__nav {
    position: absolute; inset: 0; z-index: 3;
    pointer-events: none;
}
.hero__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(4,35,63,.35);
    color: #fff; cursor: pointer;
    pointer-events: auto;
    transition: background .25s, border-color .25s, transform .25s;
}
.hero__arrow:hover {
    background: rgba(4,35,63,.55);
    border-color: rgba(255,255,255,.6);
}
.hero__arrow--prev { left: clamp(1rem, 3vw, 2.5rem); }
.hero__arrow--next { right: clamp(1rem, 3vw, 2.5rem); }

.hero__dots {
    position: absolute; left: 50%; bottom: 2.2rem; transform: translateX(-50%);
    z-index: 3; display: flex; gap: .7rem;
}
.hero__dot {
    width: 30px; height: 4px; border-radius: 2px;
    padding: 0; border: 0;
    background: rgba(255,255,255,.4); transition: background .3s, width .3s;
    cursor: pointer;
}
.hero__dot.is-active { background: var(--gold-400); width: 46px; }

.hero__scroll {
    position: absolute; right: 3rem; bottom: 2.2rem; z-index: 3;
    width: 78px; height: 78px; border-radius: 50%;
    display: grid; place-items: center;
    color: #fff;
}
.hero__scroll-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 1px dashed rgba(255,255,255,.5);
    animation: spin 14s linear infinite;
}
.hero__scroll-text { font-family: var(--font-en); font-size: .72rem; letter-spacing: .12em; }
.hero__scroll::after {
    content: ""; position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%);
    width: 1px; height: 34px; background: linear-gradient(rgba(255,255,255,.6), transparent);
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
    .hero__slide {
        background-position: right center;
    }
    .hero__inner {
        text-align: center;
        padding-top: 80px;
    }
    .hero__content {
        max-width: none;
        margin-inline: auto;
    }
    .hero__eyebrow {
        letter-spacing: .22em;
    }
    .hero__cta {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    .hero__cta .btn {
        flex: none;
        width: min(100%, 300px);
        justify-content: center;
    }
    .hero__scroll { display: none; }
    .hero__arrow { width: 40px; height: 40px; }
    .hero__arrow--prev { left: .75rem; }
    .hero__arrow--next { right: .75rem; }
}

/* 首頁最新消息 — 手機橫向滑動 */
#news .news-home__more { display: none; }

@media (max-width: 640px) {
    #news .sec-head--split .link-arrow { display: none; }
    #news .news-home__more {
        display: flex;
        justify-content: flex-start;
        margin-top: 1.25rem;
    }
    #news .news-scroll {
        display: flex;
        flex-wrap: nowrap;
        gap: 1rem;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-right: -1.5rem;
        margin-left: 0;
        padding-left: 0;
        padding-right: 1.5rem;
        scroll-padding-inline-start: 0;
        scroll-padding-inline-end: 1.5rem;
        padding-bottom: .35rem;
    }
    #news .news-scroll::-webkit-scrollbar { display: none; }
    #news .news-scroll .news-card {
        flex: 0 0 min(82vw, 300px);
        scroll-snap-align: start;
        height: auto;
    }
    #news .news-scroll .news-card__excerpt {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* ================= 區塊標題（split）================= */
.sec-head--split {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 1.5rem; flex-wrap: wrap;
}

/* 消息卡空圖備援 */
.news-card__media.is-empty, .member-card__photo.is-empty {
    background: linear-gradient(135deg, var(--navy-100), #fff);
}

/* ================= 關於事務所 ================= */
.about-intro { position: relative; overflow: hidden; }
.about-intro__ghost { position: absolute; top: 2.5rem; right: -1rem; opacity: .8; }
.about-intro__grid {
    position: relative;
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center;
}
.about-intro__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 6; box-shadow: var(--shadow-lg); }
.about-intro__media img { width: 100%; height: 100%; object-fit: cover; }
.about-intro__media.is-empty {
    background:
        radial-gradient(circle at 30% 20%, rgba(45,184,255,.28), transparent 45%),
        linear-gradient(150deg, var(--navy-700), var(--navy-900));
}
.about-intro__badge {
    position: absolute; right: 1.4rem; bottom: 1.4rem;
    background: rgba(255,255,255,.95); backdrop-filter: blur(6px);
    border-radius: 16px; padding: 1rem 1.4rem;
    display: flex; align-items: center; gap: .7rem;
    box-shadow: var(--shadow-md);
}
.about-intro__badge-num { font-family: var(--font-en); font-size: 2.8rem; font-weight: 800; color: var(--gold-600); line-height: 1; }
.about-intro__badge-txt { font-size: .85rem; font-weight: 700; color: var(--navy-800); line-height: 1.2; }

.about-intro__lead { font-size: 1.2rem; font-weight: 700; color: var(--navy-800); margin: 1.2rem 0; }
.about-intro__text > p { color: var(--ink-soft); line-height: 1.85; }
.about-intro__text .btn { margin-top: 2rem; }
.about-intro__values { margin: 1.8rem 0 2.2rem; display: grid; gap: 1rem; }
.about-intro__values li {
    display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: .5rem 1rem;
    padding-bottom: 1rem; border-bottom: 1px dashed var(--line);
    color: var(--muted); font-size: .95rem;
}
.about-intro__values strong { color: var(--navy-800); font-size: 1.15rem; letter-spacing: .08em; }
.about-intro__vico {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: var(--gold-100); color: var(--gold-600); grid-row: span 1;
}

@media (max-width: 900px) {
    .about-intro__grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-intro__media { aspect-ratio: 16 / 11; max-height: 460px; }
}

/* ================= 服務項目（首頁） ================= */
.svc-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.15rem, 2.2vw, 1.75rem);
}

.svc-home-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.svc-home-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 144, 224, .18);
    box-shadow: 0 16px 40px rgba(7, 81, 127, .1);
}
.svc-home-card__visual {
    position: relative;
    margin: 0;
    padding: 0;
    line-height: 0;
    background: #f5fbff;
}
.svc-home-card__visual img {
    display: block;
    width: 100%;
    height: auto;
}
.svc-home-card:hover .svc-home-card__visual img { transform: none; }
.svc-home-card__visual.is-empty {
    background:
        radial-gradient(circle at 70% 30%, rgba(0, 144, 224, .22), transparent 45%),
        linear-gradient(135deg, var(--navy-700), var(--navy-900));
    min-height: 180px;
}
.svc-home-card__content {
    display: grid;
    gap: .5rem;
    padding: 1.15rem 1.35rem 1.45rem;
    border-top: 1px solid rgba(219, 234, 243, .75);
}
.svc-home-card__content h3 {
    margin: 0;
    font-size: 1.14rem;
    line-height: 1.45;
    transition: color .3s var(--ease);
}
.svc-home-card__content p {
    margin: 0;
    font-size: .92rem;
    line-height: 1.72;
    color: var(--muted);
}
.svc-home-card:hover h3 { color: var(--navy-600); }

@media (max-width: 900px) {
    .svc-home-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .svc-home-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .85rem;
    }
    .svc-home-card__content {
        padding: .85rem .75rem 1rem;
        gap: .35rem;
    }
    .svc-home-card__content h3 {
        font-size: .95rem;
        line-height: 1.4;
    }
    .svc-home-card__content p {
        font-size: .8rem;
        line-height: 1.55;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* ================= 數據 band ================= */
.stats-band { padding-block: 4rem; position: relative; overflow: hidden; }
.stats-band::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 85% 50%, rgba(0,144,224,.18), transparent 40%);
}

/* ================= 客戶充電服務 ================= */
.perk-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--line);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.perk-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 144, 224, .18);
}
.perk-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(165deg, #eef8ff 0%, #f8fcff 100%);
}
.perk-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.perk-card__media.is-empty {
    background:
        radial-gradient(circle at 70% 30%, rgba(0, 144, 224, .18), transparent 45%),
        linear-gradient(135deg, var(--navy-700), var(--navy-900));
    min-height: 180px;
}
.perk-card__body {
    display: grid;
    gap: .55rem;
    padding: 1.35rem 1.45rem 1.55rem;
    flex: 1;
}
.perk-card h3 { font-size: 1.18rem; margin: 0; line-height: 1.4; }
.perk-card p { color: var(--muted); font-size: .94rem; line-height: 1.72; margin: 0; }
.perk-card:hover h3 { color: var(--navy-600); }

/* ================= CTA band ================= */
.cta-band {
    position: relative;
    padding-block: clamp(4.5rem, 9vw, 7rem);
    background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff; overflow: hidden;
}
.cta-band__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(4,35,63,.9), rgba(4,35,63,.52));
}
.cta-band__inner { position: relative; z-index: 2; }
.cta-band .eyebrow { color: var(--gold-400); }
.cta-band .eyebrow::before { background: var(--gold-400); }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.2; }
.cta-band p { margin: 1.4rem 0 2.2rem; color: rgba(255,255,255,.85); font-size: 1.05rem; }
.cta-band__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ================= 內頁通用 ================= */
.prose { max-width: 74ch; }
.prose p { margin-bottom: 1.2rem; color: var(--ink-soft); }
.prose h3 { margin: 2rem 0 1rem; }

/* ---------------- 知識文章表格 ---------------- */
.knowledge-table-wrap {
    overflow-x: auto;
    margin: 1.6rem 0 2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.knowledge-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
    min-width: 640px;
}
.knowledge-table caption {
    caption-side: top;
    text-align: left;
    padding: .85rem 1rem;
    font-weight: 700;
    color: var(--navy-800);
    background: var(--ice);
    border-bottom: 1px solid var(--line);
}
.knowledge-table th,
.knowledge-table td {
    padding: .75rem .85rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    line-height: 1.55;
}
.knowledge-table thead th {
    background: #f4fbff;
    color: var(--navy-700);
    font-weight: 700;
    text-align: center;
}
.knowledge-table tbody th[scope="row"],
.knowledge-table tbody th[scope="rowgroup"] {
    background: #f8fcff;
    color: var(--navy-800);
    font-weight: 700;
    white-space: nowrap;
}
.knowledge-table tbody tr:last-child th,
.knowledge-table tbody tr:last-child td { border-bottom: 0; }
.knowledge-table td.is-mark { text-align: center; color: var(--navy-600); font-weight: 800; }
.knowledge-table tr.is-sub td:first-child + td { padding-left: 1.4rem; color: var(--muted); }
.knowledge-table__note {
    margin-top: .55rem;
    padding-top: .55rem;
    border-top: 1px dashed var(--line);
    font-size: .86rem;
    color: var(--muted);
}
.knowledge-table__legend {
    font-size: .88rem;
    color: var(--muted);
}
.knowledge-table__legend span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: var(--navy-600);
    color: #fff;
    font-size: .65rem;
    margin-right: .35rem;
}
@media (max-width: 720px) {
    .knowledge-table { font-size: .84rem; min-width: 520px; }
}

/* ---------------- SEO 知識文章排版 ---------------- */
.article-prose { max-width: none; }
.article-prose__lead {
    font-size: 1.12rem;
    line-height: 1.85;
    color: var(--ink);
    margin-bottom: 1.6rem;
    padding-left: 1rem;
    border-left: 4px solid var(--gold-500);
}
.article-prose h2 {
    font-size: clamp(1.25rem, 2.6vw, 1.55rem);
    color: var(--navy-800);
    margin: 2.4rem 0 1rem;
    line-height: 1.4;
    scroll-margin-top: 5rem;
}
.article-prose h2:first-of-type { margin-top: 0; }
.article-prose > p {
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--ink-soft);
    margin-bottom: 1.2rem;
}
.article-prose h3 {
    font-size: 1.08rem;
    color: var(--navy-700);
    margin: 1.6rem 0 .75rem;
}
.article-prose ul,
.article-prose ol,
.article-list {
    margin: 0 0 1.4rem;
    padding-left: 1.35rem;
    display: grid;
    gap: .55rem;
}
.article-prose li,
.article-list li {
    line-height: 1.75;
    color: var(--ink-soft);
}
.article-callout {
    margin: 1.4rem 0 1.8rem;
    padding: 1rem 1.15rem;
    border-left: 4px solid var(--navy-600);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: linear-gradient(90deg, #f4fbff, #fff);
    box-shadow: var(--shadow-sm);
}
.article-callout p {
    margin: 0;
    font-size: .98rem;
    line-height: 1.8;
    color: var(--ink-soft);
}

.article-takeaways {
    margin: 2.4rem 0;
    padding: 1.4rem 1.5rem 1.2rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #f4fbff, #fff);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.article-takeaways h2 {
    font-size: 1.15rem;
    margin: 0 0 1rem;
    color: var(--navy-800);
}
.article-takeaways ul {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: .65rem;
}
.article-takeaways li {
    line-height: 1.7;
    color: var(--ink-soft);
}

.article-faq {
    margin: 2.4rem 0;
    padding-top: .5rem;
}
.article-faq > h2 {
    font-size: 1.15rem;
    margin: 0 0 1rem;
    color: var(--navy-800);
}
.article-faq__item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: .65rem;
    background: #fff;
    overflow: hidden;
}
.article-faq__item summary {
    cursor: pointer;
    padding: .9rem 1rem;
    font-weight: 700;
    color: var(--navy-800);
    list-style: none;
}
.article-faq__item summary::-webkit-details-marker { display: none; }
.article-faq__item summary::after {
    content: '+';
    float: right;
    color: var(--navy-500);
    font-weight: 800;
}
.article-faq__item[open] summary::after { content: '−'; }
.article-faq__item p {
    margin: 0;
    padding: 0 1rem 1rem;
    line-height: 1.75;
    color: var(--ink-soft);
    border-top: 1px dashed var(--line);
    padding-top: .85rem;
}

/* ---------------- 知識文章（knowledge-article 完整結構） ---------------- */
.knowledge-article {
    max-width: none;
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.85;
}

/* 文章標頭（內頁已有 Hero／摘要時隱藏，避免重複） */
.knowledge-article .article-header h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.35;
    color: var(--navy-800);
    margin: 0 0 1rem;
}
.knowledge-article .article-lead {
    font-size: 1.12rem;
    line-height: 1.85;
    color: var(--ink);
    margin: 0 0 1.6rem;
    padding-left: 1rem;
    border-left: 4px solid var(--gold-500);
}
.article-detail__body .knowledge-article .article-header {
    display: none;
}

/* 文章目錄 */
.knowledge-article .article-toc {
    margin: 0 0 2.4rem;
    padding: 1.25rem 1.35rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(244, 251, 255, .95), #fff);
    box-shadow: var(--shadow-sm);
}
.knowledge-article .article-toc > h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-800);
    margin: 0 0 .85rem;
    padding-bottom: 0;
}
.knowledge-article .article-toc > h2::after {
    display: none;
}
.knowledge-article .article-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .45rem;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.knowledge-article .article-toc > ol > li {
    counter-increment: toc-l1;
    position: relative;
    padding-left: 1.85rem;
    line-height: 1.65;
}
.knowledge-article .article-toc > ol {
    counter-reset: toc-l1;
}
.knowledge-article .article-toc > ol > li::before {
    content: counter(toc-l1) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--navy-600);
}
.knowledge-article .article-toc ol ol {
    margin: .45rem 0 0;
    padding: 0;
    gap: .35rem;
    counter-reset: toc-l2;
}
.knowledge-article .article-toc ol ol li {
    counter-increment: toc-l2;
    padding-left: 1.65rem;
    font-size: .94rem;
}
.knowledge-article .article-toc ol ol li::before {
    content: counter(toc-l2) ".";
    color: var(--muted);
    font-size: .88rem;
}
.knowledge-article .article-toc li::before {
    width: auto;
    height: auto;
    margin: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    background-image: none;
}
.knowledge-article .article-toc a {
    color: var(--navy-700);
    font-weight: 600;
    text-decoration: none;
    transition: color .25s var(--ease);
}
.knowledge-article .article-toc a:hover {
    color: var(--gold-600);
}

/* 章節 */
.knowledge-article .article-section {
    margin-bottom: 2.6rem;
}
.knowledge-article .article-section > h2 {
    position: relative;
    font-size: clamp(1.25rem, 2.6vw, 1.55rem);
    color: var(--navy-800);
    margin: 0 0 1rem;
    padding-bottom: .65rem;
    line-height: 1.4;
    scroll-margin-top: 5rem;
}
.knowledge-article .article-section > h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 2.5rem;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold-500), var(--navy-500));
}
.knowledge-article .article-section > h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--navy-700);
    margin: 1.6rem 0 .75rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.knowledge-article .article-section > p {
    margin-bottom: 1.2rem;
}
.knowledge-article p strong {
    color: var(--navy-800);
    font-weight: 700;
}

/* 章節內列表（目錄 ol 除外） */
.knowledge-article .article-section ul,
.knowledge-article .article-section > ol {
    list-style: none;
    margin: .75rem 0 1.4rem;
    padding: 1.1rem 1.2rem 1.15rem;
    display: grid;
    gap: .7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(244, 251, 255, .95), #fff);
    box-shadow: var(--shadow-sm);
}
.knowledge-article .article-section ul > li,
.knowledge-article .article-section > ol > li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    line-height: 1.75;
    color: var(--ink-soft);
    padding-left: 0;
}
.knowledge-article .article-section ul > li::before {
    content: "";
    flex-shrink: 0;
    width: 1.2rem;
    height: 1.2rem;
    margin-top: .38rem;
    border-radius: 50%;
    background-color: var(--navy-600);
    box-shadow: 0 0 0 3px rgba(0, 144, 224, .12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6.2 4.8 8.5 9.5 3.8' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: .72rem;
}
.knowledge-article .article-section > ol {
    counter-reset: section-ol;
}
.knowledge-article .article-section > ol > li {
    counter-increment: section-ol;
}
.knowledge-article .article-section > ol > li::before {
    content: counter(section-ol);
    flex-shrink: 0;
    width: 1.45rem;
    height: 1.45rem;
    margin-top: .28rem;
    border-radius: 50%;
    background: var(--navy-700);
    color: #fff;
    font-family: var(--font-en);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.45rem;
    text-align: center;
}
.knowledge-article .article-section li strong {
    color: var(--navy-800);
}

/* 比較表格 */
.knowledge-article .table-responsive {
    overflow-x: auto;
    margin: 1.6rem 0 1.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    -webkit-overflow-scrolling: touch;
}
.knowledge-article .table-responsive::before {
    content: "← 左右滑動查看完整表格 →";
    display: none;
    padding: .45rem .85rem;
    font-size: .78rem;
    color: var(--muted);
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    text-align: center;
}
@media (max-width: 720px) {
    .knowledge-article .table-responsive::before {
        display: block;
    }
}
.knowledge-article .table-responsive table {
    width: 100%;
    min-width: 580px;
    border-collapse: collapse;
    font-size: .92rem;
}
.knowledge-article .table-responsive caption {
    caption-side: top;
    padding: .85rem 1rem;
    font-weight: 700;
    color: var(--navy-800);
    text-align: left;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
}
.knowledge-article .table-responsive thead th {
    padding: .85rem 1rem;
    background: #f4fbff;
    color: var(--navy-700);
    font-weight: 700;
    text-align: center;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.knowledge-article .table-responsive tbody th[scope="row"] {
    padding: .75rem .85rem;
    background: #f8fcff;
    color: var(--navy-800);
    font-weight: 700;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    line-height: 1.55;
    white-space: nowrap;
}
.knowledge-article .table-responsive tbody td {
    padding: .75rem .85rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    line-height: 1.55;
}
.knowledge-article .table-responsive tbody tr:last-child th,
.knowledge-article .table-responsive tbody tr:last-child td {
    border-bottom: 0;
}
.knowledge-article .table-responsive tbody tr:nth-child(even) td {
    background: rgba(244, 251, 255, .55);
}

/* 提醒框／重點摘要 */
.knowledge-article .article-note {
    margin: 1.4rem 0 1.6rem;
    padding: 1rem 1.15rem;
    border-left: 4px solid var(--gold-500);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: linear-gradient(90deg, var(--gold-100), #fff);
    box-shadow: var(--shadow-sm);
}
.knowledge-article .article-note p {
    margin: 0;
    line-height: 1.8;
}
.knowledge-article .article-summary {
    margin: 1.4rem 0 1.6rem;
    padding: 1.2rem 1.3rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #f4fbff, #fff);
    box-shadow: var(--shadow-sm);
}
.knowledge-article .article-summary h3 {
    margin: 0 0 .65rem;
    font-size: 1.05rem;
    color: var(--navy-800);
}
.knowledge-article .article-summary p {
    margin: 0;
}

/* 返回目錄 */
.knowledge-article .back-to-toc {
    margin: 1.25rem 0 0;
    text-align: right;
}
.knowledge-article .back-to-toc a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .86rem;
    font-weight: 600;
    color: var(--navy-600);
    text-decoration: none;
    transition: color .25s var(--ease);
}
.knowledge-article .back-to-toc a::before {
    content: "↑";
    font-size: .9rem;
}
.knowledge-article .back-to-toc a:hover {
    color: var(--gold-600);
}

/* FAQ 區塊 */
.knowledge-article .article-faq > h2 {
    margin-bottom: 1.25rem;
}
.knowledge-article .faq-item {
    margin-bottom: .85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    scroll-margin-top: 5rem;
}
.knowledge-article .faq-item h3 {
    margin: 0;
    padding: .95rem 1.15rem .55rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-800);
    background: #fff;
    border: 0;
    border-radius: 0;
}
.knowledge-article .faq-item > p:not(.back-to-toc) {
    margin: 0;
    padding: .85rem 1.15rem 0;
    border-top: 1px dashed var(--line);
    line-height: 1.75;
}
.knowledge-article .faq-item .back-to-toc {
    padding: 0 1.15rem .85rem;
    margin-top: .75rem;
}

/* 文末諮詢 CTA */
.knowledge-article .article-footer {
    margin-top: 3rem;
    padding-top: .5rem;
}
.knowledge-article .article-consultation {
    padding: clamp(1.8rem, 4vw, 2.4rem);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
    color: rgba(255, 255, 255, .9);
    text-align: center;
    box-shadow: var(--shadow-md);
}
.knowledge-article .article-consultation h2 {
    color: #fff;
    font-size: clamp(1.2rem, 2.8vw, 1.55rem);
    margin: 0 0 .85rem;
    padding: 0;
}
.knowledge-article .article-consultation h2::after {
    display: none;
}
.knowledge-article .article-consultation p {
    margin: 0 0 1.2rem;
    color: rgba(255, 255, 255, .85);
    line-height: 1.8;
}
.knowledge-article .article-consultation p:last-child {
    margin-bottom: 0;
}
.knowledge-article .consultation-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .75rem 1.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(0, 144, 224, .30);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.knowledge-article .consultation-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(0, 144, 224, .42);
    color: #fff;
}

.article-inline-cta {
    margin-top: 2.4rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
    color: rgba(255,255,255,.9);
    text-align: center;
}
.article-inline-cta p { margin-bottom: 1rem; color: rgba(255,255,255,.88); }
.article-inline-cta p:last-child { margin-bottom: 0; }

/* 表格進階樣式 */
.knowledge-table-wrap--wide .knowledge-table { min-width: 720px; }
.knowledge-table-wrap--resolution .knowledge-table { min-width: 960px; }
.knowledge-table__scroll-hint {
    display: none;
    margin: 0;
    padding: .45rem .85rem;
    font-size: .78rem;
    color: var(--muted);
    background: var(--ice);
    border-bottom: 1px solid var(--line);
    text-align: center;
}
@media (max-width: 860px) {
    .knowledge-table__scroll-hint { display: block; }
}
.knowledge-table tbody tr:nth-child(even) td,
.knowledge-table tbody tr:nth-child(even) th[scope="row"] {
    background: rgba(244, 251, 255, .55);
}
.knowledge-table-wrap--resolution thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: 0 1px 0 var(--line);
}
.knowledge-table__empty {
    color: var(--muted);
}
.knowledge-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: var(--navy-600);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
}
.knowledge-mark--no {
    background: transparent;
    color: var(--muted);
    font-weight: 400;
}
.knowledge-table td.is-mark { text-align: center; vertical-align: middle; }

@media (max-width: 640px) {
    .knowledge-table-wrap:not(.knowledge-table-wrap--resolution) .knowledge-table {
        min-width: 0;
    }
    .knowledge-table-wrap:not(.knowledge-table-wrap--resolution) .knowledge-table thead {
        display: none;
    }
    .knowledge-table-wrap:not(.knowledge-table-wrap--resolution) .knowledge-table tbody tr {
        display: block;
        margin-bottom: .85rem;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        overflow: hidden;
        background: #fff;
    }
    .knowledge-table-wrap:not(.knowledge-table-wrap--resolution) .knowledge-table tbody th[scope="row"],
    .knowledge-table-wrap:not(.knowledge-table-wrap--resolution) .knowledge-table tbody td {
        display: grid;
        grid-template-columns: minmax(7rem, 38%) 1fr;
        gap: .5rem;
        padding: .65rem .85rem;
        border-bottom: 1px solid var(--line);
        white-space: normal;
        background: transparent;
    }
    .knowledge-table-wrap:not(.knowledge-table-wrap--resolution) .knowledge-table tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--navy-700);
    }
    .knowledge-table-wrap:not(.knowledge-table-wrap--resolution) .knowledge-table tbody th[scope="row"]::before {
        content: '項目';
        font-weight: 700;
        color: var(--navy-700);
    }
    .knowledge-table-wrap:not(.knowledge-table-wrap--resolution) .knowledge-table tbody tr:last-child td,
    .knowledge-table-wrap:not(.knowledge-table-wrap--resolution) .knowledge-table tbody tr:last-child th {
        border-bottom: 0;
    }
}

/* 服務詳列 */
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; margin-bottom: var(--space-section); }
.svc-detail:nth-child(even) .svc-detail__media { order: 2; }
.svc-detail__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-md);
    background: linear-gradient(150deg, var(--navy-100), #fff); display: grid; place-items: center; }
.svc-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.svc-detail__media .ico { color: var(--navy-500); }
.svc-detail__ico {
    flex-shrink: 0;
    width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center;
    background: var(--gold-100); color: var(--gold-600);
}
.svc-detail__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.svc-detail__head h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    line-height: 1.3;
}
.svc-detail__list { margin-top: 1.4rem; display: grid; gap: .7rem; }
.svc-detail__list li { display: flex; gap: .7rem; align-items: center; color: var(--ink-soft); }
.svc-detail__list .ico { color: var(--gold-600); flex-shrink: 0; }
@media (max-width: 820px) {
    .svc-detail { grid-template-columns: 1fr; gap: 1.8rem; }
    .svc-detail:nth-child(even) .svc-detail__media { order: 0; }
}

/* 分所卡 */
.branches-section {
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 144, 224, .08), transparent 42%),
        radial-gradient(circle at 88% 100%, rgba(0, 144, 224, .06), transparent 38%),
        var(--bg-soft);
}
.branches-section .sec-head { margin-bottom: clamp(2rem, 3.5vw, 2.8rem); }
.branches-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 1.6vw, 1.25rem);
    align-items: stretch;
}
.branch-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    padding: 1.45rem 1.35rem 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(219, 234, 243, .95);
    background: #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.branch-card__accent {
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-400), var(--navy-500));
    opacity: .85;
}
.branch-card--head {
    border-color: rgba(0, 144, 224, .22);
    background: linear-gradient(180deg, #fff 0%, rgba(230, 247, 255, .55) 100%);
    box-shadow: var(--shadow-md);
}
.branch-card--head .branch-card__accent {
    height: 5px;
    opacity: 1;
}
.branch-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 144, 224, .28);
}
.branch-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
}
.branch-card__index {
    font-family: var(--font-en);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--navy-500);
    line-height: 1;
}
.branch-card__badge {
    display: inline-flex;
    align-items: center;
    padding: .22rem .62rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
}
.branch-card__head {
    margin-bottom: 1rem;
    padding-bottom: .95rem;
    border-bottom: 1px solid rgba(219, 234, 243, .9);
}
.branch-card__head h3 {
    margin: 0;
    font-size: clamp(1.02rem, 1.5vw, 1.12rem);
    line-height: 1.35;
    color: var(--navy-800);
}
.branch-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .85rem;
    flex: 1;
}
.branch-card__list li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: .7rem;
    align-items: start;
}
.branch-card__body {
    display: grid;
    gap: .18rem;
    min-width: 0;
}
.branch-card__label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--navy-700);
}
.branch-card__val {
    color: var(--ink-soft);
    font-size: .9rem;
    line-height: 1.62;
    word-break: break-word;
}
.branch-card__ico,
.branch-card li > .ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-top: .15rem;
    color: var(--gold-600);
    flex-shrink: 0;
}
.branch-card__list a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: color .25s var(--ease);
}
.branch-card__list a:hover { color: var(--navy-600); }
.branch-card__foot {
    margin-top: auto;
    padding-top: 1rem;
}
.branch-card__map {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: 100%;
    min-height: 2.5rem;
    padding: .55rem .85rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 144, 224, .18);
    background: rgba(230, 247, 255, .65);
    font-size: .84rem;
    font-weight: 700;
    color: var(--navy-700);
    text-decoration: none;
    transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.branch-card__map:hover {
    background: var(--navy-800);
    border-color: var(--navy-800);
    color: #fff;
}
.branch-card__map .ico { color: currentColor; }

@media (max-width: 1080px) {
    .branches-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .branches-grid { grid-template-columns: 1fr; }
    .branch-card { padding: 1.25rem 1.15rem 1.1rem; }
}

/* 聯絡頁簡版分所卡（沿用 branch-card 類名） */
.branch-card:not(:has(.branch-card__list)) {
    padding: 1.3rem;
}
.branch-card:not(:has(.branch-card__list)) > h3 {
    font-size: 1.1rem;
    margin-bottom: .75rem;
    color: var(--navy-800);
}
.branch-card:not(:has(.branch-card__list)) ul {
    display: grid;
    gap: .7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.branch-card:not(:has(.branch-card__list)) li {
    display: flex;
    gap: .6rem;
    color: var(--ink-soft);
    font-size: .95rem;
}
.branch-card:not(:has(.branch-card__list)) .ico {
    color: var(--gold-600);
    flex-shrink: 0;
    margin-top: 3px;
}
.branch-card.is-head:not(:has(.branch-card__list)) {
    border-color: rgba(0, 144, 224, .22);
    background: linear-gradient(180deg, #fff 0%, rgba(230, 247, 255, .55) 100%);
}

/* 團隊詳細 */
.member-detail { display: grid; grid-template-columns: 320px 1fr; gap: 2.5rem; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; margin-bottom: 2rem; }
.member-detail__photo { aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, var(--navy-100), #fff); display: grid; place-items: center; color: var(--navy-600); }
.member-detail__photo img { width: 100%; height: 100%; object-fit: cover; }
.member-detail h3 { font-size: 1.7rem; }
.member-detail .member-branch { color: var(--gold-600); font-weight: 700; letter-spacing: .08em; }
.member-detail .member-role { color: var(--muted); margin-bottom: 1.2rem; }
.member-detail h3.member-detail__label,
.member-detail h4 {
    font-size: 1rem;
    color: var(--navy-700);
    margin: 1.2rem 0 .6rem;
    letter-spacing: .05em;
}
.member-detail ul { display: grid; gap: .5rem; }
.member-detail li { display: flex; gap: .6rem; color: var(--ink-soft); font-size: .95rem; }
.member-detail li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); margin-top: .6rem; flex-shrink: 0; }
.member-detail .member-contact li { align-items: center; }
.member-detail .member-contact li::before { display: none; }
.member-detail .member-contact .ico { color: var(--gold-600); flex-shrink: 0; }
@media (max-width: 720px) { .member-detail { grid-template-columns: 1fr; } .member-detail__photo { max-width: 260px; } }

/* ESG */
.esg-card { text-align: center; padding: 2.6rem 2rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.esg-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.esg-card__ico { width: 74px; height: 74px; margin: 0 auto 1.3rem; border-radius: 50%; display: grid; place-items: center; background: var(--navy-100); color: var(--navy-700); }
.esg-card h3 { font-size: 1.3rem; margin-bottom: .7rem; }
.esg-card p { color: var(--muted); font-size: .96rem; }

/* 聯絡頁 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info li { display: flex; gap: .8rem; margin-bottom: 1.3rem; }
.contact-info .ico { color: var(--gold-600); flex-shrink: 0; margin-top: 4px; }
.contact-info strong { display: block; color: var(--navy-800); }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.form-msg { padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.2rem; font-weight: 600; }
.form-msg--ok { background: #e8f6ee; color: #1e7e46; }
.form-msg--err { background: #fdecec; color: #c0392b; }
.field--captcha .captcha-row {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
}
.captcha-actions {
    display: contents;
}
.captcha-img {
    display: block;
    width: 132px;
    height: 48px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    overflow: hidden;
    flex-shrink: 0;
}
.captcha-img svg {
    display: block;
    width: 132px;
    height: 48px;
}
.captcha-refresh {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--navy-700);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.captcha-refresh .ico { display: block; }
.captcha-refresh:hover {
    border-color: var(--navy-600);
    color: var(--navy-600);
    background: var(--bg-soft);
}
.field--captcha input[type="text"] {
    flex: 1 1 8rem;
    min-width: 7rem;
    width: auto;
    min-height: 48px;
    letter-spacing: .18em;
    text-align: center;
    font-weight: 700;
}
.captcha-help {
    margin: .55rem 0 0;
    font-size: .82rem;
    color: var(--muted);
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* 三階段服務卡（深藍區塊）*/
.stage-card { padding: 2.4rem 2rem; border-radius: var(--radius-lg); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(4px); height: 100%; }
.stage-card__num { font-family: var(--font-en); font-weight: 700; letter-spacing: .1em; color: var(--gold-400); font-size: .9rem; }
.stage-card h3 { color: #fff; font-size: 1.4rem; margin: .5rem 0 1.2rem; }
.stage-card ul { display: grid; gap: .7rem; }
.stage-card li { display: flex; gap: .6rem; color: rgba(255,255,255,.85); font-size: .95rem; }
.stage-card .ico { color: var(--gold-400); flex-shrink: 0; margin-top: 3px; }
.stage-card__group { margin-top: 1.1rem; }
.stage-card__group:first-child { margin-top: 0; }
.stage-card__group-title {
    margin: 0 0 .65rem;
    padding-bottom: .45rem;
    border-bottom: 1px solid rgba(255,255,255,.16);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}
.stage-card__sublist {
    display: grid;
    gap: .45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.stage-card__sublist li {
    position: relative;
    padding-left: 1rem;
    color: rgba(255,255,255,.78);
    font-size: .9rem;
    line-height: 1.55;
}
.stage-card__sublist li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--gold-400);
}

/* 沿革時間軸 */
.timeline { max-width: 780px; margin: 0 auto; position: relative; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline__item { position: relative; padding: 0 0 2.4rem 2rem; }
.timeline__item::before { content: ""; position: absolute; left: -2rem; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--gold-500); box-shadow: 0 0 0 4px rgba(0,144,224,.14); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__year { font-family: var(--font-en); font-weight: 800; font-size: 1.5rem; color: var(--navy-700); }
.timeline__body h3 { font-size: 1.2rem; margin: .2rem 0 .4rem; }
.timeline__body p { color: var(--muted); }

/* 文章/消息列表 */
.list-filter { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.list-filter button { padding: .5rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--ink-soft); transition: all .3s var(--ease); }
.list-filter button.is-active, .list-filter button:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.news-search-summary {
    margin: 0 0 1.5rem;
    color: var(--muted);
    font-size: .95rem;
}
.news-search-summary a { color: var(--navy-600); font-weight: 600; }
.news-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 2rem 0;
    color: var(--muted);
    text-align: center;
}
@media (max-width: 620px) {
    .news-list {
        grid-template-columns: repeat(2, 1fr);
        gap: .85rem;
    }
    .news-list .news-card__body { padding: .85rem .65rem 1rem; }
    .news-list .news-card__meta {
        flex-wrap: wrap;
        gap: .35rem .45rem;
        margin-bottom: .5rem;
    }
    .news-list .news-card__body h3 {
        font-size: .88rem;
        line-height: 1.4;
        margin-bottom: .45rem;
    }
    .news-list .news-card__date { font-size: .7rem; }
    .news-list .tag { font-size: .65rem; padding: .18rem .45rem; }
    .news-list .link-arrow { font-size: .78rem; }
}

/* 消息／文章內頁 */
.article-detail { padding-top: 0; }
.article-detail__wrap { max-width: 860px; }
.article-detail__head { margin: 0 0 1.2rem; }
.article-detail__title {
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    margin: 1rem 0 .9rem;
    line-height: 1.35;
}
.article-detail__lead {
    position: relative;
    font-size: 1.12rem;
    line-height: 1.85;
    color: var(--ink);
    margin: 0 0 2.2rem;
    padding: 1.35rem 1.4rem 1.3rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(244, 251, 255, .98), #fff);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.article-detail__lead::before {
    content: "SUMMARY";
    display: block;
    margin-bottom: .55rem;
    font-family: var(--font-en);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--navy-500);
}
.article-detail__lead::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--gold-400), var(--navy-500));
    border-radius: var(--radius) 0 0 var(--radius);
}
.article-detail__lead:empty {
    display: none;
}
.article-detail__cover {
    position: relative;
    z-index: 5;
    margin-top: clamp(-3.2rem, -6vw, -4.8rem);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.6rem;
    background: linear-gradient(135deg, var(--navy-100), #fff);
    box-shadow:
        0 28px 64px rgba(12, 42, 64, .16),
        0 12px 28px rgba(12, 42, 64, .1);
    line-height: 0;
}
.article-detail__cover img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}
.article-detail__cover.is-empty {
    background:
        radial-gradient(circle at 70% 30%, rgba(0,144,224,.22), transparent 45%),
        linear-gradient(135deg, var(--navy-700), var(--navy-900));
    min-height: 280px;
}
.article-detail__body {
    margin-bottom: 2.6rem;
    max-width: 100%;
}
.article-detail__body--static {
    opacity: 1;
    transform: none;
}
.article-detail__body .article-prose { max-width: none; }
.article-detail__body .knowledge-article { max-width: none; }
.article-detail__body img,
.knowledge-article img,
.article-prose img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 1.6rem auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.article-detail__actions {
    display: flex; flex-wrap: wrap; gap: 1rem;
    padding-bottom: 2.4rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 2rem;
}
.article-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}
.article-pager__item {
    display: grid; gap: .4rem;
    padding: 1.3rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    transition: border-color .3s, box-shadow .3s, transform .3s;
}
.article-pager__item:hover:not(.is-empty) {
    border-color: var(--navy-500);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}
.article-pager__item--next { text-align: right; }
.article-pager__item.is-empty { border: 0; background: transparent; pointer-events: none; }
.article-pager__label {
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--navy-500);
}
.article-pager__title {
    font-size: .98rem;
    font-weight: 700;
    color: var(--navy-800);
    line-height: 1.45;
}
@media (max-width: 640px) {
    .page-hero--overlap { padding: clamp(5.5rem, 14vw, 6.5rem) 0 clamp(2.6rem, 10vw, 3.8rem); }
    .article-detail__cover { margin-top: clamp(-2.4rem, -10vw, -3.5rem); }
    .article-pager { grid-template-columns: 1fr; }
    .article-pager__item--next { text-align: left; }
}

/* ---------------- 首頁團隊（五位會計師） ---------------- */
.team-home__grid {
    grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1200px) {
    .team-home__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
    .team-home__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .team-home .team-home__scroll {
        display: flex;
        flex-wrap: nowrap;
        gap: 1rem;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-right: -1.5rem;
        margin-left: 0;
        padding-left: 0;
        padding-right: 1.5rem;
        scroll-padding-inline-start: 0;
        scroll-padding-inline-end: 1.5rem;
        padding-bottom: .35rem;
    }
    .team-home .team-home__scroll::-webkit-scrollbar { display: none; }
    .team-home .team-home__scroll .member-card {
        flex: 0 0 min(72vw, 260px);
        scroll-snap-align: start;
        height: auto;
    }
}

/* ---------------- 團隊列表／內頁 ---------------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.1rem, 2vw, 1.65rem);
}
@media (max-width: 960px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .team-grid { gap: .85rem; }
    .team-grid .member-card__body { padding: 1rem .65rem 1.25rem; }
    .team-grid .member-card__body h3 { font-size: 1.05rem; }
    .team-grid .member-card__role { font-size: .82rem; }
}

.page-hero--compact { padding-block: clamp(2.4rem, 5vw, 3.2rem); }
.page-hero--compact h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); }

.team-pager {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: stretch;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}
.team-pager__item {
    display: grid;
    gap: .35rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color .3s, box-shadow .3s;
}
.team-pager__item:hover:not(.is-empty) {
    border-color: var(--navy-500);
    box-shadow: var(--shadow-sm);
}
.team-pager__item--prev { text-align: left; }
.team-pager__item--back { text-align: center; }
.team-pager__item--next { text-align: right; }
.team-pager__item.is-empty { visibility: hidden; pointer-events: none; }
.team-pager__label { font-size: .78rem; color: var(--muted); letter-spacing: .06em; }
.team-pager__name {
    font-weight: 700;
    color: var(--navy-700);
    line-height: 1.35;
}
@media (max-width: 720px) {
    .team-pager {
        gap: .5rem;
    }
    .team-pager__item {
        padding: .75rem .45rem;
        text-align: center;
    }
    .team-pager__item--prev,
    .team-pager__item--back,
    .team-pager__item--next {
        text-align: center;
    }
    .team-pager__label { font-size: .72rem; }
    .team-pager__name {
        font-size: .82rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}
