:root {
  --bg: #ffffff;
  --soft: #f5f8fc;
  --line: #e2e8f0;
  --text: #16202c;
  --muted: #5b6776;
  --accent: #1463d9;
  --accent-2: #0b4bb3;
  --accent-bg: #e8f1ff;
  --gold: #f2b01e;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(18, 38, 74, .14);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e141b; --soft: #141c26; --line: #253141; --text: #e8eef5; --muted: #9aa8b8;
    --accent: #5aa0ff; --accent-2: #8bbcff; --accent-bg: #15263d; --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); line-height: 1.7;
  font-family: -apple-system, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a.zoom { display: block; cursor: zoom-in; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* 頂部導覽 */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand img { width: 32px; height: 32px; }
.bname { display: flex; flex-direction: column; line-height: 1.15; }
.bname b { font-size: 17px; }
.bname small { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .2px; }
nav.links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
nav.links a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav.links a:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { border-color: var(--line); color: var(--text); background: var(--bg); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.sm { padding: 7px 14px; font-size: 14px; }
.lang { font-size: 14px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }

/* 首屏 */
.hero { padding: 72px 0 40px; text-align: center; background: radial-gradient(1200px 500px at 50% -10%, var(--accent-bg), transparent 70%); }
.badge { display: inline-block; font-size: 13px; color: var(--accent); background: var(--accent-bg); border-radius: 999px; padding: 4px 12px; margin-bottom: 18px; font-weight: 600; }
.hero h1 { font-size: clamp(32px, 5.2vw, 56px); line-height: 1.2; margin: 0 0 18px; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.sub { font-size: clamp(16px, 2vw, 20px); color: var(--muted); max-width: 760px; margin: 0 auto 28px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.trust { display: flex; gap: 10px 22px; justify-content: center; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: 14px; }
.trust span::before { content: "✓ "; color: #1a9a4b; font-weight: 700; }
.shot { margin: 48px auto 0; max-width: 1040px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }

section { padding: 76px 0; }
section.alt { background: var(--soft); }
.kicker { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .6px; text-transform: uppercase; }
h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.25; margin: 6px 0 14px; }
.lead { color: var(--muted); font-size: 18px; max-width: 720px; margin: 0 0 36px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* 三步驟 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step::before { counter-increment: s; content: counter(s); display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); }

/* 功能 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg); }
.feat .ico { font-size: 26px; line-height: 1; }
.feat.wide { grid-column: 1 / -1; background: linear-gradient(135deg, color-mix(in srgb, #8250df 8%, var(--bg)), var(--bg)); border-color: color-mix(in srgb, #8250df 35%, var(--line)); }
.feat.wide ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
.tag.plus { background: #8250df; color: #fff; }
.feat h3 { margin: 12px 0 6px; font-size: 18px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }

/* 截圖展示 */
.show { display: grid; grid-template-columns: 1fr 1.35fr; gap: 44px; align-items: center; margin-bottom: 72px; }
.show:last-child { margin-bottom: 0; }
.show.rev { grid-template-columns: 1.35fr 1fr; }
.show.rev .txt { order: 2; }
.show .img { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.show h3 { font-size: 26px; margin: 0 0 10px; line-height: 1.3; }
.show p { color: var(--muted); margin: 0 0 12px; }
.show ul { margin: 0; padding-left: 20px; color: var(--muted); }

/* 平台 */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pf { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; background: var(--bg); }
.pf b { display: block; font-size: 18px; }
.pf span { color: var(--muted); font-size: 14px; }
.note { color: var(--muted); font-size: 14px; margin-top: 16px; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.langs span { border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 14px; background: var(--bg); }

/* 方案 */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--bg); display: flex; flex-direction: column; }
.plan.hot { border: 2px solid var(--accent); box-shadow: var(--shadow); position: relative; }
.plan.hot::after { content: attr(data-tag); position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 12px; }
.plan h3 { margin: 0; font-size: 20px; }
.price { font-size: 38px; font-weight: 800; margin: 10px 0 0; letter-spacing: -.5px; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.yearly { color: var(--muted); font-size: 14px; min-height: 22px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; font-size: 15px; }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: #1a9a4b; font-weight: 700; }
.plan li.no { color: var(--muted); }
.plan li.no::before { content: "🔒"; font-size: 12px; top: 9px; }
.beta { background: var(--accent-bg); border-radius: 12px; padding: 14px 18px; margin-bottom: 26px; font-size: 15px; }

/* 常見問題 */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 4px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* 結尾 CTA 與頁尾 */
.final { text-align: center; padding: 70px 20px; background: linear-gradient(135deg, var(--accent), #3b82f6); color: #fff; border-radius: 24px; margin: 0 20px; }
.final h2 { color: #fff; }
.final p { opacity: .9; margin: 0 0 26px; }
.final .btn.primary { background: #fff; color: var(--accent); }
footer { padding: 48px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; }
footer a { color: var(--muted); }

/* 法律頁面 */
.doc { max-width: 820px; margin: 0 auto; padding: 48px 20px 80px; }
.doc h1 { font-size: 34px; margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 30px; }
.doc h2 { font-size: 22px; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--text); }
.doc table { border-collapse: collapse; width: 100%; margin: 10px 0; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--soft); }

@media (max-width: 900px) {
  nav.links a.hide-m { display: none; }
  .steps, .features, .plans, .platforms { grid-template-columns: 1fr; }
  .show, .show.rev { grid-template-columns: 1fr; gap: 22px; }
  .show.rev .txt { order: 0; }
  .final { margin: 0; border-radius: 0; }
}
@media (max-width: 520px) {
  header.top .wrap { gap: 10px; }
  .bname b { font-size: 15px; }
  .bname small { font-size: 12px; }
  .btn.sm { padding: 6px 11px; font-size: 13px; }
  .lang { padding: 3px 8px; }
  nav.links { gap: 10px; }
  section { padding: 56px 0; }
}

/* Demo 影片：電腦看橫式、手機看直式 */
.video { max-width: 1000px; margin: 0 auto; }
.video video { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); background: #0b3d91; display: block; }
.video .v-v { display: none; max-width: 420px; margin: 0 auto; }
@media (max-width: 600px) { .video .v-h { display: none; } .video .v-v { display: block; } }

/* 品牌故事 */
.story { max-width: 860px; }
.story h2 span { display: block; font-size: .6em; color: var(--muted); font-weight: 600; margin-top: 6px; }
.story-body { border-left: 4px solid var(--accent); padding: 4px 0 4px 22px; margin: 22px 0 30px; }
.story-body p { font-size: 17px; line-height: 1.9; margin: 0 0 14px; color: var(--text); }
.story-body .hi { font-size: 19px; }
.story-body .sign { font-weight: 700; color: var(--accent); margin-bottom: 0; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pillars div { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--bg); }
.pillars b { display: block; font-size: 20px; color: var(--accent); letter-spacing: .3px; }
.pillars span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } .story-body p { font-size: 16px; } }
@media (max-width: 520px) { .bname small { font-size: 10px; letter-spacing: 0; white-space: normal; max-width: 120px; line-height: 1.2; } }
@media (max-width: 380px) { .bname small { display: none; } }

.feat h3 .tag, .show .kicker .tag { font-size: 11px; font-weight: 700; color: #fff; background: #8250df; border-radius: 6px; padding: 1px 6px; vertical-align: 2px; margin-left: 4px; }

/* 首屏三大主打 */
.pillars3 { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: -8px auto 26px; max-width: 820px; }
.pillars3 div { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 10px 18px; min-width: 200px; text-align: center; }
.pillars3 b { display: block; font-size: 17px; }
.pillars3 span { color: var(--muted); font-size: 13.5px; }
@media (max-width: 600px) { .pillars3 { flex-direction: column; align-items: stretch; } .pillars3 div { min-width: 0; } }

/* Pro+ 價值 */
.plan.plus { border: 2px solid #8250df; position: relative; background: linear-gradient(180deg, color-mix(in srgb, #8250df 6%, var(--bg)), var(--bg) 40%); }
.plan.plus::after { content: attr(data-tag); position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: #8250df; color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 12px; white-space: nowrap; }
.plan.plus h3, .plan.plus .price { color: #8250df; }
.plusline { margin-top: 8px; font-size: 13.5px; font-weight: 600; color: #8250df; background: color-mix(in srgb, #8250df 10%, transparent); border-radius: 8px; padding: 6px 10px; }
.plan li.hl::before { color: #8250df; }
.whyplus { margin: 36px auto 8px; max-width: 980px; border: 1px solid color-mix(in srgb, #8250df 35%, var(--line)); border-radius: 20px; padding: 28px; background: color-mix(in srgb, #8250df 4%, var(--bg)); }
.whyplus h3 { text-align: center; margin: 0 0 18px; font-size: 24px; }
.wp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.wp-grid > div { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.wp-grid b { display: block; font-size: 26px; color: #8250df; line-height: 1.2; }
.wp-grid span { font-size: 13px; color: var(--muted); font-weight: 600; }
.wp-grid p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.cmp { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: 15px; background: var(--bg); border-radius: 12px; overflow: hidden; }
.cmp th, .cmp td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.cmp th { background: var(--soft); }
.cmp .p { background: color-mix(in srgb, #8250df 7%, var(--bg)); }
.cmp th.p { color: #8250df; }
@media (max-width: 900px) { .wp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .wp-grid { grid-template-columns: 1fr; } .whyplus { padding: 18px; } .cmp { font-size: 13px; } .cmp th, .cmp td { padding: 8px; } }

/* 頁面目錄（頂部導覽列下方，捲動時固定） */
.subnav { position: sticky; top: 64px; z-index: 9; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; justify-content: center; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex: none; font-size: 13.5px; color: var(--muted); text-decoration: none; padding: 5px 12px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.subnav a:hover { color: var(--text); border-color: var(--line); }
.subnav a.on { color: var(--accent); background: var(--accent-bg); font-weight: 600; }
section[id], .show[id] { scroll-margin-top: 120px; }
.totop { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 20px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 20; }
.totop.show { opacity: 1; pointer-events: auto; }
@media (max-width: 1000px) { .subnav .wrap { justify-content: flex-start; } }
@media (max-width: 520px) { .subnav { top: 64px; } .subnav a { font-size: 13px; padding: 5px 10px; } }
footer .tm { flex-basis: 100%; margin: 4px 0 0; font-size: 12px; line-height: 1.6; opacity: .8; }
.doc .hl-box { background: color-mix(in srgb, #1a7f37 10%, var(--bg)); border: 1px solid color-mix(in srgb, #1a7f37 40%, var(--line)); border-radius: 10px; padding: 12px 16px; }
/* 價格：精簡卡片，同一項目在同一列（subgrid 對齊） */
.plans.v2 { grid-template-rows: repeat(8, auto); row-gap: 0; }
.plans.v2 .plan { display: grid; grid-row: span 8; grid-template-rows: subgrid; row-gap: 0; }
.plan .fit { font-size: 13.5px; color: var(--muted); margin: 10px 0 14px; }
.plan.plus .fit { color: #8250df; font-weight: 600; }
.plan .k { border-top: 1px solid var(--line); padding: 11px 0; }
.plan .k span { display: block; font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .02em; margin-bottom: 2px; }
.plan .k b { font-weight: 600; font-size: 15px; line-height: 1.5; }
.plan .k.no b { color: var(--muted); font-weight: 400; }
.plan.plus .k.hl b { color: #8250df; }
@media (max-width: 900px) { .plans.v2 { grid-template-rows: none; row-gap: 26px; } .plans.v2 .plan { grid-row: auto; display: flex; flex-direction: column; } }
/* 完整方案比較表 */
.cmpwrap { margin: 40px auto 0; max-width: 1000px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmptitle { text-align: center; font-size: 24px; margin: 0 0 14px; }
.cmp3 { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cmp3 th, .cmp3 td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.cmp3 td:first-child, .cmp3 th:first-child { text-align: left; width: 40%; }
.cmp3 thead th { background: var(--soft); font-size: 16px; position: sticky; top: 0; }
.cmp3 thead th.p { color: #8250df; }
.cmp3 .p { background: color-mix(in srgb, #8250df 6%, var(--bg)); }
.cmp3 tr.grp th { background: var(--soft); text-align: left; font-size: 13px; letter-spacing: .04em; color: var(--muted); padding: 8px 14px; }
.cmp3 .y { color: #1a9a4b; font-weight: 700; }
.cmp3 .n { color: var(--muted); }
@media (max-width: 600px) { .cmp3 { min-width: 0; font-size: 12.5px; } .cmp3 th, .cmp3 td { padding: 7px 5px; } .cmp3 td:first-child, .cmp3 th:first-child { width: 34%; padding-left: 8px; } .cmp3 thead th { font-size: 13px; } .cmptitle { font-size: 20px; } }
