/* 白底編輯式人像版（本機試作，2026-11-22，Claude）
   版面來源：首頁-編輯式人像-白底-1440.png／-390.png（座標與字級見 製作編輯式人像版.py）
   只做亮色一套。文字取自正式站 template.html 與定案文案，不另編。 */
/* 熒黑缺的字（教清真・告值）用思源黑體補：熒黑本身由思源黑體改來，字形骨架一致。只向 Google Fonts 要這幾個字，檔案很小。
   之後文字若多出新缺字，切字型.py 會印出來，把字加進下面 text= 參數。 */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&text=%E6%95%99%E6%B8%85%E7%9C%9F%E3%83%BB%E5%91%8A%E5%80%BC%E9%8E%AE&display=swap");
@font-face { font-family: "Glow Sans TC"; font-weight: 400; font-display: swap; src: url(fonts/glow-400.woff2?v=209aa0fbd6) format("woff2"); }
@font-face { font-family: "Glow Sans TC"; font-weight: 500; font-display: swap; src: url(fonts/glow-500.woff2?v=d6cd362cbf) format("woff2"); }
@font-face { font-family: "Glow Sans TC"; font-weight: 700; font-display: swap; src: url(fonts/glow-700.woff2?v=b4942b137c) format("woff2"); }

:root {
  --paper: #FFFFFF;
  --ink: #1B1A17;
  --dim: #62645B;
  --rule: #DFE0D8;
  --panel: #E8E9E4;
  --dot: #E77932;
  --gut: 80px;          /* 左右留白 */
  --max: 1440px;
  --font: "Glow Sans TC", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-weight: 400; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 16px; z-index: 10; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 99px; }
:focus-visible { outline: 2px solid var(--dot); outline-offset: 3px; }

/* ---------- 頁首 ---------- */
.site-head { position: relative; z-index: 5; }
.home .site-head { position: absolute; inset: 0 0 auto 0; }
.site-head .wrap { display: flex; justify-content: space-between; align-items: flex-start; padding-top: 30px; }
.logo {
  font-family: "Archivo Black", var(--font); font-size: 28px; line-height: 1; letter-spacing: -.01em;
  text-decoration: none; color: var(--ink); padding-top: 2px;
}
.logo span { color: var(--dot); }
.nav { display: flex; gap: 0; list-style: none; margin: 0; padding: 10px 0 0; }
.nav a {
  display: block; font-size: 14px; text-decoration: none; padding: 6px 0 6px 36px; color: var(--ink);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--dot); }

/* ---------- 首屏 ---------- */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 552px) minmax(0, 1fr);
  column-gap: 40px;
  align-items: start;
}
.hero-text { padding-top: 157px; }
.hello { font-size: 23px; margin: 0 0 22px; letter-spacing: .02em; }
.hello .nb { display: inline-block; }   /* 窄欄時從逗號後整段換行，不留「顧問。」單獨一行 */
.big {
  font-size: 58px; font-weight: 700; line-height: 1.36; letter-spacing: .02em;
  margin: 0 0 26px -3px;
}
.big span { display: block; white-space: nowrap; }
.fields { font-size: 17px; letter-spacing: .08em; color: var(--dim); margin: -8px 0 30px; }   /* 2026-11-23 主標題改一句話，三個領域降成小字 */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.intro { font-size: 20px; line-height: 1.7; color: var(--ink); margin: 0 0 56px; max-width: 360px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 36px; border-radius: 24px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-size: 16px; font-weight: 500; letter-spacing: .02em;
  transition: background .2s;
}
.btn:hover { background: #3a3832; }
.btn .arr { font-family: system-ui, sans-serif; }

.arch {
  position: relative; overflow: hidden; margin: 0;
  aspect-ratio: 552 / 733;
  background: var(--panel);
  border-radius: 0 0 50% 50% / 0 0 37.65% 37.65%;   /* 下緣是半圓 */
}
.arch img {
  position: absolute; left: 50%; top: 11.5%;
  width: 108%; max-width: none; height: auto;
  transform: translateX(-50%);
}

.roles {
  list-style: none; margin: 0; padding: 180px 0 0 48px;
  display: grid; row-gap: 56px;
}
.roles b { display: block; font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: .02em; }
.roles span { display: block; font-size: 14px; color: var(--dim); margin-top: 8px; }

/* ---------- 區塊共通 ---------- */
.sec::before {   /* 分隔線跟內文同寬，左右留白 */
  content: ""; display: block; height: 0;
  width: calc(100% - 2 * var(--gut)); max-width: calc(var(--max) - 2 * var(--gut));
  margin: 0 auto var(--gap, 56px); border-top: 1px solid var(--rule);
}
.sec-label { font-size: 42px; font-weight: 700; line-height: 1.3; letter-spacing: .02em; margin: 0 0 44px; }
.sec-title { font-size: 42px; font-weight: 700; line-height: 1.3; letter-spacing: .02em; margin: 0; }

/* 合作方式 */
#services { --gap: 40px; margin-top: 67px; padding: 0 0 64px; scroll-margin-top: 24px; }
.svc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
.svc li { padding: 0 42px 26px; border-left: 1px solid var(--rule); }
.svc li:nth-child(3n+1) { padding-left: 0; border-left: 0; }   /* 2026-11-23 改五項：每列第一格不畫左線 */
.svc li:nth-child(3n) { padding-right: 0; }
.svc-more h3 { color: var(--dim); font-style: italic; }   /* 第六格：持續等你來邀約 */
.svc li a { display: inline-block; margin-top: 16px; font-size: 16px; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--dot); }
.svc h3 { font-size: 23px; font-weight: 700; margin: 0 0 18px; letter-spacing: .02em; }
.svc p { font-size: 18px; line-height: 1.75; color: #4A4C44; margin: 0; }

/* 我在意的事 */
.values { padding: 0 0 112px; }
.values .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); column-gap: 40px; }
.values p { font-size: 23px; line-height: 1.78; margin: 0; }

/* 合作案例 */
.cases { padding: 0 0 80px; }
.cases .sec-title { font-size: 40px; margin-bottom: 44px; }
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); column-gap: 40px; padding: 0 0 56px; }
.case + .case { border-top: 1px solid var(--rule); padding-top: 48px; }
.case h3 { font-size: 29px; font-weight: 700; line-height: 1.35; margin: 0; letter-spacing: .02em; }
.case h3 small { display: block; font-size: 24px; font-weight: 500; margin-top: 10px; }
.case .meta { font-size: 14px; color: var(--dim); margin: 18px 0 0; }
.case p { font-size: 19px; line-height: 1.8; margin: 0 0 24px; }
.case p:last-child { margin-bottom: 0; }
.case blockquote { margin: 4px 0 24px; padding: 2px 0 2px 20px; border-left: 3px solid var(--dot); font-size: 19px; line-height: 1.8; }
.case-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); column-gap: 40px; padding-top: 8px; }
.case-cta .btn { grid-column: 2; justify-self: start; }
.case cite { display: block; font-style: normal; font-size: 14px; color: var(--dim); margin-top: 6px; }

/* 合作過的單位 */
.partners { padding: 0 0 80px; scroll-margin-top: 24px; }
.partners .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); column-gap: 40px; }
.partners .sec-title { font-size: 40px; }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; margin: 0; }
.pgrid dt { font-size: 14px; color: var(--dim); letter-spacing: .04em; margin: 0 0 10px; }
.pgrid dd { margin: 0; }
.pgrid ul { list-style: none; margin: 0; padding: 0; font-size: 18px; line-height: 1.9; }

/* 聯絡 */
.contact { padding: 0 0 88px; scroll-margin-top: 24px; }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); column-gap: 40px; }
.contact p { font-size: 19px; line-height: 1.8; margin: 0 0 30px; }
.contact .addr { font-size: 15px; color: var(--dim); margin: 18px 0 0; line-height: 2; }
.contact .addr a { color: var(--ink); text-underline-offset: 3px; }

/* 頁尾 */
.site-foot::before { content: ""; display: block; width: calc(100% - 2 * var(--gut)); max-width: calc(var(--max) - 2 * var(--gut)); margin: 0 auto; border-top: 1px solid var(--rule); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 40px; font-size: 16px; }
.site-foot .slogan { color: var(--dim); font-size: 14px; margin-left: 1.2em; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--dot); }

/* ---------- 合作流程與計價（合作頁，2026-11-23） ---------- */
.flow { padding: 0 0 80px; scroll-margin-top: 24px; }
.flow .sec-title { font-size: 40px; margin-bottom: 16px; }
.flow-lead { font-size: 19px; color: var(--dim); margin: 0 0 44px; }
.steps { list-style: none; margin: 0 0 64px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { padding: 0 32px 8px; border-left: 1px solid var(--rule); }
.steps li:first-child { padding-left: 0; border-left: 0; }
.steps li:last-child { padding-right: 0; }
.steps .num { display: block; font-family: "Archivo Black", var(--font); font-size: 15px; color: var(--dot); letter-spacing: .04em; margin-bottom: 14px; }
.steps h3 { font-size: 21px; font-weight: 700; margin: 0 0 12px; letter-spacing: .02em; }
.steps p { font-size: 17px; line-height: 1.75; color: #4A4C44; margin: 0; }
.steps a { display: inline-block; margin-top: 14px; font-size: 16px; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--dot); }
.flow-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); column-gap: 40px; border-top: 1px solid var(--rule); padding: 40px 0; }
.flow-row:last-child { padding-bottom: 0; }
.flow-sub { font-size: 26px; font-weight: 700; margin: 0; letter-spacing: .02em; }
.flow-text p { font-size: 18px; line-height: 1.8; margin: 0 0 18px; }
.flow-text p:last-child { margin-bottom: 0; }
.sizes { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.7; }
.sizes th, .sizes td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); }
.sizes thead th { font-size: 14px; font-weight: 500; color: var(--dim); padding-top: 0; }
.sizes tbody th { font-weight: 700; white-space: nowrap; }
.sizes td:last-child { padding-right: 0; }
.flow .note { font-size: 14px; color: var(--dim); margin: 14px 0 0; }
.faq { margin: 0; }
.faq > div + div { margin-top: 24px; }
.faq dt { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.faq dd { font-size: 17px; line-height: 1.8; color: #4A4C44; margin: 0; }
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(2) { padding-right: 0; }
  .flow-row { display: block; }
  .flow-sub { margin-bottom: 20px; }
}
@media (max-width: 760px) {
  .flow { --gap: 40px; padding: 0 0 48px; }
  .flow .sec-title { font-size: 29px; margin-bottom: 12px; }
  .flow-lead { font-size: 16px; margin-bottom: 32px; }
  .steps { grid-template-columns: 1fr; row-gap: 28px; margin-bottom: 40px; }
  .steps li, .steps li:nth-child(n) { padding: 0; border-left: 0; }
  .steps h3 { font-size: 19px; }
  .steps p, .faq dd { font-size: 16px; }
  .flow-row { padding: 32px 0; }
  .flow-sub { font-size: 22px; }
  .flow-text p { font-size: 16px; }
  .faq dt { font-size: 17px; }
  .sizes thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sizes, .sizes tbody, .sizes tr, .sizes th, .sizes td { display: block; }
  .sizes tr { padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .sizes tr:first-child { padding-top: 0; }
  .sizes th, .sizes td { border: 0; padding: 0; }
  .sizes tbody th { font-size: 18px; margin-bottom: 6px; }
  .sizes td + td { margin-top: 6px; }
  .sizes td::before { content: attr(data-label) "："; color: var(--dim); }
}

/* ---------- 平板：文字＋人像兩欄，四身分移到下方 ---------- */
@media (max-width: 1360px) {
  :root { --gut: 48px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .roles { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 48px 0 0; column-gap: 24px; }
  .big { font-size: 52px; }
  .nav a { padding-left: 40px; }
  .site-head, .home .site-head { position: static; }   /* 窄一點時導覽不壓到人像框；首頁也要套到，否則手機版 logo 會疊在開場字上 */
  .arch { margin-top: 16px; border-top-left-radius: 24px; border-top-right-radius: 24px; }
  .hero-text { padding-top: 64px; }
}
@media (max-width: 1024px) {
  .svc { grid-template-columns: 1fr; }
  .svc li, .svc li:first-child { padding: 0 0 32px; border-left: 0; max-width: 640px; }
}

/* ---------- 手機（以 390 寬稿為準） ---------- */
@media (max-width: 760px) {
  :root { --gut: 25px; }
  .site-head { position: static; }
  .site-head .wrap { padding-top: 24px; align-items: center; }
  .logo { font-size: 24px; }
  .nav { padding: 0; }
  .nav a { font-size: 14px; line-height: 20px; padding: 12px 0 12px 18px; }
  .hero .wrap { display: block; }
  .hero-text { padding-top: 46px; }
  .hello { font-size: 18px; margin-bottom: 14px; }
  .big { font-size: 47px; line-height: 1.34; margin: 0 0 24px -2px; }
  .intro { font-size: 17px; line-height: 1.75; margin-bottom: 24px; max-width: none; }
  .arch { margin-top: 48px; }
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 30px; padding: 40px 0 0; }
  .roles b { font-size: 20px; }
  .roles span { font-size: 13px; margin-top: 6px; }

  #services { margin-top: 64px; padding: 34px 0 20px; }
  .sec-label { font-size: 29px; margin-bottom: 28px; }
  .svc { grid-template-columns: 1fr; }
  .svc li { padding: 0 0 36px; border-left: 0; }
  .svc h3 { font-size: 21px; margin-bottom: 14px; }
  .svc p { font-size: 16px; line-height: 1.75; }

  .values, .cases, .contact, .partners { --gap: 40px; padding: 0 0 48px; }
  .partners .wrap { display: block; }
  .partners .sec-title { font-size: 29px; margin-bottom: 28px; }
  .pgrid { gap: 28px 20px; }
  .pgrid > .wide { grid-column: 1 / -1; order: 1; }
  .pgrid ul { font-size: 16px; line-height: 1.8; }
  #services { --gap: 34px; }
  .values .wrap, .case, .contact .wrap { display: block; }
  .sec-title, .cases .sec-title { font-size: 29px; margin-bottom: 28px; }
  .values p { font-size: 18px; }
  .case h3 { font-size: 27px; }
  .case h3 small { font-size: 22px; }
  .case .meta { font-size: 13px; margin: 12px 0 24px; }
  .case p, .case blockquote, .contact p { font-size: 16px; line-height: 1.8; }
  .case { padding-bottom: 40px; }
  .case + .case { padding-top: 40px; }
  .case-cta { display: block; padding-top: 0; }
  .site-foot .wrap { flex-direction: column; gap: 8px; padding-bottom: 32px; }
  .site-foot .slogan { display: block; margin: 4px 0 0; }
}
@media (max-width: 360px) {
  :root { --gut: 18px; }
  .pgrid { grid-template-columns: 1fr; }
  .big { font-size: 42px; }
  .nav a { padding-left: 11px; }
}

/* ---------- 內頁（關於我、合作、文章） ---------- */
.page-head { padding: 96px 0 72px; }
.pagetitle { font-size: 58px; font-weight: 700; line-height: 1.25; letter-spacing: .02em; margin: 0; }
.pagetitle .dot, .dot { color: var(--dot); }
.page-head .lead { font-size: 20px; line-height: 1.7; margin: 24px 0 0; max-width: 560px; }
.eyebrow { font-size: 18px; font-weight: 500; color: var(--dim); margin: 0 0 14px; letter-spacing: .04em; }

.about-top .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); column-gap: 40px; align-items: start; padding-top: 96px; padding-bottom: 96px; }
.about-photo { max-width: 420px; margin: 48px 0 0; }
.about-photo .arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: none; left: 0; top: 0; }
.about-photo .arch { aspect-ratio: 4 / 5; border-radius: 0 0 50% 50% / 0 0 40% 40%; }
.story p { font-size: 19px; line-height: 1.85; margin: 0 0 28px; }
.story p:last-child { margin-bottom: 0; }
.story .first { font-size: 23px; margin-bottom: 20px; }
/* 關於我全文（2026-11-23 Corrie 定稿）：小標與內文連結 */
.story h2 { font-size: 23px; font-weight: 700; line-height: 1.5; letter-spacing: .02em; margin: 64px 0 20px; }
.story h2.first { margin-top: 0; }
.story p b { font-weight: 700; }
.story a { color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--dot); }
@media (min-width: 761px) { .about-top .wrap > div:first-child { position: sticky; top: 32px; } }   /* 內文變長，左邊照片跟著捲 */

.next { padding: 0 0 96px; }
.next .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); column-gap: 40px; }
.next .btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }

.empty { padding: 0 0 140px; }
.empty .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); column-gap: 40px; }
.empty b { display: block; font-size: 29px; font-weight: 700; margin-bottom: 10px; }
.empty p { font-size: 19px; color: var(--dim); margin: 0 0 32px; }

@media (max-width: 1360px) {
  .page-head { padding-top: 56px; }
  .about-top .wrap { padding-top: 56px; }
}
@media (max-width: 760px) {
  .page-head { padding: 40px 0 48px; }
  .pagetitle { font-size: 42px; }
  .page-head .lead { font-size: 17px; }
  .about-top .wrap, .next .wrap, .empty .wrap { display: block; }
  .about-top .wrap { padding-top: 40px; padding-bottom: 56px; }
  .about-photo { max-width: 300px; margin: 32px 0 40px; }
  .story p { font-size: 16px; margin-bottom: 22px; }
  .story .first { font-size: 19px; }
  .story h2 { font-size: 19px; margin-top: 44px; }
  .next, .empty { padding-bottom: 64px; }
  .empty b { font-size: 24px; }
  .empty p { font-size: 16px; }
}

/* 首頁精簡版：案例只列標題，連到合作頁 */
.more { margin: 8px 0 0; font-size: 16px; }
.more a { text-decoration: none; border-bottom: 1.5px solid var(--dot); padding-bottom: 2px; }
.more a:hover { color: var(--dot); }
.case-list { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--rule); }
.case-list a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) auto; column-gap: 40px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.case-list b { font-size: 24px; font-weight: 700; letter-spacing: .02em; }
.case-list span { font-size: 15px; color: var(--dim); }
.case-list .arr { font-size: 20px; color: var(--ink); transition: transform .2s; }
.case-list a:hover b, .case-list a:hover .arr { color: var(--dot); }
.case-list a:hover .arr { transform: translateX(4px); }
.cases.brief { padding-bottom: 88px; }
@media (max-width: 760px) {
  .case-list a { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; padding: 20px 0; }
  .case-list b { font-size: 19px; grid-column: 1; }
  .case-list span:not(.arr) { grid-column: 1; grid-row: 2; font-size: 13px; }
  .case-list .arr { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .cases.brief { padding-bottom: 48px; }
}

/* ===== 排版收尾（2026-11-22，文字定稿後統一調整） ===== */
/* 換行：段落避免最後一行只剩一兩個字，標題斷行平均 */
p, li, dd, blockquote { text-wrap: pretty; }
h2, h3 { text-wrap: balance; }

/* 區塊間距統一：分隔線下方留 56，每段結尾留 96 */
.sec { --gap: 56px; }
#services { --gap: 56px; margin-top: 72px; padding-bottom: 96px; }
.values, .cases, .cases.brief, .partners, .contact, .next { padding-bottom: 96px; }
.sec-label { margin-bottom: 40px; }
#services .more { margin-top: 32px; }

/* 關於我照片：上緣小圓角，跟首頁窄版人像框一致 */
.about-photo .arch { border-radius: 24px 24px 50% 50% / 24px 24px 40% 40%; }

/* 合作頁開場跟首頁開場同字級 */
.page-head .lead { font-size: 20px; line-height: 1.7; max-width: 620px; }

@media (max-width: 760px) {
  .sec { --gap: 40px; }
  #services { --gap: 40px; margin-top: 56px; padding: 0 0 56px; }
  .values, .cases, .cases.brief, .partners, .contact, .next { padding-bottom: 56px; }
  .sec-label { margin-bottom: 28px; }
  #services .more { margin-top: 8px; }
  .page-head .lead { font-size: 17px; line-height: 1.75; }
  .empty { padding-bottom: 72px; }
}

/* ===== 動畫（2026-11-22，照「個人網站 動畫機會清單」四項；不用彈跳緩動、不用 transition: all） ===== */
:root { --ease-out: cubic-bezier(0.23, 1, 0.32, 1); }

/* 1. 首頁首屏開場：每次載入首頁播一次，依序淡入上移；人像微縮淡入；四個身分最後依序出現 */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes settle { from { opacity: 0; transform: scale(1.03); } }
@keyframes fade-in { from { opacity: 0; } }
.home .in { animation: rise 500ms var(--ease-out) both; }
.home .in-2 { animation-delay: 70ms; }
.home .in-3 { animation-delay: 140ms; }
.home .in-4 { animation-delay: 210ms; }
.home .in-photo { animation: settle 700ms var(--ease-out) both; }
.home .in-roles li { animation: rise 500ms var(--ease-out) both; }
.home .in-roles li:nth-child(1) { animation-delay: 280ms; }
.home .in-roles li:nth-child(2) { animation-delay: 330ms; }
.home .in-roles li:nth-child(3) { animation-delay: 380ms; }
.home .in-roles li:nth-child(4) { animation-delay: 430ms; }

/* 2. 按鈕按下的回饋；手機拿掉點擊時的灰色閃光 */
a, button { -webkit-tap-highlight-color: transparent; }
.btn { transition: background-color 200ms ease-out, color 200ms ease-out, transform 160ms var(--ease-out); }
.btn:active { transform: scale(0.97); }

/* 3. 跨頁換頁：內容淡出淡入，頁首固定不閃（Chrome、Safari 18.2 以上；其他瀏覽器照舊直接換頁） */
@view-transition { navigation: auto; }
.site-head { view-transition-name: site-head; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; animation-timing-function: ease-out; }

/* 4. 文字連結 hover 變色改成 150ms 漸變，只在有滑鼠的裝置 */
.case-list .arr { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .nav a, .logo, .site-foot a, .more a, .contact .addr a, .case-list b { transition: color 150ms ease-out; }
  .case-list .arr { transition: transform 200ms var(--ease-out), color 150ms ease-out; }
}

/* 減少動態：開場只淡入不位移，按鈕不縮，換頁不做轉場 */
@media (prefers-reduced-motion: reduce) {
  .home .in, .home .in-photo, .home .in-roles li { animation: fade-in 200ms ease-out both; animation-delay: 0ms; }
  .btn:active { transform: none; }
  @view-transition { navigation: none; }
  .case-list a:hover .arr { transform: none; }
}

/* ===== check-in 便利貼（2026-11-22 試作）：整頁唯一歪斜的元素 ===== */
:root { --note: #FBF7EC; }
.hero .wrap { position: relative; }
.ci {
  position: relative; z-index: 3; width: 260px;
  background: var(--note); color: var(--ink);
  padding: 16px 18px 14px; transform: rotate(-2deg);
  box-shadow: 0 1px 2px rgba(27, 26, 23, .08), 0 14px 28px -16px rgba(27, 26, 23, .42);
}
.ci-m { display: block; font-size: 12px; letter-spacing: .06em; color: var(--dim); }
.ci-q { font-size: 17px; font-weight: 700; line-height: 1.55; margin: 8px 0 14px; text-wrap: pretty; }
.ci-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ci-btns button {
  appearance: none; font: inherit; font-size: 13px; line-height: 1; cursor: pointer;
  min-height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  transition: background-color 200ms ease-out, color 200ms ease-out, transform 160ms var(--ease-out);
}
.ci-btns button.primary { background: var(--ink); color: #fff; }
.ci-btns button:active { transform: scale(0.97); }
.ci-note { font-size: 12px; line-height: 1.7; color: var(--dim); margin: 10px 0 0; }
.ci-note[hidden], .ci-carry[hidden] { display: none; }
.ci-note a { color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--dot); white-space: nowrap; }
.ci-carry { font-size: 16px; margin: -12px 0 24px; padding-left: 14px; border-left: 3px solid var(--dot); }

/* 桌機：貼在拱形框右下緣，壓到一點照片邊，在「拇指園」下方 */
.hero-text { grid-column: 1; grid-row: 1; }
.hero .arch { grid-column: 2; grid-row: 1; }
.hero .roles { grid-column: 3; grid-row: 1; }
.hero .ci { grid-column: 3; grid-row: 2; justify-self: start; margin: -132px 0 0 -100px; }

/* 平板：人像框右下角往外貼一點，四個身分往下讓位 */
@media (max-width: 1360px) {
  .hero .ci { grid-column: 2; grid-row: 1; align-self: end; justify-self: end; margin: 0 -12px -72px 0; }
  .hero .roles { grid-column: 1 / -1; grid-row: 2; }
  .roles { padding-top: 112px; }
}

/* 手機：壓在照片卡片上緣右側；人像框往下讓出位置，便利貼只蓋到框頂的空白 */
@media (max-width: 760px) {
  .hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); }
  .hero-text { grid-column: 1; grid-row: 1; }
  .hero .arch { grid-column: 1; grid-row: 2; margin-top: 232px; }
  .hero .roles { grid-column: 1; grid-row: 3; padding-top: 40px; }
  .hero .ci { grid-column: 1; grid-row: 2; align-self: start; justify-self: end; width: min(250px, 78%); margin: 28px -4px 0 0; }
  .ci-q { font-size: 16px; }
}

/* 進場：排在開場淡入最後一拍，約 0.5 秒後用 0.3 秒輕輕貼上去 */
@keyframes stick { from { opacity: 0; transform: translateY(-6px) rotate(-3.5deg) scale(1.03); } to { opacity: 1; transform: rotate(-2deg); } }
.home .ci { animation: stick 300ms var(--ease-out) 500ms both; }
@media (prefers-reduced-motion: reduce) {
  .home .ci { animation: fade-in 200ms ease-out both; }
}

/* 選單五項（加了工具箱，2026-11-23）：字不折行，手機上縮小間距 */
.nav a { white-space: nowrap; }
@media (max-width: 760px) { .nav a { padding-left: 12px; font-size: 13px; } }
@media (max-width: 360px) { .nav a { padding-left: 8px; } .logo { font-size: 21px; } }
/* 怎麼計價：影響報價的因素（2026-11-23） */
.factors { margin: -6px 0 18px; padding: 0; list-style: none; font-size: 18px; line-height: 1.9; }
.factors li::before { content: "・"; color: var(--dot); }
@media (max-width: 760px) { .factors { font-size: 16px; } }
/* 步驟一：通話會問的幾件事（2026-11-23） */
.steps .ask-lead { margin-top: 12px; }
.steps .asks { margin: 4px 0 12px; font-size: 16px; line-height: 1.75; color: #4A4C44; }
.factors li, .steps .factors li:nth-child(n) { position: relative; padding: 0 0 0 1.1em; border: 0; }
.factors li::before { position: absolute; left: 0; top: 0; }

/* 首頁身分從四格改三格（2026-11-23，「徒步冒險」移到「走過的路」頁）：平板一排三格 */
@media (max-width: 1360px) and (min-width: 761px) { .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 手機也一排三格（2026-11-23 Corrie）：字縮小一點，三個名稱都不折行 */
@media (max-width: 760px) {
  .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 12px; }
  .roles b { font-size: 18px; white-space: nowrap; }
  .roles span { font-size: 12px; line-height: 1.6; }
}
@media (max-width: 360px) { .roles { column-gap: 10px; } .roles b { font-size: 16px; letter-spacing: 0; } }
