/* ===========================================================
   PUSM — 普悠思瑪國際有限公司
   設計語彙沿用名片系統（PUSM_名片產生器.html）
   =========================================================== */

:root {
  --blue: #2F6BE8;
  --blue-dark: #2557C4;
  --blue-soft: #EDF2FD;
  --lavender-soft: #F0EEFF;
  --cyan-soft: #EAF8FF;

  --ink: #2B2F33;
  --gray: #6E767E;
  --mute: #6F777F;
  --line: #C7CCD4;
  --rule: #E3E6EA;
  --rule-soft: #EEF0F3;

  --bg: #FFFFFF;
  --bg-soft: #F4F5F7;

  --cjk: 'Noto Sans TC', 'Source Han Sans TC', '思源黑體',
         'PingFang TC', '微軟正黑體', 'Microsoft JhengHei', sans-serif;
  --lat: 'Bahnschrift', 'DIN Alternate', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1160px;
  --pad: 24px;

  --radius-lg: 22px;
  --shadow-soft: 0 20px 60px rgba(34, 49, 78, .11);
}

* { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--cjk);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}

img, svg { max-width: 100%; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- 頁首 ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand .mark {
  font-family: var(--lat);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--blue);
  line-height: 1;
}

.brand .co {
  font-size: 13.5px;
  color: var(--mute);
  letter-spacing: .04em;
  line-height: 1;
}

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.menu a {
  display: block;
  padding: 7px 10px;
  font-size: 15px;
  color: var(--gray);
  border-radius: 6px;
}
.menu a:hover {
  color: var(--ink);
  background: var(--bg-soft);
  text-decoration: none;
}
.menu a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--blue);
  border-radius: 6px 6px 0 0;
}

.menu a.menu-cta {
  margin-left: 6px;
  padding-inline: 16px;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  box-shadow: none;
}
.menu a.menu-cta:hover {
  color: #fff;
  background: var(--blue-dark);
}
.menu a.menu-cta[aria-current="page"] {
  color: #fff;
  background: var(--blue-dark);
  border-radius: 999px;
  box-shadow: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}

.home-hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(199, 214, 255, .7), transparent 32%),
    radial-gradient(circle at 82% 12%, rgba(229, 220, 255, .68), transparent 30%),
    linear-gradient(145deg, #FBFCFF 0%, #F7FAFF 54%, #F4F2FF 100%);
}

.home-hero::after {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  right: -150px;
  bottom: -210px;
  border-radius: 50%;
  background: rgba(47, 107, 232, .08);
  filter: blur(2px);
  pointer-events: none;
}

.hero-wave {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .95;
  -webkit-mask-image: linear-gradient(to right, transparent 6%, #000 46%);
  mask-image: linear-gradient(to right, transparent 6%, #000 46%);
}
.hero-wave svg { display: block; }

.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: 96px;
  padding-bottom: 96px;
}

.home-hero .wrap {
  padding-top: 108px;
  padding-bottom: 126px;
}

.hero.sub .wrap { padding-top: 72px; padding-bottom: 72px; }

.hero-inner { max-width: 640px; }

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
  align-items: center;
  gap: clamp(34px, 5vw, 64px);
}

.hero-media {
  margin: 0;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1730 / 909;
  object-fit: cover;
  object-position: 62% center;
}

.hero.sub.visual-hero .hero-media img {
  aspect-ratio: 3 / 2;
}

.about-hero .hero-media img { object-position: 76% center; }
.contact-hero .hero-media img { object-position: center; }

.home-hero h1 {
  font-size: clamp(34px, 4.7vw, 58px);
  line-height: 1.25;
  letter-spacing: -.025em;
}

.hero-emphasis {
  color: var(--blue-dark);
  background: linear-gradient(100deg, #2459C8 0%, #4B5FD7 54%, #694BC7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-window {
  background: rgba(255, 255, 255, .88);
  border-color: rgba(255, 255, 255, .82);
  box-shadow:
    0 28px 80px rgba(51, 65, 104, .16),
    inset 0 0 0 1px rgba(47, 107, 232, .08);
}

.hero-window-bar {
  min-height: 42px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid var(--rule-soft);
  background: rgba(255, 255, 255, .92);
}
.hero-window-bar b {
  color: var(--gray);
  font-family: var(--lat);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.window-dots { display: flex; gap: 5px; }
.window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #D5D9E1;
}
.window-dots i:nth-child(2) { background: #C4D2F5; }
.window-dots i:nth-child(3) { background: #9DB8F5; }
.window-mode {
  justify-self: end;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 3px 8px;
  font-family: var(--lat);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-window-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding: 13px 16px;
  border-top: 1px solid var(--rule-soft);
  background: rgba(255, 255, 255, .96);
  color: var(--gray);
  font-size: 13.5px;
  line-height: 1.5;
}
.hero-window-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-window-meta span:not(:first-child)::before {
  content: '';
  width: 1px;
  height: 12px;
  margin-right: 10px;
  background: var(--rule);
}
.hero-window-meta i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #31A36D;
  box-shadow: 0 0 0 4px rgba(49, 163, 109, .1);
}

.eyebrow {
  font-family: var(--lat);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(25px, 5.2vw, 46px);
  line-height: 1.38;
  letter-spacing: .01em;
  font-weight: 700;
  margin: 0 0 22px;
  text-wrap: pretty;
}

.lede {
  font-size: 17px;
  line-height: 2;
  color: var(--gray);
  margin: 0 0 34px;
  max-width: 34em;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.hero-assurances li {
  position: relative;
  padding-left: 13px;
  color: var(--gray);
  font-size: 14px;
  font-weight: 700;
}
.hero-assurances li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .78em;
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
  transform: translateY(-50%);
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 7px;
  border: 1px solid transparent;
  transition: background .16s, border-color .16s, color .16s;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gray); color: var(--ink); }

/* ---------- 首屏可信數字 ---------- */

.proof-strip {
  position: relative;
  z-index: 3;
  margin-top: -42px;
  background: transparent;
}

.proof-strip .wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, .72fr)) minmax(240px, 1.35fr);
  align-items: stretch;
  overflow: hidden;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(47, 107, 232, .12);
  border-radius: 18px;
  box-shadow: 0 14px 42px rgba(34, 49, 78, .11);
}

.proof-item,
.proof-message {
  min-width: 0;
  padding: 23px 24px;
  border-left: 1px solid rgba(47, 107, 232, .13);
}
.proof-item:first-child { border-left: 0; }

.proof-item b {
  display: block;
  color: var(--ink);
  font-family: var(--lat);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: .01em;
}
.proof-item b span { font-size: 16px; margin-left: 2px; }
.proof-item p,
.proof-message p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.55;
  margin: 6px 0 0;
}
.proof-message {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.proof-message > span {
  color: var(--blue-dark);
  font-family: var(--lat);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---------- 區塊 ---------- */

section { padding: 94px 0; }
section.soft { background: var(--bg-soft); border-block: 1px solid var(--rule); }
section.tight { padding: 56px 0; }

.sec-head { max-width: 660px; margin: 0 0 44px; }

.kicker {
  font-family: var(--lat);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 14px;
}

h2 {
  font-size: clamp(23px, 3.2vw, 29px);
  line-height: 1.55;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: .01em;
}

h3 {
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.7;
  margin: 0 0 10px;
}

p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }

.sec-head p { color: var(--gray); font-size: 16px; }

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ---------- 卡片格 ---------- */

/* 明確斷點而非 auto-fit：四張卡在中間寬度會變成 3+1 落單 */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1080px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 30px 27px;
  box-shadow: 0 8px 26px rgba(34, 49, 78, .04);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover {
  border-color: var(--line);
  box-shadow: 0 18px 42px rgba(34, 49, 78, .1);
  transform: translateY(-4px);
}

.card .no {
  font-family: var(--lat);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--blue);
  display: block;
  margin: 0 0 14px;
}

.card p {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--gray);
  margin: 0;
}

.card .en {
  display: block;
  font-family: var(--lat);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--mute);
  font-weight: 400;
  margin-top: 4px;
}

.card .card-fit {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}
.card-fit b {
  color: var(--blue);
  margin-right: 5px;
}

/* ---------- 地端 AI 架構圖 ---------- */

.architecture-block {
  margin-top: 78px;
  padding: 56px;
  border: 1px solid rgba(47, 107, 232, .11);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 10%, rgba(218, 211, 255, .62), transparent 30%),
    linear-gradient(135deg, #F8FBFF 0%, #F4F7FF 100%);
  box-shadow: 0 16px 50px rgba(34, 49, 78, .06);
}

.architecture-head { margin-bottom: 34px; }

.architecture-diagram {
  display: grid;
  grid-template-columns: minmax(150px, .72fr) 28px minmax(420px, 2fr) 28px minmax(150px, .72fr);
  align-items: center;
  gap: 14px;
}

.arch-column {
  border-top: 2px solid var(--ink);
  padding-top: 14px;
}

.arch-title {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
}

.arch-column ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.arch-column li {
  color: var(--gray);
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 8px 11px;
  font-size: 14.5px;
  line-height: 1.55;
}

.arch-arrow {
  color: var(--blue);
  font-family: var(--lat);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.arch-boundary {
  background: var(--blue-soft);
  border: 1px dashed rgba(47, 107, 232, .55);
  border-radius: 12px;
  padding: 18px;
}

.arch-boundary-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px 14px;
}
.arch-boundary-label b { font-size: 14px; }
.arch-boundary-label span {
  color: var(--blue-dark);
  font-family: var(--lat);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.arch-layers { display: grid; }

.arch-layer {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(47, 107, 232, .2);
  border-radius: 8px;
  padding: 14px 16px;
}
.arch-layer h3 { font-size: 15px; margin: 0 0 2px; }
.arch-layer p {
  color: var(--gray);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0;
}
.arch-no {
  color: var(--blue);
  font-family: var(--lat);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .12em;
}
.arch-layer-arrow {
  color: var(--blue);
  font-size: 17px;
  line-height: 1;
  text-align: center;
  padding: 4px 0;
}

.diagram-note {
  color: var(--gray);
  font-size: 14.5px;
  margin: 18px 0 0;
  text-align: center;
}

/* ---------- 技術故事 ---------- */

.showcase-section {
  overflow: hidden;
  background:
    radial-gradient(circle at -5% 20%, rgba(207, 228, 255, .45), transparent 28%),
    radial-gradient(circle at 105% 78%, rgba(229, 218, 255, .48), transparent 28%),
    #fff;
}

.showcase-head { max-width: 760px; margin-bottom: 58px; }

.feature-stories { display: grid; gap: 74px; }

.feature-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(42px, 6vw, 76px);
  align-items: center;
}

.feature-story.reverse .feature-visual { order: 2; }
.feature-story.reverse .feature-copy { order: 1; }

.feature-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid rgba(47, 107, 232, .12);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform .25s, box-shadow .25s;
}
.feature-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(34, 49, 78, .16);
}
.feature-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
  border-radius: inherit;
  pointer-events: none;
}
.feature-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-no {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--blue-dark);
  font-family: var(--lat);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.feature-copy h3 {
  font-size: clamp(25px, 3.1vw, 36px);
  line-height: 1.4;
  letter-spacing: -.01em;
  margin-bottom: 18px;
}
.feature-copy > p {
  color: var(--gray);
  font-size: 16.5px;
  line-height: 1.9;
}
.feature-points {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.feature-points li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.75;
}
.feature-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 700;
}
.feature-evidence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.feature-evidence b {
  margin-right: 4px;
  color: var(--ink);
  font-size: 13.5px;
}
.feature-evidence span {
  color: var(--gray);
  background: linear-gradient(135deg, var(--blue-soft), var(--lavender-soft));
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13.5px;
  line-height: 1.5;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--blue-dark);
  font-size: 15px;
  font-weight: 700;
}
.text-link:hover { gap: 12px; text-decoration: none; }

/* ---------- 代表性技術情境 ---------- */

.scenario-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 760px) {
  .scenario-grid { grid-template-columns: repeat(3, 1fr); }
}

.scenario-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 8px 26px rgba(34, 49, 78, .04);
  transition: transform .2s, box-shadow .2s;
}
.scenario-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(34, 49, 78, .09);
}

.scenario-tag {
  display: inline-block;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 16px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.6;
}

.scenario-card h3 { font-size: 18px; margin-bottom: 18px; }

.scenario-facts { margin: 0; }
.scenario-facts div {
  padding: 15px 0;
  border-top: 1px solid var(--rule);
}
.scenario-facts dt {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.scenario-facts dd {
  margin: 0;
  color: var(--gray);
  font-size: 15.5px;
  line-height: 1.85;
}

/* ---------- 數字列 ---------- */

.stats {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.stat { border-left: 2px solid var(--blue); padding: 4px 0 4px 20px; }

.stat b {
  display: block;
  font-family: var(--lat);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  color: var(--ink);
}

.stat b .unit { font-size: 20px; }

/* 只作用於說明文字，不可寫成 .stat span：會把 <b> 裡的單位也變成 block */
.stat > span {
  display: block;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--gray);
  margin-top: 6px;
}

/* ---------- 服務長條 ---------- */

.service {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 46px 0;
  border-top: 1px solid var(--rule);
}
.service:first-of-type { border-top: 0; padding-top: 0; }

.service-label .no {
  font-family: var(--lat);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--blue);
  display: block;
  margin-bottom: 10px;
}
.service-label h3 { margin-bottom: 6px; }
.service-label .en {
  font-family: var(--lat);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--mute);
  line-height: 1.7;
  display: block;
}

.service-body p { color: var(--gray); font-size: 16.5px; }

.service-visual {
  margin: 28px 0 4px;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}

.service-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--gray);
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 5px 14px;
}

/* ---------- 說明清單 ---------- */

.deflist {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 0;
}

.deflist.stack { grid-template-columns: 1fr; gap: 20px; }

.deflist div { padding-top: 18px; border-top: 2px solid var(--ink); }
.deflist dt { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.deflist dd {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--gray);
}

/* ---------- 信任與交付 ---------- */

.trust-section {
  color: #fff;
  background:
    radial-gradient(circle at 84% 18%, rgba(47, 107, 232, .3), transparent 34%),
    linear-gradient(135deg, #242A31 0%, #182233 100%);
  border-block: 0;
}
.trust-section .kicker { color: #8FB3FF; }
.trust-section h2,
.trust-section .deflist dt { color: #fff; }
.trust-section .sec-head p,
.trust-section .deflist dd { color: #C3CBD5; }
.trust-section .deflist div { border-top-color: rgba(255, 255, 255, .5); }
.trust-section .trust-link { color: #AFC8FF; }
.trust-section .trust-link:hover { color: #fff; }
.section-link { margin-top: 32px; }

/* ---------- 合作流程 ---------- */

.process-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 620px) {
  .process-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1080px) {
  .process-list { grid-template-columns: repeat(5, 1fr); }

  .process-list li:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 15px;
    right: -18px;
    z-index: 1;
    color: var(--blue);
    background: var(--bg-soft);
    padding: 0 4px;
    font-family: var(--lat);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
  }
}

.process-list li {
  position: relative;
  padding-top: 18px;
  border-top: 2px solid var(--blue);
}
.process-no {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-family: var(--lat);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .16em;
}
.process-list h3 { font-size: 16px; }
.process-list p {
  color: var(--gray);
  font-size: 15.5px;
  line-height: 1.85;
}

/* ---------- 常見問題 ---------- */

.faq-list {
  max-width: 820px;
  border-bottom: 1px solid var(--rule);
}
.faq-list details { border-top: 1px solid var(--rule); }
.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  padding: 20px 40px 20px 0;
}
.faq-list summary:hover { color: var(--blue-dark); }
.faq-list details[open] summary { color: var(--blue-dark); }
.faq-list details p {
  max-width: 44em;
  color: var(--gray);
  font-size: 15.5px;
  padding: 0 0 22px;
  margin: 0;
}

/* ---------- 內文區塊 ---------- */

.prose { max-width: 720px; }
.prose p { color: var(--gray); }
.prose h2 { color: var(--ink); margin-top: 46px; }
.prose h2:first-child { margin-top: 0; }

/* ---------- 聯絡資訊 ---------- */

.contact-grid {
  display: grid;
  gap: 44px;
  grid-template-columns: 1.1fr 1fr;
  align-items: start;
}

.info { margin: 0; }
.info div {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: baseline;
}
.info div:first-child { padding-top: 0; }
.info dt {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--mute);
}
.info dd { margin: 0; font-size: 16px; line-height: 1.8; }

.mail-big {
  font-family: var(--lat);
  font-size: clamp(20px, 3.4vw, 27px);
  font-weight: 700;
  letter-spacing: .02em;
  word-break: break-all;
}

.info .co-en {
  font-family: var(--lat);
  font-size: 13.5px;
  letter-spacing: .08em;
  color: var(--mute);
}

.note { font-size: 15.5px; color: var(--gray); }
.h2-sm { font-size: 21px; }
.mb0 { margin-bottom: 0; }
.divider { margin: 34px 0 28px; }

.todo {
  color: var(--mute);
  background: #FFF8E6;
  border: 1px dashed #E3C77A;
  border-radius: 4px;
  padding: 1px 8px;
  font-size: 14px;
}

/* ---------- 落地、交付與資安治理頁 ---------- */

.delivery-hero {
  background:
    radial-gradient(circle at 15% 18%, rgba(211, 226, 255, .72), transparent 31%),
    radial-gradient(circle at 85% 8%, rgba(235, 220, 255, .7), transparent 29%),
    linear-gradient(145deg, #FBFCFF 0%, #F5F8FF 55%, #F5F1FF 100%);
}

.security-hero {
  background:
    radial-gradient(circle at 82% 14%, rgba(199, 218, 255, .75), transparent 32%),
    linear-gradient(145deg, #FBFDFF 0%, #F1F6FF 100%);
}

.readiness-grid,
.governance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.decision-card,
.governance-grid article {
  min-width: 0;
  padding: 27px 24px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(34, 49, 78, .05);
}

.decision-card > span,
.governance-grid article > span {
  display: block;
  margin-bottom: 14px;
  color: var(--blue);
  font-family: var(--lat);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .16em;
}

.decision-card h3,
.governance-grid h3 { font-size: 18px; margin-bottom: 9px; }
.decision-card p,
.governance-grid p {
  margin: 0;
  color: var(--gray);
  font-size: 15.5px;
  line-height: 1.85;
}

.input-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 16px;
}

.input-list li {
  position: relative;
  min-height: 185px;
  padding: 48px 22px 24px;
  background: #fff;
  counter-increment: input-step;
}

.input-list { counter-reset: input-step; }
.input-list li::before {
  content: '0' counter(input-step);
  position: absolute;
  top: 17px;
  left: 22px;
  color: var(--blue);
  font-family: var(--lat);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .12em;
}
.input-list b { display: block; margin-bottom: 8px; font-size: 16px; }
.input-list span { color: var(--gray); font-size: 15px; line-height: 1.8; }

.process-detailed li { min-width: 0; }

.artifact-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 94% 8%, rgba(204, 224, 255, .62), transparent 28%),
    radial-gradient(circle at 2% 92%, rgba(231, 219, 255, .56), transparent 27%),
    #F8FAFF;
}

.artifact-head { max-width: 780px; }
.artifact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  align-items: start;
  gap: clamp(32px, 5vw, 62px);
}

.artifact-preview {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(47, 107, 232, .16);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.artifact-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 0 17px;
  color: var(--gray);
  background: #F7F9FC;
  border-bottom: 1px solid var(--rule);
  font-family: var(--lat);
  font-size: 13px;
}
.artifact-bar i { width: 9px; height: 9px; background: #CFD5DE; border-radius: 50%; }
.artifact-bar i:nth-child(2) { background: #B6C9EE; }
.artifact-bar i:nth-child(3) { background: #AFC6FF; }
.artifact-bar b { margin-left: 8px; color: var(--ink); letter-spacing: .04em; }
.artifact-bar span {
  margin-left: auto;
  padding: 3px 9px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-radius: 999px;
  font-weight: 700;
}

.artifact-body { display: grid; grid-template-columns: 142px 1fr; min-height: 370px; }
.artifact-body aside {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 14px;
  background: #263246;
  color: #C6D0DF;
}
.artifact-body aside strong {
  margin: 0 9px 16px;
  color: #8FB3FF;
  font-family: var(--lat);
  font-size: 25px;
}
.artifact-body aside span {
  padding: 7px 9px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
}
.artifact-body aside .active { color: #fff; background: rgba(143, 179, 255, .18); }

.artifact-report { padding: 34px 32px 28px; }
.artifact-label {
  margin: 0 0 7px;
  color: var(--blue-dark);
  font-family: var(--lat);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
}
.artifact-report h3 { font-size: 21px; margin-bottom: 22px; }
.artifact-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.artifact-metrics span {
  padding: 11px;
  color: var(--gray);
  background: var(--bg-soft);
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.55;
}
.artifact-metrics b { display: block; color: var(--ink); font-size: 14px; }
.artifact-chart {
  display: flex;
  align-items: end;
  gap: 9px;
  height: 94px;
  margin: 25px 0 18px;
  padding: 12px 14px 0;
  border-left: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.artifact-chart i { flex: 1; background: linear-gradient(to top, var(--blue), #9EB9F5); border-radius: 4px 4px 0 0; }
.artifact-chart i:nth-child(1) { height: 42%; }
.artifact-chart i:nth-child(2) { height: 58%; }
.artifact-chart i:nth-child(3) { height: 49%; }
.artifact-chart i:nth-child(4) { height: 78%; }
.artifact-chart i:nth-child(5) { height: 68%; }
.artifact-chart i:nth-child(6) { height: 88%; }
.artifact-report > p:last-child { color: var(--gray); font-size: 14.5px; line-height: 1.75; }
.concept-note {
  margin: 0;
  padding: 10px 18px;
  color: var(--mute);
  background: #F7F9FC;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  text-align: right;
}

.deliverable-grid { display: grid; gap: 14px; }
.deliverable-grid article {
  padding: 21px 23px;
  background: rgba(255, 255, 255, .84);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.deliverable-grid h3 { font-size: 17px; margin-bottom: 10px; }
.deliverable-grid ul,
.control-grid ul,
.check-panel ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.deliverable-grid li,
.control-grid li,
.check-panel li {
  position: relative;
  padding-left: 20px;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
}
.deliverable-grid li::before,
.control-grid li::before,
.check-panel li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

.acceptance-table,
.boundary-table {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 14px;
}
.acceptance-row,
.boundary-row {
  display: grid;
  grid-template-columns: .55fr 1.15fr 1.5fr;
  border-top: 1px solid var(--rule);
}
.acceptance-row:first-child,
.boundary-row:first-child { border-top: 0; }
.acceptance-row > *,
.boundary-row > * {
  min-width: 0;
  margin: 0;
  padding: 15px 18px;
  border-left: 1px solid var(--rule);
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
}
.acceptance-row > *:first-child,
.boundary-row > *:first-child { border-left: 0; }
.acceptance-row b,
.boundary-row b { color: var(--ink); }
.acceptance-head,
.boundary-head { background: #263246; }
.acceptance-head span,
.boundary-head span { color: #fff; font-weight: 700; }
.boundary-row em {
  display: inline-block;
  margin-right: 5px;
  padding: 1px 8px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.honest-note {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: start;
  margin-top: 30px;
  padding: 28px;
  background: linear-gradient(135deg, var(--blue-soft), var(--lavender-soft));
  border-radius: 14px;
}
.honest-note strong { color: var(--ink); font-size: 18px; line-height: 1.65; }
.honest-note p { margin: 0; color: var(--gray); font-size: 15.5px; }

.lifecycle {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 11px;
}
.lifecycle article {
  min-width: 0;
  padding: 23px 18px;
  background: #fff;
  border: 1px solid rgba(47, 107, 232, .18);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(34, 49, 78, .04);
}
.lifecycle article > span {
  color: var(--blue);
  font-family: var(--lat);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .13em;
}
.lifecycle h3 { font-size: 16px; margin: 9px 0 6px; }
.lifecycle p { margin: 0; color: var(--gray); font-size: 14.5px; line-height: 1.7; }
.lifecycle > i {
  align-self: center;
  color: var(--blue);
  font-family: var(--lat);
  font-size: 19px;
  font-style: normal;
  font-weight: 700;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.control-grid article {
  padding: 28px;
  background: #fff;
  border-top: 3px solid var(--blue);
  border-radius: 4px 4px 14px 14px;
  box-shadow: 0 10px 30px rgba(34, 49, 78, .07);
}
.control-grid h3 { font-size: 18px; margin-bottom: 13px; }
.boundary-section { background: #F8FAFF; }

.split-callout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(38px, 7vw, 86px);
}
.split-callout > div:first-child > p:last-child { color: var(--gray); font-size: 16.5px; }
.check-panel {
  padding: 30px;
  background: #263246;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}
.check-panel h3 { color: #fff; font-size: 19px; margin-bottom: 16px; }
.check-panel li { color: #CDD5DF; }
.check-panel li::before { color: #8FB3FF; }

.cta-row.centered { justify-content: center; }

@media (max-width: 980px) {
  .readiness-grid,
  .governance-grid { grid-template-columns: repeat(2, 1fr); }
  .input-list { grid-template-columns: repeat(2, 1fr); }
  .input-list li { min-height: 155px; }
  .artifact-layout { grid-template-columns: 1fr; }
  .deliverable-grid { grid-template-columns: repeat(3, 1fr); }
  .lifecycle { grid-template-columns: 1fr; }
  .lifecycle > i { justify-self: center; transform: rotate(90deg); }
}

@media (max-width: 680px) {
  .readiness-grid,
  .governance-grid,
  .control-grid,
  .deliverable-grid,
  .split-callout,
  .honest-note { grid-template-columns: 1fr; }
  .input-list { grid-template-columns: 1fr; }
  .input-list li { min-height: 0; }
  .artifact-body { grid-template-columns: 1fr; }
  .artifact-body aside { display: none; }
  .artifact-report { padding: 28px 22px 22px; }
  .artifact-metrics { grid-template-columns: 1fr; }
  .artifact-metrics span { display: flex; justify-content: space-between; gap: 12px; }
  .artifact-chart { height: 82px; }
  .acceptance-row,
  .boundary-row {
    grid-template-columns: 1fr;
    padding: 15px 18px;
  }
  .acceptance-row > *,
  .boundary-row > * {
    padding: 4px 0;
    border-left: 0;
  }
  .acceptance-head,
  .boundary-head { display: none; }
  .acceptance-row b,
  .boundary-row b { margin-bottom: 4px; }
}

/* ---------- 政府補助申請與執行協作 ---------- */

.grant-hero {
  background:
    radial-gradient(circle at 12% 12%, rgba(207, 225, 255, .78), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(229, 218, 255, .66), transparent 30%),
    linear-gradient(145deg, #FBFCFF 0%, #F3F7FF 55%, #F8F3FF 100%);
}

.grant-canvas {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(47, 107, 232, .16);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}
.grant-canvas-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 18px;
  color: var(--gray);
  background: #F7F9FC;
  border-bottom: 1px solid var(--rule);
  font-family: var(--lat);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
}
.grant-canvas-top b { padding: 3px 9px; color: var(--blue-dark); background: var(--blue-soft); border-radius: 999px; }
.grant-canvas-body { display: grid; gap: 11px; padding: 23px; }
.grant-question {
  padding: 17px 18px;
  background: linear-gradient(135deg, var(--blue-soft), var(--lavender-soft));
  border-radius: 10px;
}
.grant-question span { display: block; margin-bottom: 3px; color: var(--blue-dark); font-size: 13px; font-weight: 700; }
.grant-question strong { font-size: 16px; }
.grant-match {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--rule);
  border-radius: 9px;
}
.grant-match > i { width: 9px; height: 9px; background: var(--blue); border-radius: 50%; box-shadow: 0 0 0 5px var(--blue-soft); }
.grant-match small { display: block; color: var(--mute); font-family: var(--lat); font-size: 13px; letter-spacing: .1em; }
.grant-match b { font-size: 15px; }
.grant-match em { color: var(--blue); font-family: var(--lat); font-size: 13.5px; font-style: normal; font-weight: 700; }
.grant-result { padding: 15px 18px; color: #fff; background: #263246; border-radius: 10px; }
.grant-result span { color: #9DBBFF; font-family: var(--lat); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.grant-result p { margin: 3px 0 0; color: #D0D7E2; font-size: 14.5px; }

.grant-value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.grant-value-grid article {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--blue);
  border-radius: 4px 4px 14px 14px;
  box-shadow: 0 10px 30px rgba(34, 49, 78, .05);
}
.grant-value-grid article > span { color: var(--blue); font-family: var(--lat); font-size: 13.5px; font-weight: 700; letter-spacing: .15em; }
.grant-value-grid h3 { margin: 12px 0 9px; font-size: 18px; }
.grant-value-grid p { margin: 0; color: var(--gray); font-size: 15.5px; }

.program-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.program-grid article {
  padding: 27px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(34, 49, 78, .04);
}
.program-owner { color: var(--blue-dark); font-size: 13.5px; font-weight: 700; }
.program-grid h3 { margin: 8px 0 9px; font-family: var(--lat); font-size: 24px; }
.program-grid p { margin: 0 0 16px; color: var(--gray); font-size: 15px; }
.program-grid a { font-size: 14.5px; font-weight: 700; }
.official-note {
  margin: 22px 0 0;
  padding: 16px 18px;
  color: var(--gray);
  background: #FFF8E6;
  border: 1px solid #E8D49D;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.75;
}

.grant-process {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 16px;
  list-style: none;
}
.grant-process li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 16px;
  min-width: 0;
  padding: 28px;
  background: #fff;
}
.grant-process li > span { color: var(--blue); font-family: var(--lat); font-size: 14px; font-weight: 700; letter-spacing: .12em; }
.grant-process h3 { font-size: 17px; margin-bottom: 7px; }
.grant-process p { margin: 0; color: var(--gray); font-size: 15px; }

.grant-deliverables {
  color: #fff;
  background:
    radial-gradient(circle at 86% 10%, rgba(47, 107, 232, .3), transparent 32%),
    linear-gradient(135deg, #242A31 0%, #182233 100%);
}
.grant-deliverables .kicker { color: #8FB3FF; }
.grant-deliverables h2 { color: #fff; }
.grant-deliverables .sec-head > p:last-child { color: #C8D0DB; }
.grant-doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grant-doc-grid article { padding: 24px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15); border-radius: 12px; }
.grant-doc-grid article > span { color: #8FB3FF; font-family: var(--lat); font-size: 13px; font-weight: 700; letter-spacing: .14em; }
.grant-doc-grid h3 { color: #fff; margin: 10px 0 12px; font-size: 17px; }
.grant-doc-grid ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.grant-doc-grid li { position: relative; padding-left: 17px; color: #CDD5DF; font-size: 14.5px; line-height: 1.7; }
.grant-doc-grid li::before { content: '•'; position: absolute; left: 0; color: #8FB3FF; }

.grant-role-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  gap: clamp(40px, 7vw, 88px);
}
.grant-role-layout > div:first-child > p:last-child { color: var(--gray); font-size: 16px; }
.role-table { overflow: hidden; border: 1px solid var(--rule); border-radius: 13px; }
.role-table > div { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 18px 21px; border-top: 1px solid var(--rule); }
.role-table > div:first-child { border-top: 0; }
.role-table b { font-size: 15px; }
.role-table span { color: var(--gray); font-size: 15px; line-height: 1.75; }

.grant-service .service-label h3 { color: var(--blue-dark); }
.grant-service .service-body { padding: 28px; background: linear-gradient(135deg, #F7FAFF, #F6F2FF); border: 1px solid rgba(47, 107, 232, .13); border-radius: 14px; }
.grant-callout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr) auto;
  align-items: center;
  gap: clamp(25px, 5vw, 56px);
  margin-top: 30px;
  padding: 30px;
  background: linear-gradient(135deg, var(--blue-soft), var(--lavender-soft));
  border: 1px solid rgba(47, 107, 232, .13);
  border-radius: 16px;
}
.grant-callout .kicker { margin-bottom: 6px; }
.grant-callout h3 { margin: 0; font-size: 22px; }
.grant-callout > p { margin: 0; color: var(--gray); font-size: 15.5px; }
.grant-callout .btn { white-space: nowrap; }

@media (max-width: 900px) {
  .grant-doc-grid { grid-template-columns: repeat(2, 1fr); }
  .grant-callout { grid-template-columns: 1fr; }
  .grant-callout .btn { justify-self: start; }
}

@media (max-width: 680px) {
  .grant-value-grid,
  .program-grid,
  .grant-process,
  .grant-doc-grid,
  .grant-role-layout { grid-template-columns: 1fr; }
  .grant-process li { grid-template-columns: 42px 1fr; padding: 23px 20px; }
  .role-table > div { grid-template-columns: 1fr; gap: 4px; }
  .grant-canvas-body { padding: 18px; }
}

/* ---------- 技術筆記與文章 ---------- */

.insights-hero {
  background:
    radial-gradient(circle at 84% 18%, rgba(194, 216, 255, .78), transparent 32%),
    radial-gradient(circle at 20% 100%, rgba(232, 221, 255, .65), transparent 36%),
    linear-gradient(145deg, #FBFCFF 0%, #F3F7FF 100%);
}
.insights-hero .wrap { padding-top: 104px; padding-bottom: 112px; }
.insights-intro { max-width: 790px; }

.featured-note {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  align-items: center;
  gap: clamp(38px, 6vw, 76px);
}
.featured-note figure {
  margin: 0;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}
.featured-note img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.featured-note h2 { margin: 12px 0 16px; font-size: clamp(28px, 3.5vw, 40px); }
.featured-note p { color: var(--gray); font-size: 16.5px; }

.note-category {
  display: inline-block;
  color: var(--blue-dark);
  font-family: var(--lat);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .08em;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.note-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 18px;
  box-shadow: 0 10px 34px rgba(34, 49, 78, .06);
  transition: transform .2s, box-shadow .2s;
}
.note-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(34, 49, 78, .11); }
.note-image { display: block; overflow: hidden; background: var(--bg-soft); }
.note-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s; }
.note-card:hover .note-image img { transform: scale(1.025); }
.note-card-body { padding: 28px; }
.note-card h3 { margin: 10px 0 12px; font-size: 22px; line-height: 1.5; }
.note-card h3 a { color: var(--ink); }
.note-card h3 a:hover { color: var(--blue-dark); text-decoration: none; }
.note-card p { margin: 0; color: var(--gray); font-size: 15.5px; }

.home-notes {
  background:
    radial-gradient(circle at 96% 0%, rgba(216, 229, 255, .62), transparent 27%),
    #F8FAFF;
}
.notes-home-head {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: end;
  gap: clamp(34px, 7vw, 90px);
  max-width: none;
}
.notes-home-head > div:last-child > p { margin-top: 0; }
.home-note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.home-note-grid article {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(34, 49, 78, .05);
}
.home-note-grid h3 { margin: 11px 0 12px; font-size: 20px; line-height: 1.55; }
.home-note-grid h3 a { color: var(--ink); }
.home-note-grid h3 a:hover { color: var(--blue-dark); text-decoration: none; }
.home-note-grid p { margin: 0; color: var(--gray); font-size: 15px; }
.home-note-grid .text-link { margin-top: auto; padding-top: 20px; }

.newsletter-callout {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr) auto;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding-top: 44px;
  padding-bottom: 44px;
  background: linear-gradient(135deg, var(--blue-soft), var(--lavender-soft));
  border: 1px solid rgba(47, 107, 232, .13);
  border-radius: 18px;
}
.newsletter-callout h2 { font-size: 25px; margin: 0; }
.newsletter-callout > p { margin: 0; color: var(--gray); font-size: 15.5px; }
.newsletter-callout .btn { white-space: nowrap; }

.article-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 14%, rgba(195, 216, 255, .75), transparent 31%),
    radial-gradient(circle at 15% 90%, rgba(232, 221, 255, .62), transparent 32%),
    linear-gradient(145deg, #FBFCFF 0%, #F3F7FF 100%);
  border-bottom: 1px solid var(--rule);
}
.article-title {
  position: relative;
  z-index: 1;
  max-width: 950px;
  padding-top: 82px;
  padding-bottom: 86px;
}
.article-back { display: inline-block; margin-bottom: 32px; color: var(--gray); font-size: 14px; font-weight: 700; }
.article-title h1 { max-width: 820px; margin: 13px 0 22px; font-size: clamp(39px, 6.2vw, 65px); line-height: 1.28; }
.article-deck { max-width: 760px; margin: 0; color: var(--gray); font-size: clamp(17px, 2vw, 20px); line-height: 1.85; }
.article-meta { margin: 25px 0 0; color: var(--mute); font-family: var(--lat); font-size: 13.5px; letter-spacing: .05em; }

.article-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 760px);
  justify-content: center;
  align-items: start;
  gap: clamp(45px, 7vw, 92px);
  padding-top: 78px;
  padding-bottom: 100px;
}
.article-toc {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 7px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}
.article-toc p { margin: 0 0 7px; color: var(--ink); font-size: 14px; font-weight: 700; }
.article-toc a { padding: 4px 0; color: var(--gray); font-size: 14px; line-height: 1.6; }
.article-toc a:hover { color: var(--blue-dark); text-decoration: none; }

.article-cover {
  margin: 0 0 42px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 18px;
}
.article-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-lead {
  margin: 0;
  padding: 0 0 40px 25px;
  color: var(--ink);
  border-left: 3px solid var(--blue);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.95;
}
.article-content section {
  padding: 58px 0 0;
  border-top: 1px solid var(--rule);
  margin-top: 58px;
}
.article-no {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--blue);
  font-family: var(--lat);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .16em;
}
.article-content h2 { margin-bottom: 20px; font-size: clamp(25px, 3.3vw, 34px); line-height: 1.45; }
.article-content section > p { color: #505860; font-size: 17px; line-height: 2; }
.article-content section > p + p { margin-top: 18px; }

.article-callout {
  margin-top: 27px;
  padding: 25px 28px;
  background: linear-gradient(135deg, var(--blue-soft), #F5F2FF);
  border-left: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
}
.article-callout > b { display: block; margin-bottom: 10px; font-size: 16px; }
.article-callout ul { display: grid; gap: 7px; margin: 0; padding-left: 22px; }
.article-callout li { color: var(--gray); font-size: 15.5px; line-height: 1.75; }

.article-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 11px;
}
.article-matrix div { padding: 20px 22px; background: #fff; }
.article-matrix b { display: block; margin-bottom: 5px; color: var(--ink); font-size: 15.5px; }
.article-matrix span { color: var(--gray); font-size: 14.5px; line-height: 1.7; }

.article-summary {
  margin-top: 30px;
  padding: 30px;
  color: #fff;
  background: linear-gradient(135deg, #263246, #1B2638);
  border-radius: 14px;
}
.article-summary h3 { color: #fff; font-size: 19px; margin-bottom: 15px; }
.article-summary ol { display: grid; gap: 8px; margin: 0; padding-left: 22px; }
.article-summary li { padding-left: 5px; color: #D2D9E3; font-size: 15.5px; line-height: 1.75; }
.article-summary li::marker { color: #8FB3FF; font-family: var(--lat); font-weight: 700; }

.article-next {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}
.article-next > span { color: var(--mute); font-size: 13.5px; font-weight: 700; }
.article-next a { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 10px; color: var(--ink); font-size: 19px; }
.article-next a:hover { color: var(--blue-dark); text-decoration: none; }
.article-next i { color: var(--blue); font-family: var(--lat); font-size: 24px; font-style: normal; }

@media (max-width: 860px) {
  .featured-note { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; padding-top: 56px; }
  .article-toc { position: static; grid-template-columns: repeat(2, 1fr); padding: 18px; background: var(--bg-soft); border-top-color: var(--blue); border-radius: 0 0 10px 10px; }
  .article-toc p { grid-column: 1 / -1; }
  .newsletter-callout { grid-template-columns: 1fr; }
  .newsletter-callout .btn { justify-self: start; }
  .home-note-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .notes-grid { grid-template-columns: 1fr; }
  .notes-home-head { grid-template-columns: 1fr; }
  .article-title { padding-top: 62px; padding-bottom: 68px; }
  .article-title h1 { font-size: clamp(34px, 10vw, 48px); }
  .article-toc { grid-template-columns: 1fr; }
  .article-matrix { grid-template-columns: 1fr; }
  .article-lead { padding-left: 18px; font-size: 17px; }
  .article-content section > p { font-size: 16px; }
}

/* ---------- CTA 帶 ---------- */

.band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(47, 107, 232, .38), transparent 34%),
    linear-gradient(135deg, #242A31 0%, #172136 100%);
  color: #fff;
  padding: 78px 0;
}
.band .wrap { text-align: center; }
.band h2 { color: #fff; font-size: clamp(27px, 4vw, 38px); margin-bottom: 14px; }
.band p { color: #C3CBD5; max-width: 38em; margin: 0 auto 30px; }
.band .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .38);
}
.band .btn-ghost:hover { border-color: #fff; color: #fff; }

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

footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
  padding: 52px 0 40px;
  font-size: 14.5px;
  color: var(--gray);
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--rule);
}

.foot-co .cn { font-size: 16px; font-weight: 700; color: var(--ink); }
.foot-co .en {
  font-family: var(--lat);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--mute);
  margin-top: 3px;
}

.foot-contact {
  display: grid;
  gap: 2px;
  margin-top: 13px;
  color: var(--gray);
  font-size: 13.5px;
  line-height: 1.65;
}
.foot-contact a { color: var(--blue-dark); font-family: var(--lat); }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-start;
  max-width: 700px;
  gap: 8px 20px;
}
.foot-links a { color: var(--gray); }
.foot-links a:hover { color: var(--ink); }

.foot-bot {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--mute);
}

/* ---------- 響應式 ---------- */

@media (min-width: 861px) {
  body { font-size: 17px; line-height: 1.85; }
  .menu a { font-size: 15px; }
  .eyebrow, .kicker { font-size: 13.5px; }
  .lede { font-size: 18px; line-height: 1.9; }
  .sec-head p { font-size: 17px; }
  .card p { font-size: 15.5px; line-height: 1.9; }
  .card .en, .service-label .en { font-size: 13px; }
  .stat > span { font-size: 14.5px; }
  .service-body p { font-size: 16.5px; }
  .chips li { font-size: 13.5px; }
  .deflist dt { font-size: 16px; }
  .deflist dd { font-size: 15.5px; line-height: 1.9; }
  .scenario-facts dd, .process-list p { font-size: 15px; }
  .faq-list summary { font-size: 17px; }
  .faq-list details p { font-size: 16px; }
}

@media (max-width: 860px) {
  .proof-strip .wrap { grid-template-columns: repeat(3, 1fr); }
  .proof-message {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid rgba(47, 107, 232, .13);
    padding-block: 18px;
  }
  .architecture-block { margin-top: 58px; padding: 38px 30px; }
  .architecture-diagram {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .arch-column { width: 100%; }
  .arch-arrow { transform: rotate(90deg); }
  .arch-boundary { width: 100%; }
  .diagram-note { text-align: left; }
  .hero-layout { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { max-width: 680px; }
  .service-visual img { aspect-ratio: 3 / 2; }
  .service { grid-template-columns: 1fr; gap: 18px; padding: 34px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-wave {
    opacity: .5;
    -webkit-mask-image: linear-gradient(to bottom, transparent 4%, #000 62%);
    mask-image: linear-gradient(to bottom, transparent 4%, #000 62%);
  }
  .hero .wrap { padding-top: 66px; padding-bottom: 76px; }
  section { padding: 62px 0; }
  .feature-story { grid-template-columns: 1fr; gap: 32px; }
  .feature-story.reverse .feature-visual,
  .feature-story.reverse .feature-copy { order: initial; }
  .feature-stories { gap: 62px; }
  .foot-links { justify-content: flex-start; max-width: none; }
}

@media (max-width: 760px) {
  .nav .wrap { display: block; padding-inline: 0; }
  .brand { margin: 0 var(--pad) 9px; }
  .menu {
    flex-wrap: nowrap;
    gap: 2px;
    overflow-x: auto;
    padding: 0 var(--pad) 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .menu::-webkit-scrollbar { display: none; }
  .menu a { flex: 0 0 auto; }
  .menu a.menu-cta { margin-left: 3px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav .wrap { min-height: 0; }
  .brand .co { display: none; }
  .menu a { padding: 6px 10px; font-size: 14px; }
  .menu a.menu-cta { margin-left: 0; padding-inline: 12px; }
  .proof-strip .wrap { grid-template-columns: 1fr; padding-inline: var(--pad); }
  .proof-item,
  .proof-message {
    display: grid;
    grid-template-columns: 74px 1fr;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    border-left: 0;
    border-top: 1px solid rgba(47, 107, 232, .13);
  }
  .proof-item:first-child { border-top: 0; }
  .proof-item p,
  .proof-message p { margin-top: 0; }
  .proof-message { grid-template-columns: 120px 1fr; }
  .proof-message > span { line-height: 1.5; }
  .proof-strip { margin-top: -24px; }
  .proof-strip .wrap { border-radius: 14px; }
  .home-hero .wrap { padding-top: 72px; padding-bottom: 88px; }
  .hero-window-bar b { display: none; }
  .hero-window-bar { grid-template-columns: 1fr 1fr; }
  .hero-window-meta span:not(:first-child)::before { display: none; }
  .architecture-block { padding: 30px 22px; border-radius: 18px; }
  .feature-visual { border-radius: 18px; }
  .hero-media, .service-visual { border-radius: 9px; }
  .info div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- 列印 ---------- */

@media print {
  .nav, .hero-wave, .band, .cta-row { display: none; }
  body { font-size: 11pt; }
  section { padding: 18pt 0; }
  a { color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .scenario-card,
  .feature-visual,
  .text-link { transition: none; }
  .card:hover,
  .scenario-card:hover,
  .feature-visual:hover { transform: none; }
}
