/* PMC 產業推動服務 示範入口網站 — 編輯風：白底、直角、1px 細線、留白、單一點綴色；無陰影、無漸層。
   CIS：精機藍 #003090、標誌紅 #E00010（2026-10-14 依官網標誌 PNG 實測），紅色只用於眉標與標籤。
   無障礙：對比 ≥ 4.5:1、焦點可見、跳至主內容、字級可放大、目標尺寸 ≥ 44px。 */
:root {
  --navy: #003090; --navy-700: #001F60; --navy-300: #2957C9; --navy-50: #E6ECF9; /* 2026-10-14 依官方標誌實測 */
  --accent: #C0000E; /* 標誌紅 #E00010 加深以達文字對比 */
  --ink: #17213A; --muted: #555E74; --line: #D8DEEB; --bg: #FFFFFF; --bg2: #F7F8FB;
  --cjk: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
  --w: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--cjk); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.85; letter-spacing: .02em; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }
:focus-visible { outline: 3px solid var(--navy-300); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 14px; z-index: 999; text-decoration: none; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 16px; }
@media (min-width: 900px) { .wrap { padding: 0 32px; } }

/* 眉標／標籤 */
.eyebrow { font-size: 12px; letter-spacing: .25em; color: var(--accent); font-weight: 700; text-transform: uppercase; }
.tag { display: inline-block; font-size: 12px; letter-spacing: .1em; border: 1px solid var(--line); padding: 2px 8px; color: var(--muted); margin-right: 6px; }
.tag.navy { border-color: var(--navy); color: var(--navy); }

/* Header */
.hd { border-bottom: 1px solid var(--line); background: #fff; }
.hd .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand .logo { height: 40px; width: auto; display: block; }
.brand .mark { width: 40px; height: 40px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; letter-spacing: .05em; position: relative; }
.brand .mark::after { content: ""; position: absolute; right: 0; top: 0; width: 7px; height: 7px; background: #E00010; }
.brand b { display: block; font-size: 15px; letter-spacing: .08em; white-space: nowrap; }
.brand small { display: block; font-size: 11px; color: var(--muted); letter-spacing: .12em; white-space: nowrap; }
.nav { display: none; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-size: 14px; letter-spacing: .06em; padding: 12px 9px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a[aria-current="page"], .nav a:hover { border-bottom-color: var(--navy); color: var(--navy); }
.nav a.cta { border: 1px solid var(--navy); color: var(--navy); margin-left: 8px; padding: 10px 16px; }
.nav a.cta:hover { background: var(--navy); color: #fff; }
.menu-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line); padding: 10px 12px; font: inherit; font-size: 14px; cursor: pointer; min-height: 44px; }
.mnav { display: none; border-bottom: 1px solid var(--line); background: #fff; }
.mnav.open { display: block; }
.mnav a { display: block; padding: 14px 16px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
@media (min-width: 1120px) { .nav { display: flex; align-items: center; } .menu-btn { display: none; } .mnav { display: none !important; } }

/* Hero */
.hero { border-bottom: 1px solid var(--line); padding: 56px 0 44px; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.35; font-weight: 700; letter-spacing: .06em; max-width: 20em; }
.hero .lead { margin-top: 18px; max-width: 42em; color: var(--muted); font-size: 17px; }
.hero .acts { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--navy); color: var(--navy); background: #fff; text-decoration: none; font-weight: 600; letter-spacing: .08em; font-size: 15px; }
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-700); border-color: var(--navy-700); }
.btn:hover { background: var(--navy-50); }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; }

/* 數字帶 */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); margin-top: 36px; }
.stats > div { padding: 20px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats .n { font-size: 34px; font-weight: 700; color: var(--navy); line-height: 1.1; letter-spacing: .02em; }
.stats .l { font-size: 13px; color: var(--muted); margin-top: 6px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } .stats > div { border-bottom: 0; } .stats > div:last-child { border-right: 0; } }

/* 區塊 */
section.sec { padding: 56px 0; border-bottom: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.sec h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: .08em; line-height: 1.4; margin-top: 6px; }
.sec h3 { font-size: 18px; font-weight: 700; letter-spacing: .04em; line-height: 1.5; }
.grid { display: grid; gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.grid > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 20px; background: #fff; }
.grid.c2 { grid-template-columns: 1fr; } .grid.c3 { grid-template-columns: 1fr; } .grid.c4 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid.c3 { grid-template-columns: repeat(3, 1fr); } .grid.c4 { grid-template-columns: repeat(4, 1fr); } }
.cell .num { font-size: 12px; letter-spacing: .2em; color: var(--accent); font-weight: 700; }
.cell h3 { margin-top: 6px; }
.cell p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.cell a.more { display: inline-block; margin-top: 12px; font-size: 14px; }
.cell.link { position: relative; }
.cell.link:hover { background: var(--bg2); }

/* 步驟 */
.steps { counter-reset: s; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1; }
.step h3 { font-size: 17px; }
.step p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* 表格 */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; color: var(--ink); background: var(--bg2); border-top: 1px solid var(--line); font-size: 14px; letter-spacing: .05em; }
caption { text-align: left; font-size: 14px; color: var(--muted); padding: 0 0 8px; }
.tbl-wrap { overflow-x: auto; }

/* 文章頁 */
.article { padding: 48px 0 64px; }
.article .wrap { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 1000px) { .article .wrap { grid-template-columns: 240px 1fr; } }
.toc { font-size: 14px; position: sticky; top: 16px; align-self: start; border: 1px solid var(--line); padding: 16px; }
.toc b { display: block; margin-bottom: 8px; letter-spacing: .1em; font-size: 12px; color: var(--muted); }
.toc a { display: block; padding: 6px 0; text-decoration: none; border-bottom: 1px dashed var(--line); }
.toc a:last-child { border-bottom: 0; }
.prose h1 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.4; letter-spacing: .06em; }
.prose h2 { font-size: 22px; margin-top: 40px; padding-top: 12px; border-top: 2px solid var(--navy); letter-spacing: .06em; }
.prose h3 { font-size: 17px; margin-top: 22px; letter-spacing: .04em; }
.prose p, .prose li { font-size: 16px; }
.prose p { margin-top: 12px; }
.prose ul, .prose ol { margin: 10px 0 0 22px; }
.prose li { margin-top: 6px; }
.prose .note { border: 1px solid var(--line); border-left: 4px solid var(--navy); padding: 14px 16px; margin-top: 18px; background: var(--bg2); font-size: 15px; }
.prose .warn { border-left-color: var(--accent); }
.prose dl { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); margin-top: 12px; }
.prose dt { font-weight: 700; padding: 10px 0 0; }
.prose dd { color: var(--muted); padding: 2px 0 10px; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .prose dl { grid-template-columns: 220px 1fr; } .prose dt, .prose dd { padding: 10px 8px; border-bottom: 1px solid var(--line); } }
.meta { font-size: 13px; color: var(--muted); margin-top: 10px; letter-spacing: .05em; }
.crumbs { font-size: 13px; color: var(--muted); padding: 14px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "／"; margin-right: 6px; }

/* FAQ */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 14px 4px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 48px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "＋"; color: var(--navy); font-weight: 400; }
details[open] summary::after { content: "－"; }
details .a { padding: 0 4px 16px; color: var(--muted); font-size: 15px; }

/* 聯絡 */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); }
.contact-grid > div { padding: 22px 20px; border-bottom: 1px solid var(--line); }
.contact-grid > div:last-child { border-bottom: 0; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } .contact-grid > div { border-bottom: 0; border-right: 1px solid var(--line); } .contact-grid > div:last-child { border-right: 0; } }
.contact-grid b { display: block; letter-spacing: .08em; }
.contact-grid p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.contact-grid .big { font-size: 22px; color: var(--navy); font-weight: 700; margin-top: 8px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 28px; font-size: 14px; color: var(--muted); }
footer .cols { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { footer .cols { grid-template-columns: 2fr 1fr 1fr 1fr; } }
footer b { color: var(--ink); display: block; margin-bottom: 8px; letter-spacing: .1em; font-size: 13px; }
footer a { display: block; text-decoration: none; color: var(--muted); padding: 3px 0; }
footer a:hover { color: var(--navy); }
footer .bt { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13px; }
.a11y { font-size: 12px; border: 1px solid var(--line); padding: 2px 8px; }

/* 工具頁 */
.tool-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 8px; }
.io { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); margin-top: 18px; }
.io > div { padding: 18px; border-bottom: 1px solid var(--line); }
.io > div:last-child { border-bottom: 0; }
.io b { display: block; font-size: 12px; letter-spacing: .2em; color: var(--navy); margin-bottom: 6px; }
.io p { font-size: 15px; color: var(--ink); }
@media (min-width: 900px) { .io { grid-template-columns: repeat(3, 1fr); } .io > div { border-bottom: 0; border-right: 1px solid var(--line); } .io > div:last-child { border-right: 0; } }
.disclaimer { font-size: 13px; color: var(--muted); margin-top: 24px; padding-top: 12px; border-top: 1px dashed var(--line); }

/* 回頂／字級 */
.tools-bar { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.tools-bar button { min-width: 44px; min-height: 36px; background: #fff; border: 1px solid var(--line); font: inherit; cursor: pointer; }
html.big { font-size: 19px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .hd, footer, .mnav, .menu-btn, .toc { display: none !important; } a { color: inherit; text-decoration: none; } }

/* ── 首頁改版（2026-10-14，參考 bigaiot.tw 的版面節奏：影片 Hero → 深色導軌區 → 說明影片 → 目錄 → 關於 → 消息 → CTA；
   維持白底直角細線、精機藍／標誌紅，不用圓角陰影漸層）── */
:root { --navy-900: #0B1A44; --accent-dark: #FF7A85; /* 深色底上的點綴色，對比 ≥ 6:1 */ }

/* 影片 Hero */
.hv { border-bottom: 1px solid var(--line); background: #fff; }
.hv-frame { position: relative; background: var(--navy); aspect-ratio: 16 / 9; overflow: hidden; width: 100%; max-width: var(--w); margin: 0 auto; }
/* 寬螢幕：影片框置中並對齊內容欄（原本 max-height 讓框變窄卻靠左，使用者回報未置中） */
@media (min-width: 900px) { .hv-frame { max-width: calc(var(--w) - 64px); } }
.hv-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv-ctl { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.hv-ctl button { min-height: 44px; min-width: 44px; padding: 0 14px; background: rgba(255,255,255,.95); border: 1px solid var(--navy); color: var(--navy); font: inherit; font-size: 14px; letter-spacing: .06em; cursor: pointer; }
.hv-ctl button:hover { background: #fff; }
.hv-bar { display: grid; grid-template-columns: 1fr; gap: 22px; padding-top: 40px; padding-bottom: 44px; align-items: end; }
@media (min-width: 1000px) { .hv-bar { grid-template-columns: 1.4fr 1fr; } .hv-bar .acts { justify-content: flex-end; } }
.hv-bar h1 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.35; font-weight: 700; letter-spacing: .06em; margin-top: 10px; max-width: 20em; }
.hv-bar .lead { margin-top: 14px; max-width: 46em; color: var(--muted); font-size: 16.5px; }
.hv-bar .acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* 區塊引言：眉標（EN ─ 中文）＋大標＋引言 */
.intro { margin-bottom: 34px; }
.intro .eyebrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.intro .eyebrow .dash { display: inline-block; width: 44px; height: 2px; background: currentColor; opacity: .6; }
.intro h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 700; letter-spacing: .06em; line-height: 1.4; margin-top: 12px; max-width: 22em; }
.intro .lead { margin-top: 12px; color: var(--muted); max-width: 46em; font-size: 16.5px; }
.intro.split { display: grid; grid-template-columns: 1fr; gap: 16px 48px; align-items: end; }
@media (min-width: 1000px) { .intro.split { grid-template-columns: 1.2fr 1fr; } .intro.split .lead { margin-top: 0; } }

/* 深色導軌區 */
.dark { background: var(--navy-900); color: #fff; border-bottom: 0; }
.dark .eyebrow { color: var(--accent-dark); }
.dark .intro .lead, .dark .row p { color: rgba(255,255,255,.8); }
.dark a { color: #fff; }
.dark :focus-visible { outline-color: #fff; }
.guide-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 1000px) { .guide-grid { grid-template-columns: 210px 1fr; gap: 56px; } }
.rail { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
@media (min-width: 1000px) { .rail { position: sticky; top: 24px; align-self: start; flex-direction: column; gap: 0; overflow: visible; } }
.rail a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: rgba(255,255,255,.68); font-size: 14px; letter-spacing: .06em; padding: 12px 12px; border-left: 2px solid rgba(255,255,255,.15); white-space: nowrap; min-height: 44px; }
.rail a span { font-size: 12px; font-weight: 700; letter-spacing: .15em; color: var(--accent-dark); }
.rail a.on, .rail a:hover { color: #fff; border-left-color: var(--accent-dark); }
.row { display: grid; grid-template-columns: 1fr; gap: 22px 48px; padding: 36px 0; border-top: 1px solid rgba(255,255,255,.14); align-items: center; }
.row:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 860px) { .row { grid-template-columns: 1fr 1fr; } .row:nth-child(even) figure { order: 2; } }
.row figure { margin: 0; border: 1px solid rgba(255,255,255,.22); background: #fff; }
.row figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.row .num { font-size: 12px; letter-spacing: .2em; color: var(--accent-dark); font-weight: 700; }
.row h3 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; letter-spacing: .04em; margin-top: 8px; }
.row p { margin-top: 12px; font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags span { font-size: 12.5px; letter-spacing: .06em; border: 1px solid rgba(255,255,255,.4); padding: 4px 10px; color: #fff; }
.row a.more { display: inline-block; margin-top: 16px; font-size: 15px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent-dark); padding-bottom: 2px; }

/* 說明影片 */
.ev { margin: 0; border: 1px solid var(--line); background: #000; }
.ev video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; }
.ev figcaption { font-size: 13px; color: var(--muted); padding: 10px 14px; background: #fff; border-top: 1px solid var(--line); letter-spacing: .04em; }
.transcript { margin-top: 14px; }
.transcript ol { margin: 10px 0 14px 22px; color: var(--muted); font-size: 15px; }
.transcript li { margin-top: 6px; }

/* 目錄卡（三大領域） */
.cards { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 860px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card .num { font-size: 12px; letter-spacing: .2em; color: var(--accent); font-weight: 700; }
.card h3 { margin-top: 6px; font-size: 19px; }
.card p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.card ul { margin: 12px 0 0 18px; font-size: 14px; flex: 1; }
.card a.more { display: inline-block; margin-top: 14px; font-size: 14px; }

/* 七大措施 */
.m-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 900px) { .m-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
.m-grid figure { margin: 0; border: 1px solid var(--line); }
.m-grid figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.m-grid figcaption { font-size: 13px; color: var(--muted); padding: 8px 12px; border-top: 1px solid var(--line); }
.m-list { list-style: none; border-top: 1px solid var(--line); }
.m-list li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.m-list .k { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--accent); padding-top: 5px; }
.m-list b { display: block; }
.m-list span { color: var(--muted); font-size: 14px; }

/* 最新消息 */
.news { list-style: none; border-top: 1px solid var(--line); }
.news li { display: grid; grid-template-columns: 1fr; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .news li { grid-template-columns: 90px 1fr; } }
.news .d { font-size: 13px; color: var(--navy); font-weight: 700; letter-spacing: .1em; padding-top: 4px; }
.news a { font-weight: 600; text-decoration: none; }
.news a:hover { text-decoration: underline; }
.news p { color: var(--muted); font-size: 14.5px; margin-top: 2px; }

/* CTA 區塊（限 section，避免和導覽列「線上諮詢」的 a.cta 撞名——曾讓該按鈕被塗成深藍底、深藍字） */
section.cta { background: var(--navy); color: #fff; padding: 64px 0; border-bottom: 0; }
section.cta .eyebrow { color: var(--accent-dark); }
section.cta h2 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: .06em; line-height: 1.4; margin-top: 12px; }
section.cta p { margin-top: 14px; color: rgba(255,255,255,.84); max-width: 44em; }
section.cta .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
section.cta .meta { color: rgba(255,255,255,.78); margin-top: 22px; }
section.cta a { color: #fff; }
section.cta :focus-visible { outline-color: #fff; }
.btn.light { background: #fff; color: var(--navy); border-color: #fff; }
.btn.light:hover { background: var(--navy-50); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn.ghost:hover { background: rgba(255,255,255,.12); }

/* 進場動畫：只在有 JS 時生效（無 JS 內容照常可讀），並尊重「減少動態效果」 */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
