/* ============================================================
   TeraFab — 先進廠房統包工程顧問
   設計語彙：工程圖紙（圖框、標高、分區圖例、琥珀 OHT 軌道線）
   ============================================================ */

:root {
  --paper: #F6F7F8;
  --card: #FFFFFF;
  --ink: #1C2733;
  --steel: #5C6B7A;
  --line: #C9D2D9;
  --line-soft: #E2E7EB;
  --oht: #D9A13A;
  --oht-deep: #B9821F;
  --mep: #8FB3D1;
  --deep: #131C26;
  --deep-2: #1B2836;
  --zone-cr: #E8D9A0;   /* 主潔淨室區域 */
  --zone-mep: #B9CFE3;  /* 機電設備區域 */
  --zone-env: #BFD4B2;  /* 環保回收 */
  --zone-aux: #C6C9D8;  /* 輔助支援區域 */
  --zone-str: #D2D6DA;  /* 結構 */
  --font-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei UI", "Microsoft JhengHei", "Noto Sans CJK TC", sans-serif;
  --font-body-sc: "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-body-en: "Noto Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body-ja: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans CJK JP", sans-serif;
  --font-num: "Saira", "Noto Sans TC", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --w: 1120px;
  --nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* 簡體模式：切換為 Noto Sans SC，避免 TC 字型缺字造成字體混雜 */
html[lang="zh-Hans"] body { font-family: var(--font-body-sc); }
html[lang="zh-Hans"] .field input,
html[lang="zh-Hans"] .field select,
html[lang="zh-Hans"] .field textarea { font-family: var(--font-body-sc); }

/* 日文版：Noto Sans JP 內文；標題維持黑體 900（與中文版同構），字距略收 */
html[lang="ja"] body { font-family: var(--font-body-ja); line-height: 1.8; }
html[lang="ja"] .field input, html[lang="ja"] .field select, html[lang="ja"] .field textarea { font-family: var(--font-body-ja); }
html[lang="ja"] .hero h1 { font-size: clamp(32px, 5.4vw, 56px); letter-spacing: 0; }
html[lang="ja"] .btn, html[lang="ja"] .nav-cta { letter-spacing: .06em; }
html[lang="ja"] .nav-links > li > a, html[lang="ja"] .nav-links > li > button { font-size: 14px; white-space: nowrap; padding: 0 11px; }
html[lang="ja"] .nav-links { gap: 2px; }
html[lang="ja"] .brand-sub { white-space: nowrap; }
@media (max-width: 1400px) { html[lang="ja"] .brand-sub { display: none; } }
html[lang="en"] .nav-links > li > a, html[lang="en"] .nav-links > li > button { white-space: nowrap; }
html[lang="en"] .brand-sub { white-space: nowrap; }
@media (max-width: 1240px) { html[lang="en"] .brand-sub { display: none; } }
.lang-switch > [lang="ja"] { font-family: var(--font-mono); }

/* 英文版：Noto Sans 內文（非 CJK 字型的 Latin 字形）、Saira 標題、較緊字距與較小行高 */
html[lang="en"] body { font-family: var(--font-body-en); line-height: 1.6; }
html[lang="en"] .field input, html[lang="en"] .field select, html[lang="en"] .field textarea { font-family: var(--font-body-en); }
html[lang="en"] .hero h1, html[lang="en"] .sec-title, html[lang="en"] .page-head h1, html[lang="en"] .cta-band h2 {
  font-family: var(--font-num); font-weight: 700; letter-spacing: -.01em;
}
html[lang="en"] .hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; }
html[lang="en"] .hero-desc { font-size: 15px; }
/* 切換鈕中的 繁／简 字形一律用 CJK 字型（英文頁的 Noto Sans 無 CJK 字形） */
.lang-switch > [lang="zh-Hant"] { font-family: var(--font-mono), var(--font-body); }
.lang-switch > [lang="zh-Hans"] { font-family: var(--font-mono), var(--font-body-sc); }
html[lang="en"] .sec-title { line-height: 1.2; }
html[lang="en"] .btn, html[lang="en"] .nav-cta { letter-spacing: .03em; }
html[lang="en"] .nav-links > li > a, html[lang="en"] .nav-links > li > button { font-size: 14.5px; }
html[lang="en"] .svc-card h3, html[lang="en"] .scope-item h3, html[lang="en"] .how-step h3, html[lang="en"] .flow-step h3 { letter-spacing: 0; }
html[lang="en"] .brand-sub { letter-spacing: .08em; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--oht); color: var(--deep); }

.skip {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  background: var(--ink); color: var(--paper); padding: 10px 18px;
  font-size: 14px; transition: top .2s;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--oht-deep); outline-offset: 2px; }

/* ---------- 圖框（drawing sheet frame，桌機） ---------- */
.frame {
  position: fixed; inset: 8px;
  border: 1px solid var(--line);
  pointer-events: none; z-index: 240;
  display: none;
}
@media (min-width: 1100px) { .frame { display: block; } }

/* ---------- 版心 ---------- */
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }

/* ---------- 導覽列 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  /* 不透明底色、不用 backdrop-filter：backdrop-filter 會使導覽列成為每幀回讀底層的 render surface，
     在 Edge/Chromium F11 全螢幕的 DirectComposition 部分呈現路徑下會丟失小面積更新（hover 凍結／閃爍），
     且會令 fixed 子元素改以 .nav 為包含塊（行動選單曾因此高度歸零）。--paper 與原半透明結果同色，視覺無差。 */
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .25s ease;
  will-change: transform; /* 獨立合成層：hover 重繪限於此層，避免全螢幕 1:1 光柵路徑丟失小面積更新 */
}
.nav.scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(28, 39, 51, .06); }
.nav-in {
  max-width: var(--w); margin: 0 auto; padding: 1px 24px 0; /* 補償 1px 底線，使項目以 64px 視覺高度置中 */
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  font-family: var(--font-num); font-weight: 700; font-size: 22px;
  letter-spacing: .02em; color: var(--ink);
}
.brand-mark .tf-accent { color: var(--oht-deep); }
.brand-logo { height: 40px; width: auto; mix-blend-mode: multiply; display: block; }
.brand-logo-lg { height: 52px; }
/* 字標左側裁切標記：圖檔左緣切過資料流，以視圖框角標把「裁切」變成「視圖」（同影片視圖框語彙） */
.brand-mark-wrap { position: relative; display: block; padding: 5px 0 5px 7px; }
.brand-mark-wrap::before, .brand-mark-wrap::after {
  content: ""; position: absolute; left: 0; width: 9px; height: 9px;
  border-color: var(--ink); border-style: solid;
}
.brand-mark-wrap::before { top: 0; border-width: 1px 0 0 1px; }
.brand-mark-wrap::after  { bottom: 0; border-width: 0 0 1px 1px; }
.footer-brand .brand-mark-wrap { padding: 6px 0 6px 8px; }
.footer-brand .brand-mark-wrap::before, .footer-brand .brand-mark-wrap::after { width: 11px; height: 11px; }
.brand-sub { font-size: 11px; color: var(--steel); letter-spacing: .14em; }
@media (max-width: 560px) { .brand-sub { display: none; } }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > button {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px; font-size: 15px; color: var(--ink);
  background: none; border: 0; line-height: 1; position: relative;
}
/* hover：琥珀底線（盒級重繪，且與全站琥珀線語彙一致）＋文字變色 */
.nav-links > li > a::after, .nav-links > li > .nav-sub-btn::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
  background: var(--oht); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav-links > li > a:hover, .nav-links > li > button:hover { color: var(--oht-deep); }
.nav-links > li > a:hover::after, .nav-links > li > .nav-sub-btn:hover::after,
.nav-links > li:focus-within > .nav-sub-btn::after { transform: scaleX(1); }
.nav-links > li > .nav-cta::after, .nav-links > li > .lang-btn::after { display: none; }
@media (max-width: 880px) { .nav-links > li > a::after, .nav-links > li > .nav-sub-btn::after { display: none; } }
.nav-cta {
  margin-left: 10px; border: 1px solid var(--ink); padding: 0 18px !important; height: 36px !important;
  font-size: 14px !important; letter-spacing: .08em;
  transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--ink); color: var(--paper) !important; }

.lang-switch { display: inline-flex; align-items: stretch; margin-left: 6px; border: 1px solid var(--line); height: 34px; }
.lang-switch > a, .lang-switch > button {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; line-height: 1;
  background: none; border: 0; border-right: 1px solid var(--line); color: var(--steel);
  padding: 0 11px; display: inline-flex; align-items: center; cursor: pointer;
  transition: color .2s, background .2s;
}
.lang-switch > :last-child { border-right: 0; }
.lang-switch > a:hover, .lang-switch > button:hover { color: var(--oht-deep); }
.lang-switch > .is-current { color: var(--ink); background: var(--card); font-weight: 500; cursor: default; }
@media (max-width: 880px) {
  .nav-links > li > .lang-switch { margin: 14px 0 0; height: 44px; width: 100%; }
  .lang-switch > a, .lang-switch > button { flex: 1; justify-content: center; font-size: 15px; }
}

/* 下拉 */
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 248px;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(28, 39, 51, .12);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-links li:hover > .dropdown-menu,
.nav-links li:focus-within > .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; font-size: 14px; border-bottom: 1px solid var(--line-soft);
}
.dropdown-menu a:last-child { border-bottom: 0; }
.dropdown-menu a:hover { background: var(--paper); color: var(--oht-deep); }

/* 分區圖例色塊 */
.zone {
  width: 11px; height: 11px; flex: none; display: inline-block;
  border: 1px solid rgba(28, 39, 51, .35);
}
.zone.z-cr { background: var(--zone-cr); }
.zone.z-mep { background: var(--zone-mep); }
.zone.z-env { background: var(--zone-env); }
.zone.z-aux { background: var(--zone-aux); }
.zone.z-str { background: var(--zone-str); }
.zone.z-oht { background: var(--oht); }

/* 行動版選單 */
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  width: 40px; height: 40px; position: relative;
}
.nav-toggle span {
  position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink);
  transition: transform .25s, opacity .25s;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    /* 錨定於 .nav 本身（absolute）並明確給高度，不依賴 fixed 定位語意（任何引擎行為一致） */
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    background: var(--paper); border-top: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 40px;
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a, .nav-links > li > button {
    display: flex; height: auto; line-height: 1.5;
    padding: 14px 4px; font-size: 17px; width: 100%; text-align: left;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-links > li > .lang-btn { height: auto; }
  .nav-links > li > .nav-cta { height: auto !important; }
  .dropdown-menu {
    position: static; min-width: 0; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; display: none;
    background: none;
  }
  .nav-links li.open-sub > .dropdown-menu { display: block; }
  .dropdown-menu a { padding-left: 20px; background: none; }
  .nav-links > li > .nav-cta {
    margin: 18px 0 0; text-align: center; border: 1px solid var(--ink);
    padding: 12px 18px !important; font-size: 15px !important; border-bottom: 1px solid var(--ink);
  }
}

/* ---------- 眉標／標題 ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em;
  color: var(--steel); display: flex; align-items: center; gap: 10px;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--oht); }

.sec-title {
  font-size: clamp(26px, 4vw, 38px); font-weight: 900; line-height: 1.3;
  letter-spacing: .01em; margin: 14px 0 10px;
}
.sec-lead { color: var(--steel); max-width: 640px; }

/* 標高標籤 */
.elev {
  font-family: var(--font-mono); font-size: 12px; color: var(--steel);
  letter-spacing: .06em; white-space: nowrap;
}
.elev b { color: var(--oht-deep); font-weight: 500; }

/* ---------- 按鈕 ---------- */
/* 按鈕：琥珀左邊條＋箭號（與標高徽章、註記帶、索引列同一語彙；左重右向，不靠圓角） */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 18px 10px 16px; font-size: 14.5px; letter-spacing: .08em; line-height: 1.5;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  border-left: 3px solid var(--oht);
  transition: background .2s, color .2s, border-color .2s;
}
.btn::after {
  content: "→"; font-family: var(--font-mono); font-size: 14px; line-height: 1;
  transition: transform .2s ease;
}
.btn:hover::after, .btn:focus-visible::after { transform: translateX(4px); }
.btn:hover { background: var(--oht-deep); border-color: var(--oht-deep); border-left-color: var(--deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); border-left-color: var(--oht); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--deep); border-color: var(--paper); border-left-color: var(--oht); }
.btn-light:hover { background: var(--oht); border-color: var(--oht); border-left-color: var(--deep); color: var(--deep); }

/* ---------- Hero（首頁） ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 72px) 0 0;
  background: var(--paper);
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(#000 55%, transparent);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
}
.hero-in { position: relative; max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.hero-top { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 1000px) { .hero-top { grid-template-columns: 1fr; gap: 36px; } }
.hero-copy { min-width: 0; }
.hero-media .page-video { box-shadow: 0 24px 60px rgba(28, 39, 51, .14); }
.hero-media .page-video::after {
  content: "VIDEO · FAB-1 SITE"; position: absolute; left: 12px; top: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; color: #fff;
  background: rgba(19,28,38,.78); padding: 4px 9px; border-left: 3px solid var(--oht);
}

/* ---------- 視圖框（crop marks，圖紙細部視圖） ---------- */
.viewport {
  position: relative; padding: 10px;
  --cm: var(--ink);
  background:
    linear-gradient(var(--cm), var(--cm)) 0 0 / 16px 1px no-repeat,
    linear-gradient(var(--cm), var(--cm)) 0 0 / 1px 16px no-repeat,
    linear-gradient(var(--cm), var(--cm)) 100% 0 / 16px 1px no-repeat,
    linear-gradient(var(--cm), var(--cm)) 100% 0 / 1px 16px no-repeat,
    linear-gradient(var(--cm), var(--cm)) 0 100% / 16px 1px no-repeat,
    linear-gradient(var(--cm), var(--cm)) 0 100% / 1px 16px no-repeat,
    linear-gradient(var(--cm), var(--cm)) 100% 100% / 16px 1px no-repeat,
    linear-gradient(var(--cm), var(--cm)) 100% 100% / 1px 16px no-repeat;
}

/* ---------- 現場影像帶（圖紙細部視圖 + 標題欄 + 註記） ---------- */
.sheet-band {
  position: relative; padding: 88px 0 96px; overflow: hidden;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  background: var(--paper);
}
.sheet-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 30% 50%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 40%, transparent 85%);
}
.sheet { position: relative; display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .sheet { grid-template-columns: 1fr; gap: 32px; } }
.sheet-view { position: relative; }
.sheet-view .page-video { border-color: var(--ink); }
.sheet-tb {
  display: grid; grid-template-columns: 1.6fr .8fr 1.3fr 1.35fr;
  margin: 0 10px; border: 1px solid var(--ink); border-top: 0; background: var(--card);
}
@media (max-width: 560px) { .sheet-tb { grid-template-columns: 1fr 1fr; } .sheet-tb .cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.sheet-tb .cell { padding: 8px 12px 9px; border-right: 1px solid var(--line); min-width: 0; }
.sheet-tb .cell:last-child { border-right: 0; }
@media (max-width: 560px) { .sheet-tb .cell:nth-child(2n) { border-right: 0; } }
.sheet-tb .k { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; color: var(--steel); margin-bottom: 1px; }
.sheet-tb .v { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-tb .tc { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; overflow: visible; }
.tc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); flex: none; }
.sheet.is-playing .tc-dot { background: var(--oht); animation: tcpulse 1.2s ease-in-out infinite; }
@keyframes tcpulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.sheet-notes { padding-top: 4px; }
.sheet-notes h3 { font-size: clamp(19px, 2vw, 22px); font-weight: 700; line-height: 1.45; margin: 12px 0 16px; }
.notes li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.notes li:last-child { border-bottom: 1px solid var(--line-soft); }
.notes .dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--oht); margin-top: 6px;
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--oht-deep);
}
.notes b { display: block; font-size: 14.5px; font-weight: 700; }
.notes p { font-size: 13px; color: var(--steel); margin-top: 1px; }
.hero-meta {
  font-family: var(--font-mono); font-size: 12px; color: var(--steel);
  letter-spacing: .14em; display: flex; gap: 18px; flex-wrap: wrap;
}
.hero h1 {
  font-size: clamp(34px, 6.4vw, 66px); font-weight: 900; line-height: 1.22;
  letter-spacing: .01em; margin: 20px 0 6px;
}
.hero h1 .accent { color: var(--oht-deep); }
.hero-sub-en {
  font-family: var(--font-num); font-size: clamp(14px, 2vw, 18px);
  color: var(--steel); letter-spacing: .04em; font-weight: 500;
}
.hero-desc { max-width: 620px; color: var(--steel); margin: 22px 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* OHT 描線 */
.oht-line { display: block; width: 100%; height: auto; margin-top: 36px; margin-bottom: -2px; }
.oht-line .track {
  fill: none; stroke: var(--oht); stroke-width: 2.5;
  stroke-dasharray: 1600; stroke-dashoffset: 1600;
}
.oht-line .node { fill: var(--oht); opacity: 0; }
.oht-line.drawn .track { animation: draw 2.2s ease forwards; }
.oht-line.drawn .node { animation: fadein .6s ease 1.9s forwards; }
/* OHT 載具：以 CSS motion path 取代 SMIL（SVG 使用者座標，隨 viewBox 縮放） */
.oht-veh {
  opacity: 0;
  offset-path: path("M0,88 H400 Q420,88 420,68 V44 Q420,24 440,24 H880 Q900,24 900,44 V68 Q900,88 920,88 H1200");
  offset-rotate: 0deg;
}
.oht-line.drawn .oht-veh { animation: fadein .6s ease 2.5s forwards, ohtrun 10s linear 2.6s infinite; }
@keyframes ohtrun { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.oht-vehicle {
  width: 14px; height: 9px; background: var(--oht); position: absolute;
  offset-rotate: 0deg; opacity: 0;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }

.hero-fig { position: relative; margin-top: 4px; }
.hero-fig img { width: 100%; height: auto; aspect-ratio: 1731 / 909; object-fit: contain; }
.cap-mobile { display: none; }
@media (max-width: 767px) { .cap-desktop { display: none; } .cap-mobile { display: inline; } }
.hero-fig figcaption {
  font-family: var(--font-mono); font-size: 12px; color: var(--steel);
  padding: 10px 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--line); border-top: 0; background: var(--paper);
}

/* ---------- 區塊通用 ---------- */
.sec { padding: 96px 0; }
.sec-head { margin-bottom: 44px; }
.sec-dark { background: var(--deep); color: #E8EDF2; }
.sec-dark .sec-title { color: #fff; }
.sec-dark .sec-lead { color: #9FAEBC; }
.sec-dark .eyebrow { color: #8296A9; }

/* ---------- A 公司定位 ---------- */
.pos-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
@media (max-width: 880px) { .pos-grid { grid-template-columns: 1fr; gap: 36px; } }
.pos-points { margin-top: 26px; display: grid; gap: 0; }
.pos-point {
  display: grid; grid-template-columns: 52px 1fr; gap: 16px;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.pos-point:last-child { border-bottom: 1px solid var(--line); }
.pos-point .no {
  font-family: var(--font-mono); font-size: 13px; color: var(--oht-deep); padding-top: 3px;
}
.pos-point h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.pos-point p { font-size: 14.5px; color: var(--steel); }

/* ---------- B 全廠剖視圖 ---------- */
.diagram { position: relative; background: transparent; aspect-ratio: 1731 / 909; overflow: hidden; }
.diagram img { width: 100%; height: 100%; object-fit: contain; display: block; }
.diagram-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff;
  display: none; z-index: 5;
}
.diagram.playing .diagram-video { display: block; }
.diagram.playing .hs { visibility: hidden; }
.diagram.playing > picture { visibility: hidden; }
.diagram-play {
  position: absolute; right: 16px; bottom: 16px; z-index: 6;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  background: rgba(19,28,38,.86); color: #fff; border: 1px solid rgba(255,255,255,.25);
  padding: 8px 14px 8px 12px; cursor: pointer; transition: background .2s;
}
.diagram-play::before {
  content: ""; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--oht);
}
.diagram-play:hover { background: var(--oht-deep); }
.diagram-play:hover::before { border-left-color: #fff; }
.diagram.playing .diagram-play::before { border: 0; width: 9px; height: 11px; border-left: 3px solid var(--oht); border-right: 3px solid var(--oht); }
@media (max-width: 767px) { .diagram-play { right: 10px; bottom: 10px; font-size: 11px; padding: 7px 11px 7px 10px; } }
.hs {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 4px;
}
.hs .dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--oht);
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--oht-deep); flex: none;
  position: relative;
}
.hs .dot::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 1px solid var(--oht); opacity: .6;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(.6); opacity: .8; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { opacity: 0; }
}
.hs .tag {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
  background: rgba(255, 255, 255, .94); border: 1px solid var(--line);
  color: var(--ink); padding: 3px 9px; white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.hs:hover .tag, .hs:focus-visible .tag { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 767px) { .hs { display: none; } }

.level-list { margin-top: 0; border: 1px solid var(--line); border-top: 0; }
@media (min-width: 768px) { .level-list { display: none; } }
.level-list a {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px 13px 18px;
  border-bottom: 1px solid var(--line-soft); font-size: 14.5px; background: #fff;
  position: relative;
}
.level-list a::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--tile-color, var(--line));
}
.level-list a:last-child { border-bottom: 0; }
.level-list .elev { min-width: 96px; }

/* 系統索引列：取代舊色塊圖例（新圖無分區色），改為可點擊入口，色鍵與熱點及卡片一致 */
.sys-index {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line); border-top: 0; background: var(--card);
}
@media (max-width: 1000px) { .sys-index { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .sys-index { display: none; } }
.sys-tile {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: 14px 14px 12px 18px; border-right: 1px solid var(--line-soft);
  transition: background .2s;
}
.sys-tile:last-child { border-right: 0; }
@media (max-width: 1000px) {
  .sys-tile:nth-child(3n) { border-right: 0; }
  .sys-tile:nth-child(-n+3) { border-bottom: 1px solid var(--line-soft); }
}
.sys-tile::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--tile-color, var(--line));
}
.sys-tile:hover { background: var(--paper); }
.sys-tile:hover .sys-name { color: var(--oht-deep); }
.sys-code { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--steel); }
.sys-name { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.35; transition: color .2s; }
.sys-elev { font-family: var(--font-mono); font-size: 10.5px; color: var(--steel); letter-spacing: .04em; white-space: nowrap; }
.t-str { --tile-color: #B7BEC6; }
.t-cr  { --tile-color: var(--zone-cr); }
.t-mep { --tile-color: var(--zone-mep); }
.t-oht { --tile-color: var(--oht); }
.t-env { --tile-color: var(--zone-env); }
.t-aux { --tile-color: var(--zone-aux); }

/* 熱點色鍵：與索引列及卡片同色 */
.hs .tag { border-left: 3px solid var(--tag-color, var(--oht)); }
.hs-str { --tag-color: #B7BEC6; }
.hs-cr  { --tag-color: #D9C170; }
.hs-mep { --tag-color: #8FB3D1; }
.hs-oht { --tag-color: var(--oht); }
.hs-env { --tag-color: #9DBB8D; }
.hs-aux { --tag-color: #A9AEC4; }
.hs .dot { background: var(--tag-color, var(--oht)); box-shadow: 0 0 0 1px rgba(28,39,51,.45); }
.hs .dot::after { border-color: var(--tag-color, var(--oht)); }

.diagram-note {
  font-family: var(--font-mono); font-size: 12px; color: var(--steel);
  margin-top: 12px; display: flex; gap: 18px; flex-wrap: wrap;
}

/* ---------- C 業務範圍卡片 ---------- */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-card {
  background: var(--card); border: 1px solid var(--line); position: relative;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.svc-card::before {
  content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px;
  background: var(--oht); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.svc-card:hover { transform: translateY(-4px); border-color: var(--steel); box-shadow: 0 18px 40px rgba(28, 39, 51, .1); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.svc-card-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 12px;
}
.svc-card-top .cat {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--steel);
}
.svc-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.svc-card p { font-size: 14px; color: var(--steel); flex: 1; }
.svc-card .more {
  margin-top: 18px; font-family: var(--font-mono); font-size: 13px;
  color: var(--oht-deep); letter-spacing: .06em;
}
.svc-card .more::after { content: " →"; transition: margin-left .2s; }
.svc-card:hover .more::after { margin-left: 4px; }

/* ---------- 實圖 ---------- */
.fig { position: relative; border: 1px solid var(--line); background: var(--card); overflow: hidden; }
.fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fig-32 { aspect-ratio: 3 / 2; }
.fig-43 { aspect-ratio: 4 / 3; }
.fig-169 { aspect-ratio: 16 / 9; }
.fig-219 { aspect-ratio: 21 / 9; }
.fig figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: #fff;
  padding: 8px 12px; background: linear-gradient(transparent, rgba(19,28,38,.7));
}
.svc-card .fig { border: 0; border-bottom: 1px solid var(--line-soft); }
.svc-card .fig img { transition: transform .5s ease; }
.svc-card:hover .fig img { transform: scale(1.03); }

/* ---------- 佔位圖 ---------- */
.ph {
  position: relative; border: 1px dashed var(--line); background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(201, 210, 217, .22) 14px 15px),
    #FBFCFC;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden;
}
.ph-32 { aspect-ratio: 3 / 2; }
.ph-169 { aspect-ratio: 16 / 9; }
.ph-43 { aspect-ratio: 4 / 3; }
.ph-in { padding: 18px; }
.ph-id {
  font-family: var(--font-mono); font-size: 13px; color: var(--ink);
  letter-spacing: .08em; border: 1px solid var(--line); background: #fff;
  display: inline-block; padding: 3px 10px; margin-bottom: 8px;
}
.ph-cap { font-size: 12.5px; color: var(--steel); max-width: 380px; margin: 0 auto; }
.ph-tag {
  position: absolute; top: 10px; right: 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  color: var(--oht-deep); border: 1px solid var(--oht); padding: 2px 7px; background: #fff;
}

/* ---------- D 服務流程 ---------- */
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border-top: 2px solid var(--ink); }
@media (max-width: 1000px) { .flow { grid-template-columns: repeat(3, 1fr); border-top: 0; } }
@media (max-width: 640px) { .flow { grid-template-columns: 1fr; } }
.flow-step { padding: 22px 18px 26px 0; border-right: 1px solid var(--line-soft); padding-left: 18px; }
.flow-step:last-child { border-right: 0; }
@media (max-width: 1000px) {
  .flow-step { border-top: 2px solid var(--ink); }
}
.flow-fig { margin-top: 44px; }
.flow-step .no {
  font-family: var(--font-num); font-size: 30px; font-weight: 600; color: var(--oht-deep);
  line-height: 1;
}
.flow-step h3 { font-size: 16.5px; font-weight: 700; margin: 12px 0 6px; }
.flow-step p { font-size: 13.5px; color: var(--steel); }

/* ---------- E 聯絡 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-info { display: grid; gap: 20px; margin-top: 26px; }
.contact-info .row { display: grid; gap: 2px; }
.contact-info .k {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: #8296A9;
}
.contact-info .v { font-size: 16px; color: #E8EDF2; }
.contact-note { font-size: 12.5px; color: #6E8093; margin-top: 8px; }
.contact-fig { margin-top: 26px; aspect-ratio: 21 / 9; border-color: #2C3B4C; max-width: 440px; }
.contact-fig img { object-position: center 30%; }
@media (max-width: 880px) { .contact-fig { display: none; } }

.form { display: grid; gap: 14px; align-content: start; align-self: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; grid-template-rows: auto auto; align-content: start; gap: 5px; }
.form-row { align-items: start; }
.field label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; color: #8296A9;
}
.field input, .field select, .field textarea {
  background: var(--deep-2); border: 1px solid #2C3B4C; color: #E8EDF2;
  padding: 8px 12px; font-family: var(--font-body); font-size: 14px; line-height: 1.5;
  transition: border-color .2s; width: 100%; border-radius: 0;
}
.field select { padding-right: 32px; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #8296A9 50%), linear-gradient(135deg, #8296A9 50%, transparent 50%);
  background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--oht);
}
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.form-hint { font-size: 12.5px; color: #6E8093; }

/* ---------- 頁尾標題欄 ---------- */
.footer { border-top: 2px solid var(--ink); background: var(--paper); }
.footer-main {
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 44px 0 28px;
}
.footer-brand p { font-size: 13px; color: var(--steel); margin-top: 6px; max-width: 360px; }
.footer-nav { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-nav .col .h {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--steel);
  margin-bottom: 12px;
}
.footer-nav .col a { display: block; font-size: 14px; padding: 4px 0; color: var(--ink); }
.footer-nav .col a:hover { color: var(--oht-deep); }
.footer-bot {
  border-top: 1px solid var(--line); padding: 16px 0 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--steel);
}
.footer-bot .mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; }

/* ---------- 標高導覽軌（首頁桌機） ---------- */
.elev-rail {
  position: fixed; right: 26px; top: 50%; transform: translateY(-50%);
  z-index: 150; display: none; user-select: none;
}
@media (min-width: 1240px) { body.has-rail .elev-rail { display: block; } }
.elev-rail .rail-line { position: relative; width: 1px; background: var(--line); height: 46vh; margin-left: 5px; }
.rail-tick {
  position: absolute; right: -5px; display: flex; flex-direction: row-reverse;
  align-items: center; gap: 8px;
  transform: translateY(-50%);
}
.rail-tick i { width: 11px; height: 1px; background: var(--steel); display: block; }
.rail-tick span {
  font-family: var(--font-mono); font-size: 10px; color: var(--steel); letter-spacing: .08em;
  white-space: nowrap; transition: color .3s;
}
.rail-tick.active span { color: var(--oht-deep); font-weight: 500; }
.rail-ind {
  position: absolute; left: -3px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--oht); transform: translateY(-50%);
  transition: top .35s ease;
}

/* ---------- 服務頁 ---------- */
.note-band {
  border-left: 3px solid var(--oht); padding: 14px 20px;
  background: var(--card); color: var(--steel); font-size: 14.5px;
}

.page-head { padding: calc(var(--nav-h) + 60px) 0 52px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head .hero-grid-bg { background-size: 64px 64px; }
.crumbs {
  font-family: var(--font-mono); font-size: 12px; color: var(--steel);
  letter-spacing: .06em; display: flex; gap: 8px; flex-wrap: wrap; position: relative;
}
.crumbs a:hover { color: var(--oht-deep); }
.page-head-tags {
  display: flex; align-items: center; gap: 16px; margin: 26px 0 10px; flex-wrap: wrap;
  position: relative;
}
.page-head-tags .cat {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--steel);
}
.page-head h1 {
  font-size: clamp(30px, 5vw, 48px); font-weight: 900; line-height: 1.25; position: relative;
}
.page-head .lead { max-width: 660px; color: var(--steel); margin-top: 14px; position: relative; }

.page-hero { position: relative; width: 100%; height: clamp(260px, 36vw, 520px); overflow: hidden; border-bottom: 1px solid var(--line); margin: 0; }
.page-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
.page-hero .elev-badge {
  position: absolute; left: 24px; bottom: 20px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: #fff;
  background: rgba(19,28,38,.78); padding: 6px 12px; border-left: 3px solid var(--oht);
}
@media (max-width: 640px) { .page-hero { height: 220px; } }

/* 服務頁嵌入短片 */
.page-video { position: relative; border: 1px solid var(--line); background: var(--deep); overflow: hidden; aspect-ratio: 16 / 9; }
.page-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-video { cursor: pointer; }
.page-video .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; border: 0;
  background: rgba(19,28,38,.72); color: #fff; display: none; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 8px 24px rgba(0,0,0,.3);
  cursor: pointer; transition: background .2s, transform .2s;
}
.page-video .play::before {
  content: ""; display: block; margin-left: 4px;
  border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff;
}
.page-video .play:hover { background: var(--oht-deep); transform: translate(-50%, -50%) scale(1.06); }
.page-video.is-paused .play { display: flex; }
.page-video figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: #fff;
  padding: 8px 12px; background: linear-gradient(transparent, rgba(19,28,38,.7));
}
.video-band { padding: 0 0 96px; }
.video-band .wrap > .page-video { margin-top: -48px; }
.cap-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.two-col .cap-grid .fig-43 { aspect-ratio: 16 / 10; }

.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
@media (max-width: 720px) { .scope-grid { grid-template-columns: 1fr; } }
.scope-item {
  display: grid; grid-template-columns: 30px 1fr; gap: 12px;
  padding: 18px 0; border-bottom: 1px solid var(--line-soft);
}
.scope-item .mk { font-family: var(--font-mono); font-size: 12px; color: var(--oht-deep); padding-top: 4px; }
.scope-item h3 { font-size: 16px; font-weight: 700; }
.scope-item p { font-size: 13.5px; color: var(--steel); margin-top: 2px; }

.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .how-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .how-grid { grid-template-columns: 1fr; } }
.how-step { border: 1px solid var(--line); background: var(--card); padding: 22px; }
.how-step .no { font-family: var(--font-num); font-size: 26px; font-weight: 600; color: var(--oht-deep); line-height: 1; }
.how-step h3 { font-size: 16px; font-weight: 700; margin: 12px 0 6px; }
.how-step p { font-size: 13.5px; color: var(--steel); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { padding: 30px 26px; border-left: 1px solid #2C3B4C; }
.stat:first-child { border-left: 0; }
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; border-top: 1px solid #2C3B4C; }
}
.stat .num {
  font-family: var(--font-num); font-size: clamp(28px, 3.6vw, 40px); font-weight: 600;
  color: #fff; line-height: 1.15;
}
.stat .num small { font-size: .5em; color: var(--oht); font-weight: 500; margin-left: 2px; }
.stat .lb { font-size: 13px; color: #8296A9; margin-top: 6px; }
.stats-note { font-size: 12px; color: #56687A; margin-top: 18px; font-family: var(--font-mono); letter-spacing: .06em; }

.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .rel-grid { grid-template-columns: 1fr; } }
.rel-card {
  border: 1px solid var(--line); background: var(--card); padding: 20px 22px;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .2s, transform .2s;
}
.rel-card:hover { border-color: var(--steel); transform: translateY(-3px); }
.rel-card .cat { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--steel); letter-spacing: .1em; }
.rel-card h3 { font-size: 16.5px; font-weight: 700; }
.rel-card .more { font-family: var(--font-mono); font-size: 12px; color: var(--oht-deep); margin-top: 6px; }

.cta-band { text-align: center; padding: 84px 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("../img/IMG-CTA-1.webp") center / cover no-repeat;
  opacity: .55;
}
.cta-band > .wrap { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(24px, 3.6vw, 34px); font-weight: 900; color: #fff; margin-bottom: 12px; }
.cta-band p { color: #9FAEBC; max-width: 560px; margin: 0 auto 30px; }

/* ---------- 進場動效 ---------- */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.rv.on { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; }
.rv-d2 { transition-delay: .16s; }
.rv-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sheet.is-playing .tc-dot { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  .hs .dot::after { animation: none; }
  .oht-line .track { stroke-dashoffset: 0; animation: none; }
  .oht-line .node { opacity: 1; animation: none; }
  .oht-veh { display: none; }
  .svc-card, .rel-card, .rail-ind { transition: none; }
}

/* ---------- 工具 ---------- */
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }
