/* =========================================================================
   Sunllo 官方網站 — 行銷站樣式
   品牌色取自 Sunllo.CBN：#14488f → #1f6feb → #4a93ff
   ========================================================================= */
:root {
    --brand-900: #0b3774;
    --brand-800: #0f4695;
    --brand-700: #14488f;
    --brand-600: #1f6feb;
    --brand-500: #4a93ff;
    --brand-300: #8fbaff;
    --brand-100: #e8f1ff;

    --ink: #16202e;
    --ink-soft: #44506140;
    --text: #2a2f38;
    --muted: #5d6b7e;
    --muted-2: #8a93a2;
    --line: #e6ebf2;
    --surface: #ffffff;
    --surface-2: #f4f7fb;
    --surface-3: #eef3fa;

    --grad-brand: linear-gradient(135deg, #14488f 0%, #1f6feb 55%, #4a93ff 100%);
    --grad-brand-soft: linear-gradient(135deg, #1f6feb 0%, #4a93ff 100%);
    --grad-hero: radial-gradient(1200px 600px at 80% -10%, rgba(74,147,255,.35), transparent 60%),
                 radial-gradient(900px 500px at 0% 0%, rgba(31,111,235,.28), transparent 55%),
                 linear-gradient(160deg, #0b3774 0%, #0e2b57 45%, #0a1f3f 100%);

    --shadow-sm: 0 1px 2px rgba(16,32,64,.06), 0 1px 3px rgba(16,32,64,.08);
    --shadow-md: 0 8px 24px rgba(16,40,80,.10);
    --shadow-lg: 0 24px 60px rgba(13,38,80,.18);
    --shadow-brand: 0 18px 40px rgba(31,111,235,.35);

    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;

    --container: 1180px;
    --font: "Noto Sans TC", "Segoe UI", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--surface);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--brand-600); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-700); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--surface-2); }
.section--dark { background: var(--brand-900); color: #cdddf4; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

/* ---------- 共用：標題區 ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--brand-600); background: var(--brand-100);
    padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.section--dark .eyebrow { color: var(--brand-300); background: rgba(143,186,255,.12); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { font-size: 18px; color: var(--muted); margin-bottom: 0; }
.section--dark .section-head p { color: #a9c2e6; }

/* ---------- 按鈕 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: inherit; font-size: 15.5px; font-weight: 700; line-height: 1;
    padding: 14px 26px; border-radius: 12px; border: 1px solid transparent;
    cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-brand-soft); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { color: #fff; box-shadow: 0 22px 48px rgba(31,111,235,.45); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.16); }
.btn-outline { background: var(--surface); color: var(--brand-700); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-outline:hover { color: var(--brand-700); border-color: var(--brand-300); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- 導覽列 ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 30px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
    color: var(--text); font-weight: 600; font-size: 15px;
    padding: 9px 14px; border-radius: 9px; transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--surface-3); color: var(--brand-700); }
.nav-links a.active { color: var(--brand-700); background: var(--brand-100); }
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--surface); }
.lang-switch a { padding: 7px 12px; font-size: 13px; font-weight: 700; color: var(--muted); }
.lang-switch a:hover { background: var(--surface-3); }
.lang-switch a.on { background: var(--grad-brand-soft); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--grad-hero); background-color: #0b2750; color: #eaf2ff; }
.hero::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 26px 26px; mask-image: linear-gradient(to bottom, black, transparent 80%); pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: 96px 0 110px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 700;
    color: #cfe2ff; background: rgba(143,186,255,.14); border: 1px solid rgba(143,186,255,.25);
    padding: 7px 16px; border-radius: 999px; margin-bottom: 24px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #5dffa0; box-shadow: 0 0 0 4px rgba(93,255,160,.18); }
.hero h1 { color: #fff; font-size: clamp(34px, 5.2vw, 60px); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 22px; }
.hero h1 .grad { background: linear-gradient(100deg, #8fbaff, #ffffff 60%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 19px; color: #bcd2f2; max-width: 560px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-trust { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; color: #9fbbe4; font-size: 14px; }
.hero-trust b { color: #fff; }
.hero-trust .sep { width: 1px; height: 16px; background: rgba(255,255,255,.2); }

/* Hero 視覺：模組儀表板示意 */
.hero-visual { position: relative; }
.hero-card {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
    border-radius: 20px; padding: 18px; box-shadow: var(--shadow-lg); backdrop-filter: blur(6px);
}
.hero-card-bar { display: flex; gap: 6px; margin-bottom: 16px; }
.hero-card-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.25); }
.hero-card-bar i:nth-child(1) { background: #ff6058; }
.hero-card-bar i:nth-child(2) { background: #ffbd2e; }
.hero-card-bar i:nth-child(3) { background: #27c93f; }
.hero-modgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hero-mod {
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
    border-radius: 13px; padding: 14px; text-align: center; transition: transform .2s ease, background .2s ease;
}
.hero-mod:hover { transform: translateY(-3px); background: rgba(255,255,255,.13); }
.hero-mod .ico { font-size: 24px; margin-bottom: 8px; }
.hero-mod .nm { font-size: 13px; color: #dce8fb; font-weight: 600; }
.hero-float {
    position: absolute; right: -14px; bottom: -20px; background: #fff; color: var(--ink);
    border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
}
.hero-float .ai { width: 38px; height: 38px; border-radius: 10px; background: var(--grad-brand-soft); display: grid; place-items: center; color: #fff; font-size: 18px; }
.hero-float .t { font-size: 13px; line-height: 1.3; }
.hero-float .t b { display: block; font-size: 14px; }

/* ---------- Logo / 數據條 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num { font-size: clamp(30px, 4vw, 44px); font-weight: 800; background: var(--grad-brand-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* ---------- 特色卡片網格 ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.card .ico {
    width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
    font-size: 24px; color: #fff; background: var(--grad-brand-soft); margin-bottom: 18px; box-shadow: var(--shadow-brand);
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; margin-bottom: 0; }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; }
.card ul li { position: relative; padding-left: 24px; color: var(--muted); font-size: 14.5px; margin-bottom: 7px; }
.card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-600); font-weight: 800; }

/* ---------- 模組總覽（彩色徽記）---------- */
.modcard { display: flex; gap: 16px; align-items: flex-start; }
.modcard .badge { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: #fff; }
.modcard h3 { font-size: 17px; margin-bottom: 4px; }
.modcard p { font-size: 14px; color: var(--muted); margin: 0; }
.bg-1 { background: linear-gradient(135deg,#1f6feb,#4a93ff); }
.bg-2 { background: linear-gradient(135deg,#0ea5a3,#22c1bd); }
.bg-3 { background: linear-gradient(135deg,#7c3aed,#a87bf5); }
.bg-4 { background: linear-gradient(135deg,#ea580c,#fb923c); }
.bg-5 { background: linear-gradient(135deg,#db2777,#f472b6); }
.bg-6 { background: linear-gradient(135deg,#0f766e,#2dd4bf); }
.bg-7 { background: linear-gradient(135deg,#2563eb,#60a5fa); }
.bg-8 { background: linear-gradient(135deg,#475569,#94a3b8); }

/* ---------- 解決方案情境（左右交錯）---------- */
.scenario { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 88px; }
.scenario:last-child { margin-bottom: 0; }
.scenario.flip .scenario-media { order: 2; }
.scenario h3 { font-size: 26px; }
.scenario .lead { color: var(--muted); font-size: 17px; }
.scenario .flow { list-style: none; padding: 0; margin: 20px 0 0; }
.scenario .flow li { position: relative; padding: 12px 0 12px 44px; border-left: 2px dashed var(--line); margin-left: 16px; }
.scenario .flow li:last-child { border-left-color: transparent; }
.scenario .flow li .n {
    position: absolute; left: -16px; top: 10px; width: 32px; height: 32px; border-radius: 50%;
    background: var(--grad-brand-soft); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; box-shadow: var(--shadow-brand);
}
.scenario .flow li b { color: var(--ink); }
.scenario-media {
    background: var(--grad-brand); border-radius: var(--radius-lg); padding: 30px; color: #fff;
    box-shadow: var(--shadow-lg); position: relative; overflow: hidden; min-height: 280px;
}
.scenario-media::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; }
.scenario-media .tag { position: relative; display: inline-block; font-size: 13px; background: rgba(255,255,255,.18); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.scenario-media .pill { position: relative; display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.scenario-media .pill .e { font-size: 20px; }
.scenario-media .pill .x { font-size: 14px; }
.scenario-media .pill .x b { display: block; }
.scenario-media .pill .arr { margin-left: auto; opacity: .7; }

/* ---------- 適合對象 ---------- */
.persona { text-align: left; }
.persona .ico { font-size: 30px; }
.persona-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.persona-tags span { font-size: 13px; background: var(--surface-3); color: var(--brand-700); padding: 5px 12px; border-radius: 999px; font-weight: 600; }

/* ---------- 定價 ---------- */
.price-toggle { display: inline-flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px; margin: 0 auto 12px; }
.price-toggle button { border: 0; background: transparent; font-family: inherit; font-weight: 700; font-size: 14px; color: var(--muted); padding: 9px 20px; border-radius: 999px; cursor: pointer; transition: .15s; }
.price-toggle button.on { background: var(--grad-brand-soft); color: #fff; box-shadow: var(--shadow-brand); }
.save-hint { text-align: center; color: var(--brand-600); font-weight: 700; font-size: 14px; margin-bottom: 40px; }

.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px;
    display: flex; flex-direction: column; box-shadow: var(--shadow-sm); position: relative; transition: transform .2s ease, box-shadow .2s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan.featured { border-color: transparent; box-shadow: var(--shadow-lg); background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-brand-soft) border-box; border: 2px solid transparent; transform: translateY(-8px); }
.plan-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad-brand-soft); color: #fff; font-size: 12.5px; font-weight: 700; padding: 6px 16px; border-radius: 999px; box-shadow: var(--shadow-brand); white-space: nowrap; }
.plan h3 { font-size: 20px; margin-bottom: 4px; }
.plan .desc { color: var(--muted); font-size: 14px; min-height: 42px; }
.plan .price { display: flex; align-items: baseline; gap: 4px; margin: 10px 0 4px; }
.plan .price .cur { font-size: 20px; font-weight: 700; color: var(--ink); }
.plan .price .amt { font-size: 44px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.plan .price .per { color: var(--muted); font-size: 15px; }
.plan .price.custom .amt { font-size: 30px; }
.plan .seat { color: var(--muted-2); font-size: 13px; margin-bottom: 22px; }
.plan .btn { margin-bottom: 22px; }
.plan-feats { list-style: none; padding: 0; margin: 0; }
.plan-feats li { position: relative; padding: 8px 0 8px 26px; font-size: 14.5px; color: var(--text); border-top: 1px solid var(--line); }
.plan-feats li:first-child { border-top: 0; }
.plan-feats li::before { content: "✓"; position: absolute; left: 0; top: 8px; color: var(--brand-600); font-weight: 800; }
.plan-feats li.off { color: var(--muted-2); }
.plan-feats li.off::before { content: "–"; color: var(--muted-2); }

.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item h4 { font-size: 17px; margin-bottom: 8px; }
.faq-item p { color: var(--muted); margin: 0; }

/* ---------- 功能分區（產品服務）---------- */
.feat-block { margin-bottom: 64px; }
.feat-block:last-child { margin-bottom: 0; }
.feat-block-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 2px solid var(--surface-3); }
.feat-block-head .badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: #fff; }
.feat-block-head h3 { font-size: 23px; margin: 0; }
.feat-block-head p { margin: 0; color: var(--muted); font-size: 14px; }
.feat-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; transition: .2s; }
.feat-item:hover { border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.feat-item h4 { font-size: 16px; margin-bottom: 5px; }
.feat-item p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- CTA 區 ---------- */
.cta { background: var(--grad-brand); border-radius: var(--radius-lg); padding: 60px; text-align: center; color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 24px 24px; mask-image: radial-gradient(circle at 50% 0%, black, transparent 75%); pointer-events: none; }
.cta h2 { color: #fff; position: relative; font-size: clamp(26px, 3.5vw, 38px); }
.cta p { color: #dcebff; font-size: 18px; position: relative; margin-bottom: 28px; }
.cta .hero-cta { justify-content: center; }
.cta .btn-primary { background: #fff; color: var(--brand-700); box-shadow: 0 14px 30px rgba(0,0,0,.2); }
.cta .btn-primary:hover { color: var(--brand-800); }

/* ---------- 註冊頁 ---------- */
.register-wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: start; }
.register-aside h2 { font-size: 30px; }
.register-aside .lead { color: var(--muted); font-size: 17px; }
.register-aside ul { list-style: none; padding: 0; margin: 24px 0 0; }
.register-aside ul li { position: relative; padding: 12px 0 12px 40px; }
.register-aside ul li .ic { position: absolute; left: 0; top: 10px; width: 28px; height: 28px; border-radius: 8px; background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; font-size: 14px; }
.register-aside ul li b { display: block; color: var(--ink); }
.register-aside ul li span { color: var(--muted); font-size: 14px; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: #e11d48; }
.field input, .field select, .field textarea {
    width: 100%; font-family: inherit; font-size: 15px; color: var(--text);
    padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); transition: .15s; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(74,147,255,.18); }
.field .hint { font-size: 12.5px; color: var(--muted-2); margin-top: 6px; }
.field .subdomain { display: flex; align-items: center; }
.field .subdomain input { border-radius: 10px 0 0 10px; border-right: 0; }
.field .subdomain .suffix { padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 0 10px 10px 0; color: var(--muted); font-size: 15px; white-space: nowrap; }
.field-error { color: #e11d48; font-size: 13px; margin-top: 5px; }
.form-note { font-size: 13px; color: var(--muted-2); margin-top: 4px; }
.alert-success { background: #e7f8ee; border: 1px solid #b7e6c9; color: #156c3a; border-radius: 12px; padding: 18px 20px; display: flex; gap: 12px; align-items: flex-start; }
.alert-success .ic { font-size: 22px; }
.validation-summary { color: #e11d48; font-size: 14px; }
.validation-summary ul { margin: 0; padding-left: 18px; }

/* ---------- 頁尾 ---------- */
.footer { background: #0a1f3f; color: #9fb6d6; padding: 64px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand img { height: 30px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; max-width: 280px; }
.footer h5 { color: #fff; font-size: 14px; letter-spacing: .04em; margin-bottom: 16px; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: #9fb6d6; font-size: 14.5px; }
.footer ul li a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 13.5px; color: #6e87ab; flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: #9fb6d6; }

/* ---------- 動畫 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- RWD ---------- */
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 64px 0 80px; }
    .hero-visual { max-width: 460px; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .pricing { grid-template-columns: repeat(2, 1fr); }
    .plan.featured { transform: none; }
    .scenario, .register-wrap { grid-template-columns: 1fr; gap: 32px; }
    .scenario.flip .scenario-media { order: 0; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .feat-list { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .section { padding: 64px 0; }
    .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 12px; gap: 2px; box-shadow: var(--shadow-md); }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .grid-2, .grid-3, .grid-4, .pricing, .feat-list, .form-row, .footer-top { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .cta { padding: 40px 24px; }
    .hero-float { position: static; margin-top: 14px; }
}

/* ===================== Phase 2：帳戶 / 帳單儀表板 ===================== */
.nav-signin { color: var(--text); font-weight: 600; font-size: 15px; padding: 9px 12px; border-radius: 9px; }
.nav-signin:hover { background: var(--surface-3); color: var(--brand-700); }

.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }

.dev-banner {
    background: #fff7e6; border: 1px solid #ffe0a3; color: #8a5a00;
    border-radius: 12px; padding: 14px 18px; font-size: 14.5px; margin-bottom: 24px;
}

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.dash-rows { margin-top: 10px; }
.dash-rows > div { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.dash-rows > div:first-child { border-top: 0; }
.dash-rows > div > span { color: var(--muted); }
.dash-rows > div > b { color: var(--ink); }

.status-badge { font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.badge-trial { background: #e8f1ff; color: #1f6feb; }
.badge-active { background: #e7f8ee; color: #156c3a; }
.badge-warn { background: #fdecec; color: #b42318; }
.badge-muted { background: var(--surface-3); color: var(--muted); }

.plan-choose { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.plan-choose-item { border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-align: center; transition: .2s; }
.plan-choose-item.featured { border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.plan-choose-item:hover { border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.plan-choose-item .pc-name { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.plan-choose-item .pc-price { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.plan-choose-item .pc-price b { font-size: 20px; color: var(--ink); }

@media (max-width: 860px) {
    .dash-grid { grid-template-columns: 1fr; }
    .plan-choose { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .plan-choose { grid-template-columns: 1fr; }
}

/* ===================== 產品服務：中樞 + 子頁面 ===================== */
/* 麵包屑 */
.breadcrumb { display:flex; align-items:center; gap:8px; font-size:13.5px; color:var(--muted); margin-bottom:18px; }
.breadcrumb a { color:var(--muted); font-weight:600; }
.breadcrumb a:hover { color:var(--brand-700); }
.breadcrumb .sep { color:var(--muted-2); }
.breadcrumb .cur { color:var(--ink); font-weight:700; }

/* 子頁面導覽（七大領域 pill）*/
.prod-subnav { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.prod-subnav a {
    display:inline-flex; align-items:center; gap:7px; font-size:14px; font-weight:600;
    color:var(--text); background:var(--surface); border:1px solid var(--line);
    padding:8px 14px; border-radius:999px; transition:.15s;
}
.prod-subnav a:hover { border-color:var(--brand-300); color:var(--brand-700); box-shadow:var(--shadow-sm); }
.prod-subnav a.on { background:var(--grad-brand-soft); color:#fff; border-color:transparent; box-shadow:var(--shadow-brand); }
.prod-subnav a .e { font-size:15px; }

/* 領域頁首 */
.domain-hero { display:flex; align-items:flex-start; gap:20px; margin:28px 0 8px; }
.domain-hero .badge { flex:0 0 auto; width:64px; height:64px; border-radius:16px; display:grid; place-items:center; font-size:30px; color:#fff; box-shadow:var(--shadow-brand); }
.domain-hero h1 { font-size:clamp(26px,3.6vw,36px); margin:0 0 8px; }
.domain-hero p { font-size:17px; color:var(--muted); margin:0; max-width:680px; }

/* 子功能詳述卡 */
.subfeat-grid { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.subfeat {
    background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
    padding:24px 26px; box-shadow:var(--shadow-sm); transition:.2s; position:relative; overflow:hidden;
}
.subfeat::before { content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--grad-brand-soft); opacity:.0; transition:.2s; }
.subfeat:hover { box-shadow:var(--shadow-md); border-color:var(--brand-300); transform:translateY(-3px); }
.subfeat:hover::before { opacity:1; }
.subfeat-head { display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.subfeat-head .n { font-size:13px; font-weight:800; color:var(--brand-600); background:var(--brand-100); width:30px; height:30px; border-radius:9px; display:grid; place-items:center; flex:0 0 auto; }
.subfeat-head h3 { font-size:19px; margin:0; }
.subfeat > p { color:var(--muted); font-size:15px; margin:0 0 14px; }
.subfeat .ticks { list-style:none; padding:0; margin:0; }
.subfeat .ticks li { position:relative; padding-left:24px; font-size:14.5px; color:var(--text); margin-bottom:8px; line-height:1.55; }
.subfeat .ticks li:last-child { margin-bottom:0; }
.subfeat .ticks li::before { content:"✓"; position:absolute; left:0; top:1px; color:var(--brand-600); font-weight:800; }
.subfeat .link-tag { display:inline-block; margin-top:12px; font-size:13px; font-weight:700; color:var(--brand-600); background:var(--surface-3); padding:4px 12px; border-radius:999px; }

/* 中樞卡片（連到各領域）*/
.hub-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.hub-card {
    display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--line);
    border-radius:var(--radius); padding:26px; box-shadow:var(--shadow-sm); transition:.2s;
}
.hub-card:hover { box-shadow:var(--shadow-md); border-color:var(--brand-300); transform:translateY(-4px); }
.hub-card .badge { width:52px; height:52px; border-radius:13px; display:grid; place-items:center; font-size:25px; color:#fff; margin-bottom:16px; box-shadow:var(--shadow-brand); }
.hub-card h3 { font-size:19px; margin:0 0 6px; }
.hub-card p { color:var(--muted); font-size:14.5px; margin:0 0 14px; flex:1; }
.hub-card .chips { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:16px; }
.hub-card .chips span { font-size:12px; color:var(--brand-700); background:var(--surface-3); padding:3px 10px; border-radius:999px; }
.hub-card .more { font-size:14px; font-weight:700; color:var(--brand-600); }
.hub-card:hover .more { color:var(--brand-700); }

@media (max-width: 900px){ .hub-grid{ grid-template-columns:1fr 1fr; } .subfeat-grid{ grid-template-columns:1fr; } }
@media (max-width: 640px){ .hub-grid{ grid-template-columns:1fr; } .domain-hero{ flex-direction:column; gap:14px; } }

/* ===================== 導覽列：產品服務 Mega 選單 ===================== */
.nav-links .nav-item { position: relative; display: inline-flex; align-items: center; height: 70px; }
.caret { font-size: 10px; color: var(--muted-2); transition: transform .15s ease; display: inline-block; margin-left: 2px; }
.nav-item.has-mega:hover .caret, .nav-item.has-mega:focus-within .caret { transform: rotate(180deg); color: var(--brand-600); }

.mega {
    position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 600px; max-width: 92vw;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow-lg); padding: 14px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .16s ease, transform .16s ease; z-index: 60;
}
/* 透明橋接，避免游標下移到選單時的縫隙閃爍 */
.mega::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-item.has-mega:hover .mega,
.nav-item.has-mega:focus-within .mega {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega-link { display: flex; align-items: flex-start; gap: 11px; padding: 11px 12px; border-radius: 11px; transition: background .12s ease; }
.mega-link:hover { background: var(--surface-3); }
.mega-link .e { font-size: 21px; line-height: 1.1; flex: 0 0 auto; }
.mega-link .t { display: flex; flex-direction: column; gap: 2px; }
.mega-link .t b { font-size: 14.5px; color: var(--ink); font-weight: 700; }
.mega-link .t small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.mega-foot { display: block; margin-top: 8px; padding: 11px 12px 4px; border-top: 1px solid var(--line); font-weight: 700; font-size: 13.5px; color: var(--brand-600); }
.mega-foot:hover { color: var(--brand-700); }

/* 行動裝置：選單改為內嵌展開（無懸停）*/
@media (max-width: 640px) {
    .nav-links .nav-item { height: auto; display: block; }
    .mega {
        position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
        width: auto; max-width: none; box-shadow: none; border: none; padding: 4px 0 4px 10px; background: transparent;
    }
    .mega::before { display: none; }
    .mega-grid { grid-template-columns: 1fr; }
    .mega-link { padding: 9px 10px; }
    .mega-foot { border-top: none; padding-top: 6px; }
    .caret { display: none; }
}

/* ===================== 模擬畫面（產品子頁）===================== */
/* 展示列：文字 + 模擬畫面，左右交錯 */
.showcase { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; margin:0 0 56px; }
.showcase:last-of-type { margin-bottom:0; }
.showcase.flip .showcase-media { order:2; }
.showcase .eyebrow { margin-bottom:14px; }
.showcase h3 { font-size:24px; margin-bottom:10px; }
.showcase .lead { color:var(--muted); font-size:16px; margin-bottom:14px; }
.showcase .ticks { list-style:none; padding:0; margin:0; }
.showcase .ticks li { position:relative; padding-left:24px; font-size:14.5px; color:var(--text); margin-bottom:8px; }
.showcase .ticks li::before { content:"✓"; position:absolute; left:0; color:var(--brand-600); font-weight:800; }
.showcase-media { min-width:0; }

/* 視窗外框 */
.mock { background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow-lg); overflow:hidden; }
.mock-bar { display:flex; align-items:center; gap:7px; padding:10px 14px; background:var(--surface-2); border-bottom:1px solid var(--line); }
.mock-bar i { width:11px; height:11px; border-radius:50%; background:#d6dde6; }
.mock-bar i:nth-child(1){ background:#ff6058; } .mock-bar i:nth-child(2){ background:#ffbd2e; } .mock-bar i:nth-child(3){ background:#27c93f; }
.mock-bar .ttl { margin-left:8px; font-size:12.5px; color:var(--muted); font-weight:600; }
.mock-body { padding:16px; }

/* 工具列（新增 / 搜尋）*/
.mock-toolbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; gap:10px; }
.mock-btn { background:var(--grad-brand-soft); color:#fff; font-size:12px; font-weight:700; padding:7px 13px; border-radius:8px; white-space:nowrap; }
.mock-btn.ghost { background:var(--surface-3); color:var(--brand-700); }
.mock-search { flex:1; max-width:180px; height:30px; border:1px solid var(--line); border-radius:8px; background:#fff; display:flex; align-items:center; padding:0 10px; color:var(--muted-2); font-size:12px; gap:6px; }

/* 資料表 */
.mock-grid { width:100%; border-collapse:collapse; font-size:12.5px; }
.mock-grid th { text-align:left; background:var(--surface-3); color:var(--muted); font-weight:700; padding:8px 10px; border-bottom:1px solid var(--line); white-space:nowrap; }
.mock-grid td { padding:8px 10px; border-bottom:1px solid var(--line); color:var(--text); }
.mock-grid tr:last-child td { border-bottom:none; }
.mock-grid td.num, .mock-grid th.num { text-align:right; }
.mock-grid .ops { color:var(--brand-600); font-weight:700; white-space:nowrap; }
.mock-grid tr.sel td { background:rgba(31,111,235,.06); }

/* 狀態徽記 */
.m-badge { display:inline-block; font-size:11px; font-weight:700; padding:2px 9px; border-radius:999px; }
.m-ok { background:#e7f8ee; color:#156c3a; } .m-warn { background:#fdecec; color:#b42318; }
.m-info { background:#e8f1ff; color:#1f6feb; } .m-mut { background:var(--surface-3); color:var(--muted); }
.m-amber { background:#fff7e6; color:#8a5a00; }

/* 表單 */
.mock-form { display:grid; grid-template-columns:1fr 1fr; gap:12px 14px; }
.mock-field { display:flex; flex-direction:column; gap:5px; }
.mock-field.full { grid-column:1 / -1; }
.mock-field label { font-size:11.5px; color:var(--muted); font-weight:600; }
.mock-field .inp { height:32px; border:1px solid var(--line); border-radius:7px; background:#fff; display:flex; align-items:center; justify-content:space-between; padding:0 10px; font-size:12.5px; color:var(--text); }
.mock-field .inp.hl { border-color:var(--brand-500); box-shadow:0 0 0 3px rgba(74,147,255,.15); }
.mock-field .inp .calc { font-size:10.5px; color:var(--brand-600); font-weight:700; }
.mock-formfoot { display:flex; justify-content:flex-end; gap:8px; margin-top:16px; }

/* 金額彙總列 */
.mock-totals { margin-top:12px; border-top:1px dashed var(--line); padding-top:10px; display:flex; flex-direction:column; gap:6px; font-size:12.5px; }
.mock-totals .row { display:flex; justify-content:space-between; color:var(--muted); }
.mock-totals .row.grand { color:var(--ink); font-weight:800; font-size:15px; }

/* 收款 / 模式選擇 */
.mock-modes { display:flex; gap:8px; margin-bottom:12px; }
.mock-mode { flex:1; text-align:center; font-size:12px; font-weight:700; padding:8px; border-radius:9px; border:1px solid var(--line); color:var(--muted); }
.mock-mode.on { background:var(--grad-brand-soft); color:#fff; border-color:transparent; }

/* 薪資單 */
.mock-pay { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.mock-pay .col h5 { font-size:12px; color:var(--muted); margin:0 0 8px; font-weight:700; letter-spacing:.03em; }
.mock-pay .li { display:flex; justify-content:space-between; font-size:12.5px; padding:5px 0; border-bottom:1px dashed var(--line); }
.mock-pay .li span:last-child { font-weight:600; color:var(--ink); }
.mock-pay .li.minus span:last-child { color:#b42318; }
.mock-net { margin-top:14px; background:var(--grad-brand-soft); color:#fff; border-radius:10px; padding:12px 16px; display:flex; justify-content:space-between; align-items:center; }
.mock-net b { font-size:20px; }

/* 權限矩陣 */
.mock-matrix th.c, .mock-matrix td.c { text-align:center; }
.mock-matrix .ck { display:inline-block; width:16px; height:16px; border-radius:5px; background:var(--grad-brand-soft); color:#fff; font-size:10px; line-height:16px; text-align:center; }
.mock-matrix .ck.off { background:var(--surface-3); color:transparent; }

/* AI 對話 */
.mock-chat { display:flex; flex-direction:column; gap:10px; }
.chat-msg { max-width:82%; font-size:12.5px; line-height:1.5; padding:9px 13px; border-radius:13px; }
.chat-msg.user { align-self:flex-end; background:var(--grad-brand-soft); color:#fff; border-bottom-right-radius:4px; }
.chat-msg.bot { align-self:flex-start; background:var(--surface-3); color:var(--text); border-bottom-left-radius:4px; }
.chat-act { align-self:flex-start; max-width:88%; border:1px dashed var(--brand-300); background:var(--brand-100); border-radius:11px; padding:10px 13px; font-size:12px; color:var(--brand-700); }
.chat-act b { display:block; margin-bottom:4px; }
.chat-step { display:flex; align-items:center; gap:7px; margin-top:4px; color:var(--brand-700); }
.chat-step .d { width:18px; height:18px; border-radius:50%; background:var(--grad-brand-soft); color:#fff; font-size:10px; display:grid; place-items:center; font-weight:800; }

/* 驗收清單 / 簽名 */
.mock-check .it { display:flex; align-items:center; gap:10px; padding:9px 4px; border-bottom:1px solid var(--line); font-size:12.5px; }
.mock-check .it:last-child { border-bottom:none; }
.mock-check .st { width:20px; height:20px; border-radius:6px; display:grid; place-items:center; font-size:11px; font-weight:800; color:#fff; flex:0 0 auto; }
.mock-check .st.p { background:#27c93f; } .mock-check .st.f { background:#ff6058; }
.mock-check .nm { flex:1; }
.mock-check .ph { font-size:14px; opacity:.6; }
.mock-check .note { font-size:11px; color:#b42318; }

/* 圖示縮圖列（流程 chips）*/
.mock-flow { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.mock-flow .step { flex:1; min-width:0; background:var(--surface-3); border-radius:10px; padding:10px; text-align:center; font-size:11.5px; color:var(--text); }
.mock-flow .step .e { font-size:18px; display:block; margin-bottom:3px; }
.mock-flow .arr { color:var(--muted-2); font-weight:800; }

@media (max-width: 900px) {
    .showcase { grid-template-columns:1fr; gap:28px; margin-bottom:40px; }
    .showcase.flip .showcase-media { order:0; }
    .mock-pay { grid-template-columns:1fr; }
}

/* ===================== 模擬畫面：平面圖 / 缺失 / 日報 ===================== */
.mock-tabs { display:flex; align-items:center; gap:6px; margin-bottom:12px; flex-wrap:wrap; }
.mock-tab { font-size:12px; font-weight:700; padding:5px 11px; border-radius:8px; background:var(--surface-3); color:var(--muted); }
.mock-tab.on { background:var(--grad-brand-soft); color:#fff; }

.mock-canvas {
    position:relative; height:178px; border:1px solid var(--line); border-radius:10px; overflow:hidden;
    background:
        linear-gradient(#e6eef8 1px, transparent 1px) 0 0/100% 22px,
        linear-gradient(90deg, #e6eef8 1px, transparent 1px) 0 0/22px 100%,
        #f7fafd;
}
.mock-canvas .room { position:absolute; border:2px solid #c4d3e8; border-radius:4px; background:rgba(31,111,235,.05); }
.mock-canvas .rlabel { position:absolute; font-size:10px; color:var(--muted-2); font-weight:600; }
.pin { position:absolute; transform:translate(-50%,-100%); }
.pin .dot { width:22px; height:22px; border-radius:50% 50% 50% 0; transform:rotate(-45deg); display:grid; place-items:center; box-shadow:var(--shadow-sm); }
.pin .dot span { transform:rotate(45deg); color:#fff; font-size:10px; font-weight:800; }
.pin.red .dot { background:#ff6058; } .pin.amber .dot { background:#ffbd2e; } .pin.green .dot { background:#27c93f; }

.mock-grid tr.tot td { font-weight:800; color:var(--ink); background:var(--surface-3); }

/* 缺失編號徽記（與平面圖圖釘對應）+ 互動 */
.dnum { display:inline-grid; place-items:center; width:19px; height:19px; border-radius:50%; color:#fff; font-size:10.5px; font-weight:800; }
.dnum.red { background:#ff6058; } .dnum.amber { background:#ffbd2e; } .dnum.green { background:#27c93f; }
.mock-grid tbody tr:hover td { background:rgba(31,111,235,.06); }
.pin .dot { transition:transform .15s ease; cursor:default; }
.pin:hover .dot { transform:rotate(-45deg) scale(1.18); }

/* 缺失列 ↔ 平面圖圖釘 連動高亮 */
@keyframes pinPulse { 0%,100% { transform:rotate(-45deg) scale(1); } 50% { transform:rotate(-45deg) scale(1.42); } }
.pin.pin-active { z-index:6; }
.pin.pin-active .dot { animation:pinPulse .7s ease infinite; box-shadow:0 0 0 5px rgba(31,111,235,.28), var(--shadow-md); }
.mock-grid tbody tr.row-active td { background:rgba(31,111,235,.12); }

/* ===================== 危險區域 / Flash ===================== */
.danger-zone { background:#fff7f7; border:1px solid #f5c2c2; border-radius:var(--radius); padding:24px 26px; }
.danger-zone h3 { color:#b42318; margin:0 0 6px; }
.danger-zone p { color:#7a2b22; font-size:14.5px; }
.btn-danger { background:#e11d48; color:#fff; }
.btn-danger:hover { background:#be123c; color:#fff; box-shadow:0 14px 30px rgba(225,29,72,.3); transform:translateY(-2px); }
.flash { background:#e7f8ee; border-bottom:1px solid #b7e6c9; color:#156c3a; text-align:center; padding:11px 16px; font-size:14px; font-weight:600; }

/* ===================== 平台管理後台 ===================== */
.adm-wrap { overflow-x:auto; }
.adm { width:100%; border-collapse:collapse; font-size:13.5px; }
.adm th { text-align:left; background:var(--surface-3); color:var(--muted); font-weight:700; padding:11px 14px; white-space:nowrap; border-bottom:1px solid var(--line); }
.adm td { padding:11px 14px; border-bottom:1px solid var(--line); vertical-align:middle; }
.adm tr:last-child td { border-bottom:none; }
.adm tbody tr:hover td { background:var(--surface-2); }
.adm select { font-family:inherit; font-size:13px; padding:5px 8px; border:1px solid var(--line); border-radius:7px; background:#fff; color:var(--text); cursor:pointer; }
.adm form { display:inline; margin:0; }
.adm .btn-xs { display:inline-flex; align-items:center; font-family:inherit; font-size:12px; font-weight:700; padding:6px 12px; border-radius:7px; border:1px solid var(--line); background:#fff; cursor:pointer; color:var(--brand-700); margin-left:4px; }
.adm .btn-xs:hover { border-color:var(--brand-300); box-shadow:var(--shadow-sm); }
.adm .btn-xs.danger { color:#e11d48; border-color:#f5c2c2; }
.adm .btn-xs.danger:hover { background:#fff5f6; }

/* ===== 首頁 AI 助理三階段示意動畫（1.輸入打字 2.Bot回話 3.介面執行；純 CSS 13s 迴圈） ===== */
.ai-demo { position: relative; display: flex; flex-direction: column; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 14px 16px; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.ai-demo-top { display: flex; align-items: center; gap: 9px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 12px; }
.ai-demo-ava2 { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; background: linear-gradient(135deg,#4c6ef5,#7048e8); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.ai-demo-ttl { color: #cdddf3; font-size: 13px; font-weight: 600; }
.ai-chat { display: flex; flex-direction: column; gap: 10px; min-height: 258px; }
.ai-msg { max-width: 90%; padding: 9px 13px; border-radius: 13px; font-size: 13.5px; line-height: 1.55; opacity: 0; }
.ai-msg.ai-user { align-self: flex-end; background: linear-gradient(90deg,#4c6ef5,#7048e8); color: #fff; border-bottom-right-radius: 4px; transform: translateY(6px); }
.ai-msg.ai-bot { align-self: flex-start; background: rgba(255,255,255,.1); color: #e7eefb; border: 1px solid rgba(255,255,255,.12); border-bottom-left-radius: 4px; transform: translateY(6px); }
.ai-exec { margin-top: 2px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 11px; padding: 12px; opacity: 0; transform: translateY(8px); }
.ai-exec-hd { color: #9fb4d6; font-size: 12px; margin-bottom: 10px; }
.ai-f { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ai-f .k { width: 74px; flex: 0 0 auto; color: #8fa6c4; font-size: 12.5px; }
.ai-f .v { flex: 1; min-width: 0; height: 32px; display: flex; align-items: center; padding: 0 11px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; overflow: hidden; }
.ai-f .v .ai-t { display: inline-block; max-width: 0; overflow: hidden; white-space: nowrap; color: #fff; font-size: 13.5px; }
.ai-ok { display: inline-block; margin-top: 2px; padding: 6px 15px; background: #2f9e44; color: #fff; font-weight: 700; font-size: 13px; border-radius: 8px; opacity: 0; transform: translateY(5px); }
.ai-inputbar { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 11px; }
.ai-input-text { display: inline-block; max-width: 0; overflow: hidden; white-space: nowrap; color: #fff; font-size: 13.5px; }
.ai-caret { width: 2px; height: 16px; flex: 0 0 auto; background: #8fbaff; }
.ai-send { margin-left: auto; width: 26px; height: 26px; flex: 0 0 auto; border-radius: 8px; background: linear-gradient(135deg,#4c6ef5,#7048e8); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }

.ai-input-text { animation: aiInput 13s ease-in-out infinite; }
.ai-caret { animation: aiBlink 1s step-end infinite, aiCaretShow 13s ease-in-out infinite; }
.ai-msg.ai-user { animation: aiUser 13s ease-in-out infinite; }
.ai-msg.ai-bot { animation: aiBot 13s ease-in-out infinite; }
.ai-exec { animation: aiExec 13s ease-in-out infinite; }
.ai-t1 { animation: aiT1 13s ease-in-out infinite; }
.ai-t2 { animation: aiT2 13s ease-in-out infinite; }
.ai-t3 { animation: aiT3 13s ease-in-out infinite; }
.ai-ok { animation: aiOk 13s ease-in-out infinite; }

@keyframes aiBlink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }
/* 階段1：輸入打字（0-18%）→ 送出清空（20-23%） */
@keyframes aiInput { 0% { max-width: 0; } 18%,20% { max-width: 240px; } 23%,100% { max-width: 0; } }
@keyframes aiCaretShow { 0%,22% { opacity: 1; } 24%,100% { opacity: 0; } }
/* 階段2：使用者氣泡（24%）與 Bot 回話（36%） */
@keyframes aiUser { 0%,23% { opacity: 0; transform: translateY(6px); } 29%,96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes aiBot { 0%,35% { opacity: 0; transform: translateY(6px); } 41%,96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* 階段3：介面執行（卡片 50% → 逐欄填值 → 送出 88%） */
@keyframes aiExec { 0%,49% { opacity: 0; transform: translateY(8px); } 55%,96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes aiT1 { 0%,58% { max-width: 0; } 64%,96% { max-width: 200px; } 100% { max-width: 0; } }
@keyframes aiT2 { 0%,66% { max-width: 0; } 72%,96% { max-width: 200px; } 100% { max-width: 0; } }
@keyframes aiT3 { 0%,74% { max-width: 0; } 80%,96% { max-width: 200px; } 100% { max-width: 0; } }
@keyframes aiOk { 0%,86% { opacity: 0; transform: translateY(5px); } 91%,96% { opacity: 1; transform: none; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .ai-input-text, .ai-caret, .ai-msg, .ai-exec, .ai-t1, .ai-t2, .ai-t3, .ai-ok { animation: none !important; }
  .ai-msg, .ai-exec, .ai-ok { opacity: 1; transform: none; }
  .ai-f .v .ai-t { max-width: 200px; }
  .ai-input-text { max-width: 0; }
}

/* 修正：深色 AI 區塊的 flow 步驟文字（原 var(--ink) 深色看不清） */
.section--dark .scenario .flow li b { color: #fff; }
.section--dark .scenario .flow li { border-left-color: rgba(255,255,255,.18); color: #cdddf4; }
