/* ── Tokens（深色・魔幻） ─────────────────────────────── */
:root {
  --bg: #07080D;
  --bg-2: #0C0D15;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);

  --ink: #F1F2F8;
  --ink-2: #C9CCD8;
  --ink-3: #A0A5B6;
  --ink-4: #80869A;

  /* 類別螢光色（highlight）：只用在圓點、縮圖光暈、效益數字與強調字 */
  --c-quality: #46E3C9;
  --c-automation: #A594FF;
  --c-dashboard: #FFB65C;
  --c-pink: #FF7DB8;
  --iris: linear-gradient(100deg, #7DF3FF 0%, #A594FF 38%, #FF7DB8 68%, #FFB65C 100%);

  --radius: 18px;
  --font: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
  --font-num: "Inter", "Noto Sans TC", system-ui, sans-serif;
  --gutter: 16px;
  --maxw: 1200px;
}

/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; min-height: 100vh;
  color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 600px at 8% 55%, rgba(120, 90, 255, .10), transparent 70%),
    radial-gradient(800px 600px at 95% 80%, rgba(40, 210, 190, .07), transparent 70%),
    radial-gradient(700px 500px at 60% 120%, rgba(255, 125, 184, .06), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: var(--c-quality); }
:focus-visible { outline: 2px solid var(--c-automation); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(165, 148, 255, .35); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }
.en { font-family: var(--font-num); font-weight: 500; color: var(--ink-4); font-size: .72em; letter-spacing: .02em; }

/* 全頁顆粒：讓深色不死板 */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .8s steps(5) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-2%)} 75%{transform:translate(-1%,3%)} 100%{transform:translate(0,0)} }

/* ── Top bar（壓在主視覺上，捲動後變玻璃） ───────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
}
.topbar.is-scrolled {
  background: rgba(7, 8, 13, .72); border-bottom-color: var(--line);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: #0B0C14; color: #fff; font: 700 12px/1 var(--font-num); letter-spacing: .02em;
}
.brand-mark::before {
  content: ""; position: absolute; inset: -1px; border-radius: 10px; padding: 1.5px; background: var(--iris);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.brand-text { font: 600 15px/1.2 var(--font-num); }
.brand-sub { color: var(--ink-3); font-weight: 500; margin-left: 6px; }
.topbar-meta { font: 500 12px/1 var(--font-num); color: var(--ink-3); white-space: nowrap; letter-spacing: .04em; }
@media (max-width: 520px) { .brand-sub { display: none; } }

/* ── Hero（WebGL 魔幻主視覺） ─────────────────────────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: 104px 0 96px;
  background: radial-gradient(120% 90% at 70% 40%, #1B1830 0%, #07070C 70%);
}
.hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity 1.6s ease; }
.hero.no-gl .hero-gl { display: none; }
.hero-veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(64% 58% at 50% 46%, rgba(5, 6, 10, .66), transparent 80%),
    linear-gradient(to bottom, rgba(7, 8, 13, .25), transparent 25%, transparent 70%, var(--bg) 100%);
}
.hero-inner { text-align: center; }
.kicker {
  margin: 0; font: 600 12px/1 var(--font-num); letter-spacing: .32em; color: rgba(241, 242, 248, .7);
  animation: enter .7s cubic-bezier(.2, .7, .2, 1) both;
}
.hero-title {
  margin: 20px auto 0; max-width: 15em;
  font-size: clamp(34px, 5.2vw, 68px); line-height: 1.18; font-weight: 900; letter-spacing: .005em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .5);
  animation: enter .7s .08s cubic-bezier(.2, .7, .2, 1) both;
}
.hero-title em {
  font-style: normal; background: var(--iris); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 4px 30px rgba(165, 148, 255, .35));
  animation: iris 8s ease-in-out infinite alternate;
}
@keyframes iris { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.hero-intro {
  margin: 18px auto 0; max-width: 34em; color: rgba(241, 242, 248, .82);
  font-size: clamp(15px, 1.3vw, 18px); font-weight: 500; text-shadow: 0 2px 18px rgba(0, 0, 0, .6);
  animation: enter .7s .16s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes enter { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

.kpis {
  display: flex; justify-content: center; margin: clamp(36px, 6vh, 56px) 0 0; padding: 0;
  animation: enter .7s .24s cubic-bezier(.2, .7, .2, 1) both;
}
.kpi { display: flex; flex-direction: column; align-items: center; padding: 4px clamp(20px, 3.4vw, 48px); }
.kpi + .kpi { border-left: 1px solid rgba(241, 242, 248, .16); }
.kpi dd {
  order: 1; margin: 0; font: 700 clamp(34px, 4vw, 52px)/1 var(--font-num); letter-spacing: -.02em;
  background: var(--iris); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 22px rgba(165, 148, 255, .3));
}
.kpi dd small { font-size: .4em; font-weight: 700; margin-left: 4px; letter-spacing: 0; font-family: var(--font); }
.kpi dt { order: 2; margin-top: 10px; font-size: 13px; font-weight: 600; color: rgba(241, 242, 248, .82); letter-spacing: .04em; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.kpi dt .en { display: block; margin-top: 2px; font-size: 12px; color: rgba(241, 242, 248, .5); }
.kpi-note { display: none; }

.hero-down {
  position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px;
  border: 1.5px solid rgba(241, 242, 248, .35); border-radius: 14px;
}
.hero-down span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: rgba(241, 242, 248, .8); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 640px) {
  .hero { padding: 96px 0 88px; }
  .kpis { display: grid; grid-template-columns: repeat(3, 1fr); }
  .kpi { padding: 4px 6px; }
  .kpi dd { font-size: 30px; }
  .kpi dd small { display: block; margin: 6px 0 0; font-size: 12px; text-align: center; }
  .kpi dt { font-size: 12px; text-align: center; line-height: 1.45; }
  .kpi dt .en { display: none; }
}

/* ── 專案星圖（深空滿版） ─────────────────────────────── */
.constellation {
  position: relative; isolation: isolate; overflow: hidden; scroll-margin-top: 0;
  height: clamp(560px, 86vh, 820px); margin-top: 8px; background: #05060A;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.constellation.no-gl { background: radial-gradient(60% 60% at 50% 55%, #1A1440 0%, #05060A 75%); }
.map-fx, .map-graph { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-fx { z-index: -1; }
.map-graph { cursor: grab; touch-action: pan-y; }
.map-graph:active { cursor: grabbing; }
.map-head { position: absolute; left: 0; right: 0; top: clamp(48px, 9vh, 84px); text-align: center; pointer-events: none; }
.map-title {
  margin: 12px 0 0; font-size: clamp(26px, 3vw, 38px); font-weight: 900; letter-spacing: .04em;
  background: linear-gradient(180deg, #FFFFFF 30%, rgba(200, 205, 240, .55)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.map-sub { margin: 8px 0 0; font-size: 14px; color: rgba(225, 228, 245, .6); letter-spacing: .04em; }
.map-foot {
  position: absolute; left: 0; right: 0; bottom: clamp(44px, 7vh, 64px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none;
}
.map-hint { font: 500 12px/1 var(--font-num); letter-spacing: .14em; color: rgba(225, 228, 245, .45); }
.graph-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: rgba(225, 228, 245, .62); letter-spacing: .06em; }
.graph-legend span { display: inline-flex; align-items: center; gap: 8px; }
.graph-legend i {
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 35%, transparent), 0 0 12px 2px var(--c);
}
.graph-tip {
  position: absolute; left: 0; top: 0; z-index: 3; width: 268px; max-width: calc(100% - 24px);
  padding: 15px 16px 14px; border-radius: 14px; pointer-events: auto;
  background: linear-gradient(180deg, rgba(14, 15, 26, .78), rgba(8, 9, 16, .86));
  border: 1px solid color-mix(in srgb, var(--c, #fff) 28%, rgba(255, 255, 255, .08));
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 0 40px -8px color-mix(in srgb, var(--c, #fff) 35%, transparent), 0 24px 60px rgba(0, 0, 0, .6);
}
.graph-tip b { display: block; font-size: 15px; font-weight: 800; color: #fff; }
.graph-tip .en { display: block; margin-top: 2px; font-size: 12px; color: color-mix(in srgb, var(--c, #fff) 70%, #9AA0B2); }
.graph-tip p { margin: 9px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.graph-tip small { display: block; margin-top: 9px; font-size: 12px; color: var(--ink-4); line-height: 1.55; }
.graph-tip button {
  margin-top: 11px; height: 30px; padding: 0 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--c, #fff) 55%, transparent);
  background: color-mix(in srgb, var(--c, #fff) 16%, transparent); color: #fff; font-size: 12px; font-weight: 700;
}
.graph-tip button:hover { background: color-mix(in srgb, var(--c, #fff) 30%, transparent); }
.constellation.is-brain { height: clamp(640px, 94vh, 920px); }
.constellation.is-brain .map-graph { cursor: default; touch-action: auto; }
.constellation.is-brain .map-head { top: clamp(36px, 6vh, 56px); }
.constellation.is-brain .map-sub { display: none; }
@media (max-width: 640px) {
  .constellation { height: 600px; }
  .constellation.is-brain { height: 560px; }
  .map-foot { flex-direction: column; align-items: flex-start; }
  .graph-tip { width: 236px; }
}

/* 3D 專案星球 */
.constellation.is-globe { height: clamp(660px, 96vh, 940px); }
.constellation.is-globe .map-graph { cursor: grab; touch-action: pan-y; }
/* 背景輪播（與首頁主視覺同款）：兩層交叉淡入；暗幕讓前景星線更突出 */
.constellation .map-fx { transition: opacity 1.6s ease; }
.constellation .map-fx + .map-fx { opacity: 0; }
.map-veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 65% at 50% 55%, rgba(5, 6, 10, .42), rgba(5, 6, 10, .18) 70%, rgba(5, 6, 10, .5));
}
.constellation.is-globe .map-graph { z-index: 1; }
.map-title { filter: drop-shadow(0 4px 24px rgba(0, 0, 0, .7)); }
.map-sub, .map-hint, .graph-legend { text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.constellation.is-globe .map-head { top: clamp(36px, 6vh, 60px); }
.constellation:not(.is-globe) .map-ctrl { display: none; }
.map-tools { display: flex; align-items: center; gap: 14px; pointer-events: auto; }
.map-hint { transition: color .3s, text-shadow .3s; }
.map-hint.is-nudge { color: #fff; text-shadow: 0 0 18px rgba(165, 148, 255, .9); }
.map-ctrl { display: flex; gap: 6px; }
.map-ctrl button {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(12, 13, 22, .6); color: rgba(230, 233, 245, .78);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: color .15s, border-color .15s, background .15s;
}
.map-ctrl button:hover { color: #fff; border-color: rgba(255, 255, 255, .3); background: rgba(30, 32, 50, .7); }
.map-ctrl button[aria-pressed="true"] { color: #fff; border-color: rgba(165, 148, 255, .55); box-shadow: 0 0 16px -4px rgba(165, 148, 255, .7); }
.globe-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.gl-label {
  position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px 0 8px;
  border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 32%, transparent); background: rgba(8, 9, 16, .58);
  color: #EEF0F8; font: 500 12px/1 "Noto Sans TC", Inter, sans-serif; white-space: nowrap; cursor: pointer; opacity: 0;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); will-change: transform, opacity;
  transition: opacity .25s, background .2s, border-color .2s, box-shadow .2s;
}
.gl-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.gl-label.is-hub { font: 700 11px/1 Inter, sans-serif; letter-spacing: .16em; color: #DDE4FF; background: rgba(8, 9, 16, .4); }
.gl-label.is-featured { font-weight: 700; font-size: 13px; height: 26px; }
.gl-label:hover, .gl-label.is-active {
  background: color-mix(in srgb, var(--c) 20%, rgba(8, 9, 16, .75)); border-color: var(--c);
  box-shadow: 0 0 22px -6px var(--c);
}
@media (max-width: 640px) {
  .constellation.is-globe { height: 620px; }
  .map-tools { width: 100%; justify-content: space-between; }
  .map-hint { font-size: 12px; letter-spacing: .04em; }
}

/* 從星圖點過來的卡片：閃一下類別色光 */
.card.flash { animation: flash 1.8s ease-out; }
@keyframes flash {
  0%, 30% { box-shadow: 0 0 0 2px var(--tint), 0 0 60px color-mix(in srgb, var(--tint) 60%, transparent); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ── Work / filters ───────────────────────────────────── */
.work { padding-top: 40px; padding-bottom: 88px; scroll-margin-top: 64px; }
.work-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; margin-bottom: 24px; }
.section-title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: .01em; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  font-size: 14px; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #0A0B12; box-shadow: 0 0 24px rgba(165, 148, 255, .25); }
.chip[aria-pressed="true"] .en, .chip[aria-pressed="true"] .chip-count { color: rgba(10, 11, 18, .6); }
.chip .en { font-size: 12px; }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 10px currentColor; }
.chip-count { font: 600 12px/1 var(--font-num); color: var(--ink-4); }

/* ── Grid & cards ─────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .grid { grid-template-columns: 1fr; gap: 16px; } }

.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .018));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s, box-shadow .25s, transform .25s;
  animation: rise .5s both;
}
.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--tint) 45%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--tint) 20%, transparent), 0 24px 60px -24px color-mix(in srgb, var(--tint) 55%, transparent);
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 旗艦卡：橫跨整列 */
.card.is-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.card.is-featured .media { aspect-ratio: auto; min-height: 100%; }
.card.is-featured .body { padding: 32px 34px; justify-content: center; }
.card.is-featured .title { font-size: 26px; }
.card.is-featured .metric-value { font-size: 32px; }
@media (max-width: 860px) {
  .card.is-featured { display: flex; }
  .card.is-featured .media { aspect-ratio: 16 / 9; min-height: 0; }
  .card.is-featured .body { padding: 22px; }
  .card.is-featured .title { font-size: 21px; }
}

/* 媒體區：深色底＋類別色光暈緩慢漂移 */
.media {
  position: relative; aspect-ratio: 16 / 9; width: 100%; display: block; overflow: hidden;
  border: 0; padding: 0; margin: 0; text-align: left; background: #0A0B13; isolation: isolate;
}
button.media { cursor: pointer; }
.media img, .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.media.has-image::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(7, 8, 13, .7), transparent);
}
.ph { position: absolute; inset: 0; display: grid; place-items: center; }
.ph::before, .ph::after {
  content: ""; position: absolute; width: 42%; aspect-ratio: 1; border-radius: 50%; filter: blur(38px); z-index: -1;
  animation: drift 14s ease-in-out infinite alternate;
}
.ph::before { left: 8%; top: -12%; background: color-mix(in srgb, var(--tint) 42%, transparent); }
.ph::after { right: 4%; bottom: -24%; background: color-mix(in srgb, var(--tint2, var(--c-automation)) 30%, transparent); animation-delay: -7s; }
/* 細光環：讓縮圖有「魔法陣」的質感 */
.ph-ring {
  position: absolute; width: 150px; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 0deg, transparent 0 20%, color-mix(in srgb, var(--tint) 70%, transparent) 35%, transparent 50% 70%, color-mix(in srgb, var(--tint2, var(--c-pink)) 60%, transparent) 85%, transparent);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  mask: radial-gradient(closest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  opacity: .7; animation: spin 18s linear infinite;
}
.ph-ring.r2 { width: 220px; opacity: .3; animation-duration: 30s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(14%, 10%) scale(1.15); } }
.ph-grid {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.2px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 72%);
}
.ph-icon {
  position: relative; width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center;
  color: var(--tint); background: rgba(10, 11, 19, .55); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 32px color-mix(in srgb, var(--tint) 35%, transparent), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.ph-icon svg { width: 30px; height: 30px; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--tint) 70%, transparent)); }

.play {
  position: absolute; left: 16px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 15px 0 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .95); color: #0A0B12; font-size: 13px; font-weight: 600;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35); transition: transform .15s;
}
.play-ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: #0A0B12; }
.play-ico svg { width: 10px; height: 10px; margin-left: 1px; }
.play time { font-family: var(--font-num); color: #5B6070; font-size: 12px; }
button.media:hover .play { transform: translateY(-1px); }
.soon {
  position: absolute; left: 14px; bottom: 12px; z-index: 2; font: 500 12px/1 var(--font-num); letter-spacing: .06em;
  color: rgba(241, 242, 248, .62); background: rgba(10, 11, 19, .55); border: 1px solid var(--line);
  padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* 文字區 */
.body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; font: 500 12px/1.4 var(--font-num); color: var(--ink-4); }
.cat { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-3); }
.cat-dot { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 10px currentColor; }
.meta-sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.title { margin: 0; font-size: 19px; line-height: 1.4; font-weight: 800; letter-spacing: .01em; }
.title .en { display: block; font-size: 13px; margin-top: 3px; font-weight: 500; }

.ps { margin: 14px 0 0; display: grid; gap: 8px; }
.ps-row { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: baseline; }
.ps-row dt { font-size: 12px; font-weight: 700; color: var(--ink-4); letter-spacing: .04em; }
.ps-row dd { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.ps-row.is-pain dd { color: var(--ink-3); }
.ps-row dd em { font-style: normal; font-weight: 700; color: var(--tint); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font: 500 12px/1 var(--font-num); color: var(--ink-3); padding: 6px 9px; border-radius: 7px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); }

.body .spacer { flex: 1; }
.metrics-wrap { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.metrics { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 14px; }
.metric-value {
  font: 700 clamp(20px, 1.85vw, 25px)/1.1 var(--font-num); letter-spacing: -.015em; color: var(--tint); white-space: nowrap;
  text-shadow: 0 0 22px color-mix(in srgb, var(--tint) 45%, transparent);
}
.metric-value small { font-size: .52em; font-weight: 700; margin-left: 2px; font-family: var(--font); letter-spacing: 0; }
.metric-label { margin-top: 5px; font-size: 12px; line-height: 1.45; color: var(--ink-3); }

/* ── Footer ───────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.footer-inner { padding-top: 28px; padding-bottom: 40px; font-size: 13px; color: var(--ink-3); }
.footer-inner p { margin: 0; }
.footer-sub { margin-top: 6px !important; color: var(--ink-4); font-size: 12px; }
.empty { color: var(--ink-4); text-align: center; padding: 48px 0; }

/* ── Player dialog ────────────────────────────────────── */
.player {
  width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line-2);
  border-radius: var(--radius); background: #0B0C14; color: #fff; overflow: hidden; box-shadow: 0 30px 100px rgba(0, 0, 0, .6);
}
.player::backdrop { background: rgba(4, 5, 9, .78); backdrop-filter: blur(6px); }
.player[open] { animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.player-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 16px 14px 22px; }
.player-kicker { margin: 0; font-size: 12px; color: rgba(255, 255, 255, .6); }
.player-title { margin: 2px 0 0; font-size: 17px; font-weight: 700; }
.player-close { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.player-close:hover { background: rgba(255, 255, 255, .16); }
.player-stage { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player-stage video, .player-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .ph::before, .ph::after, .ph-ring, .hero-title em, .hero-down span { animation: none; }
  .card, .kicker, .hero-title, .hero-intro, .kpis { animation: none; }
}
