/* ================================================================
   ADATA Industrial — Inner Page Styles
   Scope: body.inner-page  (application.html and future inner pages)
   ================================================================ */

/* ── 1. Header: force white state permanently ── */
/* CSS override ensures white appearance even before scroll JS runs */
body.inner-page #site-header {
  background: var(--hdr-grad-white);
  box-shadow: var(--hdr-shadow);
  backdrop-filter: blur(14.3px);
  -webkit-backdrop-filter: blur(14.3px);
}
body.inner-page .hdr-topbar {
  background: var(--hdr-grad-topbar);
  border-bottom-color: transparent;
}
body.inner-page .hdr-topbar-esg span {
  text-shadow: none;
}
body.inner-page .hdr-nav {
  background-image: url('../images/header/bg.png');
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: top right;
}
/* Logo swap: show colored logo, hide glow version */
body.inner-page .hdr-logo-wrap .hdr-logo-transparent { display: none; }
body.inner-page .hdr-logo-wrap .hdr-logo-white       { display: block; }
/* Action icons: show plain version */
body.inner-page .hdr-btn-icon .hdr-icon-glow  { display: none; }
body.inner-page .hdr-btn-icon .hdr-icon-plain { display: block; }
/* Hamburger lines: dark color */
body.inner-page .hdr-ham-svg rect { fill: var(--hdr-text-mid); }
/* Topbar ESG icon: show plain version */
body.inner-page .hdr-topbar-esg-icon .hdr-icon-glow  { display: none; }
body.inner-page .hdr-topbar-esg-icon .hdr-icon-plain { display: block; }
/* Nav links: dark grey */
body.inner-page .hdr-menu-link {
  color: var(--hdr-text-mid);
  text-shadow: none;
}
body.inner-page .hdr-menu-item:hover .hdr-menu-link {
  color: var(--hdr-green);
}
/* Current page nav item highlight */
body.inner-page .hdr-menu-item.hdr--current > .hdr-menu-link {
  color: var(--hdr-green);
}

/* ── 2. Breadcrumb bar ── */
.inner-breadcrumb {
  background: transparent;
  position: relative;
  z-index: 2;
}
.inner-breadcrumb-inner {
  margin: 0 auto;
  padding: 12px var(--hdr-pad-x);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}
.inner-breadcrumb-inner a {
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 0 4px #0015ff, 0 0 6px rgba(0,106,255,0.6);
  transition: opacity 0.2s;
}
.inner-breadcrumb-inner a:hover { color: #ffffff; opacity: 0.75; }
.inner-breadcrumb-sep {
  display: flex;
  align-items: center;
  filter: drop-shadow(0 0 4px #0015ff) drop-shadow(0 0 6px rgba(0,106,255,0.6));
  flex-shrink: 0;
}
.inner-breadcrumb-current {
  color: #ffffff;
  font-weight: 500;
  white-space: nowrap;
  text-shadow: 0 0 4px #0015ff, 0 0 6px rgba(0,106,255,0.6);
}

/* ── 3. Inner page main wrapper ── */
.inner-page-main {
  position: relative;
  overflow: hidden;
  background: #2DF9F9;
  margin-top: var(--hdr-total-h);
}

/* ── 4. Background images (inside .inner-page-main) ── */
/* dot: fixed 隨滾動吸附在 header 底部 */
.app-bg-dot {
  display: block;
  position: fixed;
  top: var(--hdr-total-h);
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

/* bg_top: wrapper 頂部對齊（padding-top 已偏移 header 高度） */
.app-bg-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 1;
}
.app-bg-bottom {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 1;
}

/* ── 5. Hero Banner ── */
.app-hero {
  background: transparent;
  padding: 80px var(--hdr-pad-x) 0;
  text-align: center;
  position: relative;
}
.app-hero-circuit {
  display: none;
}
.app-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.app-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 0 22px rgba(0,73,232,0.2), 0 0 8px #0142ff, 0 0 10px #005fe3;
}
.app-hero-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  color: #ffffff;
  margin: 0 auto;
  text-shadow: rgb(0,73,232) 0px 0px 6px, rgb(1,66,255) 0px 0px 3px, rgb(0,95,227) 0px 0px 2px;
}

/* ── 4. Application Grid ── */
.app-grid-section {
  background: #2DF9F9;
  padding: 72px var(--hdr-pad-x) 88px;
}
.app-grid-inner {
  max-width: 1032px;
  margin: 0 auto;
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Override carousel-specific absolute positioning for static grid */
.app-grid .s2-app-card {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 328 / 344;
  bottom: auto;
  left: auto;
  right: auto;
}
/* Overlay: blue gradient + correct padding */
.app-grid .s2-app-card-overlay {
  align-items: flex-end;
  padding: 72px 20px 24px 20px;
  background: linear-gradient(180deg, rgba(0,65,255,0) 21.682%, rgb(0,65,255) 58.17%) !important;
}
/* Card info: title + sub gap */
.app-grid .s2-app-card-info {
  gap: 4px;
}
/* Title: allow wrap */
.app-grid .s2-app-card-title {
  font-size: 28px;
  font-weight: 600;
  white-space: normal;
  line-height: 1.3;
  overflow: visible;
  text-overflow: unset;
}
.app-grid .s2-app-card-sub {
  white-space: nowrap;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Arrow button: 40px white circle with blue glow */
.app-grid .s2-app-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(0,106,255,0.6);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin-bottom: 12px;
}

/* ── 5. Insights Section ── */
.app-insights-section {
  position: relative;
  padding: 80px 0 120px;
  overflow: hidden;
}
/* Header row: Insights + View all */
.app-insights-header {
  max-width: 1032px;
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.app-insights-title {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 0 6px #0e86fe, 0 0 3px #0015ff, 0 0 10px #006aff;
}
.app-insights-viewall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  filter: drop-shadow(0 0 6px rgba(0,106,255,0.40)) drop-shadow(0 0 2px #0015FF);
  transition: gap 0.2s ease, color 0.2s ease, filter 0.2s ease;
}
.app-insights-viewall svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.app-insights-viewall:hover {
  gap: 10px;
  color: #FF9B00;
  filter: none;
  text-decoration: none;
}
/* Carousel wrapper: nav buttons sit outside 1032px track */
.app-insights-carousel {
  display: flex;
  align-items: center;
  max-width: 1160px; /* 40+24+1032+24+40 */
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.app-insights-track-wrap {
  flex: 1;
  min-width: 0;
  overflow: visible;
}
.app-insights-track .slick-list {
  overflow: visible;
  margin: 0 -12px;
  clip-path: inset(-20px 0px);
}
.app-insights-track .slick-slide {
  padding: 0 12px;
}
.app-insights-track .slick-slide > div {
  display: contents;
}
/* Nav buttons */
.app-insights-nav {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(0,106,255,0.6);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.app-insights-nav:hover { background: #FF9B00; box-shadow: 0px 1px 1px rgba(0,0,0,0.05); }
.app-insights-nav:hover svg path { fill: #fff; }
.app-insights-prev { margin-right: 24px; }
.app-insights-next { margin-left: 24px; }
/* Insight cards */
.app-insights-card {
  width: 100%;
  min-height: 347px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 5px 14px rgba(0,106,255,0.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease;
}
.app-insights-card:hover { box-shadow: 0 0 8px rgba(0,106,255,0.6); text-decoration: none; }
.app-insights-card:hover .app-insights-card-title { color: #FF9B00; }
.app-insights-card-img {
  aspect-ratio: 328 / 184;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.app-insights-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.app-insights-card:hover .app-insights-card-img img { transform: scale(1.1); }
.app-insights-card-body {
  padding: 20px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  background: #ffffff;
}
.app-insights-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: #666666;
  margin: 0;
  height: 60px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.app-insights-card-excerpt {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: #9e9e9e;
  margin: 0;
  height: 47px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ── 6. RWD ── */

/* ── 1024–1279px 窄桌機 ── */
@media (min-width: 1024px) and (max-width: 1279px) {
  .app-bg-dot { left: -70px; width: 110%; }
  .app-hero { padding: 60px 32px 0; }
  .app-hero-title { font-size: 48px; }
  .app-hero-sub { font-size: 20px; }
  .app-grid-section { padding: 60px 32px 80px; }
  .app-grid-inner { max-width: 100%; }
  .app-grid .s2-app-card-title { font-size: 28px; }
  .inner-breadcrumb-inner { padding: 12px 32px; }
  /* Insights: remove section h-padding, shrink nav, track fills flex space */
  .app-insights-section { padding: 80px 0 100px; }
  .app-insights-header { max-width: 100%; padding: 0 32px; }
  .app-insights-carousel { max-width: 100%; padding: 0 32px; }
  .app-insights-nav { display: none; }
  .app-insights-track-wrap { overflow: visible; }
  .app-insights-track .slick-dots {
    position: static;
    display: flex !important;
    justify-content: center;
    gap: 20px;
    padding: 28px 0 0;
    list-style: none;
    margin: 0;
    width: 100%;
    filter: drop-shadow(0px 5px 7px rgba(0,106,255,0.16));
  }
  .app-insights-track .slick-dots li { width: 14px; height: 14px; margin: 0; padding: 0; }
  .app-insights-track .slick-dots li button {
    width: 14px; height: 14px; padding: 0;
    border: 2px solid #fff; border-radius: 42px;
    background: transparent; font-size: 0; line-height: 0;
    cursor: pointer; display: block; transition: background 0.2s ease;
  }
  .app-insights-track .slick-dots li button::before { display: none !important; }
  .app-insights-track .slick-dots li.slick-active button { background: #fff; }
}

/* ── ≤ 1023px 平板 ── */
@media (max-width: 1023px) {
  .app-bg-dot { left: -70px; width: 110%; }
  /* 麵包屑 */
  .inner-breadcrumb-inner { padding: 12px 30px; font-size: 14px; }
  /* Hero */
  .app-hero { padding: 80px 30px 0; }
  .app-hero-title { font-size: 44px; }
  .app-hero-sub { font-size: 20px; }
  /* Grid */
  .app-grid-section { padding: 60px 30px 80px; }
  .app-grid-inner { max-width: 100%; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .app-grid .s2-app-card { width: 100%; height: auto; aspect-ratio: 328 / 344; }
  .app-grid .s2-app-card-title { font-size: 28px; }
  /* Insights: 箭頭隱藏，改用點點點（同首頁 S5） */
  .app-insights-section { padding: 80px 0 100px; }
  .app-insights-header { max-width: 100%; padding: 0 30px; margin-bottom: 36px; }
  .app-insights-title { font-size: 28px; }
  .app-insights-carousel { max-width: 100%; padding: 0 30px; }
  .app-insights-nav { display: none; }
  .app-insights-track-wrap { overflow: visible; }
  .app-insights-track .slick-dots {
    position: static;
    display: flex !important;
    justify-content: center;
    gap: 20px;
    padding: 28px 0 0;
    list-style: none;
    margin: 0;
    width: 100%;
    filter: drop-shadow(0px 5px 7px rgba(0,106,255,0.16));
  }
  .app-insights-track .slick-dots li { width: 14px; height: 14px; margin: 0; padding: 0; }
  .app-insights-track .slick-dots li button {
    width: 14px; height: 14px; padding: 0;
    border: 2px solid #fff; border-radius: 42px;
    background: transparent; font-size: 0; line-height: 0;
    cursor: pointer; display: block; transition: background 0.2s ease;
  }
  .app-insights-track .slick-dots li button::before { display: none !important; }
  .app-insights-track .slick-dots li.slick-active button { background: #fff; }
}

/* ── ≤ 767px 手機 ── */
@media (max-width: 767px) {
  .app-bg-dot { width: 220%; }
  .app-bg-top { width: 170%; transform: translateZ(0); }
  /* 麵包屑 */
  .inner-breadcrumb-inner { padding: 10px 20px; font-size: 13px; }
  /* Hero */
  .app-hero { padding: 60px 20px 0; }
  .app-hero-title { font-size: 32px; }
  .app-hero-sub { font-size: 18px; }
  /* Grid */
  .app-grid-section { padding: 40px 20px 60px; }
  .app-grid { grid-template-columns: 1fr; }
  .app-grid .s2-app-card { width: 100%; height: auto; aspect-ratio: 328 / 344; }
  .app-grid .s2-app-card-title { font-size: 28px; }
  /* Insights: 同平板，dots 繼承，手機 1 slide */
  .app-insights-section { padding: 60px 0 80px; }
  .app-insights-header { max-width: 100%; padding: 0 20px; margin-bottom: 24px; }
  .app-insights-title { font-size: 26px; }
  .app-insights-carousel { max-width: 100%; padding: 0 20px; }
}

/* ================================================================
   APPLICATION PAGE — entry animations (reuses s2-fade-from-bottom
   keyframe defined in index-new.css)
   ================================================================ */

/* Arrow disabled state */
.app-insights-nav.is-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

/* Pre-animation: hidden until IntersectionObserver fires */
.app-hero-title,
.app-hero-sub { opacity: 0; }

.app-grid { opacity: 0; }

.app-insights-header,
.app-insights-carousel { opacity: 0; }

.app-bg-bottom { opacity: 0; }

/* Hero */
.app-hero.app--anim .app-hero-title {
  animation: s2-fade-from-bottom 1.0s ease-out forwards;
}
.app-hero.app--anim .app-hero-sub {
  animation: s2-fade-from-bottom 1.0s ease-out 0.18s forwards;
}

/* Application Grid */
.app-grid-section.app-grid--anim .app-grid {
  animation: s2-fade-from-bottom 1.0s ease-out 0.2s forwards;
}

/* Insights */
.app-insights-section.app-insights--anim .app-insights-header {
  animation: s2-fade-from-bottom 1.0s ease-out forwards;
}
.app-insights-section.app-insights--anim .app-insights-carousel {
  animation: s2-fade-from-bottom 1.0s ease-out 0.22s forwards;
}

/* Bottom-right bg: same entrance as homepage Insight label */
.app-bg-bottom.app-bg-bottom--anim {
  animation: s2-fade-from-bottom 1.1s ease-out 0.1s forwards;
}

/* ================================================================
   SURVEILLANCE INNER PAGE — surv-* section styles
   ================================================================ */

/* ── Surveillance bottom deco (bottom-right of page) ── */
.surv-bg-bottom {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  max-height: 479px;
  height: auto;
  aspect-ratio: 1440 / 479;
  pointer-events: none;
  z-index: 1;
}

/* ── Surveillance bg_img (spans Hero → S3) ── */
.surv-bg-img {
  position: absolute;
  top: 249px;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 3;
}

/* ── S1. Hero Banner ── */
.surv-hero .inner-breadcrumb {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
}
.surv-hero {
  position: relative;
  aspect-ratio: 1440 / 648;
  height: auto;
  display: flex;
  align-items: center;
  padding: 0 var(--hdr-pad-x) 0 14.17%;
  z-index: 2;
}
.surv-hero-bg-img {
  position: absolute;
  right: 0;
  top: 0;
  width: 69.5%; /* 1000/1440 from Figma */
  height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 35%);
  mask-image: linear-gradient(to right, transparent 0%, black 35%);
  z-index: 0;
}
.surv-hero-mask {
  position: absolute;
  top: 1px;
  left: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 20 / 9;
  pointer-events: none;
  z-index: 2;
}
.surv-hero-text {
  position: relative;
  z-index: 4;
  max-width: 416px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.surv-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  text-shadow: 0 0 22px rgba(0,73,232,0.2), 0 0 8px #0142ff, 0 0 10px #005fe3;
  margin: 0;
}
.surv-hero-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  color: #ffffff;
  text-shadow: rgb(0,73,232) 0px 0px 6px, rgb(1,66,255) 0px 0px 3px, rgb(0,95,227) 0px 0px 2px;
  margin: 0;
}

/* ── S2. Intro ── */
.surv-intro {
  background: transparent;
  padding: 30px var(--hdr-pad-x) 80px;
  text-align: center;
  position: relative;
  z-index: 4;
}
.surv-intro-inner {
  max-width: 1032px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}
.surv-intro-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.surv-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
  text-shadow: 0 0 6px #0e86fe, 0 0 3px #0015ff, 0 0 10px #006aff;
  margin: 0;
}
.surv-intro-body {
  display: flex;
  flex-direction: column;
}
.surv-intro-body p {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff;
  text-shadow: 0 0 4px #0015ff, 0 0 6px rgba(0,106,255,0.6);
  text-align: center;
}
.surv-intro-img {
  width: 100%;
}
.surv-intro-img img {
  width: 100%;
  max-width: 800px;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* ── S3. Applicable Surveillance Scenarios ── */
.surv-scenarios {
  padding: 54px 0 80px;
  position: relative;
  z-index: 3;
}
.surv-scenarios-header {
  max-width: 1032px;
  margin: 0 auto 40px;
  text-align: center;
  padding: 0 var(--hdr-pad-x);
}
.surv-scenarios-wrap {
  position: relative;
  /* 左右 44px 對齊首尾距；垂直 20px 讓 box-shadow 不被 overflow:hidden 截切 */
  padding: 20px 44px;
  margin-top: -20px;
  margin-bottom: -20px;
  overflow: hidden;
}
/* Swiper: overflow visible 讓最後一張卡片可半露出右側 */
.surv-scenarios-slider.swiper {
  overflow: visible;
}
/* slide 寬度用 clamp：1440px 時等於 460px，等比縮放，最小 240px */
/* 32vw = 460px @ 1440px；搭配 aspect-ratio 讓高度自動等比 */
.surv-scenarios-slider .swiper-slide {
  width: 460px;
}

.surv-card {
  border-radius: 8px;
  background: linear-gradient(to bottom, #e5fffb 50%, #b4ffed 100%);
  box-shadow: 0 5px 14px 0 rgba(0,106,255,0.16);
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
}
.surv-card-img {
  width: 100%;
  aspect-ratio: 460 / 258;
  overflow: hidden;
  flex-shrink: 0;
}
.surv-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.surv-card-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  /* min-height: 250px; */
  overflow: hidden;
}
.surv-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  color: #0041ff;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.surv-card-list {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #0041ff;
  padding-left: 20px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.surv-card-list:lang(de-DE){
 -webkit-line-clamp: 10;
}
.surv-card-list li {
  margin-bottom: 0;
}
.surv-scenarios-prev,
.surv-scenarios-next {
  position: absolute;
  top: 50%; /* JS positionArrows() が上書きする */
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(0,106,255,0.6);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  flex-shrink: 0;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.surv-scenarios-prev:hover,
.surv-scenarios-next:hover { background: #FF9B00; box-shadow: 0px 1px 1px rgba(0,0,0,0.05); }
.surv-scenarios-prev:hover svg path,
.surv-scenarios-next:hover svg path { fill: #fff; }
.surv-scenarios-prev {
  left: 44px;
}
.surv-scenarios-next {
  right: 44px;
}
.surv-scenarios-prev.is-disabled,
.surv-scenarios-next.is-disabled {
  display: none;
}
.surv-scenarios-pagination { display: none; }

/* ── S4. Key Challenges ── */
.surv-challenges {
  padding: 54px var(--hdr-pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}
.surv-challenges-bg {
  position: absolute;
  top: -122px;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 0;
}
.surv-challenges .surv-section-title {
  position: relative;
  z-index: 1;
}
.surv-challenges-list {
  width: 1000px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
  padding: 0 16px;
  box-sizing: border-box;
}
.surv-challenges-timeline {
  position: absolute;
  left: 63px;
  top: 72px;
  bottom: 48px;
  width: 2px;
  height: auto;
  background: rgba(0,65,255,0.5);
  pointer-events: none;
}
.surv-collapse-item {
  display: flex;
  gap: 24px;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.surv-collapse-item.is-active {
  align-items: flex-start;
}
/* Bullet */
.surv-collapse-bullet {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.surv-collapse-bullet-inner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #0041FF;
  background: #B1FEFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease;
}
.surv-collapse-num {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #0041ff;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease;
}
.surv-collapse-icon {
  display: none;
}
.surv-collapse-bullet--active .surv-collapse-num {
  display: none;
}
.surv-collapse-bullet--active .surv-collapse-icon {
  display: block;
}
.surv-collapse-bullet--active .surv-collapse-bullet-inner {
  background: #FF9B00;
  border: 2px solid #FF9B00;
  box-shadow: 0 5px 14px rgba(0,106,255,0.16);
}
/* Card */
.surv-collapse-card {
  flex: 1;
  min-width: 0;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.4);
  background: linear-gradient(90deg, #b1feff 0%, #86ffff 100%);
  box-shadow: 0 5px 14px rgba(0,106,255,0.16);
  transition: border-color 0.25s ease;
}
.surv-collapse-card--active {
  border: 1px solid rgba(255,255,255,0.4);
  background: linear-gradient(213.88deg, #FFCF7D 6.11%, #FF9B00 71.45%, #FF8305 92.71%);
}
.surv-collapse-header {
  padding: 24px 28px 24px 32px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.surv-collapse-title {
  flex: 1;
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  color: #0041ff;
  margin: 0;
  transition: color 0.25s ease;
}
.surv-collapse-card--active .surv-collapse-title {
  color: #ffffff;
}
/* Hover（非 active 項目） */
.surv-collapse-item:not(.is-active):hover .surv-collapse-bullet-inner {
  border-color: #FF9B00;
}
.surv-collapse-item:not(.is-active):hover .surv-collapse-num {
  color: #FF9B00;
}
.surv-collapse-item:not(.is-active):hover .surv-collapse-title {
  color: #FF9B00;
}
.surv-collapse-item:not(.is-active):hover .surv-arrow-down path {
  fill: #FF9B00;
}
.surv-collapse-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}
.surv-arrow-up { display: none; }
.surv-collapse-card--active .surv-arrow-down { display: none; }
.surv-collapse-card--active .surv-arrow-up { display: block; }
.surv-collapse-divider {
  height: 1px;
  background: rgba(255,255,255,0.5);
  margin: 0;
}
.surv-collapse-body {
  padding: 24px 32px 28px;
}
.surv-collapse-body ul {
  list-style: disc;
  padding-left: 30px;
  margin: 0;
}
.surv-collapse-body li {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff;
  margin-bottom: 0;
}
/* 收合動畫 wrapper — overflow:hidden + max-height transition 避免文字被壓扁 */
.surv-collapse-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

/* ── S5. Products ── */
.surv-products {
  background: #ffffff;
  padding: 80px var(--hdr-pad-x);
  position: relative;
  z-index: 2;
}
.surv-products-inner {
  max-width: 1032px;
  margin: 0 auto;
}
.surv-products-title {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: #1a2050;
  margin: 0 0 48px;
  line-height: 1.3;
  text-align: center;
}
.surv-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.surv-product-card {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.surv-product-card:hover {
  box-shadow: 0 4px 20px rgba(0,65,255,0.15);
  text-decoration: none;
  color: inherit;
}
.surv-product-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f5f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.surv-product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.3s ease;
}
.surv-product-card:hover .surv-product-card-img img { transform: scale(1.05); }
.surv-product-card-body {
  padding: 16px;
  flex: 1;
  border-top: 1px solid #f0f0f0;
}
.surv-product-card-name {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #333333;
  line-height: 1.4;
  margin: 0 0 6px;
}
.surv-product-card-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #9e9e9e;
  line-height: 1.4;
  margin: 0;
}

/* ── S5. Key Technologies ── */
.surv-technologies {
  padding: 54px var(--hdr-pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 0;
}
.surv-technologies-bg {
  position: absolute;
  top: -142px;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 0;
}
.surv-technologies-bg-dot {
  position: absolute;
  top: -142px;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 0;
}
.surv-technologies > *:not(.surv-technologies-bg, .surv-technologies-bg-dot) {
  position: relative;
  z-index: 1;
}
.surv-tech-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 0 6px #0e86fe, 0 0 3px #0015ff, 0 0 10px #006aff;
}
.surv-tech-grid {
  width: 1032px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 60px;
}
.surv-tech-row {
  display: flex;
  gap: 24px;
}
.surv-tech-card {
  flex: 0 0 504px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-decoration: none;
  cursor: pointer;
}
.surv-tech-card:hover { text-decoration: none; }
.surv-tech-card-img {
  aspect-ratio: 504 / 210;
  overflow: hidden;
}
.surv-tech-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.surv-tech-card:hover .surv-tech-card-img img { transform: scale(1.1); }
.surv-tech-card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.surv-tech-card-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.surv-tech-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 0 6px #0e86fe, 0 0 3px #0015ff, 0 0 10px #006aff;
}
.surv-tech-card-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  margin: 0;
  line-height: 1.6;
  text-shadow: 0 0 6px rgba(0,21,255,0.9), 0 0 2px #0015ff, 0 1px 4px rgba(0,21,255,0.25);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.surv-tech-viewall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #FF9B00;
  line-height: 1;
  transition: gap 0.25s ease;
}
.surv-tech-viewall svg {
  flex-shrink: 0;
}
.surv-tech-card:hover .surv-tech-viewall {
  gap: 10px;
}

/* ── S5. Technology Modals ── */
.surv-tech-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9900;
  background: rgba(234, 255, 255, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.surv-tech-modal-backdrop.is-open {
  display: flex;
}
.surv-tech-modal-container {
  position: relative;
  background: #2DF9F9;
  max-width: 1160px;
  width: 100%;
  padding: 96px 80px;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.surv-tech-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 1;
}
.surv-tech-modal-close:hover { opacity: 0.7; }
.surv-tech-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  flex: 1;
  width: 912px;
  max-width: 100%;
  margin: 0 auto;
}
.surv-tech-modal-icon {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}
.surv-tech-modal-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  display: block;
}
.surv-tech-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.surv-tech-modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #0041FF;
  text-align: center;
  margin: 0;
  line-height: 1.3;
}
.surv-tech-modal-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #0041FF;
  line-height: 1.5;
}
.surv-tech-modal-desc p {
  margin: 0 0 1em;
}
.surv-tech-modal-desc p:last-child {
  margin-bottom: 0;
}

/* ── S7. Video Section ── */
.surv-video-section {
  position: relative;
  padding: 80px 0;
  z-index: 2;
}
.surv-video-bg {
  position: absolute;
  top: -54px;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 0;
}
.surv-video-section > *:not(.surv-video-bg) {
  position: relative;
  z-index: 1;
}
.surv-video-container {
  max-width: 1032px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.surv-video-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px 0;
  width: 100%;
  text-align: center;
}
.surv-video-title {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 0 6px #0e86fe, 0 0 3px #0015ff, 0 0 10px #006aff;
}
.surv-video-desc p {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 0 4px #0015ff, 0 0 6px rgba(0,106,255,0.6);
}
/* Thumbnail button */
.surv-video-thumb {
  position: relative;
  display: block;
  width: 856px;
  max-width: 100%;
  aspect-ratio: 105 / 59;
  border-radius: 16px;
  border: 3px solid #fff;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 0;
}
.surv-video-thumb > img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 105/59;
}
/* Play button overlay */
.surv-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.surv-video-play img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Video Modal */
.surv-video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9950;
  background: rgba(234, 255, 255, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
}
.surv-video-modal.is-open { display: flex; }
.surv-video-modal-close {
  position: absolute;
  top: 29px;
  right: 28px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  line-height: 1;
}
.surv-video-modal-close:hover { opacity: 0.7; }
.surv-video-modal-wrap {
  width: 1072px;
  max-width: calc(100vw - 40px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}
.surv-video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── S6. Recommended Products ── */
.surv-rec-section {
  position: relative;
  padding: 90px 0 100px;
  z-index: 2;
}
.surv-rec-header {
  max-width: 1032px;
  margin: 0 auto 44px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.surv-rec-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 0 6px #0e86fe, 0 0 3px #0015ff, 0 0 10px #006aff;
}
.surv-rec-viewall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  filter: drop-shadow(0 0 6px rgba(0,106,255,0.4)) drop-shadow(0 0 2px #0015ff);
  transition: gap 0.2s ease, color 0.2s ease, filter 0.2s ease;
}
.surv-rec-viewall svg { width: 20px; height: 20px; flex-shrink: 0; }
.surv-rec-viewall:hover { gap: 10px; color: #FF9B00; filter: none; text-decoration: none; }
/* Carousel wrapper: nav buttons sit outside 1032px track */
/* 40(btn) + 40(gap) + 1032(track) + 40(gap) + 40(btn) = 1192 */
.surv-rec-carousel {
  display: flex;
  align-items: center;
  max-width: 1192px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.surv-rec-track-wrap {
  flex: 1;
  min-width: 0;
  overflow: visible;
}
.surv-rec-track .slick-track {
  display: flex;
  align-items: center;
}
.surv-rec-track .slick-list {
  overflow: visible;
  clip-path: inset(-100px -5px);
}
.surv-rec-track .slick-slide { padding: 0 12px; position: relative; z-index: 1; }
.surv-rec-track .slick-slide:hover { z-index: 10; }
.surv-rec-track .slick-slide > div { display: block; }
/* Nav buttons */
.surv-rec-nav {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(0,106,255,0.6);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.surv-rec-nav:hover { background: #FF9B00; box-shadow: 0px 1px 1px rgba(0,0,0,0.05); }
.surv-rec-nav:hover svg path { fill: #fff; }
.surv-rec-nav.is-disabled { opacity: 0.5; cursor: default; }
.surv-rec-prev { margin-right: 40px; }
.surv-rec-next { margin-left: 40px; }
/* Product cards */
.surv-rec-card {
  position: relative;
  width: 100%;
  aspect-ratio: 240 / 315;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(180deg, #f5fffe 0%, #ebfffe 82.413%);
  box-shadow: 0px 5px 14px 0px rgba(0,106,255,0.16);
  display: block;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  transform-origin: center center;
  will-change: transform;
}
.surv-rec-card:hover {
  transform: scale(1.1);
  background: linear-gradient(56.69deg, #E8FFFF 13.12%, #CEFFFE 39.28%, #2DF9F9 96.87%);
  box-shadow: 0px 0px 5px 0px #fff, 0px 0px 10px 2px #fff;
  z-index: 10;
}
.surv-rec-card-pattern {
  position: absolute;
  inset: 0;
  background: url('../images/product/Card_default_bg_pattern.png') center/cover no-repeat;
  pointer-events: none;
  transition: background 0.35s ease;
}
.surv-rec-card:hover .surv-rec-card-pattern {
  background: url('../images/product/Card_hover_bg_pattern.png') center/cover no-repeat;
}
.surv-rec-card-img {
  position: absolute;
  top: 4.95%;       /* 15.6 / 315 */
  left: 50%;
  transform: translateX(-50%);
  width: 83.33%;    /* 200 / 240 */
  aspect-ratio: 1;
}
.surv-rec-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.surv-rec-card-info {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;   /* 84 / 315 */
  background: #00C3FF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 7px;
  text-align: center;
}
.surv-rec-card-name {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.5;
  margin: 0;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.surv-rec-card-spec {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.5;
  margin: 0;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.surv-rec-card-tag {
  position: absolute;
  top: 0;
  right: 0;
  width: auto;
  height: 30px;
  padding: 0 10px;
  background: #FF9B00;
  border-radius: 0 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.5;
  z-index: 1;
}

/* ── S8. Insights + Successful Case ── */
.surv-s8-section {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  background-image: url('../images/page/s8/bg.png');
  background-blend-mode: hard-light, normal;
  background-attachment: fixed;
  background-size: auto;
  background-position: top left;
  background-repeat: no-repeat;
}

.edm-bg-section {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  background: #2df9f9;
}

.surv-s8-fade-top,
.surv-s8-fade-bot {
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
  z-index: 1;
}
.surv-s8-fade-top {
  top: 0;
  background: linear-gradient(
    0deg, rgba(45, 249, 249, 0) 0%, #2DF9F9 60%);
}
.surv-s8-fade-bot {
  bottom: 0;
  background: linear-gradient(
    180deg, rgba(45, 249, 249, 0) 0%, #2DF9F9 60%);
}

.surv-s8-sub {
  position: relative;
  z-index: 2;
  margin-bottom: 64px;
}
/* surv-s8-sub 內的 carousel 取消 app 預設的 opacity:0，由父層 surv-s8-sub 動畫控制 */
.surv-s8-sub .app-insights-header,
.surv-s8-sub .app-insights-carousel {
  opacity: 1;
}
.surv-cases-section {
  position: relative;
  z-index: 2;
}
/* ── Successful Case 獨立 carousel ── */
.surv-cases-carousel {
  display: flex;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.surv-cases-track-wrap {
  flex: 1;
  min-width: 0;
  overflow: visible;
}
.surv-cases-nav {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(0,106,255,0.6);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.surv-cases-nav:hover { background: #FF9B00; box-shadow: 0px 1px 1px rgba(0,0,0,0.05); }
.surv-cases-nav:hover svg path { fill: #fff; }
.surv-cases-nav.is-disabled { opacity: 0.5; pointer-events: none; cursor: default; }
.surv-cases-prev { margin-right: 24px; }
.surv-cases-next { margin-left: 24px; }
.surv-cases-header {
  max-width: 1032px;
  margin: 0 auto 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
/* surv-cases-cards slick overrides */
.surv-cases-cards .slick-track { margin-left: 0; margin-right: 0; }
.surv-cases-cards .slick-list {
  overflow: visible;
  margin: 0 -12px;
  clip-path: inset(-20px 0px);
}
.surv-cases-cards .slick-slide { padding: 0 12px; }
.surv-cases-cards .slick-slide > div { display: contents; }
.surv-cases-title {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 0 6px #0e86fe, 0 0 3px #0015ff, 0 0 10px #006aff;
}
.surv-cases-viewall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  filter: drop-shadow(0 0 6px rgba(0,106,255,0.40)) drop-shadow(0 0 2px #0015FF);
  transition: gap 0.2s ease, color 0.2s ease, filter 0.2s ease;
}
.surv-cases-viewall svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.2s ease; }
.surv-cases-viewall:hover { gap: 10px; color: #FF9B00; filter: none; text-decoration: none; }
.surv-cases-cards {
  /* slick 接管，不設 flex/gap */
}
.surv-case-card {
  width: 100%;
  display: flex !important;
  flex-direction: column;
}

/* ── S9. CTA ── */
.surv-s9-section {
  position: relative;
  z-index: 2;
  min-height: 479px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.surv-s9-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 1032px;
  width: 100%;
  padding: 0 24px;
}
.surv-s9-title {
  font-family: 'Outfit', sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 0 6px #0e86fe, 0 0 3px #0015ff, 0 0 10px #006aff;
  margin: 0;
}
/* surv-s9-btn → 共用 .banner-hero-btn (index-new.css) */

/* ================================================================
   SURVEILLANCE PAGE — entry animations
   ================================================================ */

/* Pre-animation: hidden until IntersectionObserver fires */
.surv-intro-content,
.surv-intro-img { opacity: 0; }

.surv-scenarios .surv-section-title,
.surv-scenarios-wrap { opacity: 0; }

.surv-challenges .surv-section-title,
.surv-challenges-list { opacity: 0; }

.surv-tech-heading,
.surv-tech-grid { opacity: 0; }

.surv-rec-header,
.surv-rec-carousel { opacity: 0; }

.surv-video-container { opacity: 0; }

.surv-s8-sub,
.surv-cases-section { opacity: 0; }

.surv-s9-content { opacity: 0; }

/* S2 Intro */
.surv-intro.surv-intro--anim .surv-intro-content {
  animation: s2-fade-from-bottom 1.0s ease-out forwards;
}
.surv-intro.surv-intro--anim .surv-intro-img {
  animation: s2-fade-from-bottom 1.0s ease-out 0.2s forwards;
}

/* S3 Scenarios */
.surv-scenarios.surv-scenarios--anim .surv-section-title {
  animation: s2-fade-from-bottom 1.0s ease-out forwards;
}
.surv-scenarios.surv-scenarios--anim .surv-scenarios-wrap {
  animation: s2-fade-from-bottom 1.0s ease-out 0.2s forwards;
}

/* S4 Challenges */
.surv-challenges.surv-challenges--anim .surv-section-title {
  animation: s2-fade-from-bottom 1.0s ease-out forwards;
}
.surv-challenges.surv-challenges--anim .surv-challenges-list {
  animation: s2-fade-from-bottom 1.0s ease-out 0.2s forwards;
}

/* S5 Technologies */
.surv-technologies.surv-technologies--anim .surv-tech-heading {
  animation: s2-fade-from-bottom 1.0s ease-out forwards;
}
.surv-technologies.surv-technologies--anim .surv-tech-grid {
  animation: s2-fade-from-bottom 1.0s ease-out 0.2s forwards;
}

/* S6 Recommended Products */
.surv-rec-section.surv-rec--anim .surv-rec-header {
  animation: s2-fade-from-bottom 1.0s ease-out forwards;
}
.surv-rec-section.surv-rec--anim .surv-rec-carousel {
  animation: s2-fade-from-bottom 1.0s ease-out 0.2s forwards;
}

/* S7 Video */
.surv-video-section.surv-video--anim .surv-video-container {
  animation: s2-fade-from-bottom 1.0s ease-out forwards;
}

/* S8 Insights + Cases */
.surv-s8-section.surv-s8--anim .surv-s8-sub,
.edm-bg-section.surv-s8--anim .surv-s8-sub {
  animation: s2-fade-from-bottom 1.0s ease-out forwards;
}
.surv-s8-section.surv-s8--anim .surv-cases-section {
  animation: s2-fade-from-bottom 1.0s ease-out 0.22s forwards;
}

/* S9 CTA */
.surv-s9-section.surv-s9--anim .surv-s9-content {
  animation: s2-fade-from-bottom 1.0s ease-out forwards;
}

@media (min-width: 1600px) {
  .surv-technologies-bg{
    top: -162px;
    left: 0;
    width: 100%;
    height: 140%;
  }
  .surv-technologies-bg-dot{
    opacity: 0.6;
    top: -162px;
  }
}

/* ── Surveillance RWD: 1024–1279px ── */
@media (min-width: 1024px) and (max-width: 1279px) {
  .surv-hero { padding: 0 32px 0 120px; height: auto; }
  .surv-hero-title { font-size: 44px; }
  .surv-hero-sub { font-size: 20px; }
  .surv-intro, .surv-highlight,
  .surv-products { padding-left: 32px; padding-right: 32px; }
  .surv-technologies { padding-left: 32px; padding-right: 32px; }
  .surv-s8-section .app-insights-header,
  .surv-s8-section .app-insights-carousel,
  .edm-bg-section .app-insights-header,
  .edm-bg-section .app-insights-carousel { padding-left: 32px; padding-right: 32px; max-width: 100%; }
  .surv-cases-header { max-width: 100%; padding: 0 32px; }
  .surv-cases-carousel { max-width: 100%; padding: 0 32px; }
  .surv-cases-nav { display: none; }
  .surv-cases-track-wrap { overflow: visible; }
  .surv-cases-cards { overflow: visible; padding-bottom: 40px; }
  .surv-cases-cards .slick-dots {
    position: static;
    display: flex !important;
    justify-content: center;
    gap: 20px;
    padding: 28px 0 0;
    list-style: none;
    margin: 0;
    width: 100%;
    filter: drop-shadow(0px 5px 7px rgba(0,106,255,0.16));
  }
  .surv-cases-cards .slick-dots li { width: 14px; height: 14px; margin: 0; padding: 0; }
  .surv-cases-cards .slick-dots li button {
    width: 14px; height: 14px; padding: 0;
    border: 2px solid #fff; border-radius: 42px;
    background: transparent; font-size: 0; line-height: 0;
    cursor: pointer; display: block; transition: background 0.2s ease;
  }
  .surv-cases-cards .slick-dots li button::before { display: none !important; }
  .surv-cases-cards .slick-dots li.slick-active button { background: #fff; }
  .surv-section-title { font-size: 36px; }
  .surv-scenarios-wrap { padding: 20px 32px; margin-top: -20px; margin-bottom: -20px; }
  .surv-scenarios-header { padding: 0 32px; }
  /* Key Challenges */
  .surv-challenges-list { padding: 0; }
  .surv-challenges-timeline { left: 48px; }
  .surv-products-grid { grid-template-columns: repeat(3, 1fr); }
  .surv-tech-card { flex: 1 1 0; min-width: 0; }
  .surv-technologies-bg { top: -80px; width: 130%; }
  .surv-technologies-bg-dot { top: -130px; left: -120px; width: 150%; }
  .surv-s9-title { font-size: 36px; }
  /* Recommended Products carousel */
  .surv-rec-header { max-width: 100%; padding: 0 32px; }
  .surv-rec-carousel { max-width: 100%; padding: 0 32px; }
  .surv-rec-prev { margin-right: 0; }
  .surv-rec-next { margin-left: 0; }
  .surv-rec-track .slick-list { clip-path: inset(-100px 0); }
}

/* ── Surveillance RWD: ≤ 1023px ── */
@media (max-width: 1023px) {
  .surv-scenarios-slider .swiper-slide { width: 56vw; }
  .surv-bg-img { top: 190px; width: 152%; }
  .surv-hero { padding: 0 30px 0 60px; height: auto; }
  .surv-hero-text { max-width: 55%; }
  .surv-hero-title { font-size: 40px; }
  .surv-hero-sub { font-size: 18px; }
  .surv-intro, .surv-highlight,
  .surv-products { padding-left: 30px; padding-right: 30px; }
  .surv-s8-section,
  .edm-bg-section { padding: 48px 0 0; }
  .surv-s8-section .app-insights-header,
  .surv-s8-section .app-insights-carousel,
  .edm-bg-section .app-insights-header,
  .edm-bg-section .app-insights-carousel { padding-left: 30px; padding-right: 30px; max-width: 100%; }
  .surv-cases-header { max-width: 100%; padding: 0 30px; }
  .surv-cases-carousel { max-width: 100%; padding: 0 30px; }
  .surv-cases-nav { display: none; }
  .surv-technologies { padding-left: 30px; padding-right: 30px; }
  .surv-intro { padding-top: 20px; padding-bottom: 48px; }
  .surv-intro-inner { gap: 32px; }
  .surv-section-title { font-size: 28px; }
  .surv-scenarios{padding:48px 0;}
  .surv-scenarios-wrap { padding: 20px 30px; margin-top: -20px; margin-bottom: -20px; }
  .surv-scenarios-header { padding: 0 30px; }
  .surv-products { padding-top: 60px; padding-bottom: 60px; }
  .surv-products-grid { grid-template-columns: repeat(2, 1fr); }
  .surv-technologies { padding-top: 48px; padding-bottom: 48px; gap: 36px; }
  .surv-tech-heading { font-size: 28px; }
  .surv-tech-card { flex: 1 1 0; min-width: 0; }
  .surv-technologies-bg { top: -60px; width: 150%; }
  .surv-technologies-bg-dot { top: -130px; left: -120px; width: 150%; }
  .surv-tech-card-title { font-size: 20px; line-height: 1.5; }
  .surv-tech-card-desc { padding-left: 8px; margin-left: -8px; }
  .surv-video-section { padding: 48px 0; }
  .surv-video-container { padding-left: 30px; padding-right: 30px; }
  .surv-video-title { font-size: 28px; }
  .surv-intro-body p { font-size: 16px; line-height: 1.5; }
  .surv-video-desc p { font-size: 16px; line-height: 1.5; }
  .surv-video-thumb { height: auto; }
  .surv-video-bg { width: 150%; top: 0; }
  .surv-video-text { padding-top: 0; }
  .surv-rec-section { padding: 48px 0; }
  .surv-rec-heading { font-size: 28px; }
  .surv-rec-header { max-width: 100%; padding: 0 30px; }
  .surv-rec-carousel { max-width: 100%; padding: 0 30px; }
  .surv-rec-prev { margin-right: 0; }
  .surv-rec-next { margin-left: 0; }
  .surv-rec-track .slick-list { clip-path: inset(-100px 0); }
  /* Key Challenges */
  .surv-challenges { padding-left: 30px; padding-right: 30px; }
  .surv-challenges-bg { top: -100px; width: 150%; }
  .surv-challenges-list { padding: 0; }
  .surv-challenges-timeline { top: 54px; left: 32px; }
  .surv-collapse-item { gap: 16px; }
  .surv-collapse-bullet { width: 64px; height: 64px; }
  .surv-collapse-bullet-inner { width: 54px; height: 54px; }
  .surv-collapse-num { font-size: 18px; }
  .surv-collapse-icon { width: 28px !important; height: 28px !important; }
  .surv-collapse-header { padding: 16px 20px 16px 24px; }
  .surv-collapse-title { font-size: 20px; }
  .surv-collapse-body { padding: 16px 24px 20px; }
  .surv-collapse-body li { font-size: 18px; }
  .surv-highlight-title { font-size: 26px; }
  /* Successful Case — slick carousel (≤1023px) */
  .surv-cases-title { font-size: 28px; }
  .surv-cases-cards { overflow: visible; }
  .surv-cases-cards .slick-dots {
    position: static;
    display: flex !important;
    justify-content: center;
    gap: 20px;
    padding: 28px 0 0;
    list-style: none;
    margin: 0;
    width: 100%;
    filter: drop-shadow(0px 5px 7px rgba(0,106,255,0.16));
  }
  .surv-cases-cards .slick-dots li { width: 14px; height: 14px; margin: 0; padding: 0; }
  .surv-cases-cards .slick-dots li button {
    width: 14px; height: 14px; padding: 0;
    border: 2px solid #fff; border-radius: 42px;
    background: transparent; font-size: 0; line-height: 0;
    cursor: pointer; display: block; transition: background 0.2s ease;
  }
  .surv-cases-cards .slick-dots li button::before { display: none !important; }
  .surv-cases-cards .slick-dots li.slick-active button { background: #fff; }
  .surv-cases-cards .slick-list { margin: 0 -12px; }
  .surv-cases-cards .slick-slide { padding: 0 12px; }
  .surv-s9-title { font-size: 28px; }
  .surv-s9-section { min-height: 0; padding: 60px 0; }
  .surv-hero-bg-img { width: 80%; }
  .surv-hero-mask { width: 100%; height: 120%; }
}

/* ── Surveillance RWD: ≤ 767px ── */
@media (max-width: 767px) {
  .surv-scenarios-slider .swiper-slide { width: 100%; }
  /* S1 Hero — 直式：大標上，圖下 */
  .surv-hero {
    aspect-ratio: 1 / 0.85;
    height: auto;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 20px 0;
  }
  .surv-hero-text { max-width: 100%; padding-top: 0; }
  .surv-hero-title { font-size: 32px; }
  .surv-hero-sub { font-size: 16px; }
  .surv-hero-bg-img {
    top: 0;
    left: -100px;
    right: 0;
    width: 170%;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .surv-hero-mask {
    width: 100%;
    height: 130%;
    top: 0;
    bottom: 0;
    aspect-ratio: 1;
  }
  .surv-intro, .surv-highlight,
  .surv-products { padding-left: 20px; padding-right: 20px; }
  .surv-s8-section .app-insights-header,
  .surv-s8-section .app-insights-carousel,
  .edm-bg-section .app-insights-header,
  .edm-bg-section .app-insights-carousel { padding-left: 20px; padding-right: 20px; max-width: 100%; margin-bottom: 32px; }
  .surv-cases-header { max-width: 100%; padding: 0 20px; margin-bottom: 32px; }
  .surv-cases-carousel { max-width: 100%; padding: 0 20px; }
  .surv-technologies { padding-left: 20px; padding-right: 20px; padding-top: 40px; padding-bottom: 40px; gap: 32px; }
  .surv-intro { padding-top: 48px; padding-bottom: 48px; }
  .surv-intro-inner { gap: 32px; }
  .surv-section-title { font-size: 26px; text-align: center;}
  .surv-scenarios{padding:48px 0;}
  .surv-scenarios-wrap { padding: 20px 20px; margin-top: -20px; margin-bottom: -20px; }
  .surv-scenarios-header { padding: 0 20px; margin-bottom: 32px;}
  .surv-scenarios-prev,
  .surv-scenarios-next { display: none; }
  .surv-scenarios-pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 28px 0 0;
    width: 100%;
  }
  .surv-scenarios-pagination .swiper-pagination-bullet {
    width: 14px; height: 14px;
    border: 2px solid #fff; border-radius: 50%;
    background: transparent; opacity: 1;
    transition: background 0.2s ease;
  }
  .surv-scenarios-pagination .swiper-pagination-bullet-active {
    background: #fff;
  }
  .surv-products { padding-top: 48px; padding-bottom: 48px; }
  .surv-products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .surv-technologies-bg { top: -100px; width: 370%; }
  .surv-technologies-bg-dot { top: -70px; left: -360px; width: 200%; }
  .surv-tech-row { flex-direction: column; gap:48px; }
  .surv-tech-card { flex: none; width: 100%; }
  .surv-tech-heading { font-size: 26px; }
  .surv-tech-card-title { font-size: 20px; line-height: 1.5; }
  .surv-tech-grid { gap: 48px; }
  .surv-video-section { padding: 48px 0; }
  .surv-video-container { padding-left: 20px; padding-right: 20px; }
  .surv-video-title { font-size: 26px; }
  .surv-intro-body p { font-size: 16px; line-height: 1.5; }
  .surv-video-desc p { font-size: 16px; line-height: 1.5; }
  .surv-video-thumb { height: auto; border-radius: 10px; }
  .surv-video-play { width: 80px; height: 80px; }
  .surv-video-play svg { width: 26px; height: 30px; }
  .surv-video-bg { top: 56px; width: 210%; }
  .surv-rec-section { padding: 48px 0 60px; }
  .surv-rec-heading { font-size: 26px; }
  .surv-rec-header { padding: 0 20px; margin-bottom: 32px; }
  .surv-rec-carousel { padding: 0 8px; }
  /* carousel — 2 cards, arrows hidden, dots */
  .surv-rec-prev, .surv-rec-next { display: none; }
  .surv-rec-track .slick-list { clip-path: inset(-100px 0); }
  .surv-rec-track .slick-dots {
    position: static;
    display: flex !important;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 28px 0 0;
    margin: 0;
    width: 100%;
  }
  .surv-rec-track .slick-dots li { width: 14px; height: 14px; margin: 0; padding: 0; }
  .surv-rec-track .slick-dots li button {
    width: 14px; height: 14px; padding: 0;
    border: 2px solid #fff; border-radius: 42px;
    background: transparent; font-size: 0; line-height: 0;
    cursor: pointer; display: block; transition: background 0.2s ease;
  }
  .surv-rec-track .slick-dots li button::before { display: none !important; }
  .surv-rec-track .slick-dots li.slick-active button { background: #fff; }
  .surv-rec-card-name { font-size: 18px; }
  .surv-rec-card-spec { font-size: 14px; }
  /* disable hover scale on touch */
  .surv-rec-card:hover {
    transform: none;
    background: linear-gradient(180deg, #f5fffe 0%, #ebfffe 82.413%);
    box-shadow: 0px 5px 14px 0px rgba(0,106,255,0.16);
    z-index: auto;
  }
  .surv-rec-card:hover .surv-rec-card-pattern {
    background: url('../images/product/Card_default_bg_pattern.png') center/cover no-repeat;
  }
  .surv-highlight-title { font-size: 22px; }
  .surv-highlight-text { font-size: 16px; }
  .surv-bg-img { top: 280px; width: 222%; }
  /* Key Challenges — mobile */
  .surv-challenges-bg { top: -80px; left: -70px; width: 200%; }
  .surv-challenges { padding-left: 20px; padding-right: 20px; gap: 32px; }
  .surv-challenges-list { padding: 0; }
  .surv-challenges-timeline { left: 26px; top: 40px; }
  .surv-collapse-item { gap: 8px; }
  .surv-collapse-bullet { width: 52px; height: 52px; }
  .surv-collapse-bullet-inner { width: 44px; height: 44px; }
  .surv-collapse-num { font-size: 16px; }
  .surv-collapse-icon { width: 22px !important; height: 22px !important; }
  .surv-collapse-header { padding: 12px 12px 12px 18px; gap:0; }
  .surv-collapse-arrow { width: 20px; height: 20px; }
  .surv-arrow-down, .surv-arrow-up { width: 20px; height: 20px; }
  .surv-collapse-title { font-size: 18px; }
  .surv-collapse-body { padding: 12px 20px 16px; }
  .surv-collapse-body li { font-size: 16px; }
  /* Successful Case */
  .surv-cases-title { font-size: 26px; }
  .surv-s8-section,
  .edm-bg-section { padding: 48px 0; }
  .surv-s9-title { font-size: 26px; }
  .surv-s9-section { min-height: 0; padding: 48px 0; }
  .surv-tech-modal-container { height: 80vh; padding: 48px 24px 24px; }
  .surv-tech-modal-close { top: 8px; right: 8px; }
  .surv-tech-modal-title { font-size: 22px; }
  .surv-tech-modal-desc { font-size: 16px; }
  .surv-bg-bottom{
    aspect-ratio: 1440 / 880;
  }
  .surv-card-title{
    font-size: 18px;
  }
  .surv-card-list{
    font-size: 14px;
    -webkit-line-clamp: 8;
  }
}

/* ── Safari(WebKit)text-shadow 光暈過濃補償 ──
   WebKit 對多層發光陰影的 alpha 累積比 Blink(Chrome)濃,
   僅 Safari / iOS WebKit 會匹配此 @supports,Chrome/Edge/Firefox 不受影響 */
@supports (font: -apple-system-body) {
  .app-insights-title,
  .surv-section-title,
  .surv-tech-heading,
  .surv-tech-card-title,
  .surv-video-title,
  .surv-rec-heading,
  .surv-cases-title,
  .surv-s9-title {
    text-shadow: 0 0 10px rgba(0,73,232,0.2), 0 0 10px rgba(1,66,255,0.2), 0 0 5px rgba(0,95,227,0.5);
  }
  .inner-breadcrumb-inner a,
  .inner-breadcrumb-current,
  .surv-intro-body p,
  .surv-video-desc p {
    text-shadow: 0 0 4px rgba(0,21,255,0.5), 0 0 6px rgba(0,106,255,0.3);
  }
  .app-hero-title,
  .surv-hero-title {
    text-shadow: 0 0 22px rgba(0,73,232,0.1), 0 0 8px rgba(1,66,255,0.2), 0 0 10px rgba(0,95,227,0.5);
  }
  .app-hero-sub,
  .surv-hero-sub {
    text-shadow: rgba(0,73,232,0.2) 0 0 6px, rgba(1,66,255,0.2) 0 0 3px, rgba(0,95,227,0.5) 0 0 2px;
  }
  .surv-tech-card-desc {
    text-shadow: 0 0 6px rgba(0,21,255,0.45), 0 0 2px rgba(0,21,255,0.5), 0 1px 4px rgba(0,21,255,0.12);
  }
}
