/* ═══════════════════════════════════════════════════════════
   中天科技系統有限公司 — 分區層
   ═══════════════════════════════════════════════════════════ */

/* ══════════════ 2. Hero ══════════════ */
.hero{
  position: relative;
  padding: calc(var(--nav-h) + 104px) 0 130px;
  overflow: hidden;
  isolation: isolate;
}
.hero-clouds{
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 620px at 50% -14%, rgba(0, 160, 233, 0.18) 0%, rgba(0, 160, 233, 0) 62%),
    linear-gradient(180deg, #E8F3FE 0%, #F3F9FF 40%, #FFFFFF 76%);
  overflow: hidden;
}
.hero-aurora{
  position: absolute;
  left: 50%; top: -22%;
  width: min(1500px, 130vw);
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(87, 210, 255, 0.28), transparent 70%);
  filter: blur(14px);
  animation: auroraShift 16s var(--ease) infinite alternate;
}
@keyframes auroraShift{
  from{ transform: translateX(-50%) scale(1); opacity: .85; }
  to  { transform: translateX(-46%) scale(1.08); opacity: 1; }
}
.hero-grid{
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(12, 53, 121, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 53, 121, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(78% 54% at 50% 26%, #000 6%, transparent 78%);
  mask-image: radial-gradient(78% 54% at 50% 26%, #000 6%, transparent 78%);
}
.cloud{
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #FFFFFF 0%, rgba(255,255,255,.5) 42%, rgba(255,255,255,0) 72%);
  filter: blur(16px);
  opacity: .9;
  animation: cloudDrift 24s var(--ease) infinite alternate;
}
.cloud--1{ width: 560px; height: 230px; left: -8%; top: 10%; }
.cloud--2{ width: 480px; height: 200px; right: -6%; top: 6%; animation-delay: -6s; }
.cloud--3{ width: 620px; height: 250px; left: 12%; bottom: 4%; animation-delay: -12s; opacity: .7; }
.cloud--4{ width: 420px; height: 180px; right: 8%; bottom: 16%; animation-delay: -18s; opacity: .65; }
@keyframes cloudDrift{
  from{ transform: translate3d(0, 0, 0) scale(1); }
  to  { transform: translate3d(48px, -22px, 0) scale(1.08); }
}

.hero-inner{ position: relative; z-index: 2; text-align: center; }

.hero-badge{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 22px 9px 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--brand);
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--r-pill);
  box-shadow: 0 12px 30px rgba(12, 53, 121, 0.08);
}
.hero-badge b{ color: var(--tech); font-weight: 700; }
.hero-badge-dots{ display: flex; }
.hero-badge-dots i{
  display: block;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(12,53,121,.16);
}
.hero-badge-dots i + i{ margin-left: -8px; }
.hero-badge-dots i:nth-child(1){ background: linear-gradient(135deg, #57D2FF, #00A0E9); }
.hero-badge-dots i:nth-child(2){ background: linear-gradient(135deg, #B2BBFF, #6371F0); }
.hero-badge-dots i:nth-child(3){ background: linear-gradient(135deg, #8DF0CE, #22B489); }
.hero-badge-dots i:nth-child(4){ background: linear-gradient(135deg, #FFD98A, #F0A32E); }
.hero-badge-dots i:nth-child(5){ background: linear-gradient(135deg, #1E4FA3, #0C3579); }

.hero-title{
  margin: 30px auto 0;
  max-width: 1020px;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--brand);
}
.hero-title em{
  font-style: normal;
  background: linear-gradient(100deg, var(--tech) 0%, #2F7BE0 55%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub{
  margin: 26px auto 0;
  max-width: 720px;
  font-size: 18px;
  line-height: 1.85;
  color: var(--ink-3);
}
.hero-cta{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.hero-metrics{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 96px;
}
.hero-metrics li{
  padding: 26px 22px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur-hover) var(--ease), box-shadow var(--dur-hover) var(--ease);
}
.hero-metrics li:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.hero-metrics b{
  display: block;
  font-family: var(--font-num);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--brand);
}
.hero-metrics i{ display: block; margin-top: 6px; font-size: 14px; color: var(--ink-4); }

/* ══════════════ 3. 合作夥伴 ══════════════ */
.partners{ padding: 110px 0 60px; background: #fff; }

/* ══════════════ 4. 核心服務 ══════════════ */
.services{
  position: relative;
  padding: 122px 0 130px;
  background:
    radial-gradient(900px 420px at 88% 4%, rgba(0,160,233,.07), transparent 66%),
    #F8FAFC;
}

/* ══════════════ 5. 痛點與價值（左痛點 / 右四卡展開） ══════════════ */
.problems{ padding: 130px 0; background: #fff; }
.problems-grid{
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 54px;
  align-items: center;
}
/* 雙欄語境下收細標題，避免不必要斷行 */
.problems .sec-title{ font-size: clamp(28px, 3.1vw, 42px); }
.contact .sec-title{ font-size: clamp(28px, 3.1vw, 42px); }

/* ══════════════ 6. 真實案例 ══════════════ */
.cases{
  padding: 128px 0 136px;
  background:
    radial-gradient(1100px 520px at 12% 0%, rgba(0,160,233,.1), transparent 62%),
    linear-gradient(180deg, #FFFFFF 0%, #F2F8FE 46%, #EAF3FD 100%);
}

/* ══════════════ 7. AI 專區（純白，左文右圖） ══════════════ */
.ai{
  position: relative;
  padding: 134px 0;
  background: #FFFFFF;
  overflow: hidden;
  isolation: isolate;
}

/* ══════════════ 8. 開發流程 ══════════════ */
.process{ padding: 130px 0; background: #fff; }

/* ══════════════ 9. 為什麼選擇中天 ══════════════ */
.why{
  position: relative;
  padding: 126px 0 134px;
  background:
    radial-gradient(880px 400px at 10% 6%, rgba(0,160,233,.07), transparent 66%),
    #F8FAFC;
}

/* ══════════════ 10. IT 基礎設施（淺色化） ══════════════ */
.infra{
  position: relative;
  padding: 136px 0;
  background:
    radial-gradient(880px 420px at 90% 6%, rgba(0,160,233,.07), transparent 66%),
    #F1F5F9;
  overflow: hidden;
  isolation: isolate;
}
.infra-bg{
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(12,53,121,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12,53,121,.035) 1px, transparent 1px);
  background-size: 74px 74px;
  -webkit-mask-image: radial-gradient(80% 66% at 50% 40%, #000 10%, transparent 84%);
  mask-image: radial-gradient(80% 66% at 50% 40%, #000 10%, transparent 84%);
  pointer-events: none;
}
.infra .container{ position: relative; z-index: 2; }

/* ══════════════ 11. 免費項目評估 ══════════════ */
.contact{
  padding: 130px 0 140px;
  background:
    radial-gradient(900px 460px at 92% 8%, rgba(0,160,233,.08), transparent 64%),
    #fff;
}
.contact-grid{
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ══════════════ 分區之間的柔和過渡（全站淺色，僅用極淡藍色分隔線） ══════════════ */
.services::before,
.why::before,
.ai::before,
.infra::before{
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(12,53,121,.09), transparent);
}
