/* ==========================================================================
   KEYO Consulting - 科佑顧問 官網重製版
   深色科技風格 / 玻璃擬態 / 漸層 / 互動動畫
   ========================================================================== */

:root {
  --bg-0: #0a0f2e;
  --bg-1: #0d1440;
  --bg-2: #131c4a;
  --amber: #f9a03c;
  --cyan: #f0399e;   /* 品牌洋紅（沿用 --cyan 變數名以相容既有 inline style 參照） */
  --indigo: #a855f7; /* 品牌紫 */
  --purple: #5a7bf5; /* 品牌藍 */
  --grad-main: linear-gradient(120deg, var(--amber), var(--cyan) 32%, var(--indigo) 64%, var(--purple) 100%);
  --text-1: #e6ecff;
  --text-2: #93a0c0;
  --text-3: #5c6786;
  --line: rgba(147, 160, 192, 0.16);
  --line-strong: rgba(147, 160, 192, 0.28);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-strong: rgba(255, 255, 255, 0.07);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --container: 1200px;
  --nav-h: 84px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: "Inter", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; }
input, textarea, select { font: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- 背景層：格線 + 光暈 blob + 噪點 ---------- */
.bg-fixed {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(168, 85, 247, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 40%, var(--bg-0));
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(147, 160, 192, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 160, 192, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 20%, #000 40%, transparent 90%);
}
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.bg-texture {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.05;
  pointer-events: none;
  filter: grayscale(1) invert(1) brightness(0.32) contrast(1.35);
  background-image: url("../img/keyo_bg2.png");
  background-size: cover;
  background-position: center;
  mix-blend-mode: soft-light;
}
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -2;
  opacity: 0.5;
  pointer-events: none;
}
.blob-1 { width: 46vw; height: 46vw; top: -14vw; right: -10vw; background: radial-gradient(circle, rgba(240, 57, 158, 0.35), transparent 70%); }
.blob-2 { width: 40vw; height: 40vw; bottom: -16vw; left: -12vw; background: radial-gradient(circle, rgba(90, 123, 245, 0.3), transparent 70%); }
.blob-3 { width: 30vw; height: 30vw; top: 40%; left: 30%; background: radial-gradient(circle, rgba(168, 85, 247, 0.22), transparent 70%); }

/* ---------- 滑鼠光暈跟隨（Spotlight） ---------- */
.spotlight {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 30%), rgba(240, 57, 158, 0.09), transparent 45%);
  transition: opacity 0.3s ease;
}
@media (pointer: coarse) { .spotlight { display: none; } }

/* ---------- 自訂游標 ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot { width: 8px; height: 8px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(230, 236, 255, 0.5);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s ease, background 0.25s ease;
}
.cursor-ring.is-active { width: 60px; height: 60px; border-color: var(--cyan); background: rgba(240, 57, 158, 0.08); }
body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button { cursor: none; }
@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ---------- 頂部滾動進度條 ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-main);
  z-index: 1001;
  transition: width 0.1s linear;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-1);
  color: var(--text-1);
  padding: 12px 20px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: height 0.35s var(--ease), background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.site-header.is-scrolled {
  height: 64px;
  background: rgba(10, 15, 46, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img {
  height: 46px;
  width: 46px;
  object-fit: contain;
  padding: 6px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 12px rgba(4, 8, 20, 0.35);
  flex-shrink: 0;
}
.brand-wordmark {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-wordmark .en {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--text-2);
}
.brand-wordmark .zh {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  position: relative;
  padding: 10px 16px;
  font-size: 0.95rem;
  color: var(--text-2);
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%;
  bottom: 4px;
  height: 1.5px;
  background: var(--grad-main);
  transition: left 0.3s var(--ease), right 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] { color: var(--text-1); }
.nav-links a:hover::after, .nav-links a:focus-visible::after, .nav-links a[aria-current="page"]::after { left: 8px; right: 8px; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--glass-bg);
  color: var(--text-1);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  will-change: transform;
}
.btn-primary {
  background: var(--grad-main);
  color: #04101a;
  box-shadow: 0 8px 24px rgba(240, 57, 158, 0.22);
}
.btn-primary:hover { box-shadow: 0 10px 32px rgba(168, 85, 247, 0.35); transform: translateY(-2px); }
.btn-ghost {
  background: var(--glass-bg);
  color: var(--text-1);
  border-color: var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--glass-bg-strong); border-color: rgba(240, 57, 158, 0.5); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- 主體排版共用 ---------- */
main { position: relative; z-index: 1; }
.section { padding: 110px 0; position: relative; }
.section-tight { padding: 70px 0; }
.section-head { max-width: 700px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 6px 16px;
  border: 1px solid rgba(240, 57, 158, 0.35);
  border-radius: 999px;
  background: rgba(240, 57, 158, 0.06);
  margin-bottom: 20px;
}
h1, h2, h3, h4 { line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 16px; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { color: var(--text-2); margin: 0 0 16px; }
.section-head p { font-size: 1.05rem; }
.text-gradient {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* ---------- 玻璃卡片 ---------- */
.card {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(240, 57, 158, 0.35), rgba(255, 255, 255, 0) 40%, rgba(90, 123, 245, 0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.card .card-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card:hover .card-shine { opacity: 1; }
.card:hover { border-color: rgba(240, 57, 158, 0.35); box-shadow: 0 20px 45px rgba(4, 8, 20, 0.5); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(240, 57, 158, 0.18), rgba(168, 85, 247, 0.18));
  border: 1px solid var(--line-strong);
  margin-bottom: 20px;
  font-size: 1.4rem;
}

/* ---------- 滾動進場動畫 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 55% at 12% 18%, rgba(249, 160, 60, 0.22), transparent 62%),
    radial-gradient(ellipse 60% 60% at 88% 8%, rgba(240, 57, 158, 0.24), transparent 65%),
    radial-gradient(ellipse 65% 55% at 60% 95%, rgba(90, 123, 245, 0.22), transparent 68%),
    radial-gradient(ellipse 40% 45% at 30% 60%, rgba(168, 85, 247, 0.16), transparent 65%),
    linear-gradient(180deg, rgba(10, 15, 46, 0.55), rgba(10, 15, 46, 0.88) 65%, var(--bg-0) 100%);
  pointer-events: none;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.85; display: block; }
.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.hero-inner p.lead { font-size: 1.15rem; max-width: 620px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.hero-meta { display: flex; gap: 32px; margin-top: 56px; flex-wrap: wrap; }
.hero-meta div strong { display: block; font-size: 1.6rem; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-meta div span { color: var(--text-3); font-size: 0.85rem; }
.hero-scroll-cue {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  color: var(--text-3);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll-cue .line { width: 1px; height: 36px; background: linear-gradient(var(--cyan), transparent); animation: scrollcue 1.8s ease-in-out infinite; }
@keyframes scrollcue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- 頁面通用 Hero（子頁） ---------- */
.page-hero { padding: calc(var(--nav-h) + 70px) 0 60px; text-align: center; }
.page-hero .eyebrow { margin-left: auto; margin-right: auto; }
.breadcrumb { color: var(--text-3); font-size: 0.85rem; margin-bottom: 18px; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--cyan); }

/* ---------- 統計數字條 ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 44px 0;
}
.stat-item { text-align: center; padding: 28px 16px; border-radius: var(--radius-md); background: var(--glass-bg); border: 1px solid var(--line); }
.stat-num { font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 800; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--text-2); font-size: 0.9rem; margin-top: 6px; }

/* ---------- 流程 Timeline ---------- */
.process-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; }
.process-step { position: relative; padding: 30px 24px 24px; border-radius: var(--radius-md); background: var(--glass-bg); border: 1px solid var(--line); }
.process-step .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad-main); color: #04101a; font-weight: 800; margin-bottom: 16px;
}
.process-connector { display: none; }

/* ---------- Cases ---------- */
.case-card { display: flex; flex-direction: column; gap: 12px; }
.case-tag { display: inline-block; align-self: flex-start; font-size: 0.72rem; padding: 4px 12px; border-radius: 999px; background: rgba(90, 123, 245, 0.15); border: 1px solid rgba(90, 123, 245, 0.35); color: #c9d4ff; margin-bottom: 4px; }
.case-field { margin-top: 8px; }
.case-field .label { color: var(--text-3); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.case-field .value { color: var(--text-1); font-size: 0.92rem; }
.case-note { font-size: 0.78rem; color: var(--text-3); border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 8px; }

/* ---------- FAQ Accordion ---------- */
.accordion { display: flex; flex-direction: column; gap: 14px; max-width: 860px; margin: 0 auto; }
.accordion-item { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--glass-bg); overflow: hidden; }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 26px; background: none; border: none; color: var(--text-1); font-weight: 700; font-size: 1rem; text-align: left; cursor: pointer;
}
.accordion-trigger .icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; transition: transform 0.35s var(--ease), background 0.3s ease; position: relative; }
.accordion-trigger .icon::before, .accordion-trigger .icon::after { content: ""; position: absolute; background: var(--cyan); transition: transform 0.3s ease, opacity 0.3s ease; }
.accordion-trigger .icon::before { width: 12px; height: 1.5px; }
.accordion-trigger .icon::after { width: 1.5px; height: 12px; }
.accordion-item[open] .accordion-trigger .icon { background: rgba(240, 57, 158, 0.12); transform: rotate(180deg); }
.accordion-item[open] .accordion-trigger .icon::after { opacity: 0; }
.accordion-panel { padding: 0 26px 24px; color: var(--text-2); }
.accordion-item summary { list-style: none; }
.accordion-item summary::-webkit-details-marker { display: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.contact-info-card { padding: 36px; }
.contact-illustration {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 92px;
  height: 92px;
  opacity: 0.9;
  pointer-events: none;
}
.contact-info-card h3 { max-width: calc(100% - 100px); }
.contact-info-list { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-list .ci-icon { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: rgba(240, 57, 158, 0.1); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; }
.contact-info-list .ci-label { font-size: 0.78rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-info-list .ci-value { color: var(--text-1); font-weight: 600; }
.map-placeholder { margin-top: 24px; border-radius: var(--radius-md); border: 1px dashed var(--line-strong); padding: 40px 20px; text-align: center; color: var(--text-3); font-size: 0.85rem; }

.form-card { padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 0.85rem; color: var(--text-2); font-weight: 600; }
.form-field label .req { color: var(--cyan); }
.form-field input, .form-field textarea, .form-field select {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-1);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(240, 57, 158, 0.15);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.78rem; color: var(--text-3); margin-top: 10px; }
.form-status {
  margin-top: 16px; padding: 14px 18px; border-radius: 12px;
  background: rgba(240, 57, 158, 0.1); border: 1px solid rgba(240, 57, 158, 0.35);
  color: var(--text-1); font-size: 0.9rem; display: none;
}
.form-status.is-visible { display: block; }

/* ---------- CTA 區 ---------- */
.cta-banner {
  position: relative;
  z-index: 0;
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  background: linear-gradient(135deg, rgba(240, 57, 158, 0.16), rgba(168, 85, 247, 0.16), rgba(90, 123, 245, 0.16));
  border: 1px solid var(--line-strong);
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 80% at 15% 15%, rgba(249, 160, 60, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 80% at 85% 85%, rgba(90, 123, 245, 0.22), transparent 60%),
    linear-gradient(rgba(147, 160, 192, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 160, 192, 0.07) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 42px 42px, 42px 42px;
  opacity: 0.6;
  pointer-events: none;
}
.cta-banner h2 { margin-bottom: 12px; }
.cta-banner .hero-cta { justify-content: center; margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 70px 0 30px; position: relative; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.footer-brand p { max-width: 320px; }
.footer-col h4 { font-size: 0.95rem; color: var(--text-1); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--text-2); font-size: 0.9rem; transition: color 0.25s ease; }
.footer-col a:hover { color: var(--cyan); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { border-color: var(--cyan); color: var(--cyan); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-3); font-size: 0.82rem; }

/* ---------- 待確認標記 ---------- */
.placeholder-tag {
  display: inline-block;
  padding: 1px 8px;
  font-size: 0.75em;
  border-radius: 6px;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.4);
  color: #facc15;
  font-weight: 600;
}

/* ---------- RWD ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }

  .nav-links.mobile-open {
    display: flex;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(10, 15, 46, 0.97);
    backdrop-filter: blur(16px);
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--line);
    gap: 4px;
  }
  .nav-links.mobile-open a { padding: 14px 8px; border-bottom: 1px solid var(--line); }
  .nav-links.mobile-open a::after { display: none; }
}
@media (max-width: 768px) {
  .section { padding: 76px 0; }
  .grid-2, .grid-3, .grid-4, .stats-bar { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-meta { gap: 20px; }
  .cta-banner { padding: 44px 24px; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .brand { gap: 8px; }
  .brand img { height: 38px; width: 38px; padding: 4px; border-radius: 10px; }
  .brand-wordmark { font-size: 1rem; }
  .brand-wordmark .en { font-size: 0.55rem; letter-spacing: 0.22em; }
  h1 { font-size: 2rem; }
  .btn { width: 100%; }
  .hero-cta, .cta-banner .hero-cta { flex-direction: column; }
}

/* ---------- 內文清單（服務頁：適用對象/痛點/做法/成果） ---------- */
.content-list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 20px; }
.content-list li { position: relative; padding-left: 26px; color: var(--text-2); }
.content-list li::before { content: "\203A"; position: absolute; left: 0; top: 0; color: var(--cyan); font-weight: 700; }
.content-list.list-steps { counter-reset: li; gap: 14px; }
.content-list.list-steps li { padding-left: 34px; }
.content-list.list-steps li::before {
  counter-increment: li;
  content: counter(li);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad-main);
  color: #04101a;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 1px;
}
.service-block { border-top: 1px solid var(--line); padding-top: 64px; }
.service-block:first-of-type { border-top: none; }
.service-block + .service-block { margin-top: 64px; }
.service-side-card h3:first-child { margin-top: 0; }

/* ---------- 導覽下拉選單（技術支援 > 後台數據支援） ---------- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item .nav-caret { display: inline-block; margin-left: 2px; font-size: 0.65em; opacity: 0.7; transition: transform 0.3s var(--ease); }
.nav-item:hover .nav-caret, .nav-item:focus-within .nav-caret { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: rgba(11, 16, 32, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  z-index: 20;
}
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 0.9rem; }
.nav-dropdown a:hover, .nav-dropdown a:focus-visible { background: rgba(255, 255, 255, 0.06); color: var(--cyan); }
@media (max-width: 900px) {
  .nav-links.mobile-open .nav-item { flex-direction: column; align-items: stretch; }
  .nav-links.mobile-open .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: none; border: none; box-shadow: none; padding-left: 16px;
  }
}
