/* ============================================================
   iTP 標識科技 — 樣式表
   設計原則：工業 B2B、資訊密度高、留白充足、不用裝飾性特效
   ============================================================ */

:root {
  --ink: #0d1a2b;
  --ink-2: #46536b;
  --ink-3: #8b95a5;
  --line: #e4e7ec;
  --line-2: #eef0f3;
  --bg: #ffffff;
  --bg-2: #f6f7f9;
  --accent: #1552d0;
  --accent-2: #0e3ea6;
  --accent-soft: #eaf0fe;
  --lime: #93a800;
  --lime-soft: #f3f6dc;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(13, 26, 43, .04), 0 8px 24px rgba(13, 26, 43, .05);
  --font: system-ui, -apple-system, "PingFang TC", "PingFang SC", "Noto Sans TC",
          "Hiragino Sans GB", "Microsoft JhengHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  --max: 1180px;
}

* { box-sizing: border-box; }

/* hidden 屬性要能蓋過 .field{display:grid} 等規則 */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 非預設語系：先隱藏，等文字補丁套用後再顯示，避免閃一下預設語言 */
html.i18n-swap body { visibility: hidden; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }

/* ---------- 排版元件 ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: var(--accent); opacity: .6;
}

.h2 { font-size: clamp(26px, 3.2vw, 34px); margin: 16px 0 14px; }
.lede { font-size: 16px; color: var(--ink-2); max-width: 62ch; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 44px; }
.sec-head .aside { flex: 0 0 auto; font-size: 13.5px; color: var(--ink-3); max-width: 30ch; text-align: right; }

/* ---------- 導覽 ---------- */

.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(13, 26, 43, .02); }
.nav__inner { display: flex; align-items: center; gap: 34px; height: 68px; }

.logo { display: flex; align-items: center; flex: 0 0 auto; }
/* 官方 logo 原圖（標記＋顯鴻科技＋Xianhong Science），依高度等比縮放 */
.logo__img {
  display: block;
  height: 40px;
  width: auto;
  max-width: none;
  flex: 0 0 auto;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.nav__links { display: flex; gap: 26px; margin-left: 8px; }
.nav__links a { font-size: 14px; color: var(--ink-2); transition: color .18s; position: relative; }
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1.5px;
  background: var(--accent); transition: right .22s ease;
}
.nav__links a:hover::after { right: 0; }

.nav__cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 8px;
  font-size: 14px; font-weight: 500; font-family: inherit;
  border: 1px solid transparent; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .12s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: #c9cfd8; background: var(--bg-2); }
.btn--sm { height: 36px; padding: 0 15px; font-size: 13px; }
.btn--block { width: 100%; }

.nav__burger {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav__burger span { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; }
.nav__burger span::before, .nav__burger span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink);
}
.nav__burger span::before { top: -5px; }
.nav__burger span::after { top: 5px; }

/* ---------- Hero ---------- */

.hero { padding: 76px 0 84px; position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }

.hero h1, .hero h2 {
  font-size: clamp(34px, 4.6vw, 54px); line-height: 1.14; letter-spacing: -.025em;
  margin: 20px 0 22px;
}
.hero h1 em, .hero h2 em { font-style: normal; color: var(--accent); }
.hero__sub { font-size: 16.5px; color: var(--ink-2); max-width: 46ch; }
.hero__actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.hero__meta {
  display: flex; gap: 34px; margin-top: 44px; padding-top: 26px;
  border-top: 1px solid var(--line-2); flex-wrap: wrap;
}
.hero__meta div { display: flex; flex-direction: column; gap: 2px; }
.hero__meta dt { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; }
.hero__meta dd { margin: 0; font-size: 15px; font-weight: 500; }

/* 右側技術面板 */
.panel {
  border: 1px solid var(--line); border-radius: 18px; background: #fff;
  box-shadow: var(--shadow); overflow: hidden;
}
.panel__head {
  padding: 15px 20px; border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, #fbfcfd, #fff);
}
.panel__head span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; }
.panel__body { padding: 6px 0; }
.tech-row {
  display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: center;
  padding: 15px 20px; border-bottom: 1px solid var(--line-2);
}
.tech-row:last-child { border-bottom: 0; }
.tech-row__name { font-size: 14.5px; font-weight: 600; letter-spacing: .02em; }
.tech-row__desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.tech-row__dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--cij { background: var(--accent); }
.dot--tij { background: var(--lime); }
.dot--dod { background: var(--ink); }
.panel__foot {
  padding: 13px 20px; background: var(--bg-2); border-top: 1px solid var(--line-2);
  font-size: 12px; color: var(--ink-2); display: flex; flex-wrap: wrap;
  align-items: center; gap: 3px 12px; line-height: 1.5;
}
.panel__foot b { font-weight: 600; color: var(--ink); }

/* ---------- 技術卡片 ---------- */

.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tech-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.tech-card:hover { border-color: #cfd6e0; box-shadow: var(--shadow); transform: translateY(-2px); }
.tech-card__media {
  position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: #0d1a2b;
}
.tech-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s cubic-bezier(.2, .7, .3, 1);
}
.tech-card:hover .tech-card__media img { transform: scale(1.06); }
.tech-card__media .tech-card__badge {
  position: absolute; left: 14px; bottom: 13px;
  background: #fff !important; box-shadow: 0 1px 10px rgba(13, 26, 43, .22);
}
.tech-card__inner { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.tech-card__badge {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; font-weight: 600;
  padding: 3px 9px; border-radius: 5px;
}
.badge--cij { background: var(--accent-soft); color: var(--accent-2); }
.badge--tij { background: var(--lime-soft); color: #5f6d00; }
.badge--dod { background: #eceff3; color: var(--ink); }
.tech-card h3 { font-size: 19px; margin-bottom: 4px; }
.tech-card__en { font-size: 12px; color: var(--ink-3); letter-spacing: .04em; margin-bottom: 14px; }
.tech-card p { font-size: 14px; color: var(--ink-2); }
.tech-card__list { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); display: grid; gap: 9px; }
.tech-card__list li { font-size: 13px; color: var(--ink-2); padding-left: 16px; position: relative; }
.tech-card__list li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent); opacity: .45;
}
.tech-card__link {
  margin-top: 22px; font-size: 13.5px; color: var(--accent); font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.tech-card__link svg { transition: transform .2s; }
.tech-card:hover .tech-card__link svg { transform: translateX(3px); }

/* ---------- 對比表 ---------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.cmp { width: 100%; border-collapse: collapse; min-width: 720px; }
table.cmp th, table.cmp td { text-align: left; padding: 15px 20px; font-size: 13.5px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.cmp thead th {
  background: var(--bg-2); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500; border-bottom: 1px solid var(--line);
}
table.cmp tbody th { font-weight: 500; color: var(--ink); width: 148px; background: #fcfcfd; }
table.cmp tbody tr:last-child th, table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp td { color: var(--ink-2); }
table.cmp .hl { color: var(--ink); font-weight: 500; }

/* ---------- 產品卡 ---------- */

.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.prod {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; display: flex; flex-direction: column;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.prod:hover { box-shadow: var(--shadow); border-color: #cfd6e0; transform: translateY(-2px); }
.prod__visual {
  aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--line-2);
  position: relative; overflow: hidden; display: grid; place-items: center;
}
.prod__visual img {
  width: 100%; height: 100%; object-fit: contain; display: block; padding: 14px;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.prod:hover .prod__visual img { transform: scale(1.04); }
.prod__cap {
  position: absolute; right: 10px; bottom: 10px;
  padding: 3px 8px; border-radius: 4px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .05em;
  color: var(--ink-2); background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line); backdrop-filter: blur(4px);
}
.prod__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.prod h3 { font-size: 17px; margin-bottom: 6px; }
.prod__tag { font-size: 12.5px; color: var(--ink-3); margin-bottom: 12px; }
.prod p { font-size: 13.5px; color: var(--ink-2); }
.prod__specs { margin: 16px 0 20px; display: grid; gap: 7px; }
.prod__specs div { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding-bottom: 6px; border-bottom: 1px dashed var(--line-2); }
.prod__specs dt { color: var(--ink-3); }
.prod__specs dd { margin: 0; color: var(--ink); text-align: right; }
.prod__more { margin-top: auto; }

/* ---------- 耗材 ---------- */

.cons-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.cons-photo {
  background: #0d1a2b; border-radius: var(--radius);
  overflow: hidden; position: relative; margin: 0 !important;
}
.cons-photo > div { width: 100%; height: 100%; position: relative; }
.cons-photo img {
  width: 100%; height: 100%; max-width: none; object-fit: cover; display: block;
  aspect-ratio: 4 / 5;
}
.cons-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 40px 20px 16px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .08em; color: rgba(255,255,255,.82); text-align: left;
  background: linear-gradient(180deg, rgba(13,26,43,0), rgba(13,26,43,.78));
}
.cons-list { display: grid; gap: 2px; }
.cons-item { padding: 20px 0; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: 46px 1fr; gap: 16px; }
.cons-item:last-child { border-bottom: 0; }
.cons-item__idx { font-family: var(--mono); font-size: 12px; color: var(--ink-3); padding-top: 3px; }
.cons-item h4 { font-size: 15.5px; margin-bottom: 5px; }
.cons-item p { font-size: 13.5px; color: var(--ink-2); }

/* ---------- 應用 ---------- */

.apps { display: flex; flex-wrap: wrap; gap: 10px; }
.app {
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 17px;
  font-size: 13.5px; color: var(--ink-2); background: #fff;
  transition: border-color .18s, color .18s, background .18s;
}
.app:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ---------- 研發能力 ---------- */

.rd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rd { background: #fff; padding: 28px 26px; }
/* 奇數項目時，最後一張橫跨整行（例如 5 項） */
.rd--wide { grid-column: 1 / -1; }
.rd__num { font-family: var(--mono); font-size: 11.5px; color: var(--accent); letter-spacing: .08em; }
.rd h4 { font-size: 16px; margin: 10px 0 8px; }
.rd p { font-size: 13.5px; color: var(--ink-2); }

/* ---------- 詢價 / CTA ---------- */

.cta {
  background: var(--ink); color: #fff; border-radius: 20px;
  padding: 52px 52px; display: grid; grid-template-columns: 1fr .92fr; gap: 56px;
  align-items: start;
}
.cta > div:first-child { padding-top: 4px; }
.cta h2 { font-size: clamp(24px, 2.8vw, 30px); margin-bottom: 14px; }
.cta p { color: rgba(255, 255, 255, .68); font-size: 14.5px; max-width: 42ch; }
.cta .eyebrow { color: rgba(255,255,255,.5); }
.cta .eyebrow::before { background: rgba(255,255,255,.4); }
/* 09 墨水定制：與 08 相鄰，用略淺的藍黑區分層級 */
.section--ink { padding-top: 0; }
.cta--ink {
  background: linear-gradient(158deg, #16283f 0%, #123049 55%, #10344a 100%);
  border: 1px solid rgba(255, 255, 255, .07);
}
.cta--ink .eyebrow { color: rgba(180, 214, 255, .72); }
.cta--ink .eyebrow::before { background: rgba(180, 214, 255, .55); }

.form { display: grid; gap: 12px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; color: rgba(255, 255, 255, .55); letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px; padding: 11px 13px; color: #fff; font-size: 13.5px; font-family: inherit;
  outline: none; transition: border-color .18s, background .18s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.32); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.1); }
.field textarea { resize: vertical; min-height: 84px; }

/* 多選 chips（深色底） */
.field label .hint {
  margin-left: 7px; font-size: 10.5px; letter-spacing: .04em;
  color: rgba(255, 255, 255, .34);
  padding: 1px 6px; border-radius: 4px; background: rgba(255, 255, 255, .07);
}
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input {
  position: absolute; opacity: 0; width: 0; height: 0; margin: 0;
  pointer-events: none;
}
.chip span {
  display: inline-block; padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
  font-size: 12.5px; line-height: 1.25; color: rgba(255, 255, 255, .74);
  transition: background .16s, border-color .16s, color .16s, transform .16s;
  user-select: none;
}
.chip:hover span { border-color: rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .09); }
.chip input:checked + span {
  background: #fff; border-color: #fff; color: var(--ink); font-weight: 500;
}
.chip input:checked + span::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px;
  border-radius: 50%; background: var(--accent); vertical-align: middle;
}
.chip input:focus-visible + span {
  outline: 2px solid rgba(255, 255, 255, .55); outline-offset: 2px;
}

@media (max-width: 760px) {
  .chip span { padding: 10px 14px; font-size: 13px; }
  .chips { gap: 8px; }
}
.field select option { background: var(--ink); color: #fff; }

/* 09 性能要求：與材質一致用 chips；選「其他」時補一個說明欄 */
.field--perf { gap: 8px; }
.field--perf input[name="perf_other"] { margin-top: 2px; }

.form .btn--primary { background: #fff; color: var(--ink); margin-top: 4px; }
.form .btn--primary:hover { background: #e8ecf2; }
.form__note { font-size: 11.5px; color: rgba(255, 255, 255, .42); line-height: 1.6; }
.form__ok {
  display: none; margin-top: 4px; padding: 12px 14px; border-radius: 8px;
  background: rgba(147, 168, 0, .16); border: 1px solid rgba(147, 168, 0, .4);
  font-size: 12.5px; color: #dbe98a;
}
.form__ok.show { display: block; }
/* 送出失敗提示（深色卡片上） */
.form__err {
  display: none; margin-top: 2px; padding: 10px 13px; border-radius: 8px;
  background: rgba(224, 120, 120, .14); border: 1px solid rgba(224, 120, 120, .45);
  font-size: 12.5px; line-height: 1.6; color: #ffc9c9;
}
.form__err.show { display: block; }
/* 後端寄不出時的備援：改用電郵 */
.form__mailto {
  display: none; margin-top: 8px; font-size: 13px; font-weight: 600;
  color: #bcd0ff; border-bottom: 1px solid rgba(188, 208, 255, .45);
  align-self: flex-start;
}
.form__mailto.show { display: inline-block; }
.form__mailto:hover { color: #fff; border-bottom-color: #fff; }
/* 蜜罐：正常客人看不到，機器人會填 */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- 頁尾 ---------- */

.footer { border-top: 1px solid var(--line); padding: 54px 0 34px; margin-top: 92px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer h5 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; font-weight: 500; }
.footer li { margin-bottom: 9px; }
.footer a, .footer p { font-size: 13.5px; color: var(--ink-2); }
.footer a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-2);
  display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap;
}
.footer__brand p { max-width: 30ch; margin-top: 12px; }

/* ---------- 詳情頁 ---------- */

.page-hero { padding: 60px 0 56px; border-bottom: 1px solid var(--line-2); background: var(--bg-2); }
.crumb { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-3); margin-bottom: 22px; }
.crumb a:hover { color: var(--accent); }
.page-hero h1 { font-size: clamp(30px, 4vw, 42px); margin: 14px 0 16px; }
/* 標題右側的小字說明（如「只供示範用途」） */
.page-hero__row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.hero-note { font-size: 11.5px; color: var(--ink-3); letter-spacing: .02em; }
.page-hero .lede { font-size: 16px; }
.page-hero__meta { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.page-hero__meta div { font-size: 13px; color: var(--ink-2); }
.page-hero__meta b { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-3); font-weight: 400; text-transform: uppercase; margin-bottom: 3px; }

.detail-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
.prose h2 { font-size: 22px; margin: 0 0 14px; }
.prose h3 { font-size: 16px; margin: 34px 0 10px; }
.prose p { color: var(--ink-2); margin-bottom: 14px; }
.prose ul { display: grid; gap: 10px; margin: 4px 0 18px; }
.prose ul li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .5; }

.spec-box { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; position: sticky; top: 92px; }
.spec-box__head { padding: 15px 20px; border-bottom: 1px solid var(--line-2); background: var(--bg-2); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.spec-box dl { margin: 0; padding: 6px 20px 18px; }
.spec-box dl div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); font-size: 13px; }
.spec-box dl div:last-child { border-bottom: 0; }
.spec-box dt { color: var(--ink-3); }
.spec-box dd { margin: 0; text-align: right; color: var(--ink); font-weight: 500; }
.spec-box__foot { padding: 16px 20px; border-top: 1px solid var(--line-2); background: #fcfcfd; display: grid; gap: 9px; }

.callout {
  border-left: 2px solid var(--accent); background: var(--accent-soft);
  padding: 16px 20px; border-radius: 0 10px 10px 0; font-size: 13.5px; color: var(--ink-2); margin: 22px 0;
}
.callout b { color: var(--ink); }

/* ---------- 動效 ---------- */

.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .65s cubic-bezier(.2,.7,.3,1), transform .65s cubic-bezier(.2,.7,.3,1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .tech-card:hover, .prod:hover { transform: none; }
}

/* ---------- 響應式 ---------- */

@media (max-width: 1000px) {
  .hero__grid, .cons-grid, .cta, .detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 52px 0 60px; }
  .tech-grid, .prod-grid { grid-template-columns: 1fr; }
  .rd-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .spec-box { position: static; }
  .cta { padding: 36px 26px; border-radius: 16px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .sec-head .aside { text-align: left; max-width: 46ch; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .nav__inner { gap: 10px; }
  .logo__img { height: 32px; }
  .lang select { font-size: 11.5px; padding: 0 22px 0 8px; background-position: right 6px center; }
  .nav__cta .btn--primary { display: none; }
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__cta { gap: 8px; }
  .hero__meta { gap: 22px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; }

  .nav.open .nav__links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; left: 0; right: 0; top: 68px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px; box-shadow: 0 12px 24px rgba(13,26,43,.06);
  }
  .nav.open .nav__links a { padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
}

/* ---------- 詳情頁補充 ---------- */

.page-hero .tech-card__badge { display: inline-block; margin-bottom: 14px; }
.prose > h2:first-child { margin-top: 0; }

.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rel-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.rel-card:hover { border-color: #cfd6e0; box-shadow: var(--shadow); transform: translateY(-2px); }
.rel-card .tech-card__badge { align-self: flex-start; }
.rel-card h3 { font-size: 16px; }
.rel-card p { font-size: 13px; color: var(--ink-2); }
.rel-card__more { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--accent); font-weight: 500; }

@media (max-width: 1000px) { .rel-grid { grid-template-columns: 1fr; } }

.prose-figure { margin: 30px 0 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); display: grid; place-items: center; }
.prose-figure img { width: 100%; max-width: 320px; }
.prose-figure figcaption { margin-top: 12px; font-size: 11.5px; color: var(--ink-3); }

/* ============================================================
   多語言 / 商店 / 結帳
   ============================================================ */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.lang { display: flex; align-items: center; }
.lang select {
  appearance: none; -webkit-appearance: none;
  height: 32px; padding: 0 26px 0 11px; border-radius: 7px;
  border: 1px solid var(--line); background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 4l3 3 3-3' fill='none' stroke='%238b95a5' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 9px center;
  font-family: inherit; font-size: 12.5px; color: var(--ink-2); cursor: pointer;
}
.lang select:hover { border-color: #c9cfd8; }
.lang select:focus { outline: none; border-color: var(--accent); }

.cart-link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 11px; border-radius: 7px;
  border: 1px solid var(--line); background: #fff;
  font-size: 12.5px; color: var(--ink-2); transition: border-color .18s, color .18s;
}
.cart-link:hover { border-color: #c9cfd8; color: var(--ink); }
.cart-count {
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent-2);
  font-size: 10.5px; font-weight: 600; display: inline-grid; place-items: center;
}

.notice {
  margin-top: 20px; display: inline-block; padding: 8px 14px; border-radius: 8px;
  background: #fff8e6; border: 1px solid #f0dfae; color: #7a5c12; font-size: 12.5px;
}

/* ---------- 商店 ---------- */

.shop-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* 分類快速跳轉 */
.shop-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 4px; }
.shop-tab {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 13px; color: var(--ink-2); transition: border-color .16s, color .16s, background .16s;
}
.shop-tab:hover { border-color: var(--accent); color: var(--accent); background: #f7faff; }

/* 分類區塊 */
.shop-cat { scroll-margin-top: 90px; }
.shop-cat + .shop-cat { margin-top: 46px; }
.shop-cat__head {
  display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: center;
  padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line);
}
.shop-cat__img {
  width: 112px; height: 112px; object-fit: cover; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line-2);
}
.shop-cat__idx {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--accent);
}
.shop-cat__head h2 { font-size: 20px; margin: 5px 0 7px; }
.shop-cat__head p { font-size: 13.5px; color: var(--ink-2); max-width: 52ch; }

/* 墨盒顏色 */
.variant { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.variant__label { font-size: 12px; color: var(--ink-3); letter-spacing: .02em; }
.swatches { display: flex; gap: 9px; }
.swatch {
  width: 24px; height: 24px; padding: 0; border-radius: 50%; cursor: pointer;
  background: var(--sw); border: 1px solid rgba(13, 26, 43, .2);
  transition: box-shadow .16s, transform .12s;
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.swatch:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* 透明隱形色：用斜線底紋表示「看得到墨、看不到顏色」 */
.swatch[data-clear] {
  background:
    repeating-linear-gradient(135deg, transparent 0 3px, rgba(13, 26, 43, .22) 3px 4px),
    var(--sw);
  border-style: dashed;
  border-color: rgba(13, 26, 43, .4);
}

/* 墨盒類型標籤：溶劑型 / 水性 */
.ink-type {
  display: inline-block; margin-left: 8px; padding: 1px 8px;
  border-radius: 999px; background: #eef4ff; color: var(--accent);
  font-size: 11.5px; font-weight: 500; vertical-align: 1px; white-space: nowrap;
}
.variant__hint {
  margin: 2px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--ink-3);
}

.shop-item {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 22px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color .2s, box-shadow .2s;
}
.shop-item:hover { border-color: #cfd6e0; box-shadow: var(--shadow); }
.shop-item__top { display: flex; justify-content: space-between; align-items: center; }
.sku { font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; color: var(--ink-3); }
.weight { font-size: 11px; color: var(--ink-3); }
.shop-item h3 { font-size: 15.5px; margin-top: 2px; }
.shop-item p { font-size: 13px; color: var(--ink-2); }
.shop-item__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.shop-item__foot .btn { margin-left: auto; }
.price { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }

.shop-note { margin-top: 22px; font-size: 13px; color: var(--ink-2); }
.shop-note a { color: var(--accent); font-weight: 500; }

.cart, .order-summary {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 22px; position: sticky; top: 88px;
}
.cart h2, .order-summary h2 { font-size: 15px; margin-bottom: 14px; }
.cart__items { display: grid; gap: 2px; margin-bottom: 14px; }
.cart-line {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13px;
}
.cart-line:last-child { border-bottom: 0; }
.cart-line__name { color: var(--ink); }
.cart-line__meta { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-3); }
.cart-line__qty { display: inline-flex; align-items: center; gap: 6px; }
.cart-line__qty button {
  width: 20px; height: 20px; border: 1px solid var(--line); background: #fff; border-radius: 5px;
  cursor: pointer; color: var(--ink-2); font-size: 12px; line-height: 1; padding: 0;
}
.cart-line__qty button:hover { border-color: #c9cfd8; }
.cart-line__remove { background: none; border: 0; color: var(--ink-3); font-size: 11px; cursor: pointer; text-decoration: underline; padding: 0; }
.cart-line__remove:hover { color: var(--red); }
.cart__sum { padding: 14px 0 16px; border-top: 1px solid var(--line); display: grid; gap: 7px; font-size: 13.5px; }
.cart__sum div { display: flex; justify-content: space-between; }
.cart__sum b { font-size: 16px; }
.cart__sum .muted { color: var(--ink-3); font-size: 12px; }
.cart__note { margin-top: 12px; font-size: 11.5px; color: var(--ink-3); text-align: center; }

/* ---------- 結帳 ---------- */

.page-hero--slim { padding: 44px 0 40px; }
.checkout-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }

.checkout-form { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 28px; }
.checkout-form h2 { font-size: 14px; letter-spacing: .02em; color: var(--ink-2); margin: 0 0 16px; }
.checkout-form h2:not(:first-child) { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.checkout-form .form__row { margin-bottom: 0; }
.checkout-form .field { margin-bottom: 14px; }
.checkout-form .field label { color: var(--ink-3); font-size: 11.5px; }
.checkout-form .field input {
  background: #fff; border: 1px solid var(--line); color: var(--ink); height: 42px;
  border-radius: 8px; padding: 0 13px; font-size: 14px; width: 100%;
}
.checkout-form .field input:focus { border-color: var(--accent); background: #fff; }

.pay-options { display: grid; gap: 10px; }
.pay-option {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
  transition: border-color .18s, background .18s;
}
.pay-option:hover { border-color: #c9cfd8; }
.pay-option input { margin-top: 3px; accent-color: var(--accent); }
.pay-option__body { display: grid; gap: 2px; }
.pay-option__body b { font-size: 14px; font-weight: 500; }
.pay-option__body span { font-size: 12px; color: var(--ink-3); }
.pay-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.checkout-error {
  display: none; margin-top: 16px; padding: 10px 14px; border-radius: 8px;
  background: var(--red-soft, #fcebeb); color: #a32d2d; font-size: 12.5px;
}
.checkout-error.show { display: block; }
#payBtn { margin-top: 18px; }

.order-result {
  margin-top: 40px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 32px; max-width: 620px;
}
.order-result h2 { font-size: 20px; margin-bottom: 10px; }
.order-result > p { color: var(--ink-2); font-size: 14px; margin-bottom: 20px; }
.order-result__dl { display: grid; gap: 0; margin: 0 0 22px; }
.order-result__dl div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line-2); font-size: 13px; }
.order-result__dl dt { color: var(--ink-3); }
.order-result__dl dd { margin: 0; font-family: var(--mono); font-size: 12.5px; }

.qr-pane { margin-bottom: 20px; padding: 18px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); }
.qr-pane code { font-family: var(--mono); font-size: 12px; background: #fff; padding: 3px 6px; border-radius: 5px; border: 1px solid var(--line); }

@media (max-width: 1000px) {
  .shop-layout, .checkout-grid { grid-template-columns: 1fr; gap: 28px; }
  .cart, .order-summary { position: static; }
}
@media (max-width: 760px) {
  .shop-grid { grid-template-columns: 1fr; }
  .nav__quote { display: none; }
  .cart-link span:not(.cart-count) { display: none; }
  .checkout-form { padding: 20px; }
}

.only-mobile { display: none; }
/* 按鈕在 <=1080 收起，改由選單內的文字連結接手，避免 761–1080 出現空窗 */
@media (max-width: 1080px) { .only-mobile { display: block; } }

/* 中等寬度：收窄間距，維持單行橫向 */
@media (max-width: 1180px) {
  .nav__links { gap: 17px; margin-left: 2px; }
  .nav__links a { font-size: 13px; }
  .nav__cta { gap: 9px; }
  /* 兩顆按鈕並排時收窄，避免英文版把導覽擠出邊界 */
  .nav__inner { gap: 20px; }
  .nav__cta { gap: 6px; }
  .nav__cta .btn--sm { padding: 0 11px; font-size: 12.5px; }
  .nav__ink { padding: 0 9px; }
}

/* 窄屏：改為換行顯示，所有項目都看得到（不再靠橫向滑動，避免漏掉後段連結） */
@media (max-width: 1080px) {
  .nav__burger { display: none; }
  .nav__inner { gap: 10px; }
  .nav__links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px 15px;
    margin-left: 0;
  }
  .nav__links a { white-space: nowrap; }
  .nav__links a::after { display: none; }
  .nav__cta { gap: 7px; }
  /* 兩顆按鈕在窄屏收起，改由選單內的「取得方案報價」「墨水定制化服務」文字連結接手 */
  .nav__ink { display: none; }
}

/* 手機與小平板：兩行——上排品牌與操作，下排仍是橫向清單（可滑動） */
@media (max-width: 1000px) {
  html { scroll-padding-top: 112px; }
  .nav__inner {
    flex-wrap: wrap;
    height: auto;
    min-height: 58px;
    column-gap: 8px;
    row-gap: 0;
  }
  .logo { min-height: 58px; }
  .nav__cta { min-height: 58px; }
  .nav__links {
    order: 3;
    flex: 1 0 100%;
    gap: 16px;
    margin: 0;
    padding: 9px 0 9px;
    border-top: 1px solid var(--line-2);
  }
  .nav__links a { font-size: 12.5px; }
  .logo__img { height: 30px; }
  .cart-link span { display: none; }
  .cart-link { gap: 3px; }
  .nav__cta .btn--primary { padding: 0 11px; font-size: 12px; height: 32px; }
  .lang select { padding: 0 18px 0 7px; font-size: 11px; }
}

/* 超窄屏：導覽清單改為折行，寧可多一行也不要把後兩項藏在滑動區外 */
@media (max-width: 520px) {
  .nav__links {
    flex-wrap: wrap;
    overflow-x: visible;
    row-gap: 7px;
    gap: 7px 16px;
    padding: 9px 0 11px;
  }
  .nav__links a { font-size: 12px; }
}

/* ============================================================
   產業應用 — 六大產業實景卡
   ============================================================ */

.ind-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.ind {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .28s cubic-bezier(.2, .7, .3, 1), box-shadow .28s, border-color .28s;
}

.ind:hover {
  transform: translateY(-3px);
  border-color: #d3d9e2;
  box-shadow: var(--shadow);
}

.ind__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-2);
}

.ind__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .3, 1);
}

.ind:hover .ind__media img { transform: scale(1.05); }

.ind__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 26, 43, .30) 0%, rgba(13, 26, 43, .04) 45%, rgba(13, 26, 43, 0) 70%);
  pointer-events: none;
}

.ind__num {
  position: absolute;
  top: 13px;
  left: 15px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(13, 26, 43, .55);
}

.ind__body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
  padding: 20px 22px 20px;
}

.ind__body h3 {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 17.5px;
}

.ind__body h3 span {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ind__body > p {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--ink-2);
}

.ind__list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ind__list li {
  position: relative;
  padding-left: 15px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

.ind__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .45;
}

.ind__rec {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
}

.ind__rec span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.ind__rec b {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.4;
}

@media (max-width: 1040px) {
  .ind-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (max-width: 660px) {
  .ind-grid { grid-template-columns: 1fr; gap: 16px; }
  .ind__body { padding: 18px 18px 18px; }
  .ind__body h3 { font-size: 16.5px; }
}

.ind-credit {
  margin-top: 20px;
  font-size: 11.5px;
  color: var(--ink-3);
  text-align: right;
}

@media (max-width: 660px) {
  .ind-credit { text-align: left; margin-top: 14px; }
}

/* ============================================================
   詳情頁：機型展示 + 適用場景
   ============================================================ */

.model {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 44px;
  align-items: start;
}

/* 三欄：圖 + 圖 + 文字（有 variants 時） */
.model--3 {
  grid-template-columns: 1fr 1fr 1.02fr;
  gap: 22px;
  align-items: stretch;
}
.model--3 .model__body { align-self: start; }

/* 統一機型卡：白底、等高、圖說在下 */
.mcard {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.mcard__img {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #fff;
}

.mcard__img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.mcard figcaption {
  padding: 9px 13px;
  border-top: 1px solid var(--line-2);
  background: #fbfcfd;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .05em;
  line-height: 1.45;
  color: var(--ink-3);
}

/* 三欄時給圖卡一個最小高度，避免短圖塌陷 */
.model--3 .mcard__img { min-height: 300px; }

/* 兩欄（單一主圖）時，主圖卡高度貼合內容 */
.model:not(.model--3) .mcard__img { padding: 22px; }

.model__body .lede { margin-bottom: 20px; }

.model__points {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.model__points li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.model__points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
  transform: rotate(45deg);
  opacity: .5;
}

.model__note {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.65;
  margin-bottom: 22px;
  padding-left: 12px;
  border-left: 2px solid var(--line);
}

.appcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.appcard {
  position: relative;
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.appcard img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}

.appcard:hover img { transform: scale(1.05); }

.appcard figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 13px 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .9);
  background: linear-gradient(180deg, rgba(13, 26, 43, 0), rgba(13, 26, 43, .78));
}

.appcards--single {
  grid-template-columns: minmax(0, 640px);
  justify-content: center;
}
/* 兩張圖時改為兩欄，避免右側留空 */
.appcards--two { grid-template-columns: repeat(2, 1fr); }
.appcards--single .appcard img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1080px) {
  .model { grid-template-columns: 1fr; gap: 24px; }
  .model--3 { grid-template-columns: 1fr 1fr; align-items: start; }
  .model--3 .model__body { grid-column: 1 / -1; }
  .model--3 .mcard__img { min-height: 220px; }
  .mcard__img { padding: 12px; }
  .appcards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .model--3 { grid-template-columns: 1fr; }
  .model--3 .mcard__img { min-height: 200px; }
}

@media (max-width: 640px) {
  .appcards { grid-template-columns: 1fr; }
  .appcard img { aspect-ratio: 3 / 2; }
}

/* ============================================================
   首屏：圖片優先 + 應用圖庫
   ============================================================ */

.hero--photo { padding: 64px 0 72px; }
.hero--photo .hero__grid { grid-template-columns: .92fr 1.08fr; gap: 52px; align-items: center; }
.hero__copy { min-width: 0; }
.hero--photo h1, .hero--photo h2 { margin: 18px 0 20px; }

/* 圖片拼貼 */
.hero__mosaic { display: grid; gap: 10px; min-width: 0; }

.mtile {
  margin: 0;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #101820;
  box-shadow: 0 14px 34px rgba(13, 26, 43, .14);
}

.mtile img { width: 100%; height: 100%; object-fit: cover; display: block; }

.mtile--lead { aspect-ratio: 16 / 9.8; }

.mtile--lead::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(10, 16, 24, .88) 0%, rgba(10, 16, 24, .62) 42%, rgba(10, 16, 24, .12) 78%);
  pointer-events: none;
}

.mtile--lead figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 24px 20px;
  display: flex; flex-direction: column; gap: 5px;
  z-index: 2;
}

.mtile__kicker {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255, 255, 255, .58);
}

.mtile__line {
  font-size: 15px; line-height: 1.5; color: #fff; font-weight: 500;
  letter-spacing: .01em;
}

.mtile-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mtile-row .mtile { aspect-ratio: 16 / 10; background: #fff; }
.mtile-row .mtile img { object-fit: contain; padding: 10px; }

.mtile__chip {
  position: absolute; left: 9px; bottom: 9px;
  padding: 3px 8px; border-radius: 4px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .06em;
  color: var(--ink-2); background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(13, 26, 43, .08);
}

/* 應用圖庫 */
.strip { padding: 8px 0 84px; }

.gal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.gal__item {
  margin: 0;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  /* 16:9 貼近產線實拍的多數比例，cover 裁切最少 */
  aspect-ratio: 16 / 9;
}

.gal__item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}

.gal__item:hover img { transform: scale(1.055); }

.gal__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 13px 11px;
  display: flex; flex-direction: column; gap: 3px;
  background: linear-gradient(180deg, rgba(10, 16, 24, 0), rgba(10, 16, 24, .8));
}

.gal__tag {
  font-family: var(--mono); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255, 255, 255, .6);
}

.gal__cap { font-size: 12.5px; line-height: 1.45; color: #fff; font-weight: 500; }

@media (max-width: 1080px) {
  .hero--photo .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero--photo { padding: 44px 0 56px; }
  /* 首圖來源僅 492px 寬，限制顯示尺寸避免放大模糊 */
  .hero__mosaic { max-width: 720px; }
  .gal { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .gal { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mtile--lead { aspect-ratio: 16 / 10.5; }
  .mtile--lead figcaption { padding: 16px 16px 14px; }
  .mtile__line { font-size: 13px; }
  .strip { padding-bottom: 60px; }
}

@media (max-width: 760px) {
  /* 手機雙欄時格子窄，改用 3:2 讓主體不被壓扁；圖說同時收緊 */
  .gal__item { aspect-ratio: 3 / 2; }
  .gal__item figcaption { padding: 18px 10px 8px; gap: 2px; }
  .gal__tag { font-size: 8px; letter-spacing: .08em; }
  .gal__cap { font-size: 11.5px; line-height: 1.35; }
}

@media (max-width: 420px) {
  /* 手機維持雙欄，8 個例子才不會變成過長的單欄瀑布 */
  .gal { gap: 9px; }
  .mtile-row { gap: 8px; }
}

/* ============================================================
   首屏：圖片優先 + 應用圖庫
   ============================================================ */

.hero--photo { padding: 64px 0 72px; }
.hero--photo .hero__grid { grid-template-columns: .92fr 1.08fr; gap: 52px; align-items: center; }
.hero__copy { min-width: 0; }
.hero--photo h1, .hero--photo h2 { margin: 18px 0 20px; }

/* 圖片拼貼 */
.hero__mosaic { display: grid; gap: 10px; min-width: 0; }

.mtile {
  margin: 0;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #101820;
  box-shadow: 0 14px 34px rgba(13, 26, 43, .14);
}

.mtile img { width: 100%; height: 100%; object-fit: cover; display: block; }

.mtile--lead { aspect-ratio: 16 / 9.8; }

.mtile--lead::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(10, 16, 24, .88) 0%, rgba(10, 16, 24, .62) 42%, rgba(10, 16, 24, .12) 78%);
  pointer-events: none;
}

.mtile--lead figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 24px 20px;
  display: flex; flex-direction: column; gap: 5px;
  z-index: 2;
}

.mtile__kicker {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255, 255, 255, .58);
}

.mtile__line {
  font-size: 15px; line-height: 1.5; color: #fff; font-weight: 500;
  letter-spacing: .01em;
}

.mtile-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mtile-row .mtile { aspect-ratio: 16 / 10; background: #fff; }
.mtile-row .mtile img { object-fit: contain; padding: 10px; }

.mtile__chip {
  position: absolute; left: 9px; bottom: 9px;
  padding: 3px 8px; border-radius: 4px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .06em;
  color: var(--ink-2); background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(13, 26, 43, .08);
}

/* 應用圖庫 */
.strip { padding: 8px 0 84px; }

.gal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.gal__item {
  margin: 0;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  /* 16:9 貼近產線實拍的多數比例，cover 裁切最少 */
  aspect-ratio: 16 / 9;
}

.gal__item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}

.gal__item:hover img { transform: scale(1.055); }

.gal__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 13px 11px;
  display: flex; flex-direction: column; gap: 3px;
  background: linear-gradient(180deg, rgba(10, 16, 24, 0), rgba(10, 16, 24, .8));
}

.gal__tag {
  font-family: var(--mono); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255, 255, 255, .6);
}

.gal__cap { font-size: 12.5px; line-height: 1.45; color: #fff; font-weight: 500; }

@media (max-width: 1080px) {
  .hero--photo .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero--photo { padding: 44px 0 56px; }
  .gal { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .gal { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mtile--lead { aspect-ratio: 16 / 10.5; }
  .mtile--lead figcaption { padding: 16px 16px 14px; }
  .mtile__line { font-size: 13px; }
  .strip { padding-bottom: 60px; }
}

@media (max-width: 760px) {
  /* 手機雙欄時格子窄，改用 3:2 讓主體不被壓扁；圖說同時收緊 */
  .gal__item { aspect-ratio: 3 / 2; }
  .gal__item figcaption { padding: 18px 10px 8px; gap: 2px; }
  .gal__tag { font-size: 8px; letter-spacing: .08em; }
  .gal__cap { font-size: 11.5px; line-height: 1.35; }
}

@media (max-width: 420px) {
  /* 手機維持雙欄，8 個例子才不會變成過長的單欄瀑布 */
  .gal { gap: 9px; }
  .mtile-row { gap: 8px; }
}

/* ============================================================
   關於頁
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

.about-grid .prose h2 {
  font-size: 19px;
  margin: 30px 0 10px;
}

.about-grid .prose h2:first-child { margin-top: 0; }

.about-facts div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line-2);
}

.about-facts div:last-child { border-bottom: 0; }
.about-facts dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.about-facts dd { margin: 0; font-size: 13.5px; color: var(--ink); line-height: 1.5; }

.cta-soft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 34px 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(120deg, #f8fafc, #fff);
}

.cta-soft h2 { font-size: 21px; margin-bottom: 7px; }
.cta-soft p { font-size: 13.5px; color: var(--ink-2); max-width: 52ch; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-soft { padding: 26px 24px; }
}

/* ============================================================
   關於頁
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

.about-grid .prose h2 {
  font-size: 19px;
  margin: 30px 0 10px;
}

.about-grid .prose h2:first-child { margin-top: 0; }

.about-facts div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line-2);
}

.about-facts div:last-child { border-bottom: 0; }
.about-facts dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.about-facts dd { margin: 0; font-size: 13.5px; color: var(--ink); line-height: 1.5; }

.cta-soft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 34px 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(120deg, #f8fafc, #fff);
}

.cta-soft h2 { font-size: 21px; margin-bottom: 7px; }
.cta-soft p { font-size: 13.5px; color: var(--ink-2); max-width: 52ch; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-soft { padding: 26px 24px; }
}

/* ---------- CTA 聯絡資訊 ---------- */

.cta__contact-label {
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .45);
}

.cta__contact {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cta__contact li {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 14px;
}

.cta__ck {
  flex: 0 0 46px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .38);
}

.cta__contact a {
  color: rgba(255, 255, 255, .92);
  font-weight: 500;
  letter-spacing: .01em;
  border-bottom: 1px solid transparent;
  transition: color .16s, border-color .16s;
  word-break: break-all;
}

.cta__contact a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, .45);
}

/* 微信號等無連結的純文字值（深色 CTA 與淺色頁尾共用） */
.contact-val {
  color: rgba(255, 255, 255, .92);
  font-weight: 500;
  letter-spacing: .01em;
  word-break: break-all;
}
.footer .contact-val { color: var(--ink-2); }
.footer__ck { font-size: 11px; color: var(--ink-3); margin-right: 6px; }

@media (max-width: 520px) {
  .cta__contact li { flex-wrap: wrap; gap: 2px 9px; }
  .cta__contact a { font-size: 13.5px; }
}

/* ============================================================
   頁首：三句話 + 三段論
   ============================================================ */

.promise {
  padding: 58px 0 46px;
  border-bottom: 1px solid var(--line-2);
  background: linear-gradient(180deg, #fbfcfe 0%, #fff 100%);
}

.promise .eyebrow { display: inline-flex; }

.promise__lead {
  margin: 16px 0 0;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.16;
  letter-spacing: -.025em;
  font-weight: 600;
  color: var(--ink);
}

.promise__lead em {
  font-style: normal;
  color: var(--accent);
}

.promise__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 40px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 900px;
}

.promise__item {
  display: flex;
  align-items: baseline;
  gap: 11px;
}

.promise__no {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--ink-3);
  flex: 0 0 auto;
}

.promise__item p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  letter-spacing: .005em;
}

/* 三段論 */
/* 置於應用實例之後、技術路線之前：白底相鄰，用上邊框分界 */
.argument {
  padding: 56px 0 72px;
  border-top: 1px solid var(--line-2);
  background: linear-gradient(180deg, #fcfdfe 0%, #fff 34%);
}

.argrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.argcard {
  display: flex;
  flex-direction: column;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.argcard__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.argcard__no {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--accent-soft);
}

.argcard h3 {
  font-size: 17.5px;
  line-height: 1.4;
  letter-spacing: -.01em;
  margin-bottom: 12px;
  color: var(--ink);
}

.argcard__body {
  display: grid;
  gap: 11px;
  margin-bottom: 16px;
}

.argcard__body p {
  font-size: 13px;
  line-height: 1.78;
  color: var(--ink-2);
}

.argcard__rule {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink);
  font-weight: 500;
}

/* 1024 仍維持三欄，避免三張卡疊成近 900px 的長條 */
@media (max-width: 1080px) {
  .argrid { gap: 14px; }
  .argcard { padding: 20px 17px 18px; }
  .argcard h3 { font-size: 16.5px; }
  .promise { padding: 44px 0 36px; }
  .argument { padding: 44px 0 52px; }
}

@media (max-width: 900px) {
  .argrid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .promise__pair { grid-template-columns: 1fr; gap: 12px; }
  .promise__item p { font-size: 14px; }
  .argcard__body p { font-size: 13px; }
}

/* ---------- 三段論圖表 ---------- */

.argcard__fig {
  margin: 0 0 14px;
  padding: 12px 2px 6px;
  border-bottom: 1px solid var(--line-2);
}

.chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart__label {
  font-size: 10px;
  fill: #46536b;
  font-family: var(--font);
}

.chart__val {
  font-size: 10px;
  fill: #8b95a5;
  font-family: var(--mono);
}

.chart__val--strong { fill: #0d1a2b; font-weight: 600; }

.chart__dot {
  font-size: 9.5px;
  fill: #0d1a2b;
  font-family: var(--mono);
  font-weight: 600;
}

.chart__axis {
  font-size: 9px;
  fill: #8b95a5;
  font-family: var(--font);
}

.argcard__fig figcaption {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .05em;
  color: var(--ink-3);
}

/* ---------- 返回頂部 ---------- */

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 15px 11px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(13, 26, 43, .06), 0 10px 26px rgba(13, 26, 43, .1);
  opacity: 0;
  transform: translateY(12px) scale(.96);
  pointer-events: none;
  transition: opacity .26s ease, transform .26s cubic-bezier(.2, .7, .3, 1),
              background .16s, border-color .16s;
}

.to-top.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  background: #fff;
  border-color: var(--line-2);
  box-shadow: 0 4px 10px rgba(13, 26, 43, .08), 0 14px 32px rgba(13, 26, 43, .13);
}

.to-top:active { transform: translateY(1px); }

.to-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.to-top svg { flex: 0 0 auto; transition: transform .26s cubic-bezier(.2, .7, .3, 1); }
.to-top:hover svg { transform: translateY(-2px); }

@media (max-width: 700px) {
  .to-top { right: 14px; bottom: 14px; padding: 11px; gap: 0; }
  .to-top__label { display: none; }
  .to-top svg { width: 17px; height: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .to-top, .to-top svg { transition: none; }
  .to-top { transform: none; }
}

/* ---------- AI 客服 ---------- */

.chat { position: fixed; right: 22px; bottom: 22px; z-index: 80; }

.chat__fab {
  width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: var(--ink); box-shadow: 0 8px 24px rgba(13, 26, 43, .28);
  transition: transform .16s, box-shadow .16s, background .16s;
}
.chat__fab:hover { transform: translateY(-2px); background: var(--accent); }
.chat__fab svg { display: block; }

.chat__panel {
  position: absolute; right: 0; bottom: 66px;
  width: 358px; max-width: calc(100vw - 40px);
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 20px 48px rgba(13, 26, 43, .18);
  display: flex; flex-direction: column; overflow: hidden;
}
.chat__head {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line-2); background: var(--bg-2);
}
.chat__head b { display: block; font-size: 14px; }
.chat__head span { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.chat__close {
  margin-left: auto; border: 0; background: transparent; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--ink-3); padding: 0 2px;
}
.chat__close:hover { color: var(--ink); }

.chat__log {
  padding: 14px; display: flex; flex-direction: column; gap: 9px;
  height: 330px; max-height: 46vh; overflow-y: auto; scroll-behavior: smooth;
}
.chat__msg {
  max-width: 84%; padding: 9px 12px; border-radius: 12px;
  font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere;
}
.chat__msg--bot { background: var(--bg-2); color: var(--ink); border-bottom-left-radius: 4px; }
.chat__msg--user { background: var(--accent); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.chat__msg.is-typing { color: var(--ink-3); }
.chat__msg.is-error { background: #fff4f4; color: #b42318; }

.chat__form {
  display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line-2);
}
.chat__input {
  flex: 1 1 auto; min-width: 0; height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; font-family: inherit;
  outline: none; transition: border-color .16s;
}
.chat__input:focus { border-color: var(--accent); }
.chat__send {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: var(--accent);
  transition: opacity .16s;
}
.chat__send:disabled { opacity: .45; cursor: default; }

.chat__note {
  margin: 0; padding: 0 14px 12px; font-size: 11px; color: var(--ink-3);
}

@media (max-width: 560px) {
  .chat { right: 14px; bottom: 14px; }
  .chat__fab { width: 50px; height: 50px; }
  .chat__panel {
    position: fixed; right: 12px; left: 12px; bottom: 76px; width: auto;
  }
  .chat__log { height: 300px; }
}

/* 有客服按鈕時，把「回到頂部」往上讓開，避免重疊 */
body.has-chat .to-top { bottom: 94px; }
@media (max-width: 560px) {
  body.has-chat .to-top { bottom: 80px; }
}

/* 客服氣泡內的粗體與項目符號：型號要一眼看到 */
.chat__msg b { font-weight: 650; color: var(--ink); }
.chat__msg--user b { color: #fff; }
.chat__msg br { content: ""; }

/* 客服氣泡內的粗體與項目符號：型號要一眼看到 */
.chat__msg b { font-weight: 650; color: var(--ink); }
.chat__msg--user b { color: #fff; }
.chat__msg br { content: ""; }
.chat__sub { display: inline-block; padding-left: 12px; opacity: .88; }
.chat__sub { display: inline-block; padding-left: 12px; opacity: .88; }
