/* ══════════════════════════════════════════
   研究室網站 · 深色區分層（2026.12）
   和個人作品集同一家族（黑底、藍圖格線、零圓角、四角括號），用三件事區分：
   ・色：強調色從作品集的天藍換成深青訊號（GetLayers Deep Teal Signal：薄荷 #97feed、深青 #35c2b4）
     天藍的取代寫在各 css、js 的色碼裡，這個檔案只處理字體、圖像、動態
   ・字：IBM Plex Sans / IBM Plex Mono（作品集是 Inter Tight / Space Mono）
   ・圖：照片進研究室網站一律做成單色加深青的「掃描底片」處理；動態只留首頁點雲開場
   只要 <html> 帶 data-tone="lab" 就生效
══════════════════════════════════════════ */

@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); }

/* ── 字 ── */
html[data-skin="b"][data-tone="lab"] {
  --f-heading: 'IBM Plex Sans', 'Noto Sans TC', sans-serif !important;
  --f-display: 'IBM Plex Sans', 'Noto Sans TC', sans-serif !important;
  --f-mono:    'IBM Plex Mono', 'Noto Sans TC', 'Courier New', monospace !important;
  --b-grid: rgba(151,254,237,0.045);
}
html[data-skin="b"][data-tone="lab"] body { font-family: 'IBM Plex Sans', 'Noto Sans TC', sans-serif !important; }
html[data-skin="b"][data-tone="lab"] :is(.sec-h2, .page-hero-h1) { font-weight: 500; letter-spacing: -0.02em; }
html[data-skin="b"][data-tone="lab"] ::selection { background: rgba(151,254,237,0.25); color: #fff; }

/* ── 圖：照片做成單色加深青，像掃描底片；滑鼠移上才回到原色 ──
   作品集用彩色實景照，研究室網站的照片一律走這個處理 */
html[data-skin="b"][data-tone="lab"] :is(.sm-img, .pc-thumb) { position: relative; background: #020707; }
html[data-skin="b"][data-tone="lab"] :is(.sm-img, .pc-thumb) img { filter: grayscale(1) contrast(1.08) brightness(.78) !important; }
html[data-skin="b"][data-tone="lab"] :is(.sm-img, .pc-thumb)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(151,254,237,0.06) 0 1px, transparent 1px 4px),
    linear-gradient(160deg, rgba(53,194,180,0.38), rgba(6,25,83,0.35));
  mix-blend-mode: screen; transition: opacity .5s ease;
}
html[data-skin="b"][data-tone="lab"] :is(.sm-card:hover, .sm-card:focus-visible) .sm-img img { filter: grayscale(0) brightness(.95) !important; }
html[data-skin="b"][data-tone="lab"] :is(.sm-card:hover, .sm-card:focus-visible) .sm-img::after { opacity: 0; }

/* ── 動態收斂：內容區只淡入，不位移、不縮放 ── */
html[data-skin="b"][data-tone="lab"] :is(.rv, .rv-left, .rv-right) { transform: none !important; transition: opacity .5s ease !important; }
@media (prefers-reduced-motion: reduce) {
  html[data-skin="b"][data-tone="lab"] :is(.rv, .rv-left, .rv-right) { opacity: 1 !important; transition: none !important; }
}

/* ── 開場：字母依載入進度從模糊中浮現（尺寸由 scan-b.js 給 --si-w / --si-h） ── */
.scan-veil .si-mark { position: absolute; left: 50%; top: var(--si-cy, 50%); width: var(--si-w, 600px); height: var(--si-h, 106px);
  transform: translate(-50%, -50%); transition: opacity .8s ease; }
.scan-veil .si-mark svg { display: block; overflow: visible; }
.scan-veil .si-mark path { opacity: 0; }
.scan-veil .si-cap { position: absolute; left: 0; right: 0; top: calc(var(--si-cy, 50%) + var(--si-h, 106px) / 2 + 40px);
  display: flex; flex-direction: column; align-items: center; gap: 12px; transition: opacity .5s ease; }
.scan-veil .si-brand { font: 500 12px/1 var(--f-mono); letter-spacing: .32em; text-indent: .32em; color: #cfe; text-transform: uppercase; }
.scan-veil .si-num { font: 11px/1 var(--f-mono); letter-spacing: .2em; color: rgba(214,255,248,.55); }
.scan-veil.clear .si-mark { opacity: 0; } .scan-veil.clear .si-cap { opacity: 0 !important; }
/* 交棒給點雲：黑幕立刻透明（點雲畫布本身就是黑底），SVG 字標在點字出現後 0.3 秒內退場，不留灰階重疊 */
.scan-veil.clear { transition: background-color .9s cubic-bezier(.4,0,.2,1), opacity .9s ease; }
.scan-veil.clear .si-mark { transition: opacity .8s cubic-bezier(.4,0,.2,1) .15s; }
.scan-veil.clear .si-cap { transition: opacity .6s ease; }
/* 點雲落地後，首頁文字與導覽列依序從模糊中浮現 */
html[data-tone="lab"].intro-fade .scan-ui { transition: opacity .9s ease .15s, filter .9s ease .15s !important; }
html[data-tone="lab"].intro-fade nav { transition: opacity .9s ease .45s !important; }
html[data-tone="lab"].intro-on .scan-ui { filter: blur(10px); }

/* ── CIS v1.0：Dreamscape 只用在 AI-DTXR 字標；其餘標題與數字改用實心的 Montserrat ── */
@font-face { font-family: 'Dreamscape'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/dreamscape.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 300 900; font-style: normal; font-display: swap; src: url(/fonts/montserrat-latin-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
html[data-skin="b"][data-tone="lab"] { --f-display: 'Montserrat', 'Noto Sans TC', sans-serif !important; }
html[data-skin="b"][data-tone="lab"] h3 { font-family: 'IBM Plex Sans', 'Noto Sans TC', sans-serif; }
html[data-tone="lab"] .x { color: #97feed; -webkit-text-fill-color: #97feed; font-weight: inherit; }
/* 導覽列：只留字標，X 上色，LAB 小字 */
/* 導覽列：ADX 掃描標誌 + 字標（標誌見下方 ADX 區塊）*/
html[data-tone="lab"] .nav-wordmark { font: 400 19px/1 'Dreamscape', sans-serif; letter-spacing: .02em; color: #fff; display: flex; align-items: baseline; gap: 0; }
html[data-tone="lab"] .nav-wordmark em { font: 500 10px/1 var(--f-mono); letter-spacing: .3em; color: #8fb3ae; margin-left: 10px; }
html[data-tone="lab"] .scan-title, html[data-tone="lab"] .hero-h1 .line1 { font-family: 'Dreamscape', sans-serif; letter-spacing: .02em; }
html[data-tone="lab"] .hero-h1 .line1.grad-text { background: none; -webkit-text-fill-color: currentColor; color: #fff; }
html[data-tone="lab"] .f-left > span:first-child { font-family: 'Dreamscape', sans-serif; }
/* Dreamscape 只有一個字重：字標不讓瀏覽器自己加粗 */
html[data-tone="lab"] .scan-title, html[data-tone="lab"] .hero-h1 .line1, html[data-tone="lab"] .nav-wordmark { font-weight: 400 !important; font-synthesis: none; }
html[data-tone="lab"] .scan-title { white-space: nowrap; font-size: clamp(44px, 7.2vw, 112px); }
/* 英文大標：Montserrat 中粗，略收字距 */
html[data-skin="b"][data-tone="lab"] h1, html[data-skin="b"][data-tone="lab"] h2,
html[data-tone="lab"] .page-hero-h1, html[data-tone="lab"] .tm-h1 > span:first-child { font-weight: 600 !important; letter-spacing: -.01em; }
html[data-tone="lab"] .tm-h1-zh { font-family: 'Noto Sans TC', sans-serif; }
/* 中文模式下 styles-b.css 會用 :lang(zh) 把所有字都換成思源黑體；字標留在 Dreamscape，英文大標留在 Montserrat（中文字會自動退回思源黑體） */
html[data-tone="lab"] .nav-wordmark, html[data-tone="lab"] .scan-title, html[data-tone="lab"] .hero-h1 .line1,
html[data-tone="lab"] .f-left > span:first-child, html[data-tone="lab"] .nav-wordmark .x, html[data-tone="lab"] .scan-title .x,
html[data-tone="lab"] .hero-h1 .line1 .x, html[data-tone="lab"] .f-left .x { font-family: 'Dreamscape', 'Noto Sans TC', sans-serif !important; }
html[data-skin="b"][data-tone="lab"] h1, html[data-skin="b"][data-tone="lab"] h2,
html[data-tone="lab"] .page-hero-h1, html[data-tone="lab"] .tm-h1 > span:first-child { font-family: 'Montserrat', 'Noto Sans TC', sans-serif !important; }
html[data-tone="lab"] .hero-h1 .line1, html[data-tone="lab"] .hero-h1 .line2, html[data-tone="lab"] .scan-title { font-family: 'Dreamscape', 'Noto Sans TC', sans-serif !important; font-weight: 400 !important; font-synthesis: none; }
html[data-tone="lab"] .nav-wordmark em { font-family: 'IBM Plex Mono', monospace !important; }
html[data-tone="lab"] .tm-h1-zh { font-family: 'Noto Sans TC', sans-serif !important; }

/* ── 標題進場（js/heading-motion.js）：字母從掃描線撐開 ── */
.hm .hm-wd { display: inline-block; white-space: nowrap; }
.hm .hm-l { display: inline-block; will-change: opacity, filter; }
.hm.hm-done .hm-l { will-change: auto; }
.nav-wordmark .x.hm-x { animation: hmX 1.1s cubic-bezier(.2,.7,.2,1); }
@keyframes hmX { 0% { filter: drop-shadow(0 0 0 rgba(151,254,237,0)); } 25% { filter: drop-shadow(0 0 10px rgba(151,254,237,.9)); } 100% { filter: drop-shadow(0 0 0 rgba(151,254,237,0)); } }
@media (prefers-reduced-motion: reduce) { .nav-wordmark .x.hm-x { animation: none; } }

/* ══ ADX 形象整合 ══════════════════════════════════════════
   標誌語彙：實心 D、鏤空 A、一道訊號青光縫（#97feed）。
   全站只借三樣東西：D 形的小標記、橫向光縫掃描線、等高線掃描背景。 */

/* 導覽列標誌 */
html[data-tone="lab"] .nav-logo { gap: 11px; }
html[data-tone="lab"] .nav-logo-mark { display: block; width: 21px; height: 22px; border: 0; border-radius: 0; overflow: visible; color: #fff; }
html[data-tone="lab"] .nav-logo-mark svg { border-radius: 0; overflow: visible; }
html[data-tone="lab"] .nav-logo-mark .adx-slit { transition: filter .3s ease; }
html[data-tone="lab"] .nav-logo:hover .nav-logo-mark { transform: none; }
html[data-tone="lab"] .nav-logo:hover .nav-logo-mark .adx-slit { filter: drop-shadow(0 0 6px #97feed); }

/* 段落小標前的記號：由方框改成迷你 D（右側半圓、中間一道青色光縫） */
html[data-skin="b"][data-tone="lab"] .sec-label::before {
  width: 8px; height: 10px; border: 0; border-radius: 0 5px 5px 0;
  background: linear-gradient(rgba(255,255,255,.78) 0 42%, #97feed 42% 60%, rgba(255,255,255,.78) 60%);
}

/* 子頁標題區：GetLayers 等高線場景（js/contour-b.js）＋ 一道定期掃過的光縫 */
html[data-tone="lab"] .page-hero { overflow: hidden; }
html[data-tone="lab"] .page-hero .wrap { position: relative; z-index: 1; }
html[data-tone="lab"] .page-hero .hero-contour {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .5;
  -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 64%), linear-gradient(transparent 4%, #000 30%, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 18%, #000 64%), linear-gradient(transparent 4%, #000 30%, #000 70%, transparent 100%);
  mask-composite: intersect;
}
html[data-skin="b"][data-tone="lab"] .page-hero::before {
  content: ''; position: absolute; z-index: 2; left: 0; bottom: -1px; width: 220px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #97feed 70%, rgba(151,254,237,0));
  opacity: 0; animation: adx-scan 9s cubic-bezier(.16,1,.3,1) .6s infinite;
}
@keyframes adx-scan {
  0% { translate: -240px 0; opacity: 0; }
  4% { opacity: 1; }
  30% { translate: calc(100vw + 20px) 0; opacity: 1; }
  31%, 100% { translate: calc(100vw + 20px) 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-skin="b"][data-tone="lab"] .page-hero::before { animation: none; }
}

/* 開場序幕：ADX 標誌 → 光縫拉成掃描線 → 字標（時間由 scan-b.js 控制） */
.scan-veil .si-emb { position: absolute; left: 50%; top: var(--si-cy, 50%); width: var(--si-e, 140px); height: var(--si-e, 140px);
  transform: translate(-50%, -50%); opacity: 0; will-change: opacity, transform, filter; }
.scan-veil .si-emb svg { display: block; }
.scan-veil .si-beam { position: absolute; left: 50%; top: calc(var(--si-cy, 50%) + var(--si-e, 140px) * 0.015); height: calc(var(--si-e, 140px) * 0.035);
  min-height: 2px; width: 100px; transform: translate(-50%, -50%); opacity: 0; background: #97feed;
  box-shadow: 0 0 12px rgba(151,254,237,.55), 0 0 36px rgba(151,254,237,.25); pointer-events: none; }
/* 開場序幕 v4c：掃描顯影線、HUD 鎖定框 */
.scan-veil .si-emb .si-scanh { position: absolute; left: -8%; right: -8%; top: 0; height: 2px; margin-top: -1px; background: #97feed;
  box-shadow: 0 0 10px #97feed, 0 0 28px rgba(151,254,237,.5); opacity: 0; }
.scan-veil .si-emb { clip-path: inset(0 0 100% 0); }
.scan-veil .si-hud { position: fixed; left: 0; top: 0; width: 0; height: 0; opacity: 0; pointer-events: none; }
.scan-veil .si-hud .c { position: absolute; width: 14px; height: 14px; border: 1.5px solid rgba(151,254,237,.9); transition: border-color .6s ease; }
.scan-veil .si-hud .tl { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.scan-veil .si-hud .tr { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.scan-veil .si-hud .bl { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.scan-veil .si-hud .br { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.scan-veil .si-hud.lock .c { border-color: #fff; }
.scan-veil .si-hud b { position: absolute; font: 500 10px/1 var(--f-mono); letter-spacing: .18em; color: rgba(151,254,237,.85); white-space: nowrap; }
.scan-veil .si-hud .si-tag { left: 0; top: -18px; }
.scan-veil .si-hud .si-coord { right: 0; top: -18px; color: rgba(214,255,248,.55); }
.scan-veil .si-hud.lock .si-tag { color: #fff; }
.scan-veil.clear .si-hud { opacity: 0 !important; transition: opacity .6s ease; }

/* ── 全站動態背景（輕量，純 CSS）──
   1. 一團看不見的「聲納光」沿著網格緩慢漂移，經過的十字點亮成訊號青
   2. 每 14 秒一道淡青掃描線由上往下經過畫面 */
html[data-skin="b"][data-tone="lab"] body::after {
  display: block !important; content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%2397feed' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 160px 160px; background-position: -6px -6px;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent);
  -webkit-mask-size: 70vmax 70vmax; mask-size: 70vmax 70vmax; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  opacity: 1; animation: adx-sonar 38s ease-in-out infinite alternate;
}
@keyframes adx-sonar {
  0%   { -webkit-mask-position: -10% 10%;  mask-position: -10% 10%; }
  33%  { -webkit-mask-position: 60% 90%;   mask-position: 60% 90%; }
  66%  { -webkit-mask-position: 110% 20%;  mask-position: 110% 20%; }
  100% { -webkit-mask-position: 30% 50%;   mask-position: 30% 50%; }
}
html[data-skin="b"][data-tone="lab"]::after {
  content: ''; position: fixed; left: 0; right: 0; top: 0; height: 120px; z-index: 1; pointer-events: none;
  background: linear-gradient(transparent, rgba(151,254,237,.03) 85%, rgba(151,254,237,.26) 99%, transparent);
  translate: 0 -130px; animation: adx-sweep 14s linear 2s infinite;
}
@keyframes adx-sweep {
  0% { translate: 0 -130px; }
  45%, 100% { translate: 0 calc(100vh + 10px); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-skin="b"][data-tone="lab"] body::after { animation: none; -webkit-mask-position: 70% 30%; mask-position: 70% 30%; }
  html[data-skin="b"][data-tone="lab"]::after { display: none; }
}

/* ── 獲獎品牌牆：兩列反向緩慢捲動，滑過暫停；有官方標章圖檔時取代文字標 ── */
.aw-wall { margin: 8px 0 40px; display: grid; gap: 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.aw-row { overflow: hidden; }
.aw-track { display: flex; width: max-content; animation: aw-roll 60s linear infinite; }
.aw-row.rev .aw-track { animation-direction: reverse; animation-duration: 48s; }
.aw-wall:hover .aw-track { animation-play-state: paused; }
.aw-dup { display: flex; }
@keyframes aw-roll { to { transform: translateX(-50%); } }
.aw-tile { position: relative; flex: none; width: 220px; height: 112px; margin-right: 10px; padding: 16px 18px 14px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  border: 1px solid var(--border-1); background: #07090a; transition: border-color .3s, background .3s; }
.aw-tile::before { content: ''; position: absolute; left: 18px; top: 16px; width: 8px; height: 10px; border-radius: 0 5px 5px 0;
  background: linear-gradient(rgba(255,255,255,.7) 0 42%, #97feed 42% 60%, rgba(255,255,255,.7) 60%); }
.aw-tile:hover { border-color: rgba(151,254,237,.45); background: #0a1112; }
/* 競賽標誌一律轉白色剪影；黑底的官方標章（.raw：MUSE、ISARCH）保留原色，用 lighten 讓黑底融進卡片 */
.aw-img { position: absolute; left: 18px; right: 18px; top: 14px; height: 46px; width: calc(100% - 36px); object-fit: contain; object-position: left center; filter: brightness(0) invert(1); opacity: .82; }
.aw-tile:hover .aw-img { opacity: 1; filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(151,254,237,.6)); }
.aw-img.raw, .aw-tile:hover .aw-img.raw { filter: none; mix-blend-mode: lighten; }
.aw-img + .aw-mono { display: none; }
.aw-tile:has(.aw-img)::before { display: none; }
.aw-mono { font: 600 24px/1 'Montserrat', 'Noto Sans TC', sans-serif; letter-spacing: .02em; color: #fff; }
.aw-name { font: 500 11.5px/1.3 'IBM Plex Sans', 'Noto Sans TC', sans-serif; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-meta { font: 500 10px/1 var(--f-mono); letter-spacing: .12em; color: #97feed; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) {
  .aw-track { animation: none; flex-wrap: wrap; width: auto; }
  .aw-dup { display: none; }
}
@media (max-width: 640px) { .aw-tile { width: 180px; height: 100px; } .aw-mono { font-size: 20px; } }

/* ── 設備廠牌跑馬燈 ── */
.br-wall { margin: 4px 0 36px; border-top: 1px solid var(--border-1); border-bottom: 1px solid var(--border-1);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.br-wall:hover .aw-track { animation-play-state: paused; }
.br-track { animation-duration: 70s; }
.br-item { flex: none; display: flex; align-items: center; gap: 10px; height: 76px; padding: 0 34px; border-right: 1px solid var(--border-1); color: rgba(255,255,255,.78); transition: color .3s; }
.br-item:hover { color: #fff; }
.br-ico { width: 22px; height: 22px; flex: none; }
.br-item:hover .br-ico { color: #97feed; }
.br-name { font: 600 17px/1 'Montserrat', 'Noto Sans TC', sans-serif; letter-spacing: .01em; white-space: nowrap; }
.br-cat { font: 500 9.5px/1.2 var(--f-mono); letter-spacing: .14em; color: rgba(151,254,237,.7); text-transform: uppercase; white-space: nowrap; margin-left: 4px; }
/* 廠牌標誌一律轉成白色剪影，深色背景上才看得到；滑過帶青色光暈 */
.br-img { height: 26px; width: auto; max-width: 150px; object-fit: contain; filter: brightness(0) invert(1); opacity: .78; }
.br-item:hover .br-img { opacity: 1; filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(151,254,237,.7)); }
.br-img ~ .br-ico, .br-img ~ .br-name { display: none; }
@media (prefers-reduced-motion: reduce) { .br-track { flex-wrap: wrap; } }
/* 有官方標誌的卡片：卡片加高，標誌區放大 */
.aw-wall .aw-tile { height: 128px; }
.aw-tile:has(.aw-img) .aw-img { top: 16px; height: 56px; }
.br-img { height: 30px; }

/* ── 作品頁研究案例：論文圖與查證數據（2026-12-06） ── */
html[data-skin="b"] .proj-viz { display: flex; flex-direction: column; min-height: 0; background: #000; }
html[data-skin="b"] .proj-viz .proj-hud { position: static; inset: auto; margin: 0; border: 0; border-bottom: 1px solid var(--border-1); border-radius: 0; background: transparent; backdrop-filter: none; padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 6px 22px; }
html[data-skin="b"] .proj-viz .phud-line { margin: 0; }
html[data-skin="b"] .proj-viz .phud-k { min-width: 0; }
html[data-skin="b"] .pv-fig { display: flex; flex-direction: column; flex: 1 1 auto; padding: 16px 18px 18px; gap: 12px; }
html[data-skin="b"] .pv-main { margin: 0; display: flex; flex-direction: column; gap: 10px; }
html[data-skin="b"] .pv-main img { display: block; width: 100%; height: 300px; object-fit: contain; background: #fff; border: 1px solid var(--border-1); }
html[data-skin="b"] .pv-main figcaption { display: flex; flex-direction: column; gap: 4px; }
html[data-skin="b"] .pv-cap { font-size: 12.5px; line-height: 1.55; color: var(--t1); }
html[data-skin="b"] .pv-credit { font: 10px/1.4 var(--f-mono); letter-spacing: .03em; color: var(--t3); }
html[data-skin="b"] .pv-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
html[data-skin="b"] .pv-th { width: 64px; height: 44px; padding: 0; border: 1px solid var(--border-1); background: #fff; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s; }
html[data-skin="b"] .pv-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
html[data-skin="b"] .pv-th:hover { opacity: .85; }
html[data-skin="b"] .pv-th.on { opacity: 1; border-color: var(--a1); box-shadow: 0 0 0 1px var(--a1); }
html[data-skin="b"] .pv-data { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 24px 22px; }
html[data-skin="b"] .pd-title { font: 500 15px/1.4 var(--f-heading); color: var(--t0); }
html[data-skin="b"] .pd-legend { display: flex; gap: 16px; font: 10.5px/1 var(--f-mono); color: var(--t2); letter-spacing: .04em; }
html[data-skin="b"] .pd-key::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 7px; vertical-align: -1px; background: rgba(255,255,255,.35); }
html[data-skin="b"] .pd-key.k1::before { background: var(--a1); }
html[data-skin="b"] .pd-legend:has(.pd-key:only-child) { display: none; }
html[data-skin="b"] .pd-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; }
html[data-skin="b"] .pd-lab { font-size: 12.5px; color: var(--t1); }
html[data-skin="b"] .pd-sig { font-style: normal; color: var(--a1); margin-left: 4px; }
html[data-skin="b"] .pd-bars { display: flex; flex-direction: column; gap: 4px; }
html[data-skin="b"] .pd-bar { display: flex; align-items: center; gap: 8px; height: 14px; }
html[data-skin="b"] .pd-bar i { display: block; height: 100%; background: rgba(255,255,255,.35); }
html[data-skin="b"] .pd-bar.b1 i, html[data-skin="b"] .pd-legend:has(.pd-key:only-child) ~ .pd-row .pd-bar.b0 i { background: var(--a1); }
html[data-skin="b"] .pd-bar span { font: 11px/1 var(--f-mono); color: var(--t1); }
html[data-skin="b"] .pd-note { font: 10.5px/1.6 var(--f-mono); color: var(--t3); letter-spacing: .02em; }
html[data-skin="b"] .pm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border-1); }
html[data-skin="b"] .pm-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--border-1); align-items: baseline; }
html[data-skin="b"] .pm-n { font: 11px/1 var(--f-mono); color: var(--a1); }
html[data-skin="b"] .pm-t { font-size: 13.5px; line-height: 1.55; color: var(--t1); }
html[data-skin="b"] .proj-paper-item .pp-badge { border-color: rgba(151,254,237,.35); color: var(--a1); background: transparent; }
@media (max-width: 768px) { html[data-skin="b"] .pv-main img { height: 220px; } html[data-skin="b"] .pd-row { grid-template-columns: 88px minmax(0, 1fr); } }

/* 開場音效開關：右上角喇叭，預設關閉 */
.scan-veil .si-sound { position: absolute; right: 24px; top: calc(24px + env(safe-area-inset-top)); width: 36px; height: 36px; display: grid; place-items: center;
  padding: 0; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.6); cursor: pointer;
  transition: color .3s ease, border-color .3s ease, opacity .6s ease; }
.scan-veil .si-sound:hover, .scan-veil .si-sound:focus-visible { color: #fff; border-color: rgba(53,194,180,.55); outline: none; }
.scan-veil .si-sound[aria-pressed="true"] { color: #97feed; border-color: rgba(151,254,237,.5); }
.scan-veil .si-sound svg { pointer-events: none; }
.scan-veil.gone .si-sound { opacity: 0; }
