/* 省事工作室：「螢光筆標記文件」設計系統（SPEC 11） */
:root {
  --paper: #EEF1F4;
  --ink: #1F2A44;
  --ink-2: #34405C;
  --hl: #FFE14D;
  --hl-soft: #FFF3A8;
  --ok: #2E7D5B;
  --ok-soft: #DDF0E6;
  --grid: #C8CFD8;
  --muted: #56617A;
  --white: #FFFFFF;
  --danger: #B3261E;
  --danger-soft: #FBE3E1;
  --line-green: #06C755;
  --tg-blue: #2AABEE;

  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* 1.25 倍字級 */
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.5625rem;
  --fs-xl: clamp(1.5625rem, 1.2rem + 1.6vw, 1.953rem);
  --fs-2xl: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem);

  --gutter: 16px;
  --radius: 4px;
  --shadow: 0 1px 0 var(--grid), 0 8px 24px -12px rgba(31, 42, 68, .25);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.75;
  font-feature-settings: "palt" 0;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--hl); text-decoration-thickness: 3px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.band--ink :focus-visible, .dock :focus-visible { outline-color: var(--hl); }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--hl); padding: 8px 12px; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* 螢光筆：行內文字只塗下半部，表格格子整格塗 */
mark { background: linear-gradient(transparent 55%, var(--hl) 55%); color: inherit; padding: 0 .1em; }
td mark, th mark, .mini-sheet mark { background: var(--hl); padding: 0 .2em; }

/* ---------- 字級 ---------- */
.h1 { font-family: var(--serif); font-size: var(--fs-2xl); line-height: 1.35; letter-spacing: .01em; margin-bottom: .5em; text-wrap: balance; }
.h2 { font-family: var(--serif); font-size: var(--fs-xl); line-height: 1.4; margin-bottom: .5em; text-wrap: balance; }
.h3 { font-size: var(--fs-md); line-height: 1.5; margin-bottom: .4em; font-weight: 700; }
.lead { font-size: var(--fs-md); color: var(--muted); max-width: 35em; }
.lead--strong { color: var(--ink); font-weight: 500; }
.band--ink .lead { color: #C9D0DD; }
.eyebrow { font-size: var(--fs-sm); font-weight: 700; letter-spacing: .08em; color: var(--muted); margin-bottom: .75em; }
.fine { font-size: var(--fs-sm); color: var(--muted); }
.notice { background: var(--hl-soft); border-left: 4px solid var(--hl); padding: 10px 14px; }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px; padding: 10px 22px;
  border: 2px solid transparent; border-radius: var(--radius);
  font-weight: 700; font-size: var(--fs-base); line-height: 1.3; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn--hl { background: var(--hl); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn--hl:hover { box-shadow: 4px 4px 0 var(--ink); }
.band--ink .btn--hl { border-color: var(--hl); box-shadow: none; }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost-ink { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line { background: var(--line-green); color: var(--white); }
.btn--sm { min-height: 40px; padding: 6px 14px; font-size: var(--fs-sm); }
.btn--lg { min-height: 56px; padding: 12px 32px; font-size: var(--fs-md); }
.btn--block { width: 100%; }

.tag { display: inline-block; font-size: var(--fs-sm); font-weight: 700; padding: 1px 10px; border: 1px solid var(--ink); border-radius: 999px; background: var(--white); white-space: nowrap; }
.tag--hl { background: var(--hl); }
.tag--quiet { border-color: var(--grid); color: var(--muted); font-weight: 500; }
.tag--ok { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }

/* ---------- 頁首 ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(238, 241, 244, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--grid); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: var(--fs-md); text-decoration: none; white-space: nowrap; }
.brand__mark { width: 22px; height: 22px; background: var(--ink); position: relative; border-radius: 3px; }
.brand__mark::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 5px; height: 5px; background: var(--hl); }
.navtoggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.navtoggle__bar, .navtoggle__bar::before, .navtoggle__bar::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; content: ""; }
.navtoggle__bar::before { position: absolute; top: -7px; }
.navtoggle__bar::after { position: absolute; top: 7px; }
.sitenav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--grid); padding: 8px var(--gutter) 20px; }
.sitenav.is-open { display: block; }
.sitenav ul { list-style: none; margin-bottom: 12px; }
.sitenav li a { display: block; padding: 12px 0; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--grid); }
.sitenav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: 3px; }
@media (min-width: 900px) {
  .navtoggle { display: none; }
  .sitenav { display: flex !important; position: static; padding: 0; border: 0; background: none; align-items: center; gap: 24px; }
  .sitenav ul { display: flex; gap: 24px; margin: 0; }
  .sitenav li a { padding: 6px 0; border: 0; }
}

/* ---------- 區塊 ---------- */
.band { padding: 56px 0; }
.band--white { background: var(--white); border-top: 1px solid var(--grid); border-bottom: 1px solid var(--grid); }
.band--ink { background: var(--ink); color: var(--paper); }
.band__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; margin-bottom: 0; }
@media (min-width: 768px) { .band { padding: 88px 0; } }
.pagehead { padding: 40px 0 36px; }
@media (min-width: 768px) { .pagehead { padding: 64px 0 56px; } }
.crumbs { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.callout { max-width: 760px; }
.callout__price { font-family: var(--serif); font-size: var(--fs-lg); color: var(--hl); margin-bottom: 4px; }

/* ---------- Hero ---------- */
.hero { padding: 32px 0 48px; }
.hero__inner { display: grid; gap: 32px; align-items: center; }
.hero__sub { font-size: var(--fs-md); color: var(--muted); max-width: 30em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--fs-sm); color: var(--muted); }
.hero__facts strong { color: var(--ink); }
@media (min-width: 1000px) {
  .hero { padding: 64px 0 88px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; }
  .hero .h1 { font-size: clamp(2rem, 1.2rem + 1.8vw, 2.6rem); }
}

/* ---------- 前後對照滑桿 ---------- */
.compare { --pos: 50%; position: relative; margin: 0; background: var(--white); border: 1px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); user-select: none; touch-action: pan-y; cursor: ew-resize; }
.compare__pane { padding: 44px 12px 16px; overflow: hidden; }
.compare__pane--before { position: absolute; inset: 0; background: #FBFBF7; clip-path: inset(0 calc(100% - var(--pos)) 0 0); border-right: 0; }
.compare__tag { position: absolute; top: 10px; left: 12px; margin: 0; font-size: var(--fs-sm); font-weight: 700; background: var(--white); border: 1px solid var(--grid); padding: 0 8px; }
.compare__tag--after { left: auto; right: 12px; background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; pointer-events: none; }
.compare__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: var(--ink); }
.compare__handle span { position: absolute; top: 50%; left: -22px; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: var(--hl); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.compare__handle span::before, .compare__handle span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 6px solid transparent; margin-top: -6px; }
.compare__handle span::before { left: 5px; border-right-color: var(--ink); }
.compare__handle span::after { right: 5px; border-left-color: var(--ink); }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; -webkit-appearance: none; appearance: none; }
.compare:has(.compare__range:focus-visible) .compare__handle span { outline: 3px solid var(--ink); outline-offset: 3px; }
.compare__cap { padding: 10px 12px; margin: 0; border-top: 1px solid var(--grid); font-size: var(--fs-sm); color: var(--muted); background: var(--white); position: relative; }

/* ---------- 表格（範例資料） ---------- */
.sheet { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.5; background: var(--white); }
.sheet th, .sheet td { border: 1px solid var(--grid); padding: 5px 6px; text-align: left; white-space: nowrap; }
.sheet th { background: #F5F7F9; font-weight: 700; }
.sheet .num { text-align: right; font-variant-numeric: tabular-nums; }
.sheet tfoot td { font-weight: 700; background: #F5F7F9; }
.sheet tr.is-flag td { background: #E9ECF1; color: var(--muted); }
.sheet tr.is-flag td:first-child { color: var(--danger); font-weight: 700; }
.sheet--messy { font-family: "PMingLiU", "Songti TC", serif; }
.sheet--messy tbody tr:nth-child(2) td { font-family: var(--sans); color: #2B5BA8; }
.sheet--messy tbody tr:nth-child(3) td:nth-child(4) { text-align: right; }
.sheet--messy tbody tr:nth-child(4) td { font-style: italic; }
.sheet--messy tbody tr:nth-child(5) td:nth-child(3) { text-align: center; }
.sheet--messy th:nth-child(2) { background: #FFF1C9; }
@media (min-width: 480px) { .sheet { font-size: 14px; } .sheet th, .sheet td { padding: 6px 10px; } }

/* ---------- 行業入口 ---------- */
.industries { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 28px; }
.industry__link { display: grid; grid-template-rows: auto auto 1fr; height: 100%; text-decoration: none; border: 1px solid var(--ink); background: var(--paper); transition: transform .15s ease, box-shadow .15s ease; }
.industry__link:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); text-decoration: none; }
.industry__name { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 14px 16px 2px; font-family: var(--serif); font-weight: 700; font-size: var(--fs-md); }
.industry__name small { font-family: var(--sans); font-size: var(--fs-sm); font-weight: 500; color: var(--muted); }
.industry__hook { padding: 0 16px 16px; color: var(--ink-2); }

.thumb { height: 150px; display: flex; align-items: center; justify-content: center; background: var(--white); border-bottom: 1px solid var(--grid); padding: 12px; overflow: hidden; }
.mini-chat { width: 210px; background: var(--white); border: 1px solid var(--grid); border-radius: 12px; font-size: 12px; line-height: 1.5; padding: 10px 12px; box-shadow: var(--shadow); }
.mini-chat p { margin: 0; }
.mini-chat__from { font-weight: 700; color: var(--ok); }
.mini-chat__sum { color: var(--muted); }
.mini-chat__btns { display: flex; gap: 6px; margin-top: 6px !important; }
.mini-chat__btns span { flex: 1; text-align: center; border: 1px solid var(--grid); border-radius: 6px; padding: 2px 0; }
.mini-chat__btns .is-on { background: var(--line-green); border-color: var(--line-green); color: var(--white); font-weight: 700; }
.mini-products { display: flex; gap: 10px; }
.mini-products__item { width: 64px; height: 84px; background: var(--white); border: 1px solid var(--grid); display: flex; align-items: center; justify-content: center; position: relative; }
.mini-products__item::after { content: "LOGO"; position: absolute; right: 3px; bottom: 2px; font-size: 7px; font-weight: 700; color: var(--muted); }
.mini-products__item i { width: 26px; height: 46px; border-radius: 8px 8px 4px 4px; background: linear-gradient(#5B8DEF, #2F5FC9); }
.mini-products__item:nth-child(2) i { background: linear-gradient(#F29E4C, #D9642B); height: 40px; border-radius: 50% 50% 6px 6px; }
.mini-products__item:nth-child(3) i { background: linear-gradient(#57B894, #2E7D5B); width: 34px; height: 34px; border-radius: 6px; }
.mini-sheet { font-size: 12px; border: 1px solid var(--grid); background: var(--white); }
.mini-sheet p { display: grid; grid-template-columns: 56px 60px 52px; margin: 0; border-bottom: 1px solid var(--grid); }
.mini-sheet p:first-child { background: #F5F7F9; font-weight: 700; }
.mini-sheet span, .mini-sheet mark { padding: 3px 6px; border-right: 1px solid var(--grid); }
.mini-sizes { position: relative; width: 220px; height: 120px; }
.mini-sizes span { position: absolute; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; border: 1.5px solid var(--ink); background: var(--hl); }
.mini-sizes .s1 { left: 0; top: 20px; width: 80px; height: 80px; }
.mini-sizes .s2 { left: 92px; top: 0; width: 45px; height: 80px; background: var(--white); }
.mini-sizes .s3 { left: 92px; top: 88px; width: 128px; height: 32px; background: var(--white); }
.mini-sizes .s4 { left: 148px; top: 0; width: 64px; height: 80px; background: var(--hl-soft); }
.mini-bars { width: 220px; font-size: 12px; }
.mini-bars p { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 8px; margin: 0 0 10px; }
.mini-bars b { display: block; height: 14px; background: var(--ink); }
.mini-bars .w70 { width: 70%; } .mini-bars .w45 { width: 45%; } .mini-bars .w25 { width: 25%; }
.mini-bars .is-hl { background: var(--hl); border: 1px solid var(--ink); }

/* ---------- 精選 demo ---------- */
.featured { list-style: none; display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 900px) { .featured { grid-template-columns: repeat(3, 1fr); } }
.featured__item { background: var(--white); border: 1px solid var(--grid); border-top: 4px solid var(--ink); padding: 20px; display: flex; flex-direction: column; }
.featured__item .btn { margin-top: auto; align-self: flex-start; }
.featured__item .h3 a { text-decoration: none; }
.featured__ind { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 4px; }
.featured__time { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; }
.featured__time .arrow { color: var(--muted); }

/* ---------- 工具卡片 ---------- */
.toolgrid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-top: 24px; }
.toolcard { position: relative; height: 100%; background: var(--white); border: 1px solid var(--ink); padding: 18px 20px; transition: transform .15s ease, box-shadow .15s ease; }
.toolcard:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.toolcard__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.toolcard__name { font-size: var(--fs-md); line-height: 1.45; margin-bottom: 6px; }
.toolcard__name a { text-decoration: none; }
.toolcard__name a::after { content: ""; position: absolute; inset: 0; }
.toolcard__line { color: var(--ink-2); }
.toolcard__time { margin: 0; font-size: var(--fs-sm); font-weight: 700; }

/* ---------- 工具頁 ---------- */
.toolhead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.toolhead__time { font-weight: 700; }
.toolhead__time small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.pain { font-family: var(--serif); font-size: var(--fs-lg); line-height: 1.5; max-width: 30em; margin-bottom: 28px; }
.beforeafter { display: grid; gap: 16px; }
@media (min-width: 768px) { .beforeafter { grid-template-columns: 1fr 1fr; } }
.beforeafter__col { border: 1px solid var(--grid); padding: 20px 24px; background: #FAFBFC; }
.beforeafter__col--after { border-color: var(--ok); background: var(--ok-soft); }
.beforeafter__h { font-size: var(--fs-sm); letter-spacing: .1em; margin-bottom: 10px; color: var(--muted); }
.beforeafter__col--after .beforeafter__h { color: var(--ok); }
.beforeafter ul { list-style: none; }
.beforeafter li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.beforeafter li::before { content: "✕"; position: absolute; left: 0; color: var(--danger); font-weight: 700; }
.beforeafter__col--after li::before { content: "✓"; color: var(--ok); }

/* ---------- 試算器 ---------- */
.roi__head { margin-bottom: 20px; }
.roi__lead { color: var(--muted); }
.roi__grid { display: grid; gap: 24px; }
@media (min-width: 860px) { .roi__grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
.roi__inputs { display: grid; gap: 16px; align-content: start; }
.roi__out { background: var(--paper); border: 1px solid var(--ink); padding: 24px; }
.roi__big { font-family: var(--serif); font-size: clamp(2.5rem, 2rem + 3vw, 3.5rem); line-height: 1.1; margin-bottom: 12px; }
.roi__big small { font-family: var(--sans); font-size: var(--fs-md); font-weight: 500; }
.roi__line { font-size: var(--fs-md); margin-bottom: 6px; }
.roi__year { background: var(--hl); padding: 0 .2em; }
.roi__out .btn { margin-top: 16px; }
.roi__note { margin: 12px 0 0; font-size: var(--fs-sm); color: var(--muted); }

/* ---------- 表單欄位 ---------- */
.field { display: grid; gap: 6px; }
.field__label { font-weight: 700; }
.field__label em, legend em { font-style: normal; font-size: var(--fs-sm); font-weight: 700; color: var(--danger); margin-left: 4px; }
.field__label em.opt, legend em.opt, summary em.opt { color: var(--muted); font-weight: 500; }
.field__row { display: flex; align-items: center; gap: 8px; }
.field__unit { color: var(--muted); white-space: nowrap; }
.field__hint { font-size: var(--fs-sm); color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  border: 1.5px solid var(--ink-2); border-radius: var(--radius); background: var(--white);
  font-size: 16px; /* iOS 不會自動放大 */
}
textarea { resize: vertical; line-height: 1.7; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--hl); outline-offset: 0; border-color: var(--ink); }
[aria-invalid="true"] { border-color: var(--danger) !important; background: var(--danger-soft); }
.field-row { display: grid; gap: 16px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }

/* ---------- 流程 ---------- */
.steps { list-style: none; counter-reset: step; display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps__item { counter-increment: step; position: relative; background: var(--white); border: 1px solid var(--grid); padding: 48px 18px 16px; }
.steps__item::before { content: counter(step); position: absolute; top: 12px; left: 18px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--white); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps__name { font-size: var(--fs-md); margin-bottom: 6px; }
.steps__time { margin: 0; font-size: var(--fs-sm); font-weight: 700; color: var(--ok); }
.steps--full { grid-template-columns: 1fr; max-width: 760px; }
.steps--full .steps__item { padding: 20px 20px 16px 72px; }
.steps--full .steps__item::before { top: 20px; left: 20px; width: 36px; height: 36px; }

/* ---------- 價目 ---------- */
.plans { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.plans--compact { margin-top: 24px; }
.plan { position: relative; background: var(--white); color: var(--ink); border: 1px solid var(--ink); padding: 24px; }
.band--ink .plan { background: var(--ink-2); color: var(--paper); border-color: #56617A; }
.plan--hl { border-width: 2px; box-shadow: 6px 6px 0 var(--hl); }
.band--ink .plan--hl { border-color: var(--hl); box-shadow: none; }
.plan__badge { position: absolute; top: -13px; left: 20px; margin: 0; background: var(--hl); color: var(--ink); font-size: var(--fs-sm); font-weight: 700; padding: 0 10px; border: 1px solid var(--ink); }
.plan__name { font-size: var(--fs-md); font-weight: 700; margin-bottom: 4px; font-family: var(--sans); }
.plan__price { font-family: var(--serif); font-size: var(--fs-xl); margin-bottom: 4px; }
.plan__sum { color: var(--muted); }
.band--ink .plan__sum { color: #C9D0DD; }
.plan__list { list-style: none; border-top: 1px solid var(--grid); padding-top: 12px; margin-bottom: 12px; }
.plan__list li { padding-left: 22px; position: relative; margin-bottom: 4px; }
.plan__list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.plan__ex { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.rules { list-style: none; }
.rules li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--grid); position: relative; }
.rules li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 10px; height: 10px; background: var(--hl); border: 1px solid var(--ink); }
.promises { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; color: var(--hl); font-weight: 700; }
.strengths { list-style: none; display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 768px) { .strengths { grid-template-columns: repeat(3, 1fr); } }
.strengths li { border-top: 4px solid var(--hl); padding-top: 12px; }

/* ---------- FAQ ---------- */
.faq__item { border-bottom: 1px solid var(--grid); }
.faq__item summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; font-size: var(--fs-md); position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 8px; top: 14px; font-size: 1.6rem; font-weight: 400; }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { padding-bottom: 12px; color: var(--ink-2); max-width: 35em; }
.prose h2 { margin-top: 28px; }
.prose p { color: var(--ink-2); }

/* ---------- 詢價表單 ---------- */
.contact-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.leadform { display: grid; gap: 28px; }
.leadform__group { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
.leadform__group legend { font-family: var(--serif); font-size: var(--fs-md); font-weight: 700; padding: 0; margin-bottom: 12px; }
.leadform__error { background: var(--danger-soft); color: var(--danger); border-left: 4px solid var(--danger); padding: 10px 14px; margin: 0; font-weight: 700; }
.leadform__privacy { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.leadform__closed { background: var(--hl-soft); padding: 14px 16px; border-left: 4px solid var(--hl); margin: 0; }
.leadform__done { text-align: left; }
.leadform__done:focus { outline: none; }
.leadform__done-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: var(--white); font-size: 30px; display: flex; align-items: center; justify-content: center; }
.leadform__done .code { font-family: var(--mono); font-size: var(--fs-md); background: var(--hl); padding: 0 .3em; }
.toolpick { border: 1.5px solid var(--ink-2); border-radius: var(--radius); background: var(--white); }
.toolpick summary { cursor: pointer; padding: 12px; font-weight: 700; }
.toolpick__count { font-weight: 500; color: var(--ok); }
.toolpick__group { padding: 0 12px 12px; }
.toolpick__ind { margin: 8px 0 4px; font-size: var(--fs-sm); color: var(--muted); font-weight: 700; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--ink); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }

/* ---------- 錯誤頁 ---------- */
.errorpage__code { font-family: var(--mono); font-size: var(--fs-sm); background: var(--hl); display: inline-block; padding: 0 8px; }
.errorpage__links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- 頁尾 ---------- */
.footer { background: var(--ink); color: #C9D0DD; padding: 48px 0 110px; font-size: var(--fs-sm); }
@media (min-width: 768px) { .footer { padding-bottom: 48px; } }
.footer__inner { display: grid; gap: 28px; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: 1.2fr 2fr 1.4fr; } }
.footer__brand { font-family: var(--serif); font-size: var(--fs-md); color: var(--white); margin-bottom: 4px; }
.footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 6px; }
.footer a { color: var(--white); }
.footer__small { color: #9AA3B5; margin-bottom: 4px; }

/* ---------- 手機底部固定 CTA ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(31, 42, 68, .96); transform: translateY(0); transition: transform .2s ease; }
.dock.is-hidden { transform: translateY(110%); }
.dock__btn { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.dock__btn--hl { background: var(--hl); color: var(--ink); }
.dock__btn--line { background: var(--line-green); color: var(--white); }
@media (min-width: 768px) { .dock { display: none; } }

/* ---------- 實際上線的作品 ---------- */
.cases-band__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; }
.cases-band__all { font-weight: 700; margin-bottom: 1em; }
.cases { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 960px) { .cases { grid-template-columns: 1fr 1fr; } }
.casecard { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--ink); background: var(--white); box-shadow: 6px 6px 0 var(--ink); min-width: 0; }
.casecard__visual { display: block; background: linear-gradient(160deg, #E3E8EE, #D4DBE4); border-bottom: 1px solid var(--ink); overflow: hidden; }
.casecard__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.casecard__body > * { margin: 0; }
.casecard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.casecard__kind { font-size: var(--fs-sm); color: var(--muted); font-weight: 700; }
.casecard__name { font-family: var(--serif); font-size: var(--fs-lg); line-height: 1.3; }
.casecard__name a { text-decoration: none; }
.casecard__summary { color: var(--ink-2); }
.casecard__points { list-style: none; display: grid; gap: 4px; }
.casecard__points li { position: relative; padding-left: 24px; }
.casecard__points li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.casecard__biz { background: var(--hl-soft); border-left: 4px solid var(--hl); padding: 8px 12px; font-size: var(--fs-sm); }
.casecard__disclaimer { font-size: 13px; color: var(--muted); }
.casecard__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto !important; padding-top: 6px; }

/* 截圖組合：手機框、瀏覽器框、對話泡泡 */
.casevis { position: relative; height: 300px; }
@media (min-width: 600px) { .casevis { height: 340px; } }
.shot { margin: 0; overflow: hidden; background: var(--white); }
.shot img { display: block; width: 100%; height: auto; }
.shot--phone { border: 7px solid var(--ink); border-radius: 26px; background: var(--ink); position: relative; aspect-ratio: 9 / 18; }
.shot--phone img { height: 100%; object-fit: cover; object-position: top; border-radius: 18px; }
.shot__notch { position: absolute; top: 4px; left: 50%; width: 34%; height: 9px; margin-left: -17%; border-radius: 0 0 8px 8px; background: var(--ink); z-index: 1; }
.shot--wide { border: 1px solid var(--ink); border-radius: 6px; box-shadow: var(--shadow); }
.shot__bar { display: flex; gap: 5px; padding: 6px 8px; background: #F2F4F7; border-bottom: 1px solid var(--grid); }
.shot__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--grid); }
.shot--chat { border-radius: 14px; box-shadow: 0 10px 30px -10px rgba(31, 42, 68, .55); background: #1E1E1E; }
.casevis .shot { position: absolute; }
/* 兩支手機：一前一後 */
.casevis--phone .shot--1 { width: 150px; left: calc(50% - 150px); top: 24px; }
.casevis--phone .shot--2 { width: 150px; left: calc(50% + 4px); top: 60px; }
@media (min-width: 600px) {
  .casevis--phone .shot--1 { width: 168px; left: calc(50% - 172px); }
  .casevis--phone .shot--2 { width: 168px; left: calc(50% + 4px); }
}
/* 寬螢幕後台＋推播泡泡 */
.casevis--wide .shot--1 { left: 5%; right: 12%; top: 24px; }
.casevis--wide .shot--2 { width: min(56%, 240px); right: 5%; bottom: 18px; }

/* 案例頁 */
.casehead__inner { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .casehead__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.casehead__inner > * { min-width: 0; }
.casehead__visual .casevis { background: linear-gradient(160deg, #E3E8EE, #D4DBE4); border: 1px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); height: 360px; }
.casehead__ctas { margin-top: 8px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 24px; align-items: start; margin-top: 16px; }
.gallery__item { margin: 0; display: grid; gap: 8px; min-width: 0; }
.gallery__item--wide { grid-column: 1 / -1; }
.gallery__item--phone .shot { max-width: 260px; }
.gallery__item--phone .shot--phone { aspect-ratio: auto; }
.gallery__item--phone .shot--phone img { height: auto; }
.gallery__item figcaption { font-size: var(--fs-sm); color: var(--muted); }
.strengths--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.promises--list { flex-direction: column; gap: 10px; color: var(--paper); font-weight: 500; }
.promises--list li { position: relative; padding-left: 26px; }
.promises--list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; background: var(--hl); }
.hero__facts a { text-decoration: none; }

/* =====================================================================
   Demo 共用元件（app/static/js/demos/*）
   ===================================================================== */
.demo-band { background: #E3E8EE; }
.demo-band__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.demo-band__note { font-size: var(--fs-sm); color: var(--muted); margin: 0; background: var(--white); border: 1px dashed var(--grid); padding: 2px 10px; }
.demo-band__more { margin: 20px 0 0; }
.demo { background: var(--white); border: 1px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); min-height: 200px; }
.demo__loading { padding: 40px 20px; color: var(--muted); text-align: center; margin: 0; }
.dm__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--grid); background: #F7F8FA; }
.dm__bar .dm__title { font-weight: 700; margin: 0 auto 0 0; }
.dm__stage { padding: 16px; }
@media (min-width: 768px) { .dm__stage { padding: 24px; } }
.dm__status { margin: 0; padding: 10px 16px; border-top: 1px solid var(--grid); font-size: var(--fs-sm); color: var(--muted); min-height: 44px; }
.dm__status.is-ok { color: var(--ok); font-weight: 700; background: var(--ok-soft); }
.dm__grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .dm__grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.dm__label { font-size: var(--fs-sm); font-weight: 700; color: var(--muted); margin: 0 0 8px; letter-spacing: .05em; }
.dm__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--grid); }
.dm__scroll .sheet th, .dm__scroll .sheet td { border-top: 0; }
.dm__note { font-size: var(--fs-sm); color: var(--muted); margin: 8px 0 0; }
.dm__controls { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; margin-bottom: 16px; }
.dm__controls .field { min-width: 140px; }
.dm__metric { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 16px 0 0; font-weight: 700; }
.dm__metric span:first-child { background: var(--hl); padding: 0 .3em; }
.dm__sheets { display: grid; gap: 12px; }
@media (min-width: 700px) { .dm__sheets { grid-template-columns: repeat(3, 1fr); } }
.dm__sheets .sheet { font-size: 12px; }
/* grid 子元素預設 min-width:auto 會被寬表格撐開，手機上造成左右捲動 */
.dm__sheets > *, .dm__grid > *, .prod > *, .roi__grid > *, .hero__inner > * { min-width: 0; }
.dm__file { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding: 14px; border: 1.5px dashed var(--ink-2); background: #FAFBFC; }
.dm__file input[type="file"] { max-width: 100%; }
.dm__errors { list-style: none; margin-top: 12px; }
.dm__errors li { padding: 6px 10px; margin-bottom: 4px; background: var(--danger-soft); border-left: 3px solid var(--danger); font-size: var(--fs-sm); }
.is-new { animation: pop .45s ease; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.cell-fixed { background: var(--hl) !important; }

/* 手機外框 */
.phones { display: grid; gap: 24px; justify-content: center; }
@media (min-width: 760px) { .phones { grid-template-columns: repeat(2, minmax(0, 340px)); gap: 32px; } }
.phone__cap { text-align: center; font-weight: 700; margin: 0 0 8px; }
.phone__cap small { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-sm); }
.phone { width: min(100%, 340px); margin: 0 auto; border: 10px solid var(--ink); border-radius: 32px; background: var(--ink); overflow: hidden; box-shadow: var(--shadow); }
.phone__top { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--white); color: var(--ink); font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--grid); border-radius: 22px 22px 0 0; }
.phone__top small { font-weight: 400; color: var(--muted); margin-left: auto; font-size: 12px; }
.phone__avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--hl); border: 1px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.phone__screen { height: 540px; background: var(--white); display: flex; flex-direction: column; border-radius: 0 0 22px 22px; overflow: hidden; }
.phone__body { flex: 1; overflow-y: auto; padding: 14px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
@media (max-width: 380px) { .phone__screen { height: 500px; } }

/* 模擬 LINE／Telegram 對話 */
.chat { flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.chat--line { background: #C9D8EA; }
.chat--tg { background: #D7E3EC; }
.msg { display: flex; gap: 6px; max-width: 92%; align-items: flex-end; }
.msg--out { align-self: flex-end; flex-direction: row-reverse; }
.msg__bubble { background: var(--white); border-radius: 16px; padding: 7px 12px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.chat--line .msg--out .msg__bubble { background: #A6E57F; }
.chat--tg .msg--out .msg__bubble { background: #E1FFC7; }
.msg__time { font-size: 10px; color: #56617A; white-space: nowrap; }
.msg__av { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--hl); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; align-self: flex-start; }
.chat__day { align-self: center; font-size: 11px; background: rgba(31, 42, 68, .35); color: var(--white); padding: 1px 10px; border-radius: 999px; }
.chat__typing { align-self: flex-start; font-size: 12px; color: var(--muted); background: rgba(255,255,255,.7); padding: 2px 10px; border-radius: 999px; }

/* Flex 訊息卡片 */
.fx { width: 250px; max-width: 100%; background: var(--white); border-radius: 14px; overflow: hidden; font-size: 13px; line-height: 1.5; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.fx__head { background: var(--ink); color: var(--white); padding: 10px 14px; }
.fx__head b { display: block; font-size: 15px; }
.fx__head small { color: #C9D0DD; }
.fx__head--ok { background: var(--ok); }
.fx__head--hl { background: var(--hl); color: var(--ink); }
.fx__head--hl small { color: var(--ink-2); }
.fx__head--warn { background: var(--danger); }
.fx__body { padding: 10px 14px; }
.fx__row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.fx__row span:first-child { color: var(--muted); }
.fx__row--total { border-top: 1px solid var(--grid); margin-top: 4px; padding-top: 6px; font-weight: 700; font-size: 14px; }
.fx__btns { display: grid; gap: 6px; padding: 0 14px 12px; }
.fx__btns--2 { grid-template-columns: 1fr 1fr; }
.fx__btn { min-height: 38px; border: 1px solid var(--grid); background: var(--white); border-radius: 8px; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--ink); }
.fx__btn--primary { background: var(--line-green); border-color: var(--line-green); color: var(--white); }
.fx__btn[disabled] { opacity: .45; cursor: default; }
.fx__foot { padding: 8px 14px; background: #F5F7F9; color: var(--muted); font-size: 12px; }
.fx-bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; padding: 6px 0 0; }
.fx-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: var(--muted); height: 100%; justify-content: flex-end; }
.fx-bar i { display: block; width: 100%; height: var(--h, 10%); min-height: 2px; background: var(--grid); border-radius: 2px 2px 0 0; }
.fx-bar.is-today i { background: var(--ok); }

/* Quick Reply 與輸入列 */
.qr { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px; background: rgba(255,255,255,.6); border-top: 1px solid rgba(31,42,68,.1); scrollbar-width: none; }
.qr::-webkit-scrollbar { display: none; }
.qr__chip { flex: none; min-height: 34px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-green); background: var(--white); color: #04853A; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.chat--tg + .qr .qr__chip, .qr--tg .qr__chip { border-color: var(--tg-blue); color: #1A7FB5; }
.composer { display: flex; gap: 6px; padding: 8px; background: var(--white); border-top: 1px solid var(--grid); }
.composer input { min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--grid); font-size: 16px; }
.composer button { flex: none; min-height: 40px; min-width: 56px; border: 0; border-radius: 999px; background: var(--line-green); color: var(--white); font-weight: 700; cursor: pointer; }

/* Telegram inline 按鈕 */
.tgkb { display: grid; gap: 4px; margin-top: 4px; width: 260px; max-width: 100%; }
.tgkb__row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.tgkb__btn { min-height: 36px; border: 0; border-radius: 8px; background: rgba(42, 90, 130, .55); color: var(--white); font-size: 13px; font-weight: 700; cursor: pointer; padding: 4px 6px; }
.tgkb__btn:hover { background: rgba(42, 90, 130, .7); }
.tgkb__btn[disabled] { opacity: .5; cursor: default; }

/* 客人手機的點餐頁與預約頁 */
.shop__hero { background: var(--ink); color: var(--white); margin: -14px -14px 12px; padding: 14px; }
.shop__hero b { display: block; font-family: var(--serif); font-size: 18px; }
.shop__hero small { color: #C9D0DD; }
.menu { list-style: none; display: grid; gap: 8px; }
.menu__item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--grid); border-radius: 10px; font-size: 14px; }
.menu__item b { display: block; }
.menu__item small { color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--white); font-size: 18px; line-height: 1; cursor: pointer; }
.stepper output { min-width: 18px; text-align: center; font-weight: 700; }
.shop__row { display: flex; gap: 8px; align-items: center; margin: 12px 0; font-size: 14px; }
.shop__row select { min-height: 40px; padding: 6px 8px; font-size: 16px; }
.shop__total { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; margin: 8px 0 12px; }
.shop__state { text-align: center; padding: 28px 10px; }
.shop__state b { display: block; font-size: 20px; margin: 10px 0 4px; font-family: var(--serif); }
.shop__state .dot { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; background: var(--grid); }
.shop__state .dot.is-wait { background: var(--hl-soft); animation: pulse 1.4s ease-in-out infinite; }
.shop__state .dot.is-ok { background: var(--ok); color: var(--white); }
.shop__state .dot.is-no { background: var(--danger); color: var(--white); }
@keyframes pulse { 50% { transform: scale(1.08); } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 38px; padding: 4px 12px; border-radius: 8px; border: 1.5px solid var(--grid); background: var(--white); font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--hl); font-weight: 700; }
.chip[disabled] { text-decoration: line-through; color: var(--muted); background: #F2F4F7; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }

/* 帳單分帳 */
.split { display: grid; gap: 10px; }
.split__client { border: 1px solid var(--grid); padding: 10px 14px; background: var(--white); }
.split__client header { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; }
.split__bar { height: 10px; background: #E9ECF1; margin: 6px 0; }
.split__bar i { display: block; height: 100%; width: var(--w, 0%); background: var(--ink); transition: width .6s ease; }
.split__client.is-hl .split__bar i { background: var(--hl); border: 1px solid var(--ink); }
.split__client small { color: var(--muted); }

/* 廣告尺寸 */
.ads { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.ad { display: grid; gap: 6px; justify-items: start; }
.ad__frame { position: relative; overflow: hidden; background: var(--ad-bg, #1F2A44); color: var(--white); display: flex; flex-direction: column; justify-content: space-between; padding: 6%; border: 1px solid var(--ink); container-type: size; }
.ad__frame b { font-family: var(--serif); line-height: 1.25; font-size: clamp(9px, 11cqmin, 30px); }
.ad__frame .ad__cta { align-self: flex-start; background: var(--hl); color: var(--ink); font-weight: 700; font-size: clamp(7px, 6cqmin, 14px); padding: .2em .6em; border-radius: 3px; }
.ad__frame .ad__deco { position: absolute; right: -12%; bottom: -12%; width: 55cqmin; height: 55cqmin; border-radius: 50%; background: rgba(255, 225, 77, .35); }
.ad__frame.is-wide { flex-direction: row; align-items: center; }
.ad__frame.is-wide b { font-size: clamp(8px, 30cqh, 20px); }
.ad__frame.is-wide .ad__cta { align-self: center; font-size: clamp(7px, 22cqh, 13px); }
.ad__name { font-size: 12px; color: var(--muted); }
.ad__name b { color: var(--ink); }

/* 商品圖處理 */
.pipeline { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; counter-reset: pl; }
.pipeline li { counter-increment: pl; font-size: var(--fs-sm); padding: 4px 12px 4px 8px; border: 1px solid var(--grid); border-radius: 999px; color: var(--muted); background: var(--white); }
.pipeline li::before { content: counter(pl); display: inline-flex; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; align-items: center; justify-content: center; background: var(--grid); color: var(--white); font-size: 11px; font-weight: 700; }
.pipeline li.is-active { border-color: var(--ink); color: var(--ink); font-weight: 700; background: var(--hl-soft); }
.pipeline li.is-done { border-color: var(--ok); color: var(--ok); }
.pipeline li.is-done::before { background: var(--ok); content: "✓"; }
.prod { display: grid; gap: 16px; }
@media (min-width: 760px) { .prod { grid-template-columns: 1fr 1.4fr; } }
.prod canvas { width: 100%; height: auto; border: 1px solid var(--grid); background: #fff; }
.prod__outs { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.prod__out { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.prod__out canvas { width: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .dock, .footer, .demo-band { display: none; }
  body { background: #fff; }
}
