@font-face {
  font-family: 'Noto Serif TC';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/home/noto-serif-tc-600.ttf) format('truetype');
}

/* ============================================================
   快開 首頁新稿 brand.css
   墨色展場（hero）／奶油閱讀區（guides）／紙色路徑區（case）
   ============================================================ */
:root {
  --ink: #1a1816;
  --ink-2: #26221f;
  --paper: #faf8f4;
  --cream: #f3ece0;
  --gold: #a5793a;
  --gold-light: #c49a5b;
  --muted: #6b6257;
  --line: #e5ddd0;
  --on-ink-muted: rgba(250, 248, 244, .62);
  --on-ink-line: rgba(250, 248, 244, .14);

  --serif: "Noto Serif TC", "Songti TC", "Source Han Serif TC", "PMingLiU", "Noto Serif CJK TC", serif;
  --sans: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Helvetica Neue", Arial, system-ui, sans-serif;

  --gutter: clamp(16px, 3.4vw, 48px);
  --top-h: 64px;
  --wall-gap: 14px;
  --cap-h: 24px;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip { left: var(--gutter); top: 12px; z-index: 100; background: var(--gold-light); color: var(--ink); padding: 8px 12px; text-decoration: none; }
.skip:focus { position: fixed !important; width: auto; height: auto; margin: 0; clip: auto; clip-path: none; }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 20px; border-radius: 999px;
  font-size: .92rem; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .18s, color .18s, border-color .18s;
}
.btn--gold { background: var(--gold-light); color: var(--ink); border-color: var(--gold-light); }
.btn--gold:hover { background: var(--paper); border-color: var(--paper); }
.btn--ghost { color: var(--paper); border-color: var(--on-ink-line); }
.btn--ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--ink:hover { background: var(--gold-light); color: var(--ink); border-color: var(--gold-light); }
.btn--outline { color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { color: var(--ink); background: var(--cream); border-color: var(--gold); }

/* 文字連結（閱讀區用） */
.textlink { color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
.textlink:hover { color: var(--ink); }

/* ============================================================
   頂欄
   ============================================================ */
.top {
  height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
  background: var(--ink); color: var(--paper);
}
.top__brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; }
.top__brand b { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; letter-spacing: .14em; }
.top__brand span { font-size: .72rem; letter-spacing: .12em; color: var(--on-ink-muted); }
.top__nav { display: flex; gap: 26px; font-size: .9rem; }
.top__nav a { text-decoration: none; color: var(--on-ink-muted); padding: 6px 0; border-bottom: 1px solid transparent; }
.top__nav a:hover { color: var(--paper); border-bottom-color: var(--gold-light); }
.top__right { display: flex; align-items: center; gap: 28px; }
.top__line { min-height: 36px; padding: 0 16px; font-size: .84rem; }

/* ============================================================
   Hero：墨色展場
   ============================================================ */
.hero {
  background: var(--ink); color: var(--paper);
  padding: 0 var(--gutter) 28px;
  overflow-x: clip;
}
.hero__title {
  font-size: 8vw;
  line-height: 1.08;
  letter-spacing: .03em;
  white-space: nowrap;
  margin: 0 0 20px -0.02em;
  font-weight: 600;
}
.hero__body { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.hero__aside { flex: 1 1 260px; max-width: 320px; display: grid; gap: 22px; align-content: start; }
.hero__lead { font-size: 1.02rem; line-height: 1.75; color: var(--on-ink-muted); max-width: 20em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero__index { border-top: 1px solid var(--on-ink-line); padding-top: 18px; display: grid; gap: 6px; }
.hero__index h2 { font-size: 1.05rem; letter-spacing: .06em; font-weight: 600; }
.hero__index p { font-size: .82rem; color: var(--on-ink-muted); }
.index { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.index button {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 6px 0; text-align: left; font-size: .9rem; color: var(--on-ink-muted);
  border-bottom: 1px solid var(--on-ink-line);
  transition: color .18s;
}
.index button::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  border: 1px solid var(--gold-light); flex: none; transition: background-color .18s;
}
.index button:hover, .index button:focus-visible, .index button.is-on { color: var(--paper); }
.index button.is-on::before, .index button:hover::before { background: var(--gold-light); }

/* 展牆 */
.wall {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--wall-gap);
  width: 100%;
}
.tile { margin: 0; min-width: 0; --r: -1.4deg; }
.wall > li:nth-child(3n+2) { --r: 1deg; }
.wall > li:nth-child(3n) { --r: -.7deg; }
.wall > li:nth-child(1) { --i: 0; } .wall > li:nth-child(2) { --i: 1; } .wall > li:nth-child(3) { --i: 2; }
.wall > li:nth-child(4) { --i: 3; } .wall > li:nth-child(5) { --i: 4; } .wall > li:nth-child(6) { --i: 5; }
.wall > li:nth-child(7) { --i: 6; } .wall > li:nth-child(8) { --i: 7; } .wall > li:nth-child(9) { --i: 8; }
.tile figure { margin: 0; }
.frame {
  position: relative; border-radius: 5px; padding: 3px;
  background: var(--ink-2);
  border: 1px solid rgba(196, 154, 91, .28);
  box-shadow: 0 18px 36px -24px rgba(0, 0, 0, .9);
  transition: transform .32s var(--ease), border-color .22s, box-shadow .32s var(--ease), opacity .25s;
}
.tile:hover .frame, .tile.is-lit .frame { transform: translateY(-5px); border-color: var(--gold-light); box-shadow: 0 28px 44px -24px rgba(0, 0, 0, .95); }
.wall.has-lit .tile:not(.is-lit) .frame { opacity: .5; }
.tile figcaption {
  height: var(--cap-h); display: flex; align-items: baseline; gap: 8px; margin-top: 6px;
  font-size: 13px; line-height: 1.3; white-space: nowrap; overflow: hidden;
}
.tile figcaption b { font-weight: 600; letter-spacing: .04em; }
.tile figcaption span { color: var(--on-ink-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }

/* 單次就位：只在 html.js 時播放，靜態載入直接顯示 */
html.js .tile { animation: settle .7s var(--ease) both; animation-delay: calc(80ms + var(--i) * 60ms); }
@keyframes settle {
  from { opacity: 0; transform: translateY(22px) rotate(var(--r)) scale(.985); }
  to   { opacity: 1; transform: none; }
}

/* 桌機：以可用高度決定展牆寬度，九格在首屏完整可見 */
@media (min-width: 900px) {
  .wall {
    --rows-h: calc(100svh - 8vw - 136px);
    --site-h: calc((var(--rows-h) - 2 * var(--wall-gap) - 3 * var(--cap-h)) / 3);
    width: calc(var(--site-h) * 4 + 2 * var(--wall-gap) + 18px);
    max-width: 100%;
    flex: 0 1 auto;
  }
}

/* ============================================================
   迷你網站（以容器寬 cqi 為尺度）
   ============================================================ */
.site {
  container-type: inline-size;
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column;
  border-radius: 3px; font-family: var(--sans); line-height: 1.2;
}
.m-nav { display: flex; align-items: center; justify-content: space-between; gap: 3cqi; padding: 3.2cqi 4.5cqi; font-size: 3.4cqi; flex: none; line-height: 1; }
.m-nav em { font-style: normal; font-family: var(--serif); font-weight: 600; letter-spacing: .08em; white-space: nowrap; }
.m-nav--center { justify-content: center; }
.m-links { display: flex; gap: 2.2cqi; align-items: center; }
.m-links i { display: block; width: 5.5cqi; height: .9cqi; background: currentColor; opacity: .4; border-radius: 1cqi; }
.m-h { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: .03em; font-size: 6.2cqi; }
.m-k { font-size: 2.6cqi; color: var(--gold); font-weight: 600; letter-spacing: .1em; }
.m-t { display: block; height: 1cqi; border-radius: 1cqi; background: currentColor; opacity: .18; width: 100%; }
.m-t + .m-t { margin-top: 1.5cqi; }
.m-t.w80 { width: 80%; } .m-t.w65 { width: 65%; } .m-t.w50 { width: 50%; } .m-t.w35 { width: 35%; }
.m-t--light { opacity: .55; }
.m-btn { display: inline-block; padding: 1.6cqi 3.6cqi; border-radius: 99cqi; font-size: 2.7cqi; font-weight: 600; line-height: 1.2; border: .35cqi solid currentColor; white-space: nowrap; }
.m-btn--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.m-btn--gold { background: var(--gold); color: var(--paper); border-color: var(--gold); }
.m-btn--paper { color: var(--paper); border-color: var(--paper); }
.m-btn--sq { border-radius: .8cqi; }
.m-img { background: var(--cream); overflow: hidden; min-height: 0; position: relative; }
.m-img img { width: 100%; height: 100%; object-fit: cover; }
.m-img--ink { background: var(--ink); }
.m-img--gold { background: var(--gold-light); }
.m-img--line { background: var(--paper); box-shadow: inset 0 0 0 .3cqi var(--line); }
.m-copy { display: grid; gap: 1.8cqi; align-content: center; justify-items: start; min-width: 0; }
.m-copy .m-btn { margin-top: 1.2cqi; }

/* 1 品牌電商：左圖右文，底下三件商品 */
.w1__hero { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.15fr 1fr; }
.w1__hero .m-copy { padding: 2cqi 4.5cqi; }
.w1__row { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2cqi; padding: 2.6cqi 4.5cqi 3.4cqi; border-top: .25cqi solid var(--line); }
.w1__row .m-img { aspect-ratio: 4 / 3; }
.w1__row .m-t { margin-top: 1.4cqi; }

/* 2 選物商店：奶油底、分類列、不等寬商品牆 */
.w2 { background: var(--cream); }
.w2__tabs { display: flex; justify-content: center; gap: 4.5cqi; font-size: 2.7cqi; padding: 0 4.5cqi 2.2cqi; flex: none; }
.w2__tabs span { padding-bottom: .8cqi; border-bottom: .4cqi solid transparent; color: var(--muted); }
.w2__tabs .on { color: var(--gold); border-bottom-color: var(--gold); }
.w2__wall { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1.6cqi; padding: 2.4cqi 4.5cqi 3.4cqi; }
.w2__wall > :nth-child(1) { grid-row: 1 / 3; }
.w2__wall > :nth-child(4) { grid-column: 2 / 4; }
.w2__note { background: var(--ink); color: var(--paper); display: grid; align-content: end; gap: 1.4cqi; padding: 2.4cqi; }
.w2__note .m-k { color: var(--gold-light); }

/* 3 保養品牌：奶油主視覺、成分三點 */
.w3__hero { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); }
.w3__hero .m-copy { padding: 2cqi 4.5cqi; }
.w3__hero .m-img img { object-position: 50% 40%; }
.w3__ing { flex: none; display: flex; justify-content: space-between; gap: 2cqi; padding: 2.6cqi 4.5cqi 3.2cqi; font-size: 2.6cqi; color: var(--muted); }
.w3__ing span { display: flex; align-items: center; gap: 1.4cqi; white-space: nowrap; }
.w3__ing i { width: 3cqi; height: 3cqi; border-radius: 50%; flex: none; }
.w3__ing .a { background: var(--gold); }
.w3__ing .b { border: .4cqi solid var(--ink); }
.w3__ing .c { background: var(--ink); }

/* 4 咖啡店：滿版照片、白字、紙色豆單卡 */
.w4 { background: var(--ink); color: var(--paper); }
.w4__bg { position: absolute; inset: 0; }
.w4__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26, 24, 22, .82) 0%, rgba(26, 24, 22, .28) 50%, rgba(26, 24, 22, .4) 100%); }
.w4 .m-nav { position: relative; }
.w4__body { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 3cqi; padding: 2cqi 4.5cqi 4cqi; }
.w4__body .m-h { font-size: 7.2cqi; }
.w4__menu { background: var(--paper); color: var(--ink); width: 34cqi; padding: 2.4cqi 2.8cqi; display: grid; gap: 1.6cqi; border-radius: .8cqi; }
.w4__menu .m-k { margin-bottom: .6cqi; }
.w4__menu p { font-size: 2.5cqi; display: flex; align-items: baseline; gap: 1cqi; white-space: nowrap; }
.w4__menu p::after { content: ""; flex: 1; border-bottom: .3cqi dotted var(--gold-light); min-width: 2cqi; }

/* 5 餐廳：墨色橫幅、金邊盤子、雙欄菜單 */
.w5 { background: var(--cream); }
.w5__band { flex: none; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3cqi; padding: 3.4cqi 4.5cqi; background: var(--ink); color: var(--paper); }
.w5__band .m-h { font-size: 6cqi; }
.w5__tag { display: inline-block; margin-top: 1.6cqi; font-size: 2.5cqi; font-weight: 600; color: var(--gold-light); border: .3cqi solid var(--gold-light); padding: .6cqi 1.6cqi; border-radius: 99cqi; }
.w5__plates { display: flex; gap: 1.6cqi; align-items: center; }
.w5__plates i { display: block; width: 9cqi; height: 9cqi; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 .5cqi var(--gold-light), inset 0 0 0 1.6cqi var(--paper), inset 0 0 0 2cqi var(--line); }
.w5__plates i:nth-child(2) { width: 12cqi; height: 12cqi; }
.w5__menu { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4cqi 4.5cqi; padding: 3cqi 4.5cqi; align-content: start; }
.w5__menu p { font-size: 2.7cqi; display: flex; align-items: baseline; gap: 1cqi; white-space: nowrap; }
.w5__menu p::after { content: ""; flex: 1; border-bottom: .3cqi dotted var(--gold); min-width: 2cqi; opacity: .7; }
.w5__foot { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 2cqi; padding: 0 4.5cqi 3.4cqi; font-size: 2.5cqi; color: var(--muted); }

/* 6 工作室：巨字、不對稱三塊 */
.w6 .m-nav { font-size: 3cqi; }
.w6__title { flex: none; padding: .6cqi 4.5cqi 2.2cqi; }
.w6__title .m-h { font-size: 12.5cqi; line-height: 1; letter-spacing: .02em; }
.w6__blocks { flex: 1; min-height: 0; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.6cqi; padding: 0 4.5cqi; }
.w6__blocks .m-img img { filter: grayscale(1) contrast(1.05); }
.w6__cap { flex: none; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.6cqi; padding: 2cqi 4.5cqi 3.2cqi; font-size: 2.5cqi; color: var(--muted); }

/* 7 服務預約：左文、右日曆與時段 */
.w7__body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1.15fr; gap: 3cqi; padding: .6cqi 4.5cqi 3.4cqi; }
.w7__body .m-copy { align-content: start; padding-top: .8cqi; }
.w7__cal { display: grid; gap: 1.8cqi; align-content: start; }
.w7__wk { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 2.1cqi; color: var(--muted); text-align: center; }
.w7__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .9cqi; }
.w7__days i { display: block; aspect-ratio: 1; border-radius: .6cqi; background: var(--cream); }
.w7__days i.off { background: transparent; box-shadow: inset 0 0 0 .3cqi var(--line); }
.w7__days i.on { background: var(--gold); }
.w7__slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2cqi; }
.w7__slots span { font-size: 2.4cqi; text-align: center; padding: 1.2cqi 0; border: .3cqi solid var(--line); border-radius: 99cqi; }
.w7__slots span.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* 8 名單蒐集：墨底、單欄、一個欄位一個按鈕 */
.w8 { background: var(--ink); color: var(--paper); align-items: center; justify-content: center; text-align: center; }
.w8__brand { position: absolute; left: 4.5cqi; top: 3.2cqi; font-family: var(--serif); font-size: 3.4cqi; letter-spacing: .08em; }
.w8__rule { position: absolute; right: 7cqi; top: 0; bottom: 0; width: .3cqi; background: var(--gold); opacity: .8; }
.w8__body { width: 68cqi; display: grid; gap: 2.2cqi; justify-items: center; }
.w8__body .m-h { font-size: 7cqi; }
.w8__body .m-t { background: var(--paper); }
.w8__form { display: grid; grid-template-columns: 1fr auto; gap: 1.4cqi; width: 100%; margin-top: 1.4cqi; }
.w8__form i { display: block; border: .35cqi solid rgba(250, 248, 244, .45); border-radius: .8cqi; height: 7.2cqi; position: relative; }
.w8__form i::after { content: ""; position: absolute; left: 2cqi; top: 50%; width: 42%; height: 1cqi; background: var(--paper); opacity: .3; transform: translateY(-50%); border-radius: 1cqi; }

/* 9 內容品牌：頭條與文章列 */
.w9__feat { flex: none; display: grid; grid-template-columns: 1.25fr 1fr; gap: 3cqi; padding: 0 4.5cqi; }
.w9__feat .m-img { aspect-ratio: 16 / 10; }
.w9__feat .m-img img { object-position: 50% 30%; }
.w9__feat .m-copy { align-content: start; }
.w9__feat .m-h { font-size: 4.6cqi; }
.w9__list { flex: 1; min-height: 0; display: grid; gap: 2cqi; padding: 3cqi 4.5cqi 3.4cqi; align-content: start; }
.w9__list div { display: grid; grid-template-columns: 9cqi 1fr; gap: 2.4cqi; align-items: center; }
.w9__list .m-img { aspect-ratio: 1; border-radius: .6cqi; }

/* ============================================================
   閱讀區：四篇 AI 文章（奶油底、無硬框的分欄列表）
   ============================================================ */
.read { background: var(--cream); padding: clamp(72px, 10vh, 128px) var(--gutter) clamp(72px, 10vh, 120px); }
.read__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 40px; max-width: 1180px; margin: 0 auto clamp(28px, 4vh, 44px); }
.read__head h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.2; letter-spacing: .02em; }
.read__head p { color: var(--muted); max-width: 32em; margin-top: 10px; }
.read__list { list-style: none; margin: 0 auto; padding: 0; max-width: 1180px; border-top: 1px solid var(--line); }
.essay a {
  display: grid; grid-template-columns: minmax(240px, 330px) minmax(0, 1fr); gap: 20px clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(26px, 3.6vh, 40px) 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.essay__text { display: grid; gap: 10px; max-width: 34em; }
.essay__text h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.3; letter-spacing: .02em; transition: color .18s; }
.essay__text p { color: var(--muted); font-size: .97rem; }
.essay__more { font-size: .9rem; font-weight: 600; color: var(--muted); justify-self: start; border-bottom: 1px solid transparent; transition: border-color .18s; }
.essay a:hover h3 { color: var(--gold); }
.essay a:hover .essay__more { border-bottom-color: var(--gold); }

/* 圖解共用：紙色面板、金色細節 */
.dia { background: var(--paper); border-radius: 8px; padding: 22px; min-height: 180px; display: grid; align-content: center; box-shadow: 0 1px 0 var(--line), 0 14px 30px -26px rgba(26, 24, 22, .4); }
.dia__cap { font-size: .72rem; color: var(--muted); line-height: 1; text-align: center; }

/* 圖解 1：對話 + 檔案 → 專案 */
.dia1 { grid-template-columns: 1fr auto 1fr auto 1.15fr; gap: 10px 8px; align-items: center; }
.dia1 .chat { display: grid; gap: 6px; }
.dia1 .chat i { display: block; height: 12px; border-radius: 7px; background: var(--cream); width: 82%; }
.dia1 .chat i:nth-child(even) { background: var(--ink); width: 58%; justify-self: end; }
.dia1 .files { position: relative; height: 66px; width: 58px; }
.dia1 .files i { position: absolute; left: 0; top: 0; width: 42px; height: 54px; border: 1px solid var(--line); background: var(--paper); border-radius: 2px; box-shadow: 0 1px 2px rgba(26, 24, 22, .08); }
.dia1 .files i::before { content: ""; position: absolute; right: -1px; top: -1px; width: 10px; height: 10px; background: var(--gold-light); clip-path: polygon(0 0, 100% 100%, 0 100%); }
.dia1 .files i:nth-child(2) { left: 8px; top: 6px; } .dia1 .files i:nth-child(3) { left: 16px; top: 12px; }
.dia1 .plus { font-size: 1.3rem; color: var(--muted); text-align: center; line-height: 1; }
.dia1 .arrow { width: 30px; height: 1px; background: var(--gold); position: relative; justify-self: center; }
.dia1 .arrow::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); transform: rotate(45deg); }
.dia1 .proj { background: var(--ink); border-radius: 6px; padding: 10px; display: grid; gap: 7px; }
.dia1 .proj i { display: flex; align-items: center; gap: 6px; height: 9px; }
.dia1 .proj i::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-light); flex: none; }
.dia1 .proj i::after { content: ""; height: 3px; border-radius: 2px; background: var(--paper); opacity: .35; flex: 1; }
.dia1 .cap { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto 1fr auto 1.15fr; gap: 10px 8px; align-self: start; }

/* 圖解 2：指令 / 方法 / 資料 三層 */
.dia2 { gap: 7px; justify-items: start; }
.dia2 .layer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; border-radius: 6px; font-size: .82rem; }
.dia2 .layer:nth-child(1) { height: 36px; width: 58%; background: var(--gold-light); color: var(--ink); }
.dia2 .layer:nth-child(2) { height: 44px; width: 80%; border: 1px solid var(--ink); }
.dia2 .layer:nth-child(3) { height: 56px; width: 100%; background: var(--cream); }
.dia2 .layer b { font-weight: 600; }
.dia2 .layer span { color: var(--muted); font-size: .76rem; }
.dia2 .layer:nth-child(1) span { color: var(--ink); }

/* 圖解 3：舊對話 → 交接文件 → 新對話 */
.dia3 { grid-template-columns: 1fr 1.35fr 1fr; gap: 12px; align-items: center; }
.dia3 .win { border: 1px solid var(--line); border-radius: 6px; display: grid; gap: 6px; padding: 8px; height: 104px; align-content: start; background: var(--paper); }
.dia3 .win i { display: block; height: 9px; border-radius: 5px; background: var(--cream); width: 85%; }
.dia3 .win i:nth-child(even) { background: var(--ink); width: 55%; justify-self: end; }
.dia3 .win--old { opacity: .4; }
.dia3 .win--new i:nth-child(n+3) { background: transparent; border: 1px dashed var(--line); height: 9px; opacity: 1; }
.dia3 .doc { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; display: grid; gap: 6px; box-shadow: 5px 5px 0 var(--gold-light); }
.dia3 .doc b { font-size: .8rem; font-weight: 600; }
.dia3 .doc p { font-size: .74rem; display: flex; align-items: center; gap: 6px; line-height: 1.3; }
.dia3 .doc p::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); flex: none; }
.dia3 .doc p.next::before { background: var(--gold); }

/* 圖解 4：四項檢查 */
.dia4 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.dia4 .chk { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; font-size: .9rem; font-weight: 600; background: var(--paper); }
.dia4 .chk i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; }
.dia4 .chk i::after { content: ""; width: 8px; height: 4px; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg) translateY(-1px); }
.dia4 .chk:nth-child(4) i { background: var(--gold); }
.dia4 .chk:nth-child(4) i::after { border-color: var(--paper); }
.dia4 .chk small { grid-column: 2; font-weight: 400; color: var(--muted); font-size: .74rem; line-height: 1.3; }

/* ============================================================
   路徑區：匿名案例、三階段七步
   ============================================================ */
.case { background: var(--paper); padding: clamp(72px, 10vh, 128px) var(--gutter) 0; }
.case__inner { max-width: 1180px; margin: 0 auto; }
.case__head { max-width: 40em; display: grid; gap: 14px; margin-bottom: clamp(32px, 5vh, 56px); }
.case__head h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.2; letter-spacing: .02em; }
.case__head p { color: var(--muted); }
.case__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.case__visual { position: sticky; top: 24px; display: grid; gap: 16px; }

/* 流程圖：四個節點 */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.flow li { position: relative; display: grid; justify-items: center; gap: 8px; font-size: .78rem; text-align: center; color: var(--muted); padding: 0 4px; }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: calc(50% + 22px); right: calc(-50% + 22px); height: 1px; background: var(--line); }
.flow i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); position: relative; }
.flow i::before { content: ""; width: 14px; height: 14px; }
.flow .f1 i::before { background: linear-gradient(var(--muted), var(--muted)) 0 0 / 6px 6px no-repeat, linear-gradient(var(--muted), var(--muted)) 100% 0 / 6px 6px no-repeat, linear-gradient(var(--muted), var(--muted)) 0 100% / 6px 6px no-repeat, linear-gradient(var(--muted), var(--muted)) 100% 100% / 6px 6px no-repeat; }
.flow .f2 i { background: var(--ink); }
.flow .f2 i::before { width: 16px; height: 10px; border-top: 2px solid var(--gold-light); border-bottom: 2px solid var(--gold-light); box-shadow: inset 0 -2px 0 -0 transparent; }
.flow .f3 i { border: 1px solid var(--line); background: var(--paper); }
.flow .f3 i::before { width: 10px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg) translateY(-2px); }
.flow .f4 i { background: var(--gold); }
.flow .f4 i::before { width: 16px; height: 12px; border: 2px solid var(--paper); border-radius: 2px; }
.flow b { font-weight: 600; color: var(--ink); }

/* 模擬官網畫面 */
.mock { margin: 0; border-radius: 8px; overflow: hidden; background: var(--cream); box-shadow: 0 1px 0 var(--line), 0 20px 40px -30px rgba(26, 24, 22, .5); container-type: inline-size; }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--paper); border-bottom: 1px solid var(--line); }
.mock__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.mock__bar i:first-child { background: var(--gold-light); }
.mock__bar span { margin-left: 8px; flex: 1; height: 10px; border-radius: 5px; background: var(--cream); max-width: 40%; }
.mock__site { background: var(--paper); color: var(--ink); display: grid; }
.mock__nav { display: flex; justify-content: space-between; align-items: center; padding: 3cqi 4cqi; font-size: 3cqi; font-family: var(--serif); letter-spacing: .08em; }
.mock__hero { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); }
.mock__hero .m-copy { padding: 4cqi; gap: 2cqi; }
.mock__hero .m-h { font-size: 5.4cqi; }
.mock__hero .m-img { aspect-ratio: 5 / 4; }
.mock__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2cqi; padding: 3cqi 4cqi 4cqi; }
.mock__row .m-img { aspect-ratio: 1; }
.mock__row .m-t { margin-top: 1.2cqi; }
.mock figcaption { padding: 10px 14px; font-size: .78rem; color: var(--muted); background: var(--paper); border-top: 1px solid var(--line); }

.case__note { font-size: .82rem; color: var(--muted); display: flex; gap: 10px; align-items: baseline; }

/* 時間軸：三階段、七步連續編號 */
.route { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: clamp(28px, 4vh, 44px); }
.phase__name { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; letter-spacing: .06em; color: var(--ink); margin-bottom: 14px; }
.phase__name::before { content: ""; width: 22px; height: 1px; background: var(--gold); flex: none; }
.phase__name small { font-family: var(--sans); font-size: .78rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.phase ol { list-style: none; margin: 0; padding: 0; position: relative; }
.phase ol::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 1px; background: var(--line); }
.phase--planned ol::before { background: repeating-linear-gradient(to bottom, var(--gold-light) 0 4px, transparent 4px 9px); }
.step { counter-increment: step; position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 18px; padding: 14px 0 18px; }
.step::before {
  content: counter(step);
  grid-row: 1 / 3; align-self: start; margin-top: 2px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: .95rem; font-weight: 600;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 0 0 4px var(--paper);
  transition: background-color .18s, color .18s;
}
.step:hover::before { background: var(--gold-light); color: var(--ink); }
.step h4 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.35; letter-spacing: .02em; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 5px; }
.step p { color: var(--muted); max-width: 34em; font-size: .97rem; }
.step--planned::before { background: var(--paper); color: var(--muted); border: 1px solid var(--gold); }
.step--planned:hover::before { background: var(--gold-light); color: var(--ink); }
.tag { display: inline-block; font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--gold-light); padding: 2px 8px; border-radius: 999px; line-height: 1.4; vertical-align: middle; }

/* 收尾 CTA */
.cta { max-width: 1180px; margin: clamp(48px, 8vh, 96px) auto 0; padding: clamp(32px, 5vh, 56px) 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.cta p { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.7rem); letter-spacing: .02em; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* 頁尾 */
.foot { background: var(--ink); color: var(--on-ink-muted); padding: 28px var(--gutter) 48px; font-size: .82rem; display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; }
.foot b { color: var(--paper); font-family: var(--serif); letter-spacing: .14em; font-weight: 600; }
.foot a { color: var(--on-ink-muted); text-decoration: none; border-bottom: 1px solid var(--on-ink-line); }
.foot a:hover { color: var(--paper); border-bottom-color: var(--gold-light); }

#guides, #path, #show { scroll-margin-top: 16px; }

/* ============================================================
   平板：900px 以下改為上下堆疊
   ============================================================ */
@media (max-width: 899px) {
  .hero__body { flex-direction: column; gap: 22px; }
  .hero__aside { max-width: none; flex: none; width: 100%; }
  .index { display: none; }
  .hero__index { padding-top: 14px; }
}

/* ============================================================
   手機
   ============================================================ */
@media (max-width: 760px) {
  :root { --top-h: 52px; --wall-gap: 10px; --cap-h: 18px; }
  .top__nav { display: none; }
  .top__right { gap: 0; }
  .top__brand b { font-size: 1.2rem; }
  .hero { padding-bottom: 22px; }
  .hero__title { margin-bottom: 12px; line-height: 1.15; }
  .hero__body { gap: 14px; }
  .hero__aside { gap: 12px; }
  .hero__lead { font-size: .9rem; line-height: 1.5; max-width: none; }
  .hero__actions .btn { min-height: 38px; padding: 0 16px; font-size: .84rem; }
  .hero__index { padding-top: 0; border-top: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .hero__index h2 { font-size: .95rem; }
  .hero__index p { font-size: .74rem; }
  .wall { gap: 10px 8px; }
  .frame { padding: 2px; border-radius: 4px; }
  .site { aspect-ratio: 3 / 4; }
  .tile figcaption { margin-top: 4px; font-size: 12px; gap: 6px; }
  .tile figcaption span { display: none; }
  .tile:hover .frame { transform: none; }

  /* 直式迷你網站：把左右欄改為上下 */
  .w1__hero { grid-template-columns: 1fr; grid-template-rows: 1.15fr 1fr; }
  .w1__hero .m-img { order: -1; }
  .w2__wall { grid-template-columns: 1fr 1fr; grid-template-rows: 1.3fr 1fr 1fr; }
  .w2__wall > :nth-child(4) { grid-column: 1 / 3; }
  .w3__hero { grid-template-columns: 1fr; grid-template-rows: 1fr 1.1fr; }
  .w4__body { grid-template-columns: 1fr; align-content: end; }
  .w4__menu { width: 100%; }
  .w5__menu { gap: 1.4cqi 3cqi; }
  .w6__blocks { grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; }
  .w6__blocks > :first-child { grid-row: 1 / 3; }
  .w6__cap { grid-template-columns: 1fr 1fr; }
  .w7__body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .w9__feat { grid-template-columns: 1fr; gap: 2cqi; }

  .read, .case { padding-left: 16px; padding-right: 16px; }
  .read__head { grid-template-columns: 1fr; align-items: start; }
  .essay a { grid-template-columns: 1fr; gap: 16px; }
  .dia { padding: 16px; min-height: 160px; }
  .dia1 .files { width: 50px; height: 60px; }
  .dia1 .files i { width: 36px; height: 46px; }
  .dia1 .arrow { width: 20px; }
  .dia3 { grid-template-columns: .7fr 1.6fr .7fr; gap: 8px; }
  .dia3 .doc { padding: 8px 10px; }

  .case__grid { grid-template-columns: 1fr; gap: 32px; }
  .case__visual { position: static; }
  .flow li { font-size: .72rem; }
  .step { grid-template-columns: 32px minmax(0, 1fr); gap: 2px 14px; }
  .step::before { width: 32px; height: 32px; font-size: .88rem; }
  .phase ol::before { left: 15px; }
  .cta { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   減少動態：不進場、不位移，狀態仍以顏色呈現
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .tile { animation: none; }
  .frame, .btn, .index button, .step::before, .essay__text h3, .essay__more { transition: none; }
  .tile:hover .frame, .tile.is-lit .frame { transform: none; }
}
