/* 黑白色系(2026-10-17 改成 Vercel 那種黑白:更乾淨的白底、細線框、疊層淡陰影) */
:root {
  --bg: #fafafa;
  --card: #ffffff;
  --ink: #171717;
  --secondary: #5c5c5c;
  --tertiary: #a1a1a1;
  --separator: rgba(0, 0, 0, .08);
  --fill: rgba(0, 0, 0, .045);
  --accent: #171717;         /* 主要按鈕、開關 */
  --on-accent: #ffffff;
  --link: #171717;
  --danger: #e00000;
  --bar: rgba(250, 250, 250, .72);
  --ease: cubic-bezier(.32, .72, 0, 1);   /* iOS 常用的收尾曲線 */
  --ring: 0 0 0 1px rgba(0, 0, 0, .08);
  --lift: 0 2px 2px rgba(0, 0, 0, .04), 0 8px 16px -4px rgba(0, 0, 0, .04);
  --lift-hi: 0 1px 1px rgba(0, 0, 0, .02), 0 8px 16px -4px rgba(0, 0, 0, .04), 0 24px 32px -8px rgba(0, 0, 0, .06);
  --glow: rgba(255, 255, 255, .9);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a; --card: #141414; --ink: #ededed;
    --secondary: #a1a1a1; --tertiary: #5e5e5e;
    --separator: rgba(255, 255, 255, .1); --fill: rgba(255, 255, 255, .07);
    --accent: #ededed; --on-accent: #0a0a0a; --link: #ededed;
    --danger: #ff6166; --bar: rgba(10, 10, 10, .72);
    --ring: 0 0 0 1px rgba(255, 255, 255, .1);
    --lift: 0 2px 2px rgba(0, 0, 0, .3), 0 8px 16px -4px rgba(0, 0, 0, .3);
    --lift-hi: 0 8px 16px -4px rgba(0, 0, 0, .4), 0 24px 32px -8px rgba(0, 0, 0, .5);
    --glow: rgba(255, 255, 255, .06);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 17px; line-height: 1.47; letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
a { color: var(--link); text-decoration: underline; text-decoration-color: var(--tertiary); text-underline-offset: 3px; }
[hidden] { display: none !important; }

/* 半透明頂部列,內容從下面捲過去 */
.bar {
  position: sticky; top: 0; z-index: 10;
  padding: calc(env(safe-area-inset-top) + 12px) 16px 12px;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 .5px 0 var(--separator);
  font-weight: 600; font-size: 17px;
}
.bar .inner { max-width: 640px; margin: 0 auto; position: relative; text-align: center; }
.bar .back { position: absolute; left: 0; top: 0; font-weight: 400; text-decoration: none; }

.wrap { max-width: 640px; margin: 0 auto; padding: 8px 16px calc(env(safe-area-inset-bottom) + 40px); }

/* 大標題:字越大,字距越緊 */
.large-title { margin: 20px 4px 4px; font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -.025em; }
.subtitle { margin: 0 4px 24px; color: var(--secondary); font-size: 15px; letter-spacing: 0; }

/* 分組 */
.section-label { margin: 28px 16px 7px; font-size: 13px; color: var(--secondary); letter-spacing: 0; }
.group { background: var(--card); border-radius: 12px; overflow: hidden; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; min-height: 44px; }
.footnote { margin: 8px 16px 0; font-size: 13px; line-height: 1.4; color: var(--secondary); letter-spacing: 0; }
.card { background: var(--card); border-radius: 12px; padding: 16px; }
/* 清單式連結(投稿頁「其他」) */
.links .row { color: var(--ink); text-decoration: none; transition: background-color .2s; }
.links .row + .row { box-shadow: inset 0 .5px 0 var(--separator); }
.links .row:active { background: var(--fill, rgba(0,0,0,.05)); }
.links .chev { color: var(--secondary); font-size: 15px; }

/* 輸入 */
textarea {
  display: block; width: 100%; min-height: 220px; resize: vertical; padding: 14px 16px 6px;
  border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 17px; line-height: 1.5;
}
textarea::placeholder, input::placeholder { color: var(--tertiary); }
textarea:focus, input:focus { outline: none; }
.counter { padding: 0 16px 10px; text-align: right; font-size: 13px; color: var(--secondary); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.counter.over { color: var(--danger); font-weight: 600; }
input[type=password] { width: 100%; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 17px; padding: 0; }

/* 加入照片:清單裡的動作列 */
.picker {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 11px 16px;
  border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: background-color .2s;
}
.picker:active { background: var(--fill); transition: none; }
.picker svg { width: 22px; height: 22px; flex: none; color: var(--secondary); }
.preview { position: relative; display: none; }
.preview img { width: 100%; max-height: 380px; object-fit: contain; display: block; background: var(--fill); }
.preview button {
  position: absolute; top: 10px; right: 10px; border: 0; border-radius: 999px; padding: 6px 14px;
  background: rgba(0, 0, 0, .45); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}

/* 圓形勾選框(像 iOS 提醒事項) */
.check-row { justify-content: flex-start; cursor: pointer; }
.check-row span { font-size: 15px; line-height: 1.4; letter-spacing: 0; }
.checkbox {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0;
  width: 24px; height: 24px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid var(--tertiary); background: transparent; display: grid; place-items: center;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .1s ease-out;
}
.checkbox::after {
  content: ""; width: 6px; height: 11px; margin-top: -2px;
  border: solid var(--on-accent); border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg) scale(0); transition: transform .3s var(--ease);
}
.checkbox:active { transform: scale(.9); }
.checkbox:checked { background: var(--accent); border-color: var(--accent); }
.checkbox:checked::after { transform: rotate(45deg) scale(1); }
.checkbox:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* 按鈕:按下去的瞬間就有反應 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 12px; padding: 10px 16px; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0;
  background: var(--accent); color: var(--on-accent); cursor: pointer; text-decoration: none;
  transition: transform .3s var(--ease), opacity .2s;
}
.btn:active { transform: scale(.97); opacity: .8; transition: transform .1s ease-out, opacity .1s; }
.btn:disabled { opacity: .3; cursor: not-allowed; transform: none; }
.btn.block { width: 100%; margin-top: 24px; font-size: 17px; padding: 15px; border-radius: 14px; }
.btn.ghost { background: var(--fill); color: var(--ink); }
.btn.small { padding: 7px 14px; font-size: 14px; border-radius: 999px; }
.btn.danger { background: var(--fill); color: var(--danger); }
.error { color: var(--danger); font-size: 13px; margin: 10px 16px 0; min-height: 1em; letter-spacing: 0; }

/* 投稿成功 */
.done { text-align: center; padding: 40px 20px 28px; animation: rise .5s var(--ease) both; }
.done .check-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; animation: pop .5s var(--ease) .1s both;
}
.done .check-icon svg { width: 34px; height: 34px; }
.done .label { color: var(--secondary); font-size: 15px; letter-spacing: 0; }
.done .big { font-size: 48px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.done p { color: var(--secondary); font-size: 15px; margin: 0 0 24px; letter-spacing: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

footer { text-align: center; color: var(--secondary); font-size: 12px; margin-top: 36px; letter-spacing: 0; }
footer a { color: var(--secondary); }

.prose h2 { font-size: 20px; font-weight: 600; letter-spacing: -.015em; margin: 24px 0 6px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 16px; letter-spacing: 0; }
.prose ul { padding-left: 20px; }
.prose .mask-example { background: var(--fill); border-radius: 12px; padding: 12px 16px; margin: 10px 0; font-size: 16px; line-height: 1.6; letter-spacing: 0; }

/* 分段選擇器(後台) */
.segmented { display: flex; padding: 2px; border-radius: 9px; background: var(--fill); margin-bottom: 16px; position: relative; }
.segmented button {
  flex: 1; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 500;
  padding: 6px 4px; border-radius: 7px; cursor: pointer; letter-spacing: 0; position: relative; z-index: 1;
}
.segmented button.on { font-weight: 600; }
.segmented .thumb {
  position: absolute; top: 2px; bottom: 2px; left: 2px; border-radius: 7px; background: var(--card);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04);
  transition: transform .35s var(--ease);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .segmented .thumb { background: #636366; } }

/* 減少動態效果:只淡入淡出,不滑也不彈 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* 減少透明度:頂部列改成實心 */
@media (prefers-reduced-transparency: reduce) {
  .bar { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* 頂部列的小圖示 */
.bar-logo { width: 22px; height: 22px; border-radius: 5px; vertical-align: -5px; margin-right: 7px; }

/* 投稿頁的規定清單 */
.rules .rule { display: flex; align-items: flex-start; gap: 10px; padding: 11px 16px; font-size: 15px; line-height: 1.45; letter-spacing: 0; }
.rules .rule + .rule { box-shadow: inset 0 .5px 0 var(--separator); }
.tag { flex: none; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; margin-top: 1px; }
.tag.ok { background: var(--accent); color: var(--on-accent); }
.tag.no { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }

/* 投稿頁:提醒、草稿、成功畫面、紀錄 */
.counter { display: flex; justify-content: space-between; gap: 8px; }
.counter.near { color: var(--ink); font-weight: 600; }
.hint { margin: 8px 4px 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; letter-spacing: 0; background: var(--danger); color: #fff; animation: rise .3s var(--ease) both; }
textarea { overflow: hidden; }
.done-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.done-tip { margin: 16px 0 0 !important; font-size: 13px !important; }
.history-row { font-size: 15px; letter-spacing: 0; }
.history-row + .history-row { box-shadow: inset 0 .5px 0 var(--separator); }
.history-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-meta { flex: none; color: var(--secondary); font-size: 13px; font-variant-numeric: tabular-nums; }
.linkish { border: 0; background: none; padding: 0; margin-left: 6px; font: inherit; color: var(--secondary); text-decoration: underline; cursor: pointer; }
#counter.near { color: var(--ink); font-weight: 600; }
#counter.over { color: var(--danger); font-weight: 600; }

/* 投稿前請注意(可折疊) */
.rules-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; -webkit-tap-highlight-color: transparent; user-select: none; }
.rules-fold > summary::-webkit-details-marker { display: none; }
.rules-fold .fold-hint { display: inline-flex; align-items: center; gap: 4px; color: var(--secondary); }
.rules-fold .fold-hint::before { content: "展開"; }
.rules-fold[open] .fold-hint::before { content: "收起"; }
.rules-fold .fold-hint::after { content: "›"; font-size: 17px; line-height: 1; transform: rotate(90deg); transition: transform .2s; }
.rules-fold[open] .fold-hint::after { transform: rotate(-90deg); }

/* 投稿頁上方的管理員公告(寫法跟 IG 公告圖一樣,notice-card.js 轉成 HTML) */
.notice-box { position: relative; background: var(--card); border-radius: 14px; padding: 14px 40px 14px 16px; margin: 0 0 16px; font-size: 15px; line-height: 1.55; letter-spacing: 0; animation: rise .4s var(--ease) both; word-break: break-word; }
.notice-box.important { background: var(--accent); color: var(--on-accent); }
.notice-box .notice-x { position: absolute; top: 8px; right: 8px; border: 0; background: none; color: inherit; opacity: .55; font-size: 15px; cursor: pointer; padding: 4px 6px; }
.notice-box .n-h1 { font-size: 1.35em; font-weight: 800; margin: .2em 0 .3em; line-height: 1.3; }
.notice-box .n-h2 { font-size: 1.1em; font-weight: 700; margin: .4em 0 .15em; }
.notice-box .n-li { display: flex; gap: .45em; }
.notice-box .n-mark { opacity: .6; flex: none; }
.notice-box .n-quote { background: var(--fill); border-radius: 10px; padding: 8px 12px; margin: 6px 0; }
.notice-box.important .n-quote { background: rgba(255,255,255,.15); }
.notice-box .n-gap { height: .5em; }
.notice-box .n-hr, .notice-box .n-page { border: 0; height: 1px; background: var(--separator); margin: 10px 0; }
.notice-box mark { background: rgba(255,214,10,.55); color: inherit; border-radius: 3px; padding: 0 2px; }

/* ===== 節慶版面(festive.js 依日期在 <html> 加 data-fest,顏色從 themes.json 的 web 設成 --fest-* 變數) ===== */
[data-fest] {
  --accent: var(--fest-accent); --on-accent: #fff;
  --card: rgba(255, 255, 255, .8); --bar: rgba(245, 245, 247, .55);
}
@media (prefers-color-scheme: dark) {
  :root[data-fest]:not([data-theme="light"]) { --accent: var(--fest-dark); --on-accent: #fff; --card: rgba(44, 44, 46, .8); --bar: rgba(28, 28, 30, .6); }
}
/* 頂部列下面一條彩條(節日兩色 + 中間白) */
[data-fest] .bar { box-shadow: none; }
[data-fest] .bar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--fest-c1) 0 33%, #fff 33% 67%, var(--fest-c2) 67%);
}
[data-fest] .large-title::after { content: ""; display: inline-block; width: .85em; height: .85em; margin-left: .25em; vertical-align: -.05em; background: var(--fest-emoji) center / contain no-repeat; }
[data-fest] .group, [data-fest] .card { box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }

/* 背景板:固定鋪滿整個螢幕(用 position:fixed,iPhone 的 background-attachment:fixed 沒用) */
[data-fest] body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    var(--fest-img) center / cover no-repeat,
    linear-gradient(170deg, var(--fest-t1) 0%, #f4f2f8 45%, var(--fest-t2) 100%);
  animation: fest-in .6s ease-out both;
}
@media (prefers-color-scheme: dark) {
  :root[data-fest]:not([data-theme="light"]) body::before {
    background:
      var(--fest-img) center / cover no-repeat,
      linear-gradient(170deg, color-mix(in srgb, var(--fest-c1) 30%, #1c1c1e) 0%, #1c1c1e 50%, color-mix(in srgb, var(--fest-c2) 25%, #1c1c1e) 100%);
  }
}
@keyframes fest-in { from { opacity: 0; } to { opacity: 1; } }
/* 電腦(畫面比較寬)用橫的背景板,才不會被拉大變糊 */
@media (min-aspect-ratio: 1/1) {
  [data-fest] body::before { background-image: var(--fest-img-wide), linear-gradient(170deg, var(--fest-t1) 0%, #f4f2f8 45%, var(--fest-t2) 100%); }
}
@media (min-aspect-ratio: 1/1) and (prefers-color-scheme: dark) {
  :root[data-fest]:not([data-theme="light"]) body::before {
    background-image: var(--fest-img-wide), linear-gradient(170deg, color-mix(in srgb, var(--fest-c1) 30%, #1c1c1e) 0%, #1c1c1e 50%, color-mix(in srgb, var(--fest-c2) 25%, #1c1c1e) 100%);
  }
}
/* 卡片變毛玻璃,背景板從後面透出來 */
[data-fest] .group, [data-fest] .card, [data-fest] .notice-box:not(.important) {
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
}
[data-fest] .subtitle, [data-fest] .section-label, [data-fest] .footnote { color: var(--ink); opacity: .72; }

/* 投稿頁橫幅 */
.fest-banner {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px;
  margin: 4px 0 18px; padding: 18px 18px; border-radius: 16px; color: #fff;
  background: linear-gradient(115deg, var(--fest-c1) 0%, color-mix(in srgb, var(--fest-c1) 80%, #fff) 42%, color-mix(in srgb, var(--fest-c2) 90%, #000) 58%, var(--fest-c2) 100%);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--fest-c1) 30%, transparent);
  animation: rise .5s var(--ease) both;
}
.fest-banner::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .08); }   /* 淺色節日的白字也看得清楚 */
.fest-sun { flex: none; width: 54px; height: 54px; fill: #fff; animation: fest-spin 24s linear infinite; position: relative; z-index: 1; }
.fest-emoji { flex: none; position: relative; z-index: 1; width: 44px; height: 44px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .2)); animation: fest-bob 3s ease-in-out infinite; }
.fest-text { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; text-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.fest-text b { font-size: 22px; line-height: 1.2; letter-spacing: .02em; }
.fest-text span { font-size: 13px; line-height: 1.4; opacity: .92; letter-spacing: 0; margin-top: 3px; }
/* 煙火:一圈小光點從中心炸開再淡掉 */
.fest-banner .fw { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.fest-banner .fw i {
  position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--c, #fff); opacity: 0;
  animation: fest-pop 2.6s cubic-bezier(.2, .7, .3, 1) var(--d) infinite;
  --r: rotate(var(--a));
}
@keyframes fest-pop {
  0% { opacity: 0; transform: var(--r) translateY(0) scale(.6); }
  10% { opacity: 1; }
  55% { opacity: .9; transform: var(--r) translateY(-30px) scale(1); }
  80%, 100% { opacity: 0; transform: var(--r) translateY(-38px) scale(.4); }
}
@keyframes fest-spin { to { transform: rotate(360deg); } }
@keyframes fest-bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-4px) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) {
  .fest-sun, .fest-emoji, .fest-banner .fw i, [data-fest] body::before { animation: none; }
  .fest-banner .fw i { opacity: .8; transform: var(--r) translateY(-26px); }
}
@media (max-width: 520px) {
  .fest-text b { font-size: 20px; }
  .fest-emoji { width: 38px; height: 38px; }
}

/* ===== 2026-10-16 改版:卡片細邊框 + 投稿頁(左邊介紹、右邊投稿;手機上下排) ===== */
.group, .card { box-shadow: 0 0 0 .5px var(--separator), 0 1px 2px rgba(0, 0, 0, .03); }
.btn.block { box-shadow: 0 6px 18px rgba(0, 0, 0, .14); }
.btn.block:disabled { box-shadow: none; }

.page-split .wrap { max-width: 1080px; }
.page-split .main { min-width: 0; }
.page-split .large-title { margin-top: 14px; }
.hero-icon { display: block; width: 64px; height: 64px; border-radius: 16px; margin: 18px 4px 0; box-shadow: 0 6px 20px rgba(0, 0, 0, .16); }
.page-split .subtitle { margin-bottom: 18px; }

/* 三步驟:手機三格一排,電腦直的一條 */
.steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.steps li { background: var(--card); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 0 0 .5px var(--separator); }
.step-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.step-t { display: flex; flex-direction: column; min-width: 0; letter-spacing: 0; }
.step-t b { font-size: 15px; line-height: 1.3; }
.step-t small { font-size: 12px; line-height: 1.35; color: var(--secondary); margin-top: 2px; }

.ig-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 4px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--fill); color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: 0; text-decoration: none; transition: transform .3s var(--ease), background-color .2s; }
.ig-chip svg { width: 20px; height: 20px; }
.ig-chip:active { transform: scale(.96); transition: transform .1s ease-out; }
@media (hover: hover) { .ig-chip:hover { background: var(--separator); } }

/* 投稿框:點進去外框變深,底下一條細細的字數條 */
.composer { transition: box-shadow .25s var(--ease); }
.composer:focus-within { box-shadow: 0 0 0 1.5px var(--ink), 0 8px 24px rgba(0, 0, 0, .08); }
.meter { height: 3px; background: var(--fill); }
.meter i { display: block; height: 100%; width: 0; background: var(--ink); opacity: .35; transition: width .2s ease-out; }
.meter.near i { opacity: .8; }
.meter.over i { background: var(--danger); opacity: 1; }

/* 加照片:圖示方塊 + 兩行字 */
.picker { padding: 12px 16px; gap: 14px; }
.picker-icon { flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--fill); display: grid; place-items: center; }
.picker-icon svg { color: var(--ink); }
.picker-text { display: flex; flex-direction: column; min-width: 0; }
.picker-text b { font-weight: 600; font-size: 16px; }
.picker-text small { font-size: 13px; color: var(--secondary); letter-spacing: 0; }
@media (hover: hover) { .picker:hover { background: var(--fill); } }
body.dragging #pick { background: var(--fill); }
body.dragging #pick { box-shadow: inset 0 0 0 2px var(--ink); border-radius: 12px; }

.submit-hint { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--secondary); letter-spacing: 0; }

/* 「其他」清單前面的小圖示 */
.row-l { display: inline-flex; align-items: center; gap: 12px; }
.row-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; }
.row-icon svg { width: 18px; height: 18px; }
@media (hover: hover) { .links .row:hover { background: var(--fill); } }
@media (max-width: 420px) { .links .chev { font-size: 13px; } }

/* 電腦:左右兩欄,左邊介紹固定不動 */
@media (min-width: 900px) {
  .page-split .layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 56px; align-items: start; }
  .page-split .intro { position: sticky; top: 76px; padding-top: 28px; }
  .page-split .main { padding-top: 22px; }
  .hero-icon { width: 76px; height: 76px; border-radius: 19px; margin-top: 0; }
  .page-split .large-title { font-size: 44px; margin-top: 18px; }
  .page-split .subtitle { font-size: 16px; line-height: 1.55; }
  .steps { grid-template-columns: 1fr; gap: 0; background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 .5px var(--separator); margin-bottom: 18px; }
  .steps li { flex-direction: row; align-items: center; gap: 12px; border-radius: 0; box-shadow: none; background: none; padding: 12px 14px; }
  .steps li + li { box-shadow: inset 0 .5px 0 var(--separator); }
  .page-split .main > form > .section-label:first-child { margin-top: 0; }
  .page-split footer { text-align: left; margin-left: 16px; }
}
/* 手機很窄時三步驟的小字收掉 */
@media (max-width: 380px) { .step-t small { display: none; } }

[data-fest] .steps li, [data-fest] .steps { -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); }
@media (max-width: 899px) { .hero-icon { width: 54px; height: 54px; border-radius: 14px; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-icon { box-shadow: 0 0 0 .5px rgba(255, 255, 255, .18), 0 6px 20px rgba(0, 0, 0, .4); } }

/* ===== 2026-10-16 申請刪文/意見回饋/投稿規範 共用 ===== */
/* 介紹區的大圖示方塊(放 svg) */
.hero-tile { display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.hero-tile svg { width: 46%; height: 46%; }
/* 單選清單:左邊圓圈 + 標題 + 小字說明 */
.choice { display: flex; align-items: center; gap: 14px; padding: 12px 16px; min-height: 52px; cursor: pointer; transition: background-color .2s; }
.choice + .choice { box-shadow: inset 0 .5px 0 var(--separator); }
.choice:active { background: var(--fill); transition: none; }
@media (hover: hover) { .choice:hover { background: var(--fill); } }
.choice-t { display: flex; flex-direction: column; min-width: 0; letter-spacing: 0; }
.choice-t b { font-weight: 500; font-size: 16px; line-height: 1.35; }
.choice-t small { font-size: 13px; color: var(--secondary); line-height: 1.4; }
.choice:has(input:checked) .choice-t b { font-weight: 600; }
/* 規定卡片:編號清單 */
.policy { counter-reset: p; list-style: none; margin: 0; padding: 0; }
.policy > li { position: relative; padding: 12px 16px 12px 52px; font-size: 15px; line-height: 1.55; letter-spacing: 0; }
.policy > li + li { box-shadow: inset 0 .5px 0 var(--separator); }
.policy > li::before { counter-increment: p; content: counter(p); position: absolute; left: 16px; top: 13px; width: 22px; height: 22px; border-radius: 50%; background: var(--fill); font-size: 12px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.policy > li b:first-child { display: block; font-size: 15px; margin-bottom: 1px; }
.policy ul { margin: 4px 0 0; padding-left: 18px; }
.policy ul li { margin: 2px 0; }
.policy-note { margin: 0; padding: 12px 16px; font-size: 14px; line-height: 1.55; letter-spacing: 0; background: var(--fill); }
.help-row { display: flex; gap: 12px; align-items: center; padding: 12px 16px; text-decoration: none; color: var(--ink); }
.help-row + .help-row { box-shadow: inset 0 .5px 0 var(--separator); }
.help-num { flex: none; min-width: 64px; text-align: center; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; padding: 6px 10px; border-radius: 10px; background: var(--fill); }
.help-row .choice-t b { font-weight: 600; }

/* 投稿規範:目錄 */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 .5px var(--separator); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 0; transition: background-color .2s; }
@media (hover: hover) { .toc a:hover { background: var(--fill); } }
.page-terms .card { scroll-margin-top: 70px; }
.page-terms .sec-title { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.page-terms .sec-title span { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-size: 14px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.page-terms .card + .card { margin-top: 12px; }
.page-terms .prose h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; margin: 18px 0 4px; }
.page-terms .prose h3:first-of-type { margin-top: 8px; }
.page-terms .prose p, .page-terms .prose li { font-size: 15px; line-height: 1.6; }
.page-terms .prose ul { margin: 6px 0; }
.updated { margin: 6px 4px 18px; color: var(--secondary); font-size: 13px; letter-spacing: 0; }
@media (min-width: 900px) {
  .page-terms .toc { flex-direction: column; flex-wrap: nowrap; gap: 0; background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 .5px var(--separator); }
  .page-terms .toc a { display: block; border-radius: 0; box-shadow: none; background: none; padding: 10px 16px; font-size: 14px; }
  .page-terms .toc li + li a { box-shadow: inset 0 .5px 0 var(--separator); }
  .page-terms .toc a:hover { background: var(--fill); }
  .page-terms .toc a.on { background: var(--fill); font-weight: 700; }
}
[data-fest] .toc a, [data-fest] .page-terms .toc { -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); }
@media (min-width: 900px) {
  .page-terms .intro { max-height: calc(100vh - 80px); overflow-y: auto; padding-bottom: 20px; scrollbar-width: none; }
  .page-terms .intro::-webkit-scrollbar { display: none; }
  .page-terms .toc a { padding: 8px 16px; }
}
@media (max-width: 899px) { .page-terms .toc a { font-size: 12.5px; padding: 5px 11px; } }

/* ===== 2026-10-17 質感版(前台四頁;後台不受影響):浮動膠囊選單、Geist 字型、細線卡片、背景光暈、進場動畫 ===== */
body { font-family: "Geist", -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif; }

/* 背景:左上一團白光、右下淡淡的灰,加一層很細的雜訊(節慶時用節慶背景板,不放光暈) */
:root:not([data-fest]) .page-split::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 8% -10%, var(--glow), transparent 60%),
    radial-gradient(50vmax 40vmax at 110% 110%, var(--fill), transparent 70%);
}
.page-split::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 浮動膠囊選單 */
.site-nav { position: sticky; top: 0; z-index: 20; padding: calc(env(safe-area-inset-top) + 12px) 16px 6px; display: flex; justify-content: center; pointer-events: none; }
.nav-pill {
  pointer-events: auto; position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 7px; border-radius: 999px;
  background: var(--bar); box-shadow: var(--ring), var(--lift);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.nav-brand { display: inline-flex; align-items: center; gap: 8px; padding: 0 10px 0 0; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.nav-brand img { width: 28px; height: 28px; border-radius: 50%; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 6px 13px; border-radius: 999px; color: var(--secondary); text-decoration: none;
  font-size: 14px; font-weight: 500; letter-spacing: 0; white-space: nowrap;
  transition: background-color .2s, color .2s, transform .3s var(--ease);
}
.nav-links a:active { transform: scale(.94); transition-duration: .1s; }
.nav-links a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
@media (hover: hover) { .nav-links a:not([aria-current]):hover { background: var(--fill); color: var(--ink); } }
@media (max-width: 380px) { .nav-brand span { display: none; } .nav-brand { padding-right: 4px; } .nav-links a { padding: 6px 11px; } }
[data-fest] .nav-pill::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--fest-c1) 0 33%, #fff 33% 67%, var(--fest-c2) 67%); }
@media (prefers-reduced-transparency: reduce) { .nav-pill { background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* 卡片:1px 細線 + 疊兩層很淡的陰影(不要一大坨黑影) */
.page-split .group, .page-split .card, .page-split .notice-box:not(.important) { border-radius: 16px; box-shadow: var(--ring), var(--lift); }
.page-split .section-label { margin: 30px 6px 9px; font-size: 13px; font-weight: 500; color: var(--secondary); }

/* 標題區 */
.page-split .wrap { max-width: 1120px; padding-top: 4px; }
.page-split .large-title { font-size: clamp(38px, 9vw, 46px); font-weight: 700; letter-spacing: -.045em; line-height: 1.05; margin: 18px 2px 10px; text-wrap: balance; }
.page-split .subtitle { margin: 0 2px 22px; font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.page-split .hero-icon { border-radius: 50%; box-shadow: var(--ring), var(--lift-hi); }

/* 三步驟(手機三格) */
.page-split .steps li { border-radius: 14px; box-shadow: var(--ring); background: var(--card); }
.page-split .step-n { width: 26px; height: 26px; font-size: 12px; }

/* 追蹤 IG */
.ig-chip { background: var(--card); box-shadow: var(--ring); padding: 9px 16px 9px 12px; }
@media (hover: hover) { .ig-chip:hover { background: var(--card); box-shadow: var(--ring), var(--lift-hi); transform: translateY(-1px); } }

/* 投稿框 */
.page-split .composer:focus-within { box-shadow: 0 0 0 1.5px var(--ink), var(--lift-hi); }
.page-split textarea { padding: 18px 20px 8px; font-size: 17px; line-height: 1.65; }
.page-split .counter { padding: 0 20px 12px; }

/* 加照片:虛線拖放框 */
#pick { padding: 16px; border-radius: 16px; }
#pick .picker-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); transition: transform .4s var(--ease); }
#pick .picker-icon svg { color: var(--on-accent); }
@media (hover: hover) { #pick:hover .picker-icon { transform: scale(1.08) rotate(-6deg); } }
.page-split .group:has(> #pick:not([hidden])) { background: transparent; box-shadow: none; outline: 1.5px dashed var(--tertiary); outline-offset: -1.5px; }
[data-fest] .group:has(> #pick:not([hidden])) { background: var(--card); }
body.dragging #pick { box-shadow: none; }
body.dragging .group:has(> #pick) { outline-color: var(--ink); outline-style: solid; background: var(--fill); }

/* 規定標籤 */
.page-split .rules .rule { padding: 13px 18px; }
.page-split .tag { font-size: 11.5px; padding: 3px 10px; }

/* 主按鈕:膠囊 + 右邊箭頭,滑鼠移上去浮起來、箭頭往右 */
.btn.block { border-radius: 999px; padding: 16px 24px; font-size: 16px; font-weight: 600; min-height: 56px; box-shadow: var(--lift-hi); }
.btn.block::after {
  content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .4s var(--ease);
}
.btn.block:disabled::after { display: none; }
@media (hover: hover) {
  .btn.block:not(:disabled):hover { transform: translateY(-2px); box-shadow: var(--lift-hi), 0 12px 28px -8px rgba(0, 0, 0, .25); }
  .btn.block:not(:disabled):hover::after { transform: translateX(4px); }
}
.page-split .btn.ghost { background: var(--card); box-shadow: var(--ring); }
.done-actions .btn { border-radius: 999px; padding: 11px 20px; }

/* 投稿成功 */
.page-split .done { padding: 48px 24px 32px; }
.page-split .done .big { font-size: clamp(52px, 12vw, 72px); font-weight: 700; letter-spacing: -.05em; }

/* 「其他」清單 */
.page-split .links .row { padding: 13px 18px; }
.page-split .row-icon { border-radius: 50%; }
.page-split .links .chev { transition: transform .3s var(--ease); }
@media (hover: hover) { .page-split .links .row:hover .chev { transform: translateX(3px); } }

/* 投稿規範目錄、規定清單、求助專線 */
.page-split .toc a { box-shadow: var(--ring); }
.page-split .policy > li::before { background: var(--accent); color: var(--on-accent); }
.page-split .help-num { border-radius: 999px; }
.page-terms .card { scroll-margin-top: 90px; padding: 22px 22px 18px; }
.page-terms .sec-title span { border-radius: 50%; }

.page-split footer { margin-top: 44px; }

/* 電腦:左欄更寬、標題更大,三步驟改成直的時間軸 */
@media (min-width: 900px) {
  .page-split .layout { grid-template-columns: 360px minmax(0, 1fr); gap: 72px; }
  .page-split .intro { top: 84px; padding-top: 36px; }
  .page-split .main { padding-top: 30px; }
  .page-split .large-title { font-size: clamp(52px, 4.6vw, 64px); margin-top: 22px; }
  .page-split .subtitle { font-size: 17px; }
  .page-split .steps { background: none; box-shadow: none; border-radius: 0; overflow: visible; margin: 6px 0 24px; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .page-split .steps li { position: relative; padding: 0 0 22px 0; box-shadow: none !important; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .page-split .steps li:last-child { padding-bottom: 0; }
  .page-split .steps li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 4px; width: 1px; background: var(--tertiary); opacity: .5; }
  .page-split .step-n { width: 27px; height: 27px; background: var(--card); color: var(--ink); box-shadow: var(--ring); }
  .page-split .steps li:first-child .step-n { background: var(--accent); color: var(--on-accent); box-shadow: none; }
  .page-split .step-t b { font-size: 16px; }
  .page-split .step-t small { font-size: 13px; }
  /* 節日背景圖案會跑到步驟後面:放進半透明卡片,字才不會被蓋 */
  [data-fest] .page-split .steps { background: color-mix(in srgb, var(--card) 78%, transparent); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); border-radius: 16px; box-shadow: var(--ring); padding: 16px 18px; }
  .page-terms .toc { box-shadow: var(--ring), var(--lift) !important; border-radius: 16px !important; }
  .page-terms .toc li + li a { box-shadow: inset 0 1px 0 var(--separator); }
  .page-terms .intro { max-height: calc(100vh - 92px); }
}

/* 進場:一塊一塊由下往上淡入(減少動態效果時不做) */
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .page-split .intro > *, .page-split .main > :not(form), .page-split .main > form > * { animation: enter .8s var(--ease) backwards; }
  .page-split .intro > :nth-child(2) { animation-delay: .06s; }
  .page-split .intro > :nth-child(3) { animation-delay: .12s; }
  .page-split .intro > :nth-child(4) { animation-delay: .18s; }
  .page-split .intro > :nth-child(n+5) { animation-delay: .24s; }
  .page-split .main > form > :nth-child(-n+2) { animation-delay: .1s; }
  .page-split .main > form > :nth-child(3), .page-split .main > form > :nth-child(4) { animation-delay: .16s; }
  .page-split .main > form > :nth-child(5), .page-split .main > form > :nth-child(6) { animation-delay: .22s; }
  .page-split .main > form > :nth-child(n+7) { animation-delay: .28s; }
  .page-split .main > :not(form) { animation-delay: .3s; }
  .nav-pill { animation: enter .7s var(--ease) backwards; }
  /* 投稿規範:捲到才淡入(瀏覽器支援才有) */
  @supports (animation-timeline: view()) {
    .page-terms .main > .card { animation: enter linear backwards; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}

/* ===== 2026-10-17 web-design-guidelines 檢查後修正 ===== */
:root { color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; }
html { scroll-padding-top: 84px; }   /* 用 Tab 移動時,不要被上面的浮動選單蓋住 */
a, button, label, input, textarea, summary { touch-action: manipulation; }
/* 跳到主要內容:平常藏起來,用 Tab 才出現 */
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 600; text-decoration: none; transform: translateY(-160%); transition: transform .2s var(--ease); }
.skip-link:focus { transform: none; }
.main:focus { outline: none; }
/* 申請刪文的編號框:點進去外框變深(跟投稿框一樣) */
.page-split .group:has(> .num-row:focus-within) { box-shadow: 0 0 0 1.5px var(--ink), var(--lift-hi); }
/* 鍵盤操作時看得到焦點 */
.nav-links a:focus-visible, .nav-brand:focus-visible, .btn:focus-visible, #pick:focus-visible, .links .row:focus-visible, .toc a:focus-visible, .ig-chip:focus-visible, .help-row:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ===== 2026-10-17 新功能:分類、回覆、投稿進度 ===== */
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 2px; }
.cat-chip {
  border: 0; border-radius: 999px; padding: 8px 16px; min-height: 38px;
  background: var(--card); color: var(--ink); box-shadow: var(--ring);
  font: inherit; font-size: 15px; letter-spacing: 0; cursor: pointer;
  transition: background-color .2s, color .2s, transform .3s var(--ease);
}
.cat-chip:active { transform: scale(.95); transition-duration: .1s; }
.cat-chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); box-shadow: none; font-weight: 600; }
@media (hover: hover) { .cat-chip[aria-pressed="false"]:hover { background: var(--fill); } }
.cat-chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[data-fest] .cat-chip[aria-pressed="false"] { -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); }

/* 編號輸入列(回覆某一篇、申請刪文共用) */
.num-row { font-size: 17px; padding: 14px 16px; }
.num-row .num-pre { color: var(--secondary); white-space: nowrap; }
.num-row input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 20px; font-weight: 600; padding: 0; text-align: right; font-variant-numeric: tabular-nums; }
.num-row input::placeholder { font-size: 16px; font-weight: 400; }

/* 我的投稿紀錄:進度標籤 */
.history-row .history-text { flex: 1; }
.st { flex: none; font-size: 12px; font-weight: 600; letter-spacing: 0; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.st:empty { display: none; }
.st-pending, .st-approved { background: var(--fill); color: var(--secondary); }
.st-posted { background: var(--accent); color: var(--on-accent); }
.st-posted a { color: inherit; text-decoration: none; }
.st-rejected, .st-gone { box-shadow: inset 0 0 0 1px var(--separator); color: var(--tertiary); }
@media (max-width: 420px) { .history-row { flex-wrap: wrap; row-gap: 4px; } .history-row .history-text { flex-basis: 100%; } }
/* 刪文申請的版主回覆:在那一列下面整行顯示 */
.history-row:has(.report-note) { flex-wrap: wrap; row-gap: 6px; }
.report-note { flex-basis: 100%; font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--fill); border-radius: 10px; padding: 8px 12px; letter-spacing: 0; white-space: pre-wrap; word-break: break-word; }
/* 頁尾連結不要從中間斷開(390px 手機「意見回饋」會斷成兩行) */
footer a { white-space: nowrap; }

/* 2026-10-17 暫停投稿提示(投稿頁上方) */
.pause-box { padding-right: 16px; }
.pause-box .n-h2 { margin-top: 0; }

/* 上方選單:窄螢幕放不下時可以左右滑,不出現捲軸 */
.nav-pill { max-width: 100%; }
.nav-links { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; min-width: 0; }
.nav-links::-webkit-scrollbar { display: none; }
@media (max-width: 560px) { .nav-brand span { display: none; } .nav-brand { padding-right: 2px; } }



/* ===== 2026-10-17 節日新版(taste-skill + Vercel 黑白):festive.js 在 <html> 加 data-fest2,頁首下面放 #fest2 色帶 =====
   整片節日純色 + 大標題 + 一張真實照片(出處寫在色帶上)。沒有 emoji、漸層、陰影、毛玻璃、撒圖案;下面的投稿區不變,只有按鈕換節日色 */
[data-fest2] { --accent: var(--f2-accent); --on-accent: var(--f2-accent-ink); }
@media (prefers-color-scheme: dark) {
  :root[data-fest2]:not([data-theme="light"]) { --accent: var(--f2-accent); --on-accent: var(--f2-accent-ink); }
}
.fest2 {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  height: clamp(340px, 44vh, 440px); margin: 6px 0 8px;
  background: var(--f2-field); color: var(--f2-ink);
}
/* 文字跟下面投稿區同一條左邊線(.wrap 最寬 1080 置中) */
.fest2-field { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 4vw, 56px) clamp(16px, 4vw, 56px) clamp(28px, 4vw, 56px) max(16px, env(safe-area-inset-left), calc((100vw - 1080px) / 2 + 16px)); }
.fest2-title { margin: 0; font-size: clamp(40px, 6vw, 92px); white-space: nowrap; font-weight: 800; line-height: .98; letter-spacing: -.03em; }
.fest2-sub { margin: 18px 0 0; max-width: 30em; text-wrap: balance; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; letter-spacing: 0; }
.fest2-credit { margin: 28px 0 0; font-size: 13px; line-height: 1.4; letter-spacing: 0; }
.fest2-credit a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (hover: hover) { .fest2-credit a:hover { text-decoration-thickness: 2px; } }
/* 照片絕對定位填滿右半邊,不會被照片本身的比例撐高 */
.fest2-photo { position: relative; margin: 0; overflow: hidden; background: var(--f2-field); }
.fest2-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.fest2-credit a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 720px) {
  /* 手機:照片矮一點、字小一點,投稿框才不會被擠到太下面 */
  .fest2 { grid-template-columns: 1fr; height: auto; }
  .fest2-photo { order: -1; height: 150px; }
  .fest2-field { padding: 18px 16px 20px; }
  .fest2-sub { margin-top: 10px; }
  .fest2-credit { margin-top: 12px; }
}
/* 動態:標題、副標、出處依序升上來;照片很慢地放大(不想要動畫的裝置不動) */
.fest2-field > * { animation: f2-rise .7s cubic-bezier(.2, .7, .2, 1) backwards; }
.fest2-sub { animation-delay: .08s; }
.fest2-credit { animation-delay: .16s; }
.fest2-photo img { animation: f2-drift 24s ease-in-out infinite alternate; }
@keyframes f2-rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes f2-drift { from { transform: scale(1); } to { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  .fest2-field > *, .fest2-photo img { animation: none; }
}
/* 收回投稿(2026-10-26) */
.history-row .cancel-btn { flex: none; margin-left: 0; font-size: 13px; }
.history-row .cancel-btn:disabled { opacity: .5; cursor: default; }

/* ===== 2026-11-06 精緻版(使用者:黑白不變、做得更精緻;前台五頁,後台不受影響)=====
   改前備份 backup/site-2026-11-06/。中文字用 Noto Sans TC(電腦不用微軟正黑,比較細緻;iPhone 照樣用蘋方) */
body { font-family: "Geist", -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }

/* 背景:最上面一片很淡的點陣,往下慢慢消失(沒節慶時) */
:root:not([data-fest]) .page-split::after {
  opacity: 1;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 11%, transparent) 1px, transparent 1.3px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,.55) 260px, transparent 620px);
          mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,.55) 260px, transparent 620px);
}

/* 大標題:由深到淺的黑色漸層字,字距再收一點 */
:root:not([data-fest]) .page-split .large-title {
  font-weight: 800; letter-spacing: -.05em;
  background: linear-gradient(180deg, var(--ink) 35%, color-mix(in srgb, var(--ink) 58%, transparent) 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-split .subtitle { color: var(--secondary); }
/* 圖示外面一圈很淡的光環 */
.page-split .hero-icon { box-shadow: var(--ring), 0 0 0 7px color-mix(in srgb, var(--ink) 4%, transparent), var(--lift-hi); }

/* 區塊小標:小一點、字距開一點,像雜誌的欄位名稱 */
.page-split .section-label { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; color: color-mix(in srgb, var(--secondary) 85%, transparent); }

/* 卡片:滑鼠移上去外框稍微變深 */
.page-split .card, .page-split .group { transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.page-split textarea::placeholder { color: color-mix(in srgb, var(--secondary) 70%, transparent); }
.page-split .composer:focus-within { box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 6px color-mix(in srgb, var(--ink) 7%, transparent), var(--lift-hi); }

/* 選單:目前那頁的黑色膠囊加一點立體感 */
.nav-links a[aria-current="page"] { box-shadow: 0 1px 2px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.14); }

/* ===== 貼文牆 ===== */
.page-split .wpost { padding: 18px 20px 14px; }
@media (hover: hover) {
  .page-split .wpost:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent), var(--lift-hi); }
}
.page-split .wpost-head { font-size: 12.5px; }
.page-split .wpost-head b { font-size: 14.5px; font-weight: 650; letter-spacing: -.01em; }
.page-split .wpost-head b + span::before { content: "·"; margin-right: 8px; color: var(--tertiary); }
.page-split .wpost-text { font-size: 16.5px; line-height: 1.75; margin: 12px 0 14px; }
.page-split .wpost-foot { gap: 8px; padding-top: 12px; }
.page-split .wpost-foot a, .page-split .wpost-foot > span {
  display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px;
  font-size: 13px; text-decoration: none !important; background: var(--fill); color: var(--ink);
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.page-split .wpost-foot .dim { background: transparent; box-shadow: var(--ring); color: var(--secondary); }
@media (hover: hover) { .page-split .wpost-foot a:hover { background: var(--accent); color: var(--on-accent); } }
.page-split .wpost-foot a:active { transform: scale(.95); }
.page-split .wpost-more { text-decoration: none; font-weight: 600; color: var(--ink); }
.page-split .wpost-more::after { content: " ↓"; }
.page-split .wpost-likes { padding: 2px 8px; border-radius: 999px; background: var(--fill); font-size: 12px; }
.page-split .wpost-rank { padding: 2px 9px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; }

/* ===== 投稿規範 ===== */
.page-terms .sec-title { letter-spacing: -.02em; }

/* 興雅版:圖示是圓形大頭貼 */
.hero-icon { border-radius: 50% !important; }

/* ===== 興雅版:藍色主題(他們的 IG 限動用天藍色 #00a7fe) ===== */
:root {
  --blue: #00a7fe;
  --accent: #0b8fe0;          /* 按鈕用深一點的藍,白字才看得清楚 */
  --on-accent: #ffffff;
  --link: #0b7fd0;
  --bg: #f2f9ff;
  --separator: rgba(0, 110, 200, .12);
  --ring: 0 0 0 1px rgba(0, 120, 210, .14);
  --bar: rgba(242, 249, 255, .78);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #2aa8f5; --on-accent: #ffffff; --link: #5cc0ff;
    --bg: #07121c; --card: #0e1c29; --bar: rgba(7, 18, 28, .75);
    --separator: rgba(90, 180, 255, .16); --ring: 0 0 0 1px rgba(90, 180, 255, .18);
  }
}
a { color: var(--link); }
/* 上方天藍色一片,往下淡掉 */
:root:not([data-fest]) .page-split::before {
  background: linear-gradient(180deg, color-mix(in srgb, var(--blue) 22%, transparent) 0, transparent 520px) !important;
  opacity: 1;
}
:root:not([data-fest]) .page-split::after {
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--blue) 30%, transparent) 1px, transparent 1.3px);
}
/* 大標題:藍色漸層字 */
:root:not([data-fest]) .page-split .large-title {
  background: linear-gradient(180deg, #0a6fc2 20%, var(--blue) 115%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-split .hero-icon { box-shadow: 0 0 0 7px color-mix(in srgb, var(--blue) 18%, transparent), 0 8px 24px rgba(0, 120, 210, .22); }
.page-split .composer:focus-within, .composer:focus-within { box-shadow: 0 0 0 2px var(--blue), 0 8px 24px rgba(0, 120, 210, .12); }
.meter i { background: var(--blue); opacity: .8; }
.ig-chip { background: color-mix(in srgb, var(--blue) 12%, var(--card)); color: #0a6fc2; }
.section-label { color: #2f78b5 !important; }
.checkbox:focus-visible { outline-color: var(--blue); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ig-chip { color: #5cc0ff; } :root:not([data-theme="light"]) .section-label { color: #6cb8f0 !important; } }
