/* AI 服務頁。沿用站內鋼藍，版面獨立，不依賴 Elementor 內容樣式。 */
.ai-page {
  --ink: #1a202c;
  --muted: #4a5568;
  --steel: #4682b4;
  --deep: #2b6cb0;
  --line: rgba(70, 130, 180, 0.18);
  --paper: #f4f7fb;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK", "Noto Sans HK", sans-serif;
}

.ai-page img { max-width: 100%; display: block; }
.ai-wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* 透明頁首蓋在深色主圖上，公司名和選單用白字才看得清 */
body.transparent-header .brand-name,
body.transparent-header .brand-name-en,
body.transparent-header .brand-name-zh {
  color: #fff;
}
/* 向上滑、頁首變成白底之後，公司名改回鋼藍，否則白字看不見 */
body.transparent-header .kadence-sticky-header.item-is-stuck .brand-name,
body.transparent-header .kadence-sticky-header.item-is-stuck .brand-name-en,
body.transparent-header .kadence-sticky-header.item-is-stuck .brand-name-zh {
  color: #4682B4 !important;
}
body.transparent-header #masthead,
body.transparent-header .site-header,
body.transparent-header #main-header,
body.transparent-header #mobile-header,
body.transparent-header .site-mobile-header-wrap {
  background: transparent;
}
body.transparent-header .menu-toggle-open,
body.transparent-header .menu-toggle-open .kadence-svg-icon {
  color: #fff;
}

.ai-hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #1a2744;
}
.ai-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ai-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* 兩層遮罩：左邊和底部更深，白字在亮部照片上仍清楚 */
  background:
    linear-gradient(180deg, rgba(12, 24, 48, 0.28) 0%, rgba(12, 24, 48, 0.72) 100%),
    linear-gradient(90deg, rgba(12, 24, 48, 0.55) 0%, rgba(12, 24, 48, 0.22) 100%);
}
.ai-hero-copy {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 72px;
  color: #fff;
}
.ai-kicker {
  margin: 0 0 12px;
  color: #9ec9ef;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.ai-hero h1 {
  margin: 0;
  max-width: 14ch;
  color: #fff;
  font-size: 58px;
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.ai-hero .lead {
  max-width: 38em;
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}
.ai-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.ai-btn-solid { background: #fff; color: var(--deep); }
.ai-btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.55); }

.ai-intro { padding: 72px 0 24px; background: var(--paper); }
.ai-intro h2 { margin: 0 0 12px; font-size: 32px; letter-spacing: -0.02em; }
.ai-intro p { margin: 0; max-width: 46em; color: var(--muted); font-size: 17px; line-height: 1.7; }
.ai-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ai-pills span {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--deep);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}

.ai-services { padding: 28px 0 20px; background: var(--paper); }
.ai-block {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 36px 0 52px;
}
.ai-block:nth-child(even) .ai-photo { order: 2; }
.ai-photo {
  border-radius: 22px;
  overflow: hidden;
  background: #d9e4f0;
  box-shadow: 0 18px 40px rgba(26, 32, 44, 0.08);
}
.ai-photo img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ai-block:hover .ai-photo img { transform: scale(1.04); }
.ai-copy h2 { margin: 0 0 12px; font-size: 34px; letter-spacing: -0.03em; }
.ai-copy .num { margin: 0 0 8px; color: var(--steel); font-weight: 700; letter-spacing: 0.14em; font-size: 13px; }
.ai-copy p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.ai-copy ul { margin: 18px 0 0; padding: 0; list-style: none; }
.ai-copy li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 18px;
  color: var(--ink);
  line-height: 1.5;
}
.ai-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--steel);
}

.ai-steps { padding: 28px 0 80px; background: #fff; }
.ai-steps h2 { margin: 8px 0 22px; font-size: 32px; letter-spacing: -0.02em; }
.ai-step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ai-step {
  padding: 22px 20px 24px;
  border-radius: 18px;
  background: var(--paper);
}
.ai-step strong { display: block; margin-bottom: 8px; color: var(--steel); font-size: 13px; letter-spacing: 0.08em; }
.ai-step h3 { margin: 0 0 8px; font-size: 18px; }
.ai-step p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 15px; }

.ai-cta {
  margin: 0 0 72px;
}
.ai-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 36px 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, #2b6cb0, #4682b4);
  color: #fff;
}
.ai-cta h2 { margin: 0 0 8px; color: #fff; font-size: 30px; letter-spacing: -0.02em; }
.ai-cta p { margin: 0; max-width: 36em; color: rgba(255, 255, 255, 0.9); line-height: 1.6; }
.ai-cta .ai-btn-solid { background: #fff; color: var(--deep); }

@media (max-width: 860px) {
  .ai-hero { min-height: 560px; }
  .ai-hero h1 { font-size: 36px; max-width: 12em; }
  .ai-hero-copy { margin-bottom: 36px; }
  /* 按鈕直排，避開右下角客服氣泡 */
  .ai-actions { flex-direction: column; align-items: flex-start; }
  .ai-block, .ai-block:nth-child(even) .ai-photo { display: block; }
  .ai-photo { margin-bottom: 18px; }
  .ai-photo img { height: 230px; }
  .ai-step-grid { grid-template-columns: 1fr 1fr; }
  .ai-cta-inner { display: block; padding: 28px 22px; }
  .ai-cta .ai-btn { margin-top: 18px; }
}
@media (max-width: 560px) {
  .ai-step-grid { grid-template-columns: 1fr; }
}
