/* 全站共用外殼：色票（深淺色）、基本樣式、頁首、語言選單、頁尾。各頁自己的 <style> 放在它後面，可以覆蓋 */
:root {
    --paper: #f5f2eb; --ink: #1c1a15; --ink-2: #5b574d; --ink-3: #68635a; --line: rgba(28, 26, 21, .09); --hover: rgba(28, 26, 21, .045);
    --mint: #00704c; --warn: #8f5400; --stage: #1c1b16;
    --font: Nunito, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif;
  }
@media (prefers-color-scheme: dark) {
    :root {
      --paper: #100f0c; --ink: #f2efe7; --ink-2: #b1ac9f; --ink-3: #8a857a; --line: rgba(255, 255, 255, .08); --hover: rgba(255, 255, 255, .045);
      --mint: #2fe3a3; --warn: #f2b441; --stage: #1e1d18;
    }
  }
:lang(zh-Hans) { --font: Nunito, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
* { box-sizing: border-box; }
::selection { background: #00ec97; color: #0f0e0b; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
html { background: var(--paper); color-scheme: light dark; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* 頁首的回首頁連結＝品牌字樣，跟首頁一樣粗體＋薄荷綠圓點 */
.back { font-size: 13px; font-weight: 800; color: var(--ink); text-decoration: none; }
.back::after { content: ''; display: inline-block; width: 5px; height: 5px; margin-left: 2px; border-radius: 50%; background: var(--mint); }
.back:hover { color: var(--mint); }
.lang { position: relative; }
.lang select { appearance: none; font: 700 13px var(--font); color: var(--ink); background: transparent; border: 0; border-radius: 99px; padding: 7px 30px 7px 14px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.lang select option { background: var(--paper); color: var(--ink); }
.lang::after { content: ''; position: absolute; right: 13px; top: 50%; width: 5px; height: 5px; pointer-events: none; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-75%) rotate(45deg); }
.status { display: inline-flex; align-items: center; gap: 7px; color: var(--mint); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
h1 { margin: 14px 0 12px; font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
:lang(zh-Hant) h1, :lang(zh-Hans) h1 { letter-spacing: 0; word-break: keep-all; }
.lede { margin: 0; max-width: 40em; font-size: 16px; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.stat { background: var(--paper); padding: 18px 20px; }
.stat small { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.stat b { display: block; margin-top: 6px; font-size: clamp(20px, 2.4vw, 28px); white-space: nowrap; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-2); }
h2 { margin: 56px 0 14px; font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: .02em; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0 18px 14px; font-size: 12px; font-weight: 600; color: rgba(242, 239, 231, .62); }
footer { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.8; color: var(--ink-3); }
/* 頁尾「全部作品」：shell.js 插入，四頁一致 */
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 10px; font-weight: 600; }
.site-nav b { color: var(--ink-2); font-weight: 800; }
.site-nav a { color: var(--ink-2); text-decoration: none; }
.site-nav a:hover { color: var(--mint); text-decoration: underline; }
.site-nav a[aria-current] { color: var(--ink); font-weight: 800; }
