/* ===== 大神提示詞 ===== */
/* 2026-11-20 本人交辦：收錄 AI 大神的效益、認知、超強提示詞與成果。黑底卷宗＋米白提示詞稿紙＋紅筆標變數。 */

.pphero { min-height: 100vh; min-height: 100svh; }
.pphero__copy { align-self: center; max-width: min(64%, 980px); position: relative; z-index: 3; }
.pp-stats__brace { font-style: italic; color: var(--red); }

/* ---------- 使用說明 ---------- */
.pp-how { padding: clamp(96px, 16vh, 180px) var(--gutter); }
.pp-how__inner { max-width: 1320px; margin: 0 auto; }
.pp-nowrap { white-space: nowrap; }
.pp-how__title { margin: 0; font-family: var(--serif); font-weight: 900; font-size: clamp(40px, 6.4vw, 104px); line-height: 1.12; }
.pp-brace {
  display: inline-block; padding: 0 .1em; font-family: var(--latin); font-style: italic; font-weight: 400; color: var(--red);
  text-shadow: 0 0 48px rgba(255, 45, 31, .55); animation: braceGlow 3.6s var(--ease-in-out) infinite;
}
@keyframes braceGlow { 50% { text-shadow: 0 0 12px rgba(255, 45, 31, .18); } }
.pp-how__body { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 6vw, 96px); align-items: end; margin-top: clamp(40px, 8vh, 88px); }
.pp-how__rule { margin: 0; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.9; color: var(--bone-dim); max-width: 26em; }
.pp-how__rule b { color: var(--bone); font-weight: 700; }
.pp-demo {
  position: relative; margin: 0; padding: clamp(24px, 2.6vw, 38px) clamp(24px, 3vw, 44px); border-radius: 20px;
  background: var(--paper); color: var(--paper-ink); transform: rotate(-1.2deg);
  box-shadow: 0 40px 100px -36px rgba(0, 0, 0, .95), 0 0 0 1px rgba(23, 18, 14, .08) inset;
}
.pp-demo__line { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(19px, 1.8vw, 28px); line-height: 1.6; }
.pp-demo__var {
  background: linear-gradient(transparent 60%, rgba(255, 45, 31, .26) 60%, rgba(255, 45, 31, .26) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .08em;
}
.pp-demo__var > i { font-style: italic; font-family: var(--latin); font-weight: 400; font-size: 1.25em; color: var(--red); }
.pp-demo__var.is-typing #pp-demo-text::after, .pp-demo__var #pp-demo-text:empty::after { content: ""; display: inline-block; width: 3px; height: 1em; margin-left: 2px; vertical-align: -.1em; background: var(--red); animation: caret 1s steps(1) infinite; }
.pp-demo__rest { display: block; margin-top: 6px; color: rgba(23, 18, 14, .5); font-weight: 500; }
.pp-demo__note { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 18px 0 0; color: rgba(23, 18, 14, .62); }
.pp-demo__note span + span::before { content: "→ "; color: var(--red); }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- 珍藏卡片（樣式在檔案最後一段） ---------- */
.pp-index { padding: clamp(80px, 12vh, 150px) var(--gutter); max-width: 1320px; margin: 0 auto; }
.pp-index__head { margin-bottom: clamp(28px, 5vh, 48px); }
.num { font-family: var(--latin); font-style: italic; font-weight: 400; color: var(--red); font-size: 1.16em; letter-spacing: 0; padding: 0 .04em; transition: color .4s; }
.pe__who b { font-weight: 500; }
.pe__who i { font-style: normal; color: var(--red); }

/* ---------- 每則卷宗 ---------- */
.pe { position: relative; isolation: isolate; max-width: 1320px; margin: 0 auto; padding: clamp(110px, 18vh, 200px) var(--gutter) clamp(40px, 8vh, 90px); }
.pe__head { position: relative; padding-bottom: clamp(48px, 9vh, 100px); }
.pe__num {
  position: absolute; z-index: -1; right: -.04em; top: -.38em; font-family: var(--latin); font-style: italic; font-size: clamp(170px, 27vw, 440px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(243, 238, 230, .17); pointer-events: none; user-select: none;
}
.pe__who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: 15px; }
.pe__who .mono { color: var(--bone-dim); margin-right: 6px; }
.pe__label { margin: clamp(28px, 5vh, 52px) 0 14px; color: var(--red); }
.pe__title { margin: 0; max-width: 15em; text-wrap: balance; font-family: var(--serif); font-weight: 900; font-size: clamp(34px, 5.4vw, 88px); line-height: 1.14; }
.pe__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: clamp(24px, 4vh, 40px); }
.pe__tags { display: flex; gap: 8px; text-transform: none; letter-spacing: .1em; }
.pe__tags span { padding: 5px 10px; border: 1px solid var(--bone-faint); border-radius: 8px; color: var(--bone-dim); }
.pbtn:active, .pc__copy:active, .vid__play:active { transform: translateY(1px); }

/* 欄位：左欄標籤（黏住）、右欄內容。欄位再多，節奏都一樣 */
.pe__spec { margin: 0; border-top: 1px solid var(--bone-faint); }
.pf { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding: clamp(44px, 8vh, 88px) 0; border-bottom: 1px solid var(--bone-faint); }
.pf__k { position: sticky; top: calc(var(--bar-h) + 28px); align-self: start; display: grid; gap: 6px; margin: 0; }
.pf__k::before { content: ""; width: 28px; height: 2px; margin-bottom: 10px; background: var(--red); }
.pf__k span { font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.3; }
.pf__k small { color: var(--bone-dim); font-size: 10px; }
.pf__v { margin: 0; min-width: 0; }

/* 認知：大字引言 */
.pi { margin: 0; }
.pi__q { display: block; height: .44em; font-family: var(--latin); font-size: clamp(96px, 10vw, 170px); line-height: 1; color: var(--red); }
.pi__t { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 3vw, 46px); line-height: 1.55; letter-spacing: .02em; }

/* 提示詞：米白稿紙、橫線對齊行高、紅色邊線 */
.pc { margin: 0; }
.pc__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 0 2px 14px; color: var(--bone-dim); }
.pc__copy {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--bone); color: var(--ink); font-weight: 700; font-size: 14px; letter-spacing: .06em; transition: background .35s, color .35s, box-shadow .35s;
}
.pc__copy i { font-style: normal; }
.pc__copy:hover, .pc__copy.is-done { background: var(--red); color: #fff; box-shadow: 0 12px 34px -12px rgba(255, 45, 31, .9); }
.pc__paper {
  position: relative; overflow: hidden; border-radius: 20px; padding: clamp(28px, 3.6vw, 56px) clamp(26px, 3.6vw, 56px) clamp(26px, 3vw, 44px) clamp(40px, 4.6vw, 72px);
  background: var(--paper); color: var(--paper-ink); box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 1), 0 0 0 1px rgba(23, 18, 14, .06) inset;
  clip-path: inset(0 0 0 0 round 20px); transition: clip-path 1.1s var(--ease-in-out);
}
.pc__paper::before { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(20px, 2.4vw, 38px); width: 1px; background: rgba(255, 45, 31, .45); }
.pc__paper::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .42 0 0 0 0 .32 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"); }
.pc.is-pending .pc__paper { clip-path: inset(0 0 100% 0 round 20px); }
.pc__text {
  position: relative; z-index: 1; margin: 0; font-size: clamp(17px, 1.5vw, 22px); line-height: 2; font-weight: 500; letter-spacing: .03em;
  background-image: linear-gradient(transparent calc(2em - 1px), rgba(23, 18, 14, .1) calc(2em - 1px)); background-size: 100% 2em;
}
.pc .t { position: relative; opacity: 0; transition: opacity .12s; }
.pc .t.on { opacity: 1; }
.pc .t.tip::after { content: ""; position: absolute; left: 100%; top: .2em; width: 3px; height: 1.25em; margin-left: 1px; background: var(--red); animation: caret 1s steps(1) infinite; }
.pv {
  color: inherit; padding: 0 .06em; border-radius: 2px;
  background: linear-gradient(transparent 56%, rgba(255, 45, 31, .26) 56%, rgba(255, 45, 31, .26) 92%, transparent 92%) no-repeat 0 0 / 0% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 1.2s var(--ease-in-out);
}
.pv .br { font-family: var(--latin); font-style: italic; font-weight: 400; font-size: 1.3em; color: var(--red); line-height: 1; }
.pc.is-typed .pv { background-size: 100% 100%; }
.pc__note { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; margin: 22px 0 0; font-size: 14px; color: rgba(23, 18, 14, .64); opacity: 0; transform: translateY(8px); transition: opacity .8s var(--ease) .5s, transform .8s var(--ease) .5s; }
.pc.is-typed .pc__note { opacity: 1; transform: none; }
.pc__mark { flex: none; font-family: var(--latin); font-style: italic; font-size: 26px; line-height: 1; color: var(--red); }

/* 共用：瀏覽器視窗框 */
.chrome { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; background: #111114; border-bottom: 1px solid rgba(243, 238, 230, .08); }
.chrome > i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: rgba(243, 238, 230, .16); }
.chrome > i:first-child { background: var(--red); }
.chrome__url { flex: 0 1 440px; margin: 0 auto; min-width: 0; height: 24px; padding: 0 12px; border-radius: 8px; background: rgba(243, 238, 230, .06); color: var(--bone-dim); font-size: 10px; line-height: 24px; text-align: center; text-transform: none; letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 成果：新舊對照 */
.cmp, .win, .vid { display: block; border-radius: 20px; overflow: hidden; border: 1px solid rgba(243, 238, 230, .12); background: #0b0b0e; box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 1); }
.cmp__stage { position: relative; aspect-ratio: 16 / 10; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cmp__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; pointer-events: none; }
.cmp__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.cmp__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--bone); box-shadow: 0 0 24px rgba(255, 45, 31, .9); }
.cmp__knob {
  position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--red); color: #fff; font-size: 20px; line-height: 1; cursor: grab; box-shadow: 0 10px 30px -6px rgba(255, 45, 31, .9), 0 0 0 6px rgba(255, 45, 31, .18); transition: transform .35s var(--ease), box-shadow .35s;
}
.cmp__knob i { font-style: normal; }
.cmp.is-drag .cmp__knob { transform: scale(1.12); cursor: grabbing; box-shadow: 0 10px 30px -6px rgba(255, 45, 31, .9), 0 0 0 12px rgba(255, 45, 31, .14); }
.cmp__tag { position: absolute; top: 16px; padding: 7px 11px; border-radius: 8px; background: rgba(6, 6, 7, .74); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--bone); font-size: 10px; pointer-events: none; }
.cmp__tag--b { left: 16px; }
.cmp__tag--a { right: 16px; background: var(--red); color: #fff; }
.pp-hint { margin: 14px 2px 0; color: var(--bone-dim); text-transform: none; letter-spacing: .08em; }

/* 成果：視窗截圖（滑鼠傾斜＋反光） */
.pf--link .pf__v { perspective: 1400px; }
.win { transform-style: preserve-3d; will-change: transform; }
.win__shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.win__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.4s var(--ease); }
.win__glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s; background: radial-gradient(640px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .16), transparent 42%); }
@media (hover: hover) { .win:hover .win__shot img { transform: scale(1.04); } .win:hover .win__glare { opacity: 1; } }

/* 成果：影片封面（80 張表合成 1 張） */
.vid__stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(ellipse 70% 60% at 50% 46%, #1c0f10, #09090b 72%); }
.mg { position: absolute; inset: 0; }
.mg__wall { position: absolute; inset: 20% 7% 18%; display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: repeat(8, 1fr); gap: clamp(3px, .7vw, 9px); }
.mg__s {
  border-radius: 3px; border: 1px solid rgba(243, 238, 230, .26);
  background: repeating-linear-gradient(rgba(243, 238, 230, .13) 0 1px, transparent 1px 25%), repeating-linear-gradient(90deg, rgba(243, 238, 230, .1) 0 1px, transparent 1px 33.4%), rgba(243, 238, 230, .03);
}
.mg__s:nth-child(7n + 3) { animation: cellPing 3.4s var(--ease-in-out) infinite; }
.mg__s:nth-child(11n + 5) { animation: cellPing 3.4s var(--ease-in-out) 1.2s infinite; }
@keyframes cellPing { 0%, 70%, 100% { border-color: rgba(243, 238, 230, .26); box-shadow: none; } 80% { border-color: var(--red); box-shadow: 0 0 14px rgba(255, 45, 31, .7); } }
.mg__one { position: absolute; inset: 14% 0 6%; display: grid; place-items: center; pointer-events: none; }
.mg__one i {
  display: block; width: 19%; aspect-ratio: 4 / 5; border-radius: 8px; background-color: var(--paper);
  background-image: linear-gradient(var(--red) 0 16%, transparent 16%), repeating-linear-gradient(transparent 0 calc(12% - 1px), rgba(23, 18, 14, .2) calc(12% - 1px) 12%), repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(23, 18, 14, .16) calc(25% - 1px) 25%);
  box-shadow: 0 0 0 1px rgba(255, 45, 31, .55), 0 0 90px rgba(255, 45, 31, .5), 0 30px 60px -20px #000;
}
.mg__cap { position: absolute; left: clamp(16px, 2.4vw, 32px); top: clamp(12px, 3vh, 26px); right: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0; font-size: 14px; color: var(--bone-dim); z-index: 2; }
.mg__cap .num { font-size: clamp(30px, 3vw, 44px); line-height: 1; }
.mg__cap em { font-style: normal; color: var(--bone); margin: 0 4px; }
.vid.is-merged .mg__cap b:nth-of-type(2) { text-shadow: 0 0 24px rgba(255, 45, 31, .8); }
.vid__play {
  position: absolute; right: clamp(14px, 2vw, 26px); bottom: clamp(14px, 2.6vh, 26px); z-index: 2; display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 22px 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .06em;
  box-shadow: 0 18px 50px -16px rgba(255, 45, 31, .95); transition: box-shadow .4s, transform .4s var(--ease);
}
.vid__ring { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.vid__ring i { font-style: normal; font-size: 13px; margin-left: 2px; }
.vid__play::after { content: ""; position: absolute; left: 6px; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); animation: playPulse 2.2s var(--ease) infinite; pointer-events: none; }
@keyframes playPulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
@media (hover: hover) { .vid__play:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -16px rgba(255, 45, 31, 1); } }
.vid.is-playing .vid__stage { background: #000; }
.vid__stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 成果下方的文字連結 */
.pp-links { display: flex; flex-wrap: wrap; gap: 4px 30px; margin-top: 18px; }
.pp-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-size: 15px; letter-spacing: .04em;
  background: linear-gradient(var(--red), var(--red)) no-repeat 0 calc(100% - 8px) / 0% 1px; transition: background-size .5s var(--ease);
}
.pp-link i { font-style: normal; color: var(--red); transition: transform .5s var(--ease); }
@media (hover: hover) { .pp-link:hover { background-size: 100% 1px; } .pp-link:hover i { transform: translateX(4px); } }
.pt-text { margin: 0; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.9; color: var(--bone-dim); max-width: 40em; }

/* ---------- 結尾 ---------- */
.pp-end { max-width: 1320px; margin: 0 auto; padding: clamp(120px, 22vh, 240px) var(--gutter) clamp(90px, 16vh, 180px); }
.pp-end__title { margin: 0; font-family: var(--serif); font-weight: 900; font-size: clamp(44px, 7.4vw, 128px); line-height: 1.08; }
.pp-end .lead { margin: clamp(24px, 4vh, 40px) 0 0; }
.pp-end__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 5vh, 52px); }

/* ---------- 固定小元件 ---------- */
.pp-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 150; max-width: calc(100vw - 32px); padding: 14px 22px; border-radius: 999px; background: var(--bone); color: var(--ink);
  font-size: 14px; font-weight: 700; letter-spacing: .04em; box-shadow: 0 20px 60px -20px #000; opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.pp-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.pp-toast.has-act { display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 22px; pointer-events: none; }
.pp-toast.has-act.is-on { pointer-events: auto; }
.pp-toast button { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .04em; }

/* ---------- 響應 ---------- */
@media (max-width: 1000px) {
  .pphero__copy { max-width: none; }
  .pp-how__body { grid-template-columns: 1fr; align-items: start; }
  .pf { grid-template-columns: 1fr; gap: 22px; }
  .pf__k { position: static; display: flex; align-items: baseline; gap: 12px; }
  .pf__k::before { align-self: center; margin: 0; width: 18px; }
}
@media (max-width: 760px) {
  .d-br { display: none; }
  .pp-demo { transform: rotate(-.8deg); }
  .pe { padding-top: clamp(84px, 14vh, 120px); }
  .pe__num { font-size: 46vw; top: -.28em; }
  .pe__title { font-size: 8.6vw; }
  .pi__t { font-size: 6vw; }
  .pc__paper { padding: 24px 20px 22px 34px; }
  .pc__paper::before { left: 18px; }
  .cmp__knob { width: 48px; height: 48px; margin: -24px 0 0 -24px; font-size: 16px; }
  .cmp__tag { top: 10px; padding: 5px 8px; font-size: 9px; }
  .cmp__tag--b { left: 10px; } .cmp__tag--a { right: 10px; }
  .vid__stage { aspect-ratio: 4 / 3.4; }
  .mg__wall { inset: 25% 5% 24%; }
  .mg__one { inset: 18% 0 14%; }
  .mg__one i { width: 26%; }
  .vid__play { left: 14px; right: 14px; justify-content: center; padding: 0 22px 0 6px; }
  .pp-end__cta .btn { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-brace, .mg__s, .vid__play::after, .pc .t.tip::after { animation: none !important; }
  .pc__paper, .pv, .pc__note, .win__shot img { transition: none !important; }
}
html.reduce-motion .pp-brace, html.reduce-motion .mg__s, html.reduce-motion .vid__play::after { animation: none; }

/* =====================================================================
   案例檔案櫃（2026-11-20 本人：不要一路往下滑、要能隨時切換；選「三、檔案櫃分欄」＋「一」的紅幕轉場）
   ===================================================================== */
.pe-split { display: inline; }
body:has(.cbar.is-on) .pp-toast { bottom: 96px; }

/* 讀完一則後的「下一則」大按鈕 */
.pnext {
  position: relative; display: block; width: 100%; margin-top: clamp(56px, 10vh, 110px); padding: clamp(26px, 4.6vh, 46px) clamp(22px, 3vw, 44px);
  text-align: left; border: 1px solid var(--bone-faint); border-radius: 24px; background: rgba(12, 12, 15, .55); overflow: hidden; isolation: isolate;
}
.pnext::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform .8s var(--ease); }
.pnext__k { color: var(--bone-dim); transition: color .4s; }
.pnext__row { display: flex; align-items: baseline; gap: clamp(16px, 2.4vw, 36px); margin-top: 12px; }
.pnext__n { flex: none; font-family: var(--latin); font-style: italic; font-size: clamp(56px, 7vw, 110px); line-height: .9; color: var(--red); transition: color .4s; }
.pnext__t { flex: 1; min-width: 0; font-family: var(--serif); font-weight: 900; font-size: clamp(21px, 2.8vw, 42px); line-height: 1.28; text-wrap: balance; }
.pnext > .pnext__row > i { flex: none; font-style: normal; font-size: clamp(26px, 3vw, 44px); transition: transform .6s var(--ease); }
@media (hover: hover) {
  .pnext:hover::before { transform: scaleX(1); }
  .pnext:hover :is(.pnext__k, .pnext__n, .num) { color: #fff; }
  .pnext:hover .pnext__row > i { transform: translateX(10px); }
}

/* 換則紅幕：從下往上蓋滿、號碼與標題呼吸一下、再往上收起 */
.curtain { position: fixed; inset: 0; z-index: 160; visibility: hidden; display: grid; place-items: center; background: var(--red); color: #fff; clip-path: inset(100% 0 0 0); }
.curtain::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%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"); }
.curtain__in { display: grid; justify-items: center; gap: 12px; padding: 0 var(--gutter); text-align: center; }
.curtain__k { opacity: .78; }
.curtain__n { font-family: var(--latin); font-style: italic; font-size: clamp(150px, 22vw, 340px); line-height: .82; }
.curtain__t { margin: 0; max-width: 20em; font-family: var(--serif); font-weight: 900; font-size: clamp(22px, 3vw, 44px); line-height: 1.3; text-wrap: balance; }

/* ---------- 檔案櫃分欄：左側固定檔案櫃、右側往下讀 ---------- */
.page-prompts .pp-cases { padding: clamp(80px, 14vh, 150px) var(--gutter) 0; }
.pc3 { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: clamp(28px, 4.6vw, 76px); align-items: start; }
.rail { align-self: stretch; }
.rail__in { position: sticky; top: calc(var(--bar-h) + 20px); max-height: calc(100vh - var(--bar-h) - 40px); overflow-y: auto; scrollbar-width: none; padding-bottom: 8px; }
.rail__in::-webkit-scrollbar { display: none; }
.rail__k { display: flex; justify-content: space-between; margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--bone-faint); color: var(--bone-dim); }
.rail__list { margin: 0; padding: 0; list-style: none; }
.fcard { border-bottom: 1px solid var(--bone-faint); }
.fcard__tab { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: start; width: 100%; padding: 18px 0; text-align: left; color: var(--bone-dim); transition: color .3s; }
.fcard__tab:hover { color: var(--bone); }
.fcard__n { font-family: var(--latin); font-style: italic; font-size: 30px; line-height: .95; letter-spacing: 0; transition: color .4s, font-size .7s var(--ease); }
.fcard__t { font-family: var(--serif); font-weight: 700; font-size: 15px; line-height: 1.5; transition: font-size .7s var(--ease); }
.fcard.is-active .fcard__tab { color: var(--bone); }
.fcard.is-active .fcard__n { color: var(--red); font-size: 52px; }
.fcard.is-active .fcard__t { font-size: 19px; font-weight: 900; }
.fcard__body { height: 0; overflow: hidden; }
.fcard__inner { display: grid; gap: 14px; padding: 0 0 22px 66px; }
.fcard__inner .pe__who { font-size: 13px; }
.fcard__map { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.fcard__map button { position: relative; display: flex; align-items: baseline; gap: 10px; width: 100%; min-height: 44px; padding: 10px 0 14px; text-align: left; color: var(--bone-dim); transition: color .3s; }
.fcard__map button:hover, .fcard__map .is-here { color: var(--bone); }
.fcard__map span { font-weight: 700; font-size: 14px; }
.fcard__map small { font-size: 9px; }
.fcard__map i { position: absolute; left: 0; right: 0; bottom: 5px; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(243, 238, 230, .1); }
.fcard__map b { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }
.rail__nav { display: flex; gap: 8px; margin-top: 18px; }
.rail__nav button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; border: 1px solid var(--bone-faint); font-weight: 700; font-size: 14px; transition: border-color .3s, background .3s; }
.rail__nav button i { font-style: normal; color: var(--red); font-size: 18px; }
.rail__nav button:hover { border-color: var(--red); background: rgba(255, 45, 31, .1); }
.pc3__main { min-width: 0; }
.page-prompts .pe { max-width: none; margin: 0; padding: 0 0 clamp(40px, 8vh, 80px); }
.page-prompts .pe__head { padding-bottom: clamp(36px, 6vh, 64px); }
.page-prompts .pe__title { font-size: clamp(32px, 4.2vw, 68px); }
.page-prompts .pe__num { font-size: clamp(150px, 19vw, 300px); top: -.3em; }
.page-prompts .pf { grid-template-columns: 1fr; gap: 20px; }
.page-prompts .pf__k { position: static; display: flex; align-items: baseline; gap: 12px; }
.page-prompts .pf__k::before { align-self: center; margin: 0; width: 18px; }
.cbar { display: none; }

@media (max-width: 1000px) {
  .pc3 { display: block; }
  .rail { display: none; }
  .cbar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px;
    background: rgba(14, 14, 18, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(243, 238, 230, .14);
    opacity: 0; transform: translateY(140%); transition: transform .7s var(--ease), opacity .5s; pointer-events: none;
  }
  .cbar.is-on { opacity: 1; transform: none; pointer-events: auto; }
  .cbar button { flex: none; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; line-height: 1; }
  .cbar p { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; margin: 0; }
  .cbar b { flex: none; font-family: var(--latin); font-style: italic; font-weight: 400; font-size: 22px; color: var(--red); }
  .cbar span { flex: none; white-space: nowrap; font-family: var(--mono); font-size: 11px; color: var(--bone-dim); }
  .cbar em { min-width: 0; margin-left: 6px; font-style: normal; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 760px) {
  .curtain__n { font-size: 44vw; }
}
@media (prefers-reduced-motion: reduce) {
  .cbar, .pnext::before, .fcard__n, .fcard__t { transition: none !important; }
}

/* =====================================================================
   珍藏卡牌（2026-11-20 本人：目錄改成有質感的卡片，像翻頁、收藏珍品；★ 收藏連動帳號、一鍵分享；
   點卡片才翻開卷宗、看完收回成原本的卡片）
   ===================================================================== */
.ico { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pp-index__lead { margin: 18px 0 0; max-width: 34em; color: var(--bone-dim); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.8; }
.pp-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: clamp(26px, 4.4vh, 44px); }
.pp-filter { margin: 0; }
.pp-filter button { min-height: 44px; }
.chip-fav { display: inline-flex; align-items: center; gap: 8px; }
.chip-fav .ico { width: 15px; height: 15px; }
.chip-fav[aria-pressed="true"] .ico { fill: currentColor; }
.chip-fav b { min-width: 1.9em; padding: 2px 7px; border-radius: 999px; background: rgba(255, 45, 31, .16); color: var(--red); font-family: var(--mono); font-size: 11px; font-weight: 500; text-align: center; }
.chip-fav[aria-pressed="true"] b { background: rgba(255, 255, 255, .22); color: #fff; }
.gsync { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; color: var(--bone-dim); text-transform: none; letter-spacing: .06em; font-size: 11px; }
.gsync b { color: var(--bone); font-weight: 500; }
.gsync__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--silver); }
.gsync__dot.is-on { background: var(--red); box-shadow: 0 0 0 4px rgba(255, 45, 31, .18); }
.gsync button { min-height: 34px; padding: 0 14px; border: 1px solid var(--bone-faint); border-radius: 999px; color: var(--bone); font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .04em; transition: border-color .3s, background .3s; }
.gsync button:hover { border-color: var(--red); background: rgba(255, 45, 31, .1); }

/* 卡片牆 */
.gdeck { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(18px, 2.2vw, 34px); perspective: 2200px; }
.gcard { position: relative; perspective: 1400px; }
.gcard[hidden] { display: none; }
.gcard__tilt { position: relative; height: 100%; border-radius: 24px; transform-style: preserve-3d; will-change: transform; }
.gcard.is-away .gcard__tilt { visibility: hidden; }
.gcard__face {
  position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: clamp(520px, 41vw, 610px);
  padding: 22px 22px 20px; border-radius: 24px; overflow: hidden; isolation: isolate; color: var(--bone);
  background: radial-gradient(120% 62% at 50% 118%, rgba(255, 45, 31, .2), transparent 62%), linear-gradient(165deg, #18181c 0%, #0d0d10 48%, #0a0809 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07) inset, 0 0 0 1px rgba(243, 238, 230, .1), 0 40px 90px -40px #000, 0 18px 44px -26px rgba(255, 45, 31, .22);
  transition: box-shadow .7s var(--ease), transform .7s var(--ease);
}
.gcard__face::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .3; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.gcard__face:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.gcard__frame { position: absolute; inset: 9px; z-index: 0; border: 1px solid rgba(243, 238, 230, .07); border-radius: 17px; pointer-events: none; }
.gcard__ghost { position: absolute; right: -.05em; bottom: -.24em; z-index: -1; font-family: var(--latin); font-style: italic; font-size: 250px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(243, 238, 230, .06); pointer-events: none; transition: -webkit-text-stroke-color .7s; }
.gcard__top { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; padding-right: 108px; }
.gcard__no { font-family: var(--latin); font-style: italic; font-size: 46px; line-height: .86; letter-spacing: 0; transition: color .5s; }
.gcard__no small { margin-right: 5px; font-family: var(--mono); font-style: normal; font-size: 10px; letter-spacing: .14em; color: var(--bone-dim); vertical-align: top; }
.gcard__series { color: var(--bone-dim); font-size: 9px; letter-spacing: .24em; }
/* 成果圖：平常是紅黑雙色，滑過才顯影成彩色 */
.gcard__art { position: relative; z-index: 1; display: block; flex: none; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #0b0b0e; box-shadow: 0 0 0 1px rgba(243, 238, 230, .1), 0 22px 44px -26px #000; }
.gcard__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(1) contrast(1.3) brightness(.62); transform: scale(1.03); transition: filter 1s var(--ease), transform 1.4s var(--ease); }
.gcard__art::after { content: ""; position: absolute; inset: 0; background: #ff2d1f; mix-blend-mode: multiply; opacity: .78; transition: opacity 1s var(--ease); pointer-events: none; }
.gcard__art--type::after { display: none; }
.gcard__art--type { background: radial-gradient(ellipse 70% 62% at 50% 46%, #1f1011, #09090b 74%); }
.gart { position: absolute; inset: 16% 9% 24%; }
.gart__wall { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: repeat(8, 1fr); gap: 3px; }
.gart__wall i { border-radius: 2px; border: 1px solid rgba(243, 238, 230, .24); background: rgba(243, 238, 230, .03); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.gart__wall i:nth-child(7n + 3) { border-color: rgba(255, 45, 31, .6); }
.gart__one { position: absolute; left: 50%; top: 50%; width: 17%; aspect-ratio: 4 / 5; border-radius: 4px; opacity: 0; transform: translate(-50%, -50%) scale(.5);
  background-color: var(--paper); background-image: linear-gradient(var(--red) 0 16%, transparent 16%), repeating-linear-gradient(transparent 0 calc(12% - 1px), rgba(23, 18, 14, .2) calc(12% - 1px) 12%);
  box-shadow: 0 0 0 1px rgba(255, 45, 31, .55), 0 0 50px rgba(255, 45, 31, .6); transition: opacity .6s var(--ease) .15s, transform 1s var(--ease) .15s; }
.gart__cap { position: absolute; left: 16px; bottom: 10px; display: flex; align-items: baseline; gap: 8px; font-family: var(--latin); font-style: italic; font-size: 34px; line-height: 1; }
.gart__cap .num { font-size: 1em; }
.gart__cap em { font-style: normal; font-size: 18px; color: var(--bone); }
.gart__cap--big { left: 0; right: 0; bottom: auto; top: 50%; justify-content: center; transform: translateY(-50%); font-size: 64px; }
.gcard__stamp { position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 5px 9px; border-radius: 6px; background: var(--red); color: #fff; font-size: 9px; letter-spacing: .2em; box-shadow: 0 8px 24px -8px rgba(255, 45, 31, .9); transform: rotate(-8deg); opacity: 0; transition: opacity .4s; }
.is-fav .gcard__stamp { opacity: 1; }
.gcard__who { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; color: var(--bone-dim); font-size: 10px; letter-spacing: .16em; }
.gcard__who b { font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: .02em; color: var(--bone); }
.gcard__who i { font-style: normal; color: var(--red); }
.gcard__title { position: relative; z-index: 1; display: block; font-family: var(--serif); font-weight: 900; font-size: clamp(22px, 1.8vw, 29px); line-height: 1.32; text-wrap: balance; }
.gcard__quote { position: relative; z-index: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-left: 12px; border-left: 2px solid var(--red); color: var(--bone-dim); font-family: var(--serif); font-weight: 500; font-size: 14px; line-height: 1.7; }
.gcard__foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--bone-faint); color: var(--bone-dim); font-size: 9px; letter-spacing: .16em; }
.gcard__open { display: inline-flex; align-items: center; gap: 8px; color: var(--bone); font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.gcard__open i { font-style: normal; color: var(--red); transition: transform .5s var(--ease); }
/* 珍品光澤：跟著游標移動的彩虹箔光，滑過時一道斜光掃過 */
.gcard__foil { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; mix-blend-mode: color-dodge; transition: opacity .6s var(--ease);
  background: radial-gradient(farthest-corner circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .2) 0%, rgba(255, 140, 100, .08) 26%, transparent 56%),
    repeating-linear-gradient(115deg, rgba(255, 45, 31, 0) 0%, rgba(255, 106, 61, .12) 5%, rgba(155, 156, 166, .12) 10%, rgba(120, 160, 255, .08) 14%, rgba(255, 45, 31, 0) 19%);
  background-size: 100% 100%, 240% 240%; background-position: center, var(--mx, 50%) var(--my, 50%); }
.gcard__shine { position: absolute; inset: -40%; z-index: 4; pointer-events: none; background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .1) 48%, rgba(255, 255, 255, .02) 52%, transparent 58%); transform: translateX(-62%); transition: transform 1.2s var(--ease); }
.gcard__acts { position: absolute; top: 18px; right: 18px; z-index: 6; display: flex; gap: 8px; transform: translateZ(40px); }
.gbtn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--bone); background: rgba(10, 10, 12, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(243, 238, 230, .16); transition: border-color .3s, background .3s, color .3s, transform .45s var(--ease), box-shadow .4s; }
.gbtn .ico { width: 19px; height: 19px; }
.gstar[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 10px 30px -8px rgba(255, 45, 31, .9); }
.gstar[aria-pressed="true"] .ico { fill: currentColor; }
.gcard.is-fav .gcard__face { box-shadow: 0 1px 0 rgba(255, 255, 255, .07) inset, 0 0 0 1px rgba(255, 45, 31, .5), 0 40px 90px -40px #000, 0 26px 60px -30px rgba(255, 45, 31, .55); }
.gcard.is-fav .gcard__foil { opacity: .4; }
@media (hover: hover) {
  .gcard__tilt:hover .gcard__face { box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset, 0 0 0 1px rgba(255, 45, 31, .45), 0 60px 110px -40px #000, 0 30px 70px -30px rgba(255, 45, 31, .5); }
  .gcard__tilt:hover .gcard__foil { opacity: 1; }
  .gcard__tilt:hover .gcard__shine { transform: translateX(62%); }
  .gcard__tilt:hover .gcard__art img { filter: none; transform: scale(1.08); }
  .gcard__tilt:hover .gcard__art::after { opacity: 0; }
  .gcard__tilt:hover .gcard__no { color: var(--red); }
  .gcard__tilt:hover .gcard__ghost { -webkit-text-stroke-color: rgba(255, 45, 31, .3); }
  .gcard__tilt:hover .gcard__open i { transform: translateX(6px); }
  .gcard__tilt:hover .gart__wall i { opacity: .12; transform: scale(.35); }
  .gcard__tilt:hover .gart__one { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .gbtn:hover { border-color: var(--red); transform: translateY(-2px); }
}
/* 收回後落回原位：外圈紅光散開一次 */
.gcard__tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; }
.gcard.is-landed .gcard__tilt::after { animation: landRing 1.5s var(--ease) forwards; }
@keyframes landRing { 0% { opacity: 1; box-shadow: 0 0 0 1px rgba(255, 45, 31, .9), 0 0 60px rgba(255, 45, 31, .55); } 100% { opacity: 0; box-shadow: 0 0 0 22px rgba(255, 45, 31, 0), 0 0 0 rgba(255, 45, 31, 0); } }
/* 收藏火花 */
.burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px rgba(255, 45, 31, .9); }
.burst i:nth-child(3n) { background: var(--ember); }
.burst i:nth-child(3n + 1) { left: -2px; top: -2px; width: 4px; height: 4px; background: var(--bone); }
.gempty { margin: 0; padding: 64px 20px; text-align: center; border: 1px dashed var(--bone-faint); border-radius: 24px; color: var(--bone-dim); font-size: 15px; line-height: 1.8; }
.gempty b { color: var(--red); }
.gpager { display: none; }

/* 分享小卡 */
.psheet { position: fixed; z-index: 170; width: min(340px, calc(100vw - 32px)); padding: 16px 18px 18px; border-radius: 22px; background: rgba(16, 16, 20, .94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid rgba(243, 238, 230, .14); box-shadow: 0 40px 100px -30px #000; }
.psheet[hidden] { display: none; }
.psheet__head { display: flex; align-items: center; justify-content: space-between; }
.psheet__k { margin: 0; color: var(--bone-dim); }
.psheet__x { width: 44px; height: 44px; margin-right: -10px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--bone-dim); transition: color .3s; }
.psheet__x:hover { color: var(--bone); }
.psheet__t { margin: 6px 0 16px; font-family: var(--serif); font-weight: 900; font-size: 18px; line-height: 1.45; text-wrap: balance; }
.psheet__copy { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 50px; padding: 0 20px; border-radius: 999px; background: var(--bone); color: var(--ink); font-weight: 700; font-size: 15px; letter-spacing: .04em; transition: background .3s, color .3s; }
.psheet__copy i { font-style: normal; }
.psheet__copy:hover { background: var(--red); color: #fff; }
.psheet__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.psheet__row a { display: grid; place-items: center; min-height: 44px; border-radius: 999px; border: 1px solid var(--bone-faint); font-size: 13px; font-weight: 700; transition: border-color .3s, background .3s; }
.psheet__row a:hover { border-color: var(--red); background: rgba(255, 45, 31, .1); }
.psheet__url { margin: 14px 2px 0; color: var(--bone-dim); text-transform: none; letter-spacing: .04em; font-size: 10px; word-break: break-all; }

/* ---------- 閱讀中：只留卷宗 ---------- */
.page-prompts .pp-cases { display: none; min-height: 100vh; padding: clamp(110px, 16vh, 160px) var(--gutter) 0; }
.page-prompts :is(a, button) { -webkit-tap-highlight-color: transparent; }
body.pp-reading .pp-cases { display: block; }
body.pp-reading :is(#top, #how, #index, #end, .foot, .seo-sitelinks) { display: none; }
.rail__back { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; margin-bottom: 22px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--bone-faint); background: rgba(12, 12, 15, .6); font-weight: 700; font-size: 15px; letter-spacing: .04em; transition: border-color .3s, background .3s; }
.rail__back i { font-style: normal; color: var(--red); font-size: 18px; transition: transform .5s var(--ease); }
.rail__back kbd { margin-left: auto; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--bone-faint); color: var(--bone-dim); font-size: 9px; }
.rail__back:hover { border-color: var(--red); background: rgba(255, 45, 31, .1); }
.rail__back:hover i { transform: translateX(-4px); }
.fcard__n { display: block; }
.fcard.is-fav .fcard__n::after { content: "★"; display: block; margin-top: 6px; font-family: var(--sans); font-style: normal; font-size: 12px; color: var(--red); }
.pe__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.pbtn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 14px; border: 1px solid var(--bone-faint); border-radius: 999px; color: var(--bone); font-size: 14px; font-weight: 700; letter-spacing: .04em; transition: border-color .3s, background .3s, color .3s, box-shadow .4s; }
.pbtn .ico { width: 18px; height: 18px; }
.pbtn:hover { border-color: var(--red); background: rgba(255, 45, 31, .08); }
.pbtn--star[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 12px 34px -12px rgba(255, 45, 31, .9); }
.pbtn--star[aria-pressed="true"] .ico { fill: currentColor; }
/* 每則最後：收回卡片＋下一張 */
.pend { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 14px; margin-top: clamp(56px, 10vh, 110px); }
.pend .pnext { margin-top: 0; }
.pend .pnext[hidden] { display: none; }
.pend__back { position: relative; display: grid; align-content: space-between; gap: 16px; padding: clamp(26px, 4.6vh, 46px) clamp(22px, 2.6vw, 36px); text-align: left; border: 1px solid var(--bone-faint); border-radius: 24px; background: rgba(12, 12, 15, .55); overflow: hidden; isolation: isolate; }
.pend__back::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bone); transform: scaleX(0); transform-origin: 0 50%; transition: transform .8s var(--ease); }
.pend__k { color: var(--bone-dim); transition: color .4s; }
.pend__t { font-family: var(--serif); font-weight: 900; font-size: clamp(22px, 2.4vw, 36px); line-height: 1.2; transition: color .4s; }
.pend__deck { position: relative; width: 70px; height: 58px; }
.pend__deck i { position: absolute; left: 17px; top: 4px; width: 36px; height: 50px; border-radius: 6px; border: 1px solid rgba(243, 238, 230, .5); background: #141418; transition: transform .7s var(--ease), border-color .4s; }
.pend__deck i:nth-child(1) { transform: rotate(-16deg) translateX(-12px); }
.pend__deck i:nth-child(3) { transform: rotate(16deg) translateX(12px); border-color: var(--red); }
@media (hover: hover) {
  .pend__back:hover::before { transform: scaleX(1); }
  .pend__back:hover :is(.pend__k, .pend__t) { color: var(--ink); }
  .pend__back:hover .pend__deck i { transform: none; border-color: var(--ink); }
}
/* 翻面卡：卡片翻到背面放大成紅幕；字跟著卡片大小縮放 */
.morph { position: fixed; inset: 0; z-index: 165; perspective: 2200px; visibility: hidden; }
.morph__card { position: absolute; left: 0; top: 0; border-radius: 24px; transform-style: preserve-3d; will-change: transform; }
.morph__front, .morph__back { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.morph__front .gcard__face { height: 100%; min-height: 0; }
.morph__back { transform: rotateY(180deg); background: var(--red); color: #fff; }
.morph__back::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%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"); }
.morph.is-flat .morph__front { visibility: hidden; }
.morph.is-flat .morph__back { transform: none; }
.morph__inner { position: absolute; left: 50%; top: 50%; width: 100vw; height: 100vh; display: grid; place-items: center; transform: translate(-50%, -50%) scale(var(--s, 1)); }

@media (max-width: 1000px) {
  .cbar .cbar__x { display: grid; place-items: center; margin-right: 2px; background: rgba(243, 238, 230, .08); }
  .cbar__x .ico { width: 19px; height: 19px; }
}
@media (max-width: 760px) {
  .pp-tools { align-items: flex-start; flex-direction: column; }
  /* 手機：卡片左右滑動翻頁，中間那張才顯影成彩色 */
  /* 左右留白讓第一張、最後一張也能停在正中間 */
  .gdeck { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(var(--gutter) * -1); padding: 8px max(var(--gutter), calc((100vw - min(80vw, 340px)) / 2)) 22px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .gdeck::-webkit-scrollbar { display: none; }
  .gcard { flex: 0 0 min(80vw, 340px); scroll-snap-align: center; }
  .gcard__face { min-height: 0; padding: 18px 18px 16px; }
  .gcard__tilt { transition: opacity .5s var(--ease); }
  .gcard:not(.is-center) .gcard__tilt { opacity: .55; }
  .gcard.is-center .gcard__art img { filter: none; }
  .gcard.is-center .gcard__art::after { opacity: 0; }
  .gcard__no { font-size: 40px; }
  .gcard__title { font-size: 22px; }
  .gcard__ghost { font-size: 200px; }
  .gpager { display: flex; align-items: center; gap: 12px; margin-top: 4px; color: var(--bone-dim); font-size: 10px; letter-spacing: .14em; }
  .gpager.is-off { display: none; }
  .gpager b { color: var(--red); font-family: var(--latin); font-style: italic; font-weight: 400; font-size: 22px; letter-spacing: 0; }
  .gpager__bar { flex: 1; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(243, 238, 230, .12); }
  .gpager__bar i { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); transition: transform .5s var(--ease); }
  .psheet { left: 12px !important; right: 12px; top: auto !important; bottom: 12px; width: auto; }
  .pend { grid-template-columns: 1fr; }
  body.pp-reading .pp-cases { padding-bottom: 96px; }
  .pend__back { grid-template-columns: 1fr auto; align-items: center; }
  .pend__back .pend__deck { grid-row: 1 / span 2; grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .gcard__face, .gcard__art img, .gcard__shine, .gcard__foil, .gart__wall i, .gart__one, .pend__back::before, .pend__deck i { transition: none !important; }
  .gcard.is-landed .gcard__tilt::after { animation: none; }
}
