﻿/* 字體改由各頁 <head> 的 preconnect + stylesheet 載入（避免 @import 造成串行瀑布） */

/* ============================================================
   NEXA AI — AURORA LIGHT INTERFACE  v5
   全新方向：Aurora Light 極光亮面科技
   · 對齊 Logo：亮色底讓 NEXA 深字清晰可見
   · 漸層：Cobalt #2563EB → Indigo #4F46E5 → Violet #7C3AED
   · 修復 node-chip 超出螢幕
   · 全站：純 GPU transform / 無 wheel 攔截 / 視野外暫停
   ============================================================ */

:root {
  /* 背景層 */
  --bg-void: #FAFBFC;
  --bg-deep: #F4F5F7;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-soft: #F8FAFC;

  /* 文字層 */
  --ink: #0F172A;
  --ink-strong: #020617;
  --ink-dim: #475569;
  --ink-mute: #94A3B8;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.14);

  /* Aurora 品牌漸層 — 對齊 Logo N 圖示 */
  --cobalt: #2563EB;
  --indigo: #4F46E5;
  --indigo-deep: #312E81;
  --violet: #7C3AED;
  --aurora: linear-gradient(135deg, #2563EB 0%, #4F46E5 50%, #7C3AED 100%);
  --aurora-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(124, 58, 237, 0.08));

  /* 陰影系統 */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 0 1px rgba(79, 70, 229, 0.1), 0 12px 40px -8px rgba(79, 70, 229, 0.35);

  --header-h: 88px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --display: "Space Grotesk", Manrope, "Noto Sans TC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-void);
  color: var(--ink);
  font-family: Manrope, "Noto Sans TC", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: rgba(79, 70, 229, 0.18); color: var(--ink-strong); }
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cobalt), var(--indigo));
  border-radius: 10px;
}

/* ---------- 全站基底背景 ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 15% -10%, rgba(37, 99, 235, 0.07), transparent 60%),
    radial-gradient(ellipse 50% 35% at 100% 0%, rgba(124, 58, 237, 0.05), transparent 60%),
    radial-gradient(ellipse 40% 50% at 50% 120%, rgba(79, 70, 229, 0.04), transparent 60%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 10%, #000 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 10%, #000 10%, transparent 80%);
}

/* ---------- 共用零件 ---------- */
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: var(--mono);
  color: var(--indigo);
}
.arrow {
  font-size: 14px;
  line-height: 1;
  display: inline-block;
  transition: transform 0.25s;
}
a:hover .arrow { transform: translate(2px, -2px); }

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #fff;
  border: 0;
  overflow: hidden;
  background: var(--aurora);
  box-shadow: var(--shadow-glow);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.3s, filter 0.3s;
  border-radius: 10px;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.15), 0 18px 50px -10px rgba(79, 70, 229, 0.5);
  filter: brightness(1.05);
}
.btn-primary:hover::before { transform: translateX(100%); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 10px;
  transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.btn-ghost:hover {
  border-color: var(--indigo);
  color: var(--indigo);
  background: rgba(79, 70, 229, 0.04);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   導覽列
   ============================================================ */
#navbar { position: sticky; top: 0; z-index: 20; }
.site-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4.2%;
  position: relative;
  z-index: 20;
  background: rgba(250, 251, 252, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s, height 0.35s;
}
body.scrolled .site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-xs);
  --header-h: 76px;
}
.header-tools { display: flex; align-items: center; gap: 20px; padding-right: 12px; border-right: 1px solid var(--line); }
.languages { display: flex; align-items: center; gap: 6px; font-size: 10.5px; }
.social-links { display: flex; gap: 16px; align-items: center; }
.social-links a {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  padding: 0; background: none; border: 1px solid transparent;
  border-radius: 6px;
  opacity: 0.5;
  transition: opacity 0.25s, transform 0.25s, color 0.25s, border-color 0.25s, background 0.25s;
  color: var(--ink-mute);
}
.social-links a:hover {
  opacity: 1; transform: translateY(-2px); color: var(--indigo);
  border-color: rgba(79, 70, 229, 0.25);
  background: rgba(79, 70, 229, 0.06);
}
.languages button, .languages a {
  border: 0;
  background: none;
  color: var(--ink-mute);
  padding: 0;
  min-width: 24px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: color 0.25s;
}
.languages button:hover, .languages a:hover { color: var(--ink-dim); }
.languages button.active, .languages a.active {
  color: var(--ink-strong);
  position: relative;
}
.languages button.active::after, .languages a.active::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 2px;
  background: var(--aurora);
  border-radius: 2px;
}
.languages span { color: #CBD5E1; }

.social-links svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.social-links .icon-fill svg { fill: currentColor; stroke: none; }

.brand {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: auto;
  height: 40px;
  object-fit: contain;
}
.brand span {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ink-strong);
}

.main-nav { display: flex; gap: 30px; align-items: center; }
.main-nav a {
  font-size: 11.5px;
  font-weight: 600;
  position: relative;
  padding: 10px 0;
  color: var(--ink-dim);
  transition: color 0.25s;
}
.main-nav a:hover { color: var(--ink-strong); }
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--aurora);
  border-radius: 2px;
  transition: width 0.3s;
}
.main-nav a:hover::after, .main-nav a[aria-current]::after { width: 100%; }

.menu-toggle { display: none; }

/* ============================================================
   首頁 — BG6 HERO · CINEMATIC EDITORIAL
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 80px 4.2% 72px;
  /* 背景圖由 <img class="hero-media">（含 srcset/sizes）提供，這裡只留漸層，
     避免行動端重複下載 2848px 的 bg6.webp（164KB）拖慢 LCP */
  background:
    linear-gradient(100deg, rgba(4,10,26,0.82) 0%, rgba(4,10,26,0.35) 50%, rgba(4,10,26,0.1) 100%);
  background-attachment: scroll;
  color: #fff;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 960px;
}
.hero-copy { position: relative; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-tag .pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 0 0 rgba(96,165,250,0.5);
  animation: pulse-ring 2.2s infinite;
}
@keyframes pulse-ring {
  70% { box-shadow: 0 0 0 10px rgba(96,165,250,0); }
  100% { box-shadow: 0 0 0 0 rgba(96,165,250,0); }
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 5px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.hero-brandline {
  font-family: var(--display);
  font-size: clamp(18px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
  margin: 0 0 24px;
  line-height: 1.4;
  text-transform: none;
  max-width: 18em;
}

/* HERO TITLE — CINEMATIC ROTATOR */
.hero-title-wrap {
  position: relative;
  margin-bottom: 28px;
}
.hero-title {
  position: relative;
  display: block;
  max-width: 100%;
  font-family: var(--display);
  font-size: clamp(44px, 6.8vw, 112px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -3.5px;
  margin: 0;
  color: #fff;
  text-wrap: balance;
  min-height: calc(clamp(44px, 6.8vw, 112px) * 1.95);
}
html[lang="en"] .hero-title { font-size: clamp(34px, 4.6vw, 72px); letter-spacing: -2.5px; }
html[lang="zh-Hans"] .hero-title { font-size: clamp(38px, 5.6vw, 92px); letter-spacing: -3px; }

.hero-title .hero-title-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(12px) skewX(2deg);
  transition: opacity 0.55s cubic-bezier(0.4,0,0.2,1), filter 0.55s, transform 0.55s;
  pointer-events: none;
}
.hero-title .hero-title-slide.is-active {
  position: relative;
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) skewX(0);
  pointer-events: auto;
  transition: opacity 0.45s 0.15s cubic-bezier(0.22,0.61,0.36,1), filter 0.45s 0.15s, transform 0.45s 0.15s;
}

/* 每個 word 獨立 stagger 進場 */
.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  animation: word-in 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 0.06s);
}
.hero-title .hero-title-slide .word:nth-child(1) { animation-delay: 0.18s; }
.hero-title .hero-title-slide .word:nth-child(2) { animation-delay: 0.24s; }
.hero-title .hero-title-slide .word:nth-child(3) { animation-delay: 0.30s; }
.hero-title .hero-title-slide .word:nth-child(4) { animation-delay: 0.36s; }
.hero-title .hero-title-slide .word:nth-child(5) { animation-delay: 0.42s; }
.hero-title .hero-title-slide .word:nth-child(6) { animation-delay: 0.48s; }
.hero-title .hero-title-slide .word:nth-child(7) { animation-delay: 0.54s; }
.hero-title .hero-title-slide .word:nth-child(8) { animation-delay: 0.60s; }
.hero-title .hero-title-slide .word:nth-child(9) { animation-delay: 0.66s; }
.hero-title .hero-title-slide .word:nth-child(10){ animation-delay: 0.72s; }
.hero-title .hero-title-slide .word:nth-child(11){ animation-delay: 0.78s; }
.hero-title .hero-title-slide .word:nth-child(12){ animation-delay: 0.84s; }
.hero-title .hero-title-slide .word:nth-child(13){ animation-delay: 0.90s; }
.hero-title .hero-title-slide .word:nth-child(14){ animation-delay: 0.96s; }
.hero-title .hero-title-slide .word:nth-child(15){ animation-delay: 1.02s; }

.hero-title .hero-title-slide:not(.is-active) .word {
  animation: word-out 0.4s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}
@keyframes word-in {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes word-out {
  from { opacity: 1; transform: translateY(0); filter: blur(0); }
  to   { opacity: 0; transform: translateY(-18px); filter: blur(4px); }
}

.hero-title .gradient-text {
  background: linear-gradient(120deg, var(--accent, #a5b4fc), #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
/* highlight 詞加輕微 glow */
.hero-title .gradient-text::after {
  content: "";
  position: absolute; inset: -2px -4px;
  background: var(--accent, #a5b4fc);
  filter: blur(24px);
  opacity: 0.22;
  z-index: -1;
  border-radius: 12px;
}

.hero-sub {
  font-size: 15px;
  line-height: 2;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin: 0 0 36px;
  transform: translateY(20px);
  animation: fade-up 0.8s 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  opacity: 0;
}
@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  transform: translateY(20px);
  animation: fade-up 0.8s 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  opacity: 0;
}
.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero .btn-ghost:hover {
  border-color: rgba(165,180,252,0.8);
  color: #fff;
  background: rgba(165,180,252,0.15);
}
.hero .hero-scroll { color: rgba(255,255,255,0.6); }
.hero .hero-scroll i { background: rgba(255,255,255,0.6); }

.quantum-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.core-orb {
  position: relative;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--aurora);
  box-shadow:
    0 30px 60px -15px rgba(79, 70, 229, 0.45),
    0 0 0 8px rgba(79, 70, 229, 0.06),
    0 0 0 16px rgba(79, 70, 229, 0.03);
  animation: core-pulse 4s ease-in-out infinite;
}
.core-orb::after {
  content: "NEXA AI";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff;
}
@keyframes core-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* 軌道環 */
.q-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(79, 70, 229, 0.55);
  animation: orbit-spin 30s linear infinite;
}
.q-orbit.o2 {
  inset: 14%;
  animation-duration: 22s;
  animation-direction: reverse;
  border-style: solid;
  border-color: rgba(37, 99, 235, 0.6);
}
.q-orbit.o3 {
  inset: 28%;
  animation-duration: 16s;
  border-color: rgba(124, 58, 237, 0.65);
}
.q-orbit .dot {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--indigo);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
}
.q-orbit.o2 .dot { background: var(--cobalt); }
.q-orbit.o3 .dot { background: var(--violet); }
@keyframes orbit-spin { to { transform: rotate(360deg); } }

/* ============================================================
   裝飾性量子軌道 — 每頁獨特位置與風格
   ============================================================ */
.page-orb-bg {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}
.page-orb-bg .quantum-core { inset: 0; }

/* About 內嵌迷你 orbit system（不是背景！） */
.about-hero > .hero-orbit .quantum-core {
  position: absolute; inset: 0;
}
.about-hero > .hero-orbit .core-orb {
  width: 38%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--aurora);
  box-shadow: 0 20px 40px -10px rgba(79,70,229,0.45), 0 0 0 6px rgba(79,70,229,0.06);
  animation: core-pulse 4s ease-in-out infinite;
  display: grid; place-items: center;
}
.about-hero > .hero-orbit .core-orb::after {
  content: "NEXA";
  font-family: var(--display);
  font-size: 14px; font-weight: 700; letter-spacing: 2px; color: #fff;
}
.about-hero > .hero-orbit .q-orbit {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(79,70,229,0.55);
  animation: orbit-spin 30s linear infinite;
}
.about-hero > .hero-orbit .q-orbit.o2 { inset: 14%; animation-duration: 22s; animation-direction: reverse; border-style: solid; border-color: rgba(37,99,235,0.6); }
.about-hero > .hero-orbit .q-orbit.o3 { inset: 28%; animation-duration: 16s; border-color: rgba(124,58,237,0.65); }
.about-hero > .hero-orbit .q-orbit .dot {
  position: absolute; top: -4px; left: 50%; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; background: var(--indigo);
  box-shadow: 0 0 12px rgba(79,70,229,0.7);
}
.about-hero > .hero-orbit .q-orbit.o2 .dot { background: var(--cobalt); }
.about-hero > .hero-orbit .q-orbit.o3 .dot { background: var(--violet); }

/* ============================================================
   Services hero — 垂直堆疊 + 左上角量子軌道（輕微溢出）
   ============================================================ */
.svc-hero {
  position: relative; overflow: hidden;
  padding: 104px 4.2% 72px;
  display: flex; flex-direction: column;
  gap: 32px;
  /* 三層防護：左深右淺方向漸層 + 上下漸層 + 深藍底色，確保文字區足夠暗 */
  background:
    linear-gradient(100deg, rgba(7, 14, 32, 0.94) 0%, rgba(7, 14, 32, 0.78) 48%, rgba(7, 14, 32, 0.42) 100%),
    linear-gradient(180deg, rgba(7, 14, 32, 0.92) 0%, rgba(7, 14, 32, 0.8) 50%, rgba(7, 14, 32, 0.6) 100%),
    #060d20;
  background-attachment: scroll, scroll;
  color: #fff;
}
.svc-hero .eyebrow { color: rgba(255, 255, 255, 0.9); font-weight: 700; }
.svc-hero h1 {
  color: #fff;
  font-weight: 700;
  text-shadow: 0 3px 32px rgba(4, 9, 22, 0.95), 0 2px 8px rgba(4, 9, 22, 0.85), 0 1px 3px rgba(4, 9, 22, 0.7);
}
.svc-hero .svc-hero-inner > p {
  color: #fff;
  font-weight: 600;
  text-shadow: 0 2px 18px rgba(4, 9, 22, 0.9), 0 1px 4px rgba(4, 9, 22, 0.7);
  max-width: 720px;
}
.svc-hero .svc-tags span {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(6, 13, 32, 0.68);
  backdrop-filter: blur(10px);
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(4, 9, 22, 0.6);
}
.svc-hero .svc-tags span:hover { border-color: #fff; color: #fff; background: rgba(8, 17, 38, 0.7); }
.svc-hero .svc-meta { border-top-color: rgba(255, 255, 255, 0.25); }
.svc-hero .svc-meta .meta-chip {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.35);
  font-weight: 700;
}
.svc-hero .svc-hero-orb .q-orbit { border-color: rgba(165, 180, 252, 0.5); }
.svc-hero .svc-hero-orb .q-orbit.o2 { border-color: rgba(255, 255, 255, 0.38); }
.svc-hero .svc-hero-orb .q-orbit.o3 { border-color: rgba(196, 181, 253, 0.55); }
.svc-hero h1 {
  font-family: var(--display);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
  margin: 0 0 28px;
  white-space: normal;
  overflow-wrap: break-word;
}
html[lang="en"] .svc-hero h1 { letter-spacing: -1px; }
.svc-hero .svc-tags { margin-top: 28px; }
.svc-hero .svc-meta {
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  margin-top: 20px;
}
.svc-hero .svc-meta .meta-chip {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; color: var(--indigo);
  padding: 8px 16px; border: 1px solid var(--line);
  border-radius: 100px;
}
/* Services 專屬：左上角量子軌道（輕微溢出 hero 區域） */
.svc-hero .svc-hero-inner { position: relative; z-index: 1; }
.svc-hero .svc-hero-orb {
  position: absolute;
  left: -18%; top: -55%;
  width: min(58%, 720px); aspect-ratio: 1;
  pointer-events: none;
  z-index: 0;
}
.svc-hero .svc-hero-orb .quantum-core {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
}
.svc-hero .svc-hero-orb .core-orb {
  width: 18%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--aurora);
  box-shadow: 0 15px 35px -10px rgba(79,70,229,0.45), 0 0 0 4px rgba(79,70,229,0.06);
  animation: core-pulse 4s ease-in-out infinite;
  display: grid; place-items: center;
}
.svc-hero .svc-hero-orb .core-orb::after {
  content: "SERVICES";
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 3px; color: #fff;
}
.svc-hero .svc-hero-orb .q-orbit {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(79,70,229,0.55);
  animation: orbit-spin 30s linear infinite;
}
.svc-hero .svc-hero-orb .q-orbit.o2 { inset: 18%; animation-duration: 22s; animation-direction: reverse; border-style: solid; border-color: rgba(37,99,235,0.6); }
.svc-hero .svc-hero-orb .q-orbit.o3 { inset: 36%; animation-duration: 16s; border-color: rgba(124,58,237,0.65); }
.svc-hero .svc-hero-orb .q-orbit .dot {
  position: absolute; top: -4px; left: 50%; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; background: var(--indigo);
  box-shadow: 0 0 12px rgba(79,70,229,0.7);
}
.svc-hero .svc-hero-orb .q-orbit.o2 .dot { background: var(--cobalt); }
.svc-hero .svc-hero-orb .q-orbit.o3 .dot { background: var(--violet); }

/* ============================================================
   Contact hero — bg5 背景 + 輕漸層 + 全端隱藏軌道
   ============================================================ */
.contact-hero {
  position: relative; overflow: hidden;
  padding: 48px 4.2% 56px;
  min-height: 420px;
  display: flex; align-items: flex-end;
  background:
    linear-gradient(90deg, rgba(8, 17, 38, 0.55) 0%, rgba(8, 17, 38, 0.2) 60%, rgba(8, 17, 38, 0.08) 100%);
  color: #fff;
}
.contact-hero .contact-hero-orb {
  position: absolute;
  left: -13%; top: 46%;
  transform: translateY(-50%);
  width: 560px; max-width: 60%; aspect-ratio: 1;
  pointer-events: none;
}
.contact-hero .contact-hero-orb .quantum-core {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.contact-hero .contact-hero-orb .core-orb {
  width: 38%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--aurora);
  box-shadow: 0 25px 55px -15px rgba(124,58,237,0.45), 0 0 0 6px rgba(124,58,237,0.05);
  animation: core-pulse 4s ease-in-out infinite;
  display: grid; place-items: center;
}
.contact-hero .contact-hero-orb .core-orb::after {
  content: "CONNECT";
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 3px; color: #fff;
}
.contact-hero .contact-hero-orb .q-orbit {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(124,58,237,0.45);
  animation: orbit-spin 30s linear infinite;
}
.contact-hero .contact-hero-orb .q-orbit.o2 { inset: 16%; animation-duration: 22s; animation-direction: reverse; border-style: solid; border-color: rgba(79,70,229,0.5); }
.contact-hero .contact-hero-orb .q-orbit.o3 { inset: 32%; animation-duration: 16s; border-color: rgba(37,99,235,0.55); }
.contact-hero .contact-hero-orb .q-orbit .dot {
  position: absolute; top: -5px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: var(--violet);
  box-shadow: 0 0 16px rgba(124,58,237,0.8);
}
/* Contact hero 軌道圖：全端隱藏 */
.contact-hero .contact-hero-orb { display: none !important; }
.contact-hero .contact-hero-copy {
  position: relative;
  margin-left: auto;
  padding: 36px 0 8px;
  max-width: 860px;
  text-align: right;
  z-index: 2;
}
.contact-hero .contact-hero-copy h1 {
  font-family: var(--display);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
  margin: 12px 0 16px;
  color: #fff;
  white-space: nowrap;
}
html[lang="en"] .contact-hero .contact-hero-copy h1 {
  font-size: clamp(28px, 3.4vw, 48px);
  letter-spacing: -1px;
}
.contact-hero .contact-hero-copy p {
  font-size: 14px; line-height: 2; color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   FAQ hero — 滿版 + 標題不換行 + bg4 純背景（無濾鏡）
   ============================================================ */
.faq-hero {
  position: relative; overflow: hidden;
  padding: 96px 4.2% 60px;
  display: block;
  background:
    linear-gradient(90deg, rgba(8, 17, 38, 0.55) 0%, rgba(8, 17, 38, 0.2) 60%, rgba(8, 17, 38, 0.08) 100%);
}
.faq-hero .faq-hero-copy { max-width: 760px; position: relative; z-index: 2; }
.faq-hero .faq-hero-copy h1 {
  font-family: var(--display);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
  margin: 14px 0 24px;
  color: #fff;
  white-space: nowrap;
}
html[lang="en"] .faq-hero .faq-hero-copy h1 {
  font-size: clamp(28px, 3.4vw, 48px);
  letter-spacing: -1px;
}
.faq-hero .faq-hero-copy p {
  font-size: 15px; line-height: 2; color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
}
.faq-hero .faq-hero-orb {
  position: absolute;
  right: -130px; top: -110px;
  width: 430px; aspect-ratio: 1;
  pointer-events: none;
}
.faq-hero .faq-hero-orb .quantum-core {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.faq-hero .faq-hero-orb .core-orb {
  width: 34%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--aurora);
  box-shadow: 0 20px 45px -12px rgba(37,99,235,0.4), 0 0 0 5px rgba(37,99,235,0.06);
  animation: core-pulse 4s ease-in-out infinite;
  display: grid; place-items: center;
}
.faq-hero .faq-hero-orb .core-orb::after {
  content: "FAQ";
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 3px; color: #fff;
}
.faq-hero .faq-hero-orb .q-orbit {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(37,99,235,0.5);
  animation: orbit-spin 30s linear infinite;
}
.faq-hero .faq-hero-orb .q-orbit.o2 { inset: 16%; animation-duration: 22s; animation-direction: reverse; border-style: solid; border-color: rgba(79,70,229,0.55); }
.faq-hero .faq-hero-orb .q-orbit.o3 { inset: 32%; animation-duration: 16s; border-color: rgba(124,58,237,0.6); }
.faq-hero .faq-hero-orb .q-orbit .dot {
  position: absolute; top: -4px; left: 50%; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; background: var(--cobalt);
  box-shadow: 0 0 14px rgba(37,99,235,0.7);
}
.faq-hero .faq-hero-orb .q-orbit.o2 .dot { background: var(--indigo); }
.faq-hero .faq-hero-orb .q-orbit.o3 .dot { background: var(--violet); }
/* FAQ hero 軌道圖：已移至 faq-page */
.faq-hero .faq-hero-orb { display: none !important; }

/* FAQ page 軌道圖：左側背景、低透明度 */
.faq-page .faq-page-orb {
  position: absolute;
  left: -300px; top: 20px;
  width: 600px; aspect-ratio: 1;
  pointer-events: none;
  opacity: 0.3;
  z-index: 0;
}
.faq-page .faq-list,
.faq-page .knowledge-graph { position: relative; z-index: 2; }
.faq-page .faq-page-orb .q-orbit { border-color: rgba(37,99,235,0.5); }
.faq-page .faq-page-orb .q-orbit.o2 { border-color: rgba(79,70,229,0.5); }
.faq-page .faq-page-orb .q-orbit.o3 { border-color: rgba(124,58,237,0.5); }
.faq-page .faq-page-orb .core-orb {
  width: 32%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--aurora);
  box-shadow: 0 20px 45px -12px rgba(37,99,235,0.35);
  animation: core-pulse 4s ease-in-out infinite;
  display: grid; place-items: center;
}

/* Contact hero 軌道圖：已移至 contact-page */
.contact-hero .contact-hero-orb { display: none !important; }

/* Contact page 軌道圖：右側背景、比 FAQ 更大 */
.contact-page .contact-page-orb {
  position: absolute;
  right: -340px; top: -250px;
  width: 800px; aspect-ratio: 1;
  pointer-events: none;
  opacity: 0.3;
  z-index: 0;
}
.contact-page .contact-grid { position: relative; z-index: 2; }
.contact-page .contact-page-orb .q-orbit { border-color: rgba(37,99,235,0.5); }
.contact-page .contact-page-orb .q-orbit.o2 { border-color: rgba(79,70,229,0.5); }
.contact-page .contact-page-orb .q-orbit.o3 { border-color: rgba(124,58,237,0.5); }
.contact-page .contact-page-orb .core-orb {
  width: 32%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--aurora);
  box-shadow: 0 20px 45px -12px rgba(37,99,235,0.35);
  animation: core-pulse 4s ease-in-out infinite;
  display: grid; place-items: center;
}

@media (max-width: 1200px) {
  .about-hero > .hero-orbit { width: min(58%, 580px); right: -8%; bottom: -18%; }
  .contact-hero { min-height: 380px; }
  .contact-hero .contact-hero-copy { max-width: 660px; }
  .contact-page .contact-page-orb { right: -240px; top: -250px; width: 800px; opacity: 0.3; }
  .svc-hero .svc-hero-orb { width: min(54%, 560px); left: -6%; top: -10%; }
  .faq-page .faq-page-orb { left: -200px; top: 16px; width: 600px; opacity: 0.3; }
  .faq-hero .faq-hero-orb { width: 340px; right: -100px; top: -90px; }
  /* Tunnel 過渡：縮小 gap 和 label 欄寬 */
  .node-rail { grid-template-columns: 72px 1fr 1fr; gap: 24px; }
  .tunnel-node:nth-child(odd) .node-rail { grid-template-columns: 1fr 1fr 72px; }
  .tunnel-node:nth-child(odd) .node-info { grid-column: 2; }
  .tunnel-node:nth-child(odd) .node-visual { grid-column: 1; }
}
@media (max-width: 760px) {
  .page-orb-bg { display: none !important; }
  .about-hero, .svc-hero { background-attachment: scroll; }
  /* ===== 1. About hero：移動端換 bg2-mobile + 軌道圖隱藏 ===== */
  .about-hero {
    overflow: hidden !important;
    padding: 56px 0 48px !important;
    background:
      linear-gradient(97deg, rgba(8, 17, 38, 0.92) 0%, rgba(8, 17, 38, 0.68) 55%, rgba(8, 17, 38, 0.38) 100%),
      #081126 url("img/bg2-mobile.webp") center/cover no-repeat !important;
    background-attachment: scroll !important;
  }
  .about-hero > .hero-orbit {
    display: block !important;
    width: 88% !important;
    max-width: 380px !important;
    right: -22% !important;
    bottom: -6% !important;
    top: auto !important;
    opacity: 0.6 !important;
    z-index: 0 !important;
  }
  .about-hero > .hero-orbit .quantum-core { transform: scale(0.85) !important; }
  .about-hero > .hero-copy { position: relative; z-index: 2; max-width: 100% !important; padding: 0 5% !important; }
  .about-hero h1 { font-size: clamp(28px, 7.5vw, 44px); }
  .svc-hero h1 { font-size: clamp(28px, 7.5vw, 44px); }
  .faq-hero .faq-hero-copy h1 { font-size: clamp(28px, 7.5vw, 44px); }
  .contact-hero .contact-hero-copy h1 { font-size: clamp(28px, 7.5vw, 44px); }

  /* ===== 2. Services 軌道：左上角 + 文字在上層 + 放大 ===== */
  .svc-hero { overflow: hidden !important; padding: 40px 0 48px !important; }
  .svc-hero > .svc-hero-inner { padding: 0 5% !important; max-width: 100% !important; z-index: 2 !important; }
  /* 行動端 services 軌道定位已由 3512 區塊（body[data-page="services"]）統一管理；
     此處刪除舊的 !important 定位，避免把軌道圖推到 hero 外並壓到遮罩下看不見 */
  .svc-hero .svc-hero-orb .quantum-core { transform: scale(0.82) !important; }
  .svc-hero h1 { white-space: normal !important; }
  .faq-hero .faq-hero-orb { width: 240px !important; right: -80px !important; top: -60px !important; opacity: 0.5 !important; z-index: 0 !important; }
  .faq-hero .faq-hero-copy { position: relative; z-index: 2; }
  .contact-hero .contact-hero-orb { width: 260px !important; left: -90px !important; top: 42% !important; opacity: 0.5 !important; z-index: 0 !important; }
  .contact-hero .contact-hero-copy { position: relative; z-index: 2; }

  /* ===== 3. 進化時間軸：2 欄，第三欄 auto 完全移除 ===== */
  .evo-timeline .evo-node {
    grid-template-columns: 72px 1fr !important;
    gap: 12px !important;
    padding: 20px 4px !important;
  }
  .evo-timeline .evo-node:hover { padding-left: 8px !important; }
  .evo-tag { display: none !important; grid-column: none !important; }
  .evo-ghost { font-size: 48px !important; }
  .evo-node h3 { font-size: 17px !important; }
  .evo-node p { font-size: 13px !important; line-height: 1.7 !important; max-width: none !important; }
  .evo-phase { font-size: 10px !important; }

  /* ===== 4. hero 標題文字占滿螢幕寬（非 About 頁面） ===== */
  .svc-hero-inner { max-width: 100% !important; }
  .svc-hero .svc-hero-inner > p { max-width: 100% !important; }
  .faq-hero .faq-hero-copy { max-width: 100% !important; }
  .faq-hero .faq-hero-copy p { max-width: 100% !important; }
  .contact-hero .contact-hero-copy { max-width: 100% !important; margin-left: 0 !important; text-align: left !important; }

  /* ===== 5. 其他 ===== */
  .faq-hero .faq-hero-copy h1,
  .svc-hero h1,
  .contact-hero .contact-hero-copy h1 { white-space: normal; }
  /* Contact hero：收緊底部間距 */
  .contact-hero { min-height: auto; padding: 44px 5% 28px; }
  .contact-hero .contact-hero-copy { position: relative; right: auto; bottom: auto; text-align: left; max-width: 100%; }
  /* FAQ hero：收緊底部間距 */
  .faq-hero { padding: 56px 5% 32px; }
  /* FAQ/Contact page 區塊：保留少量頂部 padding */
  .faq-page { padding-top: 28px !important; }
  .faq-page .faq-page-orb { left: -120px; top: 10px; width: 300px; opacity: 0.3; }
  .contact-page { padding-top: 28px !important; }
  .contact-page .contact-page-orb { right: -170px; top: -100px; width: 400px; opacity: 0.3; }
  .svc-tags span:active { transform: scale(0.96); }

  /* ===== 6. Services 隧道節點：上下堆疊，解決 3 欄擠壓 ===== */
  .tunnel-node {
    min-height: auto !important;
    padding: 48px 5% !important;
  }
  .node-rail {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    gap: 20px !important;
  }
  /* 取消桌機交錯的 grid-column/grid-row */
  .tunnel-node .node-label,
  .tunnel-node .node-info,
  .tunnel-node .node-visual {
    grid-column: 1 !important;
    grid-row: auto !important;
    text-align: left !important;
  }
  .node-label {
    display: flex !important;
    align-items: baseline !important;
    gap: 14px !important;
  }
  .node-label .num {
    font-size: clamp(40px, 10vw, 64px) !important;
    opacity: 0.9 !important;
  }
  .node-label .tag {
    font-size: 9px !important;
    letter-spacing: 2px !important;
    margin-top: 0 !important;
  }
  .node-visual {
    order: 2 !important;
    width: 100% !important;
    aspect-ratio: 16/10 !important;
    border-radius: 14px !important;
  }
  .node-info {
    order: 3 !important;
  }
  .node-info h2 {
    font-size: clamp(22px, 6.2vw, 30px) !important;
    line-height: 1.2 !important;
    margin-bottom: 12px !important;
  }
  .node-info .svc-desc {
    font-size: 14px !important;
    line-height: 1.85 !important;
    margin-bottom: 16px !important;
  }
  .node-points {
    gap: 8px !important;
    margin-bottom: 20px !important;
  }
  .node-points li {
    font-size: 13px !important;
    line-height: 1.7 !important;
  }
}

/* ============================================================
   WhatsApp 浮動按鈕 — 全站右下角
   ============================================================ */
.wa-float {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 999;
  width: 58px; height: 58px;
  display: block !important;
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.wa-float img {
  height: 100%; width: auto;
  display: block; border-radius: 50%;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.55);
  animation: wa-pulse 2.6s ease-out infinite;
}
.wa-float:hover {
  transform: translateY(-4px) scale(1.06);
}
.wa-float:hover img {
  box-shadow: 0 18px 36px -8px rgba(37, 211, 102, 0.65);
}
@keyframes wa-pulse {
  0% { box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.55), 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.55), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.55), 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (max-width: 760px) {
  .wa-float { right: 18px; bottom: 18px; width: 54px; height: 54px; }
}

/* ============================================================
   關於我們 — BELIEFS + PRINCIPLES（BOOK SPREAD）
   打開的雜誌造型 · 頁面浮現一本書 · 中間書脊 + 頂部頁碼
   ============================================================ */
.beliefs-spread {
  position: relative;
  padding: 56px 4.2% 64px;
  margin-top: 16px;
}

/* 書本容器 —— 浮在頁面中間的卡片 */
.beliefs-book {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(79,70,229,0.28);
  background: #060f24 url("img/bg2-2.webp") center/cover no-repeat;
  box-shadow:
    0 4px 0 rgba(0,0,0,0.04),
    0 18px 40px -12px rgba(79,70,229,0.28),
    0 60px 80px -30px rgba(4,10,26,0.45);
  transform: translateY(0);
  transition: box-shadow 0.6s ease, transform 0.6s ease;
}
.beliefs-book:hover {
  box-shadow:
    0 4px 0 rgba(0,0,0,0.04),
    0 22px 48px -12px rgba(79,70,229,0.36),
    0 70px 90px -30px rgba(4,10,26,0.52);
  transform: translateY(-4px);
}

/* 書本內部深色漸層 + 光暈 */
.beliefs-book::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    rgba(4,10,26,0.82) 0%,
    rgba(4,10,26,0.55) 42%,
    rgba(4,10,26,0.38) 100%);
  pointer-events: none;
  z-index: 1;
}
.beliefs-book::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 82% 28%, rgba(124,58,237,0.18), transparent 72%),
    radial-gradient(ellipse 45% 55% at 18% 78%, rgba(37,99,235,0.14), transparent 72%);
  pointer-events: none;
  z-index: 1;
}

/* 書脊 —— 中間垂直線 */
.book-spine {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255,255,255,0.22) 15%,
    rgba(255,255,255,0.35) 50%,
    rgba(255,255,255,0.22) 85%,
    transparent 100%);
  box-shadow:
    -4px 0 12px -2px rgba(0,0,0,0.28),
    4px 0 12px -2px rgba(0,0,0,0.28);
  z-index: 3;
  pointer-events: none;
}

/* 頁眉 —— 書本頂部 mono 標籤 + 頁碼 */
.book-header {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.book-header .bh-left { opacity: 0.7; }
.book-header .bh-right { opacity: 0.7; }

/* 書本內容 grid */
.beliefs-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 20px 0 48px;
  color: #fff;
}

/* 左欄：引述 */
.beliefs-page {
  padding: 28px 44px 28px 40px;
}
.beliefs-page.page-left {
  text-align: left;
}
.beliefs-page.page-right {
  padding: 28px 40px 28px 44px;
}

.beliefs-left .section-eyebrow {
  color: rgba(165,180,252,0.95);
}
.beliefs-quote {
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -1.5px;
  color: #fff;
  margin: 20px 0 24px;
}
.beliefs-quote .gradient-text {
  background: linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 55%, #f0abfc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.beliefs-foot {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.5);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-transform: uppercase;
}
.beliefs-foot::before {
  content: "";
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, rgba(165,180,252,0.6), transparent);
}

/* 右欄：原則列表 */
.principles-col {
  display: flex;
  flex-direction: column;
}
.principle-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  transition: background 0.3s, padding-left 0.3s;
}
.principle-row:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.principle-row:hover {
  background: rgba(255,255,255,0.035);
  padding-left: 6px;
}
.principle-num {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(165,180,252,0.9);
  padding-top: 3px;
  line-height: 1;
}
.principle-body h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #fff;
  margin: 0 0 5px;
  line-height: 1.3;
}
.principle-body p {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255,255,255,0.66);
  margin: 0;
}

/* ============================================================
   關於我們 — COMPANY INTRO（雙欄機構介紹）
   左深藍面板 + 右 bg7 照片 + 右下四個服務按鈕
   ============================================================ */
.company-intro {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 560px;
  margin: 40px 4.2% 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(4,10,26,0.35);
}

/* 左欄：深藍面板 */
.ci-left {
  position: relative;
  background: linear-gradient(140deg, #0a1628 0%, #0e1e38 40%, #112240 100%);
  padding: 64px 64px;
  display: flex;
  flex-direction: column;
  color: #fff;
}
.ci-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 50% at 80% 10%, rgba(79,70,229,0.12), transparent 70%),
    radial-gradient(ellipse 30% 40% at 20% 90%, rgba(37,99,235,0.08), transparent 70%);
  pointer-events: none;
}
.ci-left > * { position: relative; z-index: 2; }

.ci-logo-block {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.ci-logo-block img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}
.ci-logo-block span {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: rgba(255,255,255,0.92);
}
.ci-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  color: rgba(165,180,252,0.85);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.ci-title {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 0 0 32px;
  color: #fff;
}
.ci-body {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255,255,255,0.75);
  text-align: justify;
  text-indent: 2em;
  margin: 0 0 18px;
}
.ci-body:last-child { margin-bottom: 0; }

/* 右欄：辦公室照片 */
.ci-right {
  position: relative;
  background: #0c1a30 url("img/bg7.webp") center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 48px 48px 48px;
}
/* 左側深藍漸層 —— 跟左欄無縫融合 */
.ci-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(10,22,40,0.9) 0%,
    rgba(10,22,40,0.55) 25%,
    rgba(10,22,40,0.2) 55%,
    rgba(10,22,40,0) 100%);
  pointer-events: none;
}
/* 底部漸層 —— 讓按鈕更突出 */
.ci-right::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,
    rgba(10,22,40,0.6) 0%,
    rgba(10,22,40,0.1) 40%,
    transparent 75%);
  pointer-events: none;
}

/* 右下服務按鈕 */
.ci-services {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  max-width: 440px;
  margin-left: auto;
}
.ci-svc-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 50px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.1px;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.ci-svc-btn:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(165,180,252,0.55);
  transform: translateY(-1px);
}
.ci-svc-btn .ci-svc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(165,180,252,0.9);
  flex-shrink: 0;
}

/* --- 1200px：改單欄堆疊 --- */
@media (max-width: 1200px) {
  .company-intro {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .ci-left {
    padding: 48px 40px;
  }
  .ci-right {
    min-height: 360px;
    padding: 32px 32px 40px;
  }
  .ci-right::before {
    background: linear-gradient(180deg,
      rgba(10,22,40,0.65) 0%,
      rgba(10,22,40,0.2) 30%,
      transparent 65%);
  }
  .ci-services { max-width: 100%; }
}

/* --- 760px 移動端 --- */
@media (max-width: 760px) {
  .company-intro {
    grid-template-columns: 1fr;
    margin: 28px 5% 0;
    border-radius: 16px;
  }
  .ci-left { padding: 36px 32px; }
  .ci-body { font-size: 13px; line-height: 1.8; text-align: left; text-indent: 2em; }
  .ci-title { font-size: 24px; margin-bottom: 20px; }
  .ci-logo-block { margin-bottom: 20px; }
  .ci-right { min-height: 300px; padding: 28px 20px 28px; }
  .ci-services {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .ci-svc-btn {
    padding: 12px 14px;
    font-size: 12px;
    gap: 10px;
  }
  .ci-svc-btn .ci-svc-dot { width: 8px; height: 8px; }
}
.node-chip {
  position: absolute;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-dim);
  white-space: nowrap;
  backdrop-filter: blur(8px);
  animation: chip-float 6s ease-in-out infinite;
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s, background 0.3s;
  z-index: 3;
}
.node-chip:hover {
  border-color: var(--indigo);
  color: var(--indigo);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.node-chip:nth-child(odd) { animation-delay: 1.5s; }
.node-chip[data-pos="tl"] { top: 6%; left: 4%; }
.node-chip[data-pos="tr"] { top: 8%; right: 4%; animation-delay: 2s; }
.node-chip[data-pos="bl"] { bottom: 10%; left: 4%; animation-delay: 3s; }
.node-chip[data-pos="br"] { bottom: 6%; right: 4%; animation-delay: 4s; }
.node-chip[data-pos="c"] {
  top: 52%;
  right: 4%;
  transform: translateY(-50%);
  animation-delay: 2.5s;
  animation-name: chip-float-center;
}
.node-chip[data-pos="c"]:hover { transform: translateY(-52%); }
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes chip-float-center {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(-58%); }
}

/* 滾動提示 */
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--ink-mute);
}
.hero-scroll i {
  display: block;
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, var(--indigo), transparent);
  animation: scroll-cue 1.8s ease-in-out infinite;
}
@keyframes scroll-cue {
  0%, 100% { opacity: 0.2; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- 跑馬燈 ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: #fff;
  padding: 14px 0;
  overflow: hidden;
  position: relative;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10vw;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-void), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg-void), transparent); }
.marquee-row {
  display: flex;
  width: max-content;
  animation: marquee-l 40s linear infinite;
}
.marquee-row.rev { animation: marquee-r 46s linear infinite; margin-top: 10px; opacity: 0.55; }
.marquee:hover .marquee-row { animation-play-state: paused; }
.marquee-track { display: flex; }
.marquee-track span {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--ink-dim);
  white-space: nowrap;
  padding: 0 24px;
  position: relative;
  font-weight: 600;
  font-family: var(--mono);
}
.marquee-track span::after {
  content: "◆";
  position: absolute;
  right: -6px;
  color: var(--indigo);
  opacity: 0.7;
}
@keyframes marquee-l { to { transform: translateX(-50%); } }
@keyframes marquee-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ---------- WHY NEXA ---------- */
.pulse-section {
  padding: 60px 7.5% 48px;
  max-width: 1400px;
  margin: 0 auto;
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--indigo);
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--ink-strong);
}
.section-title .gradient-text {
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-lead {
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink-dim);
  max-width: 600px;
  margin: 0 0 60px;
}

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pulse-card {
  position: relative;
  padding: 32px 26px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s;
}
.pulse-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--aurora);
  transform: scaleY(0);
  transform-origin: 0 0;
  transition: transform 0.5s;
}
.pulse-card:hover {
  border-color: rgba(79, 70, 229, 0.2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.pulse-card:hover::before { transform: scaleY(1); }
.pulse-num {
  font-family: var(--mono);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
  opacity: 0.9;
}
.pulse-card h3 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
  color: var(--ink-strong);
}
.pulse-card p {
  font-size: 13px;
  line-height: 2;
  color: var(--ink-dim);
  margin: 0;
}

/* ---------- 金句板 ---------- */
.neural-quote {
  padding: 52px 7.5%;
  text-align: center;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.quote-plate {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 40px;
  border: 1px solid var(--line);
  background: var(--aurora-soft);
  border-radius: 20px;
}
.quote-plate::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: var(--aurora);
  z-index: -1;
  opacity: 0.08;
  filter: blur(24px);
}
.quote-plate p {
  font-family: var(--display);
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.8;
  color: var(--ink-strong);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
.quote-plate .hl {
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  white-space: nowrap;
}

/* ============================================================
   專業服務 — 量子隧道（無輪播）
   ============================================================ */
.svc-hero { position: relative; overflow: hidden; }
.svc-hero-inner { max-width: 960px; position: relative; z-index: 1; text-align: left; }
.svc-hero h1,
.svc-hero .eyebrow,
.svc-hero .svc-hero-inner > p,
.svc-hero .svc-tags { text-align: left; }
.svc-hero p:not(.lead) {
  font-size: 15px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin: 0 0 14px;
}
.svc-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.svc-tags span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--ink-dim);
  border: 1px solid var(--line-strong);
  padding: 8px 14px;
  background: #fff;
  font-family: var(--mono);
  border-radius: 100px;
  transition: border-color 0.3s, color 0.3s;
}
.svc-tags span:hover { border-color: var(--indigo); color: var(--indigo); }
.svc-meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 10px; letter-spacing: 2px; color: var(--ink-mute);
  font-family: var(--mono);
}
.svc-meta a { color: var(--ink-dim); }
.svc-meta a:hover { color: var(--indigo); }

/* 隧道節點 */
.tunnel { position: relative; }
.tunnel-track { position: relative; }

.tunnel-node {
  position: relative;
  min-height: 72svh;
  display: flex;
  align-items: center;
  padding: 40px 4.2%;
  overflow: hidden;
}

.node-rail {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.tunnel-node.is-visible .node-rail { opacity: 1; transform: translateY(0); }

/* 序號 */
.node-label {
  position: relative;
  font-family: var(--mono);
}
.node-label .num {
  font-size: clamp(64px, 8vw, 130px);
  font-weight: 700;
  line-height: 1;
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.85;
}
.node-label .tag {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--ink-mute);
  margin-top: 10px;
}

.node-info { min-width: 0; }
.node-info .svc-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  background: var(--aurora);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  border-radius: 100px;
}
.node-info h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--ink-strong);
}
.node-info .svc-desc {
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-dim);
  max-width: 560px;
  margin: 0 0 24px;
}
.node-points {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
}
.node-points li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink);
}
.node-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 14px;
  height: 1px;
  background: var(--aurora);
}

.node-visual {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  background: var(--bg-deep);
}
.node-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.tunnel-node.is-visible .node-visual img { transform: scale(1); }
.node-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), transparent 55%);
}

/* 交錯 — even:[數字][文字][圖片]  odd:[圖片][文字][數字] */
.tunnel-node:nth-child(odd) .node-rail { grid-template-columns: 1.1fr 1fr 100px; }
.tunnel-node:nth-child(odd) .node-label { grid-column: 3; grid-row: 1; text-align: right; }
.tunnel-node:nth-child(odd) .node-info { grid-column: 2; grid-row: 1; }
.tunnel-node:nth-child(odd) .node-visual { grid-column: 1; grid-row: 1; }

/* ============================================================
   關於我們
   ============================================================ */
/* About hero — 借鑒原站：深藍底 + bg2 cover + fixed 視差 */
.about-hero {
  position: relative;
  padding: 108px 0 80px;
  overflow: hidden;
  background:
    linear-gradient(97deg, rgba(8, 17, 38, 0.9) 0%, rgba(8, 17, 38, 0.64) 50%, rgba(8, 17, 38, 0.28) 100%),
    #081126;
  background-attachment: scroll;
  color: #fff;
}
.about-hero > .hero-copy { position: relative; z-index: 2; max-width: 100%; padding: 0 5%; }
.about-hero .eyebrow { color: rgba(255, 255, 255, 0.78); }
.about-hero h1 { color: #fff; }
.about-hero .lead, .about-hero .body-text { color: rgba(255, 255, 255, 0.85); }
.about-hero > .hero-orbit .q-orbit { border-color: rgba(165, 180, 252, 0.5); }
.about-hero > .hero-orbit .q-orbit.o2 { border-color: rgba(255, 255, 255, 0.38); }
.about-hero > .hero-orbit .q-orbit.o3 { border-color: rgba(196, 181, 253, 0.55); }
.about-hero > .hero-orbit {
  position: absolute; z-index: 0;
  aspect-ratio: 1;
  width: min(62%, 820px);
  right: -10%; bottom: -22%;
  pointer-events: none;
  opacity: 0.65;
  /* About hero 軌道圖：全端隱藏 */
  display: none !important;
}
.about-hero > span, .about-hero > h1, .about-hero > p { position: relative; z-index: 1; }
.about-hero .eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.about-hero .eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--aurora);
}
.about-hero h1 {
  font-family: var(--display);
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.22;
  margin: 0 0 28px;
  color: #fff;
  text-shadow: 0 2px 24px rgba(8, 17, 38, 0.55);
  max-width: 16em;
}
.about-hero h1 .gradient-text {
  background: linear-gradient(135deg, #93C5FD, #C4B5FD);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-hero .lead {
  font-size: 16px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 14px rgba(8, 17, 38, 0.5);
  max-width: 620px;
  margin: 0 0 30px;
}
.about-hero .body-text {
  font-size: 14px;
  line-height: 2.1;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 12px rgba(8, 17, 38, 0.5);
  max-width: 660px;
  margin: 0 0 14px;
}

/* ============================================================
   ABOUT — METRICS · EVOLUTION
   ============================================================ */

/* 數字牆 */
.metrics-wall {
  max-width: 1400px; margin: 0 auto;
  padding: 44px 4.2%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--aurora-soft);
}
.metric { text-align: center; }
.metric-num {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 60px);
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 1;
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.metric-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--ink-mute);
  margin-top: 10px;
}

/* 進化時間軸 — 純排版編年史：幽靈數字 + 分隔行（無圖片） */
.evolution-section {
  max-width: 1400px; margin: 0 auto;
  padding: 56px 4.2% 60px;
}
.evo-timeline { margin: 64px auto 0; border-top: 1px solid var(--line); max-width: 1400px; }
.evo-timeline .evo-node {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 32px 12px;
  border-bottom: 1px solid var(--line);
  background: transparent; border-radius: 0; overflow: visible;
  transition: background 0.4s ease, padding-left 0.4s ease;
}
.evo-timeline .evo-node::before { display: none; }
.evo-timeline .evo-node:hover {
  background: linear-gradient(90deg, rgba(79,70,229,0.055), rgba(124,58,237,0.02) 55%, transparent);
  padding-left: 32px;
  transform: none; box-shadow: none;
}
.evo-ghost {
  font-family: var(--display);
  font-size: clamp(64px, 7vw, 104px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -4px;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-strong);
  transition: -webkit-text-stroke-color 0.4s ease;
  user-select: none;
}
.evo-timeline .evo-node:hover .evo-ghost {
  -webkit-text-stroke-color: transparent;
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
}
.evo-phase {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--indigo);
  margin-bottom: 12px;
}
.evo-node h3 {
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
  color: var(--ink-strong);
}
.evo-node p {
  font-size: 14px; line-height: 1.9; color: var(--ink-dim);
  margin: 0;
  max-width: 560px;
}
.evo-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff;
  background: var(--aurora);
  padding: 6px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ============================================================
   FAQ — 知識圖譜
   ============================================================ */
.knowledge-graph {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--line);
}
.topic-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.topic-chip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
  text-decoration: none;
  color: var(--ink);
}
.topic-chip:hover {
  border-color: rgba(79,70,229,0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.topic-emoji {
  font-size: 28px;
  flex: none;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--aurora-soft);
}
.topic-chip strong {
  display: block;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-strong);
  letter-spacing: -0.3px;
}
.topic-chip em {
  font-style: normal;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.5px;
}

/* ============================================================
   CONTACT — 營業狀態 + 地圖釘
   ============================================================ */
.biz-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  margin-bottom: 28px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--indigo);
  position: relative;
  flex: none;
}
.status-dot.open { background: #10B981; box-shadow: 0 0 0 4px rgba(16,185,129,0.15); }
.status-dot.open::after {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%;
  animation: status-pulse 2s ease-in-out infinite;
  border: 2px solid rgba(16,185,129,0.4);
}
@keyframes status-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.6); opacity: 0; }
}
.status-dot.closed { background: var(--ink-mute); }
.status-text { font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--ink-strong); }
.status-time { font-size: 11px; color: var(--ink-mute); font-family: var(--mono); }

.signal-bar {
  display: flex; align-items: flex-end; gap: 4px;
  height: 48px; margin-bottom: 28px;
}
.signal-bar i {
  width: 5px; background: var(--aurora);
  animation: signal 1.3s ease-in-out infinite;
  transform-origin: bottom; border-radius: 2px;
}
.signal-bar i:nth-child(1) { height: 35%; animation-delay: 0s; }
.signal-bar i:nth-child(2) { height: 70%; animation-delay: 0.12s; }
.signal-bar i:nth-child(3) { height: 50%; animation-delay: 0.24s; }
.signal-bar i:nth-child(4) { height: 88%; animation-delay: 0.36s; }
.signal-bar i:nth-child(5) { height: 60%; animation-delay: 0.48s; }
.signal-bar i:nth-child(6) { height: 76%; animation-delay: 0.6s; }
.signal-bar i:nth-child(7) { height: 42%; animation-delay: 0.72s; }
.signal-bar i:nth-child(8) { height: 90%; animation-delay: 0.84s; }
.signal-bar i:nth-child(9) { height: 55%; animation-delay: 0.96s; }
@keyframes signal {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

.location-pin {
  position: relative;
  margin-top: 20px;
  padding: 20px 18px 18px;
  border: 1px solid var(--line);
  background: var(--aurora-soft);
  border-radius: 14px;
  text-align: center;
}
.pin-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--aurora);
  margin: 0 auto 12px;
  position: relative;
}
.pin-ring {
  position: absolute;
  top: 34px; left: 50%;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  border: 2px solid var(--indigo);
  animation: pin-burst 2s ease-out infinite;
}
@keyframes pin-burst {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(3.5); opacity: 0; }
}
.pin-label {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--indigo);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-page {
  position: relative;
  padding: 56px 4.2% 64px;
  max-width: none; margin: 0;
  overflow: hidden;
}
.faq-page .faq-list { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.faq-page .page-orb-bg {
  position: absolute;
  right: -120px; top: 200px;
  width: 340px; height: 340px;
  transform: rotate(12deg);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.faq-page > .faq-head, .faq-page > .faq-list, .faq-page > .kg-section { position: relative; z-index: 1; }
.faq-head { max-width: 680px; margin-bottom: 36px; }
.faq-head h1 {
  font-family: var(--display);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.15;
  margin: 20px 0 14px;
  color: var(--ink-strong);
}
.faq-head p { font-size: 14px; line-height: 2; color: var(--ink-dim); }

.faq-list { display: grid; gap: 12px; }
.faq-item {
  position: relative;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.faq-item:hover { border-color: rgba(79, 70, 229, 0.25); }
.faq-item[open] {
  border-color: rgba(79, 70, 229, 0.4);
  box-shadow: var(--shadow-md);
}
.faq-question,
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 28px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-strong);
  transition: color 0.25s;
}
.faq-question::-webkit-details-marker,
details.faq-item summary::-webkit-details-marker { display: none; }
.faq-question .q-num {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--indigo);
  flex: none;
}
.faq-question .q-text { flex: 1; }
.faq-question::after,
details.faq-item summary::after {
  content: "+";
  margin-left: auto;
  font-size: 22px;
  color: var(--indigo);
  font-weight: 300;
  transition: transform 0.35s, color 0.35s;
  flex: none;
}
.faq-item[open] .faq-question::after,
.faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 28px 26px;
  font-size: 13.5px;
  line-height: 2;
  color: var(--ink-dim);
}

/* ============================================================
   聯絡我們
   ============================================================ */
.contact-page {
  position: relative;
  padding: 56px 4.2% 64px;
  max-width: none; margin: 0;
  overflow: hidden;
}
.contact-page .contact-grid { max-width: 1400px; margin: 0 auto; position: relative; z-index: 2; }
.contact-page .page-orb-bg {
  position: absolute;
  left: -100px; bottom: -100px;
  width: 360px; height: 360px;
  transform: rotate(-8deg);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.contact-page > * { position: relative; z-index: 1; }
.contact-head { max-width: 680px; margin-bottom: 36px; }
.contact-head h1 {
  font-family: var(--display);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.15;
  margin: 20px 0 14px;
  color: var(--ink-strong);
}
.contact-head p { font-size: 14px; line-height: 2; color: var(--ink-dim); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.contact-sidebar { display: grid; gap: 0; }
.contact-sidebar .signal-bar {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 48px;
  margin-bottom: 28px;
}
.signal-bar i {
  width: 5px;
  background: var(--aurora);
  animation: signal 1.3s ease-in-out infinite;
  transform-origin: bottom;
  border-radius: 2px;
}
.signal-bar i:nth-child(1) { height: 35%; animation-delay: 0s; }
.signal-bar i:nth-child(2) { height: 70%; animation-delay: 0.12s; }
.signal-bar i:nth-child(3) { height: 50%; animation-delay: 0.24s; }
.signal-bar i:nth-child(4) { height: 88%; animation-delay: 0.36s; }
.signal-bar i:nth-child(5) { height: 60%; animation-delay: 0.48s; }
.signal-bar i:nth-child(6) { height: 76%; animation-delay: 0.6s; }
.signal-bar i:nth-child(7) { height: 42%; animation-delay: 0.72s; }
@keyframes signal {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

.contact-item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.contact-item:first-of-type { padding-top: 0; }
.contact-item small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.contact-item a {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--ink-strong);
  transition: color 0.25s;
}
.contact-item a:hover { color: var(--indigo); }
.contact-item p { font-size: 13px; line-height: 2; color: var(--ink-dim); margin: 0; }

.contact-wa {
  border-bottom: 0;
  padding: 28px 0 0;
  line-height: 0;
}
.contact-wa a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Manrope, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  padding: 14px 24px;
  border: 0;
  background: linear-gradient(135deg, #10B981, #059669);
  border-radius: 10px;
  transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
}
.contact-wa a .wa-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .contact-wa a { width: 100%; justify-content: center; padding: 16px 20px; font-size: 15px; }
  .contact-wa a .wa-icon { width: 22px; height: 22px; }
}
.contact-wa a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(16, 185, 129, 0.4);
  filter: brightness(1.05);
}

.contact-form {
  position: relative;
  padding: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}
.contact-form h2 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
  color: var(--ink-strong);
}
.contact-form .note { font-size: 11.5px; color: var(--ink-mute); line-height: 1.8; margin: 0 0 28px; }
.contact-form label { display: block; font-size: 12px; color: var(--ink-dim); }
.contact-form label[hidden] { display: none; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  display: block;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  background: transparent;
  border-radius: 0;
  font-size: 13px;
  margin-top: 6px;
  color: var(--ink-strong);
  font-family: inherit;
  transition: border-color 0.3s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--ink-mute); }
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { outline: none; border-color: var(--indigo); }
.contact-form select { cursor: pointer; }
.contact-form textarea { resize: vertical; min-height: 80px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-form .btn-primary { width: 100%; justify-content: center; margin-top: 8px; }

/* ============================================================
   頁尾
   ============================================================ */
.site-footer {
  background: #F8FAFC;
  color: var(--ink-dim);
  position: relative;
  border-top: 1px solid var(--line);
}
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 0 6%; }
.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.footer-cta h2 {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin: 12px 0 8px;
  color: var(--ink-strong);
}
.footer-cta p { font-size: 13px; line-height: 1.9; color: var(--ink-dim); max-width: 520px; margin: 0; }
.footer-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--indigo);
}
.footer-info { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding: 40px 0; }
.footer-col h3 { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--ink-strong); margin: 0 0 16px; text-transform: uppercase; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 14px;
  color: var(--ink-strong);
}
.footer-logo img { width: auto; height: 28px; object-fit: contain; }
.footer-col p { font-size: 12.5px; line-height: 2; color: var(--ink-dim); margin: 0; }
.footer-hours { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.footer-hours b { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--indigo); }
.footer-addr { font-size: 12px; line-height: 1.9; color: var(--ink-mute); margin: 14px 0 0; }
.footer-col a {
  display: block;
  font-size: 12.5px;
  color: var(--ink-dim);
  padding: 6px 0;
  transition: color 0.25s, transform 0.25s;
}
.footer-col a:hover { color: var(--indigo); transform: translateX(3px); }
.footer-col a .arrow { font-size: 13px; margin-left: 6px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-dim);
  border-radius: 10px;
  transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
  padding: 0;
}
.footer-social svg, .footer-social a img { width: 16px; height: 16px; display: block; }
.footer-social svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.footer-social .icon-fill svg { fill: currentColor; stroke: none; }
.footer-social a:hover {
  border-color: var(--indigo);
  background: var(--aurora-soft);
  color: var(--indigo);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 0 30px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--ink-mute);
}
.footer-tag {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--ink-mute);
}

/* ============================================================
   全局效果層
   ============================================================ */

/* ============================================================
   瘋狂特效層 — MAD INTERACTIONS v5
   ============================================================ */

/* 游標拖尾粒子 */
.cursor-trail {
  position: fixed; z-index: 158;
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%; pointer-events: none;
  animation: trail-die 0.6s ease-out forwards;
}
@keyframes trail-die {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.2); }
}

/* 主游標 — 移除 glow，只留 dot + ring */
.cursor-glow { display: none; }
.cursor-dot, .cursor-ring { display: none; pointer-events: none; }
body.custom-cursor .cursor-dot, body.custom-cursor .cursor-ring { display: block; }
body.custom-cursor,
body.custom-cursor a, body.custom-cursor button,
body.custom-cursor summary, body.custom-cursor label,
body.custom-cursor .pulse-card, body.custom-cursor .chip,
body.custom-cursor .node-chip, body.custom-cursor .node-visual { cursor: none; }
body.custom-cursor input, body.custom-cursor textarea, body.custom-cursor select { cursor: auto; }
.cursor-dot {
  position: fixed; left: 0; top: 0;
  z-index: 160;
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--indigo);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}
.cursor-ring {
  position: fixed; left: 0; top: 0;
  z-index: 159;
  width: 42px; height: 42px; margin: -21px 0 0 -21px;
  border-radius: 50%;
  border: 1.5px solid rgba(79, 70, 229, 0.55);
  transition: width 0.25s, height 0.25s, margin 0.25s, border-color 0.25s, background 0.25s;
}
.cursor-ring.hovering {
  width: 60px; height: 60px; margin: -30px 0 0 -30px;
  border-color: var(--violet);
  background: rgba(124, 58, 237, 0.08);
  border-style: dashed;
}

/* 磁性按鈕引力 — 用 CSS 變數，不直接寫 transform，避免跟 cursor ring 衝突 */
[data-magnetic] {
  position: relative;
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.25s;
  will-change: transform;
  transform: translate(var(--magX, 0px), var(--magY, 0px));
}
[data-magnetic]::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--aurora);
  filter: blur(18px);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
  pointer-events: none;
}
[data-magnetic]:hover::before { opacity: 0.18; }

/* Hero 細微掃光 */
.hero-title .line:hover span { filter: drop-shadow(0 0 2px rgba(79,70,229,0.35)); }

/* 服務節點掃描線 + 光暈 */
.tunnel-node.is-visible .node-visual::before {
  animation: scan-sweep 1.4s cubic-bezier(0.22,0.61,0.36,1) 0.4s forwards;
}
@keyframes scan-sweep { to { left: 150%; } }
.node-visual::before {
  content: ""; position: absolute; top: 0; left: -150%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  z-index: 2; pointer-events: none; transform: skewX(-18deg);
}
.node-visual::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--vx, 50%) var(--vy, 50%), transparent 20%, rgba(15,23,42,0.1) 60%);
  z-index: 1; pointer-events: none; opacity: 0; transition: opacity 0.3s;
}
.node-visual:hover::after { opacity: 1; }

/* ============================================================
   移動端（hover:none）互動替代：呼吸脈衝 + tap 回饋 + 循環掃描
   ============================================================ */
@media (hover: none) {
  /* 光暈：hover 觸發 → is-visible 後自動呼吸脈衝 */
  .node-visual::after {
    opacity: 0 !important;
    transition: none !important;
  }
  .tunnel-node.is-visible .node-visual::after {
    opacity: 1 !important;
    animation: mobile-glow-pulse 3.2s ease-in-out infinite 1.2s;
  }
  @keyframes mobile-glow-pulse {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.04); }
  }

  /* 掃描線：進場後連掃 3 次 */
  .tunnel-node.is-visible .node-visual::before {
    animation: scan-sweep 1.4s cubic-bezier(0.22,0.61,0.36,1) 0.4s 3;
  }

  /* tap 回饋：點擊時微縮 */
  .node-visual:active { transform: scale(0.97) !important; transition: transform 0.15s ease; }

  /* 序號 num 呼吸 glow */
  .tunnel-node.is-visible .node-label .num {
    animation: num-glow 2.8s ease-in-out infinite 1s;
  }
  @keyframes num-glow {
    0%, 100% { opacity: 0.85; filter: brightness(1); }
    50% { opacity: 1; filter: brightness(1.15); }
  }
}

/* FAQ 打開 glow pulse + 漣漪 */
.faq-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: transparent; border-radius: 0 3px 3px 0;
  transition: background 0.4s, box-shadow 0.4s;
}
.faq-item[open]::before {
  background: var(--aurora);
  animation: glow-pulse 2s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(79,70,229,0.3); }
  50% { box-shadow: 0 0 24px rgba(124,58,237,0.7); }
}
/* FAQ 打開時的光暈 ripple */
.faq-item .faq-question,
.faq-item summary { position: relative; overflow: hidden; }
.faq-item .faq-question::before,
.faq-item summary::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), rgba(79,70,229,0.08), transparent 60%);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s;
}
.faq-item[open] .faq-question::before,
.faq-item[open] summary::before { opacity: 1; }

/* Tunnel node 滾動視差 — 每個 node-visual 根據進場深度做 translate */
.tunnel-node .node-visual {
  transition: transform 1.2s cubic-bezier(0.22,0.61,0.36,1), filter 0.8s;
}
.tunnel-node.is-visible .node-visual {
  animation: node-visual-in 1.1s cubic-bezier(0.22,0.61,0.36,1) both;
}
@keyframes node-visual-in {
  0% { transform: perspective(900px) rotateY(8deg) scale(0.92); filter: blur(6px) brightness(0.85); }
  100% { transform: perspective(900px) rotateY(0deg) scale(1); filter: blur(0) brightness(1); }
}
.tunnel-node:nth-child(even).is-visible .node-visual { animation-name: node-visual-in-rev; }
@keyframes node-visual-in-rev {
  0% { transform: perspective(900px) rotateY(-8deg) scale(0.92); filter: blur(6px) brightness(0.85); }
  100% { transform: perspective(900px) rotateY(0deg) scale(1); filter: blur(0) brightness(1); }
}

/* topic-chip hover 科技感脈衝 */
.topic-chip { position: relative; overflow: hidden; }
.topic-chip::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--tx, 50%) var(--ty, 50%), rgba(79,70,229,0.06), transparent 70%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.topic-chip:hover::before { opacity: 1; }
.topic-chip:hover {
  border-color: rgba(79,70,229,0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(79,70,229,0.15);
}

/* Contact form input focus 動畫 */
.contact-form input,
.contact-form textarea,
.contact-form select {
  position: relative;
  background-image: linear-gradient(var(--indigo), var(--indigo));
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.4s cubic-bezier(0.22,0.61,0.36,1), border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  background-size: 100% 1px;
  border-color: transparent;
}

/* Nav 流光底線 */
.main-nav a::after { background: var(--aurora); box-shadow: 0 0 8px rgba(79,70,229,0.4); }

/* 按鈕按下光暈 */
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--cx,50%) var(--cy,50%), rgba(255,255,255,0.3), transparent 50%);
  opacity: 0; pointer-events: none;
}
.btn-primary:active::after { opacity: 1; animation: click-flash 0.4s ease-out forwards; }
@keyframes click-flash { to { opacity: 0; } }
.btn-primary:active { transform: translateY(-1px) scale(0.98); }

/* 頁面轉場 — GPU 優化：translate3d + 無永久 will-change */
.page-wipe {
  position: fixed; inset: 0; z-index: 150; pointer-events: none;
  background: linear-gradient(120deg, #FAFBFC 0%, #EFF6FF 25%, #EEF2FF 50%, #F5F3FF 75%, #FAFBFC 100%);
  transform: translate3d(-118%, 0, 0);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  backface-visibility: hidden;
}
.page-wipe::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent 5%, var(--indigo) 50%, transparent 95%);
  transform: translate3d(0, 0, 0);
}
.page-wipe.cover { transform: translate3d(0, 0, 0); }
.page-wipe.reveal { transform: translate3d(118%, 0, 0); }
.page-wipe.instant { transition: none; }

/* wipe 內部 logo — 純 opacity，不疊 transform */
.page-wipe-logo {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  transition: opacity 0.22s ease 0.04s;
  pointer-events: none;
  will-change: opacity;
}
.page-wipe.cover .page-wipe-logo,
.page-wipe.reveal .page-wipe-logo { opacity: 1; }
.page-wipe.instant .page-wipe-logo { transition: none; }

.page-wipe-logo img {
  width: 72px; height: 72px;
  filter: drop-shadow(0 4px 16px rgba(79,70,229,0.22));
  transform: translate3d(0, 0, 0);
}
.page-wipe-logo .pw-brand {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ink-strong);
  transform: translate3d(0, 0, 0);
}
.page-wipe-logo .pw-tagline {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 4px;
  color: rgba(79,70,229,0.7);
  text-transform: uppercase;
  transform: translate3d(0, 0, 0);
}
.page-wipe-logo::after {
  content: "";
  position: absolute;
  bottom: 30%;
  width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,70,229,0.45), transparent);
  transform: translate3d(0, 0, 0);
}

@keyframes page-in { from { transform: translate3d(0, 8px, 0); } to { transform: translate3d(0, 0, 0); } }
body.page-enter #main-content { animation: page-in 0.26s cubic-bezier(0.22, 0.61, 0.36, 1) both; }

/* 移動端轉場：更快、更輕 */
@media (hover: none) {
  .page-wipe { transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1); }
  body.page-enter #main-content { animation: page-in 0.18s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
  .page-wipe-logo { transition: opacity 0.18s ease 0.03s; }
  .page-wipe-logo img { width: 54px; height: 54px; }
  .page-wipe-logo .pw-brand { font-size: 22px; }
  .page-wipe-logo .pw-tagline { font-size: 8px; letter-spacing: 3px; }
}

/* 點擊粒子爆發（取代漣漪） */
.click-particle {
  position: fixed; z-index: 158;
  width: 4px; height: 4px; margin: -2px 0 0 -2px;
  border-radius: 50%; pointer-events: none;
  background: var(--aurora); box-shadow: 0 0 6px rgba(79,70,229,0.6);
  animation: particle-fly 0.7s cubic-bezier(0.22,0.61,0.36,1) forwards;
}
@keyframes particle-fly {
  0% { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--px,0), var(--py,0)) scale(0.2); opacity: 0; }
}

/* 捲動進場 */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
.tunnel-node { opacity: 0; transition: opacity 0.6s ease; }
.tunnel-node.is-visible { opacity: 1; }
.pulse-card, .chip {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.22,0.61,0.36,1);
}
.pulse-card.is-visible, .chip.is-visible { opacity: 1; transform: none; }

/* 通知 */
.notice {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: #fff;
  color: var(--ink);
  padding: 14px 24px;
  font-size: 13px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  max-width: 90%;
  width: max-content;
  border-radius: 10px;
}
.nav-error { padding: 25px; text-align: center; font-size: 13px; color: var(--ink-dim); }

/* ============================================================
   響應式
   ============================================================ */
@media (min-width: 1600px) {
  .main-nav { gap: 34px; }
  .main-nav a { font-size: 13px; }
  .header-tools { gap: 34px; }
}
@media (max-width: 1200px) {
  .hero-grid { grid-template-columns: 1.4fr 1fr; gap: 24px; width: 100%; }
  .hero-visual { max-width: 340px; }
  .pulse-grid, .chip-grid { grid-template-columns: 1fr; gap: 18px; }
  .beliefs-book { max-width: 720px; border-radius: 18px; }
  .beliefs-inner { grid-template-columns: 1fr; gap: 0; }
  .book-spine { display: none; }
  .beliefs-page { padding: 24px 36px; }
  .beliefs-spread { padding: 40px 4.2% 56px; }
  .metrics-wall { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .evo-timeline .evo-node { grid-template-columns: 110px 1fr; gap: 20px; padding: 34px 8px; }
  .evo-timeline .evo-node:hover { padding-left: 16px; }
  .evo-tag { display: none; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .node-rail, .tunnel-node:nth-child(odd) .node-rail {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .tunnel-node:nth-child(odd) .node-label { grid-column: 1; text-align: left; }
  .tunnel-node:nth-child(odd) .node-info { order: 0; }
  .tunnel-node:nth-child(odd) .node-visual { order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-info { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 1050px) {
  :root { --header-h: 58px; }
  /* 導航欄：絕對居中 brand + 兩側浮動工具列，header 本身不撐大 */
  .site-header {
    flex-wrap: nowrap;
    padding: 0 4.2%;
    height: var(--header-h);
    position: relative;
    gap: 0;
  }
  .header-tools {
    border-right: none; padding-right: 0; gap: 12px;
    flex: 0 0 auto; margin-right: auto;
  }
  .header-tools .social-links { display: flex; gap: 10px; }
  .header-tools .social-links a { width: 20px; height: 20px; }
  .languages { font-size: 10px; gap: 3px; }
  .brand {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
  }
  .menu-toggle {
    display: block;
    border: 0; background: none;
    width: 35px; height: 45px;
    padding: 8px 0; position: relative;
    margin-left: auto; z-index: 200;
  }
  .menu-toggle > span {
    display: block; width: 24px; height: 1px;
    background: var(--ink); margin: 6px auto;
    transition: transform 0.2s;
  }
  .menu-toggle small { font-size: 8px; letter-spacing: 1px; color: var(--ink-mute); }
  .menu-toggle[aria-expanded="true"] > span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  /* main-nav：open 時變右側滑入彈窗（純彈窗，無背景遮罩） */
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    position: fixed;
    top: 50px;
    right: 4.2%;
    width: 248px;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 20px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.18), 0 0 0 1px var(--line);
    border-radius: 12px;
    z-index: 150;
    gap: 2px;
    animation: navPopIn 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  @keyframes navPopIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  .main-nav a {
    font-size: 14px; font-weight: 600;
    padding: 9px 16px;
    border-radius: 100px;
    color: var(--ink-strong);
    text-decoration: none;
    align-self: center;
    white-space: nowrap;
  }
  .main-nav a:last-child { border-bottom: none; }
  .tunnel-node { min-height: auto; padding: 48px 4.2%; }
}
@media (max-width: 760px) {
  :root { --header-h: 50px; }
  .site-header {
    padding: 0 5%;
    flex-wrap: nowrap;
    height: var(--header-h);
    position: relative;
    gap: 0;
  }
  .brand {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
  }
  .brand span { display: none; }
  .brand img { width: auto; height: 32px; }
  .menu-toggle { margin-left: auto; width: 30px; padding: 6px 0; height: 40px; }
  .menu-toggle > span { width: 18px; margin: 5px auto; }
  .header-tools { margin-right: auto; }
  .languages { font-size: 9px; gap: 2px; }
  .header-tools .social-links { gap: 6px; }
  .header-tools .social-links a { width: 18px; height: 18px; }
  .header-tools .social-links svg { width: 14px; height: 14px; }
  .hero { padding: 48px 5% 80px; min-height: calc(100svh - var(--header-h)); background-attachment: scroll, scroll, scroll; }
  .hero-grid { width: 100%; max-width: 100%; }
  .hero-copy { min-width: 0; }
  .hero-title { font-size: clamp(28px, 8.5vw, 48px); letter-spacing: -2px; line-height: 1.1; }
  .hero-sub { font-size: 14px; line-height: 1.9; }
  .footer-info {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand  brand"
      "contact links"
      "social  links";
    gap: 20px;
    padding: 28px 0;
  }
  .footer-col:nth-child(1) { grid-area: brand; }
  .footer-col:nth-child(2) { grid-area: contact; }
  .footer-col:nth-child(3) { grid-area: links; }
  .footer-col:nth-child(4) { grid-area: social; }
  .footer-col:nth-child(4) .footer-social { justify-content: flex-start; }
  .footer-col p { font-size: 12px; line-height: 1.85; }
  .footer-col h3 { margin-bottom: 10px; font-size: 9.5px; }
  .footer-col a { font-size: 13px; padding: 4px 0; }
  .footer-cta { flex-direction: column; align-items: flex-start; padding: 32px 0; gap: 18px; }
  .footer-cta h2 { font-size: clamp(22px, 6vw, 34px); letter-spacing: -1.5px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; padding: 8px 0 20px; font-size: 11px; }
  .contact-form { padding: 28px; }
  .contact-form .row { grid-template-columns: 1fr; }
  .faq-answer { padding-left: 28px; }
  .beliefs-spread { padding: 28px 5% 40px; }
  .beliefs-book {
    border-radius: 14px;
    box-shadow: 0 10px 30px -10px rgba(79,70,229,0.3), 0 40px 60px -30px rgba(4,10,26,0.4);
    background: #060f24 url("img/bg2-2-mobile.webp") center/cover no-repeat !important;
  }
  .beliefs-inner { padding: 10px 0 28px; }
  .beliefs-page { padding: 18px 22px; }
  .beliefs-quote { font-size: clamp(20px, 5.5vw, 30px); margin: 16px 0 20px; letter-spacing: -1px; line-height: 1.35; }
  .book-header { padding: 16px 22px 0; font-size: 9px; letter-spacing: 2px; }
  .principle-row { grid-template-columns: 36px 1fr; gap: 14px; padding: 16px 0; }
  .principle-num { font-size: 18px; padding-top: 2px; }
  .principle-body h3 { font-size: 17px; }
  .principle-body p { font-size: 12.5px; line-height: 1.7; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { justify-content: center; }
}

/* ============================================================
   服務頁主色與 hero 光暈（video pink / web indigo / ads amber / seo mint）
   ============================================================ */
/* 服務頁獨特底色：淺紫灰，跟首頁/關於我們的純白有所區別 */
body[data-page="services"] { background: #F5F3FF; }

.svc-hero { --accent: #a5b4fc; }
.svc-hero .eyebrow { color: var(--accent) !important; font-weight: 700; display: block !important; text-align: left !important; }
.svc-hero .eyebrow::before {
  content: ""; display: inline-block; width: 26px; height: 2px;
  background: var(--accent); margin-right: 10px; vertical-align: middle;
}
.svc-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(560px 280px at 82% 16%, var(--accent) 0%, transparent 70%);
  opacity: .16;
}

/* ============================================================
   重點數字條（.svc-facts）— hero 底下三格（淺色系）
   ============================================================ */
.svc-facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 40px auto; max-width: 1400px;
}
.svc-facts > div { background: var(--bg-surface, #fff); padding: 40px 24px; text-align: center; }
.svc-facts b { display: block; font-family: var(--display); font-size: clamp(24px, 3vw, 34px); color: var(--indigo-deep, #312E81); line-height: 1.1; font-weight: 700; }
.svc-facts span { display: block; margin-top: 6px; font-size: 11px; letter-spacing: 1.5px; color: var(--indigo-deep, #312E81); text-transform: uppercase; font-weight: 600; }

/* ============================================================
   左右對比（.split）— 兩欄卡（淺色系）
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 1000px; margin: 56px auto; }
.split > div { padding: 44px 32px; border: 1px solid var(--line); }
.split > div:first-child { border-radius: 18px 0 0 18px; background: rgba(165,180,252,.08); }
.split > div:last-child { border-radius: 0 18px 18px 0; border-left: 0; background: var(--bg-surface, #fff); }
.split h3 { font-size: 15px; letter-spacing: 2px; margin-bottom: 16px; color: var(--indigo-deep, #312E81); text-transform: uppercase; font-weight: 700; }
.split li { font-size: 13.5px; line-height: 1.9; color: var(--indigo-deep, #312E81); margin-bottom: 6px; }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split > div:first-child { border-radius: 18px 18px 0 0; }
  .split > div:last-child { border-radius: 0 0 18px 18px; border-left: 1px solid var(--line); border-top: 0; }
  .svc-facts { grid-template-columns: 1fr; }
}

/* ============================================================
   打勾清單（.checklist）— 兩欄（淺色系）
   ============================================================ */
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; max-width: 820px; margin: 56px auto; list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 28px; font-size: 13.5px; line-height: 1.8; color: var(--indigo-deep, #312E81); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--indigo-deep, #312E81); font-weight: 700;
}
@media (max-width: 760px) { .checklist { grid-template-columns: 1fr; } }

/* ============================================================
   導航下拉（.sub-menu）
   ============================================================ */
.main-nav .nav-item { position: relative; display: flex; align-items: center; }
.main-nav .nav-item > a { position: relative; }
/* nav-item aria-current：只留淺紫 pill + indigo 文字，不要底線 */
.main-nav .nav-item > a[aria-current],
.main-nav > a[aria-current] {
  color: var(--indigo, #4F46E5) !important;
  background: rgba(79, 70, 229, 0.1);
  padding: 6px 14px;
  border-radius: 100px;
}
.main-nav .nav-item > a[aria-current]::after,
.main-nav > a[aria-current]::after { width: 0; }
/* sub-menu aria-current：只有 indigo 文字，不要 pill */
.sub-menu a[aria-current] { background: transparent; color: var(--indigo, #4F46E5); font-weight: 700; }
.sub-menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 240px; padding: 10px;
  background: #fff; border: 1px solid var(--line, #e5e7eb); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(2,6,23,.12);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s, transform .2s, visibility .2s; z-index: 160;
}
.sub-menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.sub-menu a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--ink, #0f172a); white-space: nowrap; }
.sub-menu a:hover { background: rgba(37,99,235,.07); color: var(--indigo, #4F46E5); }
.sub-menu a[aria-current] { background: rgba(79,70,229,0.1); color: var(--indigo, #4F46E5); font-weight: 700; }
.sub-menu a[aria-current] small { color: var(--indigo, #4F46E5); opacity: .7; }
.sub-menu a small { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 400; color: var(--ink-mute, #94a3b8); }
.nav-item:hover .sub-menu, .nav-item:focus-within .sub-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
@media (max-width: 900px) {
  .main-nav.open .nav-item { display: flex; flex-direction: column; gap: 2px; }
  /* sub-menu：跟頂層完全統一 pill 語言，無縮排、無左邊框、居中 */
  .main-nav.open .sub-menu {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    border: 0; box-shadow: none; background: transparent;
    padding: 2px 0 2px; margin: 0;
    display: flex; flex-direction: column; gap: 2px;
  }
  .main-nav.open .sub-menu::before { display: none; }
  .main-nav.open .sub-menu a {
    font-size: 12px; font-weight: 400;
    padding: 6px 14px;
    color: var(--ink-dim);
    border-radius: 100px;
    align-self: center;
    white-space: nowrap;
  }
  .main-nav.open .sub-menu a small { display: none; }
  /* 移動端 aria-current pill（頂層 + sub-menu） */
  .main-nav.open .nav-item > a[aria-current],
  .main-nav.open > a[aria-current] {
    background: rgba(79, 70, 229, 0.12);
    color: var(--indigo, #4F46E5) !important;
  }
  .main-nav.open .sub-menu a[aria-current] {
    background: rgba(79, 70, 229, 0.12);
    color: var(--indigo, #4F46E5);
    font-weight: 600;
  }
}

/* ============================================================
   服務 Hub 頁面（services.html）— pulse-grid 4 欄
   詳情頁（video/ads/seo/web-design）有 .cols-3/.cols-4 明確指定，不受影響
   ============================================================ */
/* SECTION 1: 無 class 的 section → 4 欄 */
body[data-page="services"] main > section:not([class]):has(.pulse-grid) .pulse-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
/* SECTION 2: .svc-section 裡面的 pulse-grid → 4 欄（詳情頁 pulse-grid 沒被這條命中，因為詳情頁有 .cols-3/.cols-4） */
/* 詳情頁 PRICING pulse-grid 沒 cols class，用預設 3 欄，需要確保 hub 規則不影響它 */
/* 解法：hub SECTION 2 的 pulse-grid 有 4 張卡片，詳情頁 PRICING 只有 3 張 */
/* 不用 has() 卡數量，改讓 hub SECTION 2 維持原本規則，SECTION 1 用 selector */
body[data-page="services"] .pulse-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
body[data-page="services"] .pulse-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
body[data-page="services"] .pulse-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  body[data-page="services"] main > section:not([class]):has(.pulse-grid) .pulse-grid { grid-template-columns: repeat(2, 1fr); }
  body[data-page="services"] .pulse-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  body[data-page="services"] main > section:not([class]) { padding: 48px 5%; }
  .hub-social { padding: 56px 5% !important; }
  .split { margin: 40px auto; }
  .checklist { margin: 40px auto; }
  .evo-timeline { margin: 48px auto 0; }
  .svc-facts { margin: 28px auto; }
  .svc-facts > div { padding: 28px 16px; }
}
@media (max-width: 560px) {
  body[data-page="services"] main > section:not([class]):has(.pulse-grid) .pulse-grid,
  body[data-page="services"] .pulse-grid.cols-2,
  body[data-page="services"] .pulse-grid.cols-3 { grid-template-columns: 1fr; }
}

/* services hub section lead 引言（淺色系，只限服務頁） */
body[data-page="services"] .section-lead { text-align: center; font-size: clamp(16px, 2vw, 20px); color: #4338ca; margin: 28px auto 40px; max-width: 36em; font-style: italic; }
/* 服務頁文字：統一用靛藍色系，跟品牌 indigo 一致 */
body[data-page="services"] .pulse-card p { color: var(--indigo-deep, #312E81); }
body[data-page="services"] .evo-node p { color: var(--indigo-deep, #312E81); }
body[data-page="services"] .section-title p { color: var(--indigo-deep, #312E81); }

/* ============================================================
   服務頁 section header 統一（所有 detail pages 共用）
   seo.html 用 .eyebrow，ads/web-design/video 用 .section-eyebrow → 統一
   ============================================================ */
body[data-page="services"] main > section .section-eyebrow,
body[data-page="services"] main > section .eyebrow {
  display: block;
  text-align: center;
  margin-bottom: 12px;
  color: var(--indigo-deep, #312E81);
}

body[data-page="services"] main > section > div:first-child {
  text-align: center;
}

body[data-page="services"] main > section > div:first-child > h2,
body[data-page="services"] main > section > h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--ink-strong);
  margin: 12px 0 0;
}

/* FAQ section 統一 padding/max-width（detail pages 用 inline 覆蓋，hub 用此） */
body[data-page="services"] main > section:not([class]):has(.faq-list) {
  padding: 72px 4.2% 96px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================================
   服務頁 detail pages 統一 section wrapper + header
   消除 12 個檔案裡重複的 inline style
   ============================================================ */
body[data-page="services"] .svc-section {
  padding: 72px 4.2%;
  max-width: 1400px;
  margin: 0 auto;
}
body[data-page="services"] .svc-section-header {
  text-align: center;
  margin-bottom: 40px;
}
body[data-page="services"] .svc-section-header > .section-eyebrow,
body[data-page="services"] .svc-section-header > .eyebrow {
  display: block;
  text-align: center;
  margin-bottom: 12px;
  color: var(--indigo-deep, #312E81);
}
body[data-page="services"] .svc-section-header > h2,
body[data-page="services"] .svc-section-header > .section-title {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--ink-strong);
  margin: 12px 0 0;
  text-align: center;
}

/* 相關服務 CTA 統一 */
body[data-page="services"] main > section:last-child {
  padding-bottom: 80px;
}
.hub-social { background: var(--bg-deep, #F4F5F7); color: var(--ink-strong, #020617); padding: 80px 4.2%; }
.hub-social-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.hub-social h2 { font-size: clamp(22px, 2.6vw, 32px); font-family: var(--display); font-weight: 700; margin: 0 0 16px; }
.hub-social p { font-size: 14px; line-height: 1.85; color: var(--indigo-deep, #312E81); }
.hub-social .svc-price { font-family: var(--mono); font-size: 16px; margin-top: 20px; color: var(--accent, #a5b4fc); letter-spacing: 1px; }
@media (max-width: 760px) {
  .hub-social-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   服務頁：區塊間距節奏 + 行動版微調
   只作用於 body[data-page="services"]，不影響首頁／關於／FAQ／聯絡頁
   ============================================================ */
/* 間距統一由 .svc-section 的 padding 控制，移除子模組自帶的上下外距 */
body[data-page="services"] .svc-section > .split,
body[data-page="services"] .svc-section > .checklist,
body[data-page="services"] .svc-section > .evo-timeline,
body[data-page="services"] .svc-section > .pulse-grid,
body[data-page="services"] .svc-section > .metrics-wall,
body[data-page="services"] .svc-section > .faq-list { margin-top: 0; margin-bottom: 0; }

body[data-page="services"] .svc-section { padding: 52px 4.2%; }
body[data-page="services"] .svc-section-header { margin-bottom: 28px; }
body[data-page="services"] .svc-hero { padding-bottom: 56px; }
body[data-page="services"] .svc-facts { margin: 24px auto; }
body[data-page="services"] .svc-facts > div { padding: 32px 16px; }
body[data-page="services"] .section-lead { margin: 0 auto 28px; }
body[data-page="services"] main > section:last-child { padding-bottom: 48px; }
body[data-page="services"] .hub-social { padding: 56px 4.2%; }
body[data-page="services"] .hub-social-inner { gap: 32px; }
body[data-page="services"] .split > div { padding: 36px 28px; }
body[data-page="services"] .pulse-card { padding: 26px 22px; }
body[data-page="services"] .metrics-wall { padding: 32px 4.2%; gap: 20px; }

/* 影片頁「AI 代言人」圖文兩欄：改用 class，行動版可折疊 */
body[data-page="services"] .split--feature {
  grid-template-columns: 400px 1fr; gap: 48px; align-items: center;
  padding: 0; background: none; border-radius: 0;
}
body[data-page="services"] .split--feature img { max-width: 100%; height: auto; }

/* 廣告投放頁金句區塊 */
body[data-page="services"] .svc-quote { max-width: 900px; margin: 0 auto; padding: 24px 4.2%; }

@media (max-width: 900px) {
  body[data-page="services"] .svc-section { padding: 36px 5%; }
  body[data-page="services"] .svc-section-header { margin-bottom: 22px; }
  body[data-page="services"] .svc-facts { margin: 16px auto; }
  body[data-page="services"] .svc-facts > div { padding: 20px 10px; }
  body[data-page="services"] .svc-facts b { font-size: clamp(20px, 4vw, 28px); }
  body[data-page="services"] .svc-facts span { font-size: 10px; letter-spacing: 1px; }
  body[data-page="services"] .split > div { padding: 26px 20px; }
  body[data-page="services"] .split--feature { grid-template-columns: 1fr; gap: 24px; }
  body[data-page="services"] .pulse-grid { gap: 14px; }
  body[data-page="services"] .pulse-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  body[data-page="services"] .pulse-card { padding: 22px 18px; }
  body[data-page="services"] .metrics-wall { padding: 24px 5%; gap: 18px; }
  body[data-page="services"] .metric-num { font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -1px; }
  body[data-page="services"] .metric-label { font-size: 10px; letter-spacing: 1px; margin-top: 8px; }
  body[data-page="services"] .hub-social { padding: 36px 5% !important; }
  body[data-page="services"] .hub-social-inner { grid-template-columns: 1fr; gap: 28px; }
  body[data-page="services"] .svc-quote { padding: 18px 5%; }
  body[data-page="services"] .checklist { gap: 10px 20px; }
  body[data-page="services"] .faq-list { gap: 10px; }
}

@media (max-width: 760px) {
  body[data-page="services"] .svc-section { padding: 30px 5%; }
  body[data-page="services"] .svc-section-header { margin-bottom: 18px; }
  /* 數字條維持三格橫排，避免堆成三行放大留白 */
  body[data-page="services"] .svc-facts { grid-template-columns: repeat(3, 1fr); margin: 12px auto; }
  body[data-page="services"] .svc-facts > div { padding: 18px 6px; }
  body[data-page="services"] .svc-facts span { font-size: 9px; letter-spacing: .5px; }
  body[data-page="services"] .split > div { padding: 22px 18px; }
  body[data-page="services"] .pulse-grid.cols-3,
  body[data-page="services"] .pulse-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  body[data-page="services"] .svc-section { padding: 26px 5%; }
  body[data-page="services"] .svc-section-header { margin-bottom: 16px; }
  body[data-page="services"] .svc-section-header > .section-eyebrow { margin-bottom: 8px; }
  body[data-page="services"] main > section:last-child { padding-bottom: 32px; }
  body[data-page="services"] .pulse-grid { gap: 12px; }
  body[data-page="services"] .pulse-grid.cols-2,
  body[data-page="services"] .pulse-grid.cols-3,
  body[data-page="services"] .pulse-grid.cols-4 { grid-template-columns: 1fr; }
  body[data-page="services"] .pulse-card { padding: 20px 16px; }
  body[data-page="services"] .metrics-wall { grid-template-columns: 1fr; gap: 16px; padding: 20px 5%; }
  body[data-page="services"] .metric-num { font-size: 36px; }
  body[data-page="services"] .split > div { padding: 20px 16px; }
  body[data-page="services"] .checklist { gap: 8px; }
  body[data-page="services"] .svc-facts b { font-size: 22px; }
  /* 相關服務＋CTA 按鈕列 */
  body[data-page="services"] .svc-section > div:has(.btn-primary) { gap: 10px; }
  body[data-page="services"] .svc-section > div:has(.btn-primary) > a { padding: 12px 16px; }
  body[data-page="services"] .svc-quote { padding: 12px 5%; }
}

/* ============================================================
   服務頁 hero：底層軌道圖定位統一 + 內容插圖
   ============================================================ */
/* 原本 top 用百分比 → 會隨各頁 hero 高度不同而漂移；
   改為 left/top 歸零 + 以元素自身尺寸計算的 transform，所有服務頁落點一致 */
body[data-page="services"] .svc-hero .svc-hero-orb {
  left: 22%;
  top: 20%;
  right: auto;
  width: min(56%, 640px);
  transform: translate(-95%, -55%);
}
@media (max-width: 1200px) {
  body[data-page="services"] .svc-hero .svc-hero-orb {
    /* 視窗變窄時容器寬縮小，而 translate 的 % 是相對「圖自身寬度」：
       圓心 ≈ left%×容器寬 −(95%−50%)×圖寬，會變負導致藍心跑出左邊界。
       把 left 提到 26%，讓 761–1200 區間藍心保持在左上可見區 */
    left: 30%;
    width: min(52%, 560px);
  }
}
@media (max-width: 760px) {
  body[data-page="services"] .svc-hero .svc-hero-orb {
    left: 16%;
    top: 12%;
    right: auto;
    bottom: auto;
    width: 320px;
    transform: translate(-60%, -60%);
    opacity: 0.5;
  }
}

/* 內容插圖（b1–b7）：白底卡片；深色線條版另用 --dark */
body[data-page="services"] .svc-figure {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 28px auto 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
body[data-page="services"] .svc-figure--dark {
  background: #0b1430;
  border-color: rgba(255, 255, 255, 0.12);
}
body[data-page="services"] .svc-figure-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 820px;
  margin: 28px auto 0;
}
body[data-page="services"] .svc-figure-row .svc-figure { margin: 0; max-width: none; }
@media (max-width: 560px) {
  body[data-page="services"] .svc-figure { margin-top: 20px; padding: 8px; }
  body[data-page="services"] .svc-figure-row { grid-template-columns: 1fr; gap: 12px; }
}

/* ============================================================
   A2/A4：hero 背景圖改為 <img>（可 preload / 有 alt），
   漸層遮罩獨立成 .hero-shade 層；同時移除 fixed 視差造成的重繪
   ============================================================ */
.hero, .svc-hero, .about-hero, .faq-hero, .contact-hero {
  position: relative;
  overflow: hidden;
  background: #060d20 !important;
  background-attachment: scroll !important;
}
.hero-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.hero-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero > .hero-shade { background: linear-gradient(100deg, rgba(4,10,26,.82) 0%, rgba(4,10,26,.35) 50%, rgba(4,10,26,.1) 100%); }
.svc-hero > .hero-shade { background: linear-gradient(100deg, rgba(7,14,32,.94) 0%, rgba(7,14,32,.78) 48%, rgba(7,14,32,.42) 100%), linear-gradient(180deg, rgba(7,14,32,.92) 0%, rgba(7,14,32,.8) 50%, rgba(7,14,32,.6) 100%); }
.about-hero > .hero-shade { background: linear-gradient(97deg, rgba(8,17,38,.9) 0%, rgba(8,17,38,.64) 50%, rgba(8,17,38,.28) 100%); }
.faq-hero > .hero-shade,
.contact-hero > .hero-shade { background: linear-gradient(90deg, rgba(8,17,38,.55) 0%, rgba(8,17,38,.2) 60%, rgba(8,17,38,.08) 100%); }
.hero-grid, .hero-scroll, .svc-hero-inner, .faq-hero-copy,
.contact-hero-copy, .about-hero > .hero-copy { position: relative; z-index: 3 !important; }
.svc-hero-orb, .about-hero > .hero-orbit, .svc-hero::after { z-index: 2 !important; }

/* B3：服務長文卡片（內容來自 data/content*.json） */
body[data-page="services"] .svc-detail-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; max-width: 1100px; margin: 0 auto;
}
body[data-page="services"] .svc-detail {
  padding: 22px 24px; background: #fff;
  border: 1px solid var(--line); border-radius: 16px;
  scroll-margin-top: calc(var(--header-h, 76px) + 24px);
}
body[data-page="services"] .svc-detail:target {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16);
}
body[data-page="services"] .svc-detail h3 {
  font-family: var(--display); font-size: 16px; font-weight: 700;
  color: var(--ink-strong); margin: 0 0 10px;
}
body[data-page="services"] .svc-detail p {
  font-size: 13.5px; line-height: 1.9; margin: 0 0 10px;
  color: var(--indigo-deep, #312E81);
}
body[data-page="services"] .svc-detail ul { margin: 0; padding-left: 18px; }
body[data-page="services"] .svc-detail li {
  font-size: 13px; line-height: 1.8; color: var(--indigo-deep, #312E81);
}
@media (max-width: 760px) {
  body[data-page="services"] .svc-detail-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   修正：.split 右側 <img> 是 grid item，預設 stretch 會被拉到
   與左欄文字等高（橫圖被拉成細長條、內容變形）。改為等比填滿。
   ============================================================ */
.split > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 760px) {
  .split > img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}
@media (min-width: 761px) and (max-width: 1100px) {
  /* 中等寬度時左欄文字換行較多，限制圖片高度避免區塊被撐得過長 */
  .split > img { max-height: 520px; align-self: center; }
}
