/* ══════════════════════════════════════════════════════════════
   HUAZI · Maybe Design — 線上作品集樣式
   最常改的設定都在下面的 :root：
   ・--cat-A ~ --cat-Z：各分類顏色（網站與 PDF 共用）
   ・--paper / --ink / --sage …：底色、文字色、品牌綠
   ・--serif / --sans：宋體（標題）與黑體（內文）
   ・字型：中文是昭源宋體／昭源黑體；英文字母與數字是 Baskervville（宋體搭配）／Mona Sans（黑體搭配）
   ══════════════════════════════════════════════════════════════ */
/* ── 英文字型（只負責英文字母、數字與西文標點；中文一律用昭源字型）──
   Mona Sans：https://github.com/github/mona-sans（黑體的英文）
   ANRT Baskervville：https://github.com/anrt-type/ANRT-Baskervville（宋體的英文）
   兩套都是 SIL Open Font License 1.1，字型檔與授權在 assets/fonts/mona-sans、assets/fonts/baskervville */
@font-face {
  font-family: "Mona Sans WS"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("../fonts/mona-sans/MonaSans-VF.woff2") format("woff2-variations"), url("../fonts/mona-sans/MonaSans-VF.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-2013, U+2016-2025, U+2027-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Baskervville WS"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/baskervville/Baskervville-VF.woff2") format("woff2-variations"), url("../fonts/baskervville/Baskervville-VF.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-2013, U+2016-2025, U+2027-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Baskervville WS"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("../fonts/baskervville/Baskervville-Italic-VF.woff2") format("woff2-variations"), url("../fonts/baskervville/Baskervville-Italic-VF.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-2013, U+2016-2025, U+2027-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
:root {
  /* 分類顏色：A 博物館教育活動｜B 博物館展示及詮釋｜C 文創商品及ACG周邊｜D 公部門/企業視覺設計｜E VTuber視覺設計｜F 攝影｜Z 提案及研究 */
  --cat-A: #00A651;
  --cat-B: #0F6FFF;
  --cat-C: #FFB000;
  --cat-D: #7C4DFF;
  --cat-E: #FF2E7E;
  --cat-F: #FF6A13;
  --cat-Z: #00B3C7;

  /* 網站基本色 */
  --paper: #F4F5F2;      /* 頁面底色 */
  --ink: #20231F;        /* 主要文字 */
  --muted: #646B62;      /* 次要文字 */
  --rule: #CDD3CA;       /* 分隔線 */
  --mat: #E5E8E2;        /* 圖片載入前的底色、PDF 圖片襯底 */
  --sage: #4E7358;       /* 品牌綠（連結、選取中的導覽） */
  --sage-light: #D1DBD0; /* 首頁前言區塊、聯絡卡片底色 */
  --icon: var(--ink);    /* 所有 icon 的顏色（全站統一單色；深色按鈕上會自動變白） */

  /* 字型：英文在前、中文在後。英文字母用 Baskervville／Mona Sans，中文自動落到昭源宋體／昭源黑體。字型檔在 assets/fonts/ */
  --serif: "Baskervville WS", "Chiron Sung HK WS", "Noto Serif CJK TC", "Noto Serif TC", "PMingLiU", serif;
  --sans: "Mona Sans WS", "Chiron Hei HK WS", "Noto Sans CJK TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;

  --radius: 12px;        /* 作品卡片圓角 */
  --gutter: clamp(16px, 3.2vw, 40px);
  --maxw: 1400px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.75;
  font-variant-numeric: lining-nums;  /* Baskervville 預設是舊式數字（高低不齊），統一用等高數字 */
  overflow-wrap: break-word; -webkit-tap-highlight-color: rgba(78, 115, 88, .15);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
/* 段落一律左右齊行、最後一行靠左，並避免最後一行只剩一個字（網站與 PDF 共用）。標題、按鈕、表格、卡片標題維持靠左。
   標點不放在行首（避頭點）：瀏覽器本身會處理「，。、）」」等，其餘「·～—／｜」由 app.js 的 kinsoku() 補上 */
:where(#main, .site-foot) :where(p, dd, blockquote, figcaption, .svc li > span) { text-align: justify; text-align-last: auto; text-wrap: pretty; }   /* 只套用在網站（後台、說明頁不變） */
.kin { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 6px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.num { font-variant-numeric: lining-nums; letter-spacing: .01em; }  /* 不用等寬數字：Mona Sans 的等寬數字是程式碼字型的樣子 */
.muted { color: var(--muted); }

/* ── icon（assets/js/icons.js 產生的 SVG；Material Symbols＋Simple Icons）── */
.ic { width: 1.25em; height: 1.25em; fill: var(--icon); flex: none; display: inline-block; vertical-align: -0.27em; }
.btn .ic, .seg button[aria-pressed="true"] .ic, .chip[aria-pressed="true"] .ic, .lightbox .ic { fill: currentColor; }

/* ── 頁首 ── */
.site-head {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 14px max(var(--gutter), env(safe-area-inset-right)) 14px max(var(--gutter), env(safe-area-inset-left));
}
.brand img { height: 28px; width: auto; }
.site-nav { display: flex; gap: 22px; justify-content: flex-end; font-size: 15px; }
.site-nav a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--rule); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--sage); color: var(--sage); }
.head-search { position: relative; }
.head-search .ic { position: absolute; left: 11px; top: 50%; width: 18px; height: 18px; margin-top: -9px; pointer-events: none; }
.head-search input { width: 220px; border: 1px solid var(--rule); background: #fff; border-radius: 999px; padding: 6px 14px 6px 34px; font-size: 14px; }
main { max-width: var(--maxw); margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 80px max(var(--gutter), env(safe-area-inset-left)); }
main:focus { outline: none; }

/* ── 首頁前言 ── */
.intro-panel {
  margin-top: 36px; background: var(--sage-light); padding: clamp(28px, 4vw, 52px); border-radius: var(--radius);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px 56px; align-items: end;
}
.intro-panel .who { font-size: 14px; color: var(--sage); margin: 0; }
.intro-panel .motto { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.22; margin: 12px 0 0; }
/* 標語每一行不自動斷開（斷行位置在 site.js 的 motto 用 \n 指定）；放不下時 app.js 的 fitMotto 會縮小字級 */
.intro-panel .motto span { display: inline-block; white-space: nowrap; }
.intro-panel > div:first-child { min-width: 0; }
.intro-panel .lead { margin: 0 0 20px; font-size: 16px; max-width: 30em; }
.intro-panel .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; padding: 9px 18px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-size: 14px; cursor: pointer; border-radius: 999px; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn .ic { width: 18px; height: 18px; margin-left: -3px; }
.btn:hover { background: var(--sage); border-color: var(--sage); color: #fff; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 64px 0 22px; border-top: 1px solid var(--ink); padding-top: 14px; }
.section-head h2 { font-family: var(--serif); font-weight: 700; font-size: 24px; margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }

/* ── 作品牆（Pinterest 式）：欄寬一致，高度依圖片比例 ── */
.wall { display: flex; align-items: flex-start; gap: var(--wall-gap, 24px); }
.wall-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--wall-row-gap, 36px); }
.pin { display: block; text-decoration: none; }
.pin-img { display: block; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--mat); }
.pin-img img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s; }
.pin-img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); pointer-events: none; }
.pin:hover .pin-img img { filter: brightness(.92); }
.pin-meta { display: flex; align-items: center; gap: 8px; margin-top: 11px; font-size: 13px; color: var(--muted); line-height: 1; }
.pin-meta i { width: 20px; height: 5px; border-radius: 3px; background: var(--c); flex: none; }
.pin-title { display: block; font-family: var(--serif); font-weight: 600; font-size: 16px; line-height: 1.45; margin-top: 6px; }
.pin:hover .pin-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* 分類索引 */
.halls { display: grid; grid-template-columns: 1fr; }
/* 分類索引：欄寬固定，每一列的說明文字都從同一條線開始（靠左對齊） */
.hall { display: grid; grid-template-columns: 14px minmax(0, 1fr) minmax(0, 1.3fr) 292px; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.hall .sw { width: 14px; height: 44px; background: var(--c); border-radius: 3px; }
.hall h3 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 19px; }
.hall .en { display: block; font-family: var(--sans); font-size: 12px; color: var(--muted); font-weight: 400; }
.hall p { margin: 0; font-size: 14px; color: var(--muted); }
.hall .thumbs { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.thumb { display: block; width: 52px; height: 52px; border-radius: 6px; overflow: hidden; background: var(--mat); flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.hall .count { font-size: 13px; color: var(--muted); margin-left: 8px; white-space: nowrap; min-width: 3.6em; text-align: right; }
.hall:hover h3 { text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ── 全部作品 ── */
.page-title { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3vw, 40px); margin: 44px 0 6px; }
.page-sub { margin: 0 0 24px; color: var(--muted); }
/* 篩選列：搜尋框、年份、展牆／清單、分類標籤都是同一個高度 --ctl-h；上下列的間距都是 10px */
.filters { --ctl-h: 34px; display: grid; gap: 10px; padding: 20px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); position: sticky; top: var(--head-h, 61px); background: var(--paper); z-index: 5; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sbox { position: relative; display: flex; flex: 1 1 260px; max-width: 460px; }
.sbox .ic { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; margin-top: -9px; pointer-events: none; }
.filters input[type=search] { flex: 1; min-width: 0; height: var(--ctl-h); border: 1px solid var(--rule); background: #fff; padding: 0 14px 0 38px; border-radius: 999px; font-size: 14px; line-height: normal; -webkit-appearance: none; appearance: none; }
.chip { border: 1px solid var(--rule); background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.chip .n { color: var(--muted); font-size: 12px; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] .n { color: #C9CEC6; }
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 4px 14px; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.seg .ic { width: 17px; height: 17px; }
.seg button + button { border-left: 1px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.filters select { height: var(--ctl-h); border: 1px solid var(--rule); border-radius: 999px; padding: 0 34px 0 14px; font-size: 13.5px; line-height: normal; cursor: pointer;
  -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath fill='%2320231F' d='M480-344 240-584l56-56 184 184 184-184 56 56-240 240Z'/%3E%3C/svg%3E") no-repeat right 11px center / 18px 18px; }
.filters .seg { height: var(--ctl-h); }
.filters .seg button { padding-top: 0; padding-bottom: 0; }
.filters .chip { height: var(--ctl-h); padding-top: 0; padding-bottom: 0; }
.result-line { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 22px; font-size: 14px; color: var(--muted); }
.linkish { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; color: var(--sage); font-size: 14px; }
.empty { padding: 60px 0; }
.empty h3 { font-family: var(--serif); margin: 0 0 6px; }
.register { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.register th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; border-bottom: 1px solid var(--ink); padding: 8px 10px 8px 0; }
.register td { border-bottom: 1px solid var(--rule); padding: 10px 10px 10px 0; vertical-align: top; text-wrap: pretty; }
.register td a { text-decoration: none; font-weight: 500; }
.register td a:hover { text-decoration: underline; }
.register .catdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 6px; }
.register .c-year, .register .c-cat { white-space: nowrap; }
.register .c-tags { width: 34%; }
@media (max-width: 1080px) { .register .c-tags { width: 30%; } }
/* 清單的標籤：和作品頁的標籤同一個樣式；一行放不下時，後面的收成「+n」 */
.rtags { display: flex; flex-wrap: nowrap; gap: 6px; overflow: hidden; contain: inline-size; }
.rtags.under { display: none; }
.register td .rtags a, .tags a { flex: none; font-size: 12.5px; font-weight: 400; line-height: 21px; text-decoration: none; border: 1px solid var(--rule); padding: 1px 10px; border-radius: 999px; color: var(--muted); background: transparent; white-space: nowrap; }
.register td .rtags a:hover, .tags a:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.register td .rtags a[aria-current], .tags a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.register td .rtags a[aria-current] { display: inline-flex; align-items: center; gap: 3px; padding-right: 6px; }
@media (hover: hover) { .register td .rtags a[aria-current]:hover { background: var(--sage); border-color: var(--sage); color: #fff; } .tagchip:hover { background: var(--sage); } }
.rtags a[aria-current] .ic, .tagchip .ic { width: 14px; height: 14px; fill: currentColor; }
/* 結果列「標籤 [學習單 ×]」：點了取消標籤篩選 */
.tagchip { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 6px 1px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; line-height: 21px; text-decoration: none; vertical-align: 1px; }
.register td .rtags .more { color: var(--ink); }

/* ── 單一作品 ── */
.crumbs { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 16px; font-size: 14px; }
.crumbs a { text-decoration: none; color: var(--muted); }
a.back { display: inline-flex; align-items: center; gap: 6px; }
a.back .ic { width: 18px; height: 18px; }
.crumbs a:hover { color: var(--ink); }
.crumb-cat { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.crumb-cat i { width: 20px; height: 5px; border-radius: 3px; background: var(--c); }
.hero { width: 100%; height: min(76vh, 820px); padding: clamp(16px, 3vw, 40px); cursor: zoom-in; border: 0; border-radius: var(--radius); background: var(--mat); display: flex; align-items: center; justify-content: center; }
.hero img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
.work-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; margin-top: 36px; }
.work-label { position: relative; padding-top: 18px; }
.work-label::before { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 5px; border-radius: 3px; background: var(--c); }
.work-label h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.35; margin: 0 0 8px; }
.work-label .sub { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.facts { display: grid; grid-template-columns: 7.2em 1fr; gap: 8px 14px; margin: 0; font-size: 14.5px; }
.facts dt { color: var(--muted); display: flex; align-items: center; gap: 7px; height: 1.75em; }
.facts dt .ic { width: 17px; height: 17px; }
.facts dd { margin: 0; }
.facts a, .links a span { color: var(--ink); text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.links .ic { width: 18px; height: 18px; }
.work-text p.desc { font-size: 17px; line-height: 1.9; margin: 0 0 26px; max-width: 36em; }
.work-text h2 { font-size: 13.5px; font-weight: 500; color: var(--muted); margin: 22px 0 4px; }
.work-text .block { margin: 0; max-width: 40em; }
.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.gallery-head { margin: 64px 0 16px; display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--ink); padding-top: 12px; }
.gallery-head h2 { font-family: var(--serif); font-weight: 700; font-size: 21px; margin: 0; }
.gallery-head p { margin: 0; color: var(--muted); font-size: 14px; }
/* 延伸物說明：圖片下方的段落（試算表「延伸物說明」欄） */
.gallery-note { max-width: 46em; margin: 24px 0 0; font-size: 16px; line-height: 1.9; }
.gallery-note p { margin: 0 0 12px; }
.gallery-note p:last-child { margin-bottom: 0; }
.gallery-note a { color: var(--sage); text-underline-offset: 3px; }
.justified { display: flex; flex-direction: column; }
.jrow { display: flex; }
.jrow button { padding: 0; border: 0; background: var(--mat); cursor: zoom-in; flex: none; border-radius: 8px; overflow: hidden; }
.jrow img { width: 100%; height: 100%; object-fit: cover; }
.series-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.series-list li { border-bottom: 1px solid var(--rule); }
.series-list a { display: grid; grid-template-columns: 7em 1fr auto; gap: 12px; padding: 10px 0; text-decoration: none; font-size: 15px; }
.series-list a:hover span:nth-child(2) { text-decoration: underline; }
.series-list .muted { font-size: 13px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 72px; border-top: 1px solid var(--ink); padding-top: 18px; }
.pager a { text-decoration: none; display: flex; gap: 14px; align-items: center; }
.pager a:last-child { justify-content: flex-end; text-align: right; }
.pager .thumb { width: 72px; height: 72px; }
.pager small { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; }
.pager a:last-child small { justify-content: flex-end; }
.pager small .ic { width: 15px; height: 15px; }
.pager strong { font-family: var(--serif); font-weight: 600; font-size: 16px; line-height: 1.4; }

/* ── 關於 ── */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; margin-top: 44px; }
.about h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 3.4vw, 46px); margin: 0 0 6px; line-height: 1.25; }
.about .brandline { color: var(--sage); margin: 0 0 28px; }
.about p { max-width: 34em; font-size: 16.5px; }
.about h2 { font-size: 14px; font-weight: 500; color: var(--muted); margin: 34px 0 8px; border-top: 1px solid var(--rule); padding-top: 12px; }
/* 「服務項目」小標：和委託流程、委託注意事項同一個格式（.section-head） */
.about .section-head h2 { font-family: var(--serif); font-weight: 700; font-size: 24px; color: var(--ink); margin: 0; border: 0; padding: 0; }
.about ul { margin: 0; padding-left: 1.2em; }
.about ul.svc { list-style: none; padding: 0; }
.about .svc li { display: flex; gap: 12px; align-items: flex-start; padding: 5px 0; }
.about .svc .ic { width: 22px; height: 22px; margin-top: 2px; }
.contact-card { background: var(--sage-light); padding: 30px; align-self: start; border-radius: var(--radius); }
.contact-card h2 { margin-top: 0; border: 0; padding: 0; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 22px; }
.contact-card .note { font-size: 14px; color: var(--muted); margin-top: 22px; }
/* 聯絡我：icon＋網站名稱（site.js 的 contact；要不要顯示網址在 LAYOUT.contact） */
.contact-card .ct-list { list-style: none; margin: 6px 0 0; padding: 0; border-top: 1px solid rgba(32, 35, 31, .18); }
.ct-list li { border-bottom: 1px solid rgba(32, 35, 31, .18); }
.ct-list a { display: flex; align-items: center; gap: 14px; padding: 12px 2px; text-decoration: none; }
.ct-list .ic { width: 22px; height: 22px; }
.ct-list .cn { font-size: 16px; font-weight: 500; }
.ct-list .ad { margin-left: auto; font-size: 13.5px; color: var(--muted); text-align: right; word-break: break-all; }
.ct-list a:hover .cn { text-decoration: underline; text-underline-offset: 4px; }

/* 委託流程（有順序，所以編號）與委託注意事項 */
.biz .section-head { margin-top: 72px; }
/* 流程：圖示與標題置中，說明文字靠左、整段置中；--g 是步驟之間的間距 */
.steps-flow { --g: 32px; list-style: none; margin: 0 auto; padding: 0; max-width: 1180px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); }
.steps-flow li { position: relative; text-align: center; }
.steps-flow li:not(:last-child)::after { content: ""; position: absolute; top: 28px; left: calc(50% + 40px); right: calc(-50% - var(--g) + 40px); height: 1px; background: var(--ink); }
.steps-flow .node { width: 56px; height: 56px; border-radius: 50%; background: var(--sage-light); display: grid; place-items: center; margin: 0 auto 16px; }
.steps-flow .node .ic { width: 28px; height: 28px; }
.steps-flow h3 { font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.4; margin: 0 0 8px; }
.steps-flow p { margin: 0 auto; font-size: 15px; text-align: justify; text-align-last: left; width: fit-content; max-width: 17em; }
.biz p a { color: var(--sage); text-underline-offset: 3px; }
.notes-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.notes-grid li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; }
.notes-grid .ic { width: 22px; height: 22px; margin-top: 3px; }
.notes-grid p { margin: 0; }

/* ── 版權聲明頁（#/copyright）── */
.legal { max-width: 46em; margin: 44px auto 0; }
.legal h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3vw, 40px); margin: 0 0 18px; }
.legal .lede { font-size: 17px; line-height: 1.9; padding: 18px 22px; background: var(--sage-light); border-radius: var(--radius); margin: 0 0 30px; }
.legal section { border-top: 1px solid var(--rule); padding: 18px 0 6px; }
.legal h2 { font-family: var(--serif); font-weight: 700; font-size: 19px; margin: 0 0 8px; }
.legal p { margin: 0 0 10px; }
.legal .law-card { margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; border: 1px solid var(--ink); border-radius: var(--radius); padding: 16px 20px; }
.legal .law-card p { margin: 0; flex: 1 1 260px; }
.legal .law-card .lead-ic { width: 30px; height: 30px; }
.legal .law-card strong { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.legal .updated { font-size: 13px; color: var(--muted); margin-top: 22px; }

/* site.js 讀取失敗時的提示 */
.site-error { margin: 24px 0 0; padding: 14px 18px; border-radius: 10px; background: #FFE9E6; border: 1px solid #F4A69B; color: #8A1F11; font-size: 15px; }

/* ── 頁尾 ── */
.site-foot { border-top: 1px solid var(--rule); padding: 22px var(--gutter) 36px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--muted); }
.site-foot a { color: var(--muted); }
.foot-legal { margin: 0; display: flex; flex-wrap: wrap; gap: 0 1em; }
.foot-legal a { white-space: nowrap; }
/* 頁尾的聯絡 icon（滑鼠移上去出現淡綠色圓形底） */
.foot-icons { display: flex; flex-wrap: wrap; gap: 4px; margin-right: -9px; }
.foot-icons a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; }
.foot-icons a:hover { background: var(--sage-light); }
.foot-icons .ic { width: 22px; height: 22px; }

/* ── 燈箱 ── */
.lightbox { position: fixed; inset: 0; background: rgba(24, 27, 23, .94); z-index: 100; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 36px 0 20px; gap: 12px; }
.lightbox img { max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); max-width: 100%; object-fit: contain; }
.lightbox figcaption { color: #C9CEC6; font-size: 13px; }
.lightbox button { background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; height: 100%; }
.lb-close { position: absolute; top: 10px; right: 18px; height: auto !important; padding: 6px; }
.lightbox button .ic { width: 44px; height: 44px; }
.lightbox .lb-close .ic { width: 32px; height: 32px; }

/* ── 響應式（RWD）──
   ≥1800px 大螢幕：版面放寬
   ≤1080px 平板：作品頁、關於頁改成單欄
   ≤760px  手機：頁首兩列、分類標籤可左右滑、輸入框 16px（避免 iPhone 自動放大）
   ≤380px  小手機：導覽字距縮小
   作品牆的欄數由 site.js 的 LAYOUT.wall 依寬度自動計算 */
@media (min-width: 1800px) {
  :root { --maxw: 1640px; }
}
@media (max-width: 1080px) {
  .intro-panel { grid-template-columns: minmax(0, 1fr); }
  .intro-panel .motto { font-size: clamp(28px, 5.8vw, 52px); }
  .work-body, .about { grid-template-columns: 1fr; gap: 32px; }
  .hall { grid-template-columns: 12px minmax(0, 1fr) auto; }
  .hall p { display: none; }
  .head-search input { width: 170px; }
  .site-nav { gap: 16px; }
}
@media (max-width: 860px) {
  .steps-flow { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 460px; }
  .steps-flow li { padding-bottom: 68px; }
  .steps-flow li:last-child { padding-bottom: 0; }
  .steps-flow li:not(:last-child)::after { top: auto; bottom: 18px; left: 50%; right: auto; width: 1px; height: 32px; }
  .steps-flow p { max-width: 22em; }
}
@media (max-width: 760px) {
  .site-head { grid-template-columns: 1fr auto; gap: 10px 14px; padding-top: 10px; padding-bottom: 10px; }
  .head-search { grid-column: 1 / -1; }
  .head-search input, .filters input[type=search] { width: 100%; font-size: 16px; }
  .sbox { flex-basis: 100%; max-width: none; }
  .filters { --ctl-h: 38px; }
  .filters select { font-size: 16px; flex: 1 1 auto; }   /* 年份選單填滿展牆／清單左邊的空間，兩列左右對齊 */
  .site-nav { gap: 14px; font-size: 14px; }
  .site-nav a[data-nav="print"] { display: none; }
  .brand img { height: 22px; }
  .filters { position: static; }
  .notes-grid { grid-template-columns: 1fr; }
  .gallery-note { font-size: 15px; margin-top: 18px; }
  .biz .section-head { margin-top: 52px; }
  .foot-icons { margin: 0 0 0 -9px; }
  .filter-row[role="group"] { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: -2px calc(-1 * var(--gutter)); padding: 2px var(--gutter); scroll-padding: 0 var(--gutter); }
  .filter-row[role="group"]::-webkit-scrollbar { display: none; }
  .chip { flex: none; padding: 6px 12px; }
  .seg button { padding: 6px 14px; }
  .wall-col { gap: 24px; }
  .pin-meta { margin-top: 8px; }
  .pin-title { font-size: 14.5px; margin-top: 4px; }
  .section-head { margin-top: 44px; }
  .hall .thumbs { display: none; }
  .register { font-size: 14px; }
  .register .c-tags { display: none; }
  .register .c-cat { white-space: normal; width: 6.6em; }   /* 手機：分類可以換行，把空間留給作品名稱 */
  .register .rtags.under { display: flex; margin-top: 7px; }
  .register td .rtags a { line-height: 24px; padding: 1px 11px; }   /* 手機：標籤稍微加大，方便點選 */
  .register td .rtags a[aria-current] { padding-right: 7px; }
  .tagchip { line-height: 26px; padding: 1px 8px 1px 12px; font-size: 13px; }
  .rtags a[aria-current] .ic, .tagchip .ic { width: 16px; height: 16px; }
  .crumbs { flex-wrap: wrap; gap: 6px 12px; }
  .work-text p.desc { font-size: 16px; }
  .gallery-head { margin-top: 44px; }
  .series-list a { grid-template-columns: 1fr; gap: 0; }
  .pager { grid-template-columns: 1fr; }
  .pager a:last-child { justify-content: flex-start; text-align: left; flex-direction: row-reverse; }
  .contact-card { padding: 22px; }
  .intro-panel { padding: 26px 20px; }
  .pager a:last-child small { justify-content: flex-start; }
  .hero { height: auto; padding: 12px; }
  .hero img { width: 100%; max-height: 70vh; object-fit: contain; }
  .lightbox { grid-template-columns: 40px 1fr 40px; }
  .lightbox button .ic { width: 34px; height: 34px; }
}
@media (max-width: 380px) {
  .site-nav { gap: 10px; font-size: 13.5px; }
  .brand img { height: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
