/* =========================================================
   digi06.html「AI 圖像驅動與動態海報設計」專用樣式
   版型共用 digi05.css（.d5-page 關卡式講義），本檔只做：
   1) 單元主色改為電光紫（動態／影像感）
   2) 動態海報相關的互動元件：格式選擇器、動態強度、緩動曲線、分層、循環示範
   ========================================================= */
.d5-page.d6 {
	--d-brand: #6D4AFF;
	--d-brand-strong: #4B2FCC;
	--d-brand-soft: #ECE7FF;
	--d-brand-grad: linear-gradient(135deg, #8B6CFF 0%, #4B2FCC 100%);
	--d-glass: linear-gradient(165deg, rgba(255,255,255,.84) 0%, rgba(236,231,255,.55) 100%);
	--d-bg: #F7F6FB;
	--d-dot: #E2DEF0;
	--d-line: #E6E2F0;
	--glow: #FFF1B8;           /* 林間光點 */
	background-color: var(--d-bg);
}
.d6 .d5-subnav { background: rgba(247,246,251,.94); }
.d6 .d5-intro::before { background: var(--d-brand); }
.d6 .prompt-box .ph { color: #C9B8FF; }
.d6 .prompt-wrap .ptitle i { color: #C9B8FF; }

/* ---------- 示範海報：《讀菇》原圖＋CSS 動態疊層 ---------- */
.mp-poster { position: relative; aspect-ratio: 1414 / 2000; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 30px 60px -36px rgba(30,20,80,.65); isolation: isolate; }
.mp-poster > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 46%; }
.mp-poster .sky-glow { position: absolute; left: 18%; right: 18%; top: 22%; height: 38%; border-radius: 50%; background: radial-gradient(ellipse at 50% 45%, rgba(255,255,255,.95), rgba(255,250,225,.35) 45%, transparent 70%); mix-blend-mode: screen; opacity: 0; pointer-events: none; }
.mp-poster .leaf { position: absolute; width: 9px; height: 6px; background: #111; border-radius: 70% 10% 70% 10%; opacity: 0; pointer-events: none; }
.mp-poster .spore { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #FFF6D6; box-shadow: 0 0 6px 1px rgba(255,240,190,.9); opacity: 0; pointer-events: none; }
/* 動畫（由 .is-* 類別開關） */
.mp-poster.is-push > img { animation: mpPush 10s ease-in-out infinite alternate; }
.mp-poster.is-sky .sky-glow { animation: mpSky 4s ease-in-out infinite; }
.mp-poster.is-leaf .leaf { animation: mpLeaf 7s linear infinite; }
.mp-poster.is-spore .spore { animation: mpSpore 6s linear infinite; }
.mp-poster.is-flicker > img { animation: mpFlicker .5s steps(2) infinite; }
.mp-poster.is-push.is-flicker > img { animation: mpPush 10s ease-in-out infinite alternate, mpFlicker .5s steps(2) infinite; }
.mp-poster.is-spin > img, .mp-poster.is-spin.is-push > img { animation: mpSpin 2.4s ease-in-out infinite alternate; }
.mp-poster.is-shake { animation: mpShake .35s linear infinite; }
@keyframes mpPush { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes mpSky { 0%,100% { opacity: .05; } 50% { opacity: .55; } }
@keyframes mpLeaf { 0% { opacity: 0; transform: translate(0,0) rotate(0); } 10% { opacity: .9; } 85% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--dx, 30px), 230px) rotate(540deg); } }
@keyframes mpSpore { 0% { opacity: 0; transform: translate(0,0); } 15% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--dx, 10px), -150px); } }
@keyframes mpFlicker { 0% { filter: none; } 100% { filter: brightness(1.35) saturate(1.6) hue-rotate(25deg); } }
@keyframes mpSpin { from { transform: scale(1) rotate(0); } to { transform: scale(1.25) rotate(4deg); } }
@keyframes mpShake { 0%,100% { transform: translate(0,0); } 25% { transform: translate(3px,-2px); } 75% { transform: translate(-3px,2px); } }
.mp-caption { font-size: 12.5px !important; color: var(--d-ink-3) !important; text-align: center; margin: 8px 0 0 !important; }
.d6 .case-chip { margin-top: 14px; }
.d6 .case-chip .mark { font-size: 17px; letter-spacing: -.04em; background: #000; color: #fff; }

/* ---------- 格式選擇器 ---------- */
.fmt-picker { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.fmt-picker button { appearance: none; border: 1px solid var(--d-line); background: #fff; color: var(--d-ink-2); font-size: 13px; font-weight: 700; border-radius: 10px; padding: 7px 12px; cursor: pointer; transition: all .2s; }
.fmt-picker button[aria-pressed="true"] { background: var(--d-ink); border-color: var(--d-ink); color: #fff; }
.fmt-view { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: center; }
.fmt-stage { height: 240px; display: flex; align-items: center; justify-content: center; background: #EEECF5; border-radius: 14px; }
.fmt-frame { position: relative; background: linear-gradient(170deg,#182116,#070807); border-radius: 8px; transition: width .45s var(--d-ease), height .45s var(--d-ease); box-shadow: 0 10px 24px -14px rgba(0,0,0,.6); }
.fmt-frame::after { content: ""; position: absolute; inset: var(--safe-t, 12%) 8% var(--safe-b, 18%); border: 1.5px dashed rgba(184,242,124,.8); border-radius: 4px; }
.fmt-frame span { position: absolute; left: 6px; bottom: 5px; font: 700 10px var(--d-font-mono); color: #C9C3B8; }
.fmt-specs { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.fmt-specs dt { font-weight: 800; color: var(--d-ink); white-space: nowrap; }
.fmt-specs dd { margin: 0; color: var(--d-ink-2); }
.fmt-legend { font-size: 12.5px !important; color: var(--d-ink-3) !important; margin: 10px 0 0 !important; }
.fmt-legend i { display: inline-block; width: 14px; height: 10px; border: 1.5px dashed #7DB34A; border-radius: 2px; vertical-align: middle; margin-right: 4px; }

/* ---------- 動態強度控制台 ---------- */
.motion-lab { display: grid; grid-template-columns: 230px 1fr; gap: 18px; align-items: start; }
.layer-toggles { display: grid; gap: 7px; }
.layer-toggles label { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--d-line); border-radius: 11px; padding: 9px 11px; cursor: pointer; font-size: 13px; color: var(--d-ink-2); line-height: 1.5; }
.layer-toggles label b { display: block; color: var(--d-ink); font-size: 13.5px; }
.layer-toggles input { accent-color: var(--d-brand); margin-top: 4px; }
.layer-toggles label.bad { border-color: #F3C3B4; background: #FFF6F2; }
.intensity { margin-top: 12px; }
.intensity .bar { height: 10px; border-radius: 99px; background: #EEECF5; overflow: hidden; }
.intensity .bar span { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .35s var(--d-ease), background .35s; }
.intensity p { font-size: 13.5px !important; margin: 8px 0 0 !important; }
.intensity p b { color: var(--d-ink); }

/* ---------- 緩動曲線示範 ---------- */
.ease-demo { display: grid; gap: 10px; }
.ease-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; }
.ease-row b { font-size: 13px; color: var(--d-ink); line-height: 1.35; }
.ease-row b small { display: block; font: 600 10.5px var(--d-font-mono); color: var(--d-ink-3); }
.ease-track { position: relative; height: 30px; background: #fff; border: 1px solid var(--d-line); border-radius: 99px; }
.ease-dot { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--d-brand-grad); }
.ease-demo.run .ease-dot { animation: easeGo 1.6s forwards; }
.ease-demo.run .e-linear { animation-timing-function: linear; }
.ease-demo.run .e-inout { animation-timing-function: cubic-bezier(.65,0,.35,1); }
.ease-demo.run .e-out { animation-timing-function: cubic-bezier(.16,1,.3,1); }
.ease-demo.run .e-back { animation-timing-function: cubic-bezier(.34,1.56,.64,1); }
@keyframes easeGo { to { left: calc(100% - 24px); } }
.ease-replay { margin-top: 10px; appearance: none; border: 1px solid var(--d-line); background: #fff; border-radius: 9px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--d-ink-2); cursor: pointer; }
.ease-replay:hover { border-color: var(--d-brand); color: var(--d-brand-strong); }

/* ---------- 分層爆炸圖：《讀菇》五個圖層 ---------- */
.layer-stack { position: relative; height: 350px; perspective: 900px; display: flex; justify-content: center; align-items: center; background: #EEECF5; border-radius: 14px; overflow: hidden; }
.layer-stack .ls-inner { position: relative; width: 150px; height: 212px; transform-style: preserve-3d; transform: rotateX(56deg) rotateZ(-38deg); transition: transform .6s var(--d-ease); }
.layer-stack .ly { position: absolute; inset: 0; border-radius: 6px; transition: transform .6s var(--d-ease), box-shadow .3s; display: flex; align-items: flex-end; padding: 6px; font: 800 10px var(--d-font-mono); letter-spacing: .04em; background-position: center; background-size: 100% 100%; background-repeat: no-repeat; }
.layer-stack .ly span { background: rgba(0,0,0,.65); color: #fff; border-radius: 4px; padding: 1px 5px; }
.layer-stack .ly1 { background-color: #fff; border: 1px solid #ddd; }
.layer-stack .ly2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 212' preserveAspectRatio='none'%3E%3Cg fill='%23888'%3E%3Crect x='28' y='60' width='9' height='120'/%3E%3Crect x='70' y='80' width='7' height='100'/%3E%3Crect x='108' y='55' width='10' height='125'/%3E%3Ccircle cx='32' cy='55' r='20'/%3E%3Ccircle cx='74' cy='72' r='16'/%3E%3Ccircle cx='112' cy='48' r='22'/%3E%3Crect x='10' y='165' width='130' height='40'/%3E%3C/g%3E%3C/svg%3E"); }
.layer-stack .ly3 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 212' preserveAspectRatio='none'%3E%3Cpath d='M86 158 q18-24 36 0z' fill='%23D7262E'/%3E%3Crect x='100' y='158' width='8' height='26' fill='%23ddd'/%3E%3Cpath d='M58 140 q14-20 28 0z' fill='%23B9C83A'/%3E%3Crect x='69' y='140' width='6' height='30' fill='%23d8d0a0'/%3E%3Cpath d='M30 165 q12-16 24 0z' fill='%23E9922B'/%3E%3Crect x='39' y='165' width='6' height='22' fill='%23e8c08a'/%3E%3Cpath d='M44 128 q10-26 26 0z' fill='%238B3A1E'/%3E%3Cpath d='M18 140 q8-12 16 0z' fill='%23eee'/%3E%3Crect x='24' y='140' width='4' height='30' fill='%23ccc'/%3E%3Cpath d='M112 120 q10-14 20 0z' fill='%23E8C9A0'/%3E%3Crect x='120' y='120' width='4' height='40' fill='%23ddd'/%3E%3Ccircle cx='96' cy='150' r='2' fill='%23fff'/%3E%3Ccircle cx='106' cy='146' r='2' fill='%23fff'/%3E%3C/svg%3E"); }
.layer-stack .ly4 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 212' preserveAspectRatio='none'%3E%3Cpath fill-rule='evenodd' fill='%23000' d='M0 0H150V212H0Z M75 40 C125 40 138 90 136 140 C134 185 110 196 75 196 C40 196 16 185 14 140 C12 90 25 40 75 40Z'/%3E%3Cpath d='M20 196 l6-26 4 26 5-20 3 20z M112 196 l5-24 4 24 5-18 3 18z' fill='%23000'/%3E%3Cpath d='M40 60 C70 30 110 50 130 90 L122 92 C104 62 74 50 46 70Z' fill='%23000'/%3E%3C/svg%3E"); }
.layer-stack .ly4 span { background: #fff; color: #000; }
.layer-stack .ly5 { align-items: flex-start; justify-content: center; padding-top: 70px; }
.layer-stack .ly5 b { font: 900 26px/1 var(--d-font-display); color: #111; letter-spacing: -.02em; }
.layer-stack .ly5 span { position: absolute; left: 6px; bottom: 6px; }
.layer-stack.open .ly2 { transform: translateZ(32px); }
.layer-stack.open .ly3 { transform: translateZ(64px); }
.layer-stack.open .ly4 { transform: translateZ(96px); }
.layer-stack.open .ly5 { transform: translateZ(128px); }
.layer-stack.open .ls-inner { transform: translateY(46px) rotateX(56deg) rotateZ(-38deg); }
.layer-stack.open .ly { box-shadow: 0 0 0 1px rgba(109,74,255,.45); }
.layer-stack .ly.hl { box-shadow: 0 0 0 3px var(--d-brand) !important; }
.layer-legend { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.layer-legend button { appearance: none; text-align: left; border: 1px solid var(--d-line); background: #fff; border-radius: 11px; padding: 9px 11px; cursor: pointer; font-size: 13px; color: var(--d-ink-2); line-height: 1.5; transition: border-color .2s; }
.layer-legend button:last-child { grid-column: 1 / -1; }
.layer-legend button b { display: block; color: var(--d-ink); font-size: 13.5px; }
.layer-legend button:hover, .layer-legend button.on { border-color: var(--d-brand); background: #FBFAFF; }
.stack-toggle { margin-top: 10px; appearance: none; border: 0; background: var(--d-ink); color: #fff; border-radius: 9px; padding: 7px 14px; font-size: 13px; font-weight: 800; cursor: pointer; }

/* ---------- 循環示範 ---------- */
.loop-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.loop-card { background: #fff; border: 1px solid var(--d-line); border-radius: 14px; padding: 12px; }
.loop-card .lc-stage { position: relative; height: 110px; border-radius: 10px; background: linear-gradient(170deg,#182116,#070807); overflow: hidden; }
.loop-card .lc-dot { position: absolute; top: 50%; left: 12%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 14px var(--glow); }
.loop-card.bad .lc-dot { animation: loopJump 2.4s linear infinite; }
.loop-card.ping .lc-dot { animation: loopPing 1.6s ease-in-out infinite alternate; }
.loop-card.cycle .lc-dot { left: 50%; margin-left: -11px; animation: loopCycle 2.4s ease-in-out infinite; }
@keyframes loopJump { from { left: 12%; } to { left: 78%; } }
@keyframes loopPing { from { left: 12%; } to { left: 78%; } }
@keyframes loopCycle { 0%,100% { transform: scale(.6); opacity: .5; } 50% { transform: scale(1.25); opacity: 1; } }
.loop-card .lc-flag { position: absolute; top: 6px; right: 8px; font: 800 10px var(--d-font-mono); color: #fff; background: rgba(0,0,0,.45); border-radius: 6px; padding: 2px 6px; }
.loop-card b { display: block; margin-top: 10px; font-size: 14px; color: var(--d-ink); }
.loop-card p { font-size: 13px !important; margin: 4px 0 0 !important; line-height: 1.65 !important; }
.loop-card.bad b { color: var(--d-warn); }

/* ---------- 分鏡時間軸 ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; border: 1px solid var(--d-line); border-radius: 14px; overflow: hidden; background: #fff; }
.timeline > div { padding: 12px 12px 14px; border-right: 1px solid var(--d-line); }
.timeline > div:last-child { border-right: 0; }
.timeline .t { font: 800 11px var(--d-font-mono); color: var(--d-brand-strong); }
.timeline b { display: block; font-size: 14px; color: var(--d-ink); margin-top: 4px; }
.timeline p { font-size: 12.5px !important; margin: 4px 0 0 !important; line-height: 1.6 !important; }
.timeline .bar { grid-column: 1 / -1; height: 6px; padding: 0; border: 0; background: linear-gradient(90deg, var(--d-brand) 0 25%, #8B6CFF 25% 50%, #A992FF 50% 75%, #C9B8FF 75%); }

/* ---------- 影片嵌入程式碼 ---------- */
.code-box { font-family: var(--d-font-mono) !important; font-size: 12.5px !important; }

@media (max-width: 991px) {
	.fmt-view, .motion-lab { grid-template-columns: 1fr; }
	.fmt-stage { height: 220px; }
}
@media (max-width: 640px) {
	.loop-grid, .layer-legend { grid-template-columns: 1fr; }
	.timeline { grid-template-columns: 1fr 1fr; }
	.timeline > div:nth-child(2) { border-right: 0; }
	.timeline > div:nth-child(-n+2) { border-bottom: 1px solid var(--d-line); }
	.ease-row { grid-template-columns: 96px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.mp-poster *, .mp-poster, .mp-poster > img, .loop-card .lc-dot, .ease-dot { animation: none !important; }
}

/* ---------- Moonland 三種模式與點數 ---------- */
.moon-modes { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.moon-modes > div { background: #fff; border: 1px solid var(--d-line); border-radius: 14px; padding: 12px 14px; }
.moon-modes i { font-size: 20px; color: var(--d-brand); }
.moon-modes b { display: block; font: 900 15px var(--d-font-display); margin-top: 4px; color: var(--d-ink); }
.moon-modes span { display: block; font-size: 12.5px; color: var(--d-ink-2); line-height: 1.6; margin-top: 2px; }
.moon-points { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; margin-top: 10px; background: #141311; border-radius: 14px; overflow: hidden; }
.moon-points > div { padding: 12px 10px; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.moon-points > div:last-child { border-right: 0; }
.moon-points b { display: block; font: 900 22px/1.1 var(--d-font-display); color: #fff; }
.moon-points span { display: block; font-size: 11.5px; color: #A8A39A; margin-top: 3px; }
@media (max-width: 640px) {
	.moon-modes { grid-template-columns: 1fr; }
	.moon-points { grid-template-columns: 1fr 1fr; }
	.moon-points > div:nth-child(2) { border-right: 0; }
	.moon-points > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
}

/* ---------- 06 提示詞：英文＋中文雙版本（同一張卡） ---------- */
.mp-dual > .prompt-box:not(.zh) { border-radius: 0; }
.mp-dual .psub { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 6px 10px 6px 16px; background: #2B2925; border-top: 1px dashed rgba(255,255,255,.16); }
.mp-dual .psub .lang { font: 800 11.5px var(--d-font-mono); letter-spacing: .08em; color: #C9B8FF; }
.mp-dual .psub .copy-btn { position: static; transform: none; }
.mp-dual .prompt-box.zh { border-radius: 0 0 14px 14px; background: #24221E; }
.mp-dual .prompt-box.zh .ph { color: #FFD59E; }
.mp-lang-tip { font-size: 13.5px !important; line-height: 1.75 !important; margin: 12px 0 0 !important; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--d-line); }
.mp-lang-tip > b:first-child { display: block; color: var(--d-ink); margin-bottom: 2px; }

/* ---------- 賞析：作品賞析（A 真實 AI 影片／B 專題素材程式動態） ---------- */
.gx-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 16px; }
.gx-head h4 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: clamp(18px, 2vw, 21px); line-height: 1.5; }
.gx-badge { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--d-brand); color: #fff; font: 900 15px/1 var(--d-font-mono); }
.gx-badge.b { background: var(--d-ink); }
.gx-head + .gx-case { margin-top: 0; }
.gx-case + .gx-head { margin-top: 44px; }
.gx-pause { appearance: none; border: 1px solid var(--d-line); background: #fff; color: var(--d-ink-2); font-size: 13.5px; font-weight: 700; border-radius: 99px; padding: 7px 14px; cursor: pointer; transition: all .2s; }
.gx-pause:hover { border-color: var(--d-brand); color: var(--d-brand-strong); }
.gx-pause[aria-pressed="true"] { background: var(--d-brand-soft); border-color: var(--d-brand); color: var(--d-brand-strong); }
.gx-lead { margin: -4px 0 18px !important; max-width: 56em; }

/* A：案例研究（影片＋分析） */
.gx-case { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; align-items: start; padding: 20px; margin-bottom: 20px; background: #fff; border: 1px solid var(--d-line); border-radius: 22px; box-shadow: 0 20px 44px -36px rgba(30,20,80,.5); }
.gx-case.portrait { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.gx-screen { position: relative; overflow: hidden; border-radius: 14px; background: #0d0c10; }
.gx-screen.wide { aspect-ratio: 16 / 9; }
.gx-screen.tall { aspect-ratio: 800 / 1152; max-height: 600px; margin: 0 auto; }
.gx-info > .gx-ctrl { margin: 0 0 4px; }
.gx-info > .gx-moment { margin: 0 0 12px !important; }
.gx-screen video, .gx-screen .gx-orig { display: block; width: 100%; height: 100%; object-fit: contain; background: #0d0c10; }
.gx-screen .gx-orig { position: absolute; inset: 0; }
.gx-screen.tall video, .gx-screen.tall .gx-orig { background: #fff; }
.gx-flag { position: absolute; top: 10px; left: 10px; z-index: 6; font: 800 10.5px var(--d-font-mono); letter-spacing: .06em; color: #fff; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); border-radius: 6px; padding: 3px 8px; pointer-events: none; }
.gx-flag.real { background: var(--d-brand); }
.gx-ctrl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.gx-view, .gx-moments { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; background: #F1EFF7; border-radius: 10px; }
.gx-view button, .gx-moments button { appearance: none; border: 0; background: transparent; color: var(--d-ink-2); font-size: 13px; font-weight: 700; border-radius: 8px; padding: 5px 11px; cursor: pointer; }
.gx-moments button { font-family: var(--d-font-mono); }
.gx-view button[aria-pressed="true"] { background: var(--d-ink); color: #fff; }
.gx-moments button:hover, .gx-view button:hover { color: var(--d-brand-strong); }
.gx-moments button.on { background: var(--d-brand); color: #fff; }
.gx-moment { min-height: 3.4em; margin: 8px 0 0 !important; padding: 9px 12px; border-radius: 10px; background: #FBFAFF; border: 1px dashed #D9D2F2; font-size: 13.5px !important; line-height: 1.7 !important; }
.gx-moment.on { background: var(--d-brand-soft); border-style: solid; border-color: #C9B8FF; color: var(--d-ink) !important; }
.gx-info h5 { font: 900 clamp(19px, 2.1vw, 23px)/1.4 var(--d-font-display); margin: 0 0 12px; color: var(--d-ink); }
.gx-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 8px !important; }
.gx-tags span { font-size: 11.5px; font-weight: 700; color: var(--d-ink-2); background: #F1EFF7; border-radius: 6px; padding: 2px 8px; }
.gx-tags span:first-child { background: var(--d-brand-soft); color: var(--d-brand-strong); }
.gx-verdict { display: grid; gap: 8px; margin-bottom: 10px; }
.gx-verdict > div { padding: 10px 14px; border-radius: 12px; }
.gx-verdict .good { background: #EEF7F1; }
.gx-verdict .fix { background: #FFF4EE; }
.gx-verdict b { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.gx-verdict .good b { color: #23704A; }
.gx-verdict .fix b { color: #B2441A; }
.gx-verdict ul { margin: 4px 0 0; padding-left: 1.15em; font-size: 14px; line-height: 1.75; color: var(--d-ink-2); }
.gx-verdict ul b { display: inline; color: var(--d-ink); }
.gx-howfix { font-size: 13.5px !important; line-height: 1.75 !important; margin: 0 0 12px !important; padding-left: 12px; border-left: 3px solid var(--d-brand); }
.gx-howfix b { display: block; color: var(--d-ink); font-size: 13.5px; }
.gx-prompt { border-top: 1px solid var(--d-line); padding-top: 10px; }
.gx-prompt summary { cursor: pointer; font-size: 14px; font-weight: 800; color: var(--d-brand-strong); }
.gx-prompt[open] summary { margin-bottom: 10px; }
.gx-prompt .prompt-box { font-size: 12.5px; line-height: 1.75; }

/* B：程式動態卡 */
.gx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.gx-card { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); align-items: start; background: #fff; border: 1px solid var(--d-line); border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px -34px rgba(30,20,80,.55); }
.gx-card .gx-screen { border-radius: 0; align-self: stretch; }
.gx-body { padding: 14px 16px 16px; }
.gx-body h5 { font: 900 17px/1.45 var(--d-font-display); margin: 0 0 10px; color: var(--d-ink); }
.gx-mv { display: grid; gap: 4px; margin: 0 0 10px; }
.gx-mv > div { display: grid; grid-template-columns: 3.2em 1fr; gap: 8px; align-items: baseline; font-size: 13.5px; line-height: 1.6; }
.gx-mv dt { text-align: center; font-size: 11.5px; font-weight: 800; border-radius: 6px; padding: 1px 0; background: var(--d-brand); color: #fff; }
.gx-mv > div + div dt { background: #E4E1EC; color: var(--d-ink-2); }
.gx-mv dd { margin: 0; color: var(--d-ink-2); }
.gx-why { font-size: 13.5px !important; line-height: 1.75 !important; margin: 0 0 12px !important; }
.gx-why b { color: var(--d-ink); }
.gx-note { font-size: 13px !important; color: var(--d-ink-3) !important; margin: 16px 0 0 !important; }

/* 示範海報共用：與原海報同比例 */
.gx-poster { position: relative; aspect-ratio: 1414 / 2000; overflow: hidden; isolation: isolate; }
.gx-poster > * { position: absolute; }
.gx-poster > img { inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* B1 灰燼生花：光掃亮字內花紋＋餘燼上飄 */
.gx-poster.hui { background: #2D2B28; }
.hui > img { animation: gxBreath 12s ease-in-out infinite alternate; transform-origin: 50% 62%; }
.hui .sweep { inset: 0; z-index: 2; background: linear-gradient(115deg, transparent 38%, rgba(255,236,205,.95) 48%, rgba(255,214,160,.6) 52%, transparent 62%) no-repeat; background-size: 250% 100%; mix-blend-mode: screen;
	-webkit-mask: url("../img/digi/gx/hui-poster.webp") center / cover; mask: url("../img/digi/gx/hui-poster.webp") center / cover luminance; animation: gxSweep 6s ease-in-out infinite; }
.hui .embers { inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }

/* B2 GOOD拜 塑膠膜：反光＋漣漪＋花瓣 */
.gx-poster.wrap { background: #F4F2F3; }
.wrap .sheen { inset: -10% -60%; z-index: 2; background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.75) 49%, rgba(225,235,255,.55) 52%, transparent 58%); mix-blend-mode: normal; opacity: .9; animation: gxSheen 6s cubic-bezier(.65,0,.35,1) infinite; }
.wrap .ripple { left: 47%; top: 94.5%; z-index: 2; width: 22%; aspect-ratio: 3 / 1; border: 1.5px solid rgba(110,120,130,.55); border-radius: 50%; transform: translate(-50%, -50%) scale(.2); opacity: 0; animation: gxRipple 4.5s ease-out infinite; }
.wrap .r2 { animation-delay: 1.5s; } .wrap .r3 { animation-delay: 3s; }
.wrap .petal { z-index: 3; width: 3.2%; aspect-ratio: 1 / 1.6; border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%; background: linear-gradient(160deg, #FBD3E2, #E99AB8); opacity: 0; animation: gxPetal 9s linear infinite; }
.wrap .p1 { left: 70%; top: 50%; } .wrap .p2 { left: 22%; top: 30%; animation-delay: 3s; } .wrap .p3 { left: 58%; top: 38%; animation-delay: 6s; width: 2.4%; }

/* B3 浪：幾何犬行進 */
.gx-poster.dogs { background: linear-gradient(180deg, #F3ECE1 0%, #EFE5D6 70%, #E4D6C2 100%); }
.dogs .shape { z-index: 0; opacity: .9; animation: gxDrift 26s linear infinite; }
.dogs .s1 { right: -10%; top: 26%; width: 62%; aspect-ratio: 1; background: #E8B04B; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.dogs .s2 { left: -12%; top: 46%; width: 48%; aspect-ratio: 1; background: #7FA27A; clip-path: polygon(0 20%, 100% 0, 70% 100%); animation-duration: 34s; }
.dogs .s3 { right: 18%; top: 14%; width: 16%; aspect-ratio: 1; background: #B5553A; clip-path: polygon(50% 0, 100% 100%, 0 100%); animation-duration: 18s; }
.dogs .ttl { left: 9%; top: 6%; z-index: 4; font: 900 clamp(64px, 12vw, 104px)/1 var(--d-font-display); color: #2F2A26; }
.dogs .sub { left: 10%; top: calc(6% + clamp(72px, 13vw, 112px)); z-index: 4; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: #5E5249; }
.dogs .ground { left: 0; right: 0; bottom: 0; height: 24%; z-index: 1; background: #D9C9B2; border-top: 3px solid #2F2A26; }
.dogs .track { left: 0; bottom: 24%; z-index: 3; display: flex; align-items: flex-end; gap: 0; width: max-content; height: 22%; animation: gxWalk 30s linear infinite; }
.dogs .track img { display: block; height: var(--h, 70%); width: auto; margin-right: 10px; margin-bottom: -2px; animation: gxBob .42s ease-in-out infinite alternate; filter: drop-shadow(0 6px 0 rgba(47,42,38,.12)); }

/* B4 讀菇：素材拆層，毒菇依序冒出 */
.gx-poster.mush { background: #000; }
.mush .sky { inset: 0; z-index: 0; background:
	linear-gradient(90deg, transparent 22%, #A9A9A9 22% 25%, transparent 25% 36%, #BEBEBE 36% 38%, transparent 38% 60%, #B3B3B3 60% 63%, transparent 63% 74%, #9C9C9C 74% 78%, transparent 78%) 0 30% / 100% 70% no-repeat,
	linear-gradient(180deg, #fff 0%, #fff 45%, #C9C9C9 72%, #A3A3A3 100%); }
.mush .m { z-index: 3; bottom: 6%; transform-origin: 50% 100%; animation: gxPop 9s cubic-bezier(.34,1.56,.64,1) infinite; }
.mush .m img { display: block; width: 100%; height: auto; transform-origin: 50% 100%; animation: gxSway 3.2s ease-in-out infinite alternate; }
.mush .m1 { left: 37%; width: 26%; bottom: 20%; z-index: 2; }
.mush .m2 { left: 12%; width: 21%; bottom: 17%; animation-delay: .4s; }
.mush .m3 { right: 11%; width: 21%; bottom: 17%; animation-delay: .8s; }
.mush .m4 { left: 10%; width: 25%; bottom: 9%; animation-delay: 1.2s; }
.mush .m5 { right: 9%; width: 26%; bottom: 9%; animation-delay: 1.6s; }
.mush .m6 { left: 38%; width: 23%; bottom: 7%; animation-delay: 2s; }
.mush .m2 img { animation-delay: -.8s; } .mush .m3 img { animation-delay: -1.6s; } .mush .m5 img { animation-delay: -2.4s; }
.mush .spores { inset: 0; z-index: 4; pointer-events: none; }
.mush .spores i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #FFF6D6; box-shadow: 0 0 6px 1px rgba(255,240,190,.9); opacity: 0; animation: mpSpore 6s linear infinite; }
.mush > .frame { inset: 0; z-index: 5; width: 100%; height: 100%; pointer-events: none; }

@keyframes gxBreath { from { transform: scale(1); } to { transform: scale(1.03); } }
@keyframes gxSweep { 0% { background-position: 130% 0; } 60%, 100% { background-position: -30% 0; } }
@keyframes gxSheen { 0% { transform: translateX(-55%); } 55%, 100% { transform: translateX(55%); } }
@keyframes gxRipple { 0% { transform: translate(-50%, -50%) scale(.2); opacity: 0; } 15% { opacity: .9; } 100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; } }
@keyframes gxPetal { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 10% { opacity: .95; } 85% { opacity: .9; } 100% { opacity: 0; transform: translate(-40px, 160px) rotate(220deg); } }
@keyframes gxDrift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-6%); } }
@keyframes gxWalk { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes gxBob { from { transform: translateY(0); } to { transform: translateY(-3%); } }
@keyframes gxPop { 0% { transform: translateY(30%) scale(.1); opacity: 0; } 7% { transform: none; opacity: 1; } 78% { transform: none; opacity: 1; } 88%, 100% { transform: translateY(20%) scale(.4); opacity: 0; } }
@keyframes gxSway { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }

/* 暫停：手動按鈕或卡片不在畫面內 */
.gx.paused .gx-poster, .gx.paused .gx-poster *, .gx-card:not(.in) .gx-poster, .gx-card:not(.in) .gx-poster * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
	.gx-poster, .gx-poster * { animation: none !important; }
	.mush .m { opacity: 1; } .wrap .sheen, .hui .sweep, .wrap .ripple, .wrap .petal { display: none; }
}
@media (max-width: 1100px) {
	.gx-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
	.gx-case, .gx-case.portrait { grid-template-columns: minmax(0, 1fr); padding: 14px; }
	.gx-screen.tall { max-height: 560px; }
}
@media (max-width: 640px) {
	.gx-card { grid-template-columns: minmax(0, 1fr); }
	.gx-head { flex-direction: column; align-items: flex-start; }
	.gx-ctrl { flex-direction: column; align-items: stretch; }
	.gx-view, .gx-moments { justify-content: space-between; }
	.gx-view button, .gx-moments button { flex: 1; }
}
