/* 視覺：暖白紙面 · 柔和光暈 · 圓潤卡片 · 極淡顆粒
     配色：中性底 ＋ 五個分類色（欄目與內容型別各有身分）
     內容：乾貨優先，立場靠欄位證明不靠宣言 */

  :root {
    --ground:      #FAF9F5;
    --surface:     #FFFFFC;
    --surface-alt: #F5F3EC;
    --ink:         #262625;
    --ink-2:       #63615D;
    --ink-3:       #9B9892;
    --line:        #EAE6DC;
    --line-soft:   #F2EFE7;
    --flag:        #A56A43;
    --flag-soft:   #F7F0E8;

    /* 主色（連結、按鈕、搜尋） */
    --accent: #17876A;
    --bright: #5CC7A3;
    --on-bright: #0F2620;
    --tint: #E9F5F0;
    --glow: rgba(92,199,163,.30);

    /* 分類色：明度與彩度對齊，換色不換調性 */
    --c1-b:#5CC7A3; --c1-i:#12795F; --c1-t:#E7F5F0;  /* 知識庫 · 綠 */
    --c2-b:#6BB6EE; --c2-i:#1A69B8; --c2-t:#E8F2FB;  /* 工具   · 藍 */
    --c3-b:#EBB474; --c3-i:#8E5A18; --c3-t:#FBF1E5;  /* 數據   · 琥珀 */
    --c4-b:#EA9391; --c4-i:#B04846; --c4-t:#FCEDEC;  /* 新聞   · 珊瑚 */
    --c5-b:#A99BE0; --c5-i:#5F4EA8; --c5-t:#F0EDFB;  /* 追蹤   · 紫 */
    --c6-b:#A9BE6E; --c6-i:#566B1C; --c6-t:#F1F5E3;  /* 系統   · 橄欖 */

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-pill: 999px;

    --lift:  0 1px 2px rgba(38,38,37,.04), 0 10px 28px -14px rgba(38,38,37,.16);
    --lift-2: 0 2px 4px rgba(38,38,37,.05), 0 22px 48px -20px rgba(38,38,37,.24);
    --grain-blend: multiply;
    --grain-alpha: .05;
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --ground:#1C1B19; --surface:#24231F; --surface-alt:#2C2A26;
      --ink:#F2F0EA; --ink-2:#ABA79F; --ink-3:#7D7A74;
      --line:#363430; --line-soft:#292724;
      --flag:#D19A6E; --flag-soft:#2A2119;
      --accent:#6FD3B0; --bright:#6FD3B0; --on-bright:#10201B;
      --tint:#22302B; --glow:rgba(111,211,176,.20);
      --c1-b:#6FD3B0; --c1-i:#6FD3B0; --c1-t:#1F2E29;
      --c2-b:#84C4F4; --c2-i:#84C4F4; --c2-t:#1D2A34;
      --c3-b:#EFC08A; --c3-i:#EFC08A; --c3-t:#302921;
      --c4-b:#F0A5A3; --c4-i:#F0A5A3; --c4-t:#322423;
      --c5-b:#BBAFEC; --c5-i:#BBAFEC; --c5-t:#282539;
      --c6-b:#C3D68A; --c6-i:#C3D68A; --c6-t:#282D1E;
      --lift: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -14px rgba(0,0,0,.7);
      --lift-2: 0 2px 4px rgba(0,0,0,.35), 0 22px 48px -20px rgba(0,0,0,.8);
      --grain-blend: screen; --grain-alpha: .035;
    }
  }
  :root[data-theme="dark"] {
    --ground:#1C1B19; --surface:#24231F; --surface-alt:#2C2A26;
    --ink:#F2F0EA; --ink-2:#ABA79F; --ink-3:#7D7A74;
    --line:#363430; --line-soft:#292724;
    --flag:#D19A6E; --flag-soft:#2A2119;
    --accent:#6FD3B0; --bright:#6FD3B0; --on-bright:#10201B;
    --tint:#22302B; --glow:rgba(111,211,176,.20);
    --c1-b:#6FD3B0; --c1-i:#6FD3B0; --c1-t:#1F2E29;
    --c2-b:#84C4F4; --c2-i:#84C4F4; --c2-t:#1D2A34;
    --c3-b:#EFC08A; --c3-i:#EFC08A; --c3-t:#302921;
    --c4-b:#F0A5A3; --c4-i:#F0A5A3; --c4-t:#322423;
    --c5-b:#BBAFEC; --c5-i:#BBAFEC; --c5-t:#282539;
    --c6-b:#C3D68A; --c6-i:#C3D68A; --c6-t:#282D1E;
    --lift: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -14px rgba(0,0,0,.7);
    --lift-2: 0 2px 4px rgba(0,0,0,.35), 0 22px 48px -20px rgba(0,0,0,.8);
    --grain-blend: screen; --grain-alpha: .035;
  }

  :root {
    --sans: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  }

  * { box-sizing: border-box; }

  body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.78;
    letter-spacing: .01em;
    -webkit-font-smoothing: antialiased;
  }
  body::after {
    content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
    opacity: var(--grain-alpha); mix-blend-mode: var(--grain-blend);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  a { color: inherit; }
  :where(a, button, input):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
  .wrap { width: min(1140px, 100% - 48px); margin-inline: auto; }
  section { padding: 72px 0; }
  h1, h2, h3 { text-wrap: balance; }

  /* ═══ 頁首 ═══ */
  header {
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--ground) 86%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-soft);
  }
  header .wrap { display: flex; align-items: center; gap: 32px; height: 74px; }
  .brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
  .brand .zh { font-size: 20px; font-weight: 700; letter-spacing: .08em; }
  .brand .en { font-size: 10.5px; letter-spacing: .2em; color: var(--ink-3); }
  nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
  nav a { text-decoration: none; font-size: 15px; padding: 9px 15px; border-radius: var(--r-pill); color: var(--ink-2); transition: color .2s ease, background .2s ease; }
  nav a:hover { color: var(--accent); background: var(--tint); }
  nav a[aria-current] { color: var(--ink); background: var(--surface-alt); }

  /* 手機版選單鈕與遮罩：桌機完全不存在。
     .navtools 用 display:contents，桌機上等於沒有這層 div，
     兩顆鈕照舊是 nav 的直接子項；只有抽屜裡才把它變成真的容器。 */
  .navbtn { display: none; }
  .navtools { display: contents; }
  .navscrim { display: none; }

  /* ─ 下拉選單：行銷名詞釋義表 ─
     不用 JS。hover 給滑鼠，focus-within 給鍵盤，兩條規則就夠。
     父項自己是一個真的連結，指到總表——觸控裝置不會觸發 hover，
     點下去至少要到得了一個有用的地方。 */
  .navdrop { position: relative; display: flex; }
  .navdrop-top { display: inline-flex; align-items: center; gap: 5px; }
  .navdrop-top .chev { opacity: .6; transition: transform .2s ease; }
  .navdrop-menu {
    position: absolute; top: calc(100% + 11px); left: 50%;
    transform: translateX(-50%) translateY(-5px);
    min-width: 212px; padding: 7px; display: grid; gap: 1px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-md); box-shadow: 0 16px 40px rgba(0, 0, 0, .17);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  /* 父項與選單之間有空隙，滑鼠移過去的路上會先離開 hover 區，選單就收了。
     墊一條看不見的橋把兩者接起來。 */
  .navdrop-menu::before {
    content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 13px;
  }
  .navdrop:hover .navdrop-menu,
  .navdrop:focus-within .navdrop-menu {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .navdrop:hover .chev,
  .navdrop:focus-within .chev { transform: rotate(180deg); }
  .navdrop-cols { display: grid; gap: 1px; }
  /* 六個以上的分類排成兩欄，否則選單會拉到快滿版高 */
  .navdrop-menu.wide { min-width: 430px; }
  .navdrop-menu.wide .navdrop-cols { grid-template-columns: 1fr 1fr; gap: 1px 6px; }
  .navdrop-menu a {
    display: flex; align-items: center; gap: 9px; white-space: nowrap;
    padding: 9px 12px; font-size: 14.5px; border-radius: 7px;
  }
  .navdrop-menu a .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
  .navdrop-menu a.all {
    margin-top: 4px; padding-top: 11px; font-size: 13.5px; color: var(--ink-3);
    border-top: 1px solid var(--line-soft); border-radius: 0 0 7px 7px;
  }

  /* 多一個欄目之後，1150px 以下會開始擠 */
  @media (max-width: 1150px) {
    header .wrap { gap: 20px; }
    nav a { font-size: 14px; padding: 9px 11px; }
  }

  /* ─ 手機／平板：導覽收進抽屜 ───────────────────────────────
     七個欄目加兩顆鈕，900px 以下橫排一定爆。之前的作法是讓 nav 變成
     橫向捲動條——欄目被切一半藏在畫面外，在手機上等於沒有導覽。
     改成漢堡＋整片下拉抽屜：一次看得到全部欄目，每列都是 48px 以上的手指目標。

     抽屜用 absolute 不用 fixed：header 有 backdrop-filter，
     它會變成 fixed 子孫的包含塊，fixed 反而定不到視窗上。
     header 本身是 sticky（已經是定位元素），absolute 掛在它底下效果一樣穩。 */
  @media (max-width: 900px) {
    header .wrap { height: 60px; gap: 14px; }
    /* 品牌改直排：橫排在窄螢幕會把漢堡鈕擠掉，直排兩行剛好塞進 60px */
    .brand { flex-direction: column; align-items: flex-start; gap: 1px; }
    .brand .zh { font-size: 17px; }
    .brand .en { font-size: 9px; letter-spacing: .16em; }

    .navbtn {
      display: inline-grid; place-items: center; margin-left: auto; flex: none;
      width: 44px; height: 44px; padding: 0; cursor: pointer;
      border: 1px solid var(--line); border-radius: var(--r-md);
      background: var(--surface); color: var(--ink);
    }
    .navbtn .bars { display: grid; gap: 4px; width: 18px; }
    .navbtn .bars i {
      display: block; height: 2px; background: currentColor; border-radius: 2px;
      transition: transform .22s ease, opacity .16s ease;
    }
    header.nav-open .navbtn .bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    header.nav-open .navbtn .bars i:nth-child(2) { opacity: 0; }
    header.nav-open .navbtn .bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    nav {
      position: absolute; top: 100%; left: 0; right: 0; z-index: 2;
      display: block; margin-left: 0; padding: 4px 0 8px;
      background: var(--ground); border-bottom: 1px solid var(--line);
      box-shadow: 0 18px 44px rgba(0, 0, 0, .14);
      max-height: calc(100dvh - 60px); overflow-y: auto;
      opacity: 0; visibility: hidden; transform: translateY(-10px);
      transition: opacity .2s ease, transform .22s ease, visibility .22s;
    }
    header.nav-open nav { opacity: 1; visibility: visible; transform: none; }

    /* .navdrop-top 自己帶 inline-flex（比 `nav a` 更強），不明講的話
       行銷名詞釋義表那一列會變成行內盒，下面多出一條空隙 */
    .navdrop { display: block; }
    .navdrop-top { display: flex; width: 100%; }
    nav a {
      display: flex; align-items: center; width: 100%;
      padding: 15px 24px; font-size: 16.5px; color: var(--ink);
      border-radius: 0; border-bottom: 1px solid var(--line-soft);
    }
    nav a:hover { background: var(--surface); }
    nav a[aria-current] { background: var(--tint); color: var(--accent); font-weight: 600; }
    /* 觸控裝置不會 hover，下拉在抽屜裡沒有意義：父項直接連到總表，
       總表最上面就是各分類的入口。 */
    .navdrop-menu, .navdrop-top .chev { display: none; }

    .navtools { display: flex; align-items: center; gap: 10px; padding: 14px 24px 4px; }
    /* 要用 .navtools .skin-toggle 才壓得過 skin-industrial.css 裡那條
       `.skin-toggle { flex: none }`——那支 CSS 掛在後面，同分就是它贏 */
    .navtools .skin-toggle { margin-left: 0; flex: 1; padding: 14px 16px; font-size: 13.5px; }
    .theme-toggle { width: 46px; height: 46px; border-radius: var(--r-md); }
    .theme-toggle:hover { transform: none; }

    /* 遮罩蓋住抽屜以外的整個視窗，點一下關閉。跟抽屜同一個包含塊（header）。 */
    .navscrim {
      display: block; position: absolute; top: 100%; left: 0; right: 0; z-index: 1;
      height: 100dvh; background: rgba(20, 20, 18, .34);
      opacity: 0; visibility: hidden;
      transition: opacity .2s ease, visibility .2s;
    }
    header.nav-open .navscrim { opacity: 1; visibility: visible; }
    body.nav-lock { overflow: hidden; }
  }

  .theme-toggle {
    flex: none; width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
    display: grid; place-items: center; cursor: pointer;
    transition: color .2s ease, border-color .2s ease, transform .2s ease;
  }
  .theme-toggle:hover { color: var(--accent); border-color: var(--bright); transform: rotate(-12deg); }
  .theme-toggle .moon { display: block; }
  .theme-toggle .sun { display: none; }
  :root[data-theme="dark"] .theme-toggle .moon { display: none; }
  :root[data-theme="dark"] .theme-toggle .sun { display: block; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
    :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  }

  /* ═══ Hero ═══ */
  .hero { position: relative; padding: 68px 0 56px; overflow: hidden; text-align: center; }
  .hero::before {
    content: ""; position: absolute; z-index: 0;
    width: 980px; height: 640px; left: 50%; transform: translateX(-50%); top: -330px;
    border-radius: 50%; pointer-events: none;
    background:
      radial-gradient(ellipse 46% 60% at 32% 60%, rgba(92,199,163,.26) 0%, transparent 70%),
      radial-gradient(ellipse 44% 58% at 62% 46%, rgba(107,182,238,.22) 0%, transparent 70%),
      radial-gradient(ellipse 38% 52% at 82% 68%, rgba(235,180,116,.20) 0%, transparent 70%);
  }
  :root[data-theme="dark"] .hero::before { opacity: .5; }
  .hero .wrap { position: relative; z-index: 1; }
  .hero h1 { margin: 0 auto 16px; font-size: clamp(29px, 3.9vw, 46px); line-height: 1.32; font-weight: 700; max-width: 17em; }
  .hero h1 .mark { background: linear-gradient(180deg, transparent 62%, var(--glow) 62%); padding: 0 3px; }
  .hero .lede { margin: 0 auto 32px; font-size: 17px; color: var(--ink-2); max-width: 34em; }
  .searchbar {
    display: flex; align-items: center; max-width: 680px; margin: 0 auto;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-pill); padding: 5px 5px 5px 22px;
    box-shadow: var(--lift); transition: box-shadow .25s ease, border-color .25s ease;
  }
  .searchbar:focus-within { box-shadow: var(--lift-2); border-color: var(--bright); }
  .searchbar svg { flex: none; color: var(--ink-3); }
  .searchbar input { flex: 1; border: 0; background: transparent; padding: 14px; font: inherit; font-size: 16px; color: var(--ink); min-width: 0; }
  .searchbar input:focus { outline: none; }
  .searchbar input::placeholder { color: var(--ink-3); }
  .searchbar button {
    border: 0; background: var(--bright); color: var(--on-bright);
    font: inherit; font-size: 15px; font-weight: 600;
    padding: 13px 30px; border-radius: var(--r-pill); cursor: pointer;
    transition: filter .2s ease, transform .2s ease;
  }
  .searchbar button:hover { filter: brightness(1.05); transform: translateY(-1px); }
  /* max-width 收在搜尋框（680px）附近，熱門詞才不會排成比搜尋框還寬的一長條。
     超過就自然斷行；row-gap 比 column-gap 大一點，兩行時才分得開。 */
  .quick { margin: 18px auto 0; max-width: 760px; display: flex; flex-wrap: wrap; gap: 10px 8px; justify-content: center; align-items: center; font-size: 14px; }
  .quick em { font-style: normal; color: var(--ink-3); }
  .quick a { text-decoration: none; color: var(--ink-2); padding: 5px 13px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); transition: color .2s ease, border-color .2s ease; }
  .quick a:nth-child(2):hover { color: var(--c1-i); border-color: var(--c1-b); }
  .quick a:nth-child(3):hover { color: var(--c2-i); border-color: var(--c2-b); }
  .quick a:nth-child(4):hover { color: var(--c3-i); border-color: var(--c3-b); }
  .quick a:nth-child(5):hover { color: var(--c4-i); border-color: var(--c4-b); }
  .quick a:nth-child(6):hover { color: var(--c5-i); border-color: var(--c5-b); }
  .quick a:nth-child(7):hover { color: var(--c1-i); border-color: var(--c1-b); }
  .quick a:nth-child(8):hover { color: var(--c2-i); border-color: var(--c2-b); }
  .quick a:nth-child(9):hover { color: var(--c3-i); border-color: var(--c3-b); }
  .creed { margin: 26px auto 0; font-size: 13.5px; color: var(--ink-3); }
  .creed a { color: var(--ink-2); text-underline-offset: 3px; }

  /* ═══ 區塊標題 ═══ */
  .head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 26px; }
  .head h2 { margin: 0; font-size: 25px; font-weight: 700; letter-spacing: .02em; line-height: 1.4; display: flex; align-items: center; gap: 11px; }
  .head h2 .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
  .head .sub { color: var(--ink-3); font-size: 14px; padding-bottom: 5px; }
  .head .more { margin-left: auto; font-size: 14.5px; color: var(--accent); text-decoration: none; white-space: nowrap; padding-bottom: 5px; display: inline-flex; gap: 5px; align-items: center; transition: gap .2s ease; }
  .head .more:hover { gap: 9px; }

  /* ═══ 工具比較 ═══ */
  .tablecard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--lift); overflow: hidden; }
  .tabs { display: flex; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); overflow-x: auto; }
  .tabs button {
    font: inherit; font-size: 14px; white-space: nowrap;
    padding: 7px 16px; border-radius: var(--r-pill);
    border: 1px solid transparent; background: transparent; color: var(--ink-2); cursor: pointer;
    transition: background .2s ease, color .2s ease;
  }
  .tabs button:hover { background: var(--surface-alt); }
  .tabs button[aria-pressed="true"] { background: var(--c2-t); color: var(--c2-i); font-weight: 600; }
  .tablescroll { overflow-x: auto; }
  table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 720px; }
  thead th { text-align: left; font-weight: 500; font-size: 13.5px; color: var(--ink-3); padding: 15px 22px; background: var(--surface-alt); white-space: nowrap; }
  /* 可排序表頭。箭頭狀態只有一個來源：th 的 aria-sort，螢幕閱讀器跟眼睛看到的是同一件事 */
  thead th .sortbtn {
    font: inherit; color: inherit; background: none; border: 0; padding: 0;
    cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
    transition: color .2s ease;
  }
  thead th .sortbtn::after { content: "↕"; font-size: 11px; opacity: .4; }
  thead th .sortbtn:hover { color: var(--c2-i); }
  thead th[aria-sort="ascending"], thead th[aria-sort="descending"] { color: var(--c2-i); font-weight: 700; }
  thead th[aria-sort="ascending"] .sortbtn::after { content: "↑"; opacity: 1; }
  thead th[aria-sort="descending"] .sortbtn::after { content: "↓"; opacity: 1; }
  thead th .sortbtn:focus-visible { outline: 2px solid var(--c2-b); outline-offset: 3px; border-radius: 3px; }
  tbody td { padding: 17px 22px; border-top: 1px solid var(--line-soft); }
  tbody tr { transition: background .2s ease; }
  tbody tr:hover { background: var(--c2-t); }
  td.name { font-weight: 600; }
  /* 查證日不折行。折成「2026-08-」「23」兩段會讓人以為是兩筆資料 */
  td.date { white-space: nowrap; font-variant-numeric: tabular-nums; }
  /* 註記行：查證來源、計費細節、免費方案上限。跟主要值同格但降一階 */
  tbody td small { display: block; margin-top: 5px; font-size: 12.5px; font-weight: 400; line-height: 1.5; color: var(--ink-3); max-width: 24em; }
  td.name small a { color: var(--ink-3); text-decoration: none; border-bottom: 1px solid var(--line); }
  td.name small a:hover { color: var(--c2-i); border-bottom-color: currentColor; }
  .pill { display: inline-block; font-size: 13px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--surface-alt); color: var(--ink-2); }
  .pill.on { background: var(--c1-t); color: var(--c1-i); font-weight: 600; }
  .pill.soon { background: transparent; color: var(--flag); border: 1px dashed var(--line); }
  .soon { font-size: 13px; color: var(--flag); }
  .tablefoot { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 15px 22px; border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--ink-3); }
  .tablefoot a { color: var(--c2-i); text-decoration: none; }
  .tablefoot a:hover { text-decoration: underline; text-underline-offset: 3px; }

  /* ═══ 內容主區 ═══ */
  .main-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 60px; align-items: start; }
  ul.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
  ul.feed li a { display: block; padding: 20px; border-radius: var(--r-md); text-decoration: none; transition: background .2s ease, box-shadow .2s ease; }
  ul.feed li a:hover { background: var(--surface); box-shadow: var(--lift); }
  .meta { display: flex; gap: 10px; align-items: center; margin-bottom: 7px; }
  .kind { font-size: 12.5px; padding: 3px 12px; border-radius: var(--r-pill); background: var(--surface-alt); color: var(--ink-2); white-space: nowrap; font-weight: 600; }
  .kind.k1 { background: var(--c1-t); color: var(--c1-i); }
  .kind.k2 { background: var(--c2-t); color: var(--c2-i); }
  .kind.k3 { background: var(--c3-t); color: var(--c3-i); }
  .kind.k4 { background: var(--c4-t); color: var(--c4-i); }
  .kind.k5 { background: var(--c5-t); color: var(--c5-i); }
  .meta time { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
  ul.feed .t { font-size: 17.5px; font-weight: 600; line-height: 1.55; display: block; }
  ul.feed .ex { font-size: 14.5px; color: var(--ink-2); line-height: 1.75; margin-top: 5px; display: block; }
  ul.feed li:nth-child(1) a:hover .t { color: var(--c1-i); }
  ul.feed li:nth-child(2) a:hover .t { color: var(--c1-i); }
  ul.feed li:nth-child(3) a:hover .t { color: var(--c2-i); }
  ul.feed li:nth-child(4) a:hover .t { color: var(--c4-i); }
  ul.feed li:nth-child(5) a:hover .t { color: var(--c5-i); }

  aside .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 26px 28px; box-shadow: var(--lift); }
  aside .box + .box { margin-top: 22px; }
  aside h3 { margin: 0 0 4px; font-size: 17px; font-weight: 700; letter-spacing: .03em; display: flex; align-items: center; gap: 9px; }
  aside h3 .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
  aside .cap { margin: 0 0 18px; font-size: 13.5px; color: var(--ink-3); line-height: 1.6; }
  .terms { display: flex; flex-wrap: wrap; gap: 8px; }
  .terms a {
    text-decoration: none; font-size: 14px; padding: 7px 14px; border-radius: var(--r-pill);
    background: var(--ground); border: 1px solid var(--line); color: var(--ink-2);
    transition: color .2s ease, border-color .2s ease, transform .2s ease, background .2s ease;
  }
  .terms a:hover { transform: translateY(-2px); }
  .terms a:nth-child(5n+1):hover { color: var(--c1-i); border-color: var(--c1-b); background: var(--c1-t); }
  .terms a:nth-child(5n+2):hover { color: var(--c2-i); border-color: var(--c2-b); background: var(--c2-t); }
  .terms a:nth-child(5n+3):hover { color: var(--c3-i); border-color: var(--c3-b); background: var(--c3-t); }
  .terms a:nth-child(5n+4):hover { color: var(--c4-i); border-color: var(--c4-b); background: var(--c4-t); }
  .terms a:nth-child(5n+5):hover { color: var(--c5-i); border-color: var(--c5-b); background: var(--c5-t); }

  ul.topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
  ul.topics a { display: flex; gap: 12px; align-items: center; text-decoration: none; padding: 11px 12px; border-radius: var(--r-sm); transition: background .2s ease; }
  ul.topics .n { width: 8px; height: 8px; border-radius: 50%; flex: none; }
  ul.topics li:nth-child(1) .n { background: var(--c1-b); }
  ul.topics li:nth-child(2) .n { background: var(--c2-b); }
  ul.topics li:nth-child(3) .n { background: var(--c3-b); }
  ul.topics li:nth-child(4) .n { background: var(--c4-b); }
  ul.topics li:nth-child(5) .n { background: var(--c5-b); }
  ul.topics li:nth-child(1) a:hover { background: var(--c1-t); }
  ul.topics li:nth-child(2) a:hover { background: var(--c2-t); }
  ul.topics li:nth-child(3) a:hover { background: var(--c3-t); }
  ul.topics li:nth-child(4) a:hover { background: var(--c4-t); }
  ul.topics li:nth-child(5) a:hover { background: var(--c5-t); }
  ul.topics .l { font-size: 15px; line-height: 1.6; }
  ul.topics .c { margin-left: auto; font-size: 12.5px; color: var(--ink-3); flex: none; font-variant-numeric: tabular-nums; }

  /* ═══ 數據 ═══ */
  .figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .fig { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0 0 24px; box-shadow: var(--lift); overflow: hidden; }
  .fig .band { height: 5px; }
  .fig:nth-child(1) .band { background: var(--c3-b); }
  .fig:nth-child(2) .band { background: var(--c5-b); }
  .fig:nth-child(3) .band { background: var(--c2-b); }
  .fig .body { padding: 24px 26px 0; }
  .fig h3 { margin: 0 0 16px; font-size: 16px; font-weight: 600; letter-spacing: .03em; line-height: 1.5; }
  .skeleton { display: grid; gap: 9px; margin-bottom: 20px; }
  .skeleton i { display: block; height: 11px; border-radius: var(--r-pill); background: var(--surface-alt); }
  .skeleton i:nth-child(1) { width: 60%; height: 26px; }
  .skeleton i:nth-child(2) { width: 88%; }
  .skeleton i:nth-child(3) { width: 44%; }
  .await { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; background: var(--flag-soft); color: var(--flag); border-radius: var(--r-pill); padding: 6px 14px; }

  /* ═══ 欄目導覽 ═══ */
  .cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 22px; text-decoration: none; display: flex; gap: 15px; align-items: flex-start;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  }
  .card:hover { transform: translateY(-3px); box-shadow: var(--lift); }
  .card .ico { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; }
  .card h3 { margin: 0 0 4px; font-size: 16.5px; font-weight: 700; letter-spacing: .03em; }
  .card p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
  .card.n1 .ico { background: var(--c1-t); color: var(--c1-i); }
  .card.n1:hover { border-color: var(--c1-b); }
  .card.n1:hover h3 { color: var(--c1-i); }
  .card.n2 .ico { background: var(--c2-t); color: var(--c2-i); }
  .card.n2:hover { border-color: var(--c2-b); }
  .card.n2:hover h3 { color: var(--c2-i); }
  .card.n3 .ico { background: var(--c3-t); color: var(--c3-i); }
  .card.n3:hover { border-color: var(--c3-b); }
  .card.n3:hover h3 { color: var(--c3-i); }
  .card.n4 .ico { background: var(--c4-t); color: var(--c4-i); }
  .card.n4:hover { border-color: var(--c4-b); }
  .card.n4:hover h3 { color: var(--c4-i); }

  /* ═══ 編輯部 ═══ */
  .desk .inner {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 32px 36px; box-shadow: var(--lift);
    display: flex; gap: 30px; align-items: center; flex-wrap: wrap;
    border-left: 5px solid var(--c5-b);
  }
  .desk p { margin: 0; font-size: 16px; color: var(--ink-2); line-height: 1.75; flex: 1; min-width: 260px; }
  .desk p b { color: var(--ink); font-weight: 600; }
  .desk .links { display: flex; gap: 10px; flex-wrap: wrap; }
  .desk .links a {
    text-decoration: none; font-size: 14.5px; padding: 10px 20px;
    border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--ink-2);
    white-space: nowrap; transition: color .2s ease, border-color .2s ease, background .2s ease;
  }
  .desk .links a:hover { color: var(--c5-i); border-color: var(--c5-b); background: var(--c5-t); }

  /* ═══ 訂閱 ═══ */
  .sub .inner {
    border-radius: var(--r-lg); padding: 42px 48px;
    display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
    background:
      linear-gradient(120deg, var(--c1-t) 0%, var(--c2-t) 52%, var(--c5-t) 100%);
  }
  .sub h2 { margin: 0 0 6px; font-size: 23px; letter-spacing: .02em; }
  .sub p { margin: 0; color: var(--ink-2); font-size: 15px; }
  /* 蒐集目的講在表單旁邊，不是藏在隱私權政策裡——個資法要的是「告知」，
     而寫在一個沒人會點進去的地方不算告知 */
  .sub .fine { margin-top: 8px; font-size: 13px; color: var(--ink-3); line-height: 1.75; }
  /* 送出結果。訊息要佔位，否則出現的瞬間會把版面往下推一格 */
  .submsg { margin: 10px 0 0; font-size: 14px; min-height: 1.5em; color: var(--ink-2); }
  .submsg.ok { color: var(--c1-i); font-weight: 600; }
  .submsg.bad { color: var(--flag); }
  .sub button[disabled] { opacity: .6; cursor: default; }
  .sub form { display: flex; align-items: center; gap: 6px; background: var(--surface); border-radius: var(--r-pill); padding: 5px 5px 5px 22px; box-shadow: var(--lift); }
  .sub input { border: 0; background: transparent; padding: 13px 8px; font: inherit; font-size: 15px; color: var(--ink); width: 220px; }
  .sub input:focus { outline: none; }
  .sub input::placeholder { color: var(--ink-3); }
  .sub button { border: 0; background: var(--bright); color: var(--on-bright); font: inherit; font-size: 15px; font-weight: 600; padding: 12px 26px; border-radius: var(--r-pill); cursor: pointer; transition: filter .2s ease; }
  .sub button:hover { filter: brightness(1.05); }

  /* ═══ 頁尾 ═══ */
  footer { border-top: 1px solid var(--line-soft); padding: 52px 0 60px; }
  footer .wrap { display: flex; gap: 48px; flex-wrap: wrap; align-items: flex-start; }
  footer .fine { font-size: 13.5px; color: var(--ink-3); max-width: 28em; line-height: 1.85; margin: 14px 0 0; }
  footer .cols { display: flex; gap: 56px; flex-wrap: wrap; margin-left: auto; }
  footer h4 { margin: 0 0 13px; font-size: 13.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
  footer h4 .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
  footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
  footer a { text-decoration: none; font-size: 14px; color: var(--ink-2); transition: color .2s ease; }
  footer a:hover { color: var(--accent); }
  footer .proto-note { width: 100%; margin: 32px 0 0; padding-top: 22px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--ink-3); }

  @media (max-width: 1000px) {
    .main-grid, .sub .inner { grid-template-columns: 1fr; gap: 44px; }
    .cards { grid-template-columns: 1fr 1fr; }
    .figs { grid-template-columns: 1fr; }
    .sub .inner { padding: 34px 28px; }
  }
  @media (max-width: 660px) {
    .wrap { width: min(1140px, 100% - 32px); }
    .cards { grid-template-columns: 1fr; }
    section { padding: 52px 0; }
    .hero { padding: 44px 0 40px; }
    .hero .lede { font-size: 16px; }
    /* 標語的螢光段不准斷行。斷成兩行會在第三行留一塊「清楚」的孤兒色塊，
       看起來像排版壞掉；整段擠到下一行反而像刻意的第二拍。 */
    .hero h1 .mark { white-space: nowrap; }
    .searchbar { flex-wrap: wrap; border-radius: var(--r-md); padding: 12px 16px; }
    .searchbar input { width: 100%; padding: 6px 0; }
    .searchbar button { width: 100%; padding: 15px 30px; }
    .sub form { flex-wrap: wrap; border-radius: var(--r-md); padding: 12px 16px; }
    /* 輸入框在 iOS 上小於 16px 會觸發自動放大，整頁跟著位移。
       手機版一律 16px，這不是美觀問題是版面會跳。 */
    .sub input, .sub button { width: 100%; font-size: 16px; }
    .sub button { padding: 15px 26px; }
    .desk .inner { padding: 26px 22px; }

    /* 手指目標：一排小藥丸在滑鼠下沒問題，手機上點三次中一次。
       高度一律拉到 38px 以上，橫向間距也放寬免得誤觸隔壁。 */
    .quick { gap: 9px 7px; }
    .quick a { padding: 8px 14px; }
    .head { flex-wrap: wrap; gap: 10px 14px; }
    .head h2 { font-size: 22px; }
    .head .more { margin-left: 0; padding-bottom: 0; }
    .tabs { padding: 12px 14px; gap: 7px; }
    .tabs button { padding: 10px 15px; }

    /* 比較表在手機一定要橫捲（欄位壓不進 360px），問題是看不出「可以捲」。
       這裡用 background-attachment 的老把戲做捲動陰影：兩層 local 的
       純色蓋片跟著內容捲，捲到底時剛好把 scroll 那層的陰影蓋住——
       於是「還有東西在右邊」時才有陰影，到底就自己消失，不必寫 JS。 */
    .tablescroll {
      background:
        linear-gradient(90deg, var(--surface) 40%, transparent) left center / 26px 100% no-repeat local,
        linear-gradient(270deg, var(--surface) 40%, transparent) right center / 26px 100% no-repeat local,
        radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .2), transparent) left center / 16px 100% no-repeat scroll,
        radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .2), transparent) right center / 16px 100% no-repeat scroll;
    }
    /* ── 寬表格改排成卡片 ──
       七欄的比較表在 390px 只有兩種下場：每欄壓成 90px 的麵條，
       或者橫捲到第三欄就忘了自己在看哪個工具。兩種都不能讀。
       改成一列一張卡、每個值前面掛自己的欄名（data-label 由 build.js 寫入）。
       四欄以下的表沒有這個問題，維持表格。 */
    /* --lbl 是欄名那一欄的寬度。工業版要重寫 td 的 padding（它自己的
       tbody td 規則更強），共用這個變數才不會兩邊各寫一個數字慢慢漂掉。 */
    table.cards-m { --lbl: 6.6em; display: block; min-width: 0; font-size: 15.5px; }
    table.cards-m thead { display: none; }
    table.cards-m tbody, table.cards-m tr { display: block; }
    table.cards-m tr {
      padding: 16px 16px 14px; border-top: 1px solid var(--line);
      transition: none;
    }
    table.cards-m tr:first-child { border-top: 0; }
    table.cards-m tr:hover { background: none; }
    /* 欄名用絕對定位掛在左邊，不用 grid。
       grid 會把 td 的每個子節點各自當成一格：一個 <small> 註記就被擠到下一列
       的第一欄去，跟欄名疊在一起；「有」那種 inline-block 的標籤也會被拉成
       整欄寬的黑色橫幅。padding-left 留位、::before 浮上去，內容維持原本的排版。 */
    table.cards-m td {
      display: block; position: relative;
      padding: 7px 0 7px var(--lbl); border: 0;
      overflow-wrap: anywhere;
      /* 卡片模式沒有橫捲容器可以吸收，任何一格 nowrap 都會把整頁往右撐 */
      white-space: normal;
    }
    table.cards-m td::before {
      content: attr(data-label);
      position: absolute; left: 0; top: 9px; width: 6em;
      font-size: 12.5px; line-height: 1.5; color: var(--ink-3);
    }
    /* 第一欄是身分，不是屬性：整行放大當卡片標題，不掛欄名 */
    table.cards-m td:first-child {
      padding: 0 0 10px;
      font-size: 17.5px; font-weight: 700; line-height: 1.5;
    }
    /* 長文字表（三欄）欄名改放在值的上面。--lbl 歸零，左邊那條保留欄
       就跟著消失，兩套視覺的 padding 規則都不必再各寫一份。 */
    table.cards-stack { --lbl: 0px; }
    table.cards-stack td::before {
      position: static; display: block; width: auto; margin-bottom: 2px;
    }
    /* colspan 的分組標題列沒有欄名，別給它留空的欄名欄 */
    table.cards-m td:not([data-label]) { padding-left: 0; }
    table.cards-m td:not([data-label])::before { display: none; }
    table.cards-m tr.grouprow { padding: 20px 16px 4px; }
    table.cards-m td:first-child::before { display: none; }
    table.cards-m td small { max-width: none; }

    /* 沒改成卡片的表還是會橫捲，第一欄釘住：手指往左滑的是數值，不是身分 */
    .tablescroll table:not(.cards-m) thead th:first-child,
    .tablescroll table:not(.cards-m) tbody td:first-child {
      position: sticky; left: 0; z-index: 2;
      box-shadow: 1px 0 0 var(--line-soft);
    }
    .tablescroll table:not(.cards-m) tbody td:first-child { background: var(--surface); }
    .tablescroll table:not(.cards-m) thead th:first-child { background: var(--surface-alt); }
    /* min-width 只能加在 .tablescroll 裡面。全域那條（720px）會讓正文裡
       獨立的 .specs 表把整篇文章撐成 640px 寬——沒有捲動容器接著，
       是整個頁面往右溢位，每篇有規格表的教學文都中。 */
    table { min-width: 0; }
    .tablescroll table:not(.cards-m) { min-width: 620px; font-size: 14.5px; }
    thead th { padding: 13px 15px; }
    tbody td { padding: 14px 15px; }
    /* 長網址不斷行會撐破欄寬，直接壓到隔壁欄的字上 */
    td small a, td.name small { overflow-wrap: anywhere; }
    /* 手機上的標題用貪婪斷行就好。balance 會為了把每行拉齊，
       在「工具」中間斷開——中文沒有詞距，它算不出詞界。 */
    h1, h2, h3 { text-wrap: pretty; }
    .tablefoot { padding: 14px 16px; }
    ul.feed li a { padding: 16px 14px; }
    ul.feed .t { font-size: 16.5px; }
  }
  @media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
