/* =============================================================
   鉅擅集團 入口網站 — 樣式表
   單一檔案, 不依賴任何 CDN 或外部字型 (Caddy 靜態託管, CSP 友善)
   支援淺色/深色模式、RTL 預留、7 種語系的字型 fallback
   ============================================================= */

/* ---------- 設計變數 ---------- */
:root {
    --brand-950: #061224;
    --brand-900: #0a1c33;
    --brand-800: #0e2a4a;
    --brand-600: #17558f;
    --brand-500: #1e6fb8;
    --brand-300: #7db4e6;
    --accent-600: #0e9c86;
    --accent-500: #16bfa3;
    --accent-300: #7fe3d1;
    --gold: #c9a558;

    --ink: #0d1725;
    --ink-2: #3d4c60;
    --ink-3: #66788f;
    --line: #dfe6ef;
    --bg: #ffffff;
    --surface: #f5f8fc;
    --surface-2: #eaf1f9;
    --card: #ffffff;
    --shadow-sm: 0 1px 2px rgba(9, 25, 46, .06), 0 2px 8px rgba(9, 25, 46, .04);
    --shadow-md: 0 6px 16px rgba(9, 25, 46, .08), 0 20px 40px rgba(9, 25, 46, .07);

    --radius: 14px;
    --radius-lg: 22px;
    --maxw: 1140px;
    --gutter: clamp(1.15rem, 4vw, 2.5rem);
    --section-y: clamp(3.75rem, 8vw, 6.5rem);

    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Noto Sans", "Helvetica Neue", Arial, "PingFang TC", "PingFang SC",
        "Hiragino Sans", "Noto Sans TC", "Noto Sans SC", "Noto Sans JP",
        "Noto Sans Devanagari", "Microsoft JhengHei", "Microsoft YaHei",
        sans-serif;
    --font-num: ui-rounded, "SF Pro Rounded", var(--font);
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #e9eff7;
        --ink-2: #adbccf;
        --ink-3: #8496ac;
        --line: #1e3252;
        --bg: #060e1a;
        --surface: #0a1526;
        --surface-2: #0f1e34;
        --card: #0c1a2e;
        --brand-300: #96c6f2;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
        --shadow-md: 0 10px 30px rgba(0, 0, 0, .45);
    }
}

/* ---------- 基礎 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.72;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* 印地語/越南語行高需求較高, 避免變音符號被裁切 */
html[lang="hi"] body, html[lang="vi"] body { line-height: 1.8; }

img, svg { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
@media (prefers-color-scheme: dark) { a { color: var(--brand-300); } }

h1, h2, h3, h4 { line-height: 1.28; margin: 0 0 .6em; letter-spacing: -.015em; font-weight: 750; }
h1 { font-size: clamp(2.05rem, 5.2vw, 3.5rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); letter-spacing: -.022em; }
h3 { font-size: 1.16rem; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
    outline: 3px solid var(--accent-500);
    outline-offset: 3px;
    border-radius: 6px;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--brand-900); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ---------- 頁首 ---------- */
.hdr {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s, box-shadow .25s;
}
.hdr.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.hdr__in { display: flex; align-items: center; gap: 1rem; min-height: 4.4rem; }

.brand { display: inline-flex; align-items: center; gap: .62rem; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 2.35rem; height: 2.35rem; flex: 0 0 auto; }
.brand__tx { display: flex; flex-direction: column; line-height: 1.15; }
.brand__zh { font-size: 1.06rem; font-weight: 800; letter-spacing: .01em; }
.brand__en { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

.nav { margin-inline-start: auto; display: flex; align-items: center; gap: .25rem; }
.nav__list { display: flex; align-items: center; gap: .1rem; }
.nav__list a {
    display: block; padding: .5rem .72rem; border-radius: 9px;
    font-size: .925rem; font-weight: 600; color: var(--ink-2);
}
.nav__list a:hover { color: var(--brand-600); background: var(--surface-2); text-decoration: none; }
@media (prefers-color-scheme: dark) { .nav__list a:hover { color: var(--brand-300); } }

.hdr__cta { display: flex; align-items: center; gap: .5rem; margin-inline-start: .55rem; }

/* 語言選單 */
.lang { position: relative; }
.lang__btn {
    display: inline-flex; align-items: center; gap: .4rem;
    background: transparent; border: 1px solid var(--line); color: var(--ink-2);
    font: inherit; font-size: .875rem; font-weight: 600;
    padding: .46rem .7rem; border-radius: 10px; cursor: pointer;
    white-space: nowrap;   /* 「繁體中文」「Bahasa Indonesia」等長語系名不可斷行 */
}
.lang__btn svg { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; }
.lang__btn > span { white-space: nowrap; }
.nav__list a { white-space: nowrap; }
.lang__btn:hover { border-color: var(--brand-500); color: var(--brand-600); }
.lang__menu {
    position: absolute; inset-inline-end: 0; top: calc(100% + .5rem);
    min-width: 16rem; padding: .4rem; margin: 0;   /* 容得下「Bahasa Indonesia」+ 英文名不換行 */
    background: var(--card); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow-md); display: none; z-index: 120;
}
.lang__menu[data-open="true"] { display: block; }
.lang__menu a {
    display: flex; justify-content: space-between; gap: 1rem; align-items: center;
    padding: .5rem .65rem; border-radius: 8px; font-size: .9rem; color: var(--ink); font-weight: 600;
    white-space: nowrap;
}
.lang__menu a:hover { background: var(--surface-2); text-decoration: none; }
.lang__menu a[aria-current="true"] { color: var(--brand-600); background: var(--surface); }
.lang__menu span { font-size: .78rem; color: var(--ink-3); font-weight: 500; }

.burger {
    display: none; background: transparent; border: 1px solid var(--line);
    border-radius: 10px; padding: .5rem; cursor: pointer; color: var(--ink);
    margin-inline-start: auto;
}
.burger svg { display: block; width: 1.4rem; height: 1.4rem; }

/* 日文/印尼文等較長的選單文字在中等寬度容易擠爆, 提早收進漢堡選單 */
@media (max-width: 1180px) and (min-width: 1001px) {
    .nav__list a { padding: .5rem .55rem; font-size: .88rem; }
}

@media (max-width: 1180px) {
    .burger { display: inline-flex; }
    .nav {
        position: absolute; top: 100%; inset-inline: 0;
        flex-direction: column; align-items: stretch; gap: .5rem;
        background: var(--bg); border-bottom: 1px solid var(--line);
        padding: 1rem var(--gutter) 1.4rem; box-shadow: var(--shadow-md);
        display: none;
    }
    .nav[data-open="true"] { display: flex; }
    .nav__list { flex-direction: column; align-items: stretch; gap: .1rem; }
    .nav__list a { padding: .7rem .6rem; font-size: 1rem; white-space: normal; }
    .hdr__cta { margin-inline-start: 0; flex-direction: column; align-items: stretch; }
    .hdr__cta .btn { width: 100%; justify-content: center; }
    .lang { width: 100%; }
    .lang__btn { width: 100%; justify-content: center; }
    .lang__menu { position: static; box-shadow: none; margin-top: .4rem; }
}

/* ---------- 按鈕 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font: inherit; font-size: .95rem; font-weight: 700; line-height: 1.2;
    padding: .78rem 1.3rem; border-radius: 11px; border: 1px solid transparent;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-800) 65%);
    box-shadow: 0 6px 18px rgba(23, 85, 143, .28);
}
.btn--primary:hover { box-shadow: 0 10px 26px rgba(23, 85, 143, .36); }
.btn--accent {
    color: #05231e;
    background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
    box-shadow: 0 6px 18px rgba(14, 156, 134, .3);
}
.btn--ghost { color: var(--ink); background: transparent; border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand-500); color: var(--brand-600); background: var(--surface); }
.btn--onDark { color: #08182c; background: #fff; }
.btn--outlineDark { color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); }
.btn--outlineDark:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.btn--sm { padding: .55rem .95rem; font-size: .875rem; border-radius: 9px; }
.btn--lg { padding: .95rem 1.7rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ---------- 區塊通用 ---------- */
.sec { padding-block: var(--section-y); }
.sec--surface { background: var(--surface); border-block: 1px solid var(--line); }
.sec__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.sec__head--center { margin-inline: auto; text-align: center; }
.sec__head p { color: var(--ink-2); font-size: 1.06rem; margin: 0; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .775rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
    color: var(--accent-600); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: currentColor; border-radius: 2px; }
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--accent-300); } }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: #eaf2fb;
    background:
        radial-gradient(1100px 520px at 88% -8%, rgba(22, 191, 163, .3), transparent 62%),
        radial-gradient(900px 460px at 6% 8%, rgba(30, 111, 184, .42), transparent 60%),
        linear-gradient(160deg, var(--brand-900), var(--brand-950) 72%);
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 66px 66px;
    mask-image: radial-gradient(1000px 560px at 62% 12%, #000 25%, transparent 78%);
    -webkit-mask-image: radial-gradient(1000px 560px at 62% 12%, #000 25%, transparent 78%);
}
.hero__in { position: relative; z-index: 1; padding-block: clamp(4rem, 10vw, 7.5rem) clamp(3.5rem, 8vw, 6rem); }
.hero .eyebrow { color: var(--accent-300); }
.hero h1 { color: #fff; max-width: 22em; }
.hero h1 .hl {
    background: linear-gradient(100deg, var(--accent-300), var(--brand-300));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: clamp(1.02rem, 1.6vw, 1.17rem); color: #b9cde3; max-width: 40em; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: clamp(2.6rem, 6vw, 4rem); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.4rem 2rem; }
.stats > li { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 1rem; }
.stats b {
    display: block; font-family: var(--font-num); font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 800; letter-spacing: -.02em; color: #fff; line-height: 1.1;
}
.stats span { font-size: .9rem; color: #a8bfd8; }

/* ---------- 卡片網格 ---------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.4rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr)); }

.card {
    position: relative; background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.6rem 1.5rem 1.7rem;
    box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .25s ease, border-color .25s;
    height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand-500) 40%, var(--line)); }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--ink-2); font-size: .945rem; margin-bottom: 1rem; }
.card__ico {
    display: inline-grid; place-items: center; width: 2.9rem; height: 2.9rem; margin-bottom: 1.05rem;
    border-radius: 12px; color: var(--brand-600);
    background: linear-gradient(140deg, var(--surface-2), color-mix(in srgb, var(--accent-500) 16%, transparent));
    border: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) { .card__ico { color: var(--accent-300); } }
.card__ico svg { width: 1.45rem; height: 1.45rem; }

.ticks > li { position: relative; padding-inline-start: 1.5rem; font-size: .895rem; color: var(--ink-2); margin-bottom: .38rem; }
.ticks > li::before {
    content: ""; position: absolute; inset-inline-start: 0; top: .58em;
    width: .46rem; height: .46rem; border-radius: 50%;
    background: var(--accent-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-500) 18%, transparent);
}

/* ---------- 舊轉新 流程 ---------- */
.steps { counter-reset: step; display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.steps > li {
    counter-increment: step; position: relative;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.5rem 1.4rem; box-shadow: var(--shadow-sm);
}
.steps > li::before {
    content: counter(step, decimal-leading-zero);
    display: block; font-family: var(--font-num); font-size: 1.6rem; font-weight: 800;
    color: color-mix(in srgb, var(--brand-500) 55%, transparent); line-height: 1; margin-bottom: .7rem;
}
.steps h3 { font-size: 1.04rem; margin-bottom: .35rem; }
.steps p { font-size: .9rem; color: var(--ink-2); margin: 0; }

/* ---------- 產品 / 合作對象 ---------- */
.plink {
    display: flex; flex-direction: column; gap: .55rem;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.5rem; box-shadow: var(--shadow-sm); color: inherit;
    transition: transform .2s, box-shadow .25s, border-color .25s;
}
.plink:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent-500) 45%, var(--line)); }
.plink__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.plink__name { font-size: 1.1rem; font-weight: 750; margin: 0; }
.plink p { font-size: .925rem; color: var(--ink-2); margin: 0; }
.plink__url { font-size: .84rem; font-weight: 650; color: var(--brand-600); word-break: break-all; }
@media (prefers-color-scheme: dark) { .plink__url { color: var(--brand-300); } }
.plink__out { flex: 0 0 auto; width: 1.05rem; height: 1.05rem; color: var(--ink-3); }

.tag {
    display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
    padding: .26rem .55rem; border-radius: 999px;
    color: var(--accent-600); background: color-mix(in srgb, var(--accent-500) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent-500) 32%, transparent);
}
.tag--gold { color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); border-color: color-mix(in srgb, var(--gold) 34%, transparent); }
@media (prefers-color-scheme: dark) { .tag { color: var(--accent-300); } }

/* ---------- 關於 ---------- */
.about { display: grid; gap: clamp(1.8rem, 4vw, 3.4rem); grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
.about p { color: var(--ink-2); }
.about__points { display: grid; gap: .9rem; }
.about__points > li {
    display: flex; gap: .85rem; background: var(--card); border: 1px solid var(--line);
    border-radius: 12px; padding: 1rem 1.1rem; box-shadow: var(--shadow-sm);
}
.about__points svg { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; margin-top: .28rem; color: var(--accent-600); }
.about__points strong { display: block; font-size: .97rem; }
.about__points span { font-size: .885rem; color: var(--ink-2); }

/* ---------- 聯絡 ---------- */
.contact { display: grid; gap: clamp(1.8rem, 4vw, 3rem); grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: start; }
@media (max-width: 940px) { .contact { grid-template-columns: 1fr; } }
.contact__aside p { color: var(--ink-2); }
.contact__facts { display: grid; gap: .85rem; margin-top: 1.6rem; }
.contact__facts > li { display: flex; gap: .7rem; font-size: .93rem; color: var(--ink-2); align-items: flex-start; }
.contact__facts svg { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; color: var(--brand-600); margin-top: .3rem; }
@media (prefers-color-scheme: dark) { .contact__facts svg { color: var(--brand-300); } }

.form {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: clamp(1.35rem, 3vw, 2.1rem); box-shadow: var(--shadow-md);
}
.form__row { display: grid; gap: 1rem 1.1rem; grid-template-columns: 1fr 1fr; margin-bottom: 1rem; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .38rem; margin-bottom: 1rem; }
.field > label { font-size: .875rem; font-weight: 700; color: var(--ink); }
.field .req { color: #d6455d; margin-inline-start: .15rem; }
.field .opt { font-weight: 500; color: var(--ink-3); font-size: .8rem; margin-inline-start: .3rem; }
.field input, .field select, .field textarea {
    font: inherit; font-size: .95rem; color: var(--ink);
    background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
    padding: .7rem .85rem; width: 100%;
    transition: border-color .18s, box-shadow .18s;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--brand-500);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-500) 18%, transparent);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #d6455d; }
.field__err { font-size: .82rem; color: #d6455d; min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label {
    display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
    font-size: .875rem; font-weight: 600; color: var(--ink-2);
    border: 1px solid var(--line); border-radius: 999px; padding: .45rem .85rem;
    background: var(--bg); transition: all .18s;
}
.chips label:hover { border-color: var(--brand-500); color: var(--brand-600); }
.chips input:checked + label {
    color: #fff; background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
    border-color: transparent;
}
.chips input:focus-visible + label { outline: 3px solid var(--accent-500); outline-offset: 2px; }

.consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .875rem; color: var(--ink-2); }
.consent input { width: 1.05rem; height: 1.05rem; margin-top: .35rem; flex: 0 0 auto; accent-color: var(--brand-600); }

.form__note { font-size: .82rem; color: var(--ink-3); margin: .9rem 0 0; }
.alert { border-radius: 12px; padding: .95rem 1.1rem; font-size: .92rem; margin-bottom: 1.2rem; display: none; }
.alert[data-show="true"] { display: block; }
.alert--ok { color: #0a6b4f; background: #e4f7f0; border: 1px solid #9fdcc9; }
.alert--err { color: #8c2233; background: #fdeaee; border: 1px solid #f2b8c3; }
@media (prefers-color-scheme: dark) {
    .alert--ok { color: #8ef0d3; background: rgba(14, 156, 134, .14); border-color: rgba(22, 191, 163, .4); }
    .alert--err { color: #ffb3c0; background: rgba(214, 69, 93, .14); border-color: rgba(214, 69, 93, .42); }
}
.alert code { font-weight: 800; letter-spacing: .04em; }
.btn[aria-busy="true"] { opacity: .72; pointer-events: none; }

/* ---------- 登入頁 ---------- */
.page-head {
    color: #eaf2fb; padding-block: clamp(3.2rem, 8vw, 5rem);
    background:
        radial-gradient(800px 380px at 82% 0%, rgba(22, 191, 163, .26), transparent 60%),
        linear-gradient(160deg, var(--brand-900), var(--brand-950));
}
.page-head h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.page-head p { color: #b9cde3; max-width: 44em; margin: 0; }
.crumb { font-size: .85rem; color: #8fa9c6; margin-bottom: 1rem; }
.crumb a { color: #b9cde3; }

.login { display: grid; gap: clamp(1.6rem, 3.5vw, 2.6rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .login { grid-template-columns: 1fr; } }
.login__card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-md);
}
.login__card h2 { font-size: 1.4rem; }
.login__card > p { color: var(--ink-2); font-size: .95rem; }
.idps { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 1.4rem; }
.idps > li {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: .85rem; font-weight: 650; color: var(--ink-2);
    border: 1px solid var(--line); border-radius: 999px; padding: .4rem .8rem; background: var(--surface);
}
.idps svg { width: 1rem; height: 1rem; }
.applinks { display: grid; gap: .9rem; }
.applinks .plink { flex-direction: row; align-items: center; gap: 1rem; }
.applinks .plink__body { flex: 1 1 auto; min-width: 0; }
.notice {
    display: flex; gap: .75rem; font-size: .885rem; color: var(--ink-2);
    background: var(--surface); border: 1px solid var(--line); border-inline-start: 3px solid var(--accent-500);
    border-radius: 10px; padding: .95rem 1.1rem; margin-top: 1.4rem;
}
.notice svg { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; color: var(--accent-600); margin-top: .18rem; }

/* ---------- 隱私頁 ---------- */
.prose { max-width: 48rem; }
.prose h2 { font-size: 1.32rem; margin-top: 2.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { margin: 0 0 1.2em; }
.prose ul > li { position: relative; padding-inline-start: 1.3rem; margin-bottom: .4rem; }
.prose ul > li::before {
    content: ""; position: absolute; inset-inline-start: .25rem; top: .72em;
    width: .34rem; height: .34rem; border-radius: 50%; background: var(--ink-3);
}
.prose .updated { font-size: .87rem; color: var(--ink-3); }

/* ---------- CTA 帶 ---------- */
.cta {
    color: #fff; text-align: center;
    background:
        radial-gradient(700px 320px at 50% -20%, rgba(22, 191, 163, .3), transparent 65%),
        linear-gradient(135deg, var(--brand-800), var(--brand-950));
}
.cta h2 { color: #fff; }
.cta p { color: #bdd2e8; max-width: 40em; margin-inline: auto; }
.cta__btns { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.8rem; }

/* ---------- 頁尾 ---------- */
.ftr { background: var(--brand-950); color: #a8bfd8; padding-block: clamp(2.8rem, 6vw, 4rem) 1.6rem; }
.ftr a { color: #cfe0f2; }
.ftr__top { display: grid; gap: 2rem clamp(1.5rem, 4vw, 3rem); grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(9rem, 1fr)); }
.ftr .brand__zh, .ftr .brand__en { color: #fff; }
.ftr .brand__en { color: #7f9ab8; }
.ftr__tag { font-size: .92rem; max-width: 26em; margin: 1rem 0 0; }
.ftr h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem; }
.ftr__col li { margin-bottom: .5rem; font-size: .92rem; }
.ftr__btm {
    margin-top: clamp(2rem, 5vw, 3rem); padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; justify-content: space-between;
    font-size: .85rem; color: #8fa9c6;
}
.ftr__btm a { color: #8fa9c6; }

/* ---------- 小工具類別 ----------
   (刻意不用 inline style, 這樣 Caddy 才能下 style-src 'self' 的嚴格 CSP) */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 1.6rem; }
.muted { color: var(--ink-2); }
.muted--sm { color: var(--ink-2); font-size: .94rem; }

/* ---------- 進場動畫 ---------- */
[data-rv] { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
[data-rv].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    [data-rv] { opacity: 1; transform: none; }
}

/* ---------- 列印 ---------- */
@media print {
    .hdr, .ftr, .cta, .form, .burger { display: none !important; }
    body { color: #000; background: #fff; }
}
