/* ==========================================================
   野序官網 site.css（活潑版・一頁式首頁）
   首頁只講「在做什麼、來了會得到什麼」；畫面下方一排固定按鈕通往：
   作品、認識小刁（中間最顯眼）、論壇、活動。
   只用 tokens.css 的變數，不寫色碼（tools/check.py 會抓）。
   ========================================================== */

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--sans); color: var(--ink); background-color: var(--paper);
  /* 紙的纖維：很淡的雜訊，疊在紙色上 */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .38  0 0 0 0 .28  0 0 0 .18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-blend-mode: multiply;
  font-size: var(--fs-2); line-height: var(--leading); overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; }
:focus-visible { outline: 3px solid var(--harbor); outline-offset: 3px; }
p { max-width: 36em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.25; max-width: 16em; text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; position: relative; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s2); top: -120px; z-index: 100; background: var(--ink); color: var(--paper); padding: var(--s1) var(--s2); border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { top: var(--s2); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 手繪記號的顏色（SVG 裡不寫色碼，用這些 class） */
.sk-ink { stroke: var(--ink); } .sk-ink2 { stroke: var(--ink-2); } .sk-fire { stroke: var(--fire); }
.sk-moss { stroke: var(--moss); } .sk-mango { stroke: var(--mango); } .sk-harbor { stroke: var(--harbor); }
.sk-paper { stroke: var(--paper); } .sk-card { stroke: var(--card); }
.fl-ink { fill: var(--ink); } .fl-fire { fill: var(--fire); } .fl-moss { fill: var(--moss); }
.fl-mango { fill: var(--mango); } .fl-rose { fill: var(--rose); } .fl-paper { fill: var(--paper); }
.fl-card { fill: var(--card); } .fl-kraft { fill: var(--kraft); } .fl-white { fill: var(--white); }
.fl-moss-tint { fill: var(--moss-tint); } .fl-harbor-tint { fill: var(--harbor-tint); } .fl-mango-soft { fill: var(--mango-soft); }

/* ---------- 桌上的東西：點點紙、膠帶、紙角、手繪記號 ---------- */
.dotgrid { background-image: radial-gradient(color-mix(in srgb, var(--ink) 16%, transparent) 1.2px, transparent 1.3px); background-size: 24px 24px; }
.desk { position: absolute; z-index: 3; pointer-events: none; }
.desk svg { display: block; width: 100%; height: auto; overflow: visible; }
.paper-corner { position: absolute; z-index: 4; pointer-events: none; display: block; }
.tape { position: absolute; width: 96px; height: 24px; background: color-mix(in srgb, var(--mango) 55%, transparent); z-index: 4; pointer-events: none; clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 50%); }
.tape.blue { background: color-mix(in srgb, var(--harbor) 35%, transparent); }
.tape.rose { background: color-mix(in srgb, var(--rose) 70%, transparent); }
.scribble-bg { position: absolute; z-index: 0; pointer-events: none; }

/* ---------- 文字 ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: var(--s1); font-size: var(--fs-1); font-weight: 700; letter-spacing: .04em; color: var(--ink-2); max-width: none; }
.eyebrow b { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--serif); font-weight: 700; font-size: var(--fs-1); flex: none; letter-spacing: 0; }
.sec-title { font-size: var(--fs-4); margin: var(--s2) 0; }
.sec-lead { font-size: var(--fs-2); color: var(--ink-2); max-width: 36em; }
.hl { background: linear-gradient(transparent 58%, var(--mango) 58%, var(--mango) 92%, transparent 92%); padding: 0 .08em; }
.hl-rose { background: linear-gradient(transparent 58%, var(--rose) 58%, var(--rose) 92%, transparent 92%); }
.place-note { display: flex; align-items: flex-start; gap: var(--s1); margin-top: var(--s3); font-size: var(--fs-1); font-weight: 700; color: var(--ink-2); }
.place-note .icon { width: 18px; height: 18px; margin-top: 2px; }

/* ---------- 按鈕、連結 ---------- */
/* 主要按鈕：窯火橘底、墨色字（白字對比不夠）。可以點的都會浮起來、按下去會陷進去 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: 48px; padding: var(--s1) var(--s3);
  background: var(--fire); color: var(--ink); border: var(--line) solid var(--ink); border-radius: 999px;
  box-shadow: var(--lift-sm); font-weight: 700; font-size: var(--fs-2); line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--lift-md); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); transition-duration: 100ms; }
.btn-ghost { background: var(--card); }                 /* 次要：一樣的形狀，紙色底 */
.btn-sm { min-height: 44px; padding: var(--s0) var(--s2); font-size: var(--fs-2); }
.btn-block { display: flex; width: 100%; }
.btn .icon { width: 20px; height: 20px; }

.text-link { display: inline-flex; align-items: center; gap: var(--s0); min-height: 48px; padding: var(--s1) 0; font-weight: 700; font-size: var(--fs-2); color: var(--moss); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.text-link:hover { text-decoration-color: var(--fire); }
.text-link .icon { transition: transform var(--t) var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }
.text-link.down:hover .icon { transform: translateY(3px); }

.text-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s1); min-height: 44px; padding: var(--s1) var(--s2); border: 0; background: none; font-weight: 700; color: var(--moss); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.text-btn:hover { text-decoration-color: var(--fire); }

.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: var(--line) solid var(--ink); background: var(--card); color: var(--ink); box-shadow: var(--lift-sm); cursor: pointer; text-decoration: none; flex: none; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease), opacity var(--t) var(--ease); }
.icon-btn:hover { transform: translate(-2px, -2px); box-shadow: var(--lift-md); }
.icon-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); transition-duration: 100ms; }
.icon-btn:disabled { opacity: .35; cursor: default; transform: none; box-shadow: none; }

/* 複製 Email */
.copy-btn { display: inline-flex; align-items: center; gap: var(--s0); min-height: 44px; padding: var(--s0) var(--s2); border: 2px solid currentColor; border-radius: 999px; background: transparent; font-size: var(--fs-1); font-weight: 700; cursor: pointer; flex: none; transition: transform var(--t) var(--ease), background-color var(--t) var(--ease); }
.copy-btn:hover { transform: translateY(-2px); }
.copy-btn:active { transform: translateY(1px); transition-duration: 100ms; }
.copy-btn .icon { width: 16px; height: 16px; }
.copy-btn .icon-done, .copy-btn.is-done .icon-copy { display: none; }
.copy-btn.is-done .icon-done { display: block; }

/* ---------- 頁首：Logo＋LINE（其他頁面在畫面下方的按鈕列） ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 94%, transparent); border-bottom: 2px solid var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 64px; padding: var(--s0) 0; }
.brand { display: inline-flex; align-items: center; min-height: 48px; flex: none; border-radius: var(--r-sm); transition: transform var(--t) var(--ease); }
.brand:hover { transform: rotate(-2deg); }
.brand img { height: 56px; width: auto; }
.header-cta .short { display: none; }

/* ---------- 畫面下方的按鈕列：一直在，中間「認識小刁」最顯眼 ---------- */
.dock { position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70; width: min(560px, calc(100% - 24px)); transform: translateX(-50%); }
.dock ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; padding: var(--s0) var(--s1); background: var(--ink); border: var(--line) solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--mango); }
.dock a { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 56px; padding: var(--s0) 2px; border-radius: 999px; color: var(--on-ink); font-size: var(--fs-1); font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: color var(--t) var(--ease), transform var(--t) var(--ease); }
.dock a .icon { width: 22px; height: 22px; transition: transform var(--t) var(--ease); }
.dock a:hover { color: var(--paper); }
.dock a:hover .icon { transform: translateY(-3px); }
.dock a:active { transform: scale(.94); transition-duration: 100ms; }
.dock a[aria-current="page"] { color: var(--mango-text); }
.dock a[aria-current="page"]::after { content: ""; position: absolute; bottom: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--mango-text); }
/* 中間：主理人頭像，浮在按鈕列上面、窯火橘框、會慢慢發光 */
.dock .dock-main a { gap: var(--s0); margin-top: -28px; color: var(--mango-text); }
.dock-face { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--fire); border: var(--line) solid var(--ink); box-shadow: 0 0 0 3px var(--ink); transition: transform var(--t) var(--ease); }
.dock-face img { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; }
.dock-face::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid var(--fire); opacity: 0; animation: ring 2.8s ease-out infinite; pointer-events: none; }
.dock .dock-main a:hover .dock-face { transform: translateY(-3px) scale(1.06); }
.dock .dock-main a[aria-current="page"]::after { bottom: -2px; }
@keyframes ring { 0% { opacity: .9; transform: scale(.9); } 70%, 100% { opacity: 0; transform: scale(1.25); } }
/* 頁尾留出按鈕列的位置，最下面的字才不會被蓋住 */
.site-footer { padding-bottom: calc(var(--s4) + 104px + env(safe-area-inset-bottom)); }
@media print { .dock { display: none; } }

/* ---------- 主視覺 ---------- */
.hero { position: relative; padding: var(--s4) 0 var(--s5); overflow: hidden; }
.hero > .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s4); align-items: start; }
.hero-copy { position: relative; z-index: 2; min-width: 0; }
.hero h1 { font-size: var(--fs-5); line-height: 1.2; margin: var(--s2) 0 var(--s1); max-width: 12em; }
.wild { position: relative; display: inline-block; }
.wild svg { position: absolute; left: -6%; bottom: -.3em; width: 112%; height: .55em; z-index: -1; }
.slogan { position: relative; z-index: 1; font-family: var(--serif); font-weight: 700; font-size: var(--fs-3); line-height: 1.5; margin: var(--s2) 0; max-width: 20em; }
.slogan .en { display: block; margin-top: var(--s0); font-style: italic; font-size: var(--fs-2); color: var(--moss); line-height: 1.5; }
.hero .lead { color: var(--ink-2); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s3); }
/* 主視覺：桌機的按鈕放在文字區右邊（Z 字動線），手機放最上面、整排 */
.hero .cta-row .text-link { order: 1; }
.hero .cta-row .btn { order: 2; margin-left: auto; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); margin-top: var(--s3); }
.chips li { display: flex; align-items: center; gap: var(--s1); font-size: var(--fs-1); font-weight: 700; color: var(--ink-2); }
.chips li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--moss); flex: none; }
.chips li:nth-child(2)::before { background: var(--mango); }
.chips li:nth-child(3)::before { background: var(--rose); }
.chips li:nth-child(4)::before { background: var(--harbor); }
.hero-art { position: relative; width: min(100%, 520px); aspect-ratio: 5 / 4; justify-self: end; margin-top: var(--s1); }
.hero-sun { position: absolute; width: 46%; aspect-ratio: 1; right: -6%; top: -4%; border-radius: 50%; background: var(--mango); z-index: 0; }
/* 主視覺插畫：像一張貼在桌上的圖（紙框＋膠帶＋下面一行小字） */
.hero-card { position: absolute; inset: 10% 2% 9% 4%; display: flex; flex-direction: column; padding: 12px 12px 0; background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--r-sm); transform: rotate(-2.5deg); box-shadow: 8px 8px 0 var(--moss); }
.hero-card img { display: block; width: 100%; height: auto; aspect-ratio: 1376 / 768; object-fit: cover; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--kraft); }
.hero-card::after { content: "高雄・左營｜一起動手做"; margin: auto 0; padding: var(--s1) 0; text-align: center; font-size: var(--fs-1); letter-spacing: .08em; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.hero .scribble-bg { left: -40px; bottom: 24px; width: 360px; }
.hero-card .tape { top: -12px; left: 34%; transform: rotate(-4deg); }
.hero-card .tape.blue { top: -8px; left: 10px; width: 52px; height: 16px; transform: rotate(-14deg); }
.hero-card .paper-corner { right: 7px; bottom: 7px; width: 28px; height: 28px; }
.hero-art .chat { width: 18%; left: -2%; bottom: -6%; transform: rotate(-11deg); }
.hero-art .stamp { width: 13%; right: 0; top: 0; transform: rotate(9deg); }

/* ---------- 標語帶：斜的黑色帶子，慢慢往左跑（滑鼠移上去會停） ---------- */
.marquee-wrap { overflow: hidden; padding: var(--s3) 0; position: relative; z-index: 5; }
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; transform: rotate(-1.2deg); margin: 0 -3vw; }
.marquee .track { display: flex; width: max-content; max-width: none; padding: var(--s2) 0; font-family: var(--serif); font-weight: 700; font-size: var(--fs-3); line-height: 1.4; white-space: nowrap; animation: mq 48s linear infinite; }
.marquee .group { display: flex; align-items: center; gap: var(--s4); padding-right: var(--s4); }
.marquee i { width: 16px; height: 16px; background: var(--mango); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); flex: none; }
@keyframes mq { to { transform: translateX(-33.3333%); } }
.marquee:hover .track, .marquee.is-paused .track { animation-play-state: paused; }

/* ---------- 區塊 ---------- */
section.block { padding: var(--s6) 0; position: relative; scroll-margin-top: 80px; }

/* 01 我們在做什麼：來了會得到的四樣東西 */
.dowhat .cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s5); }
.dcard { border: var(--line) solid var(--ink); border-radius: var(--r); background: var(--card); padding: var(--s3); position: relative; }
.dcard:nth-child(odd) { transform: rotate(-1deg); }
.dcard:nth-child(even) { transform: rotate(1deg) translateY(16px); }
.dcard .ico { display: block; width: 64px; height: 64px; margin-bottom: var(--s2); overflow: visible; transform-origin: 50% 100%; }
.dcard h3 { font-size: var(--fs-3); margin-bottom: var(--s1); }
.dcard p { color: var(--ink-2); }
.dcard p + .dots { margin-top: var(--s0); }
/* 條列：用黑色小圓點，不用 1、2、3（使用者 2026-10-01） */
.dots { display: grid; gap: var(--s0); }
.dots li { position: relative; padding-left: 1.1em; color: var(--ink-2); }
.dots li::before { content: ""; position: absolute; left: .15em; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

/* 主題小圖的動畫：捲到的時候、捲動的時候會跳一下；在畫面裡時，圖裡的小東西會動 */
.dcard.is-hop .ico { animation: hop 720ms ease-out both; }
@keyframes hop {
  0% { transform: translateY(0) scale(1, 1); }
  18% { transform: translateY(0) scale(1.1, .88); }
  42% { transform: translateY(-16px) scale(.94, 1.08); }
  66% { transform: translateY(0) scale(1.06, .94); }
  82% { transform: translateY(-4px) scale(1, 1); }
  100% { transform: translateY(0) scale(1, 1); }
}
.ico .cur, .ico .lens, .ico .spark, .ico .head, .ico .roof-star { transform-box: fill-box; }
.ico .spark, .ico .roof-star { transform-origin: center; }
.ico .head { transform-origin: 50% 100%; }
.dcard.is-live .ico .cur { animation: blink 1.1s steps(1) infinite; }
.dcard.is-live .ico .lens { animation: lens 3.6s ease-in-out infinite; }
.dcard.is-live .ico .spark { animation: twinkle 3.2s ease-in-out infinite; }
.dcard.is-live .ico .head { animation: bob 2.4s ease-in-out infinite; }
.dcard.is-live .ico .h2 { animation-delay: .18s; }
.dcard.is-live .ico .h3 { animation-delay: .36s; }
.dcard.is-live .ico .roof-star { animation: twinkle 4s ease-in-out infinite; }
/* 滑鼠移上去：動得快一點 */
.dcard:hover .ico .lens { animation-duration: 1.2s; }
.dcard:hover .ico .spark { animation-duration: 1.2s; }
.dcard:hover .ico .head { animation-duration: 1s; }
.dcard:hover .ico .roof-star { animation-duration: 1.4s; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes lens { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-6px, -4px); } 50% { transform: translate(-12px, 2px); } 75% { transform: translate(-4px, 4px); } }
@keyframes twinkle { 0%, 70%, 100% { transform: scale(1) rotate(0); } 80% { transform: scale(1.3) rotate(24deg); } 90% { transform: scale(.9) rotate(-8deg); } }
@keyframes bob { 0%, 55%, 100% { transform: translateY(0); } 68% { transform: translateY(-7px); } 80% { transform: translateY(0); } }

/* 來的時候：便利貼＋留給你的那一張 */
.culture { margin-top: var(--s6); display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--s4); align-items: center; }
.culture .sprout { position: relative; width: 108px; margin-top: var(--s2); transform: rotate(-6deg); }
.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); align-items: start; padding-top: var(--s2); }
.note { position: relative; padding: var(--s4) var(--s3) var(--s3); box-shadow: 0 8px 16px -8px color-mix(in srgb, var(--ink) 35%, transparent); }
.note b { display: block; font-family: var(--serif); font-size: var(--fs-3); font-weight: 700; margin-bottom: var(--s1); }
.note span { color: var(--ink-2); }
/* 便利貼：小字是「帶著什麼來」，大字是你會得到的（目的） */
.note .note-k { display: block; margin-bottom: var(--s0); font-size: var(--fs-1); font-weight: 700; letter-spacing: .04em; }
.note:nth-child(1) { background: var(--mango-soft); transform: rotate(-2deg); }
.note:nth-child(2) { background: var(--rose-soft); transform: rotate(1.5deg); }
.note:nth-child(3) { background: var(--moss-soft); transform: rotate(-1deg); }
.note .tape { top: -12px; left: 50%; margin-left: -48px; }
/* 「你呢」：空著的一格（虛線框＋加號），一直在輕輕呼吸；滑鼠移上去會一大一小地跳 */
.note.note-you { padding: 0; box-shadow: none; transform: rotate(1deg); }
.note-you a { position: relative; display: grid; justify-items: center; align-content: center; gap: var(--s1); height: 100%; min-height: 200px; padding: var(--s3); text-align: center; text-decoration: none; color: var(--ink); background: color-mix(in srgb, var(--card) 72%, transparent); border: var(--line) dashed var(--ink); border-radius: var(--r-sm); animation: breathe 3s ease-in-out infinite; }
.note-you a::after { content: ""; position: absolute; inset: -7px; border: 2px solid var(--fire); border-radius: 12px; opacity: 0; animation: ring-box 3s ease-out infinite; pointer-events: none; }
.note-you .plus { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--fire); border: var(--line) solid var(--ink); box-shadow: var(--lift-sm); }
.note-you .plus .icon { width: 24px; height: 24px; stroke-width: 3; }
.note-you b { margin: 0; }
.note-you .you-text { color: var(--ink-2); }
.note-you .you-go { display: inline-flex; align-items: center; gap: var(--s0); font-weight: 700; color: var(--moss); text-decoration: underline; text-underline-offset: 4px; }
.note-you a:hover, .note-you a:focus-visible { animation: pulse 900ms ease-in-out infinite; background: var(--card); }
.note-you a:active { animation: none; transform: scale(.97); }
@keyframes breathe { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.03) rotate(-1deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1.03); } 50% { transform: scale(1.09); } }
@keyframes ring-box { 0% { opacity: .9; transform: scale(.97); } 70%, 100% { opacity: 0; transform: scale(1.07); } }

/* 02 活動 */
.goals, .band-kraft { background-color: var(--kraft); border-block: var(--line) solid var(--ink); }
.goals > .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s5); align-items: start; }
.goals > .wrap > div { min-width: 0; }

/* 下一場（墨色卡）：有活動、沒活動的結構一樣，版面才不會跳 */
.next-card { position: relative; margin-top: var(--s4); background: var(--ink); color: var(--paper); border-radius: var(--r); padding: var(--s4); display: grid; gap: var(--s1); }
.next-card .tape { top: -12px; left: 28px; width: 76px; transform: rotate(-5deg); }
.next-card .bulb { width: 44px; right: 14px; top: 14px; transform: rotate(8deg); }
.next-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); padding-right: var(--s5); }
.next-kicker { font-size: var(--fs-1); font-weight: 700; letter-spacing: .04em; color: var(--on-ink); overflow-wrap: anywhere; }
.next-date { font-size: clamp(32px, 4vw, 44px); font-weight: 700; line-height: 1.15; color: var(--mango-text); overflow-wrap: anywhere; }
.next-title { font-size: var(--fs-3); font-weight: 700; line-height: 1.4; color: var(--paper); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; min-height: calc(2 * 1.4em); }
.next-meta { display: flex; align-items: flex-start; gap: var(--s1); font-size: var(--fs-1); color: var(--on-ink); }
.next-meta .icon { width: 18px; height: 18px; margin-top: 2px; }
.next-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); margin-top: var(--s2); }
.next-card .text-link { color: var(--mango-text); }
.next-card .btn { box-shadow: 4px 4px 0 var(--mango); }
.next-card .btn:hover { box-shadow: 6px 6px 0 var(--mango); }
.next-card .btn:active { box-shadow: 2px 2px 0 var(--mango); }
.next-card .full-note { color: var(--on-ink); flex-basis: 100%; }
.next-card .status { color: var(--paper); }

/* 參加的三個階段 */
/* 兩種活動：並排的兩張卡（不是一步一步的階段），下面一條「多一群人」 */
.offers { display: grid; gap: var(--s3); padding-top: var(--s1); }
.offer-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); align-items: stretch; }
.offer { position: relative; display: grid; align-content: start; gap: var(--s1); padding: var(--s4) var(--s3) var(--s3); background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--r-md); }
.offer:nth-child(1) { transform: rotate(-1deg); }
.offer:nth-child(2) { transform: rotate(1deg); }
.offer .tape { top: -12px; left: 50%; margin-left: -48px; }
.offer-ico { width: 72px; }
.offer-ico svg { display: block; width: 100%; height: auto; overflow: visible; }
.offer h3 { font-size: var(--fs-3); }
.offer-lead { font-weight: 700; }
.offer-extra { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); background: color-mix(in srgb, var(--card) 70%, transparent); border: var(--line) dashed var(--ink); border-radius: var(--r-md); }
.offer-extra .icon { width: 32px; height: 32px; }
.offer-extra p { color: var(--ink-2); max-width: none; }
.offer-extra b { color: var(--ink); }
.offers-note { font-size: var(--fs-1); font-weight: 700; color: var(--ink-2); }

/* 03 現場：拍立得一排，左右滑 */
.moments { overflow: hidden; }
.gal-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s3); flex-wrap: wrap; }
.rail-btns { display: none; gap: var(--s2); }
.js .rail-btns { display: flex; }
.rail { display: flex; gap: var(--s4); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--s1); padding: var(--s4) var(--s1) var(--s4); margin: var(--s2) calc(-1 * var(--s1)) 0; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail .polaroid { flex: 0 0 clamp(240px, 30%, 330px); scroll-snap-align: start; }
.swipe-hint { display: none; text-align: center; font-size: var(--fs-1); font-weight: 700; color: var(--ink-2); margin: 0 auto; }

.polaroid { position: relative; background: var(--white); padding: var(--s2); border-radius: 4px; box-shadow: 0 16px 24px -16px color-mix(in srgb, var(--ink) 45%, transparent); transform: rotate(var(--rot, 0deg)); transition: transform 320ms var(--ease), box-shadow 320ms var(--ease); }
.polaroid:nth-child(4n+1) { --rot: -2deg; }
.polaroid:nth-child(4n+2) { --rot: 1.5deg; }
.polaroid:nth-child(4n+3) { --rot: -1deg; }
.polaroid:nth-child(4n+4) { --rot: 2deg; }
.polaroid:hover, .polaroid:focus-within { transform: rotate(0deg) scale(1.02); box-shadow: 0 24px 32px -16px color-mix(in srgb, var(--ink) 50%, transparent); z-index: 5; }
.polaroid .tape { top: -12px; left: 50%; margin-left: -48px; }
.pol-img { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 3; background-color: var(--kraft); background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 8%, transparent) 0 8px, transparent 8px 16px); cursor: zoom-in; }
.pol-img img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; transition: transform 320ms var(--ease); }
.polaroid:hover .pol-img img { transform: scale(1.03); }
.pol-zoom { position: absolute; right: 8px; bottom: 8px; z-index: 2; display: inline-flex; align-items: center; gap: var(--s0); background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: var(--s0) var(--s1); font-size: var(--fs-1); font-weight: 700; line-height: 1.4; }
.pol-zoom .icon { width: 16px; height: 16px; }
.polaroid figcaption { font-family: var(--serif); font-weight: 700; padding: var(--s2) var(--s0) 0; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
/* 照片打不開：斜線底＋小 Logo＋說明，高度不變 */
.is-empty .pol-img { cursor: default; }
.is-empty .pol-img img, .is-empty .pol-zoom { display: none; }
.is-empty .pol-img::before { content: ""; position: absolute; left: 50%; top: 42%; width: 72px; height: 96px; transform: translate(-50%, -50%); background: url("../brand/yexu-mark-ink.webp") center / contain no-repeat; }
.is-empty .pol-img::after { content: "這張照片沒有載入"; position: absolute; left: 16px; right: 16px; bottom: 16px; text-align: center; font-size: var(--fs-1); font-weight: 700; }

/* 最後一步：加 LINE */
.moments + .join { padding-top: 0; }
.join-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s3) var(--s5); align-items: center; padding: var(--s5); background: var(--mango-soft); border: var(--line) solid var(--ink); border-radius: var(--r); box-shadow: var(--lift-lg); }
.join-card .tape { top: -12px; left: 40px; transform: rotate(-4deg); }
.join-card .sec-title { margin-top: 0; }
.join-card .sec-lead { color: var(--ink); }
.join-actions { display: grid; justify-items: center; gap: var(--s1); }

/* 照片放大 */
dialog.lightbox { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: min(1000px, 92vw); margin: auto; overflow: visible; }
dialog.lightbox::backdrop { background: color-mix(in srgb, var(--ink) 78%, transparent); }
dialog.lightbox[open] { animation: lb-in 320ms var(--ease); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-card { background: var(--white); padding: var(--s2); border-radius: var(--r-sm); }
.lightbox-img { width: auto; max-width: 100%; height: auto; max-height: 72vh; object-fit: contain; margin: 0 auto; }
.lightbox-img.is-broken { width: min(560px, 80vw); aspect-ratio: 4 / 3; background: var(--kraft); }
.lb-card figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s2); font-family: var(--serif); font-weight: 700; }
.lightbox-count { font-family: var(--sans); font-size: var(--fs-1); font-weight: 700; color: var(--ink-2); }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: var(--line) solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: var(--lift-sm); cursor: pointer; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.lb-btn:hover { transform: translate(-2px, -2px); box-shadow: var(--lift-md); }
.lb-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); transition-duration: 100ms; }
.lb-close { top: -16px; right: -16px; background: var(--mango); }
.lb-prev, .lb-next { top: 50%; margin-top: -24px; }
.lb-prev { left: -16px; }
.lb-next { right: -16px; }

/* ==========================================================
   認識主理人
   ========================================================== */
.host { background-color: var(--moss); color: var(--paper); overflow: hidden; }
.host .eyebrow { color: var(--on-moss); }
.host .eyebrow b { background: var(--mango); color: var(--ink); }
.host > .wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--s5); align-items: center; }
.host > .wrap > div { min-width: 0; }
.portrait { position: relative; aspect-ratio: 4 / 5; max-width: 400px; width: 100%; justify-self: center; }
.portrait .frame { position: absolute; inset: 0; background: var(--paper); border: 3px solid var(--ink); border-radius: 200px 200px 24px 24px; overflow: hidden; box-shadow: var(--lift-lg); }
.portrait .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.portrait .tape { top: 8px; left: 26%; width: 84px; transform: rotate(-5deg); z-index: 4; }
.portrait .stamp { width: 46px; left: 8px; top: 42%; transform: rotate(-8deg); }
.portrait .paper-corner { right: 10px; bottom: 28px; width: 28px; height: 28px; }
.host .scribble-bg { right: -40px; top: 32px; width: 320px; }
.host .name { font-family: var(--serif); font-size: var(--fs-5); font-weight: 700; line-height: 1.2; margin-top: var(--s2); max-width: 100%; color: var(--paper); }
.host .name small { display: block; font-family: var(--sans); font-size: var(--fs-1); font-weight: 700; letter-spacing: .08em; color: var(--mango-text); margin-bottom: var(--s1); }
.host p { color: var(--on-moss); margin-top: var(--s2); }
.host p b { color: var(--paper); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); margin-top: var(--s4); }
.fact { display: flex; flex-direction: column-reverse; justify-content: flex-end; background: color-mix(in srgb, var(--paper) 8%, transparent); border: 2px solid color-mix(in srgb, var(--paper) 40%, transparent); border-radius: var(--r-md); padding: var(--s2); min-width: 0; }
.fact dd { font-family: var(--serif); font-size: var(--fs-3); font-weight: 700; color: var(--mango-text); line-height: 1.3; overflow-wrap: anywhere; }
.fact dt { font-size: var(--fs-1); color: var(--on-moss); line-height: 1.5; margin-top: var(--s1); }

/* 名字脈絡：一條線，四個名字 */
.name-trail { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s5); }
.name-trail::before { content: ""; position: absolute; left: 40px; right: calc(25% - 58px); top: 40px; border-top: 3px dashed var(--ink); z-index: 0; }
.name-stop { position: relative; z-index: 1; display: grid; grid-template-rows: auto 1fr; justify-items: start; gap: var(--s2); min-width: 0; }
.stop-dot { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; border: var(--line) solid var(--ink); font-family: var(--serif); font-weight: 700; font-size: var(--fs-4); box-shadow: var(--lift-sm); }
.name-stop:nth-child(1) .stop-dot { background: var(--mango); }
.name-stop:nth-child(2) .stop-dot { background: var(--harbor-tint); }
.name-stop:nth-child(3) .stop-dot { background: var(--rose); }
.name-stop:nth-child(4) .stop-dot { background: var(--fire); }
.name-stop .card { width: 100%; height: 100%; background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--r-md); padding: var(--s3); }
.name-stop .tag { display: block; font-size: var(--fs-1); font-weight: 700; color: var(--moss); margin-bottom: var(--s0); }
.name-stop h3 { font-size: var(--fs-3); margin-bottom: var(--s1); }
.name-stop p { color: var(--ink-2); }
.name-stop.is-now .card { background: var(--ink); color: var(--paper); }
.name-stop.is-now .tag { color: var(--mango-text); }
.name-stop.is-now p { color: var(--on-ink); }

/* 野序這個名字：三張卡＋野⇄序滑桿 */
.philo .top { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); align-items: end; }
.triad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s5); }
.tcard { position: relative; border: var(--line) solid var(--ink); border-radius: var(--r); padding: var(--s3); overflow: hidden; }
.tcard .big { font-family: var(--serif); font-weight: 700; font-size: clamp(64px, 8vw, 80px); line-height: 1; margin-bottom: var(--s2); }
.tcard h3 { font-size: var(--fs-3); margin-bottom: var(--s1); }
.tcard p { color: var(--ink-2); }
.tcard.ye { background: var(--fire); }
.tcard.ye p { color: var(--ink); }
.tcard.xu { background: var(--moss); color: var(--paper); }
.tcard.xu p { color: var(--on-moss); }
.tcard.both { background: var(--card); }
.tcard .art { position: absolute; right: -8px; top: -8px; width: 160px; opacity: .95; pointer-events: none; }
.tcard.both .paper-corner { top: 0; right: 0; width: 46px; height: 46px; }
.tcard.both .wave { width: 72px; right: 18px; top: 22px; transform: rotate(-8deg); }

/* 野 ⇄ 序：拖拉滑桿，左邊色塊從窯火橘走到墨色再到苔綠 */
.yx-switch { --m: 0; display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); margin-top: var(--s4); border: var(--line) solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--paper); box-shadow: var(--lift-lg); }
.sw-left { position: relative; background: var(--fire); color: var(--ink); display: grid; place-items: center; min-height: 240px; padding: var(--s3); overflow: hidden; transition: color 280ms var(--ease); }
.sw-glyph { font-family: var(--serif); font-weight: 700; font-size: var(--fs-glyph); line-height: 1; position: relative; z-index: 1; white-space: nowrap; transition: opacity 280ms var(--ease), translate 280ms var(--ease); }
.sw-glyph.is-swapping { opacity: 0; translate: 0 8px; }
.sw-art { position: absolute; right: -16px; bottom: -24px; width: 200px; opacity: .4; pointer-events: none; }
.sw-art .scr { opacity: calc(1 - var(--m)); }
.sw-art .grd { opacity: var(--m); }
.sw-panel { padding: var(--s4); position: relative; z-index: 2; min-width: 0; }
.sw-kicker { display: inline-block; font-size: var(--fs-1); font-weight: 700; color: var(--ink-2); margin-bottom: var(--s1); }
.sw-copy { display: grid; }
.sw-state { grid-area: 1 / 1; min-width: 0; transition: opacity 180ms var(--ease), visibility 0s 180ms; }
.sw-state:not(.is-on) { opacity: 0; visibility: hidden; }
.sw-state.is-on { transition: opacity 180ms var(--ease) 80ms, visibility 0s; }
.sw-panel h3 { font-size: var(--fs-4); margin-bottom: var(--s1); max-width: 16em; }
.sw-state p { color: var(--ink-2); }
.sw-tags { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); margin: var(--s2) 0 var(--s3); }
.sw-tags li { font-weight: 700; font-size: var(--fs-1); color: var(--ink-2); }
.sw-tags li::before { content: "·"; margin-right: var(--s0); color: var(--fire); }
.sw-control { display: flex; align-items: center; gap: var(--s2); max-width: 520px; }
.sw-control button { font-family: var(--serif); font-weight: 700; font-size: var(--fs-3); width: 48px; height: 48px; border-radius: 50%; border: var(--line) solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; box-shadow: var(--lift-sm); flex: none; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.sw-control button:hover { transform: translate(-2px, -2px); box-shadow: var(--lift-md); }
.sw-control button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); transition-duration: 100ms; }
.sw-control input { flex: 1; min-width: 0; min-height: 44px; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
.sw-control input::-webkit-slider-runnable-track { height: 16px; border-radius: 999px; border: var(--line) solid var(--ink); background: linear-gradient(90deg, var(--fire), var(--mango) 50%, var(--moss)); }
.sw-control input::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 44px; margin-top: -16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transition: transform var(--t) var(--ease); }
.sw-control input:hover::-webkit-slider-thumb { transform: scale(1.06); }
.sw-control input::-moz-range-track { height: 16px; border-radius: 999px; border: var(--line) solid var(--ink); background: linear-gradient(90deg, var(--fire), var(--mango) 50%, var(--moss)); }
.sw-control input::-moz-range-thumb { width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); }

/* ---------- 頁尾：每一頁都有，各大平台都在這裡 ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-top: var(--s6); position: relative; overflow: hidden; }
.site-footer .grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s4); align-items: center; }
.site-footer .lock { width: 128px; height: auto; }
.site-footer .motto { text-wrap: balance; font-family: var(--serif); font-size: var(--fs-4); font-weight: 700; line-height: 1.35; max-width: 14em; }
.site-footer .motto em { display: block; font-style: italic; font-size: var(--fs-2); color: var(--mango-text); margin-top: var(--s1); }
.footer-nav { display: grid; font-weight: 700; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-nav a:hover { color: var(--mango-text); text-decoration: underline; text-underline-offset: 4px; }
.footer-socials { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.site-footer .icon-btn { background: transparent; color: var(--paper); border-color: var(--paper); box-shadow: none; }
.site-footer .icon-btn:hover { background: var(--paper); color: var(--ink); transform: translateY(-2px); }
.site-footer .legal { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid color-mix(in srgb, var(--paper) 25%, transparent); display: flex; justify-content: space-between; align-items: center; gap: var(--s1) var(--s3); flex-wrap: wrap; font-size: var(--fs-1); color: var(--on-ink); }
.site-footer .legal p { max-width: none; }
.site-footer .legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); text-underline-offset: 4px; }
.footer-mail { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); }
.footer-mail .copy-btn { color: var(--paper); }
.footer-mail-k { font-weight: 700; color: var(--mango-text); }
.footer-count { min-height: var(--s3); margin-top: var(--s1); font-size: var(--fs-1); color: var(--on-ink); font-variant-numeric: tabular-nums; }

/* 範例模式提示（?demo，只在自己電腦） */
.demo-banner { position: fixed; left: var(--s2); right: var(--s2); top: 76px; z-index: 60; max-width: 560px; margin: 0 auto; background: var(--ink); color: var(--paper); border-radius: var(--r-md); padding: var(--s1) var(--s2); font-size: var(--fs-1); font-weight: 700; box-shadow: 4px 4px 0 var(--mango); }

/* ==========================================================
   子頁面共用：頁面標題、列表標題、篩選
   ========================================================== */
.page-hero { position: relative; padding: var(--s5) 0; overflow: hidden; border-bottom: var(--line) solid var(--ink); }
.page-hero .wrap { z-index: 2; }
.page-title { font-size: var(--fs-5); line-height: 1.2; margin: var(--s2) 0; }
.page-hero .sun { position: absolute; width: 280px; aspect-ratio: 1; right: -60px; top: -80px; border-radius: 50%; background: var(--mango); z-index: 0; }
.page-hero .stamp { width: 72px; right: 200px; bottom: 24px; transform: rotate(9deg); z-index: 1; }

.list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s3); margin-bottom: var(--s4); }
.list-head .sec-title { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: var(--s1); }
.filters[hidden] { display: none; }
/* 有 JS 時先留好篩選按鈕的位置（看不到、也按不到），按鈕出現時下面的卡片才不會被推著跳 */
.js .filters[hidden] { display: flex; visibility: hidden; min-height: 44px; }
.filters button { min-height: 44px; padding: var(--s1) var(--s3); border-radius: 999px; border: var(--line) solid var(--ink); background: var(--card); font-weight: 700; cursor: pointer; box-shadow: var(--lift-sm); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease); }
.filters button:hover { transform: translate(-2px, -2px); box-shadow: var(--lift-md); }
.filters button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); transition-duration: 100ms; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.empty-card { grid-column: 1 / -1; position: relative; display: grid; gap: var(--s2); justify-items: start; padding: var(--s4); background: var(--card); border: var(--line) dashed var(--ink); border-radius: var(--r); }
.empty-card .tape { top: -12px; left: 32px; transform: rotate(-4deg); }
.empty-title { font-size: var(--fs-3); font-weight: 700; color: var(--ink); }
.empty-card p { color: var(--ink-2); }
.empty-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); }
.demo-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 var(--s1); border-radius: var(--r-sm); background: var(--mango); color: var(--ink); font-size: var(--fs-1); font-weight: 700; }

/* ==========================================================
   活動頁、活動卡
   ========================================================== */
.event-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--s4) var(--s3); align-items: start; }
.event-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--r); box-shadow: var(--lift-sm); }
.event-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s1) var(--s2); padding: var(--s2) var(--s3); }
.event-kicker { min-width: 0; font-size: var(--fs-1); font-weight: 700; letter-spacing: .04em; color: var(--moss); overflow-wrap: anywhere; }
.event-flags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); min-width: 0; }
/* 票根：虛線撕線＋兩邊的半圓缺口 */
.perf { display: block; position: relative; width: 100%; border-top: 2px dashed var(--ink); }
.perf::before, .perf::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: var(--line) solid var(--ink); }
.perf::before { left: -14px; clip-path: inset(0 0 0 50%); }
.perf::after { right: -14px; clip-path: inset(0 50% 0 0); }
.event-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 2px solid var(--ink); }
.event-body { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s3); flex: 1; min-width: 0; }
.event-title { font-family: var(--sans); font-size: var(--fs-3); font-weight: 700; line-height: 1.4; max-width: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.event-summary { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); padding: var(--s2) 0; border-block: 2px dashed color-mix(in srgb, var(--ink) 35%, transparent); }
.field { min-width: 0; }
.field.is-wide { grid-column: 1 / -1; }
.field dt { font-size: var(--fs-1); font-weight: 700; color: var(--ink-2); }
.field dd { font-weight: 700; overflow-wrap: anywhere; }
.event-meta { font-size: var(--fs-1); color: var(--ink-2); overflow-wrap: anywhere; }
.event-meta-label { font-weight: 700; color: var(--ink); }
.bring-list { display: flex; flex-wrap: wrap; gap: var(--s0) var(--s2); margin-top: var(--s0); }
.bring-list li { display: flex; align-items: baseline; gap: var(--s1); min-width: 0; overflow-wrap: anywhere; }
.bring-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--fire); flex: none; transform: translateY(-2px); }
.event-actions { display: grid; gap: var(--s1); margin-top: auto; padding-top: var(--s1); justify-items: stretch; }
.full-note { font-size: var(--fs-1); color: var(--ink-2); }

/* 狀態：色點＋文字（不是按鈕，所以沒有框） */
.status { display: inline-flex; align-items: center; gap: var(--s1); max-width: 100%; font-size: var(--fs-1); font-weight: 700; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; background: var(--mango); flex: none; }
.status.is-open::before { background: var(--moss-tint); }
.status.is-full::before { background: var(--fire); }
.status span { overflow-wrap: anywhere; min-width: 0; }

.past-list { display: grid; border-top: 2px solid var(--ink); }
.past-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: var(--s1) var(--s2); align-items: baseline; padding: var(--s2) 0; border-bottom: 2px dashed color-mix(in srgb, var(--ink) 35%, transparent); }
.past-date { font-weight: 700; white-space: nowrap; }
.past-type { font-size: var(--fs-1); font-weight: 700; color: var(--moss); overflow-wrap: anywhere; min-width: 0; }
.past-title { overflow-wrap: anywhere; min-width: 0; }
.past-empty { color: var(--ink-2); }
.past-empty a { color: var(--moss); font-weight: 700; text-underline-offset: 4px; }

/* ==========================================================
   共學作品
   ========================================================== */
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s5) var(--s4); align-items: start; }
.work-card { position: relative; min-width: 0; background: var(--white); padding: var(--s2) var(--s2) var(--s3); border-radius: 4px; box-shadow: 0 16px 24px -16px color-mix(in srgb, var(--ink) 45%, transparent); transform: rotate(var(--rot, 0deg)); }
.work-card:nth-child(3n+1) { --rot: -1.2deg; }
.work-card:nth-child(3n+2) { --rot: 1deg; }
.work-card:nth-child(3n+3) { --rot: -.6deg; }
.work-card .tape { top: -12px; left: 50%; margin-left: -48px; }
.work-card .pol-img img { transition: transform 320ms var(--ease); }
.work-card .pol-img:hover img { transform: scale(1.04); }
.work-card .pol-img.is-blank { display: grid; place-items: center; cursor: default; background-color: var(--mango-soft); }
.work-card .pol-img.is-blank svg { width: 38%; }
.work-body { display: grid; gap: var(--s1); padding: var(--s2) var(--s0) 0; min-width: 0; }
.work-kicker { font-size: var(--fs-1); font-weight: 700; color: var(--moss); overflow-wrap: anywhere; }
.work-title { font-family: var(--sans); font-size: var(--fs-3); line-height: 1.35; max-width: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.work-by { font-size: var(--fs-1); font-weight: 700; color: var(--ink-2); overflow-wrap: anywhere; }
.work-summary { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tool-tags { display: flex; flex-wrap: wrap; gap: var(--s0) var(--s2); }
.tool-tags li { font-size: var(--fs-1); font-weight: 700; color: var(--ink-2); overflow-wrap: anywhere; min-width: 0; }
.tool-tags li::before { content: "·"; margin-right: var(--s0); color: var(--fire); }

/* ==========================================================
   論壇：左邊分類、右邊大文章＋文章列表
   ========================================================== */
.forum { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s5); align-items: start; }
.forum-cats { position: sticky; top: 88px; min-width: 0; }
.cats-title { font-size: var(--fs-1); font-weight: 700; color: var(--ink-2); margin-bottom: var(--s1); }
.cats-list { display: grid; gap: var(--s1); }
.cat-link { display: flex; align-items: center; gap: var(--s1); min-height: 48px; padding: var(--s1) var(--s2); background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--r-md); box-shadow: var(--lift-sm); font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease); }
.cat-link:hover { transform: translate(-2px, -2px); box-shadow: var(--lift-md); }
.cat-link:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); transition-duration: 100ms; }
.cat-link[aria-current="true"] { background: var(--ink); color: var(--paper); }
.cat-link .count { margin-left: auto; min-width: 24px; text-align: right; font-size: var(--fs-1); color: inherit; opacity: .8; }
.cat-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; background: var(--c, var(--paper)); flex: none; }
.cats-note { margin-top: var(--s2); font-size: var(--fs-1); color: var(--ink-2); }
.cat-ai { --c: var(--harbor-soft); }
.cat-media { --c: var(--rose-soft); }
.cat-voice { --c: var(--mango-soft); }
.cat-tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--s1); border: 2px solid var(--ink); border-radius: 999px; background: var(--c, var(--card)); color: var(--ink); font-size: var(--fs-1); font-weight: 700; }
.pin-tag { display: inline-flex; align-items: center; gap: var(--s0); font-size: var(--fs-1); font-weight: 700; color: var(--ink); }
.pin-tag .icon { width: 16px; height: 16px; color: var(--fire); }
.forum-main { min-width: 0; display: grid; gap: var(--s4); }
.forum-heading { font-family: var(--sans); font-size: var(--fs-3); margin: var(--s2) 0 0; }

.post-feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--r); box-shadow: var(--lift-lg); overflow: hidden; text-decoration: none; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.post-feature:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 var(--ink); }
.post-feature:active { transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--ink); transition-duration: 100ms; }
.feature-img { position: relative; min-width: 0; min-height: 300px; background: var(--c, var(--kraft)); border-right: var(--line) solid var(--ink); overflow: hidden; }
.feature-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 320ms var(--ease); }
.post-feature:hover .feature-img img { transform: scale(1.03); }
.feature-img.is-blank { display: grid; place-items: center; }
.feature-img.is-blank svg { width: 36%; }
.feature-body { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); min-width: 0; }
.post-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); }
.feature-title { font-family: var(--sans); font-size: var(--fs-4); line-height: 1.3; font-weight: 700; max-width: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.feature-summary { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.post-meta { font-size: var(--fs-1); font-weight: 700; color: var(--ink-2); overflow-wrap: anywhere; }
.post-feature .post-meta, .post-row .post-meta, .work-by { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feature-body .go { display: inline-flex; align-items: center; gap: var(--s0); margin-top: auto; font-weight: 700; color: var(--moss); text-decoration: underline; text-underline-offset: 4px; }
.feature-body .go .icon { transition: transform var(--t) var(--ease); }
.post-feature:hover .go .icon { transform: translateX(3px); }

.post-list { display: grid; gap: var(--s2); }
.post-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s1) var(--s3); align-items: center; padding: var(--s3); background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--r-md); box-shadow: var(--lift-sm); text-decoration: none; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.post-row:hover { transform: translate(-2px, -2px); box-shadow: var(--lift-md); }
.post-row:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); transition-duration: 100ms; }
.post-row-main { display: grid; gap: var(--s1); min-width: 0; }
.post-row-title { font-size: var(--fs-3); font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.post-row-summary { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.post-thumb { width: 104px; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--ink); border-radius: var(--r-sm); }

/* 文章頁 */
.post-wrap { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: var(--s5) 0 var(--s6); }
.post-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); font-size: var(--fs-1); font-weight: 700; color: var(--ink-2); max-width: none; }
.post-crumbs a { display: inline-flex; align-items: center; gap: var(--s0); min-height: 44px; color: var(--moss); text-underline-offset: 4px; }
.post-head { display: grid; gap: var(--s2); margin-top: var(--s2); }
.post-title { font-family: var(--sans); font-size: var(--fs-4); line-height: 1.3; max-width: none; overflow-wrap: anywhere; }
.post-head .cat-tag { text-decoration: none; transition: transform var(--t) var(--ease); }
.post-head a.cat-tag:hover { transform: translateY(-2px); }
.post-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: var(--s4) 0 0; border: var(--line) solid var(--ink); border-radius: var(--r); box-shadow: var(--lift-lg); }
.prose { margin-top: var(--s4); }
.prose > * + * { margin-top: 1.1em; }
.prose p { max-width: none; overflow-wrap: anywhere; }
.prose h2 { font-family: var(--sans); font-size: var(--fs-3); line-height: 1.4; margin-top: 1.8em; max-width: none; }
.prose ul { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--fire); }
.prose blockquote { padding: var(--s1) 0 var(--s1) var(--s2); border-left: 4px solid var(--mango); font-weight: 700; color: var(--ink-2); }
.prose a { color: var(--moss); font-weight: 700; text-underline-offset: 4px; overflow-wrap: anywhere; }
.prose a:hover { text-decoration-color: var(--fire); }
.prose img { border: 2px solid var(--ink); border-radius: var(--r-sm); }
.post-out { margin-top: var(--s4); }
.post-foot { margin-top: var(--s5); padding-top: var(--s4); border-top: 2px dashed color-mix(in srgb, var(--ink) 35%, transparent); display: grid; gap: var(--s3); }
.post-foot h2 { font-family: var(--sans); font-size: var(--fs-3); }

/* 載入中：資料處理好之前先放骨架（淡墨色橫條），1.5 秒後一定會出現內容（萬一程式壞掉） */
.js [data-skeleton]:not([data-ready]) { position: relative; }
.js [data-skeleton]:not([data-ready]) > * { visibility: hidden; animation: yx-show 0s 1.5s forwards; }
.js [data-skeleton]:not([data-ready])::after {
  content: ""; position: absolute; inset: var(--s3); border-radius: var(--r-sm); pointer-events: none;
  background: linear-gradient(color-mix(in srgb, var(--ink) 12%, transparent) 0 0) 0 0 / 40% 16px no-repeat,
    linear-gradient(color-mix(in srgb, var(--ink) 12%, transparent) 0 0) 0 40px / 80% 24px no-repeat,
    linear-gradient(color-mix(in srgb, var(--ink) 12%, transparent) 0 0) 0 80px / 60% 16px no-repeat;
  animation: yx-hide 0s 1.5s forwards;
}
.js .next-card[data-skeleton]:not([data-ready])::after { background-image: linear-gradient(color-mix(in srgb, var(--paper) 20%, transparent) 0 0), linear-gradient(color-mix(in srgb, var(--paper) 20%, transparent) 0 0), linear-gradient(color-mix(in srgb, var(--paper) 20%, transparent) 0 0); inset: var(--s4); }
/* 資料還沒放進來之前，先把頁尾藏起來：內容長出來時，頁尾才不會被推著跳（1.5 秒後一定出現） */
.js body:has([data-skeleton]:not([data-ready])) .site-footer { visibility: hidden; animation: yx-show 0s 1.5s forwards; }
@keyframes yx-show { to { visibility: visible; } }
@keyframes yx-hide { to { visibility: hidden; } }

/* ==========================================================
   報名頁：活動資訊＋兩個步驟（LINE 登入 → 填表）
   ========================================================== */
.join-wrap { width: min(760px, calc(100% - 32px)); margin: 0 auto; }
.join-box { display: grid; gap: var(--s4); margin-top: var(--s4); }
.join-event .event-title { -webkit-line-clamp: 4; }
.join-panel { min-width: 0; }
.join-step, .join-done { position: relative; display: grid; gap: var(--s2); padding: var(--s4); background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--r); box-shadow: var(--lift-sm); }
.step-count { font-size: var(--fs-1); font-weight: 700; color: var(--moss); }
.join-title { font-size: var(--fs-4); font-weight: 700; line-height: 1.3; outline: none; }
.join-step > p, .join-done > p { color: var(--ink-2); }
.join-step > .join-title, .join-done > .join-title { color: var(--ink); }
.join-alert { padding: var(--s1) var(--s2); background: var(--mango-soft); border-radius: var(--r-sm); color: var(--ink) !important; font-weight: 700; }
.join-done.is-ok { background: var(--moss-soft); }
.join-done.is-wait { background: var(--mango-soft); }
.join-done.is-no { background: var(--paper); }
.join-done .fields { border-color: color-mix(in srgb, var(--ink) 25%, transparent); }
.join-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); }
.join-friend { display: grid; gap: var(--s0); padding-top: var(--s2); border-top: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent); }
.join-note { margin-top: var(--s3); font-size: var(--fs-1); color: var(--ink-2); }
.join-note a { color: var(--moss); font-weight: 700; text-underline-offset: 4px; }

/* 表單 */
.form-who { font-size: var(--fs-1); }
.form-who .text-btn { min-height: 44px; padding: 0 var(--s0); font-size: var(--fs-1); }
.form-row { display: grid; gap: var(--s1); min-width: 0; border: 0; }
.form-row > label, .form-row > legend { font-weight: 700; color: var(--ink); padding: 0; }
.form-hint { font-size: var(--fs-1); font-weight: 400; color: var(--ink-2); }
.form-row input[type="text"], .form-row input:not([type]), .form-row input[type="tel"], .form-row input[type="email"], .form-row input[type="date"], .form-row input[type="time"], .form-row input[type="number"], .form-row select, .form-row textarea {
  width: 100%; min-height: 48px; padding: var(--s1) var(--s2); background: var(--white); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--r-sm); font: inherit; font-size: var(--fs-2);
}
.form-row textarea { min-height: 112px; resize: vertical; line-height: 1.6; }
.form-row input::placeholder, .form-row textarea::placeholder { color: color-mix(in srgb, var(--ink-2) 75%, transparent); }
.form-row input:focus-visible, .form-row select:focus-visible, .form-row textarea:focus-visible { outline: 3px solid var(--harbor); outline-offset: 2px; }
.form-row [aria-invalid="true"] { border-color: var(--fire); background: color-mix(in srgb, var(--fire) 8%, var(--white)); }
.form-err { font-size: var(--fs-1); font-weight: 700; color: var(--ink); }
.form-err:not(:empty)::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: var(--s1); border-radius: 50%; background: var(--fire); border: 1.5px solid var(--ink); }
.form-err:empty { display: none; }
.form-status { font-weight: 700; color: var(--ink); min-height: 1.65em; }
/* 單選：一顆一顆的膠囊（真的 radio，鍵盤可以用方向鍵選） */
.pills { display: flex; flex-wrap: wrap; gap: var(--s1); }
.pill { position: relative; display: inline-flex; }
.pill input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; padding: var(--s0) var(--s2); background: var(--white); border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; transition: background-color var(--t) var(--ease), transform var(--t) var(--ease); }
.pill:hover span { transform: translateY(-2px); }
.pill input:checked + span { background: var(--ink); color: var(--paper); }
.pill input:focus-visible + span { outline: 3px solid var(--harbor); outline-offset: 2px; }
.consent { display: flex; align-items: flex-start; gap: var(--s1); font-weight: 400 !important; color: var(--ink-2) !important; cursor: pointer; }
.consent input { flex: none; width: 24px; height: 24px; margin-top: 2px; accent-color: var(--moss); }
.consent a { color: var(--moss); font-weight: 700; text-underline-offset: 4px; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* 個資告知 */
.privacy { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: var(--s5) 0 var(--s6); }
.privacy h2 { font-size: var(--fs-3); margin: var(--s4) 0 var(--s1); }
.privacy p, .privacy li { color: var(--ink-2); }
.privacy ul { padding-left: 1.3em; display: grid; gap: var(--s0); }
.privacy li::marker { color: var(--fire); }
.privacy a { color: var(--moss); font-weight: 700; text-underline-offset: 4px; }

/* ==========================================================
   連結頁：全平台入口（名片 QR、IG 簡介連到這裡）
   最顯眼的是 LINE（窯火橘、整排寬），下面 6 個平台，最下面是合作聯絡
   ========================================================== */
.links-main { display: grid; justify-items: center; gap: var(--s4); padding: var(--s5) 0 var(--s6); }
.hub { display: grid; gap: var(--s5); width: min(1280px, calc(100% - 32px)); padding: var(--s5); background: var(--paper); border: var(--line) solid var(--ink); border-radius: var(--r); box-shadow: var(--lift-lg); }
.hub-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: var(--s3) var(--s5); }
.hub .eyebrow span { font-family: var(--mono); letter-spacing: .12em; }
.hub-title { margin-top: var(--s2); font-size: var(--fs-5); line-height: 1.2; }
.hub-note { color: var(--ink-2); }
.hub-note a { color: var(--moss); font-weight: 700; text-underline-offset: 4px; }
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.hub-grid > .is-wide { grid-column: 1 / -1; }
.hub-card { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: var(--s2); height: 100%; min-height: 96px; padding: var(--s2); background: var(--card); color: var(--ink); border: var(--line) solid var(--ink); border-radius: var(--r-md); box-shadow: var(--lift-sm); text-decoration: none; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease); }
.hub-card:hover { transform: translate(-2px, -2px); box-shadow: var(--lift-md); background: color-mix(in srgb, var(--mango-soft) 45%, var(--card)); }
.hub-card:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); transition-duration: 100ms; }
.hub-card.is-primary, .hub-card.is-primary:hover { background: var(--fire); }
.hub-card > .icon { width: 22px; height: 22px; }
.hub-ico { display: grid; place-items: center; width: 52px; height: 52px; background: var(--card); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r-md); flex: none; }
.hub-ico .icon { width: 26px; height: 26px; }
.hub-ico.is-ig { background: var(--white); }
.hub-ico.is-threads { background: var(--ink); color: var(--mango); }
.hub-ico.is-yt { background: var(--rose-soft); color: var(--fire); }
.hub-ico.is-fb { background: var(--moss-soft); }
.hub-ico.is-mail { background: var(--mango); }
.hub-text { display: grid; gap: 2px; min-width: 0; max-width: none; }
.hub-name { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s0) var(--s1); font-size: var(--fs-3); font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.hub-sub { display: grid; font-size: var(--fs-1); color: var(--ink-2); overflow-wrap: anywhere; }
.hub-card.is-primary .hub-sub { color: var(--ink); }
.hub-handle { font-family: var(--mono); }
.hub-badge { display: inline-flex; align-items: center; padding: 0 var(--s1); background: var(--mango); border: 1.5px solid var(--ink); border-radius: 999px; font-size: var(--fs-1); line-height: 1.6; }
.hub-mail { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: var(--s2) var(--s3); padding: var(--s3); background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--r-md); }
.hub-mail .hub-name { font-size: var(--fs-2); }
.hub-mail .hub-sub { display: block; }
.btn-ink { background: var(--ink); color: var(--paper); }                 /* 深色的次要按鈕（不是主要按鈕的窯火橘） */
.links-main .tagline { font-family: var(--serif); font-style: italic; font-weight: 700; color: var(--moss); }

/* ==========================================================
   404
   ========================================================== */
.notfound { border-bottom: 0; min-height: calc(100vh - 66px); display: grid; align-items: center; }
.notfound .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s5); align-items: center; }
.nf-card { position: relative; width: 220px; aspect-ratio: 3 / 4; background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--r-sm); transform: rotate(4deg); box-shadow: 8px 8px 0 var(--moss); }
.nf-card img { position: absolute; inset: 14% 18%; width: 64%; height: 72%; object-fit: contain; }
.nf-card .tape { top: -12px; left: 30%; transform: rotate(-6deg); }

/* ==========================================================
   進場：往上一點＋淡入。已經在畫面裡的不做（site.js 決定）
   ========================================================== */
.js .reveal { opacity: 0; translate: 0 12px; transition: opacity var(--t-in) var(--ease), translate var(--t-in) var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }
@media print { .js .reveal { opacity: 1; translate: none; } }

/* ==========================================================
   響應式
   ========================================================== */
@media (max-width: 1024px) {
  .dowhat .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dcard:nth-child(even) { transform: rotate(1deg); }
  .name-trail { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s4); }
  .name-trail::before { display: none; }
  .post-feature { grid-template-columns: minmax(0, 1fr); }
  .feature-img { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: var(--line) solid var(--ink); }
}

@media (max-width: 900px) {
  .hero { padding: var(--s2) 0 var(--s3); }
  .hero > .wrap, .philo .top, .goals > .wrap, .host > .wrap, .culture { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .hero h1 { margin-top: var(--s1); }
  .cta-row { flex-direction: column; align-items: stretch; margin-top: var(--s2); }
  .hero .cta-row .btn { order: -1; margin-left: 0; }
  .cta-row .text-link { justify-content: center; }
  .chips { margin-top: var(--s1); }
  .hero-art { justify-self: center; width: min(100%, 340px); aspect-ratio: 16 / 11; margin-top: var(--s1); }
  .hero-card { inset: 8% 3% 5% 4%; padding: 10px; }
  .hero-card::after { content: none; }
  .hero-art .chat { width: 22%; left: -6%; bottom: -2%; }
  .hero-art .stamp { width: 15%; right: -2%; top: -2%; }
  .triad { grid-template-columns: minmax(0, 1fr); }
  .yx-switch { grid-template-columns: minmax(0, 1fr); }
  .sw-left { min-height: 160px; }
  .sw-panel { padding: var(--s3); }
  section.block { padding: var(--s5) 0; }
  .site-footer .grid { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .portrait { max-width: 320px; }
  .notfound .wrap { grid-template-columns: minmax(0, 1fr); }
  .nf-card { width: 160px; grid-row: 1; }
  .page-hero .stamp { display: none; }
  .join-card { grid-template-columns: minmax(0, 1fr); padding: var(--s4) var(--s3); }
  .join-actions { justify-items: stretch; }
  .forum { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  /* 手機：分類變成一排可以左右滑的按鈕，捲動時貼在頁首下面 */
  .forum-cats { position: sticky; top: 64px; z-index: 20; margin: 0 -16px; padding: var(--s1) 16px; background: color-mix(in srgb, var(--paper) 96%, transparent); border-bottom: 2px solid var(--ink); }
  .cats-title, .cats-note { display: none; }
  .cats-list { display: flex; gap: var(--s1); overflow-x: auto; scrollbar-width: none; padding: var(--s0) 2px var(--s1); }
  .cats-list::-webkit-scrollbar { display: none; }
  .cat-link { min-height: 44px; box-shadow: 2px 2px 0 var(--ink); }
}

@media (max-width: 960px) {
  .hub-head { grid-template-columns: minmax(0, 1fr); }
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .hub { gap: var(--s4); padding: var(--s3); }
  .hub-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .hub-card { grid-template-columns: 48px minmax(0, 1fr) auto; min-height: 80px; padding: var(--s2); }
  .hub-ico { width: 48px; height: 48px; }
  .hub-name { font-size: var(--fs-2); }
  .hub-mail { grid-template-columns: 48px minmax(0, 1fr); padding: var(--s2); }
  .hub-mail .btn { grid-column: 1 / -1; }

  .dowhat .cards, .notes, .name-trail { grid-template-columns: minmax(0, 1fr); }
  .dcard, .dcard:nth-child(odd), .dcard:nth-child(even) { transform: none; }
  .facts { gap: var(--s1); }
  .fact { padding: var(--s1); }
  .offer-list { grid-template-columns: minmax(0, 1fr); }
  .offer, .offer:nth-child(1), .offer:nth-child(2) { transform: none; }
  .hide-m { display: none; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; } .lb-close { right: 8px; top: -8px; }
  .js .rail-btns { display: none; }
  .rail { gap: var(--s2); }
  .rail .polaroid { flex-basis: 78%; scroll-snap-align: center; }
  .swipe-hint { display: block; }
  .past-row { grid-template-columns: auto minmax(0, 1fr); }
  .list-head .filters { flex-basis: 100%; }
  .past-title { grid-column: 1 / -1; }
  .next-card { padding: var(--s3); }
  .page-hero .sun { width: 150px; right: -56px; top: -64px; }
  .name-stop { grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto; align-items: start; }
  .stop-dot { width: 64px; height: 64px; font-size: var(--fs-3); }
  .feature-body { padding: var(--s3); }
  .post-row { grid-template-columns: minmax(0, 1fr); padding: var(--s2); }
  .post-thumb { display: none; }
  .join-step, .join-done { padding: var(--s3); }
  .join-title { font-size: var(--fs-3); }
}

@media (max-width: 420px) {
  .header-cta .long { display: none; }
  .header-cta .short { display: inline; }
  .brand img { height: 48px; }
  .dock ul { padding-inline: 2px; }
}

/* 減少動態：動畫、過渡都變成一瞬間（骨架的 1.5 秒保底還是有效）；一直在動的都停下來 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee .track, .note-you a, .note-you a::after, .dock-face::after, .dcard .ico, .dcard .ico * { animation: none !important; }
}
