/* ==== NPG 版型模板 _core.css（複製自 F:\_claude\NPG設計模板，勿改庫內檔） ==== */
/* ============================================================
   NPG 版型模板 — 結構層 _core.css
   ------------------------------------------------------------
   這一份只管「東西擺在哪、多大、怎麼排」，**一個顏色都不給**。
   長相全部交給風格檔（s01~s05）。所以：

       _core.css  +  任選一個 s0X.css  =  一套完整版型

   換風格＝換那一個 s0X.css，HTML 一個字都不用改。
   ⚠ 兩個檔都要複製進你的專案，_core.css 放在風格檔「前面」。
   ============================================================ */

*,*::before,*::after{ box-sizing: border-box; }

html{ -webkit-text-size-adjust: 100%; }

body{
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
}

/* ── 頁面外殼 ────────────────────────────────────────────
   所有內容包在 .npl-page 裡。max-width 用變數，詳情頁想寬一點
   就在該頁覆寫 --npl-w。 */
.npl-page{
  position: relative; z-index: 1;
  max-width: var(--npl-w, 900px);
  margin: 0 auto;
  padding: 26px 14px 90px;
  display: flex; flex-direction: column;
  gap: var(--npl-gap, 22px);
}

/* ── 標題牌：浮在面板上緣的那塊招牌 ─────────────────────
   HTML：<div class="npl-plaque"><i class="npl-gem"></i><h2>標題</h2><i class="npl-gem"></i></div>
   負邊距讓它壓在下一塊面板上；風格檔負責它的框與底。 */
.npl-plaque{
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  width: fit-content; max-width: 94%;
  margin: 0 auto -16px;
  position: relative; z-index: 3;
  padding: 9px 22px;
}
.npl-plaque h1,
.npl-plaque h2{
  margin: 0;
  font-size: clamp(18px, 4.4vw, 26px);
  line-height: 1.2;
  text-wrap: balance;
}
/* 裝飾寶石／圖釘。風格檔決定它是菱形寶石、鉚釘、方塊還是光點 */
.npl-gem{ width: 13px; height: 13px; flex: none; display: block; }

/* ── 面板：最主要的容器 ─────────────────────────────────
   .npl-panel 自己不給 padding —— 內容包一層 .npl-body，
   這樣「面板貼齊邊緣的東西」（例如整寬的表頭）才做得出來。 */
.npl-panel{ position: relative; }
.npl-body{ padding: 26px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.npl-body.tight{ padding: 14px; gap: 10px; }

/* 面板裡的小標與說明文字 */
.npl-sub{ text-align: center; font-size: 12.5px; letter-spacing: .05em; margin: -4px 0 0; }
.npl-note{ font-size: 12px; line-height: 1.6; margin: 0; }

/* ── 統計徽章列 ─────────────────────────────────────────
   HTML：<div class="npl-stats">
           <div class="npl-stat"><i class="npl-gem"></i><b>42</b><span>剩下天數</span></div>…
         </div> */
.npl-stats{ display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 10px; }
.npl-stat{ display: flex; align-items: center; gap: 9px; padding: 8px 12px; }
.npl-stat b{ font-size: 21px; line-height: 1; font-variant-numeric: tabular-nums; }
.npl-stat span{ font-size: 11px; line-height: 1.2; }

/* ── 進度條 ─────────────────────────────────────────────
   單色：<div class="npl-track"><i style="width:62%"></i></div>
   分格（像血條／經驗值）：<div class="npl-track seg">…一堆 <i> 各佔一格…</div>
   風格檔只管顏色與邊框，格子數由 HTML 決定。 */
.npl-track{ height: 20px; overflow: hidden; display: flex; }
.npl-track > i{ display: block; height: 100%; }
.npl-track.seg{ gap: 2px; padding: 2px; }
.npl-track.seg > i{ flex: 1 1 0; }
.npl-track.slim{ height: 12px; }

/* ── 內嵌卷軸／說明區（面板裡再嵌一塊淺色的） ───────────── */
.npl-scroll{ padding: 11px 14px; }

/* ── 列表 ───────────────────────────────────────────────
   HTML：<div class="npl-rows">
           <div class="npl-row"><span class="npl-rowname">國文</span>
             <span class="npl-tag ok">已對課本</span>
             <b class="npl-rowval">0%</b></div>…
         </div>
   .npl-rowname 會自動吃掉剩餘寬度，數值靠右。 */
.npl-rows{ display: flex; flex-direction: column; gap: 10px; }
.npl-row{ display: flex; align-items: center; gap: 9px; padding: 10px 13px; flex-wrap: wrap; }
.npl-rowname{ font-weight: 700; }
.npl-row > .npl-track{ flex: 1 1 100%; order: 9; }
.npl-rowval{ margin-left: auto; font-variant-numeric: tabular-nums; }
.npl-rowfoot{ flex: 1 1 100%; order: 10; font-size: 11px; }

/* ── 標籤膠囊 ───────────────────────────────────────────
   <span class="npl-tag ok|warn|bad|info">文字</span> */
.npl-tag{
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; font-size: 11px; font-weight: 700; line-height: 1.6;
  white-space: nowrap;
}

/* ── 按鈕 ───────────────────────────────────────────────
   <button class="npl-btn">確定</button>
   <button class="npl-btn ghost">取消</button> */
.npl-btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 20px; font: inherit; font-weight: 700;
  cursor: pointer; user-select: none;
}
.npl-btns{ display: flex; gap: 10px; flex-wrap: wrap; }
.npl-btns.end{ justify-content: flex-end; }

/* ── 導覽列 ─────────────────────────────────────────────
   <nav class="npl-nav"><a class="on">總覽</a><a>清單</a>…</nav> */
.npl-nav{ display: flex; gap: 8px; flex-wrap: wrap; padding: 8px; }
.npl-nav a{ padding: 7px 15px; cursor: pointer; text-decoration: none; font-weight: 700; font-size: 13px; }

/* ── 網格與卡片 ─────────────────────────────────────────
   <div class="npl-grid"><div class="npl-card">…</div>…</div>
   欄數自適應；想固定就覆寫 --npl-card-w。 */
.npl-grid{
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(var(--npl-card-w, 200px), 1fr));
}
.npl-card{ padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.npl-card h3{ margin: 0; font-size: 15px; }

/* ── 詳情頁：立繪 + 數值表 ──────────────────────────────
   <div class="npl-detail"><div class="npl-portrait">…</div><div class="npl-kv">…</div></div>
   窄螢幕自動收成上下疊。 */
.npl-detail{ display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 16px; }
.npl-portrait{ aspect-ratio: 3 / 4; display: grid; place-items: center; overflow: hidden; }
.npl-portrait img{ width: 100%; height: 100%; object-fit: cover; display: block; }

/* 數值表：左標籤右數值，一列一項 */
.npl-kv{ display: grid; grid-template-columns: auto 1fr auto; gap: 7px 10px; align-items: center; }
.npl-kv dt{ font-size: 12px; font-weight: 700; white-space: nowrap; }
.npl-kv dd{ margin: 0; grid-column: 2 / 4; font-variant-numeric: tabular-nums; text-align: right; }
/* 想在標籤與數值之間放一條進度條，就寫 <dd class="bar"> 包 .npl-track */
.npl-kv dd.bar{ grid-column: 2 / 3; text-align: left; }
.npl-kv dd.val{ grid-column: 3 / 4; }

/* ── 表單 ───────────────────────────────────────────────
   <label class="npl-field"><span>名稱</span><input></label> */
.npl-form{ display: flex; flex-direction: column; gap: 12px; }
.npl-field{ display: grid; grid-template-columns: minmax(88px, 26%) 1fr; gap: 10px; align-items: center; }
.npl-field > span{ font-size: 13px; font-weight: 700; }
.npl-field input,
.npl-field select,
.npl-field textarea{ font: inherit; width: 100%; padding: 8px 11px; }
.npl-field textarea{ min-height: 84px; resize: vertical; }

/* 開關：<label class="npl-switch"><input type="checkbox"><i></i><span>啟用</span></label> */
.npl-switch{ display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
.npl-switch input{ position: absolute; opacity: 0; width: 0; height: 0; }
.npl-switch > i{ width: 44px; height: 24px; flex: none; position: relative; display: block; }
.npl-switch > i::after{
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; transition: left .18s ease;
}
.npl-switch input:checked + i::after{ left: 23px; }

/* ── 分隔線 ─────────────────────────────────────────────── */
.npl-divider{ height: 2px; border: 0; margin: 2px 0; }


/* ████████████████████████████████████████████████████████████
   v1.1（2026-09-13）新增：工具類 + 網站類元件
   ────────────────────────────────────────────────────────────
   下面分兩種：
   【純排版】只在這裡定義，風格檔不必管（.npl-shell / .npl-cols / .npl-kanban …）
   【有外觀】這裡只給位置尺寸，七個風格檔都各自補了顏色邊框
   ████████████████████████████████████████████████████████████ */

/* ── 【純排版】多欄：<div class="npl-cols" style="--npl-cols:3">…</div>
   欄寬自動等分，窄螢幕收成一欄。 */
.npl-cols{ display: grid; gap: var(--npl-gap, 22px); grid-template-columns: repeat(var(--npl-cols, 2), minmax(0, 1fr)); }

/* ── 【純排版】側欄殼：後台、說明文件都用這個
   <div class="npl-shell"><aside>…</aside><main>…</main></div>
   側欄寬改 --npl-side。側欄裡放 <nav class="npl-nav col">。 */
.npl-shell{ display: grid; grid-template-columns: var(--npl-side, 220px) minmax(0, 1fr); gap: var(--npl-gap, 22px); align-items: start; }
.npl-shell > aside{ position: sticky; top: 14px; display: flex; flex-direction: column; gap: 12px; }
.npl-shell > main{ display: flex; flex-direction: column; gap: var(--npl-gap, 22px); min-width: 0; }
/* 直式導覽列：沿用 .npl-nav 的外觀，只改排列方向 */
.npl-nav.col{ flex-direction: column; gap: 2px; }
.npl-nav.col a{ display: block; }
.npl-nav small{ display: block; padding: 10px 15px 4px; font-size: 11px; letter-spacing: .08em; opacity: .7; }

/* ── 【純排版】整頁置中的窄盒（登入頁） */
.npl-center{ min-height: 86vh; display: grid; place-items: center; }
/* 裡面那層要跟 .npl-page 一樣有間距，否則標題牌的負邊距會直接壓進面板 */
.npl-center > *{ width: min(100%, var(--npl-box, 400px)); display: flex; flex-direction: column; gap: var(--npl-gap, 22px); }

/* ── 【純排版】網站頁首：左品牌、中連結、右按鈕
   <header class="npl-header"><a class="npl-brand">…</a><nav class="npl-nav">…</nav><div class="npl-btns">…</div></header> */
.npl-header{ display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.npl-header > .npl-nav{ margin-left: auto; }

/* 品牌字（Logo 文字）【有外觀】 */
.npl-brand{ display: inline-flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 800; text-decoration: none; white-space: nowrap; }

/* ── 【純排版】一般段落區塊（網站頁一段一段往下接） */
.npl-section{ display: flex; flex-direction: column; gap: 18px; padding: 18px 0; }
.npl-section > h2{ margin: 0; font-size: clamp(22px, 4vw, 30px); line-height: 1.25; text-align: center; text-wrap: balance; }
.npl-section > .npl-sub{ margin-top: -8px; }

/* ── 首頁大標題區【有外觀】
   <section class="npl-hero"><span class="npl-kicker">小標</span><h1>大標</h1><p class="npl-lead">導言</p><div class="npl-btns">…</div></section> */
.npl-hero{ display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 56px 12px 40px; }
.npl-hero h1{ margin: 0; font-size: clamp(32px, 7vw, 60px); line-height: 1.08; text-wrap: balance; max-width: 16em; }
.npl-hero .npl-btns{ justify-content: center; margin-top: 6px; }
.npl-lead{ margin: 0; font-size: clamp(15px, 2.4vw, 19px); line-height: 1.6; max-width: 36em; text-wrap: pretty; }
.npl-kicker{ display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; padding: 3px 11px; }

/* ── 功能圖示方塊【有外觀】：<span class="npl-icon">⚡</span> */
.npl-icon{ width: 42px; height: 42px; flex: none; display: grid; place-items: center; font-size: 20px; line-height: 1; }

/* ── 價格方案【有外觀】
   <div class="npl-card featured">…<div class="npl-amount"><b>$29</b><span>/ 月</span></div><ul class="npl-check">…</ul></div> */
.npl-card.featured{ position: relative; }
.npl-amount{ display: flex; align-items: baseline; gap: 6px; }
.npl-amount b{ font-size: 38px; line-height: 1; font-variant-numeric: tabular-nums; }
.npl-amount span{ font-size: 13px; }

/* 打勾清單【有外觀】：<ul class="npl-check"><li>…</li><li class="no">…</li></ul> */
.npl-check{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; }
.npl-check li{ position: relative; padding-left: 24px; }
.npl-check li::before{ content: '✓'; position: absolute; left: 0; top: 0; width: 17px; text-align: center; font-weight: 900; }
.npl-check li.no::before{ content: '–'; }
.npl-check li.no{ opacity: .55; }

/* ── 資料表格【有外觀】
   <div class="npl-tablewrap"><table class="npl-table">…</table></div>
   外面那層負責窄螢幕橫向捲動；數字欄加 class="num" 靠右對齊。 */
.npl-tablewrap{ overflow-x: auto; -webkit-overflow-scrolling: touch; }
.npl-table{ width: 100%; border-collapse: collapse; font-size: 13.5px; }
.npl-table th,
.npl-table td{ padding: 9px 12px; text-align: left; vertical-align: middle; white-space: nowrap; }
.npl-table th{ font-size: 12px; font-weight: 700; }
.npl-table .num{ text-align: right; font-variant-numeric: tabular-nums; }
.npl-table td.wrap{ white-space: normal; min-width: 14em; }

/* ── 分頁籤【有外觀】：<div class="npl-tabs"><a class="on">全部</a><a>進行中</a></div> */
.npl-tabs{ display: flex; gap: 4px; flex-wrap: wrap; }
.npl-tabs a{ padding: 8px 14px; cursor: pointer; text-decoration: none; font-size: 13px; font-weight: 700; }

/* ── 麵包屑【有外觀】：<nav class="npl-crumbs"><a>首頁</a><a>文件</a><span>目前頁</span></nav> */
.npl-crumbs{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; }
.npl-crumbs a{ text-decoration: none; cursor: pointer; }
.npl-crumbs > * + *::before{ content: '/'; margin-right: 6px; opacity: .45; }

/* ── 提示框【有外觀】：<div class="npl-alert warn"><b>標題</b><span>內容</span></div>
   不加顏色 class 就是一般資訊。 */
.npl-alert{ display: flex; flex-direction: column; gap: 3px; padding: 11px 14px; font-size: 13px; line-height: 1.55; }
.npl-alert b{ font-size: 13.5px; }

/* ── 頭像【有外觀】：<span class="npl-avatar">賽</span>，可放 <img>；.lg 是大顆 */
.npl-avatar{ width: 34px; height: 34px; flex: none; display: inline-grid; place-items: center; overflow: hidden; font-size: 13px; font-weight: 700; }
.npl-avatar.lg{ width: 64px; height: 64px; font-size: 22px; }
.npl-avatar img{ width: 100%; height: 100%; object-fit: cover; }

/* ── 【純排版】聊天容器 + 泡泡【有外觀】
   <div class="npl-chat"><div class="npl-msg"><span class="npl-avatar">A</span><div><p>…</p><small>10:24</small></div></div>
                          <div class="npl-msg me">…</div></div> */
.npl-chat{ display: flex; flex-direction: column; gap: 12px; }
.npl-msg{ display: flex; gap: 9px; align-items: flex-end; max-width: 82%; }
.npl-msg > div{ padding: 9px 13px; display: flex; flex-direction: column; gap: 3px; }
.npl-msg p{ margin: 0; line-height: 1.55; }
.npl-msg small{ font-size: 10.5px; opacity: .65; }
.npl-msg.me{ align-self: flex-end; flex-direction: row-reverse; }
.npl-msg.me small{ text-align: right; }

/* ── 時間軸【有外觀】
   <ol class="npl-timeline"><li class="on"><small>09-12</small><b>標題</b><p>內容</p></li>…</ol>
   左邊一條線 + 每筆一個點；.on 是亮點（最新／進行中）。 */
.npl-timeline{ list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; display: flex; flex-direction: column; gap: 18px; }
.npl-timeline::before{ content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; }
.npl-timeline li{ position: relative; display: flex; flex-direction: column; gap: 2px; }
.npl-timeline li::before{ content: ''; position: absolute; left: -25px; top: 5px; width: 14px; height: 14px; box-sizing: border-box; }
.npl-timeline small{ font-size: 11.5px; }
.npl-timeline b{ font-size: 14.5px; }
.npl-timeline p{ margin: 0; font-size: 13px; line-height: 1.6; }

/* ── 看板【純排版】+ 看板欄【有外觀】
   <div class="npl-kanban"><section class="npl-col"><h3>待辦 <span class="npl-tag">3</span></h3>…npl-card…</section>…</div>
   欄寬改 --npl-col-w；太多欄會橫向捲。 */
.npl-kanban{ display: grid; grid-auto-flow: column; grid-auto-columns: minmax(var(--npl-col-w, 240px), 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.npl-col{ display: flex; flex-direction: column; gap: 9px; padding: 10px; }
.npl-col > h3{ margin: 0 0 2px; font-size: 13px; display: flex; align-items: center; gap: 8px; }

/* ── 空狀態【純排版】：<div class="npl-empty"><span class="npl-icon">📭</span><b>還沒有資料</b><p class="npl-note">…</p><button class="npl-btn">…</button></div> */
.npl-empty{ display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 30px 16px; }
.npl-empty > b{ font-size: 16px; }
.npl-empty .npl-note{ max-width: 28em; }

/* ── 彈窗底【有外觀】：<div class="npl-overlay"><div class="npl-panel">…</div></div>
   預設蓋滿整個畫面；.demo 是「放在頁面裡示範用」，不會蓋住別的東西。
   開關用 JS 切 hidden 屬性即可。 */
.npl-overlay{ position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.npl-overlay[hidden]{ display: none; }
.npl-overlay > *{ width: min(100%, var(--npl-box, 440px)); }
.npl-overlay.demo{ position: relative; inset: auto; z-index: auto; min-height: 280px; }

/* ── 文章排版【有外觀】：<article class="npl-article">一般 h2/h3/p/ul/blockquote/pre/img 直接寫</article> */
.npl-article{ font-size: 16px; line-height: 1.8; max-width: var(--npl-read, 680px); margin: 0 auto; width: 100%; }
.npl-article > *{ margin: 0 0 1em; }
.npl-article h1{ font-size: clamp(28px, 5.5vw, 42px); line-height: 1.2; margin-bottom: .45em; text-wrap: balance; }
.npl-article h2{ font-size: 24px; line-height: 1.3; margin-top: 1.6em; margin-bottom: .5em; }
.npl-article h3{ font-size: 18px; line-height: 1.4; margin-top: 1.3em; margin-bottom: .4em; }
.npl-article ul,
.npl-article ol{ padding-left: 1.4em; }
.npl-article li + li{ margin-top: .3em; }
.npl-article blockquote{ padding: 4px 0 4px 18px; }
.npl-article blockquote p{ margin: 0; }
.npl-article pre{ padding: 14px 16px; overflow-x: auto; font-size: 13px; line-height: 1.6; }
.npl-article code{ font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .9em; }
.npl-article pre code{ font-size: inherit; }
.npl-article :not(pre) > code{ padding: 1px 6px; }
.npl-article img{ max-width: 100%; height: auto; display: block; }
.npl-article figure{ margin-left: 0; margin-right: 0; }
.npl-article figcaption{ font-size: 12.5px; margin-top: 6px; text-align: center; }
.npl-article .npl-meta{ display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.4; }

/* ── 常見問題【有外觀】：<details class="npl-faq"><summary>問題</summary><p>答案</p></details> */
.npl-faq{ padding: 0; }
.npl-faq summary{ padding: 13px 16px; cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 10px; }
.npl-faq summary::-webkit-details-marker{ display: none; }
.npl-faq summary::after{ content: '+'; margin-left: auto; font-size: 18px; line-height: 1; transition: transform .18s ease; }
.npl-faq[open] summary::after{ transform: rotate(45deg); }
.npl-faq > p{ margin: 0; padding: 0 16px 14px; font-size: 13.5px; line-height: 1.7; }

/* ── 頁尾【有外觀】：<footer class="npl-footer"><div class="npl-cols" style="--npl-cols:4">…</div><p class="npl-note">©</p></footer> */
.npl-footer{ padding: 28px 18px 22px; display: flex; flex-direction: column; gap: 18px; font-size: 13px; }
.npl-footer h4{ margin: 0 0 8px; font-size: 12.5px; letter-spacing: .06em; }
.npl-footer a{ display: block; text-decoration: none; padding: 2px 0; cursor: pointer; }


/* ── 窄螢幕 ─────────────────────────────────────────────
   一個斷點就夠：兩欄的東西全收成單欄。 */
@media (max-width: 620px){
  .npl-detail{ grid-template-columns: 1fr; }
  .npl-field{ grid-template-columns: 1fr; gap: 5px; align-items: start; }
  .npl-page{ padding: 18px 10px 70px; }
  .npl-portrait{ max-width: 260px; margin: 0 auto; }
  .npl-cols{ grid-template-columns: 1fr; }
  .npl-msg{ max-width: 94%; }
}
/* 側欄殼要早一點收：側欄 + 表格在 800px 以下就擠了 */
@media (max-width: 820px){
  .npl-shell{ grid-template-columns: 1fr; }
  .npl-shell > aside{ position: static; }
  .npl-header > .npl-nav{ margin-left: 0; }
}

/* ── 無障礙：系統開了「減少動態效果」就把過渡關掉 ───────── */

/* ==== 版型_06 極簡科技 ==== */
/* ============================================================
   NPG 版型模板 — 版型_06 · 極簡科技（Minimal Light）
   ------------------------------------------------------------
   白底 × 淺灰細框 × 靛藍主色 × 大留白。像 Linear / Vercel 的亮色版。
   適合：一般網站、產品首頁、SaaS 後台、說明文件、任何「不要有遊戲味」的頁面。
   ⚠ 必須先引 _core.css。換膚只改下面 :root 那一段。

   ⚠ 這是全庫**第一個亮底風格**。它的好看靠三件事，不要拿掉：
     ① 邊框只用 1px 淺灰，不要加粗
     ② 陰影極淡（幾乎看不到），不要加深
     ③ 主色只出現在「按鈕、選中、連結」三個地方 —— 到處塗主色就廉價了
   字體：Inter + Noto Sans TC（沒有也不會壞，會退回系統字）。
   ============================================================ */

:root{
  --m-bg:#FAFAFA;  --m-surface:#FFFFFF; --m-sunk:#F4F4F5; --m-hover:#F0F0F2;
  --m-line:#E4E4E7; --m-line-2:#D4D4D8;
  --m-fg:#0A0A0B;  --m-fg-2:#3F3F46; --m-mute:#71717A; --m-dim:#A1A1AA;
  /* 主色：靛藍。要換主色改這三個，--m-accent-rgb 必須跟 --m-accent 同色 */
  --m-accent:#4F46E5; --m-accent-hi:#6366F1; --m-accent-rgb:79,70,229;
  --m-ok:#16A34A; --m-warn:#D97706; --m-bad:#DC2626; --m-info:#2563EB;
  --m-radius: 10px;
  --m-shadow: 0 1px 2px rgba(0,0,0,.04), 0 1px 1px rgba(0,0,0,.02);

  --npl-w: 1040px;
  --npl-gap: 20px;
}

body{
  font-family:"Inter","Noto Sans TC",system-ui,-apple-system,"Segoe UI",sans-serif;
  color: var(--m-fg);
  background: var(--m-bg);
  -webkit-font-smoothing: antialiased;
}
/* 頂端一抹很淡的主色光，讓白底不死板。純裝飾 */
body::before{
  content:""; position: fixed; inset: 0 0 auto 0; height: 420px; pointer-events: none; z-index: 0;
  background: radial-gradient(700px 300px at 50% -80px, rgba(var(--m-accent-rgb),.07), transparent 70%);
}

/* ── 面板 ───────────────────────────────────────────────── */
.npl-panel{
  background: var(--m-surface);
  border: 1px solid var(--m-line);
  border-radius: calc(var(--m-radius) + 2px);
  box-shadow: var(--m-shadow);
  color: var(--m-fg);
}
/* 標題不再壓在面板上，所以上方 padding 收回來 */
.npl-body{ padding: 20px; }

/* ── 標題牌：不是招牌，是面板上方一行靠左的小標題 ─────────── */
.npl-plaque{
  margin: 6px auto -8px 0; padding: 0 2px;
  justify-content: flex-start; gap: 9px;
}
.npl-plaque h1,
.npl-plaque h2{ font-size: 17px; font-weight: 650; letter-spacing: -.01em; color: var(--m-fg); }
.npl-plaque h1{ font-size: clamp(20px, 3.4vw, 24px); }
/* 兩顆寶石只留前面那顆當小色點 */
.npl-plaque .npl-gem:last-child{ display: none; }

.npl-gem{ width: 8px; height: 8px; border-radius: 3px; background: var(--m-accent); }
.npl-gem.blue { background: var(--m-info); }
.npl-gem.red  { background: var(--m-bad); }
.npl-gem.green{ background: var(--m-ok); }

/* ── 面板內文字 ─────────────────────────────────────────── */
.npl-sub { color: var(--m-mute); text-align: left; letter-spacing: 0; font-size: 13px; }
.npl-note{ color: var(--m-fg-2); font-size: 13px; }

/* ── 統計徽章：白卡 + 大數字 ────────────────────────────── */
.npl-stat{
  background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-radius);
  padding: 12px 14px; flex-wrap: wrap;
}
.npl-stat b   { color: var(--m-fg); font-weight: 650; font-size: 22px; letter-spacing: -.02em; }
.npl-stat span{ color: var(--m-mute); font-size: 12px; }
.npl-stat.ok  b{ color: var(--m-ok); }
.npl-stat.bad b{ color: var(--m-bad); }

/* ── 進度條：細、圓、單色 ───────────────────────────────── */
.npl-track{ height: 8px; border-radius: 99px; background: var(--m-sunk); box-shadow: inset 0 0 0 1px var(--m-line); }
.npl-track > i{ background: var(--m-accent); border-radius: 99px; }
.npl-track.slim{ height: 6px; }
.npl-track.seg{ height: 10px; gap: 3px; padding: 0; background: none; box-shadow: none; }
.npl-track.seg > i{ border-radius: 2px; background: var(--m-line); }
.npl-track.seg > i.on{ background: var(--m-accent); }

/* ── 內嵌區塊 ───────────────────────────────────────────── */
.npl-scroll{ background: var(--m-sunk); border: 1px solid var(--m-line); border-radius: var(--m-radius); color: var(--m-fg-2); }

/* ── 列表 ───────────────────────────────────────────────── */
.npl-rows{ gap: 0; border: 1px solid var(--m-line); border-radius: var(--m-radius); overflow: hidden; }
.npl-row{ background: var(--m-surface); color: var(--m-fg); border-bottom: 1px solid var(--m-line); }
.npl-row:last-child{ border-bottom: 0; }
.npl-row:hover{ background: var(--m-hover); }
.npl-row.on{ background: rgba(var(--m-accent-rgb),.06); box-shadow: inset 2px 0 0 var(--m-accent); }
.npl-rowname{ color: var(--m-fg); font-weight: 600; }
.npl-rowval { color: var(--m-fg-2); font-weight: 600; }
.npl-rowfoot{ color: var(--m-mute); }

/* ── 標籤：淡底深字 ─────────────────────────────────────── */
.npl-tag{ border-radius: 99px; font-weight: 600; background: rgba(22,163,74,.1); color:#15803D; box-shadow: inset 0 0 0 1px rgba(22,163,74,.2); }
.npl-tag.warn{ background: rgba(217,119,6,.1);  color:#B45309; box-shadow: inset 0 0 0 1px rgba(217,119,6,.22); }
.npl-tag.bad { background: rgba(220,38,38,.08); color:#B91C1C; box-shadow: inset 0 0 0 1px rgba(220,38,38,.2); }
.npl-tag.info{ background: rgba(var(--m-accent-rgb),.08); color: var(--m-accent); box-shadow: inset 0 0 0 1px rgba(var(--m-accent-rgb),.2); }

/* ── 按鈕 ───────────────────────────────────────────────── */
.npl-btn{
  border: 1px solid transparent; border-radius: 8px; padding: 8px 16px; font-size: 14px; font-weight: 600;
  color:#FFF; background: var(--m-accent);
  box-shadow: 0 1px 2px rgba(var(--m-accent-rgb),.3), inset 0 1px 0 rgba(255,255,255,.15);
  transition: background .15s ease;
}
.npl-btn:hover { background: var(--m-accent-hi); }
.npl-btn:active{ transform: translateY(1px); }
.npl-btn:focus-visible{ outline: 2px solid rgba(var(--m-accent-rgb),.5); outline-offset: 2px; }
.npl-btn.ghost{ color: var(--m-fg); background: var(--m-surface); border-color: var(--m-line-2); box-shadow: var(--m-shadow); }
.npl-btn.ghost:hover{ background: var(--m-hover); }

/* ── 導覽列 ─────────────────────────────────────────────── */
.npl-nav{ padding: 4px; gap: 2px; background: transparent; }
.npl-nav a{ border-radius: 7px; color: var(--m-mute); font-weight: 500; font-size: 14px; padding: 6px 12px; }
.npl-nav a:hover{ color: var(--m-fg); background: var(--m-hover); }
.npl-nav a.on{ color: var(--m-fg); background: var(--m-surface); box-shadow: inset 0 0 0 1px var(--m-line), var(--m-shadow); }
.npl-nav small{ color: var(--m-dim); font-weight: 600; text-transform: uppercase; }

/* ── 卡片 ───────────────────────────────────────────────── */
.npl-card{ background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-radius); color: var(--m-fg); padding: 16px; transition: border-color .15s ease, box-shadow .15s ease; }
.npl-card:hover{ border-color: var(--m-line-2); box-shadow: 0 4px 16px rgba(0,0,0,.05); }
.npl-card h3{ color: var(--m-fg); font-weight: 600; font-size: 15px; }

/* ── 立繪框與數值表 ─────────────────────────────────────── */
.npl-portrait{ background: var(--m-sunk); border: 1px solid var(--m-line); border-radius: var(--m-radius); color: var(--m-dim); }
.npl-kv dt { color: var(--m-mute); font-weight: 500; }
.npl-kv dd { color: var(--m-fg); font-weight: 600; }

/* ── 表單 ───────────────────────────────────────────────── */
.npl-field > span{ color: var(--m-fg-2); font-weight: 500; }
.npl-field input,
.npl-field select,
.npl-field textarea{
  color: var(--m-fg); background: var(--m-surface);
  border: 1px solid var(--m-line-2); border-radius: 8px; box-shadow: var(--m-shadow);
}
.npl-field input::placeholder,
.npl-field textarea::placeholder{ color: var(--m-dim); }
.npl-field input:focus,
.npl-field select:focus,
.npl-field textarea:focus{ outline: none; border-color: var(--m-accent); box-shadow: 0 0 0 3px rgba(var(--m-accent-rgb),.15); }
.npl-switch > i{ border-radius: 99px; background: var(--m-line-2); transition: background .15s ease; }
.npl-switch > i::after{ border-radius: 99px; background:#FFF; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.npl-switch input:checked + i{ background: var(--m-accent); }
.npl-switch input:focus-visible + i{ box-shadow: 0 0 0 3px rgba(var(--m-accent-rgb),.25); }
.npl-switch > span{ color: var(--m-fg); }
.npl-field input[type=range]{ padding: 0; border: 0; background: none; box-shadow: none; accent-color: var(--m-accent); }

/* ── 分隔線 ─────────────────────────────────────────────── */
.npl-divider{ height: 1px; background: var(--m-line); }


/* ████████████████████████████████████████████████████████████
   v1.1 新增元件（本風格首發就含）
   亮底風格面板內外同色系，放哪裡都讀得清楚。
   ████████████████████████████████████████████████████████████ */

/* 網站頁首與大標題 */
.npl-brand{ color: var(--m-fg); font-weight: 700; letter-spacing: -.02em; }
.npl-hero h1,
.npl-section > h2{ color: var(--m-fg); font-weight: 700; letter-spacing: -.035em; }
.npl-hero h1{ background: linear-gradient(180deg, var(--m-fg) 30%, #52525B); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: .06em; }
.npl-section > .npl-sub{ text-align: center; }
.npl-lead{ color: var(--m-mute); }
.npl-kicker{ color: var(--m-accent); background: rgba(var(--m-accent-rgb),.07); border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(var(--m-accent-rgb),.2); letter-spacing: .02em; font-weight: 600; }
.npl-icon{ border-radius: 10px; background: var(--m-surface); border: 1px solid var(--m-line); box-shadow: var(--m-shadow); }

/* 價格方案 */
.npl-card.featured{ border-color: var(--m-accent); box-shadow: 0 0 0 1px var(--m-accent), 0 12px 32px rgba(var(--m-accent-rgb),.12); }
.npl-amount b   { color: var(--m-fg); font-weight: 700; letter-spacing: -.03em; }
.npl-amount span{ color: var(--m-mute); }
.npl-check li{ color: var(--m-fg-2); }
.npl-check li::before{ color: var(--m-accent); }

/* 表格 */
.npl-tablewrap{ border: 1px solid var(--m-line); border-radius: var(--m-radius); }
.npl-table th{ color: var(--m-mute); font-weight: 500; background: var(--m-sunk); border-bottom: 1px solid var(--m-line); }
.npl-table td{ color: var(--m-fg); border-bottom: 1px solid var(--m-line); }
.npl-table tbody tr:last-child td{ border-bottom: 0; }
.npl-table tbody tr:hover td{ background: var(--m-hover); }
.npl-table tr.on td{ background: rgba(var(--m-accent-rgb),.05); }

/* 分頁籤與麵包屑 */
.npl-tabs{ gap: 18px; border-bottom: 1px solid var(--m-line); }
.npl-tabs a{ padding: 9px 0; color: var(--m-mute); font-weight: 500; box-shadow: inset 0 -2px 0 transparent; }
.npl-tabs a:hover{ color: var(--m-fg); }
.npl-tabs a.on{ color: var(--m-fg); box-shadow: inset 0 -2px 0 var(--m-fg); }
.npl-crumbs{ color: var(--m-dim); }
.npl-crumbs a{ color: var(--m-mute); }
.npl-crumbs a:hover{ color: var(--m-fg); }
.npl-crumbs span{ color: var(--m-fg); font-weight: 500; }

/* 提示框 */
.npl-alert       { border-radius: var(--m-radius); color: var(--m-fg-2); background: rgba(37,99,235,.05); border: 1px solid rgba(37,99,235,.2); }
.npl-alert b     { color:#1D4ED8; font-weight: 600; }
.npl-alert.ok    { background: rgba(22,163,74,.05); border-color: rgba(22,163,74,.22); }
.npl-alert.ok b  { color:#15803D; }
.npl-alert.warn  { background: rgba(217,119,6,.06); border-color: rgba(217,119,6,.25); }
.npl-alert.warn b{ color:#B45309; }
.npl-alert.bad   { background: rgba(220,38,38,.05); border-color: rgba(220,38,38,.22); }
.npl-alert.bad b { color:#B91C1C; }

/* 頭像與聊天 */
.npl-avatar{ border-radius: 50%; color: var(--m-fg-2); background: linear-gradient(135deg,#E0E7FF,#F5F3FF); box-shadow: inset 0 0 0 1px var(--m-line); font-weight: 600; }
.npl-msg > div{ border-radius: 14px 14px 14px 4px; background: var(--m-sunk); color: var(--m-fg); }
.npl-msg.me > div{ border-radius: 14px 14px 4px 14px; background: var(--m-accent); color:#FFF; }

/* 時間軸 */
.npl-timeline::before{ width: 1px; left: 7.5px; background: var(--m-line); }
.npl-timeline li::before{ border-radius: 50%; background: var(--m-surface); border: 2px solid var(--m-line-2); }
.npl-timeline li.on::before{ border-color: var(--m-accent); box-shadow: 0 0 0 4px rgba(var(--m-accent-rgb),.14); }
.npl-timeline small{ color: var(--m-dim); }
.npl-timeline b    { color: var(--m-fg); font-weight: 600; }
.npl-timeline p    { color: var(--m-mute); }

/* 看板欄 */
.npl-col{ background: var(--m-sunk); border: 1px solid var(--m-line); border-radius: calc(var(--m-radius) + 2px); }
.npl-col > h3{ color: var(--m-fg-2); font-weight: 600; }

/* 彈窗底 */
.npl-overlay{ background: rgba(10,10,11,.35); backdrop-filter: blur(4px); }
.npl-overlay.demo{ border-radius: calc(var(--m-radius) + 2px); }
.npl-overlay .npl-panel{ box-shadow: 0 24px 60px rgba(0,0,0,.18); }

/* 文章 */
.npl-article{ color: var(--m-fg-2); }
.npl-article h1,
.npl-article h2,
.npl-article h3{ color: var(--m-fg); font-weight: 700; letter-spacing: -.02em; }
.npl-article a{ color: var(--m-accent); text-underline-offset: 3px; }
.npl-article blockquote{ border-left: 3px solid var(--m-line-2); color: var(--m-mute); }
.npl-article pre{ background:#0A0A0B; color:#E4E4E7; border-radius: var(--m-radius); }
.npl-article :not(pre) > code{ background: var(--m-sunk); border: 1px solid var(--m-line); border-radius: 5px; color: var(--m-fg); }
.npl-article figcaption,
.npl-article .npl-meta{ color: var(--m-mute); }

/* 常見問題 */
.npl-faq{ background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-radius); color: var(--m-fg); }
.npl-faq summary{ font-weight: 600; }
.npl-faq summary::after{ color: var(--m-mute); font-weight: 400; }
.npl-faq > p{ color: var(--m-mute); }

/* 頁尾 */
.npl-footer{ border-top: 1px solid var(--m-line); color: var(--m-mute); }
.npl-footer h4{ color: var(--m-fg); font-weight: 600; }
.npl-footer a{ color: var(--m-mute); }
.npl-footer a:hover{ color: var(--m-fg); }
