/* ==========================================================================
   治洺木地板 GM FLOOR — 設計系統
   Design tokens → base → layout → components → utilities → responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* 色彩 */
  --ink: #14110e;
  --ink-soft: #241f1a;
  --ink-70: #4a423a;
  --muted: #6b6259;
  --muted-light: #6f665c;
  --paper: #fbf8f2;
  --paper-2: #f4eee3;
  --paper-3: #ece4d6;
  --white: #ffffff;
  --wood: #8b5a33;
  --wood-deep: #6b4423;
  --sand: #c9a87c;
  --brass: #b08a4f;
  --moss: #2f3a31;
  --line: rgba(20, 17, 14, 0.12);
  --line-soft: rgba(20, 17, 14, 0.07);
  --line-light: rgba(251, 248, 242, 0.18);
  --line-green: #047a3a;

  /* 字體 */
  --font-serif: "Noto Serif TC", "Songti TC", "PMingLiU", "SimSun", serif;
  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", -apple-system,
    BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* 排版 */
  --fs-body: 1rem;
  --lh-body: 1.85;
  --fs-lead: clamp(1.02rem, 0.96rem + 0.28vw, 1.16rem);
  --fs-h1: clamp(2.15rem, 1.15rem + 3.4vw, 4.3rem);
  --fs-h2: clamp(1.7rem, 1.15rem + 1.85vw, 2.75rem);
  --fs-h3: clamp(1.14rem, 1.02rem + 0.42vw, 1.4rem);
  --fs-small: 0.875rem;
  --fs-xs: 0.78rem;

  /* 間距 */
  --gut: clamp(1.15rem, 3.4vw, 2.5rem);
  --sec-y: clamp(4.2rem, 8vw, 7.5rem);
  --header-h: 76px;
  --topbar-h: 38px;

  /* 造型 */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(20, 17, 14, 0.05), 0 8px 24px -18px rgba(20, 17, 14, 0.35);
  --shadow-md: 0 2px 4px rgba(20, 17, 14, 0.04), 0 26px 60px -34px rgba(20, 17, 14, 0.45);
  --shadow-lg: 0 30px 80px -40px rgba(20, 17, 14, 0.55);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover { color: var(--wood); }

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; background: none; border: 0; padding: 0; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--sand); color: var(--ink); }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: min(1200px, 100% - (var(--gut) * 2));
  margin-inline: auto;
}

.wrap--wide { width: min(1360px, 100% - (var(--gut) * 2)); }
.wrap--narrow { width: min(820px, 100% - (var(--gut) * 2)); }

.section { padding-block: var(--sec-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 5.5vw, 4.75rem); }
.section--paper { background: var(--paper); }
.section--paper-2 { background: var(--paper-2); }
.section--sand { background: var(--paper-3); }
.section--white { background: var(--white); }

.section--ink {
  background: var(--ink);
  color: var(--paper);
}

.section--ink h2, .section--ink h3 { color: var(--paper); }

.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-sm);
  font-size: var(--fs-small);
}
.skip-link:focus { top: 12px; color: var(--paper); }

/* --------------------------------------------------------------------------
   4. Typography helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wood);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}

.eyebrow--plain::before { display: none; }
.eyebrow--light { color: var(--sand); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
  margin-bottom: clamp(2.2rem, 4vw, 3.6rem);
}

.section-head__main { max-width: 640px; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .section-head__main { margin-inline: auto; }

.section-title {
  font-size: var(--fs-h2);
  margin-top: 1.1rem;
  letter-spacing: 0.02em;
}

.section-lead {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.9;
  max-width: 58ch;
}

.section--ink .section-lead { color: rgba(251, 248, 242, 0.66); }
.section-head--center .section-lead { margin-inline: auto; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--wood);
  white-space: nowrap;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(139, 90, 51, 0.35);
}

.link-arrow svg { transition: transform 0.35s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }
.section--ink .link-arrow { color: var(--sand); border-color: rgba(201, 168, 124, 0.4); }

.muted { color: var(--muted); }
.accent { color: var(--wood); }
.serif { font-family: var(--font-serif); }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0.7rem 1.7rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  will-change: transform;
}

.btn svg { flex: none; }

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -18px rgba(20, 17, 14, 0.7);
}

.btn--primary:hover { background: var(--wood-deep); border-color: var(--wood-deep); color: var(--paper); }

.btn--wood {
  --btn-bg: var(--wood);
  --btn-bd: var(--wood);
  --btn-fg: #fff;
}
.btn--wood:hover { background: var(--wood-deep); border-color: var(--wood-deep); color: #fff; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: rgba(20, 17, 14, 0.32);
}
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-bd: rgba(251, 248, 242, 0.45);
}
.btn--ghost-light:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.btn--line {
  --btn-bg: var(--line-green);
  --btn-bd: var(--line-green);
  --btn-fg: #fff;
}
.btn--line:hover { background: #05b04b; border-color: #05b04b; color: #fff; }

.btn--sm { min-height: 42px; padding: 0.5rem 1.1rem; font-size: 0.84rem; }
.btn--lg { min-height: 56px; padding: 0.8rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn__icon { display: inline-flex; }

/* 文字按鈕（底線動畫） */
.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink);
  padding-bottom: 3px;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: left;
  opacity: 0.4;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.text-link:hover::after { transform: scaleX(1); opacity: 1; }

/* --------------------------------------------------------------------------
   6. Topbar / header / nav
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--ink);
  color: rgba(251, 248, 242, 0.78);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.topbar__list {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}

.topbar__item { display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar__item svg { opacity: 0.65; }
.topbar a { color: inherit; }
.topbar a:hover { color: var(--sand); }
.topbar__right { display: flex; align-items: center; gap: 1.6rem; }

.topbar__line {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #7ef0a6 !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(251, 248, 242, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 16px 40px -32px rgba(20, 17, 14, 0.55);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex: none;
}

.brand__mark {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 9px;
  background: var(--ink);
  display: grid;
  place-items: center;
}

.brand__mark svg { width: 22px; height: 22px; }

.brand__text { display: grid; gap: 2px; line-height: 1.15; }
.brand__name {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.brand__sub {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  color: var(--muted-light);
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.6vw, 1.75rem);
  list-style: none;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--ink-70);
  white-space: nowrap;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--wood);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease);
}

.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after { transform: scaleX(1); background: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 0.7rem; flex: none; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  white-space: nowrap;
}

.header-phone svg { color: var(--wood); }
.header-phone:hover { color: var(--wood); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  place-items: center;
  color: var(--ink);
}

.nav-toggle__bars { display: grid; gap: 5px; width: 20px; }
.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* 行動版抽屜 */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--paper);
  display: grid;
  grid-template-rows: auto 1fr auto;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.5s var(--ease-out), visibility 0s linear 0.5s;
  overflow: auto;
  padding: calc(var(--header-h) + 1.75rem) var(--gut) 2rem;
}

.nav-drawer.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.5s var(--ease-out), visibility 0s;
}

.nav-drawer__list { list-style: none; display: grid; gap: 0.1rem; }
.nav-drawer__list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  letter-spacing: 0.05em;
}
.nav-drawer__list a span { font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--muted-light); }
.nav-drawer__foot { margin-top: 1.75rem; display: grid; gap: 1rem; }
.nav-drawer__nap { font-size: 0.85rem; color: var(--muted); line-height: 1.9; }
.nav-drawer__actions { display: grid; gap: 0.6rem; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(88vh, 860px);
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  isolation: isolate;
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 10, 8, 0.55) 0%, rgba(12, 10, 8, 0.14) 38%, rgba(12, 10, 8, 0.72) 100%),
    linear-gradient(90deg, rgba(12, 10, 8, 0.58) 0%, rgba(12, 10, 8, 0) 62%);
}

.hero__inner { padding-block: clamp(3.5rem, 9vh, 6rem) clamp(5.5rem, 11vh, 8rem); }
.hero__eyebrow { color: rgba(251, 248, 242, 0.82); }
.hero__eyebrow::before { background: var(--sand); opacity: 1; }

.hero__title {
  margin-top: 1.35rem;
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.03em;
  max-width: 15ch;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

.hero__lead {
  margin-top: 1.5rem;
  max-width: 44ch;
  font-size: var(--fs-lead);
  color: rgba(251, 248, 242, 0.8);
  line-height: 1.95;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }

.hero__meta {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.9rem;
  list-style: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: rgba(251, 248, 242, 0.72);
}
.hero__meta li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__meta svg { color: var(--sand); }

.hero__scroll {
  position: absolute;
  right: var(--gut);
  bottom: 2.2rem;
  display: none;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(251, 248, 242, 0.65);
  writing-mode: vertical-rl;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 64px;
  background: linear-gradient(180deg, rgba(251, 248, 242, 0.7), transparent);
}

/* 首頁信任條 */
.trustbar {
  position: relative;
  z-index: 3;
  margin-top: clamp(-4.5rem, -6vw, -3rem);
}

.trustbar__inner {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.trustbar__item {
  padding: 1.65rem 1.6rem;
  display: grid;
  gap: 0.3rem;
  border-left: 1px solid var(--line-soft);
}
.trustbar__item:first-child { border-left: 0; }

.trustbar__num {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.trustbar__num small { font-family: var(--font-sans); font-size: 0.72rem; color: var(--muted-light); letter-spacing: 0.1em; }
.trustbar__label { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; }

/* 內頁 hero */
.page-hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}

.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; opacity: 0.95; }
.page-hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(12, 10, 8, 0.9) 0%, rgba(12, 10, 8, 0.5) 52%, rgba(12, 10, 8, 0.18) 100%), linear-gradient(180deg, rgba(12, 10, 8, 0.2) 0%, rgba(12, 10, 8, 0.45) 100%);
}

.page-hero__inner { padding-block: clamp(3.8rem, 8vw, 6.5rem) clamp(3.2rem, 6vw, 5rem); }
.page-hero__title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); margin-top: 1.1rem; line-height: 1.24; max-width: 900px; }
.page-hero__lead { margin-top: 1.2rem; color: rgba(251, 248, 242, 0.75); font-size: var(--fs-lead); max-width: 54ch; }

.page-hero--plain {
  background: var(--paper-2);
  color: var(--ink);
}
.page-hero--plain .page-hero__lead { color: var(--muted); }
.page-hero--plain .page-hero__title { color: var(--ink); }

/* 麵包屑 */
.breadcrumb { padding-block: 0.9rem; border-bottom: 1px solid var(--line-soft); background: var(--paper); }
.breadcrumb__list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; list-style: none; font-size: 0.74rem; color: var(--muted-light); letter-spacing: 0.04em; }
.breadcrumb__list li { display: inline-flex; align-items: center; gap: 0.5rem; }
.breadcrumb__list li + li::before { content: "/"; color: var(--line); }
.breadcrumb a:hover { color: var(--wood); }
.breadcrumb [aria-current="page"] { color: var(--ink-70); }

/* --------------------------------------------------------------------------
   8. Media / split
   -------------------------------------------------------------------------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--paper-3);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--wide { aspect-ratio: 16 / 10; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame__tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  padding: 0.42rem 0.85rem;
  border-radius: var(--r-pill);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split--wide-media { grid-template-columns: 1.3fr 1fr; }

.split__body { max-width: 540px; }
.split__body p + p { margin-top: 1rem; }
.split__body p { color: var(--muted); }

.split__media-stack { position: relative; }
.split__media-stack .media-frame:last-child {
  position: absolute;
  right: -6%;
  bottom: -10%;
  width: 46%;
  border: 6px solid var(--paper);
  box-shadow: var(--shadow-md);
  border-radius: calc(var(--r-md) + 4px);
}

/* 數字清單 */
.numlist { list-style: none; display: grid; gap: 1.35rem; margin-top: 2rem; }
.numlist li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; }
.numlist__no {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--wood);
  padding-top: 0.35rem;
  border-top: 1px solid rgba(176, 138, 79, 0.45);
  min-width: 2.2rem;
}
.numlist__title { font-weight: 600; font-size: 1rem; margin-bottom: 0.15rem; }
.numlist__text { color: var(--muted); font-size: 0.92rem; line-height: 1.8; }

/* --------------------------------------------------------------------------
   9. Cards — service
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(176, 138, 79, 0.35);
}

.service-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.service-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease-out), filter 0.6s var(--ease);
}
.service-card:hover .service-card__media img { transform: scale(1.045); }

.service-card__no {
  position: absolute;
  left: 1.1rem;
  top: 1rem;
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--paper);
  background: rgba(20, 17, 14, 0.55);
  border: 1px solid rgba(251, 248, 242, 0.22);
  padding: 0.18rem 0.55rem;
  border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}

.service-card__body { padding: 1.6rem 1.55rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.service-card__title { font-size: 1.26rem; letter-spacing: 0.03em; }
.service-card__en { display: block; margin-top: 0.35rem; font-family: var(--font-sans); font-size: 0.63rem; letter-spacing: 0.24em; color: var(--muted-light); text-transform: uppercase; }
.service-card__text { margin-top: 0.85rem; color: var(--muted); font-size: 0.92rem; line-height: 1.85; flex: 1; }
.service-card__foot { margin-top: 1.35rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.service-card__link { font-size: 0.82rem; letter-spacing: 0.08em; color: var(--wood); display: inline-flex; align-items: center; gap: 0.4rem; }
.service-card:hover .service-card__link svg { transform: translateX(4px); }
.service-card__link svg { transition: transform 0.35s var(--ease); }

.tagrow { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ink-70);
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-pill);
}

/* 產品卡 */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.product-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__badge {
  position: absolute; top: 0.9rem; left: 0.9rem;
  background: var(--paper); color: var(--ink);
  font-size: 0.66rem; letter-spacing: 0.14em;
  padding: 0.28rem 0.6rem; border-radius: var(--r-xs);
}
.product-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.product-card__cat { font-size: 0.68rem; letter-spacing: 0.14em; color: var(--muted-light); }
.product-card__title { margin-top: 0.45rem; font-size: 1.08rem; line-height: 1.55; }
.product-card__meta { margin-top: 0.85rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.8rem; color: var(--muted); }
.product-card__price { color: var(--wood); letter-spacing: 0.04em; }

/* 案例卡 */
.case-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.case-card {
  position: relative;
  grid-column: span 4;
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--ink);
  min-height: 320px;
  isolation: isolate;
}
.case-card--wide { grid-column: span 8; }
.case-card--half { grid-column: span 6; }
.case-card--lg { grid-column: span 7; }
.case-card--sm { grid-column: span 5; }
.case-card__media { position: absolute; inset: 0; z-index: -2; }
.case-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), opacity 0.6s var(--ease); }
.case-card::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12, 10, 8, 0.05) 20%, rgba(12, 10, 8, 0.82) 100%);
  transition: opacity 0.5s var(--ease);
}
.case-card:hover .case-card__media img { transform: scale(1.045); }
.case-card__body { position: absolute; inset: auto 0 0 0; padding: 1.6rem 1.5rem; color: var(--paper); }
.case-card__meta { display: flex; gap: 0.5rem; flex-wrap: wrap; font-size: 0.68rem; letter-spacing: 0.14em; color: rgba(251, 248, 242, 0.78); }
.case-card__meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.case-card__title { margin-top: 0.6rem; font-size: 1.2rem; line-height: 1.5; letter-spacing: 0.02em; }
.case-card__more { margin-top: 0.75rem; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.76rem; letter-spacing: 0.1em; color: var(--sand); opacity: 0; transform: translateY(6px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.case-card:hover .case-card__more { opacity: 1; transform: none; }

/* 文章卡 */
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(176, 138, 79, 0.3); }
.article-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.article-card:hover .article-card__media img { transform: scale(1.04); }
.article-card__body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.article-card__meta { display: flex; align-items: center; gap: 0.7rem; font-size: 0.68rem; letter-spacing: 0.12em; color: var(--muted-light); }
.article-card__meta span::after { content: "·"; margin-left: 0.7rem; }
.article-card__meta span:last-child::after { content: ""; }
.article-card__title { margin-top: 0.55rem; font-size: 1.1rem; line-height: 1.55; }
.article-card__text { margin-top: 0.5rem; font-size: 0.88rem; color: var(--muted); line-height: 1.8; flex: 1; }

/* --------------------------------------------------------------------------
   10. Features / process
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.feature {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-left: 1px solid var(--line-light);
  border-top: 1px solid var(--line-light);
}
.feature:nth-child(-n + 3) { border-top: 0; }
.feature:nth-child(3n + 1) { border-left: 0; }
.feature__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid rgba(201, 168, 124, 0.35);
  border-radius: 50%;
  color: var(--sand);
  margin-bottom: 1.3rem;
}
.feature__title { font-size: 1.08rem; color: var(--paper); letter-spacing: 0.04em; }
.feature__text { margin-top: 0.6rem; color: rgba(251, 248, 242, 0.6); font-size: 0.88rem; line-height: 1.85; }
.feature__no { float: right; font-family: var(--font-serif); font-size: 0.7rem; color: #b49a74; letter-spacing: 0.1em; }

.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; counter-reset: step; }
.process__step { position: relative; padding-top: 2.1rem; }
.process__step::before {
  content: "";
  position: absolute; top: 0.42rem; left: 0; right: 0; height: 1px;
  background: var(--line);
}
.process__step::after {
  content: "";
  position: absolute; top: 0.12rem; left: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--wood);
}
.process__no { font-family: var(--font-serif); font-size: 0.7rem; letter-spacing: 0.16em; color: var(--muted-light); }
.process__title { margin-top: 0.5rem; font-size: 1.05rem; }
.process__text { margin-top: 0.45rem; font-size: 0.84rem; color: var(--muted); line-height: 1.8; }

/* --------------------------------------------------------------------------
   11. Answer box / prose
   -------------------------------------------------------------------------- */
.answer-box {
  background: var(--white);
  border: 1px solid rgba(176, 138, 79, 0.28);
  border-left: 3px solid var(--brass);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}
.answer-box__label {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--wood); font-weight: 500;
  margin-bottom: 0.75rem;
}
.answer-box p { font-size: 1.02rem; line-height: 1.95; color: var(--ink-70); }
.answer-box strong { color: var(--ink); font-weight: 600; }

.prose { max-width: 760px; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.9rem); margin-top: 3rem; letter-spacing: 0.02em; }
.prose h3 { font-size: 1.16rem; margin-top: 2.2rem; }
.prose p { color: var(--ink-70); line-height: 1.95; }
.prose strong { color: var(--ink); }
.prose a:not(.btn):not(.text-link) { color: var(--wood); border-bottom: 1px solid rgba(139, 90, 51, 0.3); }
.prose a:hover { border-color: var(--wood); }
.prose ul, .prose ol { padding-left: 1.15rem; display: grid; gap: 0.55rem; color: var(--ink-70); }
.prose li::marker { color: var(--brass); }
.prose blockquote {
  margin: 2rem 0;
  padding: 1.2rem 0 1.2rem 1.6rem;
  border-left: 2px solid var(--brass);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--ink);
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.table-wrap { overflow-x: auto; margin: 1.8rem 0; border: 1px solid var(--line); border-radius: var(--r-sm); }
table { border-collapse: collapse; width: 100%; font-size: 0.88rem; background: var(--white); }
caption { caption-side: bottom; text-align: left; font-size: 0.74rem; color: var(--muted-light); padding-top: 0.6rem; }
thead th {
  background: var(--paper-2);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
th, td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; line-height: 1.7; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 500; color: var(--ink); }

.callout {
  background: var(--paper-2);
  border-radius: var(--r-sm);
  padding: 1.3rem 1.5rem;
  font-size: 0.92rem;
  color: var(--ink-70);
  line-height: 1.9;
}
.callout__title { display: block; font-weight: 600; color: var(--ink); margin-bottom: 0.3rem; font-size: 0.92rem; }

.toc {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 1.4rem 1.6rem;
  background: var(--white);
}
.toc__title { font-size: 0.72rem; letter-spacing: 0.2em; color: var(--muted-light); text-transform: uppercase; margin-bottom: 0.8rem; }
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: 0.45rem; padding: 0; }
.toc li { counter-increment: toc; display: flex; gap: 0.7rem; font-size: 0.9rem; }
.toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-serif); color: var(--brass); font-size: 0.76rem; padding-top: 0.18rem; }
.toc a { color: var(--ink-70); }
.toc a:hover { color: var(--wood); }

.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.2rem; font-size: 0.74rem; color: var(--muted-light); letter-spacing: 0.06em; }
.meta-row__dot::before { content: "·"; margin-right: 1.2rem; }

/* --------------------------------------------------------------------------
   12. Gallery / lightbox
   -------------------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
.gallery__item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--paper-3);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out), filter 0.4s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.gallery__item--tall { grid-row: span 2; aspect-ratio: 3 / 4; }
.gallery__cap {
  position: absolute; inset: auto 0 0 0;
  padding: 1.5rem 1rem 0.9rem;
  font-size: 0.74rem; color: rgba(251, 248, 242, 0.9);
  background: linear-gradient(180deg, transparent, rgba(12, 10, 8, 0.65));
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.gallery__item:hover .gallery__cap { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 150;
  display: none;
  background: rgba(10, 8, 7, 0.94);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: min(1100px, 92vw); max-height: 82vh; object-fit: contain; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); }
.lightbox__cap { position: absolute; bottom: 1.4rem; left: 0; right: 0; text-align: center; color: rgba(251, 248, 242, 0.7); font-size: 0.8rem; letter-spacing: 0.06em; }
.lightbox__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(251, 248, 242, 0.3);
  color: var(--paper); display: grid; place-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.lightbox__btn:hover { background: rgba(251, 248, 242, 0.12); border-color: rgba(251, 248, 242, 0.6); }
.lightbox__prev { left: 1.2rem; }
.lightbox__next { right: 1.2rem; }
.lightbox__close { top: 1.2rem; right: 1.2rem; transform: none; width: 44px; height: 44px; }

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.45rem 0;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.6;
}
.faq__q:hover { color: var(--wood); }
.faq__icon { flex: none; width: 22px; height: 22px; margin-top: 0.2rem; position: relative; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: currentColor; transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.faq__icon::before { left: 50%; top: 3px; bottom: 3px; width: 1px; transform: translateX(-50%); }
.faq__icon::after { top: 50%; left: 3px; right: 3px; height: 1px; transform: translateY(-50%); }
.faq__q[aria-expanded="true"] .faq__icon::before { transform: translateX(-50%) scaleY(0); opacity: 0; }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.faq__a.is-open { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: 1.5rem; color: var(--muted); max-width: 68ch; line-height: 1.95; font-size: 0.95rem; }
.faq__a p + p { padding-top: 0; }
.faq__a a { color: var(--wood); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; color: var(--paper); background: var(--ink); }
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(12, 10, 8, 0.88), rgba(12, 10, 8, 0.45));
}
.cta-band__inner { padding-block: clamp(3.5rem, 7vw, 6rem); display: grid; grid-template-columns: 1.2fr auto; gap: 2.5rem; align-items: center; }
.cta-band__title { font-size: clamp(1.6rem, 1.2rem + 1.9vw, 2.6rem); color: var(--paper); }
.cta-band__text { margin-top: 0.9rem; color: rgba(251, 248, 242, 0.7); max-width: 46ch; font-size: 0.95rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.cta-band__phone-block { display: grid; gap: 0.5rem; justify-items: start; }
.cta-band__phone { font-family: var(--font-serif); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); letter-spacing: 0.04em; color: var(--paper); }
.cta-band__phone:hover { color: var(--sand); }
.cta-band__note { font-size: 0.74rem; letter-spacing: 0.1em; color: rgba(251, 248, 242, 0.5); }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--ink); color: rgba(251, 248, 242, 0.66); padding-top: clamp(3.5rem, 6vw, 5rem); font-size: 0.88rem; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-light);
}
.footer__brand .brand__mark { background: rgba(251, 248, 242, 0.06); border: 1px solid var(--line-light); }
.footer__brand .brand__name { color: var(--paper); }
.footer__brand .brand__sub { color: rgba(251, 248, 242, 0.58); }
.footer__desc { margin-top: 1.2rem; line-height: 1.95; max-width: 34ch; color: rgba(251, 248, 242, 0.55); }
.footer__title { font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sand); margin-bottom: 1.1rem; }
.footer__list { list-style: none; display: grid; gap: 0.55rem; }
.footer__list a:hover { color: var(--sand); }
.footer__nap { list-style: none; display: grid; gap: 0.85rem; }
.footer__nap li { display: grid; grid-template-columns: 18px 1fr; gap: 0.7rem; align-items: start; }
.footer__nap svg { margin-top: 0.35rem; color: var(--sand); opacity: 0.8; }
.footer__nap a { color: var(--paper); }
.footer__nap a:hover { color: var(--sand); }
.footer__qr { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.footer__qr img { width: 84px; height: 84px; background: var(--paper); padding: 5px; border-radius: var(--r-xs); }
.footer__qr-text { font-size: 0.76rem; line-height: 1.7; color: rgba(251, 248, 242, 0.55); }
.footer__qr-text strong { display: block; color: var(--paper); font-weight: 500; font-size: 0.84rem; }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.5rem 2rem; font-size: 0.74rem; color: rgba(251, 248, 242, 0.62); letter-spacing: 0.03em;
}
.footer__bottom nav { display: flex; gap: 1.3rem; }
.footer__bottom a:hover { color: var(--sand); }

/* --------------------------------------------------------------------------
   16. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: grid; gap: 0.45rem; }
.field__label { font-size: 0.78rem; letter-spacing: 0.08em; color: var(--ink-70); }
.field__label .req { color: var(--wood); margin-left: 0.2rem; }
.field__input, .field__select, .field__textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.8rem 0.95rem;
  font-size: 0.94rem;
  line-height: 1.6;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field__textarea { min-height: 120px; resize: vertical; }
.field__input:focus, .field__select:focus, .field__textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(176, 138, 79, 0.15);
}
.field__hint { font-size: 0.72rem; color: var(--muted-light); }
.form__note { font-size: 0.74rem; color: var(--muted-light); line-height: 1.8; }
.form__status { font-size: 0.85rem; padding: 0.8rem 1rem; border-radius: var(--r-sm); display: none; }
.form__status.is-ok { display: block; background: rgba(47, 58, 49, 0.08); color: var(--moss); }
.form__status.is-err { display: block; background: rgba(139, 90, 51, 0.08); color: var(--wood-deep); }

/* --------------------------------------------------------------------------
   17. Contact / info blocks
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.info-list { list-style: none; display: grid; gap: 1.35rem; }
.info-list li { display: grid; grid-template-columns: 42px 1fr; gap: 1rem; align-items: start; }
.info-list__icon {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--wood);
  background: var(--white);
}
.info-list__label { font-size: 0.7rem; letter-spacing: 0.16em; color: var(--muted-light); text-transform: uppercase; }
.info-list__value { font-size: 1rem; margin-top: 0.15rem; line-height: 1.7; }
.info-list__value a:hover { color: var(--wood); }
.info-list__value small { display: block; font-size: 0.78rem; color: var(--muted); }

.hours-table { width: 100%; font-size: 0.88rem; }
.hours-table th { text-align: left; font-weight: 400; color: var(--ink-70); background: none; padding: 0.55rem 0; border-bottom: 1px solid var(--line-soft); }
.hours-table td { padding: 0.55rem 0; border-bottom: 1px solid var(--line-soft); text-align: right; color: var(--ink); }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------------------
   18. Product detail
   -------------------------------------------------------------------------- */
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 4.5vw, 3.8rem); align-items: start; }
.pdp__gallery { display: grid; gap: 0.7rem; }
.pdp__main { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--paper-3); }
.pdp__main img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.6rem; }
.pdp__thumb { aspect-ratio: 1; border-radius: var(--r-xs); overflow: hidden; border: 1px solid transparent; padding: 0; background: var(--paper-3); }
.pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumb[aria-current="true"] { border-color: var(--brass); }
.pdp__title { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.35; }
.pdp__meta { margin-top: 1rem; display: grid; gap: 0.6rem; }
.pdp__meta-row { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line-soft); font-size: 0.88rem; }
.pdp__meta-row dt { color: var(--muted-light); }
.pdp__meta-row dd { margin: 0; color: var(--ink); text-align: right; }
.pdp__actions { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pdp__note { margin-top: 1.2rem; font-size: 0.8rem; color: var(--muted); line-height: 1.8; }

/* --------------------------------------------------------------------------
   19. Chatbot
   -------------------------------------------------------------------------- */
.float-stack {
  position: fixed;
  right: clamp(0.9rem, 2vw, 1.75rem);
  bottom: clamp(0.9rem, 2vw, 1.75rem);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.float-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 16px 30px -14px rgba(20, 17, 14, 0.65);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.float-btn:hover { transform: translateY(-3px); color: #fff; }
.float-btn--line { background: var(--line-green); width: 52px; height: 52px; }
.float-btn--chat { background: var(--ink); width: 60px; height: 60px; }
.float-btn__badge {
  position: absolute; top: -2px; right: -2px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #e0684b; border: 2px solid var(--paper);
}
.float-btn__label {
  position: absolute; right: calc(100% + 10px);
  white-space: nowrap;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.7rem;
  border-radius: var(--r-xs);
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.float-btn:hover .float-btn__label, .float-btn:focus-visible .float-btn__label { opacity: 1; transform: none; }

.chat {
  position: fixed;
  right: clamp(0.9rem, 2vw, 1.75rem);
  bottom: calc(clamp(0.9rem, 2vw, 1.75rem) + 130px);
  z-index: 130;
  width: min(392px, calc(100vw - 1.8rem));
  max-height: min(660px, calc(100vh - 190px));
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
}
.chat.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s var(--ease), transform 0.35s var(--ease-out), visibility 0s; }

.chat__head {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.95rem 1rem;
  background: linear-gradient(120deg, #241f1a, #3a2c20);
  color: var(--paper);
}
.chat__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--paper); color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 0.95rem; font-weight: 600;
  flex: none;
}
.chat__id { line-height: 1.3; }
.chat__name { font-size: 0.92rem; font-weight: 500; letter-spacing: 0.04em; }
.chat__status { display: flex; align-items: center; gap: 0.35rem; font-size: 0.68rem; color: rgba(251, 248, 242, 0.6); }
.chat__status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #6fbf8c; }
.chat__head-actions { margin-left: auto; display: flex; gap: 0.25rem; }
.chat__icon-btn { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: rgba(251, 248, 242, 0.7); }
.chat__icon-btn:hover { background: rgba(251, 248, 242, 0.1); color: #fff; }

.chat__log {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 168, 124, 0.12), transparent 55%),
    var(--paper);
  scrollbar-width: thin;
}

.chat__msg { display: flex; gap: 0.55rem; max-width: 92%; }
.chat__msg--user { align-self: flex-end; flex-direction: row-reverse; }
.chat__bubble {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 14px 14px 14px 3px;
  padding: 0.7rem 0.9rem;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--ink-70);
  box-shadow: 0 1px 2px rgba(20, 17, 14, 0.03);
}
.chat__msg--user .chat__bubble {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  border-radius: 14px 14px 3px 14px;
}
.chat__bubble p + p { margin-top: 0.5rem; }
.chat__bubble a { color: var(--wood); text-decoration: underline; text-underline-offset: 2px; }
.chat__msg--user .chat__bubble a { color: var(--sand); }
.chat__bubble ul { padding-left: 1rem; margin: 0.35rem 0; display: grid; gap: 0.3rem; }
.chat__bubble strong { color: var(--ink); }
.chat__msg--user .chat__bubble strong { color: #fff; }
.chat__time { font-size: 0.6rem; color: var(--muted-light); margin-top: 0.25rem; }

.chat__typing { display: inline-flex; gap: 4px; padding: 0.85rem 1rem; }
.chat__typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--muted-light);
  animation: typing 1.2s infinite ease-in-out;
}
.chat__typing span:nth-child(2) { animation-delay: 0.15s; }
.chat__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.35rem; }
.chat__chip {
  font-size: 0.76rem;
  color: var(--wood-deep);
  background: var(--white);
  border: 1px solid rgba(176, 138, 79, 0.35);
  border-radius: var(--r-pill);
  padding: 0.32rem 0.7rem;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
  text-align: left;
}
.chat__chip:hover { background: var(--wood); color: #fff; border-color: var(--wood); }

.chat__form {
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem 0.8rem;
  border-top: 1px solid var(--line-soft);
  background: var(--white);
  align-items: flex-end;
}
.chat__input {
  flex: 1;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  font-size: 0.86rem;
  line-height: 1.5;
  max-height: 110px;
  background: var(--paper);
}
.chat__input:focus { outline: none; border-color: var(--brass); background: var(--white); }
.chat__send {
  width: 40px; height: 40px; flex: none;
  border-radius: 12px; background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  transition: background 0.25s var(--ease);
}
.chat__send:hover { background: var(--wood); }
.chat__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.45rem 0.9rem 0.6rem;
  font-size: 0.64rem;
  color: var(--muted-light);
  background: var(--white);
  border-top: 1px solid var(--line-soft);
}
.chat__foot a { color: var(--wood); }
.chat__foot a:hover { text-decoration: underline; }

.chat-page { max-width: 760px; margin-inline: auto; }
.chat-page .chat {
  position: static;
  opacity: 1; visibility: visible; transform: none;
  width: 100%; max-height: none; height: min(72vh, 640px);
  box-shadow: var(--shadow-md);
}
.chat-page .chat__log { min-height: 320px; }

/* --------------------------------------------------------------------------
   20. LINE page / QR
   -------------------------------------------------------------------------- */
.qr-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.6rem;
  display: grid;
  justify-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}
.qr-card img { width: 190px; height: 190px; }
.qr-card__hint { font-size: 0.78rem; color: var(--muted); text-align: center; line-height: 1.8; }

.steps { list-style: none; counter-reset: s; display: grid; gap: 1.4rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 1rem; }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--brass);
  border-top: 1px solid rgba(176, 138, 79, 0.4);
  padding-top: 0.3rem;
}
.steps strong { display: block; font-weight: 600; margin-bottom: 0.15rem; }
.steps span { color: var(--muted); font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   21. Utilities / motion
   -------------------------------------------------------------------------- */
.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;
}

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.75rem; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   22. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav__list { gap: 0.95rem; }
  .nav__link { font-size: 0.84rem; }
  .header-phone { display: none; }
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .header-actions .btn--line span { display: none; }
  .header-actions .btn--line { padding-inline: 0.9rem; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(-n + 3) { border-top: 1px solid var(--line-light); }
  .feature:nth-child(-n + 2) { border-top: 0; }
  .feature:nth-child(3n + 1) { border-left: 1px solid var(--line-light); }
  .feature:nth-child(2n + 1) { border-left: 0; }

  .process { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .pdp { grid-template-columns: 1fr; }
  .pdp__gallery { order: 1; }
  .pdp__body { order: 2; }
}

@media (max-width: 900px) {
  .topbar__list li:not(:first-child) { display: none; }
  .topbar__right .topbar__fax { display: none; }

  .hero { min-height: 78vh; }
  .hero__title { max-width: 18ch; }
  .hero__scroll { display: none; }

  .trustbar { margin-top: -2.5rem; }
  .trustbar__inner { grid-template-columns: repeat(2, 1fr); }
  .trustbar__item:nth-child(3) { border-left: 0; }
  .trustbar__item:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }

  .split, .split--wide-media { grid-template-columns: 1fr; gap: 2.2rem; }
  .split--reverse .split__media { order: 0; }
  .split__body { max-width: none; }
  .split__media-stack .media-frame:last-child { position: relative; right: auto; bottom: auto; width: 55%; margin: -12% 0 0 auto; }

  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .case-card, .case-card--wide, .case-card--half, .case-card--lg, .case-card--sm { grid-column: span 1; min-height: 300px; }

  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide { grid-column: span 2; }

  .cta-band__inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .section-head__aside { align-self: flex-start; }
}

@media (max-width: 680px) {
  :root { --header-h: 66px; --topbar-h: 34px; }

  .topbar__inner { justify-content: center; }
  .topbar__right { display: none; }

  .brand__mark { width: 36px; height: 36px; border-radius: 8px; }
  .brand__name { font-size: 1rem; letter-spacing: 0.08em; }
  .brand__sub { font-size: 0.54rem; letter-spacing: 0.2em; }

  .hero { min-height: 74vh; }
  .hero__img { object-position: 62% 60%; }
  .hero__lead { font-size: 0.94rem; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__meta { gap: 0.45rem 1.1rem; font-size: 0.74rem; }

  .trustbar__item { padding: 1.2rem 1.1rem; }
  .trustbar__num { font-size: 1.08rem; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .case-card, .case-card--wide, .case-card--half, .case-card--lg, .case-card--sm { min-height: 340px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { border-left: 0 !important; border-top: 1px solid var(--line-light); }
  .feature:first-child { border-top: 0; }
  .process { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .gallery__item--tall { grid-row: span 1; aspect-ratio: 4 / 3; }

  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .chat { right: 0.6rem; left: 0.6rem; bottom: 0.6rem; width: auto; max-height: calc(100vh - 1.2rem); border-radius: 16px; }
  .float-stack { right: 0.9rem; bottom: 0.9rem; }
  .chat.is-open ~ .float-stack { display: none; }
  .pdp__thumbs { grid-template-columns: repeat(4, 1fr); }
  .page-hero__inner { padding-block: 2.6rem 2.4rem; }
}

@media (max-width: 420px) {
  .grid--2 { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .trustbar__inner { grid-template-columns: 1fr; }
  .trustbar__item { border-left: 0 !important; border-top: 1px solid var(--line-soft); }
  .trustbar__item:first-child { border-top: 0; }
}


/* ==========================================================================
   23. 補充元件（第二階段）
   ========================================================================== */

/* 只有啟用 JS 時才隱藏進場元素，避免 JS 失敗造成空白 */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

/* 讓以 <a>／<span> 構成的卡片正常撐開 */
.service-card__media,
.product-card__media,
.product-card__body,
.article-card__media,
.article-card__body,
.media-frame,
.case-card__media { display: block; }
.product-card__body,
.article-card__body { display: flex; }
.case-card__media { display: block; position: absolute; }

/* 首頁案例格子的文字磚 */
.case-more {
  grid-column: span 7;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-md);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.case-more::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 124, 0.22);
}
.case-more h3 {
  color: var(--paper);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  line-height: 1.5;
  max-width: 22ch;
}
.case-more .link-arrow { color: var(--sand); border-color: rgba(201, 168, 124, 0.4); align-self: flex-start; }

/* 篩選列 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  color: var(--ink-70);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter-btn span {
  font-size: 0.72rem;
  opacity: 0.65;
}

/* FAQ 分組 */
.faq-groups { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.faq-group__title {
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.55rem);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.faq-group__title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
}

/* 時間軸 */
.timeline { display: grid; gap: 0; border-left: 1px solid var(--line); margin-left: 0.4rem; }
.timeline__item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.6rem;
  padding: 0 0 2.4rem 1.8rem;
  position: relative;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 0.55rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--brass);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__year {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--wood);
  padding-top: 0.15rem;
}
.timeline__item h3 { font-size: 1.12rem; }
.timeline__item p { margin-top: 0.35rem; color: var(--muted); font-size: 0.92rem; line-height: 1.85; }

/* 資訊卡 / 表單卡 */
.info-card,
.form-card,
.hours-box {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  display: grid;
  align-content: start;
  gap: 0.5rem;
}
.info-card h3 { font-size: 1.1rem; margin-top: 0.4rem; }
.info-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.85; }
.info-card .info-list__icon { margin-bottom: 0.4rem; }
.form-card { padding: clamp(1.5rem, 3vw, 2.2rem); }
.hours-box h3 { font-size: 1.02rem; margin-bottom: 0.6rem; }
.hours-table th { width: 42%; }

.map-frame {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-3);
  line-height: 0;
}

/* 文章版型 */
.guide-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: start;
}
.guide-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.25rem; }
.guide-aside__note {
  background: var(--paper-2);
  border-radius: var(--r-sm);
  padding: 1.15rem 1.2rem;
  display: grid;
  gap: 0.7rem;
}
.guide-aside__note p { font-size: 0.84rem; color: var(--muted); line-height: 1.8; }
.guide-layout .prose { max-width: none; }
.guide-layout .prose > .meta-row { margin-bottom: 1.6rem; }
.guide-layout .prose h2:first-of-type { margin-top: 0; }

.author-box {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper-2);
}
.author-box__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}
.author-box strong { display: block; font-size: 0.95rem; }
.author-box p { margin-top: 0.3rem; font-size: 0.84rem; color: var(--muted); line-height: 1.8; }

/* 複製範本 */
.copy-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.4rem 1.5rem;
  display: grid;
  gap: 1rem;
  justify-items: start;
}
.copy-box pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--ink-70);
  width: 100%;
}

/* 小幫手 */
.chat__chips:empty { display: none; }
.chat-page .chat { margin-inline: auto; }
.chat-page-body .float-stack { display: none; }
.chat-page .chat__log { min-height: 300px; }
.chat--inline { border-radius: var(--r-md); }

@media (max-width: 1024px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-aside { position: static; order: 2; }
  .guide-layout .prose { order: 1; }
}

@media (max-width: 900px) {
  .case-more { grid-column: span 2; min-height: 240px; }
}

@media (max-width: 680px) {
  .case-more { grid-column: span 1; }
  .timeline__item { grid-template-columns: 1fr; gap: 0.4rem; padding-bottom: 1.8rem; }
  .chat-page .chat { height: min(68vh, 560px); }
  .chat-open .float-stack { display: none; }
  .filter-btn { font-size: 0.8rem; padding: 0.45rem 0.9rem; }
}


/* ==========================================================================
   24. 地圖、nowrap、行動版微調
   ========================================================================== */
.nowrap { white-space: nowrap; }

.map-frame { min-height: 340px; display: grid; }
.map-load {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.55rem;
  text-align: center;
  padding: 2.5rem 1.5rem;
  min-height: 340px;
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 168, 124, 0.18), transparent 62%),
    var(--paper-2);
}
.map-load__pin {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid rgba(176, 138, 79, 0.35);
  color: var(--wood);
  margin-bottom: 0.4rem;
}
.map-load strong { font-family: var(--font-serif); font-size: 1.1rem; letter-spacing: 0.05em; }
.map-load > span:not(.map-load__pin):not(.map-load__note) { color: var(--muted); font-size: 0.9rem; }
.map-load .btn { margin-top: 0.5rem; }
.map-load__note { font-size: 0.7rem; color: var(--muted-light); line-height: 1.6; margin-top: 0.3rem; }
.map-frame iframe { display: block; width: 100%; height: 420px; border: 0; }

/* 頁尾 QR 放大，利於手機掃描 */
.footer__qr img { width: 104px; height: 104px; padding: 7px; }

@media (max-width: 420px) {
  .trustbar__inner { grid-template-columns: repeat(2, 1fr); }
  .trustbar__item { padding: 1.05rem 0.95rem; }
  .trustbar__num { font-size: 1.05rem; }
  .trustbar__label { font-size: 0.72rem; }
  .map-frame, .map-load { min-height: 300px; }
}


/* ==========================================================================
   25. 行動選單修正
   ========================================================================== */
.site-header { z-index: 110; }

.nav-drawer { padding-top: calc(var(--topbar-h) + var(--header-h) + 1.25rem); }

.nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-soft);
}
.nav-drawer__close {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.nav-drawer__close:hover { color: var(--ink); border-color: var(--ink); }

.nav-drawer__list a {
  justify-content: flex-start;
  gap: 0.9rem;
}
.nav-drawer__list a span {
  min-width: 1.9rem;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--muted-light);
}

/* 選單或燈箱開啟時，隱藏浮動按鈕，避免遮擋 */
body.is-locked .float-stack { display: none; }
