/* Plustek 台灣官網共用樣式：白底淺灰分區、深色標題、橘色只用在主要按鈕。 */
:root {
  --ink: #16213e;
  --text: #3d4863;
  --muted: #6b7690;
  --line: #e1e6ef;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --bg-tint: #eef3fb;
  --orange: #ee6a12;
  --orange-dark: #cf5508;
  --blue: #2563c9;
  --blue-soft: #e8f0fc;
  --green: #1f8a4c;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(22, 33, 62, .07);
  --wrap: 1180px;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; font-size: 16px; overflow-wrap: anywhere; }
img, svg { max-width: 100%; display: block; }
a, button { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--ink); line-height: 1.35; margin: 0 0 .5em; letter-spacing: .01em; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* 按鈕 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 10px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.3; text-align: center; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-primary::after { content: "›" / ""; font-size: 20px; line-height: 1; }
.text-link { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.text-link::after { content: "→" / ""; }
.text-link:hover { text-decoration: underline; }

/* 導覽列 */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.header-bar { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; flex: none; }
.logo img { width: 123px; height: 32px; }
.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 14px; font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); background: none; border: 0; border-radius: 8px; text-decoration: none; cursor: pointer; }
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--bg-soft); }
.chev { width: 12px; height: 12px; transition: transform .2s; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.sub-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px rgba(22, 33, 62, .14); padding: 10px; }
.nav-item.open > .sub-menu { display: block; }
.sub-group { list-style: none; margin: 0; padding: 0; }
.sub-group a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.sub-group a:hover, .sub-group a:focus-visible { background: var(--bg-soft); }
.sub-group a strong { display: block; font-size: 15px; }
.sub-group a span { display: block; font-size: 13px; color: var(--muted); }
.sub-title { margin: 8px 12px 2px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); }
.sub-modules { display: grid; grid-template-columns: 1fr 1fr; }
.sub-modules a { font-weight: 600; font-size: 15px; }
.nav-cta { min-height: 42px; padding: 8px 18px; font-size: 15px; }
.menu-toggle { display: none; }

/* 麵包屑 */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 18px 0 0; font-size: 14px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #b3bccd; }
.breadcrumb a { color: var(--muted); }

/* 共用小元件 */
.eyebrow { font-weight: 700; color: var(--ink); font-size: 16px; margin-bottom: 10px; }
.lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--text); }
.page-hero { padding: 28px 0 56px; }

/* 首頁主視覺與兩張需求卡 */
.home-hero { padding: 44px 0 56px; background: linear-gradient(180deg, #f6f9fe 0%, #fff 70%); }
.hero-head { text-align: center; max-width: 820px; margin: 0 auto 32px; }
.hero-head .eyebrow { color: var(--muted); font-weight: 600; font-size: 15px; }
.hero-body { color: var(--muted); font-size: 15px; margin: 0; }
.solution-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.solution-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.need-tag { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; background: var(--blue-soft); color: var(--ink); font-weight: 800; font-size: 15px; }
.need-tag svg { width: 20px; height: 20px; color: var(--blue); }
.product-name { margin: 0 0 2px; font-weight: 700; color: var(--ink); font-size: 16px; }
.solution-card h2 { font-size: clamp(21px, 2.2vw, 26px); }
.card-question { font-weight: 700; color: var(--ink); margin-bottom: .4em; }
.check-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; }
.check-list li { position: relative; padding-left: 26px; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 11px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }

/* 需求卡示意圖（程式繪製） */
.card-visual { margin: 6px 0 18px; padding: 14px; background: var(--bg-soft); border-radius: 12px; position: relative; }
.card-visual svg { width: 100%; height: auto; }
.card-visual figcaption { position: absolute; right: 10px; bottom: 6px; font-size: 11px; color: var(--muted); }
.card-visual rect, .card-visual path { fill: #fff; stroke: #c9d2e1; stroke-width: 1.2; }
.card-visual .front { stroke: #9fadc4; }
.card-visual line { stroke: #d5dce8; stroke-width: 3; stroke-linecap: round; }
.card-visual .cell { fill: #f3f6fb; }
.card-visual text { font-family: var(--font); font-size: 9px; fill: var(--text); }
.card-visual .doc-title { font-weight: 800; font-size: 10px; fill: var(--ink); }
.card-visual .arrow { fill: none; stroke: var(--orange); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.card-visual .dot { fill: #c9d2e1; stroke: none; }
.card-visual .file { fill: #fff4ec; stroke: #f6c7a5; }
.card-visual .file-name { font-weight: 700; font-size: 8.5px; fill: var(--ink); }
.card-visual .folder path { fill: #eaf1fd; stroke: var(--blue); }
.card-visual .folder text { font-weight: 700; fill: var(--ink); }
.card-visual .cap { font-weight: 800; fill: var(--ink); }
.card-visual .val { font-weight: 700; fill: var(--ink); }
.card-visual .pill { fill: var(--blue-soft); stroke: var(--blue); }
.card-visual .pill-t { font-size: 8px; font-weight: 700; fill: var(--blue); }
.card-visual .erp .bar { fill: var(--blue); stroke: var(--blue); }
.card-visual .bar-t { fill: #fff; font-weight: 800; }
.card-visual .ok { fill: var(--green); font-weight: 800; }

/* 頁尾 */
.site-footer { margin-top: 64px; background: var(--bg-soft); border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 32px; align-items: start; }
.footer-brand p { margin: 14px 0 0; }
.footer-brand strong { color: var(--ink); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 24px; }
.footer-links a { display: inline-flex; min-height: 40px; align-items: center; color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--blue); text-decoration: underline; }

/* 平板與手機 */
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -6px; }
  .menu-icon::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 24px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(22, 33, 62, .1); max-height: calc(100vh - 68px); overflow-y: auto; }
  .site-header.menu-open .site-nav { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-link { width: 100%; justify-content: space-between; padding: 12px 8px; font-size: 16px; }
  .sub-menu { position: static; min-width: 0; box-shadow: none; border: 0; border-left: 3px solid var(--line); border-radius: 0; margin: 0 0 6px 8px; padding: 0 0 0 8px; }
  .nav-cta { width: 100%; min-height: 48px; }
  .solution-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  h1 { font-size: 26px; }
  .home-hero { padding: 28px 0 40px; }
  .hero-head { margin-bottom: 22px; }
  .hero-head h1 br { display: none; }
  .solution-card { padding: 22px 18px; }
  .card-actions .btn { width: 100%; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 0 12px; }
}

/* 需求表單 */
.contact-section { padding: 56px 0; background: linear-gradient(180deg, #fff7f0 0%, #fff3e8 100%); border-top: 1px solid #fbe3cf; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.contact-intro h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 18px; background: var(--orange); border-radius: 2px; }
.lead-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field { min-width: 0; }
.field.span-2 { grid-column: 1 / -1; }
.field > label, .field legend { display: block; font-weight: 700; color: var(--ink); font-size: 15px; margin-bottom: 6px; padding: 0; }
.field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.req { color: #c2410c; margin-left: 2px; }
.opt { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 4px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #c9d2e1; border-radius: 10px; padding: 10px 12px; min-height: 46px; }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8b95aa; }
.field [aria-invalid="true"] { border-color: #c62828; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.choice { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 10px; border: 1px solid #c9d2e1; border-radius: 10px; cursor: pointer; font-size: 15px; }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--orange); }
.choice:has(input:checked) { border-color: var(--orange); background: #fff5ec; }
.has-error .choice { border-color: #e5a3a3; }
.field-error { color: #c62828; font-size: 14px; margin: 6px 0 0; }
.privacy-note { font-size: 13px; color: var(--muted); margin: 18px 0 14px; }
.btn-submit { width: 100%; }
.btn-submit[aria-disabled="true"] { background: #9aa3b5; }
.form-status { margin: 10px 0 0; font-weight: 700; color: #9a3412; }
.form-status:empty { display: none; }
.form-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .lead-form { padding: 20px 16px; } .contact-section { padding: 40px 0; } }

/* 區塊共用 */
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 820px; margin: 0 auto 32px; }
.section-head p { color: var(--muted); margin: 0; }
.wrap.narrow { max-width: 900px; }
.center { text-align: center; margin: 28px 0 0; }
.footnote { font-size: 13px; color: var(--muted); margin: 16px 0 0; text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-secondary { background: #fff; color: var(--orange-dark); border-color: var(--orange); }
.btn-secondary:hover { background: #fff5ec; }

/* 需求卡下方：選擇輔助與亮點標籤 */
.selection-help { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px; margin: 28px 0 0; text-align: center; }
.selection-help p { margin: 0; }
.selection-help strong { color: var(--ink); margin-right: 6px; }
.badges { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; margin: 18px 0 0; padding: 0; }
.badges li { position: relative; padding: 6px 14px 6px 32px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); }
.badges li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 9px; height: 5px; margin-top: -4px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }

/* 方案比較表 */
.table-scroll { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare-table th, .compare-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table tr:last-child > * { border-bottom: 0; }
.compare-table thead th { background: var(--bg-tint); color: var(--ink); font-size: 17px; }
.compare-table thead th span { display: block; font-size: 14px; font-weight: 600; color: var(--muted); }
.compare-table thead th.col-alt { background: var(--blue); color: #fff; }
.compare-table thead th.col-alt span { color: #dce8fb; }
.compare-table tbody th { width: 16%; color: var(--ink); background: #fafbfd; white-space: nowrap; }
.compare-table td + td { background: #f7faff; }
.compare-table ul { margin: 0; padding-left: 1.1em; }
.compare-table .text-link { min-height: 0; }

/* 文件卡 */
.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.doc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.doc-shot { position: relative; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.doc-shot img { width: 100%; height: auto; }
.doc-shot figcaption { padding: 3px 10px; border-top: 1px solid var(--line); background: var(--bg-soft); text-align: right; font-size: 11px; color: var(--muted); }
.doc-field { margin: 4px 0 12px; border: 1px solid #ece6fb; border-radius: 10px; overflow: hidden; background: #faf8ff; }
.doc-field img { width: 100%; height: auto; }
.doc-field span { display: block; padding: 4px 12px 6px; font-size: 12px; font-weight: 600; color: #6d5bb8; }
.doc-card h3 { margin: 4px 0 2px; }
.doc-card .doc-lead { font-weight: 700; color: var(--ink); margin-bottom: .3em; }
.doc-card p { font-size: 15px; }
.doc-card .text-link { margin-top: auto; }
.ask-box { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 20px; margin: 24px 0 0; padding: 18px; border: 1px dashed #c9d2e1; border-radius: 12px; text-align: center; }
.ask-box p { margin: 0; color: var(--ink); font-weight: 600; }

/* 四大模組入口 */
.module-title { text-align: center; margin: 44px 0 16px; }
.module-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.module-links a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); color: var(--ink); font-weight: 700; text-decoration: none; }
.module-links a:hover { border-color: var(--blue); }
.module-links a::after { content: "›" / ""; color: var(--blue); font-size: 20px; line-height: 1; }
.module-links svg { width: 26px; height: 26px; color: var(--blue); flex: none; }

/* 導入步驟：左側說明，右側流程（參考 plustek.ai 的流程樣式） */
.start-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: center; }
.start-intro h2 { font-size: clamp(24px, 3vw, 34px); }
.start-intro p { color: var(--text); }
.start-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 20px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 14px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.step + .step::before { content: "›"; position: absolute; left: -12px; top: 64px; color: #b3bccd; font-size: 18px; }
.step-no { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--c); }
.step h3 { font-size: 16px; margin: 4px 0 12px; }
.step-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: #fff; background: linear-gradient(145deg, var(--c2), var(--c)); box-shadow: 0 8px 18px -6px var(--c); margin-bottom: 14px; }
.step-icon svg { width: 26px; height: 26px; }
.step p { margin: 0; font-size: 14px; color: var(--muted); }
.s1 { --c: #ee6a12; --c2: #ffb27a; }
.s2 { --c: #d9468f; --c2: #f59ac6; }
.s3 { --c: #7c5cdb; --c2: #b9a6f3; }
.s4 { --c: #1f8a4c; --c2: #7fd3a2; }
.step-track { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px dashed var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.step-track::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 39px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #ee6a12, #d9468f, #7c5cdb, #1f8a4c); }
.step-track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.step-track .dot { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 2px solid var(--c); color: var(--c); }
.step-track .dot svg { width: 20px; height: 20px; }
.related-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; margin: 20px 0 0; padding: 0; }
.related-links li { display: flex; align-items: center; gap: 8px; }
.related-links span { color: var(--muted); font-size: 14px; }
.related-links.stacked { flex-direction: column; align-items: stretch; gap: 6px; margin: 18px 0 24px; }
.related-links.stacked li { flex-wrap: wrap; gap: 4px 10px; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.related-links.stacked span { min-width: 6.5em; }
.related-links.stacked .text-link { min-height: 32px; }

/* 常見問題（展開式，鍵盤可操作） */
.faq-list { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; padding: 12px 20px; font-weight: 700; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s; margin-top: -4px; }
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); background: var(--bg-tint); border-radius: 12px 12px 0 0; }
.faq-answer { padding: 14px 20px 6px; }

@media (max-width: 960px) {
  .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start-grid { grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step + .step::before { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 44px 0; }
  .section-head br { display: none; }
  .doc-grid, .module-links, .steps { grid-template-columns: 1fr; }
  .step-track { display: none; }
  .start-panel { padding: 14px; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: 100%; }
  .compare-table thead { display: none; }
  .compare-table tbody th { width: 100%; background: var(--bg-tint); white-space: normal; }
  /* 手機上每格前面標出是哪一欄，文字寫在表格格子的 data-label */
  .compare-table td::before { content: attr(data-label); display: block; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
  .related-links { flex-direction: column; align-items: center; }
}

/* 方案頁主視覺：左文右圖 */
.solution-hero { padding-bottom: 40px; background: linear-gradient(180deg, #fff 0%, #f6f9fe 100%); }
.hero-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; }
.hero-split .eyebrow { font-size: 15px; }
.hero-split .card-actions { margin-top: 8px; }
.solution-hero .badges { margin-top: 32px; }
.section-tight { padding: 40px 0; }

/* 實際介面截圖 */
.ui-shot { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.ui-shot img { width: 100%; height: auto; }
.ui-shot figcaption { padding: 4px 12px; border-top: 1px solid var(--line); background: var(--bg-soft); text-align: right; font-size: 12px; color: var(--muted); }
.hero-shot { box-shadow: 0 20px 50px rgba(22, 33, 62, .14); }

/* 六大功能 */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature-icon, .type-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); margin-bottom: 10px; }
.feature-icon svg, .type-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { margin: 0; font-size: 15px; color: var(--text); }

/* 掃描到歸檔流程（每步配實際介面） */
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.flow-step { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.flow-no { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--orange); }
.flow-step h3 { font-size: 17px; margin: 2px 0 4px; }
.flow-step p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.flow-step .ui-shot { margin-top: auto; box-shadow: none; }

/* 版本卡 */
.version-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.version-card { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.version-card .device { display: grid; place-items: center; aspect-ratio: 3 / 2; border-radius: 12px; background: var(--bg-tint); color: var(--ink); padding: 12px; }
.version-card .device svg { width: 100%; height: auto; }
.version-card p { color: var(--text); }

/* 支援文件類型 */
.type-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.type-grid li { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px; }
.type-grid h3 { font-size: 16px; margin-bottom: 4px; }
.type-grid p { margin: 0; font-size: 13px; color: var(--muted); }

/* 授權區 */
.license-band { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) auto; gap: 24px 32px; align-items: center; padding: 28px 32px; background: var(--bg-tint); border: 1px solid #d6e2f5; border-radius: 18px; }
.license-band h2 { font-size: clamp(20px, 2.2vw, 26px); }
.license-band p { margin: 0; color: var(--text); }
.license-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.license-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.license-item strong { color: var(--ink); margin-right: 4px; }
.license-item span { padding: 2px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 14px; font-weight: 700; }

@media (max-width: 960px) {
  .hero-split, .license-band { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .version-grid { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .feature-grid, .flow-steps { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .version-card { grid-template-columns: 1fr; }
  .version-card .device { max-width: 180px; }
  .license-band { padding: 22px 18px; }
  .license-band .btn { width: 100%; }
}

/* 檔案命名 Live 示範（參考 plustek.ai 的 Live 區塊） */
.naming-builder { display: grid; gap: 18px; max-width: 1000px; margin: 0 auto; }
.naming-card, .filing-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 22px 24px; }
.naming-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.naming-head h3 { margin: 0; font-size: 17px; }
.naming-hint { flex: 1 1 260px; margin: 0; font-size: 14px; color: var(--muted); }
.live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: #e6f6ec; border: 1px solid #b7e3c7; color: var(--green); font-size: 13px; font-weight: 800; }
.live-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.reset-btn, .add-btn, .add-menu button, .folder-list button { font: inherit; cursor: pointer; }
.reset-btn { margin-left: auto; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--blue); font-weight: 700; font-size: 14px; }
.reset-btn::before { content: "↺ " / ""; }
.rule-row { display: flex; align-items: center; gap: 6px; margin: 16px 0 12px; padding: 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; min-height: 66px; }
.rule-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rule-ext { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-weight: 700; color: var(--ink); }
.rule-sep { font-weight: 800; color: var(--muted); padding: 0 2px; }
.rule-chip { position: relative; display: inline-flex; align-items: center; gap: 4px; min-height: 42px; padding: 4px 6px 4px 8px; background: #eef1fe; border: 1px solid #c9d1f6; border-radius: 10px; color: var(--ink); font-weight: 700; cursor: grab; user-select: none; }
.rule-chip.dragging { opacity: .45; }
.drag-handle { width: 8px; height: 14px; margin-right: 4px; background-image: radial-gradient(circle, #8a94b8 1.2px, transparent 1.4px); background-size: 4px 4px; }
.chip-label { padding-right: 2px; }
.chip-move, .chip-remove { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #5a6694; cursor: pointer; font: inherit; font-size: 16px; line-height: 1; }
.chip-move:hover, .chip-remove:hover { background: #dfe5fd; }
.chip-move[data-dir="-1"]::before { content: "‹" / ""; font-size: 20px; }
.chip-move[data-dir="1"]::before { content: "›" / ""; font-size: 20px; }
.chip-remove::before { content: "×" / ""; font-size: 18px; }
.chip-move { opacity: 0; width: 0; overflow: hidden; transition: opacity .15s; }
.rule-chip:hover .chip-move, .rule-chip:focus-within .chip-move { opacity: 1; width: 28px; }
/* 觸控螢幕（平板、手機）沒有滑鼠移上去的狀態，箭頭一直顯示 */
@media (hover: none), (pointer: coarse) { .chip-move { opacity: 1; width: 28px; } }
.rule-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.add-wrap { position: relative; }
.add-btn { min-height: 42px; padding: 8px 16px; border: 1px dashed #9aa8d6; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 700; }
.add-menu { position: absolute; z-index: 10; top: calc(100% + 6px); left: 0; width: min(320px, 80vw); padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px rgba(22, 33, 62, .16); }
.add-title { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.add-fields { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.add-fields button, .add-custom button { min-height: 38px; padding: 6px 12px; border: 1px solid #c9d1f6; border-radius: 8px; background: #f6f8ff; color: var(--ink); font-weight: 700; }
.add-fields button::before { content: "＋" / ""; color: var(--blue); }
.add-empty { font-size: 14px; color: var(--muted); }
.add-custom { display: flex; gap: 6px; }
.add-custom input { flex: 1; min-width: 0; min-height: 38px; padding: 6px 10px; font: inherit; font-size: 16px; border: 1px solid #c9d2e1; border-radius: 8px; }
.slot-info { margin: 0; font-size: 14px; color: var(--muted); }
.slot-count { font-weight: 800; color: var(--ink); }
.rule-message { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: #b45309; }
.rule-message:empty { display: none; }
.rule-preview { margin: 14px 0 4px; font-size: 15px; color: var(--text); }
.rule-preview-name { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-weight: 700; color: var(--ink); background: #fff4ec; border: 1px solid #f6c7a5; border-radius: 8px; padding: 2px 10px; overflow-wrap: anywhere; }
.naming-note { margin: 0; font-size: 13px; color: var(--muted); }
.filing-title { font-size: 17px; margin: 0 0 12px; }
.filing-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.folder-list { list-style: none; margin: 0; padding: 10px; background: var(--bg-soft); border-right: 1px solid var(--line); display: grid; align-content: start; gap: 4px; }
.folder-list button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 42px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-weight: 600; text-align: left; }
.folder-list button::before { content: "" / ""; flex: none; width: 18px; height: 14px; border: 2px solid var(--blue); border-radius: 2px 3px 3px 3px; }
.folder-list button[aria-pressed="true"] { background: #e3ebfb; font-weight: 800; }
.file-panel { padding: 12px 14px; min-width: 0; }
.filing-path { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.file-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.file-name { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.file-name::before { content: "PDF " / ""; font-family: var(--font); font-size: 10px; font-weight: 800; color: #fff; background: #e05a3c; border-radius: 3px; padding: 1px 4px; margin-right: 8px; vertical-align: 2px; }
.file-tags { display: flex; gap: 6px; }
.file-tags .tag { padding: 1px 8px; border-radius: 999px; background: #e6f6ec; color: var(--green); font-size: 12px; font-weight: 700; }
.demo-flag { position: absolute; top: 18px; right: 22px; margin: 0; font-size: 12px; color: var(--muted); }

@media (max-width: 600px) {
  .naming-card, .filing-card { padding: 18px 14px; }
  .reset-btn { margin-left: 0; }
  .rule-row { flex-direction: column; align-items: stretch; }
  .rule-list { flex-direction: column; align-items: stretch; }
  .rule-chip { justify-content: flex-start; cursor: default; }
  .rule-chip .chip-label { flex: 1; }
  .rule-sep { text-align: center; line-height: 1; }
  .rule-ext { text-align: right; }
  .chip-move { opacity: 1; width: 32px; height: 32px; background: #fff; border: 1px solid #c9d1f6; }
  .rule-chip:hover .chip-move, .rule-chip:focus-within .chip-move { width: 32px; }
  .chip-move[data-dir="-1"]::before { content: "↑" / ""; font-size: 16px; }
  .chip-move[data-dir="1"]::before { content: "↓" / ""; font-size: 16px; }
  .drag-handle { display: none; }
  .filing-body { grid-template-columns: 1fr; }
  .folder-list { grid-template-columns: 1fr 1fr; border-right: 0; border-bottom: 1px solid var(--line); }
  .demo-flag { position: static; margin-top: 10px; text-align: right; }
  .rule-preview-name { display: block; margin-top: 6px; }
}

/* 應用頁 */
.app-hero { padding-bottom: 40px; }
.app-hero .lead { max-width: 760px; }
.point-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.point-grid li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.point-grid h3 { font-size: 17px; margin-bottom: 6px; }
.point-grid p { margin: 0; }
.app-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 24px; margin-top: 28px; }

/* 擷取 Live 示範（參考 plustek.ai Online Demo 的流程：選文件、開始、看結果） */
.extract-demo { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 18px 22px 16px; }
.demo-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.demo-tabs [role="tab"] { min-height: 44px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.demo-tabs [role="tab"][aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.demo-panel { padding-top: 16px; scroll-margin-top: 90px; }
.demo-intro h3 { margin-bottom: 2px; }
.demo-intro .doc-lead { font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.demo-intro p:last-child { color: var(--muted); }
.demo-stage { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 22px; align-items: start; }
.demo-doc { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.doc-frame { position: relative; }
.doc-frame img { width: 100%; height: auto; }
.doc-box { position: absolute; border: 2px solid rgba(124, 92, 219, .55); background: rgba(124, 92, 219, .08); border-radius: 4px; cursor: pointer; transition: background .15s, border-color .15s; }
.doc-box.active { border-color: #ee6a12; background: rgba(238, 106, 18, .18); box-shadow: 0 0 0 3px rgba(238, 106, 18, .25); }
.demo-doc figcaption { padding: 3px 10px; border-top: 1px solid var(--line); background: var(--bg-soft); text-align: right; font-size: 11px; color: var(--muted); }
.demo-side { min-width: 0; }
.demo-start { padding: 22px; border: 1px dashed #c9d2e1; border-radius: 12px; text-align: center; }
.demo-start p { color: var(--muted); font-size: 15px; }
.demo-status { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--blue); }
.demo-status:empty { display: none; }
.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.result-row { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 4px 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.result-row:focus-within { border-color: #ee6a12; }
.result-label { font-weight: 700; color: var(--ink); font-size: 14px; }
.result-row input { width: 100%; min-height: 38px; padding: 6px 10px; font: inherit; font-size: 16px; color: var(--ink); border: 1px solid #c9d2e1; border-radius: 8px; }
.result-meta { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; }
.src { padding: 1px 8px; border-radius: 999px; background: #eef1fe; color: #5a4bb0; font-weight: 700; }
.src-manual { background: #fff1e6; color: #b45309; }
.state { padding: 1px 8px; border-radius: 999px; font-weight: 700; }
.state-ai, .state-confirmed { background: #e6f6ec; color: var(--green); }
.state-pending { background: #fff4d6; color: #92590a; }
.state-edited { background: #e8f0fc; color: var(--blue); }
.state-manual { display: none; }
.confirm-btn { min-height: 32px; padding: 2px 12px; border: 1px solid #e0b25a; border-radius: 8px; background: #fff; color: #92590a; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.result-tools { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 12px; }
.field-wrap { position: relative; }
.tool-btn { min-height: 42px; padding: 8px 14px; border: 1px dashed #9aa8d6; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.demo-reset { border-style: solid; border-color: var(--line); color: var(--blue); }
.field-menu { position: absolute; z-index: 10; left: 0; top: calc(100% + 6px); width: min(320px, 82vw); padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px rgba(22, 33, 62, .16); }
.extra-fields { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.extra-fields button, .add-custom-field { min-height: 38px; padding: 6px 12px; border: 1px solid #c9d1f6; border-radius: 8px; background: #f6f8ff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.extra-fields button::before { content: "＋" / ""; color: var(--blue); }
.custom-field { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.custom-field input { min-width: 0; min-height: 38px; padding: 6px 10px; font: inherit; font-size: 16px; border: 1px solid #c9d2e1; border-radius: 8px; }
.custom-field button { grid-column: 1 / -1; }
.extract-demo > .demo-flag { position: static; margin: 14px 0 0; font-size: 12px; color: var(--muted); text-align: right; }

@media (max-width: 960px) {
  .demo-stage { grid-template-columns: 1fr; }
  /* 窄螢幕：捲到下方欄位時，文件圖固定在導覽列下方，仍看得到標示的位置 */
  .demo-doc { position: sticky; top: 76px; z-index: 2; box-shadow: 0 8px 20px rgba(22, 33, 62, .12); }
  .point-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .extract-demo { padding: 14px 12px; }
  .demo-tabs [role="tab"] { flex: 1 1 auto; padding: 8px 12px; }
  .result-row { grid-template-columns: 1fr; }
  .result-meta { grid-column: 1; }
  .app-actions { flex-direction: column; }
}

/* 證件類示範下方的提醒（身分證明文件、戶口名簿） */
.demo-notice { margin: 12px 0 0; font-size: 14px; font-weight: 700; color: var(--ink); text-align: right; }

/* ===== 資料擷取方案頁（AI Recognition Total Solution） ===== */
/* 「待確認」沿用擷取示範的 .state.state-pending，這裡只調位置與大小 */
.hero-flow .state, .cv-fields .state { display: inline-block; margin-left: 6px; font-size: 12px; vertical-align: middle; }

/* 主視覺：發票 → 擷取結果 → 檢核確認 → ERP 的流程示意 */
.hero-flow { margin: 0; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.hero-flow-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.2fr 1fr 1fr 0.8fr; gap: 22px; align-items: center; }
.hero-flow-steps > li { position: relative; }
/* 步驟之間的箭頭（主視覺流程、對照區步驟共用） */
.hero-flow-steps > li + li::before, .cv-steps li + li::before { content: "→" / ""; position: absolute; }
.hero-flow-steps > li + li::before { font-weight: 800; left: -18px; top: 50%; transform: translateY(-50%); color: var(--orange); }
.hf-doc img { width: 100%; height: auto; display: block; }
.hf-card { padding: 10px 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); font-size: 12px; }
.hf-card h3 { font-size: 13px; margin: 0 0 6px; }
.hf-fields { margin: 0; display: grid; gap: 3px; }
.hf-fields dt { color: var(--muted); font-size: 11px; }
.hf-fields dd { margin: 0 0 2px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.hf-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hf-checks li::before { content: "✓" / ""; color: #16a34a; font-weight: 800; margin-right: 4px; }
.hf-checks li.is-pending::before { content: "!" / ""; color: #b45309; }
.hf-checks .state { margin-left: 4px; padding: 0 6px; font-size: 11px; }
.hf-system { background: var(--blue-soft); text-align: center; }
.hf-system p { margin: 0; color: #16a34a; font-weight: 700; }
.hero-flow figcaption { margin-top: 10px; text-align: right; font-size: 12px; color: var(--muted); }

/* 頁內快速導覽 */
.section-nav { margin-top: 22px; }
.section-nav ul { margin: 0; }
/* 圓角導覽按鈕：頁內快速導覽、模組快速入口共用 */
.pill-nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pill-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; }
.pill-nav a:hover, .pill-nav a:focus-visible { border-color: var(--blue); color: var(--blue); }

/* 比較表：兩種做法各有一行重點 */
.capture-compare td strong { display: block; margin-bottom: 6px; color: var(--ink); }
.capture-compare thead th:first-child { width: 16%; }

/* 原始單據與擷取結果對照 */
.capture-visual { margin: 0 0 28px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.cv-steps { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; }
.cv-steps li { position: relative; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.cv-steps li + li::before { left: -22px; color: var(--muted); }
.cv-steps svg { width: 22px; height: 22px; color: var(--blue); }
.cv-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cv-label { font-size: 15px; margin: 0 0 10px; }
.cv-doc img { width: 100%; height: auto; display: block; border-radius: 10px; }
.cv-fields, .items-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.cv-fields th, .cv-fields td, .items-table th, .items-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.cv-fields th { width: 30%; color: var(--muted); font-weight: 600; background: var(--bg-soft); }
.cv-fields .is-pending th, .cv-fields .is-pending td { background: #fff8ee; }
.items-table { margin-top: 14px; }
.items-table thead th { background: var(--bg-tint); color: var(--ink); }
.items-table td:not(:first-child), .items-table th:not(:first-child) { text-align: right; }
.cv-delivery { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--blue-soft); }
.cv-delivery .cv-label { margin-bottom: 4px; }
.cv-delivery ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cv-delivery li { padding: 3px 10px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; color: var(--ink); }
.capture-visual figcaption { margin-top: 12px; text-align: right; font-size: 12px; color: var(--muted); }
.feature-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature .feature-note { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* 六步驟流程：桌機兩列、每列三張 */
.step-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step-no { position: absolute; top: 18px; right: 18px; padding: 2px 10px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 13px; font-weight: 800; }
.step-card h3 { font-size: 17px; margin: 0 0 6px; }
.step-card ul { margin: 0; padding-left: 1.1em; font-size: 15px; }
.review-note { margin: 24px auto 0; max-width: 720px; padding: 16px 20px; border-left: 4px solid var(--orange); border-radius: 10px; background: #fff; text-align: center; }
.review-note h3 { font-size: 19px; margin: 0 0 4px; }
.review-note p { margin: 0; color: var(--muted); }
.contact-links { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; }

@media (max-width: 960px) {
  .cv-body { grid-template-columns: 1fr; }
  .feature-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .feature-grid-4, .step-grid { grid-template-columns: 1fr; }
  .hero-flow-steps { grid-template-columns: 1fr 1fr; }
  .hero-flow-steps > li + li::before { display: none; }
  .capture-compare thead th:first-child { width: 100%; }
  .cv-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 14px; }
  .cv-steps li + li::before { display: none; }
  .capture-visual { padding: 14px; }
}

/* ===== 四大辨識模組（資料擷取頁） ===== */
.section-head .section-sub { color: var(--ink); font-weight: 700; margin-bottom: 8px; }
.module-nav ul { margin: 0 0 24px; }
/* Word：文字較多時桌機改兩欄兩列 */
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.module-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; scroll-margin-top: 90px; }
.module-head { display: flex; align-items: center; gap: 12px; }
.module-head .feature-icon { margin: 0; }
.module-head h3 { margin: 0; font-size: 20px; }
.module-card .module-lead { margin: 12px 0 6px; font-weight: 700; color: var(--ink); }
.module-card p { margin: 0 0 6px; font-size: 15px; }
.module-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 12px 0 16px; padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); }
.module-lists h4 { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.module-lists ul { margin: 0; padding-left: 1.1em; font-size: 14px; }
.module-card .card-actions { margin-top: auto; }
.module-live { margin-top: 36px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); scroll-margin-top: 80px; }
.module-live-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 19px; }
.module-tabs { margin-bottom: 14px; }
.module-panel .extract-demo { padding: 0; border: 0; box-shadow: none; }
.module-panel .demo-flag { position: static; }
@media (max-width: 960px) {
  .module-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .module-lists { grid-template-columns: 1fr; }
  .module-live { padding: 14px; }
}

/* ===== 部署方案一覽（資料擷取頁） ===== */
#deployment .badges { margin: 0 0 22px; }
.deploy-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.deploy-table th, .deploy-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.deploy-table thead th { background: #fff; text-align: center; vertical-align: bottom; }
.deploy-table thead .corner { text-align: left; width: 14%; color: var(--muted); }
.deploy-table .device { display: grid; place-items: center; width: 120px; margin: 0 auto 8px; aspect-ratio: 3 / 2; border-radius: 12px; background: var(--bg-tint); color: var(--ink); padding: 8px; }
.deploy-table .device svg { width: 100%; height: auto; }
.deploy-table .plan-name { display: block; font-size: 16px; color: var(--ink); line-height: 1.4; }
.deploy-table tbody th { color: var(--ink); white-space: nowrap; }
/* Word：白底搭配淺灰交錯列 */
.deploy-table tbody tr:nth-child(even) th, .deploy-table tbody tr:nth-child(even) td { background: var(--bg-soft); }
.deploy-table tfoot td { text-align: center; border-bottom: 0; }
.deploy-table tfoot th { border-bottom: 0; }
.plan-switch { display: none; }
.guide-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; text-align: left; }
.guide-box .guide-title { margin: 0 0 6px; font-weight: 800; color: var(--ink); }
.guide-box ul { margin: 0; padding-left: 1.2em; }

/* 手機：上方按鈕切換方案，一次一個方案、每列標出比較項目。
   用 760px（不是全站的 600px）：三欄比較表每欄文字較長，760px 以下並排就太擠。 */
@media (max-width: 760px) {
  .plan-switch { display: flex; gap: 6px; margin-bottom: 12px; }
  .plan-switch button { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; line-height: 1.3; cursor: pointer; }
  .plan-switch button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
  .deploy-table thead .corner { display: none; }
  .deploy-table [data-plan]:not(.is-shown) { display: none; }
  /* 改成卡片：表頭（設備圖與方案名）佔滿一行，下面每列左邊比較項目、右邊內容 */
  .deploy-table, .deploy-table :is(thead, tbody, tfoot) { display: block; }
  .deploy-table tr { display: flex; }
  .deploy-table thead th:not(.corner) { flex: 1; }
  .deploy-table tbody th { flex: 0 0 34%; white-space: normal; }
  .deploy-table tbody td, .deploy-table tfoot td { flex: 1; }
  .deploy-table th, .deploy-table td { padding: 10px 12px; }
  .deploy-table tfoot th { display: none; }
}
