/* GEO 示範站共用樣式。兩站只換色票（body.site-shop / body.site-b2b）。 */
:root {
  --text: #1d2420;
  --muted: #5a645e;
  --line: #dfe4e1;
  --surface: #f3f5f4;
  --bg: #ffffff;
  --accent: #2c5a41;
  --accent-ink: #ffffff;
  --accent-soft: #e6efe9;
  --note: #2165cb;          /* GEO 解說層用 sealab 藍，兩站一致 */
  --note-soft: #eef4fd;
  --banner: #fff3cf;
  --banner-ink: #4a3b00;
  --radius: 8px;
  --wrap: 1120px;
  font-size: 16px;
}
body.site-b2b {
  --text: #16202a;
  --muted: #56616c;
  --line: #dce2e8;
  --surface: #f2f4f7;
  --accent: #1d4b73;
  --accent-soft: #e5edf5;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
  accent-color: var(--accent);
  caret-color: var(--accent);
}
::selection { background: var(--accent-soft); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--note); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.3; text-wrap: balance; color: var(--text); }
h1 { font-size: 30px; font-weight: 600; margin: 8px 0 16px; }
h2 { font-size: 22px; font-weight: 600; margin: 48px 0 12px; }
h3 { font-size: 18px; font-weight: 600; margin: 28px 0 8px; }
p, li { text-wrap: pretty; }
p { margin: 0 0 16px; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 14px; background: var(--surface); padding: 1px 4px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
.muted { color: var(--muted); font-size: 14px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 50; }

/* 示範橫幅 */
.demo-banner { background: var(--banner); color: var(--banner-ink); font-size: 14px; padding: 8px 0; border-bottom: 1px solid #ecdca4; }
.demo-banner a { color: var(--banner-ink); font-weight: 600; margin-left: 4px; }

/* 頁首 */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand { text-decoration: none; color: var(--text); display: flex; align-items: baseline; gap: 8px; padding: 12px 0; }
.brand-zh { font-size: 20px; font-weight: 600; letter-spacing: 0.02em; }
.brand-en { font-size: 13px; color: var(--muted); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a { display: block; padding: 8px 10px; text-decoration: none; color: var(--text); font-size: 15px; border-radius: 6px; }
.main-nav a:hover { background: var(--surface); }
.main-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
@media (max-width: 767px) {
  .header-row { gap: 0; }
  .main-nav { width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 8px; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav ul { flex-wrap: nowrap; }
  .main-nav a { white-space: nowrap; padding: 10px 12px; background: var(--surface); }
}

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

main { padding-bottom: 64px; }

/* 閱讀欄 */
.prose { max-width: 40em; }
.prose-wide { max-width: 72em; }
.prose ul, .prose ol, .prose-wide ul, .prose-wide ol { padding-left: 1.4em; }
.prose li, .prose-wide li { margin: 4px 0; }
.lead { font-size: 18px; line-height: 1.8; }
.answer { margin: 0 0 24px; }

/* 首頁主視覺 */
.hero { display: grid; gap: 32px; align-items: center; padding: 40px 0 24px; }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 56px 0 32px; } }
.hero h1 { font-size: 34px; margin-top: 0; }
@media (max-width: 600px) { .hero h1 { font-size: 27px; } h1 { font-size: 26px; } }
.hero img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: var(--radius); font-weight: 500; font-size: 15px; text-decoration: none; border: 1px solid var(--accent); cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* 區段 */
.section { margin-top: 72px; }
.section > h2:first-child { margin-top: 0; }
.section-head { max-width: 40em; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 24px 0; }
.facts div { padding: 16px 16px 16px 0; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: 18px; font-weight: 600; }

/* 產品／服務列表 */
.items { display: grid; gap: 32px 24px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 24px; }
.item { text-decoration: none; color: inherit; display: block; }
.item img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.item h3 { margin: 12px 0 4px; font-size: 18px; }
.item p { margin: 0 0 4px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.item .price { color: var(--text); font-weight: 600; }
.item:hover h3 { color: var(--accent); }

/* 產品頁 */
.product-top { display: grid; gap: 32px; margin-top: 16px; }
@media (min-width: 900px) { .product-top { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.product-top img { border-radius: 12px; width: 100%; }
.price-line { font-size: 24px; font-weight: 600; margin: 8px 0; }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 16px; }
.spec th, .spec td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 32%; color: var(--muted); font-weight: 500; }

/* 表格 */
.table-scroll { overflow-x: auto; margin: 16px 0 24px; }
table.cmp, table.spec-table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 620px; }
table.cmp th, table.cmp td, table.spec-table th, table.spec-table td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
table.cmp thead th, table.spec-table thead th { background: var(--surface); font-weight: 600; font-size: 14px; }
table.cmp td.ours, table.cmp th.ours { background: var(--accent-soft); }
table.spec-table th[scope="row"] { font-weight: 600; white-space: nowrap; }
table.spec-table thead th { white-space: nowrap; }
table.spec-table td { line-height: 1.65; }
table.spec-table tr:target { background: var(--note-soft); }

/* 重點、目錄、CTA、提示框 */
.summary { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; margin: 24px 0 32px; }
.summary-title, .toc-title { font-size: 17px; margin: 0 0 8px; }
.summary ul { margin: 0; padding-left: 1.2em; }
.toc { background: var(--surface); border-radius: var(--radius); padding: 16px 20px; margin: 24px 0; }
.toc ol { margin: 0; padding-left: 1.4em; columns: 2 220px; }
.cta { background: var(--accent-soft); border-radius: 12px; padding: 28px; margin: 48px 0; max-width: 56em; }
.cta-title { margin-top: 0; font-size: 21px; }
.callout { border: 1px solid var(--line); border-radius: 12px; padding: 4px 24px 12px; margin: 24px 0; }
.callout h2 { margin-top: 20px; }
.demo-tag { display: inline-block; font-size: 12px; font-weight: 500; color: #7a5a00; background: #fff3cf; border: 1px solid #ecdca4; border-radius: 4px; padding: 0 6px; margin-left: 6px; vertical-align: middle; line-height: 1.7; }

/* FAQ */
.qa { border-bottom: 1px solid var(--line); padding: 4px 0 8px; }
.qa h3 { margin-top: 20px; }
.faq-more { font-size: 14px; white-space: nowrap; }
.faq-cats { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; margin: 16px 0 8px; }
.faq-cats a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 15px; color: var(--text); }
.faq-cats a:hover { border-color: var(--accent); color: var(--accent); }
.qa:target { background: var(--note-soft); }
.anchor { font-size: 13px; color: var(--muted); text-decoration: none; margin-left: 6px; }

/* 疑慮、案例 */
.objection { padding: 8px 0 16px; border-bottom: 1px solid var(--line); }
.objection h2 { font-size: 20px; margin-top: 36px; }
.case-result { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 16px 0; padding: 0; list-style: none !important; }
.case-result li { border-top: 2px solid var(--accent); padding-top: 8px; margin: 0 !important; }
.case-result strong { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 20px 48px; margin: 0 !important; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 15px; }
.steps h3 { margin: 2px 0 4px; }
.glossary dt { font-weight: 600; font-size: 18px; margin-top: 24px; }
.glossary dd { margin: 4px 0 0; }
.person { display: grid; gap: 24px; grid-template-columns: 96px minmax(0, 1fr); align-items: start; }
.avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 34px; font-weight: 600; }
.byline { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; margin: 0 0 24px; }
.byline p { margin: 0; }
.sources { font-size: 15px; }
figure { margin: 24px 0; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
figure img { border-radius: var(--radius); }

/* 表單（只有外觀） */
.demo-form { display: grid; gap: 14px; max-width: 32em; margin: 16px 0; }
.field { display: grid; gap: 4px; font-size: 15px; }
.field input { height: 44px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 12px; font-size: 16px; background: var(--surface); }

/* 頁尾 */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0 24px; font-size: 15px; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.footer-brand { font-weight: 600; margin-bottom: 4px; }
address { font-style: normal; }
.footer-links { list-style: none; padding: 0; margin: 0; columns: 2; }
.footer-links li { margin-bottom: 6px; }
.footer-credit { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; font-size: 14px; color: var(--muted); }
@media (max-width: 767px) { .site-footer { padding-bottom: 88px; } }

/* ── GEO 解說模式 ── */
.geo-toggle { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--note); background: #fff; color: var(--note); font: 500 15px/1 inherit; font-family: inherit; cursor: pointer; box-shadow: 0 2px 8px rgba(16, 24, 40, 0.12); }
.geo-toggle .geo-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--note); }
.geo-toggle[aria-pressed="true"] { background: var(--note); color: #fff; }
.geo-toggle[aria-pressed="true"] .geo-dot { background: #fff; border-color: #fff; }
.geo-only { display: none; }
body.geo-on .geo-only { display: block; margin-top: 16px; }
.geo-only-text { margin: 0; font-size: 14px; color: var(--note); }
body.geo-on [data-geo] { outline: 2px dashed var(--note); outline-offset: 6px; border-radius: 4px; }
.geo-note { display: none; }
body.geo-on .geo-note { display: block; background: var(--note-soft); border: 1px solid #c7d9f5; color: #17325e; border-radius: 8px; padding: 10px 14px; margin: 0 0 12px; font-size: 14px; line-height: 1.65; max-width: 44em; }
.geo-note p { margin: 0; }
.geo-note-ids { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px !important; }
.geo-note-ids a { font-size: 13px; font-weight: 600; color: var(--note); background: #fff; border: 1px solid #c7d9f5; border-radius: 4px; padding: 0 6px; text-decoration: none; }
body.geo-on .crumbs ol, body.geo-on .main-nav ul { position: relative; }
@media (prefers-reduced-motion: no-preference) { .btn, .main-nav a { transition: background-color 0.15s, filter 0.15s; } }
@media print { .geo-toggle, .demo-banner { display: none; } }
