/* kaiweilu.tw 設計系統
   深色為預設（:root），淺色為 [data-theme="light"]。冷調中性灰帶一點綠，單一強調色（墨綠系，與書審 PDF 同源）。
   圓角一律 soft（6／10／14px）；動態只用 transform 與 opacity，並尊重 prefers-reduced-motion。 */

:root {
  color-scheme: dark;
  --bg: #0a0d0c;
  --bg-raised: #101514;
  --bg-hover: #151b19;
  --bg-inset: #0d1110;
  --line: #1d2523;
  --line-strong: #2a3431;
  --fg: #e4eae7;
  --fg-2: #aab4b0;
  --fg-3: #7a8580;
  --accent: #62c08f;
  --accent-hover: #86d4aa;
  --accent-soft: rgb(98 192 143 / .1);
  --accent-line: rgb(98 192 143 / .38);
  --on-accent: #062014;
  --mark: #38a571;         /* 圖表標記（亮度在深色建議帶內） */
  --mark-muted: #65716c;
  --glow: rgb(56 165 113 / .13);
  --shadow-pop: 0 24px 60px -28px rgb(0 0 0 / .7);
  --img-filter: brightness(.94);
  --grain: .04;

  --sans: "Geist", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Consolas, "PingFang TC", "Noto Sans TC", monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 160ms;
  --t: 260ms;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1120px;
  --measure: 720px;
  --head-h: 64px;

  --z-head: 40;
  --z-menu: 45;
  --z-progress: 50;
  --z-grain: 60;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7f6;
  --bg-raised: #ffffff;
  --bg-hover: #edf1ef;
  --bg-inset: #eef1ef;
  --line: #dfe4e1;
  --line-strong: #c8d0cc;
  --fg: #18201d;
  --fg-2: #46514c;
  --fg-3: #66716c;
  --accent: #2f5a45;
  --accent-hover: #244736;
  --accent-soft: rgb(47 90 69 / .07);
  --accent-line: rgb(47 90 69 / .32);
  --on-accent: #ffffff;
  --mark: #2f8a5e;
  --mark-muted: #aab3af;
  --glow: rgb(47 138 94 / .05);
  --shadow-pop: 0 24px 60px -30px rgb(20 40 30 / .35);
  --img-filter: none;
  --grain: 0;
}

/* ── 基礎 ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 20px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 17px; line-height: 1.8; letter-spacing: .015em;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent; overflow-x: clip;
  text-spacing-trim: space-all;  /* 臺灣慣例：標點一律全形置中，不擠壓相鄰標點 */
}
:lang(zh) { text-autospace: normal; }  /* 中英、中數之間自動留 1/8 字寬；原有空格處不重複 */
@media (max-width: 640px) { body { font-size: 16px; } }
body::after { /* 極淡的顆粒，避免深色大面積的色帶；固定層、不攔截事件 */
  content: ""; position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--on-accent); }
a { color: var(--accent); text-decoration: none; }
:is(.prose p, .prose td, .prose ul:not(.doclist) li, .prose ol li, .page-head .dek, .spec dd, figcaption, .contact p, .notfound p) a {
  color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent-line);
  text-decoration-thickness: 1px; text-underline-offset: .22em;
  transition: text-decoration-color var(--t-fast), color var(--t-fast);
}
:is(.prose p, .prose td, .prose ul:not(.doclist) li, .prose ol li, .page-head .dek, .spec dd, figcaption, .contact p, .notfound p) a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); font-size: .86em; letter-spacing: 0; padding: .12em .4em; border-radius: var(--r-sm); background: var(--bg-inset); border: 1px solid var(--line); overflow-wrap: anywhere; }
b, strong { font-weight: 600; color: var(--fg); }
.icon { width: 1em; height: 1em; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: var(--r-sm); background: var(--accent); color: var(--on-accent); font-weight: 500; transition: top var(--t-fast); }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ── 頁首 ─────────────────────────────────────────── */
.head-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 12px; pointer-events: none; }
.site-head {
  position: sticky; top: 0; z-index: var(--z-head); height: var(--head-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color var(--t), background-color var(--t);
  view-transition-name: site-head;
}
.site-head.is-stuck { border-bottom-color: var(--line); }
.site-head .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); margin-right: auto; min-width: 0; }
.brand .mark { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); font-weight: 700; font-size: 15px; letter-spacing: 0; transition: transform var(--t) var(--ease-out); }
.brand:hover .mark { transform: rotate(-6deg) scale(1.04); }
.brand .name { font-weight: 600; font-size: 16px; letter-spacing: .06em; white-space: nowrap; }
.brand .domain { font-family: var(--mono); font-size: 12.5px; color: var(--fg-3); letter-spacing: 0; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { position: relative; padding: 6px 10px; border-radius: var(--r-sm); color: var(--fg-2); font-size: 14.5px; letter-spacing: .04em; white-space: nowrap; transition: color var(--t-fast), background-color var(--t-fast); }
.nav a:hover { color: var(--fg); background: var(--bg-hover); }
.nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -13px; height: 2px; border-radius: 2px; background: var(--accent); }
.nav .lang { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; color: var(--fg-3); }
.head-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line-strong); background: transparent; color: var(--fg-2); font-size: 18px;
  transition: color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease-out);
  touch-action: manipulation;
}
.icon-btn:hover { color: var(--fg); background: var(--bg-hover); border-color: var(--fg-3); }
.icon-btn:active { transform: scale(.94); }
.icon-btn .icon { transition: transform var(--t) var(--ease-out); }
[data-theme-toggle]:hover .icon { transform: rotate(180deg); }
.menu-btn { display: none; }
.menu-btn.icon-btn { width: auto; padding: 0 12px 0 10px; gap: 6px; grid-auto-flow: column; font: 500 14px/1 var(--sans); letter-spacing: .06em; color: var(--fg); }
.menu-btn .icon { font-size: 18px; }
.menu-btn .i-close { display: none; }
html.menu-open .menu-btn .i-open { display: none; }
html.menu-open .menu-btn .i-close { display: block; }
@media (max-width: 920px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .brand .domain { display: none; }
}

/* 閱讀進度（捲動驅動動畫，不支援的瀏覽器不顯示） */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  .progress { display: block; position: fixed; top: calc(var(--head-h) - 1px); left: 0; right: 0; height: 2px; z-index: var(--z-progress); background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); animation: grow-x linear both; animation-timeline: scroll(root block); pointer-events: none; }
}
@keyframes grow-x { to { transform: scaleX(1); } }

/* 行動版選單 */
.menu { position: fixed; inset: var(--head-h) 0 0 0; z-index: var(--z-menu); overflow-y: auto; overscroll-behavior: contain; background: var(--bg); padding: 12px var(--gutter) 40px; opacity: 0; transform: translateY(-8px); transition: opacity var(--t) var(--ease-out), transform var(--t) var(--ease-out); }
.menu[hidden] { display: none; }
html.menu-open, html:has(dialog[open]) { overflow: hidden; }
html.menu-open .menu { opacity: 1; transform: none; }
.menu nav { display: flex; flex-direction: column; }
.menu a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--line); color: var(--fg); font-size: 20px; font-weight: 500; letter-spacing: .06em; opacity: 0; transform: translateY(6px); transition: opacity var(--t) var(--ease-out), transform var(--t) var(--ease-out), color var(--t-fast); }
.menu a small { font-family: var(--mono); font-size: 12px; color: var(--fg-3); font-weight: 400; letter-spacing: 0; }
.menu a[aria-current="page"] { color: var(--accent); }
html.menu-open .menu a { opacity: 1; transform: none; }
html.menu-open .menu a:nth-child(2) { transition-delay: 30ms; }
html.menu-open .menu a:nth-child(3) { transition-delay: 60ms; }
html.menu-open .menu a:nth-child(4) { transition-delay: 90ms; }
html.menu-open .menu a:nth-child(5) { transition-delay: 120ms; }
html.menu-open .menu a:nth-child(6) { transition-delay: 150ms; }
html.menu-open .menu a:nth-child(7) { transition-delay: 180ms; }
html.menu-open .menu a:nth-child(8) { transition-delay: 210ms; }
.menu .menu-foot { margin-top: 28px; color: var(--fg-3); font-size: 14px; }
.menu .menu-foot a { display: inline; padding: 0; border: 0; font-size: 15px; font-weight: 400; letter-spacing: .02em; color: var(--fg-2); }

/* ── 共同元件 ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: var(--r-sm);
  font: 500 15px/1 var(--sans); letter-spacing: .03em; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent; transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease-out);
  touch-action: manipulation;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-hover); border-color: var(--fg-3); }
.btn .icon { font-size: 17px; transition: transform var(--t) var(--ease-out); }
.btn:hover .i-arrow { transform: translateX(3px); }
.btn.done { border-color: var(--accent-line); color: var(--accent); }
.tag { display: inline-block; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; letter-spacing: 0; color: var(--fg-2); padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg-inset); }

/* ── 首頁 ─────────────────────────────────────────── */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 6vw, 80px); align-items: end; padding: clamp(56px, 10vw, 112px) 0 clamp(48px, 7vw, 80px); isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; left: -20%; top: -30%; width: 90%; height: 130%; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.hero .kicker { margin: 0 0 18px; font-family: var(--mono); font-size: 13.5px; letter-spacing: .02em; color: var(--accent); }
.hero h1 { margin: 0; font-size: clamp(46px, 7.2vw, 80px); line-height: 1.04; font-weight: 700; letter-spacing: .04em; }
.hero h1 .en { display: block; margin-top: 16px; font-size: clamp(18px, 1.9vw, 22px); line-height: 1.3; font-weight: 400; letter-spacing: .02em; color: var(--fg-2); }
.hero .role { margin: 22px 0 0; color: var(--fg-2); font-size: 16px; }
.hero .lede { margin: 12px 0 0; max-width: 32em; font-size: clamp(17px, 1.55vw, 19px); line-height: 1.85; color: var(--fg); text-wrap: pretty; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px; }
.hero .actions .text-link { margin-left: 8px; color: var(--fg-2); font-size: 15px; display: inline-flex; align-items: center; gap: 6px; transition: color var(--t-fast); }
.hero .actions .text-link:hover { color: var(--fg); }
.portrait { margin: 0; position: relative; }
.portrait img { width: clamp(168px, 17vw, 216px); height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--line-strong); filter: var(--img-filter); background: var(--bg-raised); }
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .portrait { order: -1; }
  .portrait img { width: 112px; border-radius: var(--r); }
}
/* 首頁進場：依序淡入（不支援動態者直接顯示） */
@media (prefers-reduced-motion: no-preference) {
  .hero > div > *, .hero .portrait { animation: rise .8s var(--ease-out) both; }
  .hero > div > :nth-child(1) { animation-delay: 60ms; }
  .hero > div > :nth-child(2) { animation-delay: 120ms; }
  .hero > div > :nth-child(3) { animation-delay: 190ms; }
  .hero > div > :nth-child(4) { animation-delay: 260ms; }
  .hero > div > :nth-child(5) { animation-delay: 330ms; }
  .hero .portrait { animation-delay: 200ms; animation-name: rise-soft; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes rise-soft { from { opacity: 0; transform: scale(.97); } }

.section { padding: clamp(56px, 8vw, 96px) 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.section-head h2 { margin: 0; font-size: clamp(22px, 2.4vw, 27px); line-height: 1.3; font-weight: 700; letter-spacing: .06em; }
.section-head p { margin: 0; color: var(--fg-3); font-size: 14px; }

/* 代表成果：單一總覽面板（上方專題、下方四格數字，細線分隔；不做卡片格） */
.results { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-raised); overflow: hidden; }
.feature { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 3.2vw, 36px); color: var(--fg); background: linear-gradient(120deg, var(--accent-soft), transparent 60%); transition: background-color var(--t); }
.feature:hover { background-color: var(--bg-hover); }
.t-label { margin: 0; font-size: 13.5px; color: var(--fg-3); letter-spacing: .04em; padding-right: 28px; }
.t-value { margin: 10px 0 0; font-size: clamp(34px, 3.4vw, 42px); line-height: 1; font-weight: 600; letter-spacing: -.01em; }
.t-value .unit { margin-left: 6px; font-size: 15px; font-weight: 400; color: var(--fg-3); letter-spacing: .02em; }
.t-text { margin: 12px 0 0; font-size: 14.5px; line-height: 1.75; color: var(--fg-2); }
.go { position: absolute; top: 20px; right: 20px; color: var(--fg-3); font-size: 16px; transition: color var(--t-fast), transform var(--t) var(--ease-out); }
.feature .go { top: clamp(24px, 3.2vw, 36px); right: clamp(24px, 3.2vw, 36px); }
.feature:hover .go, .kpis a:hover .go { color: var(--accent); transform: translate(2px, -2px); }
.feature .t-value { font-size: clamp(56px, 6.4vw, 76px); margin-top: 14px; }
.feature .t-text { font-size: 15.5px; max-width: 30em; }
.f-side { display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; }
.figs3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.figs3 div { border-top: 1px solid var(--line-strong); padding-top: 10px; }
.figs3 dt { font-size: 13px; color: var(--fg-3); line-height: 1.5; }
.figs3 dd { margin: 0 0 4px; order: -1; font-size: 26px; font-weight: 600; line-height: 1.15; }
.figs3 div { display: flex; flex-direction: column; }
.figs3 dd small { font-size: 13px; font-weight: 400; color: var(--fg-3); margin-left: 4px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.kpis li { margin: 0; border-left: 1px solid var(--line); }
.kpis li:first-child { border-left: 0; }
.kpis a { position: relative; display: flex; flex-direction: column; height: 100%; padding: 22px 24px 24px; color: var(--fg); transition: background-color var(--t); }
.kpis a:hover { background: var(--bg-hover); }
@media (max-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis li:nth-child(odd) { border-left: 0; }
  .kpis li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .kpis { grid-template-columns: minmax(0, 1fr); }
  .kpis li { border-left: 0; }
  .kpis li + li { border-top: 1px solid var(--line); }
  .figs3 { gap: 10px; }
  .figs3 dd { font-size: 22px; }
}

/* 小型堆疊長條：2px 表面間隙、4px 圓角資料端、圖例帶數值 */
.stackbar { margin: 6px 0 0; }
.stackbar .cap { margin: 0 0 10px; font-size: 13.5px; color: var(--fg-2); }
.stackbar .track { display: grid; gap: 2px; height: 14px; }
.stackbar .seg { position: relative; height: 100%; background: var(--mark); transform-origin: 0 50%; }
.stackbar .seg:first-child { border-radius: 2px 0 0 2px; }
.stackbar .seg:last-child { border-radius: 0 4px 4px 0; }
.stackbar .seg.muted { background: var(--mark-muted); }
.stackbar .seg::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); padding: 4px 8px; border-radius: var(--r-sm); background: var(--fg); color: var(--bg); font-size: 12.5px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--t-fast), transform var(--t-fast); }
.stackbar .seg:hover::after { opacity: 1; transform: translate(-50%, 0); }
.stackbar .legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--fg-2); }
.stackbar .legend li { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 0; }
.stackbar .legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--mark); }
.stackbar .legend i.muted { background: var(--mark-muted); }
.stackbar .legend i.none { background: transparent; border: 1px dashed var(--fg-3); }
.stackbar .legend b { font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
.js .stackbar .seg { transform: scaleX(0); transition: transform 1s var(--ease-out) .2s; }
.js .stackbar.in .seg, .js .in .stackbar .seg { transform: none; }


/* 專案索引：分組清單，縮圖＋摘要，整列可點 */
.groups { display: flex; flex-direction: column; gap: 12px; }
.group { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 14px 0 18px; border-top: 1px solid var(--line); }
.group:first-child { border-top: 0; }
.group > h3 { margin: 14px 0 0; font-size: 15px; font-weight: 500; color: var(--fg-2); letter-spacing: .08em; position: sticky; top: calc(var(--head-h) + 16px); align-self: start; }
.group > h3 span { display: block; margin-top: 2px; font-family: var(--mono); font-size: 12px; color: var(--fg-3); letter-spacing: 0; }
.proj-list { display: flex; flex-direction: column; }
.proj {
  position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr) 24px; gap: 22px; align-items: center;
  padding: 14px; margin: 0 -14px; border-radius: var(--r-lg); color: var(--fg);
  transition: background-color var(--t);
}
.proj:hover { background: var(--bg-raised); }
.proj + .proj::before { content: ""; position: absolute; top: 0; left: 14px; right: 14px; height: 1px; background: var(--line); transition: opacity var(--t); }
.proj:hover::before, .proj:hover + .proj::before { opacity: 0; }
.thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-inset); }
.thumb img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter); transition: transform .6s var(--ease-out); }
.proj:hover .thumb img { transform: scale(1.04); }
.thumb.type { display: grid; place-content: center; text-align: center; background:
  linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--bg-inset); }
.thumb.type strong { display: block; font-family: var(--mono); font-size: 26px; font-weight: 500; letter-spacing: -.01em; color: var(--fg); }
.thumb.type span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--fg-3); letter-spacing: .04em; }
.proj-body { min-width: 0; }
.proj-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 4px; font-size: 13px; color: var(--fg-3); }
.proj-meta .code { font-family: var(--mono); color: var(--accent); letter-spacing: 0; }
.proj h4 { margin: 0; font-size: 18px; line-height: 1.45; font-weight: 600; letter-spacing: .03em; text-wrap: balance; }
.proj-sum { margin: 6px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--fg-2); }
.proj .go { color: var(--fg-3); font-size: 18px; transition: color var(--t-fast), transform var(--t) var(--ease-out); }
.proj:hover .go { color: var(--accent); transform: translateX(4px); }
@media (max-width: 860px) {
  .group { grid-template-columns: 1fr; gap: 4px; }
  .group > h3 { position: static; margin: 6px 0 4px; }
  .group > h3 span { display: inline; margin-left: 8px; }
}
@media (max-width: 600px) {
  .proj { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px; margin: 0 -12px; }
  .proj .go { display: none; }
  .proj h4 { font-size: 16px; }
  .proj-sum { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .thumb.type strong { font-size: 17px; }
  .thumb.type span { display: none; }
}

/* 在學歷程：時間軸（支援捲動驅動動畫者，軸線隨捲動描出） */
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 28px; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--line-strong); }
.timeline::after { background: var(--accent); transform-origin: 50% 0; transform: scaleY(0); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .timeline::after { animation: grow-y linear both; animation-timeline: view(); animation-range: entry 40% cover 60%; }
  }
}
@keyframes grow-y { to { transform: scaleY(1); } }
.timeline li { position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; padding: 10px 0; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -27px; top: 19px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--fg-3); z-index: 1; }
.timeline li.now::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline .when { font-family: var(--mono); font-size: 13.5px; color: var(--fg-3); letter-spacing: 0; padding-top: 2px; white-space: nowrap; }
.timeline .what { color: var(--fg); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 0; } }

/* 獎項與技能：左右兩欄 */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.awards { list-style: none; margin: 0; padding: 0; }
.awards li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 12px 0; margin: 0; border-bottom: 1px solid var(--line); }
.awards li:last-child { border-bottom: 0; }
.awards .yr { font-family: var(--mono); font-size: 13.5px; color: var(--fg-3); padding-top: 3px; letter-spacing: 0; }
.awards .aw { color: var(--fg); line-height: 1.7; }
.awards .aw small { display: block; color: var(--fg-3); font-size: 14px; }
.skills { margin: 0; }
.skills div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.skills div:last-child { border-bottom: 0; }
.skills dt { font-size: 14px; color: var(--fg-3); letter-spacing: .06em; margin-bottom: 8px; }
.skills dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }

/* 聯絡 */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; padding: clamp(28px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(135deg, var(--accent-soft), transparent 55%), var(--bg-raised); }
.contact .mail { display: inline-block; font-size: clamp(22px, 3.2vw, 34px); font-weight: 600; letter-spacing: .01em; color: var(--fg); overflow-wrap: anywhere; transition: color var(--t-fast); }
.contact .mail:hover { color: var(--accent); }
.contact p { margin: 10px 0 0; color: var(--fg-2); font-size: 15px; max-width: 46em; }
.contact .actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 720px) { .contact { grid-template-columns: 1fr; } }

/* ── 內頁版面：本文＋右側目錄 ─────────────────────────── */
.page { padding: clamp(28px, 5vw, 56px) 0 0; }
.page-grid { display: grid; grid-template-columns: minmax(0, var(--measure)) 240px; justify-content: center; gap: 72px; align-items: start; }
.page-grid.no-toc { grid-template-columns: minmax(0, var(--measure)); justify-content: center; }
article { min-width: 0; }
@media (max-width: 1080px) { .page-grid { grid-template-columns: minmax(0, 1fr); } .page-grid > article { max-width: var(--measure); margin-inline: auto; width: 100%; } .toc { display: none; } }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 22px; font-size: 13.5px; color: var(--fg-3); }
.crumbs a { color: var(--fg-2); transition: color var(--t-fast); }
.crumbs a:hover { color: var(--fg); }
.crumbs .sep { opacity: .5; }
.crumbs .code { font-family: var(--mono); color: var(--accent); }
.siblings { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-inset); }
.siblings a { padding: 5px 12px; border-radius: 6px; font-size: 13.5px; color: var(--fg-2); letter-spacing: .03em; transition: color var(--t-fast), background-color var(--t-fast); }
.siblings a:hover { color: var(--fg); }
.siblings a[aria-current="page"] { background: var(--bg-raised); color: var(--fg); box-shadow: 0 0 0 1px var(--line-strong); }
.page-head h1 { margin: 0 0 16px; font-size: clamp(30px, 4.2vw, 44px); line-height: 1.22; font-weight: 700; letter-spacing: .03em; text-wrap: balance; }
.page-head .dek { margin: 0; font-size: clamp(17px, 1.5vw, 18.5px); line-height: 1.85; color: var(--fg-2); text-wrap: pretty; }
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 28px 0 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-raised); overflow: hidden; }
.spec div { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.spec div:nth-child(odd) { border-right: 1px solid var(--line); }
.spec div:nth-last-child(-n + 2):nth-child(odd), .spec div:last-child { border-bottom: 0; }
.spec dt { font-size: 12.5px; color: var(--fg-3); letter-spacing: .08em; margin-bottom: 4px; }
.spec dd { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--fg); }
@media (max-width: 640px) { .spec { grid-template-columns: 1fr; } .spec div:nth-child(odd) { border-right: 0; } .spec div:nth-last-child(-n + 2):nth-child(odd) { border-bottom: 1px solid var(--line); } .spec div:last-child { border-bottom: 0; } }
.dossier { margin: 14px 0 0; font-size: 13.5px; color: var(--fg-3); }
.cover { margin: 36px 0 8px; }
.cover img { width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-raised); filter: var(--img-filter); }

/* 右側目錄：章節清單＋滑動指示條；過高時才出現細捲軸 */
.toc {
  position: sticky; top: calc(var(--head-h) + 32px); max-height: calc(100dvh - var(--head-h) - 64px); overflow-y: auto;
  overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  font-size: 13.5px; line-height: 1.55;
}
.toc::-webkit-scrollbar { width: 6px; }
.toc::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.toc::-webkit-scrollbar-track { background: transparent; }
.toc .toc-label { margin: 0 0 10px; font-size: 12.5px; color: var(--fg-3); letter-spacing: .1em; }
.toc .toc-list { position: relative; border-left: 1px solid var(--line); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc .toc-list a { display: block; padding: 6px 0 6px 16px; color: var(--fg-3); text-wrap: pretty; transition: color var(--t-fast); }
.toc .toc-list a:hover { color: var(--fg); }
.toc .toc-list a.active { color: var(--fg); }
.toc .ind { position: absolute; left: -1px; top: 0; width: 2px; height: 0; border-radius: 2px; background: var(--accent); transition: transform var(--t) var(--ease-out), height var(--t) var(--ease-out); }
.toc .toc-top { display: flex; align-items: center; gap: 6px; margin-top: 14px; padding: 12px 0 2px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 13px; transition: color var(--t-fast); }
.toc .toc-top:hover { color: var(--fg); }
.toc-mobile { display: none; margin: 24px 0 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-raised); }
.toc-mobile summary { cursor: pointer; padding: 12px 16px; font-size: 14.5px; color: var(--fg-2); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary .icon { transition: transform var(--t) var(--ease-out); }
.toc-mobile[open] summary .icon { transform: rotate(90deg); }
.toc-mobile ol { margin: 0; padding: 0 16px 12px 36px; font-size: 15px; }
.toc-mobile li { margin: 0; padding: 4px 0; }
.toc-mobile a { color: var(--fg-2); }
@media (max-width: 1080px) { .toc-mobile { display: block; } }

/* ── 本文排版 ─────────────────────────────────────── */
.prose { margin-top: 8px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 64px 0 16px; padding-top: 22px; border-top: 1px solid var(--line); font-size: clamp(23px, 2.3vw, 27px); line-height: 1.35; font-weight: 700; letter-spacing: .05em; text-wrap: balance; }
.prose h3 { margin: 32px 0 10px; font-size: 18.5px; line-height: 1.45; font-weight: 600; letter-spacing: .04em; }
.prose p { margin: 0 0 18px; text-wrap: pretty; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 1.3em; }
.prose li { margin: 0 0 8px; padding-left: .3em; }
.prose ul > li::marker { content: "▪  "; color: var(--accent); font-size: .8em; }
.prose ol > li::marker { font-family: var(--mono); font-size: .88em; color: var(--accent); }
.prose p.labeled b:first-child { display: inline-block; margin-right: .7em; color: var(--accent); font-weight: 600; }
.prose aside.note { margin: 24px 0; padding: 14px 18px; border-left: 2px solid var(--accent); border-radius: 0 var(--r) var(--r) 0; background: var(--accent-soft); font-size: 15.5px; line-height: 1.75; }

/* 表格：桌機為一般表格，窄螢幕改為逐列卡片（每格附欄名） */
.tablewrap { margin: 8px 0 26px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-raised); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.6; }
th, td { padding: 11px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tbody tr:last-child > * { border-bottom: 0; }
thead th { font-size: 12.5px; font-weight: 500; color: var(--fg-3); letter-spacing: .06em; background: var(--bg-inset); white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr { transition: background-color var(--t-fast); }
tbody tr:hover { background: var(--bg-hover); }
td.code { font-family: var(--mono); color: var(--accent); white-space: nowrap; }
@media (max-width: 600px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.stack tbody tr:last-child { border-bottom: 0; }
  table.stack td { border: 0; padding: 3px 16px; }
  table.stack td::before { content: attr(data-label); display: block; font-size: 12px; color: var(--fg-3); letter-spacing: .06em; }
  table.stack td.num { text-align: left; }
}

/* 圖與燈箱 */
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 26px 0 32px; align-items: start; }
.figs.one { grid-template-columns: minmax(0, 1fr); }
.figs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .figs, .figs.three { grid-template-columns: minmax(0, 1fr); } }
.figs figure { margin: 0; min-width: 0; }
.figs a { position: relative; display: block; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-raised); cursor: zoom-in; }
.figs img { width: 100%; height: auto; filter: var(--img-filter); transition: transform .5s var(--ease-out); }
.figs a:hover img { transform: scale(1.015); }
.figs a .zoom { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: color-mix(in srgb, var(--bg) 80%, transparent); color: var(--fg); font-size: 16px; opacity: 0; transform: translateY(4px); transition: opacity var(--t-fast), transform var(--t) var(--ease-out); }
.figs a:hover .zoom, .figs a:focus-visible .zoom { opacity: 1; transform: none; }
figcaption { margin-top: 10px; font-size: 13.5px; line-height: 1.65; color: var(--fg-3); }
figure.video { margin: 26px 0 32px; }
figure.video video { width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); background: #000; }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--fg); overflow: hidden; }
.lightbox::backdrop { background: rgb(5 8 7 / .86); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
:root[data-theme="light"] .lightbox::backdrop { background: rgb(240 243 241 / .92); }
.lightbox .lb-stage { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; padding: 64px clamp(12px, 6vw, 96px) 20px; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--r); box-shadow: var(--shadow-pop); background: var(--bg-raised); }
.lightbox .lb-cap { max-width: 64em; margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--fg-2); }
.lightbox .lb-count { font-family: var(--mono); color: var(--fg-3); margin-right: 10px; }
.lightbox .lb-close { position: absolute; top: 14px; right: 14px; }
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: 50%; translate: 0 -50%; }
.lightbox .lb-prev { left: 14px; }
.lightbox .lb-next { right: 14px; }
.lightbox .icon-btn { background: color-mix(in srgb, var(--bg) 70%, transparent); }
@media (max-width: 640px) { .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 14px; translate: none; } .lightbox .lb-stage { padding: 60px 10px 70px; } }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: lb-in var(--t) var(--ease-out); }
  .lightbox[open]::backdrop { animation: fade-in var(--t) var(--ease-out); }
}
@keyframes lb-in { from { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
html.lb-vt .lightbox[open], html.lb-vt .lightbox[open]::backdrop { animation: none; }

/* 上一篇／下一篇 */
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 72px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-raised); color: var(--fg); transition: border-color var(--t), transform var(--t) var(--ease-out), background-color var(--t); }
.pager a:hover { border-color: var(--accent-line); background: var(--bg-hover); transform: translateY(-2px); }
.pager small { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-3); font-size: 13px; }
.pager .code { font-family: var(--mono); color: var(--accent); }
.pager span.t { font-weight: 600; line-height: 1.5; }
.pager .next { text-align: right; align-items: flex-end; grid-column: 2; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: auto; } }

/* 文件頁 */
.doclist { list-style: none; margin: 8px 0 28px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-raised); overflow: hidden; }
.doclist li { margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.doclist li:last-child { border-bottom: 0; }
.doclist a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; color: var(--fg); transition: background-color var(--t-fast); text-decoration: none; }
.doclist a:hover { background: var(--bg-hover); }
.doclist .ft { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); background: var(--accent-soft); color: var(--accent); font-size: 22px; }
.doclist .dt { font-weight: 600; line-height: 1.5; }
.doclist .dd { display: block; margin-top: 2px; font-size: 14px; color: var(--fg-2); line-height: 1.6; }
.doclist .meta { font-family: var(--mono); font-size: 12.5px; color: var(--fg-3); white-space: nowrap; }
@media (max-width: 560px) { .doclist a { grid-template-columns: 40px minmax(0, 1fr); } .doclist .meta { grid-column: 2; } }

/* 404 */
.notfound { padding: clamp(80px, 16vw, 160px) 0; }
.notfound .code404 { font-family: var(--mono); font-size: clamp(64px, 12vw, 128px); line-height: 1; color: var(--accent); margin: 0 0 16px; letter-spacing: -.02em; }
.notfound p { color: var(--fg-2); }

/* 頁尾 */
.site-foot { margin-top: clamp(80px, 10vw, 128px); border-top: 1px solid var(--line); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding: 28px 0 44px; font-size: 13.5px; color: var(--fg-3); }
.site-foot p { margin: 0; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-foot a { color: var(--fg-2); transition: color var(--t-fast); }
.site-foot a:hover { color: var(--fg); }

/* ── 捲動顯現（需 JS；未載入 JS 時內容照常顯示） ───────── */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); transition-delay: calc(var(--i, 0) * 50ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }
}

/* ── 頁面轉場：跨文件 View Transitions（漸進增強） ───────── */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root) { animation: 200ms var(--ease-in-out) both vt-out; }
::view-transition-new(root) { animation: 420ms var(--ease-out) 60ms both vt-in; }
/* 不支援跨文件轉場的瀏覽器（Firefox）：每頁載入時主內容淡入，判定在第一次繪製前完成 */
@media (prefers-reduced-motion: no-preference) { html.no-vt main { animation: vt-in 420ms var(--ease-out) both; } }
::view-transition-group(site-head) { animation: none; }
::view-transition-old(site-head), ::view-transition-new(site-head) { animation: none; }
::view-transition-group(*) { animation-duration: 420ms; animation-timing-function: var(--ease-out); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }
html.theme-vt * { view-transition-name: none !important; }
html.theme-vt::view-transition-old(root), html.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-vt::view-transition-old(root) { z-index: 1; }
html.theme-vt::view-transition-new(root) { z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ── 列印：一律淺色、去掉導覽 ───────────────────────── */
@media print {
  :root { color-scheme: light; --bg: #fff; --bg-raised: #fff; --bg-inset: #f3f3f3; --fg: #111; --fg-2: #333; --fg-3: #555; --line: #ccc; --line-strong: #999; --accent: #2f5a45; --img-filter: none; --grain: 0; }
  .site-head, .menu, .toc, .toc-mobile, .pager, .site-foot nav, .progress, .skip, .hero .actions, .contact .actions { display: none !important; }
  body { font-size: 11pt; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .page-grid { display: block; }
  a { color: inherit; }
}
.hero h1:lang(en) { letter-spacing: -.015em; }

/* ── 自訂游標：圓點＋外圈（僅滑鼠裝置、未要求減少動態；由 JS 加上 html.has-cursor 才啟用） ─── */
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cursor { position: fixed; inset: 0 auto auto 0; z-index: 2147483000; pointer-events: none; }
.cursor .c-pos { position: fixed; left: 0; top: 0; will-change: transform; }
.cursor .c-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--accent); transition: opacity var(--t-fast), transform var(--t) var(--ease-out); }
.cursor .c-ring { display: grid; place-items: center; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  border: 1.5px solid var(--cursor-ring); box-shadow: 0 0 0 1px var(--cursor-halo);
  transition: transform .32s var(--ease-out), opacity var(--t-fast), border-color var(--t-fast), background-color var(--t-fast), border-radius .32s var(--ease-out), width .32s var(--ease-out), height .32s var(--ease-out), margin .32s var(--ease-out); }
.cursor .c-label { font: 500 11px/1 var(--sans); letter-spacing: .08em; color: var(--on-accent); opacity: 0; transform: scale(.8); transition: opacity var(--t-fast), transform var(--t) var(--ease-out); white-space: nowrap; }
:root { --cursor-ring: rgb(228 234 231 / .55); --cursor-halo: rgb(0 0 0 / .18); }
:root[data-theme="light"] { --cursor-ring: rgb(24 32 29 / .5); --cursor-halo: rgb(255 255 255 / .35); }
.cursor.is-link .c-ring { transform: scale(1.45); border-color: var(--accent); background: var(--accent-soft); }
.cursor.is-link .c-dot { transform: scale(0); }
.cursor.is-zoom .c-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--accent); background: var(--accent); }
.cursor.is-zoom .c-label { opacity: 1; transform: none; }
.cursor.is-zoom .c-dot { transform: scale(0); }
.cursor.is-text .c-ring { width: 2px; height: 22px; margin: -11px 0 0 -1px; border-radius: 1px; border-color: var(--accent); background: var(--accent); box-shadow: none; }
.cursor.is-text .c-dot { transform: scale(0); }
.cursor.is-down .c-ring { transform: scale(.82); }
.cursor.is-link.is-down .c-ring { transform: scale(1.25); }
.cursor.is-hidden .c-ring, .cursor.is-hidden .c-dot { opacity: 0; }
/* 首頁首屏以下的區塊：捲近時才排版與繪製（縮短首次排版，並讓開場與轉場更早就緒） */
.kind-home .section + .section + .section { content-visibility: auto; contain-intrinsic-size: auto 900px; }
@media (forced-colors: active) { html.has-cursor, html.has-cursor * { cursor: auto !important; } .cursor { display: none; } }

/* 產生 */
.vt-cover-apksec-field{view-transition-name:cover-apksec-field}::view-transition-old(cover-apksec-field),::view-transition-new(cover-apksec-field){width:100%;height:100%;object-fit:cover;overflow:clip}
.vt-cover-apksec{view-transition-name:cover-apksec}::view-transition-old(cover-apksec),::view-transition-new(cover-apksec){width:100%;height:100%;object-fit:cover;overflow:clip}
.vt-cover-crocboss{view-transition-name:cover-crocboss}::view-transition-old(cover-crocboss),::view-transition-new(cover-crocboss){width:100%;height:100%;object-fit:cover;overflow:clip}
.vt-cover-csrsr{view-transition-name:cover-csrsr}::view-transition-old(cover-csrsr),::view-transition-new(cover-csrsr){width:100%;height:100%;object-fit:cover;overflow:clip}
.vt-cover-dashboard{view-transition-name:cover-dashboard}::view-transition-old(cover-dashboard),::view-transition-new(cover-dashboard){width:100%;height:100%;object-fit:cover;overflow:clip}
.vt-cover-drill{view-transition-name:cover-drill}::view-transition-old(cover-drill),::view-transition-new(cover-drill){width:100%;height:100%;object-fit:cover;overflow:clip}
.vt-cover-mahjong{view-transition-name:cover-mahjong}::view-transition-old(cover-mahjong),::view-transition-new(cover-mahjong){width:100%;height:100%;object-fit:cover;overflow:clip}
.vt-cover-service{view-transition-name:cover-service}::view-transition-old(cover-service),::view-transition-new(cover-service){width:100%;height:100%;object-fit:cover;overflow:clip}
.vt-cover-tile-gateway{view-transition-name:cover-tile-gateway}::view-transition-old(cover-tile-gateway),::view-transition-new(cover-tile-gateway){width:100%;height:100%;object-fit:cover;overflow:clip}
.vt-cover-works{view-transition-name:cover-works}::view-transition-old(cover-works),::view-transition-new(cover-works){width:100%;height:100%;object-fit:cover;overflow:clip}
.sb-1 .track{grid-template-columns:322fr 262fr}
