/* ==========================================================================
   必思數位｜Be Smart Marketing　v2（專業顧問風格）
   色彩、字級、間距皆以 token 管理。
   ========================================================================== */

:root {
  --navy: #142238;
  --navy-deep: #0D1828;
  --fog: #F5F4F0;
  --surface: #FFFFFF;
  --mist: #F3F5F8;
  --border: #E1E6EE;
  --border-strong: #C9D1DD;
  --teal: #18B7A0;
  --teal-deep: #0E7C6B;
  --teal-deeper: #0A6B5D;
  --teal-tint: #E8F4F1;
  --ink-2: #3B475C;
  --slate: #5B6478;
  --slate-on-dark: #A9B1C0;
  --error: #B42318;

  --rule-on-dark: rgb(245 244 240 / 14%);
  --shadow-sm: 0 1px 2px rgb(20 34 56 / 6%);
  --shadow-md: 0 1px 2px rgb(20 34 56 / 5%), 0 10px 28px rgb(20 34 56 / 9%);

  --font: "Inter", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-zh: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-en: "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius: 4px;
  --radius-card: 12px;

  /* 手機 */
  --pad: 16px;
  --gap: 16px;
  --section-y: 64px;
  --header-h: 80px;
  --overlap: 48px;
  --fs-h1: 34px;
  --fs-h2: 28px;
  --fs-h3: 20px;
  --fs-lead: 18px;
  --fs-body: 16px;
  --fs-small: 13px;
  --art-stroke: 2.8;
}

@media (min-width: 768px) {
  :root {
    --pad: 32px;
    --gap: 24px;
    --section-y: 96px;
    --overlap: 72px;
    --fs-h1: 44px;
    --fs-h2: 34px;
    --fs-h3: 22px;
    --fs-lead: 19px;
    --art-stroke: 2;
  }
}

@media (min-width: 1024px) {
  :root {
    --pad: 48px;
    --section-y: 112px;
    --overlap: 88px;
    --fs-h1: 56px;
    --fs-h2: 40px;
    --fs-h3: 24px;
    --fs-lead: 20px;
    --fs-body: 17px;
    --fs-small: 14px;
    --art-stroke: 1.5;
  }
}

/* ---------- 基礎 ---------- */

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--navy);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.75;
  letter-spacing: 0.01em;
  line-break: strict;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
.clause { display: inline-block; }

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; }
svg { display: block; }
a { color: inherit; }

[id] { scroll-margin-top: 80px; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.on-dark :focus-visible { outline-color: var(--teal); }
.on-dark .form-panel :focus-visible { outline-color: var(--navy); }
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--navy);
  color: var(--fog);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; outline-color: var(--teal); }

.wrap {
  width: 100%;
  max-width: calc(1200px + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.br-desk { display: none; }
@media (min-width: 1024px) { .br-desk { display: inline; } }

.prose { max-width: 38em; color: var(--ink-2); }

.note {
  margin-top: 14px;
  max-width: 46em;
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--slate);
}
.on-dark .note { color: var(--slate-on-dark); }

/* ---------- 圖示（線條風格、24px 網格） ---------- */

.icon {
  display: block;
  width: 24px; height: 24px;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}
.icon-box {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--teal-tint);
  color: var(--teal-deep);
}

/* ---------- 字標 ---------- */

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: inherit;
  text-decoration: none;
}
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-mark rect { fill: var(--navy); }
.brand-mark path { fill: none; stroke: var(--fog); stroke-width: 2.2; stroke-linecap: round; }
.brand-mark .bm-start { fill: var(--fog); }
.brand-mark .bm-key { fill: var(--teal); }
.on-dark .brand-mark rect { fill: var(--fog); }
.on-dark .brand-mark path { stroke: var(--navy); }
.on-dark .brand-mark .bm-start { fill: var(--navy); }

.wordmark-text { display: flex; flex-direction: column; line-height: 1.15; }
.wordmark-zh {
  font-family: var(--font-zh);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.wordmark-en {
  margin-top: 3px;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--slate);
}
.on-dark .wordmark-en { color: var(--slate-on-dark); }

.wordmark--stack .brand-mark { width: 44px; height: 44px; }
.wordmark--stack .wordmark-zh { font-size: 22px; }
.wordmark--stack .wordmark-en { font-size: 11px; }

/* ---------- 按鈕 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms, color 150ms, border-color 150ms, transform 150ms;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { cursor: progress; }

.arrow {
  display: inline-block;
  font-family: var(--font-en);
  transition: transform 150ms var(--ease);
}
.btn:hover .arrow,
.text-link:hover .arrow,
.pillar:hover .pillar-arrow { transform: translateX(4px); }

.btn-primary { background: var(--teal-deep); color: #fff; }
.btn-primary:hover { background: var(--teal-deeper); }
.btn-primary[disabled] { background: var(--teal-deeper); }

.btn-secondary { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-secondary:hover { background: var(--navy); color: var(--fog); }
.on-dark .btn-secondary { border-color: rgb(245 244 240 / 55%); color: var(--fog); }
.on-dark .btn-secondary:hover { background: var(--fog); border-color: var(--fog); color: var(--navy); }

.btn-block { width: 100%; }

.text-link {
  color: var(--teal-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- 導覽列 ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: height 200ms var(--ease), box-shadow 200ms;
}
.site-header.is-scrolled { --header-h: 64px; box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.nav { display: none; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms;
}
.nav-links a:hover { color: var(--teal-deep); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--teal-deep);
  transform: scaleX(0);
  transition: transform 200ms var(--ease);
}
.nav-links a[aria-current="true"] { color: var(--teal-deep); }
.nav-links a[aria-current="true"]::after { transform: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.btn-header { min-height: 44px; padding: 0 14px; font-size: 14px; }
.btn-header .arrow { display: none; }

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: var(--radius);
  cursor: pointer;
}
.menu-icon { position: relative; display: block; width: 22px; height: 14px; }
.menu-icon span {
  position: absolute;
  left: 0;
  width: 100%; height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 200ms var(--ease);
}
.menu-icon span:first-child { top: 0; }
.menu-icon span:last-child { bottom: 0; }
.menu-toggle.is-open .menu-icon span:first-child { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open .menu-icon span:last-child { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 1024px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
  .btn-header { padding: 0 20px; font-size: 15px; }
  .btn-header .arrow { display: inline-block; }
}

/* 手機選單 */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  height: 80px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
  padding-bottom: 32px;
}
.mobile-menu-links li { border-bottom: 1px solid var(--border); }
.mobile-menu-links a {
  display: flex;
  align-items: center;
  padding: 18px 0;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}
.mobile-menu-links a[aria-current="true"] { color: var(--teal-deep); }
.mm-num { display: none; }

body.menu-open { overflow: hidden; }

/* ---------- 區塊共用 ---------- */

.section { padding-block: var(--section-y); }
.section--mist { background: var(--mist); }
.section--dark { background: var(--navy); color: var(--fog); }

.eyebrow,
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--teal-deep);
}
.eyebrow::before,
.hero-eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}
.on-dark .eyebrow,
.on-dark .hero-eyebrow { color: var(--teal); }

.split-head { max-width: 820px; }
.split-head h2 { max-width: 20em; }
.split-head .prose { margin-top: 16px; font-size: var(--fs-lead); line-height: 1.7; }
.on-dark .split-head .prose { color: var(--slate-on-dark); }

/* ---------- 1. 首屏（深色） ---------- */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 48px);
  background: var(--navy);
  color: var(--fog);
}

.hero-grid { display: grid; gap: 40px; }

.hero-title {
  font-size: var(--fs-h1);
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.hero-title .line { display: block; }
.hero-title .line > span { display: inline-block; }
.hero-title em { color: var(--teal); }

.hero-sub {
  margin-top: 24px;
  max-width: 32em;
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: var(--slate-on-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-figure { position: relative; }
.hero-art {
  width: 100%;
  height: auto;
  max-height: 40vh;
  max-height: 40svh;
  margin-inline: auto;
}

/* 三項服務卡：壓在首屏與下一區塊的交界 */
.pillars-wrap {
  position: relative;
  z-index: 2;
  margin-top: 56px;
  margin-bottom: calc(var(--overlap) * -1);
}
.pillars { display: grid; gap: 16px; }
.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  row-gap: 6px;
  height: 100%;
  padding: 24px;
  background: var(--surface);
  color: var(--navy);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: transform 200ms var(--ease), box-shadow 200ms;
}
.pillar:hover { transform: translateY(-3px); }
.pillar .icon-box { grid-row: span 3; }
.pillar-title { font-size: 18px; font-weight: 700; line-height: 1.4; }
.pillar-text { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.pillar-arrow {
  justify-self: start;
  margin-top: 4px;
  font-family: var(--font-en);
  font-weight: 600;
  color: var(--teal-deep);
  transition: transform 150ms var(--ease);
}
.hero + .section { padding-top: calc(var(--section-y) + var(--overlap)); }

@media (min-width: 768px) {
  .pillars { grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
  .pillar { grid-template-columns: 1fr; padding: 28px; }
  .pillar .icon-box { grid-row: auto; margin-bottom: 12px; }
}

@media (min-width: 1024px) {
  .hero { padding-top: calc(80px + 88px); }
  .hero-grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gap);
    align-items: center;
  }
  .hero-copy { grid-column: 1 / 7; }
  .hero-figure { grid-column: 8 / 13; }
  .hero-art { max-height: 460px; }
  .hero-actions { margin-top: 40px; }
  .pillars-wrap { margin-top: 88px; }
  .pillar { padding: 32px; }
}

/* ---------- 品牌圖形 ---------- */

.g-path {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.g-path.g-soft { stroke: var(--slate); }
.g-mod { fill: var(--surface); stroke: var(--navy); stroke-width: 1.5; }
.g-fill { fill: rgb(20 34 56 / 7%); }
.g-solid { fill: var(--navy); }
.g-node { fill: var(--navy); }
.g-node-soft, .g-node-soft circle { fill: var(--slate); }
.g-key { fill: var(--teal); }

.on-dark .g-path { stroke: rgb(245 244 240 / 85%); }
.on-dark .g-path.g-soft { stroke: var(--slate-on-dark); }
.on-dark .g-mod { fill: var(--navy); stroke: rgb(245 244 240 / 85%); }
.on-dark .g-fill { fill: rgb(245 244 240 / 12%); }
.on-dark .g-solid,
.on-dark .g-node { fill: var(--fog); }
.on-dark .g-node-soft { fill: var(--slate-on-dark); }

.hero-art .g-path,
.hero-art .g-mod { stroke-width: var(--art-stroke); }
.figure-art .g-path,
.figure-art .g-mod { vector-effect: non-scaling-stroke; }

/* 首屏描線：只播放一次 */
.js .hero-art .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.2s var(--ease) 0.15s forwards;
}
.js .hero-art .d2 { animation-delay: 0.35s; }
.js .hero-art .d3 { animation-delay: 0.55s; }
.js .hero-art .d4 { animation-delay: 0.9s; }
.js .hero-art .mod { opacity: 0; animation: fade 600ms var(--ease) forwards; }
.js .hero-art .m2 { animation-delay: 0.2s; }
.js .hero-art .m3 { animation-delay: 0.4s; }
.js .hero-art .nodes circle { opacity: 0; animation: fade 400ms var(--ease) 1.1s forwards; }
.js .hero-art .nodes .breathe {
  animation: fade 400ms var(--ease) 1.1s forwards, breathe 4s ease-in-out 1.6s infinite;
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* 服務圖動態：疊加層預設隱藏，靜態時就是原圖；進畫面才播放，離開即暫停 */
.fx-blink, .fx-ring, .fx-dot, .fx-hub, .fx-hl { opacity: 0; transform-box: fill-box; transform-origin: center; }
.fx-blink, .fx-dot, .fx-hub { fill: var(--teal); }
.fx-ring { fill: none; stroke: var(--teal); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.fx-hl { fill: rgb(24 183 160 / 22%); stroke: var(--teal-deep); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

.js .fx-blink, .js .fx-ring, .js .fx-dot, .js .fx-hub, .js .fx-hl {
  animation-timing-function: var(--ease);
  animation-iteration-count: infinite;
  animation-play-state: paused;
}
.js .figure-art.is-playing :is(.fx-blink, .fx-ring, .fx-dot, .fx-hub, .fx-hl) { animation-play-state: running; }

/* 廣告：路徑節點依序亮起，終點擴散一圈 */
.js .fx-blink { animation-name: fx-blink; animation-duration: 6s; }
.js .fx-ring { animation-name: fx-ring; animation-duration: 6s; }
.js .figure-art .n1 { animation-delay: 0.45s; }
.js .figure-art .n2 { animation-delay: 0.9s; }
.js .figure-art .n3 { animation-delay: 1.35s; }
.js .figure-art .n4 { animation-delay: 1.8s; }

/* AI：資料點沿線匯流到中心，再從輸出端亮起 */
.js .fx-dot { animation-duration: 5s; animation-timing-function: ease-in-out; }
.js .fx-in { animation-name: fx-in; }
.js .fx-down { animation-name: fx-down; }
.js .fx-up { animation-name: fx-up; }
.js .figure-art .r1 { animation-delay: 0.12s; }
.js .figure-art .r2 { animation-delay: 0.24s; }
.js .figure-art .r3 { animation-delay: 0.12s; }
.js .fx-hub { animation-name: fx-hub; animation-duration: 5s; }
.js .fx-out { animation-duration: 5s; animation-delay: 2.6s; }

/* 網站：同一個版面模組依序在桌面、平板、手機亮起 */
.js .fx-hl { animation-name: fx-hl; animation-duration: 9s; }
.js .fx-ring.h2 { animation-duration: 9s; }
.js .figure-art .h1 { animation-delay: 3s; }
.js .figure-art .h2 { animation-delay: 6s; }

@keyframes fx-blink {
  0% { opacity: 0; transform: scale(0.5); }
  6% { opacity: 1; transform: none; }
  55% { opacity: 1; transform: none; }
  70%, 100% { opacity: 0; transform: none; }
}
@keyframes fx-ring {
  0% { opacity: 0; transform: scale(0.6); }
  8% { opacity: 0.9; }
  40%, 100% { opacity: 0; transform: scale(1.7); }
}
@keyframes fx-in {
  0% { opacity: 0; transform: none; }
  6% { opacity: 1; }
  42% { opacity: 1; transform: translateX(132px); }
  48%, 100% { opacity: 0; transform: translateX(132px); }
}
@keyframes fx-down {
  0% { opacity: 0; transform: none; }
  6% { opacity: 1; }
  30% { transform: translate(122px, 0); }
  34% { transform: translate(132px, 12px); }
  48% { opacity: 1; transform: translate(132px, 104px); }
  54%, 100% { opacity: 0; transform: translate(132px, 104px); }
}
@keyframes fx-up {
  0% { opacity: 0; transform: none; }
  6% { opacity: 1; }
  30% { transform: translate(122px, 0); }
  34% { transform: translate(132px, -12px); }
  48% { opacity: 1; transform: translate(132px, -104px); }
  54%, 100% { opacity: 0; transform: translate(132px, -104px); }
}
@keyframes fx-hub {
  0%, 40% { opacity: 0; transform: scale(0.6); }
  50% { opacity: 1; transform: none; }
  70% { opacity: 1; transform: none; }
  82%, 100% { opacity: 0; transform: none; }
}
@keyframes fx-hl {
  0% { opacity: 0; transform: scale(0.96); }
  5% { opacity: 1; transform: none; }
  30% { opacity: 1; transform: none; }
  36%, 100% { opacity: 0; transform: none; }
}

/* ---------- 進場 ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 2. 品牌理念 ---------- */

.philosophy-intro { display: grid; gap: 16px; }
.philosophy-intro .prose { font-size: var(--fs-lead); line-height: 1.7; }

.values { display: grid; gap: 16px; margin-top: 40px; }
.value {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.value h3 { margin-top: 20px; font-size: 20px; }
.value-main { margin-top: 10px; font-weight: 600; }
.value-sub { margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--slate); }

@media (min-width: 768px) {
  .values { grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 56px; }
}
@media (min-width: 1024px) {
  .philosophy-intro {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gap);
    align-items: end;
  }
  .philosophy-intro h2 { grid-column: 1 / 6; }
  .philosophy-intro .prose { grid-column: 7 / 13; }
  .value { padding: 32px; }
}

/* ---------- 3. 服務 ---------- */

.section--services .split-head { margin-bottom: 40px; }

.service {
  display: grid;
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.service-intro,
.service-detail { padding: 28px 22px; }
.service-detail { border-top: 1px solid var(--border); }

.service-figure {
  margin: 0 0 28px;
  padding: 16px;
  background: var(--mist);
  border-radius: 8px;
}
.figure-art { width: 100%; height: auto; max-height: 180px; margin-inline: auto; }

.service-index {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.service-index .num {
  display: inline-grid;
  place-items: center;
  min-width: 32px; height: 24px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--navy);
  color: var(--fog);
  letter-spacing: 0.02em;
}
.service-index .num + span { color: var(--slate); }

.service-title { margin-top: 16px; font-size: calc(var(--fs-h3) + 2px); }
.service-value {
  margin-top: 12px;
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: 1.55;
}
.service-desc { margin-top: 14px; color: var(--ink-2); }

.service-foot { display: grid; gap: 20px; margin-top: 28px; }
.service-terms {
  padding: 16px 18px;
  background: var(--mist);
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}
.terms-label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.service-foot .btn { justify-self: start; }

.service-block + .service-block { margin-top: 32px; }
.block-label {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* 勾選清單 */
.dash-list,
.work-list { display: grid; gap: 8px; }
.dash-list { margin-top: 14px; }
.dash-list li,
.work-list li {
  position: relative;
  padding-left: 30px;
  line-height: 1.6;
}
.dash-list li::before,
.work-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 20px; height: 20px;
  background: var(--teal-deep);
  -webkit-mask: var(--i-check) center / contain no-repeat;
  mask: var(--i-check) center / contain no-repeat;
}
.dash-list--dark li::before { background: var(--teal); }
.work-list { column-gap: var(--gap); }

.more-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal-deep);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
@media (max-width: 767px) {
  .work-list[data-collapsed="true"] > .is-extra { display: none; }
}

/* 標籤（平台、網站類型） */
.platforms--inline,
.type-list { display: flex; flex-wrap: wrap; gap: 8px; }
.platforms--inline li,
.type-list li {
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--mist);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.platforms--inline li { font-family: var(--font-en); }

@media (min-width: 768px) {
  .work-list { grid-template-columns: 1fr 1fr; }
  .more-toggle { display: none; }
  .service-intro, .service-detail { padding: 36px; }
  .figure-art { max-height: 220px; }
}

@media (min-width: 1024px) {
  .section--services .split-head { margin-bottom: 56px; }
  .service { grid-template-columns: 5fr 7fr; }
  .service-intro { padding: 44px; }
  .service-detail { padding: 44px; border-top: 0; border-left: 1px solid var(--border); }
  .figure-art { max-height: 200px; }
}

/* ---------- 4. 專業能力 ---------- */

.platform-block { margin-top: 48px; }
.platform-label { font-size: 16px; font-weight: 700; }
.platforms:not(.platforms--inline) {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 14px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.platforms:not(.platforms--inline) li {
  display: grid;
  place-items: center;
  min-height: 76px;
  padding: 12px;
  background: var(--surface);
  font-family: var(--font-en);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.cap-modules { display: grid; gap: 16px; margin-top: 40px; }
.cap {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.cap h3 { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.cap h3 > :first-child { font-size: 20px; }
.cap h3 > :last-child:not(:first-child) {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.cap-scope { margin-top: 14px; font-weight: 600; line-height: 1.6; }
.cap-desc { margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--slate); }

@media (min-width: 768px) {
  .platforms:not(.platforms--inline) { grid-template-columns: repeat(3, 1fr); }
  .cap-modules { grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
}
@media (min-width: 1024px) {
  .platform-block { margin-top: 64px; }
  .platforms:not(.platforms--inline) { grid-template-columns: repeat(6, 1fr); }
  .platforms:not(.platforms--inline) li { min-height: 88px; font-size: 20px; }
  .cap-modules { grid-template-columns: repeat(4, 1fr); margin-top: 48px; }
}

/* ---------- 5. 整合方法 ---------- */

.flow { position: relative; margin-top: 48px; }

.flow-steps li {
  position: relative;
  min-height: 44px;
  padding: 0 0 28px 64px;
}
.flow-num {
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--fog);
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
}
.flow-steps li:last-child .flow-num { background: var(--teal-deep); color: #fff; }
.flow-steps li::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 52px;
  bottom: 6px;
  width: 2px;
  background: var(--border-strong);
}
.flow-steps li:last-child { padding-bottom: 0; }
.flow-steps li:last-child::after { display: none; }
.flow-steps h3 { padding-top: 8px; font-size: 18px; }
.flow-steps p { margin-top: 6px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }

.ai-rail { margin-top: 24px; }
.ai-rail span:not(.ai-label) { display: none; }
.ai-label {
  display: block;
  padding: 12px 16px;
  border: 1px solid rgb(14 124 107 / 35%);
  border-radius: 8px;
  background: var(--teal-tint);
  color: var(--teal-deeper);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.approach-notes { display: grid; gap: 20px; margin-top: 32px; }
.ai-note, .flex-note { color: var(--ink-2); }
.ai-note strong { color: var(--teal-deep); margin-right: 0.2em; }

.mini-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  font-size: 18px;
  font-weight: 700;
}

@media (min-width: 1024px) {
  .flow { margin-top: 64px; }
  .flow-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    column-gap: var(--gap);
  }
  .flow-steps li { padding: 64px 8px 0 0; }
  .flow-steps li::after {
    left: 52px;
    right: calc(var(--gap) * -1 + 8px);
    top: 21px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .flow-steps h3 { padding-top: 0; }

  .ai-rail {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    column-gap: var(--gap);
    margin-top: 16px;
  }
  .ai-rail span:not(.ai-label) { display: block; height: 28px; }
  .ai-rail .tick { margin-left: 21px; border-left: 2px dashed var(--teal-deep); }
  .ai-label { grid-column: 3 / 6; grid-row: 2; }

  .approach-notes {
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    margin-top: 48px;
  }
  .mini-cta { grid-column: 1 / -1; padding: 28px 32px; }
}

/* 整合流程：進畫面後五個步驟依序點亮，連接線跟著延伸（--step 由 site.js 設定） */
.js .flow-steps .flow-num,
.js .flow-steps h3,
.js .flow-steps p {
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
  transition-delay: calc(var(--step, 0) * 420ms + 200ms);
}
.js .flow-steps .flow-num { opacity: 0.25; transform: scale(0.84); }
.js .flow-steps h3,
.js .flow-steps p { opacity: 0.45; }
.js .flow-steps li::after {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 420ms var(--ease) calc(var(--step, 0) * 420ms + 420ms);
}
.js .flow .ai-rail { opacity: 0.3; transition: opacity 600ms var(--ease) 2.3s; }

.js .flow.is-lit .flow-steps .flow-num,
.js .flow.is-lit .flow-steps h3,
.js .flow.is-lit .flow-steps p,
.js .flow.is-lit .ai-rail { opacity: 1; transform: none; }
.js .flow.is-lit .flow-steps li::after { transform: none; }

@media (min-width: 1024px) {
  .js .flow-steps li::after { transform: scaleX(0); transform-origin: left; }
}

/* ---------- 6. 合作流程 ---------- */

.process-title { max-width: 20em; }
.process { display: grid; gap: 16px; margin-top: 40px; }
.step {
  display: grid;
  align-content: start;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.step-num {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-deeper);
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
}
.step h3 { margin-top: 16px; font-size: 19px; }
.step-part { margin-top: 14px; }
.step-part p:last-child { font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.step-label {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--slate);
}
.step-get {
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--mist);
}
.step-get .step-label { color: var(--teal-deep); }
.step-get p:last-child { color: var(--navy); font-weight: 500; }
.process-note { margin-top: 24px; }

@media (min-width: 768px) and (max-width: 1023px) {
  .step {
    grid-template-columns: 180px 1fr 1fr;
    column-gap: var(--gap);
    align-items: start;
  }
  .step-num { grid-column: 1; grid-row: 1; }
  .step h3 { grid-column: 1; grid-row: 2; }
  .step-part { grid-column: 2; grid-row: 1 / 3; margin-top: 0; }
  .step-get { grid-column: 3; }
}

@media (min-width: 1024px) {
  .process {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 0 var(--gap);
    margin-top: 56px;
  }
  .step {
    grid-row: span 4;
    grid-template-rows: subgrid;
  }
  .step-get { margin-top: 16px; }
  .process-note { margin-top: 32px; }
}

/* ---------- 7. 關於我們 ---------- */

.about-grid { display: grid; gap: 24px; }
.about-lead {
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: 1.65;
}
.about-body .prose { margin-top: 20px; }

.principles { display: grid; gap: 16px; margin-top: 48px; }
.principle {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.principle h3 { margin-top: 20px; font-size: 19px; }
.principle p { margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--slate); }

@media (min-width: 768px) {
  .principles { grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
}
@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gap);
    align-items: start;
  }
  .about-grid h2 { grid-column: 1 / 6; }
  .about-body { grid-column: 7 / 13; }
  .principles { margin-top: 64px; }
}

/* ---------- 8. 聯絡（深色） ---------- */

.contact-grid { display: grid; gap: 40px; }
.contact-intro .prose { margin-top: 20px; font-size: var(--fs-lead); color: var(--slate-on-dark); }
.dash-list--dark { margin-top: 28px; gap: 12px; }

.contact-channels {
  display: grid;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-on-dark);
}
.contact-channels a { color: var(--fog); text-underline-offset: 4px; }
.contact-channels .ch-label { display: block; font-size: 13px; color: var(--slate-on-dark); }

.form-panel {
  padding: 24px 20px 28px;
  background: var(--surface);
  color: var(--navy);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
}

.form-alert,
.form-status:not(:empty) {
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.6;
}
.form-alert { border: 1px solid var(--error); background: #FEF3F2; color: var(--error); }
.form-alert[hidden] { display: none; }
.form-alert:focus, .form-status:focus { outline: 2px solid var(--navy); outline-offset: 2px; }
.form-alert .alert-title { font-weight: 700; }
.form-alert ul { margin-top: 8px; display: grid; gap: 2px; }
.form-alert a { color: var(--error); text-underline-offset: 3px; }
.form-status:not(:empty) { border: 1px solid var(--teal-deep); background: var(--teal-tint); color: var(--navy); }
.form-status .status-title { font-weight: 700; }

.form-grid { display: grid; gap: 22px; }

.field label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.req { font-size: 12px; font-weight: 500; color: var(--slate); }

.field input[type="text"],
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--navy);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 150ms, box-shadow 150ms;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--slate); opacity: 1; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--navy); }
.field textarea { min-height: 148px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23142238' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }

.field-hint { margin-top: 6px; font-size: 13px; line-height: 1.6; color: var(--slate); }
.field-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--error);
}
.field-error[hidden] { display: none; }
.field-error svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }

.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.consent input {
  width: 20px; height: 20px;
  margin: 4px 0 0;
  accent-color: var(--teal-deep);
  cursor: pointer;
}
.consent label {
  display: block;
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  cursor: pointer;
}
.consent .req { margin-left: 6px; }
.consent input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { margin-top: 28px; }
.form-actions .btn { width: 100%; }

/* 送出成功：沿用首屏描線，先畫圓再畫勾 */
.success-check {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  fill: none;
  stroke: var(--teal-deep);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.js .success-check .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 700ms var(--ease) 100ms forwards;
}
.js .success-check .d2 { animation-duration: 450ms; animation-delay: 650ms; }

.form-success h3 { font-size: var(--fs-h3); }
.form-success p { margin-top: 12px; }
.form-success h3:focus { outline: none; }
.form-success[hidden] { display: none; }

@media (min-width: 768px) {
  .form-panel { padding: 36px 32px; }
  .form-grid { grid-template-columns: 1fr 1fr; column-gap: 20px; row-gap: 24px; }
  .field--full { grid-column: 1 / -1; }
  .form-actions .btn { width: auto; }
}
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gap);
    align-items: start;
  }
  .contact-intro { grid-column: 1 / 6; padding-right: 32px; position: sticky; top: 112px; }
  .form-panel { grid-column: 6 / 13; padding: 44px 40px; }
}

/* ---------- 頁尾 ---------- */

.site-footer {
  padding: 64px 0 28px;
  background: var(--navy-deep);
  color: var(--fog);
}
.footer-top { display: grid; gap: 40px; }
.footer-tagline { margin-top: 20px; max-width: 26em; font-size: 15px; color: var(--slate-on-dark); }
.footer-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  text-decoration: none;
  color: var(--slate-on-dark);
}
.footer-nav a:hover { color: var(--fog); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-on-dark);
  font-size: 13px;
  color: var(--slate-on-dark);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--fog);
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-nav ul { grid-template-columns: repeat(3, auto); justify-content: start; }
}
@media (min-width: 1024px) {
  .site-footer { padding-top: 80px; }
  .footer-top { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
  .footer-brand { grid-column: 1 / 6; }
  .footer-nav { grid-column: 8 / 13; }
  .footer-bottom { margin-top: 64px; }
}

/* ---------- 內頁（隱私權政策、404） ---------- */

.page {
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: var(--section-y);
}
.page-head h1 { font-size: var(--fs-h2); }
.legal { margin-top: 32px; max-width: 44em; }
.legal > p { color: var(--ink-2); }
.legal ol { margin-top: 32px; counter-reset: legal; }
.legal ol > li {
  position: relative;
  padding: 20px 0 20px 52px;
  border-top: 1px solid var(--border);
  counter-increment: legal;
}
.legal ol > li:last-child { border-bottom: 1px solid var(--border); }
.legal ol > li::before {
  content: counter(legal);
  position: absolute;
  left: 0;
  top: 18px;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-deeper);
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
}
.legal strong { font-weight: 700; }
.legal .tbd { padding: 0 2px; background: #FFF4D6; border-bottom: 1px dashed var(--slate); }

.notfound {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header-h);
}
.notfound .code {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--teal-deep);
}
.notfound h1 { margin-top: 12px; font-size: var(--fs-h1); }
.notfound-en { margin-top: 8px; font-size: var(--fs-h3); color: var(--slate); }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- 語言切換 ---------- */

.lang-switch {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--slate);
  transition: color 150ms;
}
.lang-switch:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.mobile-menu .lang-switch { display: inline-flex; align-self: flex-start; padding: 0; font-size: 16px; }
.footer-links .lang-switch { display: inline-flex; padding: 0; font-size: 13px; color: var(--fog); }
@media (min-width: 1024px) {
  .header-actions .lang-switch { display: inline-flex; }
}

.lbl-short { display: none; }
@media (max-width: 374px) {
  .has-short .lbl-long { display: none; }
  .has-short .lbl-short { display: inline; }
  .site-header .brand-mark,
  .mobile-menu .brand-mark { display: none; }
}
.site-header .wordmark-text,
.mobile-menu .wordmark-text { white-space: nowrap; }
.pillar-title, .pillar-text { text-wrap: pretty; }

/* ---------- 英文版排版 ---------- */

html:lang(en) body { line-height: 1.65; letter-spacing: 0; line-break: auto; }
html:lang(en) h1,
html:lang(en) h2,
html:lang(en) h3 { letter-spacing: -0.015em; line-height: 1.2; }
html:lang(en) .hero-title { letter-spacing: -0.025em; line-height: 1.1; }
html:lang(en) .hero-title .line { display: inline; }
html:lang(en) .btn { letter-spacing: 0; }
html:lang(en) .eyebrow,
html:lang(en) .hero-eyebrow { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
html:lang(en) .service-value { line-height: 1.45; }
html:lang(en) .about-lead { line-height: 1.5; }

@media (min-width: 1024px) {
  html:lang(en) .hero-title { font-size: 54px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  html:lang(en) .nav-links a { padding: 0 9px; font-size: 14px; }
  html:lang(en) .nav-links a::after { left: 9px; right: 9px; }
  html:lang(en) .btn-header { padding: 0 16px; }
  html:lang(en) .hero-title { font-size: 48px; }
}

/* ---------- 減少動態 ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero-art .draw,
  .js .success-check .draw { stroke-dasharray: none; stroke-dashoffset: 0; }
  .js .flow-steps .flow-num,
  .js .flow-steps h3,
  .js .flow-steps p,
  .js .flow .ai-rail { opacity: 1; transform: none; transition-delay: 0s; }
  .js .flow-steps li::after { transform: none; transition-delay: 0s; }
  .js .hero-art .mod,
  .js .hero-art .nodes circle { opacity: 1; }
  .btn:active { transform: none; }
  .btn:hover .arrow, .text-link:hover .arrow, .pillar:hover .pillar-arrow, .pillar:hover { transform: none; }
}

/* ---------- 圖示定義 ---------- */
:root {
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.i-check { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.i-target { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1.2' fill='black'/%3E%3C/svg%3E"); }
.i-link { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3Cpath d='M10 6.5h4.5a3 3 0 0 1 3 3V14'/%3E%3Cpath d='M14 17.5H9.5a3 3 0 0 1-3-3V10'/%3E%3C/svg%3E"); }
.i-refresh { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8 8 0 0 0-14.4-4.6L4 8'/%3E%3Cpath d='M4 4v4h4'/%3E%3Cpath d='M4 13a8 8 0 0 0 14.4 4.6L20 16'/%3E%3Cpath d='M20 20v-4h-4'/%3E%3C/svg%3E"); }
.i-doc { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l4 4v14H6z'/%3E%3Cpath d='M14 3v4h4'/%3E%3Cpath d='M9 12h6M9 16h6'/%3E%3C/svg%3E"); }
.i-chart { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h16'/%3E%3Cpath d='M7 16v-4M12 16V8M17 16V5'/%3E%3C/svg%3E"); }
.i-flow { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5' cy='6' r='2'/%3E%3Ccircle cx='5' cy='18' r='2'/%3E%3Crect x='14' y='9' width='7' height='6' rx='1.5'/%3E%3Cpath d='M7 6h2.5a2.5 2.5 0 0 1 2.5 2.5V12h2'/%3E%3Cpath d='M7 18h2.5a2.5 2.5 0 0 0 2.5-2.5V12'/%3E%3C/svg%3E"); }
.i-browser { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M3 9h18'/%3E%3Cpath d='M7 13h6M7 16h9'/%3E%3C/svg%3E"); }
.i-search { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M20 20l-4.2-4.2'/%3E%3C/svg%3E"); }
.i-check-circle { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.7 2.7L16.5 9.5'/%3E%3C/svg%3E"); }
.i-megaphone { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10v4a1 1 0 0 0 1 1h2l7 4V5L7 9H5a1 1 0 0 0-1 1z'/%3E%3Cpath d='M17.5 9a4 4 0 0 1 0 6'/%3E%3Cpath d='M8 15l1 4'/%3E%3C/svg%3E"); }
.i-chip { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='6' width='12' height='12' rx='2'/%3E%3Cpath d='M9.5 2.5V6M14.5 2.5V6M9.5 18v3.5M14.5 18v3.5M2.5 9.5H6M2.5 14.5H6M18 9.5h3.5M18 14.5h3.5'/%3E%3Cpath d='M10 10h4v4h-4z'/%3E%3C/svg%3E"); }
