:root {
    --orange: #f58a00;
    --orange-text: #b85600;
    --blue: #1f6fb8;
    --navy: #12355b;
    --footer: #0b2340;
    --text: #2b2b2b;
    --muted: #5b6470;
    --light: #f5f7fa;
    --border: #e6e9ee;
    --white: #ffffff;
    --orange-light: #fff3e3;
    --blue-light: #e8f1fb;
    --orange-on-dark: #ffb35c;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif; color: var(--text); background: var(--white); line-height: 1.7; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
h1, h2, h3, p { overflow-wrap: break-word; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--white); padding: 10px 20px; border: 2px solid var(--blue); }
.skip-link:focus { top: 10px; }
.icon { width: 28px; height: 28px; display: block; flex-shrink: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 22px; border-radius: 28px; border: 1px solid transparent; font-size: 15px; font-weight: 700; line-height: 1.5; text-align: center; }
.button-orange { background: var(--orange); color: #1a1a1a; }
.button-orange:hover { background: #ff9f21; color: #1a1a1a; }
.button-blue { background: var(--navy); color: var(--white); }
.button-blue:hover { background: var(--blue); color: var(--white); }
.button-white { color: var(--navy); background: var(--white); }
.button-white:hover { color: var(--blue); background: var(--light); }
.button-outline { border-color: rgba(255,255,255,.6); color: var(--white); }
.button-outline:hover { color: var(--white); background: rgba(255,255,255,.1); }
.button-line { color: #057a36; border-color: #06a046; padding: 8px 16px; font-weight: 500; }
.button-line:hover { background: #ecfff3; color: #057a36; }
.button-large { min-height: 52px; padding: 10px 28px; font-size: 17px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(6px); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 22px; }
.brand { display: flex; flex-shrink: 0; align-items: center; gap: 12px; }
.brand img { object-fit: contain; flex-shrink: 0; }
.brand span { display: flex; flex-direction: column; line-height: 1.2; }
.brand strong { color: var(--blue); font-size: 24px; font-weight: 900; letter-spacing: 2px; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.desktop-navigation { display: flex; align-items: center; gap: 24px; font-size: 16px; white-space: nowrap; }
.navlink { color: var(--text); padding: 8px 0; font-weight: 500; border-bottom: 2px solid transparent; }
.navlink:hover, .navlink[aria-current] { border-bottom-color: var(--orange); color: var(--blue); }
.desktop-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; border: 1px solid #d5dae1; border-radius: 10px; color: var(--text); background: var(--white); }
.mobile-navigation { border-top: 1px solid var(--border); max-height: calc(100dvh - 76px); overflow: auto; background: var(--white); }
.mobile-navigation .wrap { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 16px; }
.mobile-navigation a:not(.button) { padding: 12px 0; color: var(--text); border-bottom: 1px solid #f0f2f5; }
.mobile-navigation .button { margin-top: 12px; }
.mobile-navigation .mobile-line { color: #057a36 !important; }
.hero { position: relative; overflow: hidden; color: var(--white); background: var(--navy); }
.hero::before { content: ""; position: absolute; right: -120px; top: -120px; width: 520px; height: 520px; border: 80px solid rgba(245,138,0,.14); border-radius: 50%; }
.hero::after { content: ""; position: absolute; left: -160px; bottom: -200px; width: 460px; height: 460px; border-radius: 50%; background: rgba(46,132,213,.22); }
.hero-inner { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 56px; }
.hero-slides { display: grid; }
.hero-row { grid-area: 1 / 1; display: flex; align-items: center; gap: 48px; min-width: 0; }
/* 隱藏的投影片保留排版尺寸，三張共用最高的一張；visibility 也會隱藏連結與輔助工具內容。 */
.hero-row[hidden] { display: flex !important; visibility: hidden; pointer-events: none; }
.hero-copy { flex: 1 1 560px; min-width: 0; }
.eyebrow { margin: 0; font-size: 14px; font-weight: 700; color: var(--orange-text); letter-spacing: 3px; }
.hero .eyebrow { color: var(--orange-on-dark); }
.hero-title { max-width: 700px; margin: 12px 0 16px; font-size: 52px; line-height: 1.25; font-weight: 900; }
.hero-description { max-width: 520px; margin: 0 0 32px; font-size: 18px; color: #d7e3f1; }
.hero-phone { flex: 0 0 240px; display: flex; justify-content: center; }
.phone-frame { display: flex; flex-direction: column; gap: 11.2px; width: 208px; height: 400px; padding: 22.4px 12.8px; border: 8px solid #24476f; border-radius: 32px; background: var(--footer); }
.phone-label, .phone-caption { color: #9fb6d1; font-size: 9.6px; text-align: center; }
.sms-bubble { align-self: flex-start; max-width: 90%; margin: 0; padding: 8px 11.2px; border-radius: 12.8px 12.8px 12.8px 3.2px; background: var(--white); color: var(--text); font-size: 10.4px; line-height: 1.6; }
.phone-caption { margin-top: auto; }
.carousel-controls { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.carousel-arrow { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: transparent; color: var(--white); }
.carousel-arrow:hover { background: rgba(255,255,255,.1); }
.carousel-arrow .icon { width: 20px; height: 20px; }
.carousel-dots { display: flex; align-items: center; gap: 0; }
.carousel-dot { position: relative; width: 26px; height: 44px; padding: 0; border: 0; background: transparent; }
.carousel-dot::after { content: ""; position: absolute; top: 17px; left: 8px; width: 10px; height: 10px; border-radius: 6px; background: rgba(255,255,255,.45); }
.carousel-dot[aria-current] { width: 44px; }
.carousel-dot[aria-current]::after { width: 28px; background: var(--orange); }
.grid { display: grid; gap: 24px; }
.grid-6 { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 16px; }
.grid-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.quick-section { padding: 40px 0; background: var(--light); }
.quick-section + [data-section="news"] { border-top: 1px solid var(--border); }
.card { border: 1px solid var(--border); background: var(--white); color: var(--text); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(18,53,91,.12); }
.quick-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 12px; border-radius: 16px; font-size: 15px; font-weight: 500; text-align: center; }
.icon-box { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; }
.icon-box-orange { background: var(--orange-light); color: var(--orange-text); }
.icon-box-blue { background: var(--blue-light); color: var(--blue); }
.policy-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; padding: 14px 20px; border: 1px solid #f5c48a; border-radius: 12px; color: var(--text); background: var(--white); }
.policy-banner > span { flex: 1 1 300px; }
.policy-banner b { color: var(--blue); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 10px; background: #ffd6a8; color: #1a1a1a; font-size: 13px; font-weight: 700; white-space: nowrap; }
.policy-banner .tag { background: var(--orange); }
.tag-blue { background: #d6e7fa; }
.section { padding: 88px 0; }
.section-muted { background: var(--light); }
.section-heading { margin-bottom: 48px; text-align: center; }
.section-heading h2 { margin: 6px 0 0; color: var(--navy); font-size: 36px; font-weight: 900; line-height: 1.45; }
.section-heading > p:not(.eyebrow) { max-width: 640px; margin: 12px auto 0; color: var(--muted); }
.product-card { display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; border-radius: 20px; }
.product-card .icon-box { width: 64px; height: 64px; border-radius: 18px; }
.product-card .icon { width: 32px; height: 32px; }
.product-card h3 { margin: 0; font-size: 21px; color: var(--navy); }
.product-card p { flex-grow: 1; margin: 0; font-size: 15px; color: var(--muted); }
.card-more { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid #eef1f5; font-size: 14px; font-weight: 500; color: var(--blue); }
.small-arrow { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--orange); color: var(--orange-text); }
.small-arrow .icon { width: 16px; height: 16px; }
.feature-card { display: flex; align-items: flex-start; gap: 16px; padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--white); }
.feature-card .icon-box { width: 52px; height: 52px; }
.feature-card h3 { margin: 0 0 4px; color: var(--navy); font-size: 18px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; }
.heading-split { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; text-align: left; }
.heading-split > a { font-weight: 700; }
.news-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 20px; }
.news-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.news-meta time { color: var(--muted); font-size: 14px; }
.news-card h3 { margin: 0; color: var(--navy); font-size: 18px; line-height: 1.6; }
.news-card p { margin: 0; color: var(--muted); font-size: 15px; }
.news-empty { margin: 0; padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--light); color: var(--muted); }
.news-page { max-width: 948px; min-height: 52vh; }
.news-page-heading { margin-bottom: 36px; }
.news-page-heading h1 { margin: 12px 0 0; color: var(--navy); font-size: clamp(28px, 4vw, 38px); line-height: 1.45; }
.news-page-heading .news-meta { margin: 0; }
.news-list { display: grid; gap: 20px; }
.news-list-item h2 { margin: 0; color: var(--navy); font-size: 22px; line-height: 1.55; }
.news-content { padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 17px; line-height: 1.9; overflow-wrap: anywhere; }
.news-content a { text-decoration: underline; text-underline-offset: 3px; }
.news-back { display: inline-block; margin-top: 32px; padding: 10px 0; font-weight: 700; }
.news-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 36px; }
.news-pagination a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px; font-weight: 700; }
.news-pagination span { color: var(--muted); }
/* 共用內頁：標題帶、主欄與側欄。各頁不影響首頁的卡片與輪播。 */
.page-banner { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.page-banner::before { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border: 60px solid rgba(245,138,0,.14); border-radius: 50%; }
.page-banner::after { content: ""; position: absolute; left: -120px; bottom: -160px; width: 320px; height: 320px; border-radius: 50%; background: rgba(46,132,213,.22); }
.page-banner-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 220px; padding-top: 32px; padding-bottom: 32px; }
.page-banner-copy { min-width: 0; flex: 1 1 auto; }
.page-banner .eyebrow { color: var(--orange-on-dark); font-size: 13px; }
.page-banner h1 { margin: 0 0 10px; font-size: 40px; font-weight: 900; line-height: 1.3; }
.page-banner-description { margin: 0; color: #d7e3f1; }
.page-banner-art { flex: 0 0 260px; }
.page-banner-art svg { display: block; }
.breadcrumbs { margin-bottom: 14px; font-size: 13px; color: #9fb6d1; }
.breadcrumbs ol { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li, .breadcrumbs a { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.breadcrumbs a { color: #9fb6d1; }
.breadcrumbs a:hover { color: var(--white); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--white); }
.breadcrumbs .icon { width: 14px; height: 14px; }
.inner-section { min-height: 48vh; padding: 48px 0 72px; background: var(--light); }
.inner-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 40px; align-items: start; }
.inner-main { min-width: 0; }
.inner-sidebar { display: grid; gap: 24px; min-width: 0; }
.sidebar-card { padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--white); }
.sidebar-card h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--navy); font-size: 18px; }
.sidebar-card h2 .icon { width: 20px; height: 20px; color: var(--orange-text); }
.sidebar-services-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.sidebar-services-grid a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px; border-radius: 12px; background: var(--light); color: var(--navy); font-size: 14px; }
.sidebar-services-grid a:hover { background: var(--orange-light); }
.sidebar-services-grid .icon { width: 24px; height: 24px; color: var(--blue); }
.sidebar-help { background: var(--navy); border-color: var(--navy); color: var(--white); }
.sidebar-help > .icon { width: 40px; height: 40px; color: var(--orange-on-dark); }
.sidebar-help h2 { margin: 10px 0 6px; color: var(--white); }
.sidebar-help p { margin: 0 0 16px; color: #d7e3f1; font-size: 14px; }
.sidebar-help .button { display: flex; width: 100%; margin-top: 10px; }
.sidebar-line-button { color: var(--white); background: #1a8a3c; }
.sidebar-line-button:hover { color: var(--white); background: #126a2c; }
.sidebar-news ul { padding: 0; margin: 0; list-style: none; }
.sidebar-news li + li { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.sidebar-news a { display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow-wrap: anywhere; color: var(--navy); font-size: 14px; }
.sidebar-news a:hover { color: var(--blue); }
.sidebar-news time { color: var(--muted); font-size: 12px; }
.sidebar-empty { margin: 0; color: var(--muted); font-size: 14px; }
.news-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.news-filters a { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 24px; background: var(--white); color: var(--text); font-size: 14px; }
.news-filters .icon { width: 16px; height: 16px; color: var(--orange-text); }
.news-filters a:last-child .icon { color: var(--blue); }
.news-filters a[aria-current] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.news-filters a[aria-current] .icon { color: var(--white); }
.inner-news-list { display: grid; gap: 16px; }
.inner-news-card { display: flex; align-items: flex-start; gap: 20px; padding: 24px; border-left: 4px solid var(--orange); border-radius: 16px; }
.inner-news-service { border-left-color: var(--blue); }
.inner-news-card > .icon-box { width: 56px; height: 56px; border-radius: 14px; }
.inner-news-copy { flex: 1 1 auto; min-width: 0; }
.inner-news-copy h2 { margin: 4px 0 6px; color: var(--navy); font-size: 19px; line-height: 1.55; }
.inner-news-copy p { margin: 0; color: var(--muted); font-size: 15px; }
.inner-news-card > .small-arrow { flex: 0 0 36px; width: 36px; height: 36px; align-self: center; }
.inner-section .news-meta { gap: 6px 10px; font-size: 13px; }
.inner-section .news-meta time, .page-banner .news-meta time { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.inner-section .news-meta .icon, .page-banner .news-meta .icon { width: 14px; height: 14px; }
.news-pin { display: inline-flex; align-items: center; gap: 4px; color: var(--orange-text); font-weight: 700; }
.inner-section .news-pagination { gap: 8px; margin-top: 32px; }
.inner-section .news-pagination a, .inner-section .news-pagination .pagination-current { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--white); font-size: 14px; font-weight: 700; }
.inner-section .news-pagination .pagination-current { background: var(--navy); color: var(--white); border-color: var(--navy); }
.news-pagination .icon { width: 18px; height: 18px; }
.pagination-gap { padding: 4px; }
.banner-news-meta { margin: 12px 0; }
.banner-news-meta .tag { display: inline-flex; align-items: center; gap: 5px; }
.page-banner .news-meta time { color: #d7e3f1; }
.inner-content-card { padding: 36px; border: 1px solid var(--border); border-radius: 16px; background: var(--white); }
.price-main { display: grid; gap: 24px; }
.price-card > h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; color: var(--navy); font-size: 24px; }
.price-card > h2 .icon { flex-shrink: 0; width: 26px; height: 26px; color: var(--orange-text); }
.price-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { padding: 18px 20px; border-bottom: 1px solid var(--border); text-align: left; overflow-wrap: anywhere; }
.price-table thead th { background: var(--navy); color: var(--white); font-size: 15px; }
.price-table thead th:first-child { width: 66%; border-radius: 10px 0 0; }
.price-table thead th:last-child { border-radius: 0 10px 0 0; }
.price-table tbody th { color: var(--navy); font-weight: 500; }
.price-table td strong { color: var(--blue); font-size: 20px; }
.price-best-row { background: var(--orange-light); }
.price-best-label { display: block; width: fit-content; margin-top: 4px; padding: 1px 8px; border-radius: 4px; background: var(--orange-text); color: var(--white); font-size: 12px; font-weight: 700; }
.price-notes { display: grid; gap: 8px; padding: 0; margin: 24px 0 0; list-style: none; color: var(--muted); font-size: 14px; }
.price-notes li { display: flex; align-items: baseline; gap: 6px; }
.price-notes li > span:first-child { flex-shrink: 0; color: var(--orange-text); }
.price-notes li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.price-message { margin: 0; color: var(--muted); }
.price-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.price-link-card { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 24px 20px; }
.price-link-card:hover { border-color: var(--blue); background: var(--light); }
.price-link-card > .icon-box { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; }
.price-link-card > span:nth-child(2) { flex: 1; min-width: 0; }
.price-link-card strong { display: block; color: var(--navy); font-size: 17px; }
.price-link-card strong + span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.price-link-card > .icon:last-child { flex-shrink: 0; width: 18px; height: 18px; }
@media (max-width: 600px) {
    .price-card > h2 { gap: 8px; margin-bottom: 20px; font-size: 21px; }
    .price-card > h2 .icon { width: 23px; height: 23px; }
    .price-table th, .price-table td { padding: 14px 10px; font-size: 14px; }
    .price-table thead th { font-size: 13px; }
    .price-table td strong { font-size: 17px; }
    .price-links { grid-template-columns: minmax(0,1fr); gap: 16px; }
    .price-main { gap: 20px; }
}
.about-main { display: grid; gap: 24px; }
.about-main h2 { margin: 0 0 20px; color: var(--navy); font-size: 24px; }
.about-introduction p { margin: 0; line-height: 1.95; }
.about-info-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.about-info-card { min-width: 0; padding: 24px; }
.about-info-card > .icon-box { width: 48px; height: 48px; margin-bottom: 16px; border-radius: 14px; }
.about-info-card > .icon-box .icon { width: 26px; height: 26px; }
.about-info-card h2 { margin-bottom: 16px; font-size: 21px; }
.about-info-card dl { display: grid; gap: 12px; margin: 0; font-size: 15px; }
.about-info-card dl > div { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 10px; }
.about-info-card dt { color: var(--muted); }
.about-info-card dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.about-info-card a { text-decoration: underline; text-underline-offset: 3px; }
.about-history > h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.about-history > h2 .icon { width: 25px; height: 25px; color: var(--orange-text); }
.about-history-message { margin: 0; color: var(--muted); }
.milestone-timeline { padding: 0; margin: 0; list-style: none; }
.milestone-year { position: relative; display: grid; grid-template-columns: 95px minmax(0,1fr); gap: 20px; padding-bottom: 28px; }
.milestone-year::before { position: absolute; content: ""; left: 6px; top: 15px; bottom: -15px; border-left: 2px solid var(--border); }
.milestone-year:last-child { padding-bottom: 0; }
.milestone-year:last-child::before { bottom: 16px; }
.milestone-year h3 { position: relative; padding-left: 24px; margin: 0; color: var(--blue); font-size: 21px; line-height: 1.6; }
.milestone-year h3::before { position: absolute; content: ""; left: 0; top: 10px; width: 14px; height: 14px; border: 3px solid var(--white); border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.milestone-events { min-width: 0; padding: 3px 0 0; margin: 0; list-style: none; overflow-wrap: anywhere; }
.milestone-events li + li { margin-top: 12px; }
.milestone-toggle { margin: 24px 0; border-color: #b9cde3; background: var(--blue-light); color: var(--navy); }
.milestone-toggle:hover { border-color: var(--blue); background: #dceaf9; }
@media (max-width: 600px) {
    .about-info-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
    .about-main { gap: 20px; }
    .about-main h2 { font-size: 22px; }
    .about-info-card h2 { font-size: 20px; }
    .milestone-year { grid-template-columns: 75px minmax(0,1fr); gap: 10px; padding-bottom: 24px; }
    .milestone-year h3 { padding-left: 22px; font-size: 18px; }
    .milestone-year h3::before { top: 7px; }
    .milestone-events { padding-top: 0; font-size: 15px; }
    .milestone-toggle { width: 100%; padding: 10px 12px; font-size: 14px; }
}
.news-content img { display: block; max-width: 100%; height: auto; margin: 24px 0; border-radius: 12px; cursor: pointer; }
.news-content img:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.faq-tools { margin-bottom: 30px; }
.faq-search-label { display: block; margin-bottom: 8px; color: var(--navy); font-weight: 700; }
.faq-search-row { display: flex; gap: 10px; }
.faq-search-row input { width: 100%; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid #adb9c8; border-radius: 10px; color: var(--text); background: var(--white); font: inherit; }
.faq-search-row input:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.faq-clear { flex-shrink: 0; padding: 8px 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--light); color: var(--navy); }
.faq-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.faq-filters button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 24px; background: var(--white); color: var(--muted); font-size: 14px; }
.faq-filters button .icon { width: 18px; height: 18px; }
.faq-filters button:hover { border-color: var(--blue); color: var(--blue); }
.faq-filters button[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: var(--white); }
.faq-group + .faq-group { margin-top: 32px; }
.faq-group > h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; color: var(--navy); font-size: 22px; }
.faq-group > h2 .icon { width: 25px; height: 25px; color: var(--orange-text); }
.faq-item { margin-bottom: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); scroll-margin-top: 100px; }
.faq-item h3 { margin: 0; font-size: 17px; }
.faq-question { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 66px; padding: 18px 20px; border: 0; border-radius: 12px; color: var(--navy); background: transparent; text-align: left; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.faq-question:hover { color: var(--blue); background: var(--light); }
.faq-q { flex: 0 0 25px; color: var(--orange-text); font-size: 20px; }
.faq-chevron { display: none; margin-left: auto; }
.faq-enhanced .faq-chevron { display: block; }
.faq-chevron .icon { width: 20px; height: 20px; transform: rotate(90deg); }
.faq-question[aria-expanded="true"] .faq-chevron .icon { transform: rotate(-90deg); }
.faq-answer { padding: 0 22px 22px 57px; overflow-wrap: anywhere; }
.faq-answer-content { padding-top: 16px; border-top: 1px solid var(--border); font-size: 16px; line-height: 1.9; }
.faq-answer-content a { text-decoration: underline; text-underline-offset: 3px; }
.faq-answer-content img { display: block; max-width: 100%; height: auto; margin: 20px 0; border-radius: 12px; cursor: pointer; }
.faq-answer-content img:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.faq-no-results { padding: 28px; border: 1px solid var(--border); border-radius: 12px; background: var(--light); color: var(--muted); }
@media (max-width: 600px) {
    .faq-question { gap: 8px; padding: 15px 13px; font-size: 16px; }
    .faq-q { flex-basis: 20px; }
    .faq-answer { padding: 0 16px 20px; }
    .faq-filters { gap: 8px; }
    .faq-filters button { padding: 8px 12px; }
    .faq-no-results { padding: 20px; }
}
.news-article-navigation { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-top: 24px; }
.news-article-navigation .news-back { flex-shrink: 0; margin: 0; padding: 0; }
.news-next { max-width: 65%; text-align: right; overflow-wrap: anywhere; font-weight: 700; }
.placeholder-card { min-height: 260px; }
.placeholder-card h2 { margin: 16px 0 10px; color: var(--navy); font-size: 24px; }
.placeholder-card p { margin: 0 0 24px; color: var(--muted); }
@media (max-width: 1000px) {
    .page-banner-art { display: none; }
    .inner-layout { grid-template-columns: minmax(0,1fr); gap: 32px; }
}
@media (max-width: 600px) {
    .page-banner-inner { min-height: 200px; padding-top: 28px; padding-bottom: 28px; }
    .page-banner h1 { font-size: 30px; }
    .page-banner-description { font-size: 15px; }
    .inner-section { padding: 32px 0 48px; }
    .news-filters { gap: 6px; }
    .news-filters a { padding: 8px 12px; }
    .inner-news-card { padding: 20px 16px; gap: 12px; flex-wrap: wrap; }
    .inner-news-copy { flex: 1 1 calc(100% - 68px); }
    .inner-news-copy h2 { font-size: 18px; }
    .inner-news-card > .small-arrow { margin-left: auto; }
    .inner-content-card { padding: 24px 20px; }
    .news-content { font-size: 16px; }
    .news-article-navigation { flex-direction: column; gap: 16px; }
    .news-next { max-width: 100%; text-align: left; }
}
.section-dark { background: var(--navy); color: var(--white); }
.section-dark .eyebrow { color: var(--orange-on-dark); }
.section-dark h2 { color: var(--white); }
.infrastructure-card { padding: 24px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(255,255,255,.06); }
.infrastructure-card .icon-box { width: 48px; height: 48px; margin-bottom: 14px; border-radius: 14px; background: rgba(245,138,0,.16); color: var(--orange-on-dark); }
.infrastructure-card .icon { width: 26px; height: 26px; }
.infrastructure-card h3 { margin: 0 0 6px; font-size: 18px; color: var(--white); }
.infrastructure-card p { margin: 0; color: #d7e3f1; font-size: 15px; }
.fraud-section { padding: 56px 0 0; }
.fraud-panel { display: flex; gap: 20px; padding: 28px 32px; border-radius: 20px; border: 1px solid #f3c7c7; background: #fff6f6; }
.fraud-panel .icon-box { width: 48px; height: 48px; border-radius: 14px; background: #c62828; color: var(--white); }
.fraud-panel h2 { margin: 0 0 6px; color: #a31515; font-size: 19px; }
.fraud-panel p { margin: 0; color: #4a3b3b; font-size: 15px; }
.cta-section { padding: 56px 0 88px; }
.cta-panel { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding: 48px; border-radius: 24px; background: var(--orange); }
.cta-panel > div:first-child { flex: 1 1 420px; }
.cta-panel h2 { margin: 0 0 8px; color: #1a1a1a; font-size: 32px; font-weight: 900; }
.cta-panel p { margin: 0; color: #2b1a00; font-size: 17px; }
.site-footer { padding: 56px 0 28px; background: var(--footer); color: #c3d0df; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.15fr .9fr .9fr 1fr 1.5fr; gap: 28px; margin-bottom: 40px; }
.footer-grid > div { min-width: 0; }
.footer-grid h2 { margin: 0 0 12px; color: var(--white); font-size: 16px; }
.footer-grid a:not(.brand) { display: block; margin-bottom: 6px; color: #c3d0df; }
.footer-grid a:hover, .footer-legal a:hover { color: var(--white); text-decoration: underline; }
.brand-footer { gap: 8px; }
.brand-footer img { filter: brightness(0) invert(1); width: 36px; height: 34px; }
.brand-footer strong { color: var(--white); font-size: 22px; white-space: nowrap; }
.footer-company p { margin: 8px 0 0; }
.footer-contact p { margin: 0 0 6px; overflow-wrap: anywhere; }
.footer-contact p a { display: inline !important; }
.footer-contact .footer-line { color: var(--orange-on-dark) !important; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-legal a { color: #c3d0df; }
.cookie-notice { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; justify-content: center; gap: 24px; padding: 14px 24px; border-top: 1px solid var(--border); background: rgba(255,255,255,.98); box-shadow: 0 -4px 20px rgba(18,53,91,.1); }
.cookie-notice p { margin: 0; font-size: 14px; }
.cookie-notice p a { margin-left: 12px; text-decoration: underline; white-space: nowrap; }
.cookie-notice .button { flex-shrink: 0; }
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 25; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 56px; height: 56px; border: 2px solid var(--orange); border-radius: 50%; background: var(--orange-text); color: var(--white); box-shadow: 0 5px 18px rgba(18,53,91,.28); font-size: 11px; font-weight: 700; line-height: 1; transition: opacity .2s ease, transform .2s ease, background-color .2s ease; }
.back-to-top:hover { background: var(--navy); color: var(--white); transform: translateY(-3px); }
.back-to-top:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; background: var(--navy); color: var(--white); }
/* 無 JS 時保留可用的 #top 連結；啟用後只在長頁面向下捲動時顯示。 */
.top-enhanced .back-to-top { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px); }
.top-enhanced .back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.top-enhanced .back-to-top.is-visible:hover { transform: translateY(-3px); }
.simple-page { min-height: 52vh; padding-top: 96px; padding-bottom: 96px; text-align: center; }
.simple-page h1 { margin: 12px 0; color: var(--navy); font-size: 36px; }
.simple-page p:not(.eyebrow) { color: var(--muted); }
.simple-page .button { margin-top: 20px; }
@media (max-width: 1150px) {
    .desktop-navigation { gap: 16px; font-size: 15px; }
    .header-row { gap: 16px; }
    .desktop-actions { gap: 8px; }
    .desktop-actions .button { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 1000px) {
    .desktop-navigation, .desktop-actions { display: none; }
    .menu-toggle { display: flex; }
    .grid-6 { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .grid-3 { grid-template-columns: 1fr; }
    .hero-copy { flex: 1 1 auto; }
    .hero-phone { display: none; }
    .hero-inner { padding-top: 48px; padding-bottom: 48px; }
    .hero-title { max-width: 700px; }
    .footer-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; }
    .footer-contact { grid-column: span 2; }
}
@media (max-width: 600px) {
    .wrap { padding-left: 20px; padding-right: 20px; }
    .header-row { min-height: 72px; }
    .brand { gap: 10px; }
    .brand strong { font-size: 22px; }
    .brand small { font-size: 11px; }
    .grid-6 { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .grid-4 { grid-template-columns: 1fr; }
    .hero-inner { padding-top: 40px; padding-bottom: 40px; }
    .hero-row { align-items: flex-start; }
    .hero-title { font-size: 36px; line-height: 1.35; }
    .hero-description { font-size: 17px; }
    .hero .button-large { padding: 10px 22px; font-size: 16px; }
    .carousel-controls { gap: 12px; margin-top: 24px; flex-wrap: wrap; }
    .section { padding: 56px 0; }
    .section-heading { margin-bottom: 32px; }
    .section-heading h2 { font-size: 28px; }
    .eyebrow { font-size: 12px; letter-spacing: 2px; }
    .product-card { padding: 28px; }
    .feature-card { padding: 22px; }
    .quick-card { padding: 20px 8px; font-size: 14px; }
    .quick-section { padding: 28px 0; }
    .policy-banner { padding: 18px; font-size: 15px; }
    .policy-banner > span { flex-basis: 100%; }
    .heading-split { gap: 14px; }
    .news-card { padding: 24px; }
    .fraud-section { padding-top: 40px; }
    .fraud-panel { flex-direction: column; padding: 24px; gap: 16px; }
    .cta-section { padding-top: 32px; padding-bottom: 56px; }
    .cta-panel { padding: 28px 24px; }
    .cta-panel h2 { font-size: 28px; line-height: 1.45; }
    .cta-panel p { font-size: 16px; }
    .cta-panel .button-row { width: 100%; }
    .cta-panel .button { flex: 1 1 auto; padding-left: 16px; padding-right: 16px; font-size: 15px; }
    .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 20px; }
    .footer-company, .footer-contact { grid-column: 1 / -1; }
    .footer-grid > div:nth-child(4) { grid-column: 1 / -1; }
    .site-footer { padding-top: 40px; padding-bottom: 120px; }
    .cookie-notice { gap: 12px; padding: 12px 16px; }
    .cookie-notice p { font-size: 12px; }
    .cookie-notice p a { display: inline-block; margin-left: 0; }
    .cookie-notice .button { padding: 8px 14px; font-size: 14px; }
    .back-to-top { right: 16px; bottom: 16px; width: 52px; height: 52px; }
    .simple-page { padding-top: 72px; padding-bottom: 72px; }
    .simple-page h1 { font-size: 30px; }
}
@media (min-width: 1001px) { .mobile-navigation { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card, .back-to-top { transition: none; } }

/* 後台共用編輯器可儲存的四種文字顏色。 */
.tc-orange { color: #f58a00; }
.tc-blue { color: #1f6fb8; }
.tc-red { color: #c62828; }
.tc-gray { color: #3f4650; }

/* 一般內頁：產品、購點、付款、下載、轉址與法律文件。 */
.general-main { display: grid; gap: 24px; min-width: 0; }
.general-card, .product-detail, .legal-section { min-width: 0; scroll-margin-top: 100px; }
.general-card > h2, .product-detail-heading { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; color: var(--navy); font-size: 24px; line-height: 1.5; }
.general-card > h2 > .icon { flex-shrink: 0; width: 27px; height: 27px; color: var(--orange-text); }
.product-detail-heading h2 { margin: 0; font-size: inherit; }
.product-detail-heading > .icon-box { flex: 0 0 60px; width: 60px; height: 60px; border-radius: 17px; }
.product-detail-heading > .icon-box .icon { width: 31px; height: 31px; }
.content-prose { line-height: 1.95; overflow-wrap: anywhere; }
.content-prose p { margin: 0 0 18px; }
.content-prose p:last-child { margin-bottom: 0; }
.content-prose h3 { margin: 28px 0 12px; color: var(--navy); font-size: 19px; }
.content-prose a:not(.button) { text-decoration: underline; text-underline-offset: 3px; }
.feature-list { display: grid; gap: 8px; margin: 20px 0 0; padding-left: 24px; }
.feature-list li { padding-left: 3px; overflow-wrap: anywhere; }
.feature-list li::marker { color: var(--orange-text); }
.step-timeline { margin: 0; padding: 0; list-style: none; }
.step-item { position: relative; display: grid; grid-template-columns: 40px 34px minmax(0,1fr); gap: 14px; align-items: start; padding-bottom: 32px; }
.step-item::before { content: ""; position: absolute; top: 24px; bottom: 0; left: 19px; width: 2px; background: #dce7f2; }
.step-item:last-child { padding-bottom: 0; }
.step-item:last-child::before { display: none; }
.step-number { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--white); background: var(--navy); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.step-icon { display: flex; align-items: center; justify-content: center; min-height: 40px; color: var(--orange-text); }
.step-icon .icon { width: 27px; height: 27px; }
.step-copy { min-width: 0; padding-top: 4px; overflow-wrap: anywhere; }
.step-copy h3 { margin: 0 0 8px; color: var(--navy); font-size: 19px; }
.step-copy p { margin: 0; line-height: 1.9; }
.step-copy a { text-decoration: underline; text-underline-offset: 3px; }
.icon-card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.icon-info-card { min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--light); overflow-wrap: anywhere; }
.icon-info-card > .icon-box { width: 46px; height: 46px; margin-bottom: 14px; border-radius: 13px; }
.icon-info-card h3 { margin: 0 0 10px; color: var(--navy); font-size: 19px; }
.icon-info-card p { margin: 0; line-height: 1.85; }
.icon-info-card p + p { margin-top: 12px; }
.general-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.general-actions .button { min-height: 44px; }
.notice-callout { margin: 24px 0; padding: 18px 20px; border-left: 4px solid var(--orange); border-radius: 0 10px 10px 0; background: var(--orange-light); color: #714000; line-height: 1.85; overflow-wrap: anywhere; }
.notice-callout:last-child { margin-bottom: 0; }
.notice-callout p { margin: 0; }
.data-table-wrap { max-width: 100%; margin: 20px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.data-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; font-variant-numeric: tabular-nums; }
.data-table caption { padding: 14px; color: var(--navy); background: var(--light); text-align: left; font-weight: 700; }
.data-table th, .data-table td { padding: 15px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.data-table thead th { color: var(--white); background: var(--navy); font-weight: 700; }
.data-table tbody th { color: var(--navy); background: var(--light); font-weight: 700; }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }
.download-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.download-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--light); overflow-wrap: anywhere; }
.download-card > .icon-box { width: 50px; height: 50px; border-radius: 14px; }
.download-card > .icon-box .icon { width: 27px; height: 27px; }
.download-card h3 { margin: 0; color: var(--navy); font-size: 19px; }
.download-card p { margin: 0; }
.download-meta { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.download-card .button { margin-top: auto; min-height: 44px; }
.qa-section { padding: 26px 0; border-top: 1px solid var(--border); scroll-margin-top: 100px; }
.qa-section:first-child { padding-top: 0; border-top: 0; }
.qa-section:last-child { padding-bottom: 0; }
.qa-section h2, .qa-section h3 { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; color: var(--navy); font-size: 21px; }
.qa-section h2 .icon, .qa-section h3 .icon { flex-shrink: 0; width: 25px; height: 25px; margin-top: 3px; color: var(--orange-text); }
.legal-toc { padding: 24px; border: 1px solid #d7e3f1; border-radius: 12px; background: var(--blue-light); }
.legal-toc h2 { margin: 0 0 14px; color: var(--navy); font-size: 20px; }
.legal-toc ol, .legal-toc ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 24px; margin: 0; padding-left: 22px; }
.legal-toc a { display: inline-block; padding: 3px 0; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-document { font-size: 16px; line-height: 2; overflow-wrap: anywhere; }
.legal-section { padding-top: 28px; }
.legal-section + .legal-section { margin-top: 28px; border-top: 1px solid var(--border); }
.legal-section h2 { margin: 0 0 16px; color: var(--navy); font-size: 22px; line-height: 1.6; }
.legal-section h3 { margin: 24px 0 12px; color: var(--navy); font-size: 19px; }
.legal-section p { margin: 0 0 18px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ol, .legal-section ul { margin: 16px 0; padding-left: 25px; }
.legal-section li + li { margin-top: 12px; }
.legal-updated { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
@media (max-width: 600px) {
    .general-main { gap: 20px; }
    .general-card > h2, .product-detail-heading { gap: 10px; margin-bottom: 20px; font-size: 21px; }
    .product-detail-heading > .icon-box { flex-basis: 48px; width: 48px; height: 48px; border-radius: 13px; }
    .product-detail-heading > .icon-box .icon { width: 27px; height: 27px; }
    .step-item { grid-template-columns: 34px 25px minmax(0,1fr); gap: 9px; padding-bottom: 28px; }
    .step-item::before { left: 16px; }
    .step-number { width: 34px; height: 34px; font-size: 15px; }
    .step-icon { min-height: 34px; }
    .step-icon .icon { width: 23px; height: 23px; }
    .step-copy { padding-top: 1px; }
    .step-copy h3 { font-size: 17px; }
    .step-copy p { font-size: 15px; }
    .icon-card-grid, .download-grid { grid-template-columns: minmax(0,1fr); }
    .icon-info-card, .download-card { padding: 20px; }
    .general-actions { gap: 10px; margin-top: 24px; }
    .general-actions .button { flex: 1 1 auto; padding-left: 16px; padding-right: 16px; font-size: 14px; }
    .notice-callout { padding: 16px; font-size: 15px; }
    .data-table { font-size: 13px; }
    .data-table th, .data-table td { padding: 12px 8px; }
    .legal-toc { padding: 20px; }
    .legal-toc ol, .legal-toc ul { grid-template-columns: minmax(0,1fr); gap: 6px; }
    .legal-section h2 { font-size: 20px; }
    .legal-section { padding-top: 24px; }
    .legal-document { font-size: 15px; }
}

/* 前台會員與聯絡表單 */
.member-form { padding: 32px; min-width: 0; }
.member-form h2 { margin: 0 0 12px; color: var(--navy); font-size: 24px; }
.form-intro { margin: 0 0 24px; color: var(--muted); line-height: 1.8; }
.form-notices { margin: 0; }
.form-notices p + p { margin-top: 10px; }
.form-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.form-field { min-width: 0; }
.form-field > label { display: block; margin-bottom: 9px; color: var(--navy); font-weight: 700; font-size: 15px; }
.form-required { color: #a63722; font-size: 12px; font-weight: 400; }
.form-optional { color: var(--muted); font-size: 12px; font-weight: 400; }
.form-field input, .form-field textarea { display: block; width: 100%; max-width: 100%; padding: 12px 14px; border: 1px solid #a8b9cb; border-radius: 7px; background: var(--white); color: var(--text); font: inherit; font-size: 16px; line-height: 1.5; }
.form-field textarea { min-height: 160px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: 3px solid #b5d5f5; outline-offset: 1px; border-color: var(--blue); }
.form-field [aria-invalid="true"] { border-color: #b53724; }
.form-field-wide, .form-group-heading { grid-column: 1 / -1; }
.form-group-heading { margin: 10px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--border); color: var(--navy); font-size: 18px; }
.form-group-heading:first-child { margin-top: 0; }
.form-help, .form-field-error { margin: 8px 0 0; font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.form-help { color: var(--muted); }
.form-field-error { color: #aa2d1d; }
.form-error { margin: 20px 0; padding: 15px 18px; border: 1px solid #e9b8ac; border-radius: 8px; background: #fff3ef; color: #9f2d1a; line-height: 1.8; overflow-wrap: anywhere; }
.form-error.is-dialog-enhanced { display: none; }
html.form-dialog-open, html.form-dialog-open body { overflow: hidden; overscroll-behavior: none; }
.form-error-dialog { display: none; position: fixed; inset: 0; width: calc(100% - 32px); max-width: 480px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 24px; border: 1px solid var(--border); border-radius: 16px; color: var(--text); background: var(--white); box-shadow: 0 20px 70px rgba(11,35,64,.25); overflow: hidden; }
.form-error-dialog[open] { display: flex; flex-direction: column; gap: 16px; }
.form-error-dialog::backdrop { background: rgba(11,35,64,.58); }
.form-error-dialog > h2 { flex-shrink: 0; margin: 0; color: var(--navy); font-size: 22px; line-height: 1.5; }
.form-error-dialog-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; overflow-wrap: anywhere; padding-right: 4px; line-height: 1.85; }
.form-error-dialog-content p { margin: 0 0 12px; }
.form-error-dialog-content ul { margin: 0; padding-left: 24px; }
.form-error-dialog-content li + li { margin-top: 8px; }
.form-error-dialog-actions { flex-shrink: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.form-error-dialog-actions .button { min-width: 88px; max-width: 100%; overflow-wrap: anywhere; }
.form-success-dialog .form-result-icon { flex-shrink: 0; align-self: flex-start; margin: 0; padding: 10px; }
.form-success-dialog .form-result-icon .icon { width: 28px; height: 28px; }
.form-captcha { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 18px; padding-top: 4px; }
.captcha-image-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 29px; }
.captcha-image-row img { display: block; width: 160px; height: 52px; border: 1px solid var(--border); border-radius: 5px; background: var(--light); }
.captcha-refresh { min-height: 44px; padding: 8px 10px; border: 1px solid #b9cce0; border-radius: 6px; color: var(--navy); background: var(--blue-light); font: inherit; font-size: 13px; cursor: pointer; }
.captcha-refresh:hover { background: #dceafa; }
.join-progress { display: flex; gap: 12px; margin: 0 0 25px; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.join-progress li { flex: 1; padding: 12px 8px; border-bottom: 3px solid var(--border); text-align: center; }
.join-progress [aria-current="step"] { color: var(--navy); border-color: var(--orange); font-weight: 700; }
.join-terms { max-height: 420px; overflow-y: auto; padding: 0 22px 24px; border: 1px solid var(--border); border-radius: 8px; background: var(--light); }
.join-terms .legal-section h3 { font-size: 17px; }
.terms-agreement { margin-top: 24px; }
.terms-agreement label { display: flex; align-items: flex-start; gap: 11px; color: var(--navy); font-size: 15px; line-height: 1.8; cursor: pointer; }
.terms-agreement input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--orange); flex-shrink: 0; }
.contact-form-layout { display: grid; grid-template-columns: minmax(210px,.7fr) minmax(0,1.3fr); gap: 20px; align-items: start; }
.contact-information { padding: 25px; font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.contact-information h2 { display: flex; gap: 10px; align-items: center; margin: 0 0 14px; color: var(--navy); font-size: 20px; }
.contact-information h2 .icon { width: 24px; height: 24px; color: var(--orange-text); }
.contact-information p { margin: 0 0 20px; color: var(--muted); }
.contact-information dl { margin: 0 0 24px; }
.contact-information dt { color: var(--navy); font-weight: 700; }
.contact-information dd { margin: 4px 0 18px; }
.contact-information .button { width: 100%; }
.contact-form-layout .form-fields, .contact-form-layout .form-captcha { grid-template-columns: minmax(0,1fr); }
.contact-form-layout .captcha-image-row { padding-top: 0; }
.ip-card .icon-box { margin-bottom: 24px; }
.visitor-ip { margin: 18px 0 24px; color: var(--blue); font-size: clamp(22px,4vw,38px); font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.form-result h2 { font-size: 24px; line-height: 1.7; overflow-wrap: anywhere; }
.form-result-icon { display: inline-flex; margin-bottom: 22px; padding: 15px; border-radius: 50%; color: #276946; background: #e8f5ed; }
.form-result-icon .icon { width: 38px; height: 38px; }
@media (max-width: 1100px) { .contact-form-layout { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 600px) {
    .member-form { padding: 22px 18px; }
    .member-form h2, .form-result h2 { font-size: 21px; }
    .form-fields, .form-captcha { grid-template-columns: minmax(0,1fr); gap: 20px; }
    .form-captcha .captcha-image-row { padding-top: 0; }
    .join-terms { padding: 0 16px 20px; max-height: 360px; }
    .contact-information { padding: 22px; }
}
