/* ──────────────────────────────────────────────────────────────
   三金科技 Triotechno 官網樣式「分類資料夾與便利貼」
   交給三金的事，會被整理得像一疊分好類的資料夾。
   ────────────────────────────────────────────────────────────── */

/* 字型為 SIL OFL 1.1，僅保留本站用字的子集 */
@font-face { font-family: 'Noto Sans TC'; font-weight: 100 900; font-display: swap; src: url('fonts/noto-sans-tc-subset.woff2?v=79779d35') format('woff2'); }

:root {
  --desk: #F2F5F6;          /* 桌面 */
  --paper: #FFFFFF;         /* 紙 */
  --ink: #0B2D4F;
  --ink-2: #3A5872;
  --ink-3: #566C83;
  --rule: #D5DDE3;
  --rule-input: #7D91A4;
  --teal: #01929B;  --teal-ink: #016E75;
  --gold: #C09643;  --gold-ink: #7E5F1F;   /* 只給目前抽出的那一夾 */
  --sticky: #FFF1B8;                        /* 便利貼：需求便條與目前位置 */
  --danger: #B3261E;

  /* 五個分類夾的標籤色 */
  --t-dev: #D9EEEF;
  --t-security: #DFE6EE;
  --t-modernization: #DCEAF5;
  --t-consulting: #E2EDE6;
  --t-maintenance: #F3E9D3;

  --paper-shadow: 0 1px 2px rgba(11,45,79,0.06), 0 22px 44px -26px rgba(11,45,79,0.32);
  --sans: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --max: 1280px;
  --section: clamp(64px, 8vw, 120px);
  --r: 4px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; scrollbar-color: #B9C5CE var(--desk); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--desk); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.8; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--sticky); color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
input, textarea { caret-color: var(--teal); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--desk); }
::-webkit-scrollbar-thumb { background: #C3CDD5; border: 3px solid var(--desk); border-radius: 12px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 400; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r); text-decoration: none; }
.skip-link:focus { top: 12px; }
.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* ─── 服務編號（標籤上的號碼）──────────────────────── */
.no {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-width: 2.3em; height: 1.65em; padding: 0 0.35em; border: 1.5px solid var(--ink); border-radius: 3px;
  background: var(--paper); font-size: 0.78rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
}

/* ─── 紙 ───────────────────────────────────────────── */
.sheet { background: var(--paper); border-radius: var(--r); box-shadow: var(--paper-shadow); padding: clamp(22px, 4vw, 56px); }
.sheet--ruled .steps li + li, .sheet--ruled .checklist li { border-top: 1px dashed #C9D3DB; }

/* ─── 按鈕與連結 ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border: 2px solid var(--ink); border-radius: var(--r);
  background: var(--ink); color: #fff; font-weight: 700; letter-spacing: 0.03em; white-space: nowrap;
  text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn .icon { transition: transform 0.3s var(--ease); }
.btn:hover { background: var(--teal-ink); border-color: var(--teal-ink); color: #fff; }
.btn:hover .icon { transform: translateX(3px); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 0.92rem; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn[disabled] { background: var(--rule); border-color: var(--rule); color: var(--ink-3); cursor: default; }
.btn.is-loading { pointer-events: none; opacity: 0.75; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.link .icon { transition: transform 0.3s var(--ease); }
.link:hover { color: var(--teal-ink); border-color: var(--teal); }
.link:hover .icon { transform: translateX(4px); }

/* ─── Header ───────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 300; background: rgba(255,255,255,0.94); border-bottom: 1px solid var(--rule); }
@supports (backdrop-filter: blur(1px)) { .site-header { background: rgba(255,255,255,0.84); backdrop-filter: saturate(1.3) blur(14px); } }
.header-inner { height: 76px; display: flex; align-items: center; gap: 28px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .nav-group > button {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 3px;
  background: none; border: 0; cursor: pointer; font-size: 0.97rem; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color 0.2s, background 0.2s;
}
.nav > a:hover, .nav-group > button:hover { color: var(--ink); background: var(--desk); }
/* 目前頁面：貼一張便利貼旗標 */
.nav [aria-current="page"], .nav-group.is-current > button { color: var(--ink); font-weight: 700; background: var(--sticky); box-shadow: 0 6px 10px -8px rgba(11,45,79,0.5); }
.nav-group { position: relative; }
.nav-group .icon { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.nav-group[data-open] .icon { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 270px; list-style: none;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 8px;
  box-shadow: 0 20px 44px -20px rgba(11,45,79,0.38);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
}
.nav-group[data-open] .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 3px; text-decoration: none; font-weight: 500; }
.nav-menu a:hover { background: var(--desk); }
.nav-menu a[aria-current="page"] { background: var(--sticky); font-weight: 700; }
.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--rule); border-radius: var(--r); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle .icon { width: 20px; height: 20px; }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { margin-left: auto; }
  .nav { position: fixed; inset: 76px 0 auto 0; margin: 0; display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 2px solid var(--ink); padding: 8px var(--gutter) 24px; max-height: calc(100dvh - 76px); overflow-y: auto; }
  .site-header[data-menu-open] .nav { display: flex; }
  .nav > a, .nav-group > button { width: 100%; height: 54px; padding: 0 8px; justify-content: space-between; border-bottom: 1px solid var(--rule); font-size: 1.05rem; border-radius: 0; }
  .nav-menu { position: static; display: none; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 4px 0 10px; min-width: 0; background: transparent; }
  .nav-group[data-open] .nav-menu { display: block; }
  .nav .nav-cta { display: flex; margin-top: 20px; }
}
@media (min-width: 961px) { .nav .nav-cta { display: none; } }
@media (max-width: 380px) { .header-cta { padding: 0 12px; } .brand img { height: 32px; } }

/* ─── 首頁 Hero ───────────────────────────────────── */
.hero { padding: clamp(20px, 3vw, 44px) 0 clamp(48px, 6vw, 88px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "copy files" "note files"; gap: clamp(28px, 3.5vw, 44px) clamp(28px, 4vw, 64px); align-items: start;
}
.hero-copy { grid-area: copy; }
.hero-note { grid-area: note; }
.hero-files { grid-area: files; align-self: center; padding-top: 12px; }
.hero-title { font-weight: 900; font-size: clamp(2.6rem, 4.9vw, 4.6rem); line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
.hero-lede { margin-top: clamp(16px, 2vw, 24px); max-width: 30em; font-size: clamp(1rem, 1.15vw, 1.1rem); color: var(--ink-2); }
.hero-lede strong { color: var(--ink); }

/* 便利貼：我需要… */
.note {
  position: relative; max-width: 470px; background: var(--sticky); padding: 22px 26px 24px;
  border-radius: 2px 2px 14px 2px; transform: rotate(-1.2deg);
  box-shadow: 0 2px 3px rgba(11,45,79,0.08), 0 20px 30px -18px rgba(11,45,79,0.45);
}
.note h2 { display: flex; align-items: baseline; gap: 10px; font-size: 1.45rem; font-weight: 900; line-height: 1.3; margin-bottom: 4px; }
.note h2 small { font-size: 0.85rem; font-weight: 500; color: var(--ink-2); }
.note fieldset { border: 0; min-width: 0; }
.opt { position: relative; display: flex; align-items: center; gap: 10px; min-height: 40px; border-bottom: 1px dashed rgba(11,45,79,0.28); cursor: pointer; font-weight: 500; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .no { background: transparent; }
.box { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border: 1.5px solid var(--ink); border-radius: 50%; background: rgba(255,255,255,0.6); }
.tick { width: 16px; height: 16px; fill: none; stroke: var(--teal-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 0.3s var(--ease); }
.opt:hover .box { border-width: 2.5px; }
.opt:has(input:checked) { font-weight: 800; }
.opt:has(input:checked) .box { border-width: 2.5px; background: #fff; }
.opt:has(input:checked) .tick { stroke-dashoffset: 0; }
.opt:has(input:focus-visible) .box { outline: 3px solid var(--teal); outline-offset: 2px; }
.note-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.note-foot p { font-size: 0.86rem; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .tick { transition: none; } }

/* 分類夾 */
.cabinet { position: relative; }
.tabs { position: relative; z-index: 3; display: flex; gap: 4px; padding-left: 14px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px;
  border: 1.5px solid var(--ink); border-bottom: 0; border-radius: 10px 10px 0 0;
  background: var(--tint, #fff); color: var(--ink); font-weight: 700; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  transform: translateY(calc(var(--lift, 0) * -9px)); transition: transform 0.4s var(--ease), background 0.2s;
}
.tab .no { background: rgba(255,255,255,0.7); }
.tab[aria-selected="false"] { filter: saturate(0.9) brightness(0.98); }
.tab:hover { filter: none; text-decoration: underline; text-underline-offset: 0.3em; }
.tab[aria-selected="true"] { background: var(--gold); border-width: 2.5px; transform: translateY(2.5px); }
.tabs { padding-top: 40px; }
.tab--dev, .file--dev { --tint: var(--t-dev); }
.tab--security, .file--security { --tint: var(--t-security); }
.tab--modernization, .file--modernization { --tint: var(--t-modernization); }
.tab--consulting, .file--consulting { --tint: var(--t-consulting); }
.tab--maintenance, .file--maintenance { --tint: var(--t-maintenance); }
.files { position: relative; }
.file {
  position: relative; z-index: 2; background: var(--tint); border: 2.5px solid var(--ink); border-radius: 0 10px 10px 10px;
  padding: clamp(12px, 1.6vw, 20px); box-shadow: 0 30px 50px -30px rgba(11,45,79,0.45);
}
.files .file:not([hidden]) { animation: pull 0.55s var(--ease); }
@keyframes pull { from { transform: translateY(26px) rotate(-0.8deg); } }
.file-back {
  position: absolute; inset: 0; z-index: calc(2 - var(--n)); background: var(--tint, #fff); border: 1.5px solid var(--ink); border-radius: 0 10px 10px 10px;
  transform: translate(calc(var(--n) * 6px), calc(var(--n) * -9px));
  transition: transform 0.5s var(--ease), background 0.3s;
}
.files.is-shuffling .file-back { transform: translate(calc(var(--n) * 10px), calc(var(--n) * -4px)); }
@media (prefers-reduced-motion: reduce) { .file-back { transition: none; } }
.file-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(20px, 3vw, 36px); align-items: center; background: var(--paper); border-radius: 3px; padding: clamp(22px, 3vw, 40px); }
.file-text h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 900; line-height: 1.25; }
.file-text p { margin: 14px 0 22px; color: var(--ink-2); }
.photo { position: relative; padding: 8px; background: #fff; transform: rotate(2deg); box-shadow: 0 2px 4px rgba(11,45,79,0.12), 0 16px 26px -14px rgba(11,45,79,0.45); }
.photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(0.85); }
.clip { position: absolute; z-index: 1; top: -22px; left: 26px; width: 16px; height: 44px; fill: none; stroke: #5C6E80; stroke-width: 2.2; stroke-linecap: round; }
@media (prefers-reduced-motion: reduce) { .files .file:not([hidden]) { animation: none; } .tab { transition: none; } }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "note" "files"; }
  .note { max-width: 560px; }
}
@media (max-width: 640px) {
  .tabs { gap: 3px; padding-left: 6px; }
  .tab { gap: 5px; padding: 0 7px; height: 44px; font-size: 0.85rem; }
  .tab .no { min-width: 0; border: 0; padding: 0; background: none; font-size: 0.85rem; }
  .file-body { grid-template-columns: 1fr; }
  .photo { order: -1; transform: rotate(1.2deg); margin: 10px 4px 4px; }
  .file-back { transform: translate(calc(var(--n) * 3px), calc(var(--n) * -6px)); }
  .tab { transform: translateY(calc(var(--lift, 0) * -6px)); }
  .note { transform: rotate(-0.8deg); }
}

/* ─── 區段 ─────────────────────────────────────────── */
.section { padding-block: var(--section); }
.section--tight { padding-top: clamp(28px, 4vw, 48px); }
.section--flush { padding-block: calc(var(--section) * 0.6); }
.h2 { font-weight: 900; font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.22; letter-spacing: -0.01em; text-wrap: balance; }
.h3 { font-weight: 900; font-size: 1.3rem; line-height: 1.4; margin-bottom: 14px; }
.lead { margin-top: 16px; max-width: 34em; color: var(--ink-2); font-size: 1.05rem; }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 56px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.head .lead { margin-top: 0; }
.head--page { margin-bottom: 0; }
@media (max-width: 820px) { .head { grid-template-columns: 1fr; } }
.note-text { font-size: 0.85rem; color: var(--ink-3); }
.sheet > .note-text:last-child { margin-top: 20px; }

/* ─── 服務目錄 ─────────────────────────────────────── */
.toc { list-style: none; border-top: 2px solid var(--ink); }
.toc a {
  display: grid; grid-template-columns: 3.4rem minmax(0, 15rem) minmax(0, 1fr) auto; gap: 8px 28px; align-items: center;
  padding: 24px 12px; border-bottom: 1px dashed #B8C4CE; text-decoration: none; transition: background 0.2s;
}
.toc .no { font-size: 0.95rem; height: 2em; }
.toc-name { font-size: clamp(1.2rem, 1.8vw, 1.45rem); font-weight: 900; line-height: 1.35; }
.toc-desc { color: var(--ink-2); }
.toc-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.toc-go .icon { transition: transform 0.3s var(--ease); }
.toc a:hover { background: var(--sticky); }
.toc a:hover .no { border-width: 2.5px; }
.toc a:hover .toc-go .icon { transform: translateX(4px); }
@media (max-width: 900px) {
  .toc a { grid-template-columns: 3rem minmax(0, 1fr); gap: 4px 14px; align-items: start; padding: 20px 4px; }
  .toc .no { grid-row: 1 / span 3; margin-top: 4px; }
}

/* ─── 合作單位 ─────────────────────────────────────── */
.sheet .pgrid + .roster-foot { margin-top: 20px; }
.roster-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; }

/* ─── 為什麼選擇：清單紙 ──────────────────────────── */
.checklist { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 56px; }
.checklist li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 18px 0; }
.checklist .tick { width: 26px; height: 26px; margin-top: 2px; stroke-dashoffset: 0; padding: 3px; border: 1.5px solid var(--ink); border-radius: 3px; background: #fff; }
.checklist h3 { font-size: 1.15rem; font-weight: 900; line-height: 1.5; }
.checklist p { color: var(--ink-2); font-size: 0.98rem; margin-top: 2px; }
@media (max-width: 900px) { .checklist { grid-template-columns: 1fr; } }

/* ─── 收尾 ─────────────────────────────────────────── */
.closing { padding-block: 0 var(--section); }
.closing-sheet { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 88px); align-items: end; }
.closing .h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.closing .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.contact-list { border-top: 2px solid var(--ink); }
.contact-list div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px dashed #B8C4CE; }
.contact-list dt { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; color: var(--ink-2); }
.contact-list dt .icon { color: var(--teal-ink); width: 1.05em; height: 1.05em; }
.contact-list dd { overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--rule-input); }
.contact-list a:hover { color: var(--teal-ink); border-color: var(--teal); }
@media (max-width: 900px) { .closing-sheet { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .contact-list div { grid-template-columns: 1fr; gap: 2px; } }

/* ─── 內頁 ─────────────────────────────────────────── */
.page-hero { padding: clamp(24px, 3.5vw, 48px) 0 clamp(36px, 5vw, 64px); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; font-size: 0.88rem; color: var(--ink-3); margin-bottom: clamp(20px, 3vw, 36px); }
.crumbs li + li::before { content: '/'; margin: 0 10px; color: #A9B4BD; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--teal-ink); text-decoration: underline; }
.page-hero h1 { font-weight: 900; font-size: clamp(2.4rem, 5vw, 4.3rem); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.page-hero .lead { font-size: clamp(1.02rem, 1.3vw, 1.15rem); max-width: 34em; margin-top: 20px; }
.file--page { margin-top: 46px; }
.tab--static { position: absolute; top: -46px; left: -2.5px; height: 46px; transform: none; background: var(--gold); border-width: 2.5px; cursor: default; }
.file--page .photo { max-width: 460px; justify-self: end; }
@media (max-width: 760px) { .file--page .file-body { grid-template-columns: 1fr; } .file--page .photo { order: -1; justify-self: start; max-width: 100%; margin: 8px 4px; } }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.prose .h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 22px; }
.prose p { color: var(--ink-2); max-width: 36em; }
.prose p + p { margin-top: 1.1em; }
.steps { list-style: none; }
.steps li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0 14px; padding: 16px 0; }
.steps .box { border-radius: 3px; width: 2.2rem; height: 2.2rem; font-weight: 900; font-size: 1rem; border-width: 2px; background: #fff; }
.steps h3 { font-size: 1.12rem; font-weight: 900; line-height: 1.5; padding-top: 2px; }
.steps p { margin-top: 2px; color: var(--ink-2); font-size: 0.97rem; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }

.others { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding-left: 14px; border-bottom: 2.5px solid var(--ink); }
.others .tab { height: 52px; padding: 0 18px; font-size: 1rem; }
.others .tab:hover { border-width: 2.5px; }
@media (max-width: 640px) { .others { flex-direction: column; border-bottom: 0; padding-left: 0; gap: 8px; } .others .tab { width: 100%; border-bottom: 1.5px solid var(--ink); border-radius: var(--r); transform: none; } }

/* 合作夥伴頁 */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-bottom: 20px; }
.filters .grp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters .lbl { font-weight: 700; font-size: 0.95rem; margin-right: 6px; }
.chip { height: 40px; padding: 0 18px; background: #fff; border: 1.5px solid var(--rule-input); border-radius: var(--r); cursor: pointer; font-size: 0.95rem; color: var(--ink-2); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.select { height: 40px; min-width: 180px; padding: 0 38px 0 14px; border: 1.5px solid var(--rule-input); border-radius: var(--r); appearance: none; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2D4F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; }
.select:hover { border-color: var(--ink); }
.count { margin-left: auto; color: var(--ink-2); font-size: 0.95rem; }
.count b { font-size: 1.3rem; font-weight: 900; color: var(--ink); }
.pgrid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; border-top: 2px solid var(--ink); }
.pgrid li { padding: 18px 0 20px; border-bottom: 1px dashed #B8C4CE; display: flex; flex-direction: column; gap: 2px; }
.pgrid li[hidden] { display: none; }
.pgrid b { font-size: 1.08rem; font-weight: 700; }
.pgrid .unit { color: var(--ink-2); }
.pgrid .meta { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.pgrid .meta span { font-size: 0.8rem; padding: 1px 8px; border: 1px solid var(--rule); border-radius: 3px; color: var(--ink-2); }
@media (max-width: 900px) { .pgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pgrid { grid-template-columns: 1fr; } .count { margin-left: 0; width: 100%; } }
.empty { padding: 56px 0; text-align: center; color: var(--ink-3); }
.empty[hidden] { display: none; }
.empty .btn { margin-top: 16px; }

/* 聯絡頁與表單 */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.cform { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.cform .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field label .req { color: var(--danger); margin-left: 2px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 11px 14px; border: 1.5px solid var(--rule-input); border-radius: var(--r);
  background: #fff; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.75; }
.field select { appearance: none; cursor: pointer; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2D4F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; }
.field #type { background-color: var(--sticky); font-weight: 700; border-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #5B6F84; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink-2); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(1,146,155,0.18); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field .err { font-size: 0.88rem; color: var(--danger); }
.field .err:empty { display: none; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; border-top: 1px dashed #B8C4CE; }
.form-msg { grid-column: 1 / -1; padding: 14px 16px; background: var(--desk); border-radius: var(--r); font-size: 0.95rem; }
.form-msg[hidden] { display: none; }
.form-msg .bad { color: var(--danger); font-weight: 700; }
.form-msg .good { color: var(--teal-ink); font-weight: 700; }
@media (max-width: 600px) { .cform { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; } }
.aside-intro { color: var(--ink-2); margin-bottom: 24px; }
.aside-intro strong { color: var(--ink); }

/* ─── Footer ───────────────────────────────────────── */
.site-footer { background: var(--paper); border-top: 1px solid var(--rule); padding: 56px 0 36px; }
.foot { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 0.6fr); gap: 36px; }
.foot img { height: 28px; width: auto; }
.foot p { margin-top: 16px; color: var(--ink-2); font-size: 0.93rem; line-height: 1.85; }
.foot h2 { font-size: 1rem; font-weight: 800; margin-bottom: 12px; }
.foot ul { list-style: none; display: grid; gap: 8px; }
.foot a { color: var(--ink-2); text-decoration: none; font-size: 0.94rem; }
.foot-svc a { display: inline-flex; align-items: center; gap: 10px; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-base { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.82rem; color: var(--ink-3); }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot { grid-template-columns: 1fr; } }

/* ─── 產品頁 ───────────────────────────────────────── */
.file--product { --tint: var(--desk); }
.file--product h1 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.kicker { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.03em; color: var(--ink-2); margin-bottom: 8px; }
.file-text .kicker { margin: 0 0 10px; }
.file-text .slogan { margin: 16px 0 0; font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 900; line-height: 1.5; color: var(--ink); }
.file-text .lead { margin: 12px 0 0; }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tags li, .who, .st { font-size: 0.82rem; line-height: 1.6; padding: 1px 8px; border: 1px solid var(--rule); border-radius: 3px; color: var(--ink-2); background: #fff; white-space: nowrap; }
.who { display: inline-block; margin-top: 8px; }
.st--ok { color: var(--teal-ink); border-color: var(--teal); }
.st--wait { color: var(--ink); border-color: var(--ink); font-weight: 700; }
.jump ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 30px; font-size: 0.93rem; }
.jump a { color: var(--ink-2); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--rule-input); }
.jump a:hover { color: var(--teal-ink); text-decoration: underline; }

/* 系統畫面示意 */
.screen { background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; font-size: 0.88rem; }
.spot .screen { box-shadow: var(--paper-shadow); }
.screen-photo { padding: 8px; }
.screen-bar { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; background: var(--desk); border-bottom: 1px solid var(--rule); font-size: 0.82rem; font-weight: 700; color: var(--ink-2); }
.screen-body { padding: 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.kpis div { border: 1px solid var(--rule); border-radius: 3px; padding: 8px 10px; }
.kpis b { display: block; font-size: 1.3rem; font-weight: 900; line-height: 1.2; }
.kpis small { font-size: 0.76rem; color: var(--ink-3); }
.mock { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.mock th { text-align: left; font-size: 0.78rem; font-weight: 700; color: var(--ink-3); padding: 6px 6px; border-bottom: 1px solid var(--rule); }
.mock td { padding: 7px 6px; border-bottom: 1px dashed #C9D3DB; white-space: nowrap; }
.mock .st { font-size: 0.76rem; }
.profile { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.profile div { border: 1px solid var(--rule); border-radius: 3px; padding: 6px 8px; }
.profile dt { font-size: 0.74rem; color: var(--ink-3); }
.profile dd { font-weight: 700; }
.screen-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; font-size: 0.78rem; }
.screen-tabs span { padding: 2px 8px; border: 1px solid var(--rule); border-radius: 3px; color: var(--ink-3); }
.screen-tabs .on { border-color: var(--ink); color: var(--ink); font-weight: 700; background: var(--sticky); }

/* 痛點與功能 */
.pains { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; border-top: 2px solid var(--ink); }
.pains li { position: relative; padding: 14px 0 14px 22px; border-bottom: 1px dashed #B8C4CE; color: var(--ink-2); }
.pains li::before { content: ""; position: absolute; left: 2px; top: calc(14px + 0.85em); width: 10px; height: 2px; background: var(--ink); }
.insight { margin-top: 24px; font-size: clamp(1.05rem, 1.5vw, 1.2rem); font-weight: 900; line-height: 1.6; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.card { background: var(--paper); border-radius: var(--r); box-shadow: var(--paper-shadow); padding: clamp(20px, 2.4vw, 30px); border-top: 2px solid var(--ink); }
.card--wide { grid-column: span 2; }
.card h3 { font-size: 1.2rem; font-weight: 900; line-height: 1.45; }
.card p { margin-top: 8px; color: var(--ink-2); font-size: 0.98rem; }
.card .tags { margin-top: 16px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pains { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } .card--wide { grid-column: auto; } }

/* 流程、亮點與角色 */
.steps--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.sheet--ruled .steps--grid li + li { border-top: 0; }
.sheet--ruled .steps--grid li:nth-child(n+3) { border-top: 1px dashed #C9D3DB; }
@media (max-width: 860px) { .steps--grid { grid-template-columns: 1fr; } .sheet--ruled .steps--grid li:nth-child(2) { border-top: 1px dashed #C9D3DB; } }
.spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.spot + .spot { margin-top: clamp(48px, 6vw, 88px); }
.spot--rev .spot-text { order: 2; }
.spot .h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.ticks { list-style: none; margin-top: 22px; border-top: 2px solid var(--ink); }
.ticks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px dashed #B8C4CE; color: var(--ink-2); }
.ticks .tick, .checklist--one .tick { width: 24px; height: 24px; margin-top: 3px; stroke-dashoffset: 0; padding: 3px; border: 1.5px solid var(--ink); border-radius: 3px; background: #fff; }
.spot--log { margin-top: clamp(28px, 4vw, 48px); }
.logcat { border-top: 2px solid var(--ink); }
.logcat div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px dashed #B8C4CE; }
.logcat dt { font-weight: 700; }
.logcat dd { color: var(--ink-2); }
.spot--log + .note-text { margin-top: 20px; }
@media (max-width: 900px) { .spot { grid-template-columns: 1fr; } .spot--rev .spot-text { order: 0; } .screen { overflow-x: auto; } }
@media (max-width: 480px) { .logcat div { grid-template-columns: 1fr; gap: 2px; } .profile { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.role { padding: clamp(20px, 2.4vw, 28px); border-top: 2px solid var(--ink); }
.role small { font-size: 0.85rem; font-weight: 700; color: var(--ink-3); }
.role h3 { font-size: 1.15rem; font-weight: 900; line-height: 1.45; margin-top: 2px; }
.role p { margin-top: 8px; color: var(--ink-2); font-size: 0.96rem; }
@media (max-width: 960px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .roles { grid-template-columns: 1fr; } }
.checklist--one { grid-template-columns: 1fr; gap: 0; }
.sheet--ruled .checklist--one li + li { border-top: 1px dashed #C9D3DB; }
.sheet--ruled .checklist--one li:first-child { border-top: 0; }
.sheet .h3 + .steps, .sheet .h3 + .checklist { border-top: 2px solid var(--ink); }

/* 導入經驗與常見問題 */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: clamp(28px, 4vw, 44px); }
.stats div { display: flex; flex-direction: column-reverse; gap: 2px; padding-left: 16px; border-left: 2.5px solid var(--ink); }
.stats dd { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 900; line-height: 1.1; }
.stats dt { color: var(--ink-2); font-weight: 700; }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px dashed #B8C4CE; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 4px; font-size: 1.08rem; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--ink); border-radius: 3px; font-weight: 700; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--teal-ink); }
.faq details p { padding: 0 4px 20px; color: var(--ink-2); max-width: 46em; }
.closing .kicker { margin-bottom: 10px; }
.prod-page .h2 { word-break: keep-all; overflow-wrap: anywhere; }
.head--solo { grid-template-columns: 1fr; }
.prod-page .closing .h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }

/* 聯絡表單的隱藏陷阱欄位：移出畫面，真人看不到 */
.trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ─── 服務聲明：首頁彈窗與全站右側固定標籤 ──────────── */
.stmt { --stmt-pad: clamp(20px, 3.5vw, 40px); width: min(720px, calc(100% - 32px)); max-height: min(86dvh, 900px); margin: auto; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.stmt::backdrop { background: rgba(11,45,79,0.45); }
.stmt-sheet { display: flex; flex-direction: column; max-height: min(86dvh, 900px); background: var(--paper); border-radius: var(--r); box-shadow: var(--paper-shadow); }
.stmt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-inline: var(--stmt-pad); padding: var(--stmt-pad) 0 16px; border-bottom: 2px solid var(--ink); }
.stmt-title { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 900; line-height: 1.4; text-wrap: balance; }
.stmt-x { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; margin: -4px -6px 0 0; background: none; border: 1.5px solid var(--rule-input); border-radius: var(--r); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.stmt-x:hover { border-color: var(--ink); background: var(--desk); }
.stmt-x .icon { width: 20px; height: 20px; }
.stmt-body { overflow-y: auto; overscroll-behavior: contain; padding: 18px var(--stmt-pad) 22px; color: var(--ink-2); }
.stmt-body:focus { outline: none; }
.stmt-body p + p { margin-top: 10px; }
.stmt-body section, .stmt-body section + p { margin-top: 18px; padding-top: 16px; border-top: 1px dashed #C9D3DB; }
.stmt-body h3 { margin-bottom: 8px; color: var(--ink); font-size: 1.1rem; font-weight: 900; line-height: 1.5; }
.stmt-sign { margin-top: 18px; font-style: normal; }
.stmt-sign strong { display: block; color: var(--ink); font-weight: 900; }
.stmt-sign a { color: var(--ink); overflow-wrap: anywhere; }
.stmt-foot { display: flex; justify-content: flex-end; padding: 16px var(--stmt-pad) 20px; border-top: 1px solid var(--rule); }
@media (max-width: 520px) { .stmt-foot .btn { width: 100%; } }
html:has(.stmt[open]) { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .stmt[open] .stmt-sheet { animation: stmt-in 0.45s var(--ease); }
  .stmt[open]::backdrop { animation: stmt-fade 0.3s ease; }
}
@keyframes stmt-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes stmt-fade { from { opacity: 0; } }
.stmt-tab {
  position: fixed; right: 0; top: max(33.33%, 150px); z-index: 250; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 9px 16px;
  background: var(--paper); border: 1.5px solid var(--ink); border-right: 0; border-radius: 10px 0 0 10px;
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.14em; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.stmt-tab span { writing-mode: vertical-rl; }
.stmt-tab .icon { width: 20px; height: 20px; }
.stmt-tab:hover { background: var(--ink); color: #fff; }
@media print { .stmt-tab { display: none; } }
