/* ================================================================
   ADATA Industrial — Header New
   Figma: weJli2bXYXDmUAsIZu5Hma  node: 1434-10649
   ================================================================ */

:root {
  --hdr-max-w: 1440px;
  --hdr-pad-x: 72px;
  --hdr-topbar-h: 40px;
  --hdr-nav-h: 78px;
  --hdr-total-h: 118px;

  --hdr-green:    #30D7CD;
  --hdr-orange:   #FF9B00;
  --hdr-text-mid: #666666;
  --hdr-border:   #D9D9D9;

  --hdr-grad-topbar: linear-gradient(90deg,
    #30D7CB 8.89%, #35ECDF 65.89%, #4AF6E9 72.93%,
    #C8F6E8 79%, #F4EBD9 80.78%, #FFE0B4 82.06%,
    #FFD1A1 83.62%, #FE9B36 85.99%, #FF8305 88.12%);

  --hdr-grad-white: linear-gradient(89.9999deg,
    #F6F9F9 10.49%, #EEFCFF 25.55%, #EDFCFF 66.43%, #E2FFFE 100%);

  --hdr-shadow: 0px 2px 14px 0px rgba(0,106,255,0.16);
}

/* ── Reset ── */
#site-header,
#site-header * { box-sizing: border-box; }
#site-header ul { list-style: none; margin: 0; padding: 0; }
#site-header a { text-decoration: none; }

/* ── Wrapper ── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  z-index: 1000;
  font-family: 'Outfit', sans-serif;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

/* White / scrolled: gradient covers entire header (topbar + nav) */
#site-header.hdr--white,
#site-header.hdr--open,
#site-header.hdr--search-open {
  background: var(--hdr-grad-white);
  box-shadow: var(--hdr-shadow);
  backdrop-filter: blur(14.3px);
  -webkit-backdrop-filter: blur(14.3px);
}

/* ================================================================
   TOP BAR (40px)
   ================================================================ */
.hdr-topbar {
  height: var(--hdr-topbar-h);
  background: transparent;
  border-bottom: 0.5px solid rgba(254, 254, 254, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 3px;
}

/* Topbar gets gradient only when scrolled or dropdown open */
#site-header.hdr--white .hdr-topbar,
#site-header.hdr--open  .hdr-topbar,
#site-header.hdr--search-open .hdr-topbar {
  background: var(--hdr-grad-topbar);
  border-bottom-color: transparent;
}

/* Remove Sustainability text-shadow in white state */
#site-header.hdr--white .hdr-topbar-esg span,
#site-header.hdr--open  .hdr-topbar-esg span,
#site-header.hdr--search-open .hdr-topbar-esg span {
  text-shadow: none;
}

.hdr-topbar-inner {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 var(--hdr-pad-x);
}

/* Topbar ADATA logo link — exact vertical padding from Figma */
.hdr-topbar-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  padding-top: 14.92px;
  padding-bottom: 10.11px;
  text-decoration: none;
}

/* Wrapper: content area 107.815×15, shadow logo bleeds outside */
.hdr-topbar-logo-wrap {
  position: relative;
  width: 107.815px;
  height: 15px;
  overflow: visible;
}

/* logo-top.svg = 112×21 (includes shadow bleed: 2px L/R, 3px T/B) */
.hdr-topbar-logo-wrap .hdr-logo-transparent {
  position: absolute;
  width: 112px;
  height: 21px;
  top: -3px;
  left: -2px;
}

/* logo-top2.svg = 108×15 (exact content size) */
.hdr-topbar-logo-wrap .hdr-logo-white {
  position: absolute;
  width: 108px;
  height: 15px;
  top: 0;
  left: 0;
}

/* ESG link — exact vertical padding from Figma */
.hdr-topbar-esg {
  display: flex;
  align-items: flex-start;
  gap: 8.49px;
  text-decoration: none;
  flex-shrink: 0;
  padding-top: 8.91px;
  padding-bottom: 6.09px;
}

/* 25×25 content area; glow SVG bleeds outside via absolute positioning */
.hdr-topbar-esg-icon {
  position: relative;
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  overflow: visible;
}

/* Glow SVG: 37×36, bleed matches Figma inset(-20.66%, -22.27%, -20.46%, -22.39%) */
.hdr-topbar-esg-icon .hdr-icon-glow {
  position: absolute;
  top: -5.17px;
  left: -5.60px;
  width: 37px;
  height: 36px;
}

/* Plain SVG: exact 25×25 content area */
.hdr-topbar-esg-icon .hdr-icon-plain {
  position: absolute;
  top: 0;
  left: 0;
  width: 25px;
  height: 25px;
}

.hdr-topbar-esg span {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0px 0px 4px #0015FF, 0px 0px 6px rgba(0, 106, 255, 0.6);
}

/* ================================================================
   MAIN NAV (78px)
   ================================================================ */
.hdr-nav {
  height: var(--hdr-nav-h);
  display: flex;
  align-items: center;
  position: relative;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

/* Transparent (over hero) */
#site-header.hdr--transparent:not(.hdr--open):not(.hdr--search-open) .hdr-nav {
  background: transparent;
  box-shadow: none;
}

/* White (scrolled or dropdown open) — bg & shadow come from #site-header */
#site-header.hdr--white .hdr-nav,
#site-header.hdr--open .hdr-nav,
#site-header.hdr--search-open .hdr-nav {
  background-image: url('../images/header/bg.png');
  box-shadow: none;
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: top right;
}

.hdr-nav-inner {
  width: 100%;
  padding: 0 var(--hdr-pad-x);
  display: flex;
  align-items: center;
  gap: 40px;
}

/* ── Logo ── */
.hdr-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

/* Wrapper: content area 182×45, shadow logo can bleed outside */
.hdr-logo-wrap {
  position: relative;
  width: 182px;
  height: 45px;
  overflow: visible;
  flex-shrink: 0;
}

/* logo-color.svg = 194×57 (shadow bleed: 6px each side) */
.hdr-logo-wrap .hdr-logo-transparent {
  position: absolute;
  width: 194px;
  height: 57px;
  top: -6px;
  left: -6px;
  display: block;
}

/* logo-color2.svg = 182×45 (exact content size) */
.hdr-logo-wrap .hdr-logo-white {
  position: absolute;
  width: 182px;
  height: 45px;
  top: 0;
  left: 0;
  display: block;
}

/* State switching */
#site-header.hdr--transparent:not(.hdr--open):not(.hdr--search-open) .hdr-logo-white { display: none; }
#site-header.hdr--white .hdr-logo-transparent,
#site-header.hdr--open  .hdr-logo-transparent,
#site-header.hdr--search-open .hdr-logo-transparent { display: none; }

/* ── Menu ── */
.hdr-menu {
  display: flex;
  align-items: center;
  flex: 1;
}

.hdr-menu-link {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.5;
  color: #fff;
  padding: 8px 16px;
  height: 38px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  /* shadow/strong-s — 透明版藍色光暈 */
  text-shadow: 0px 0px 4px #0015FF, 0px 0px 6px rgba(0, 106, 255, 0.6);
}

.hdr-menu-link:hover {
  color: #fff;
  text-shadow: 0px 0px 4px #0015FF, 0px 0px 6px rgba(0, 106, 255, 0.6);
}

#site-header.hdr--white .hdr-menu-link,
#site-header.hdr--open .hdr-menu-link,
#site-header.hdr--search-open .hdr-menu-link {
  color: var(--hdr-text-mid);
  text-shadow: none;
}

#site-header.hdr--white .hdr-menu-item:hover .hdr-menu-link,
#site-header.hdr--white .hdr-menu-item.hdr--active .hdr-menu-link,
#site-header.hdr--open .hdr-menu-item:hover .hdr-menu-link,
#site-header.hdr--open .hdr-menu-item.hdr--active .hdr-menu-link,
#site-header.hdr--search-open .hdr-menu-item:hover .hdr-menu-link,
#site-header.hdr--search-open .hdr-menu-item.hdr--active .hdr-menu-link {
  color: var(--hdr-green);
}

/* ── Icon Buttons ── */
.hdr-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

.hdr-btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 100px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  color: var(--hdr-text-mid);
}

/* Glow SVG (shadow baked-in): transparent state only */
.hdr-icon-glow  { display: none; }
.hdr-icon-plain { display: block; }

#site-header.hdr--transparent:not(.hdr--open):not(.hdr--search-open) .hdr-icon-glow  { display: block; }
#site-header.hdr--transparent:not(.hdr--open):not(.hdr--search-open) .hdr-icon-plain { display: none; }

/* ================================================================
   DROPDOWNS
   ================================================================ */

/* Full-viewport blur backdrop */
.hdr-backdrop {
  position: fixed;
  top: var(--hdr-total-h);
  left: 0; right: 0; bottom: 0;
  background: rgba(234,255,255,0.50);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 998;
  display: none;
  pointer-events: none;
}

#site-header.hdr--open ~ .hdr-backdrop {
  display: block;
  pointer-events: auto;
}

/* Dropdown panel */
.hdr-dropdown {
  position: absolute;
  top: 100%;   /* below the 78px nav = 118px from header top */
  left: 0;
  right: 0;
  overflow: hidden;
  display: none;
  z-index: 1001;
}

.hdr-menu-item.hdr--active .hdr-dropdown {
  display: block;
}

/* Inner layout */
.hdr-dd-inner {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 72px;
  display: flex;
  min-height: 290px;
  background: url('../images/header/bg.png'), linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, #FFF 100%);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position:right -78px,0 0;
}
.hdr-dd-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: -1;
}

/* ── Left Nav ── */
.hdr-dd-nav {
  width: 344px;
  flex-shrink: 0;
  border-right: 1px solid var(--hdr-border);
  padding: 0 32px 0 0;
  margin: 36px auto;
  display: flex;
  flex-direction: column;

}

.hdr-dd-heading {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.5;
  color: var(--hdr-green);
  padding: 5px 0;
  display: block;
}

.hdr-dd-divider {
  border: none;
  border-top: 1px solid var(--hdr-border);
  margin: 8px 0;
}

.hdr-dd-nav-link {
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  color: var(--hdr-text-mid);
  padding: 5px 0;
  display: block;
  transition: color 0.2s;
}

.hdr-dd-nav-link:hover { color: var(--hdr-green); }

/* ── Tab nav items (SOLUTIONS & WHAT'S NEW dropdowns) ── */
.hdr-dd-tab {
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  color: var(--hdr-text-mid);
  padding: 5px 0;
  display: block;
  cursor: pointer;
  transition: color 0.2s;
  word-break:break-word;
}
.hdr-dd-tab:hover { color: var(--hdr-green); }
.hdr-dd-tab.is-active {
  color: var(--hdr-green);
  font-weight: 600;
}
.hdr-dd-tab-panel { display: none; }
.hdr-dd-tab-panel.is-active { display: block; }

/* ── Right Content ── */
.hdr-dd-content {
  flex: 1;
  padding: 36px 48px;
}

/* ================================================================
   SOLUTIONS DROPDOWN
   ================================================================ */

/* Application tab: category grid + right preview */
.sol-app-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.sol-cat-group {
  width: 420px;
  flex-shrink: 0;
  display: flex;
}

.sol-cat-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 228px;
}

.sol-cat-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  color: var(--hdr-text-mid);
  display: block;
  transition: color 0.15s;
}

.sol-cat-link:hover,
.sol-cat-link.is-active {
  color: var(--hdr-green);
  font-weight: 500;
}

/* Right preview panel — hidden until a category is hovered */
.sol-preview {
  width: 360px;
  flex-shrink: 0;
  display: none;
  flex-direction: column;
  gap: 8px;
}

.sol-preview.is-visible { display: flex; }

.sol-preview-img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  display: block;
}
.sol-preview-img.services-preview-img{
    width: 356px;
    height: 200px;
    object-fit: contain;
    display: block;
}
.sol-preview-caption {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--hdr-text-mid);
  margin: 0;
}

/* ================================================================
   WHAT'S NEW DROPDOWN
   ================================================================ */
.hdr-dd-news .hdr-dd-content {
  padding-bottom: 28px;
}

.news-cards-row {
  display: flex;
  gap: 24px;
}

.news-card {
  width: 276px;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.news-card-thumb-wrap {
  overflow: hidden;
  border-radius: 2px;
  width: 276px;
  height: 155px;
}

.news-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.news-card:hover .news-card-thumb {
  transform: scale(1.06);
}

.news-card-title {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  color: var(--hdr-text-mid);
  margin: 12px 0 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-read-more {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  color: var(--hdr-green);
  margin-top: 12px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
  pointer-events: none;
}

.news-card:hover .news-card-read-more {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.news-card-read-more:hover {
  color: var(--hdr-orange);
}

.news-card-read-more-arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.news-card-read-more:hover .news-card-read-more-arrow {
  transform: translateX(4px);
}

.news-more-row {
  width: 876px; /* matches 3 × 276px cards + 2 × 24px gaps */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--hdr-border);
}

.news-more-link {
  font-weight: 500;
  font-size: 18px;
  color: var(--hdr-orange);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.news-more-link:hover {
  color: var(--hdr-green);
  text-decoration: none;
}

.news-more-arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.news-more-link:hover .news-more-arrow {
  transform: translateX(4px);
}

/* ================================================================
   ABOUT US DROPDOWN
   ================================================================ */
.about-promo {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 200px;
}

.about-promo-info {
  width: 420px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  gap: 12px;
}

/* Inner wrapper: title + subtitle + Read more */
.about-cat-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-promo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-promo-info .title {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.5;
  color: var(--hdr-text-mid);
  margin: 0;
}

.about-promo-info p {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--hdr-text-mid);
  margin: 0;
}

.about-read-more {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  color: var(--hdr-green);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.about-read-more:hover {
  color: var(--hdr-orange);
  text-decoration: none;
}

.about-promo:hover .about-read-more {
  opacity: 1;
  transform: translateY(0);
}

.about-read-more-arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.about-read-more:hover .about-read-more-arrow {
  transform: translateX(4px);
}

.about-promo-info hr {
  border: none;
  border-top: 1px solid var(--hdr-border);
  margin: 0;
}

.about-promo-img {
  width: 356px;
  height: 200px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 2px;
}

.about-promo-img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.about-promo:hover .about-promo-img img {
  transform: scale(1.08);
}

.about-promo-img .promo-layer-2 {
  mix-blend-mode: normal;
  opacity: 0.85;
}

/* ================================================================
   LANGUAGE DROPDOWN
   ================================================================ */
.hdr-lang-wrap {
  position: relative;
}

.hdr-lang-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #F2FCFE;
  border-radius: 4px;
  width: 160px;
  display: none;
  z-index: 1002;
  box-shadow: 0px 5px 14px 0px rgba(0,106,255,0.16);
  padding: 8px;
}

.hdr-lang-wrap.hdr--active .hdr-lang-panel {
  display: block;
}

.hdr-lang-panel a {
  display: block;
  padding: 8px 12px;
  font-size: 16px;
  color: #666;
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.15s;
}

.hdr-lang-panel a:hover {
  background: #F2FCFE;
}

/* ================================================================
   SEARCH PANEL
   ================================================================ */
.hdr-search-panel {
  position: fixed;
  top: var(--hdr-total-h);
  left: 0;
  right: 0;
  height: 186px;
  z-index: 1001;
  display: none;
  background: url('../images/header/bg.png'), linear-gradient(90deg, #F6F9F9 10.486%, #EEFCFF 25.549%, #EDFCFF 66.432%, #E2FFFE 100%);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: right -78px, 0 0;
  align-items: flex-start;
  justify-content: center;
  padding-top: 58px;
}

#site-header.hdr--search-open ~ .hdr-search-panel {
  display: flex;
}

.hdr-search-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 786px;
}

.hdr-search-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hdr-srch-icon-svg {
  flex-shrink: 0;
}

.hdr-srch-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #999;
  line-height: 1.5;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.hdr-srch-input::placeholder {
  color: #999;
}

.hdr-srch-input::-webkit-search-cancel-button,
.hdr-srch-input::-webkit-search-decoration {
  display: none;
}

.hdr-srch-close {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hdr-srch-divider {
  height: 1px;
  background: #D9D9D9;
  width: 100%;
}

.hdr-search-backdrop {
  position: fixed;
  top: calc(var(--hdr-total-h) + 186px);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(234,255,255,0.50);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1000;
  display: none;
  pointer-events: none;
}

#site-header.hdr--search-open ~ .hdr-search-backdrop {
  display: block;
  pointer-events: auto;
}

/* ── Body offset for fixed header (non-hero sections) ── */
/* Hero/carousel sits under transparent header intentionally; */
/* sections with class "needs-hdr-offset" get top clearance */
.needs-hdr-offset { padding-top: var(--hdr-total-h); }

/* ================================================================
   HAMBURGER BUTTON (hidden on desktop, shown on mobile)
   ================================================================ */
.hdr-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  color: #fff; /* transparent state: white icon */
  transition: color 0.2s ease, filter 0.2s ease;
}

/* Transparent state: glow matches lang/search icon SVG filter (3 layers) */
#site-header.hdr--transparent:not(.hdr--open):not(.hdr--search-open) .hdr-hamburger {
  filter:
    drop-shadow(0px 0px 1.5px rgb(0, 21, 255))
    drop-shadow(0px 0px 3px rgb(14, 134, 254))
    drop-shadow(0px 0px 5px rgba(0, 106, 255, 0.8));
}

/* White/scrolled state: match lang/search plain icon color */
#site-header.hdr--white .hdr-hamburger,
#site-header.hdr--open  .hdr-hamburger,
#site-header.hdr--search-open .hdr-hamburger {
  color: var(--hdr-text-mid);
}

/* SVG lines — fill controlled explicitly by state, not currentColor inheritance */
.hdr-ham-svg rect {
  fill: #fff; /* transparent state default */
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease, fill 0.2s ease;
}

#site-header.hdr--white .hdr-ham-svg rect,
#site-header.hdr--open  .hdr-ham-svg rect,
#site-header.hdr--search-open .hdr-ham-svg rect {
  fill: var(--hdr-text-mid);
}

.hdr-hamburger.is-active .hdr-ham-svg rect:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hdr-hamburger.is-active .hdr-ham-svg rect:nth-child(2) {
  opacity: 0;
}
.hdr-hamburger.is-active .hdr-ham-svg rect:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ================================================================
   MOBILE DRAWER
   ================================================================ */
.hdr-mobile-drawer {
  position: fixed;
  top: var(--hdr-total-h);
  right: 0;
  width: 100%;
  height: calc(100dvh - var(--hdr-total-h));
  background: url('../images/header/mb_bg.jpg'), #fff;
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: right -60px;
  z-index: 1051;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.hdr-mobile-drawer.is-open {
  transform: translateX(0);
}


.hdr-mob-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  flex: 1;
}

.hdr-mob-item {
  border-bottom: 1px solid #f0f0f0;
}

.hdr-mob-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--hdr-text-mid);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s;
}

.hdr-mob-link:hover,
.hdr-mob-item.is-expanded > .hdr-mob-link {
  color: var(--hdr-green);
}

.hdr-mob-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
  color: inherit;
}

.hdr-mob-item.is-expanded .hdr-mob-chevron {
  transform: rotate(180deg);
  color: var(--hdr-green);
}

.hdr-mob-sub {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.hdr-mob-item.is-expanded .hdr-mob-sub {
  max-height: 400px;
}

.hdr-mob-sub li {
  border-top: 1px solid #eef6ff;
}

.hdr-mob-sub-link {
  display: block;
  padding: 12px 20px 12px 32px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #666;
  text-decoration: none;
  transition: color 0.15s;
}

.hdr-mob-sub-link:hover {
  color: var(--hdr-green);
}

.hdr-mob-lang-row {
  padding: 16px 20px 24px;
  border-top: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
}

.hdr-mob-lang-row a {
  display: block;
  font-size: 13px;
  color: #666;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.hdr-mob-lang-row a:hover {
  background: #f2fcfe;
  color: var(--hdr-green);
}

.hdr-mob-overlay {
  position: fixed;
  top: var(--hdr-total-h);
  left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hdr-mob-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ================================================================
   MOBILE (≤ 991px) — RWD header
   ================================================================ */
@media (max-width: 1023px) {
  :root {
    --hdr-nav-h: 60px;
    --hdr-total-h: calc(var(--hdr-topbar-h) + 60px); /* topbar + nav */
  }

  /* Mobile topbar gradient (scroll / dropdown-open state) */
  #site-header.hdr--white .hdr-topbar,
  #site-header.hdr--open  .hdr-topbar,
  #site-header.hdr--search-open .hdr-topbar {
    background: linear-gradient(90deg, #30D7CB 0%, #35ECDF 44.7%, #C8F6E8 53.5%, #F4EBD9 55.83%, #FFE0B4 58.14%, #FFD1A1 59.63%, #FE9B36 64.61%, #FF8305 70.64%);
  }

  /* Tighter padding on mobile */
  .hdr-topbar-inner { padding: 0 16px; }
  .hdr-nav-inner {
    padding: 0 16px;
    gap: 0;
  }

  /* Slightly smaller logo */
  .hdr-logo-wrap {
    width: 148px;
    height: 36px;
  }
  .hdr-logo-wrap .hdr-logo-transparent { width: 160px; height: 46px; top: -5px; left: -6px; }
  .hdr-logo-wrap .hdr-logo-white       { width: 148px; height: 36px; }

  /* Hide desktop menu */
  .hdr-menu { display: none; }

  /* Show lang button (left of hamburger); keep search button */
  .hdr-btn-lang { display: flex; }

  /* Show hamburger */
  .hdr-hamburger { display: flex; }

  /* No desktop backdrop on mobile */
  .hdr-backdrop { display: none !important; }

  /* Nav bar background: mobile */
  #site-header.hdr--white .hdr-nav,
  #site-header.hdr--open  .hdr-nav,
  #site-header.hdr--search-open .hdr-nav {
    background-image: url('../images/header/mb_bg.jpg');
  }

  /* Search panel — below topbar + nav */
  .hdr-search-panel {
    top: var(--hdr-total-h);
    padding-top: 24px;
    height: 120px;
    background: url('../images/header/mb_bg.jpg'), #fff;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: right -60px;
  }
  .hdr-search-backdrop {
    top: calc(var(--hdr-total-h) + 120px);
  }
  .hdr-search-inner {
    width: calc(100% - 32px);
    max-width: 600px;
  }
  .hdr-srch-input { font-size: 18px; }
}

@media (min-width: 1024px) {
  /* Desktop: hide mobile-only elements */
  .hdr-hamburger      { display: none; }
  .hdr-mobile-drawer  { display: none !important; }
  .hdr-mob-overlay    { display: none !important; }
  #headerpage         { display: none; }

  /* Banner starts at viewport top (behind transparent header).
     Override the legacy padding-top from index.css. */
  .single-item { padding-top: 0; }
}

/* ================================================================
   Responsive Image Utilities
   ================================================================ */
.pc-img     { display: block !important;}
.mobile-img { display: none !important; }

@media (max-width: 767px) {
  .pc-img     { display: none !important; }
  .mobile-img { display: block !important; }
}

/* ================================================================
   Hero Banner — 固定背景 + 輪播（文字 & 手臂）
   Figma: 1233:19861 background / 1165:7599 HeroHand
   ================================================================ */

/* ── Outer container ── */
.hero-banner {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: #2DF9F9;
}

/* ── Background canvas — fullcover, bottommost layer ── */
.hero-bg-video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Fixed background layer: glow assets + wave (over video) ── */
.hero-bg-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: transparent;
}

/* ── Glow ellipse images (Figma assets, transparent SVGs) ── */
.hero-bg-layer .glow-img {
  position: absolute;
  pointer-events: none;
}
/* Orange glow — bottom-left */
.hero-bg-layer .glow-orange {
  left: 0;
  bottom: 0;
}
/* Blue angled glow — top-left/center */
.hero-bg-layer .glow-blue-angled {
  left: 0;
  top: 0;
}
/* Blue oval glow — below arm area */
.hero-bg-layer .glow-blue-oval {
  right: 0;
  bottom: 3vh;
}

@media (width:1440px){
  .hero-bg-layer .glow-blue-oval{
    width: 50%;
  }
}


/* ── Bottom 40px gradient → next section (Figma 1233:19858) ── */
.hero-bottom-grad {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(45,249,249,0) 60.959%, #2DF9F9 93.159%);
  pointer-events: none;
  z-index: 20;
}

/* ── Slick slider: sits over fixed bg, transparent ── */
.hero-banner .single-item {
  position: absolute;
  inset: 0;
  z-index: 5;
  padding-top: 0 !important;
}

.hero-banner .single-item .slick-list {
  height: 100vh !important;
  height: 100dvh !important;
  overflow: hidden !important;
}
.hero-banner .single-item .slick-track,
.hero-banner .single-item .slick-slide,
.hero-banner .single-item .slick-slide > div {
  height: 100vh !important;
  height: 100dvh !important;
}

/* ── Individual slide ── */
.banner-slide {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-image: var(--bg-pc, none);
}
@media (max-width: 767px) {
  .banner-slide {
    background-image: var(--bg-mob, var(--bg-pc, none));
  }
}

/* ── Arm / visual image (right side, per-slide)
  Figma HeroHand: x=500 y=54 w=1334.648 h=900 in 1440×810 hero ── */
.banner-slide-move,
.banner-slide-default {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-40%);
  aspect-ratio: 768/438;
  width: 53.33%;
  pointer-events: none;
}

@keyframes arm-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-20px); }
}

.banner-slide-move img,
.banner-slide-default img {
  width: 100%;
  height: 100%;
}

.banner-slide-move img {
  animation: arm-float 4s ease-in-out infinite;
}

/* 一大張圖 */
/* .banner-slide-big {
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  width: 100%;
  aspect-ratio: auto;
  transform: none;
  pointer-events: none;
}

.banner-slide-big img {
  width: 100%;
  height: 100dvh;
  object-fit: cover;
} */

/* ── Text + button — left 72 / bottom 200 / width 504 ── */
.banner-hero-content {
  position: absolute;
  left: 204px;
  top: 50%;
  transform: translateY(-50%);
  width: 504px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: flex-start;
}

.banner-hero-texts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* Outfit Bold 56 / shadow-strong-l */
.banner-hero-heading {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 1.3;
  color: #fff;
  margin: 0;
  text-shadow: 0px 0px 22px rgba(0,73,232,0.2), 0px 0px 8px #0142FF, 0px 0px 10px #005FE3;
}

/* Outfit Medium 24 / blue text-shadow */
.banner-hero-sub {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.5;
  color: #fff;
  margin: 0;
  text-shadow: 0px 0px 6px #0049E8, 0px 0px 3px #0142FF, 0px 0px 2px #005FE3;
}

/* Orange gradient button */
.banner-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 14px 40px;
  background: linear-gradient(90deg, #FFAA00 0%, #FF8000 100%);
  color: #fff !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  border-radius: 2px;
  box-shadow: 0px 4px 14px 0px rgba(255,255,255,0.5);
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.banner-hero-btn:hover {
  background: linear-gradient(90deg, #FF8000 0%, #FFAA00 100%);
  box-shadow: 0px 10px 28px 0px rgba(255,255,255,0.9);
  color: #fff !important;
  text-decoration: none !important;
}

/* ── Slick dots — Figma: x=658 y=748 → bottom=48px, centered ── */
.hero-banner .slick-dots {
  position: absolute;
  bottom: 48px;
  left: 0;
  right: 0;
  display: flex !important;
  justify-content: center;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 200;
  filter: drop-shadow(0px 5px 7px rgba(0,106,255,0.16));
}

.hero-banner .slick-dots li {
  width: 14px;
  height: 14px;
  margin: 0;
  padding: 0;
}

.hero-banner .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;
}

.hero-banner .slick-dots li button::before {
  display: none !important;
}

.hero-banner .slick-dots li.slick-active button {
  background: #fff;
}

/* ================================================================
   S2 Section — Product Category + Application
   Figma node: 1165:9814
   ================================================================ */

/* ── Entry animation keyframes ── */
@keyframes s2-app-card-activate {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes s2-fade-from-top {
  from { opacity: 0; transform: translateY(-80px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes s2-fade-from-bottom {
  from { opacity: 0; transform: translateY(80px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Spring up: neuchips.ai-style title bounce */
@keyframes s2-spring-up {
  0%   { opacity: 0; transform: translateY(70px); }
  55%  { opacity: 1; transform: translateY(-10px); }
  75%  { transform: translateY(5px); }
  90%  { transform: translateY(-2px); }
  100% { opacity: 1; transform: translateY(0); }
}

.s2-section {
  position: relative;
  background: linear-gradient(199deg, #2DF9F9 19.7%, #46F9F6 39.8%);
  /* overflow:clip clips visuals but does NOT create a scroll container,
     allowing position:sticky inside to work against the viewport */
  overflow: clip;
}

/* ── Sticky background layer ── */
.s2-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.s2-bg-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 1231px;
  overflow: hidden;
  background: linear-gradient(196deg, #2DF9F9 19.7%, #46F9F6 39.8%);
}
.s2-bg-circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  opacity: 0; /* hidden until entry animation */
}
.s2-bg-particle {
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: none;
  opacity: 0; /* hidden until entry animation */
}
.s2-bg-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 163px;
  background: linear-gradient(180deg, rgba(45,249,249,0) 61%, #2DF9F9 95%);
}

/* ── Section title (shared) ── */
.s2-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 42px;
  line-height: 1.2;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 6px #0E86FE, 0 0 3px #0015FF, 0 0 10px #006AFF;
  margin: 0;
}

/* ── Pre-animation: hidden until IntersectionObserver fires ── */
.s2-s1 .s2-title,
.s2-s1 .s2-prod-wrap { opacity: 0; }

.s2-s2 .s2-title,
.s2-s2 .s2-app-viewport,
.s2-s2 .s2-app-pagination { opacity: 0; }

/* ── Phase 1: bg elements animate in (on #s2 entering viewport) ── */
.s2-section.s2--anim .s2-bg-particle {
  animation: s2-fade-from-top 1.1s ease-out forwards;
}
.s2-section.s2--anim .s2-bg-circles {
  animation: s2-fade-from-bottom 1.1s ease-out forwards;
}

/* ── Phase 2: Product Category content ── */
.s2-section.s2--anim .s2-s1 .s2-title {
  animation: s2-fade-from-bottom 1.0s ease-out 0.25s forwards;
}
.s2-section.s2--anim .s2-s1 .s2-prod-wrap {
  animation: s2-fade-from-bottom 1.0s ease-out 0.42s forwards;
}

/* ── Application section ── */
.s2-s2.s2--anim .s2-title {
  animation: s2-fade-from-bottom 1.0s ease-out forwards;
}
.s2-s2.s2--anim .s2-app-viewport {
  animation: s2-fade-from-bottom 1.0s ease-out 0.18s forwards;
}
.s2-s2.s2--anim .s2-app-pagination {
  animation: s2-fade-from-bottom 0.9s ease-out 0.34s forwards;
}

/* ── S2-1: Product Category ── */
.s2-s1 {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 52px;
  padding: 140px 0 84px;
}
.s2-prod-wrap {
  position: relative;
  width: 1191px;
  max-width: 100%;
}
.s2-product-carousel {
  width: 1055px;
  margin: 0 auto;
}
/* -100px top/bottom for white glow; -5px left/right for shadow breathing room */
.s2-product-carousel .slick-list {
  overflow: visible;
  clip-path: inset(-100px -5px);
}
.s2-product-carousel .slick-track {
  display: flex;
  align-items: center;
}
.s2-product-carousel .slick-slide {
  padding: 0 12px;
  position: relative;
  z-index: 1;
}
.s2-product-carousel .slick-slide:hover {
  z-index: 10;
}
.s2-prod-wrap .slick-prev,
.s2-prod-wrap .slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px 0 rgba(0,106,255,0.6);
  padding: 0;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.s2-prod-wrap .slick-prev:hover,
.s2-prod-wrap .slick-next:hover {
  background: #FF9B00 !important;
  box-shadow: 0px 1px 1px rgba(0,0,0,0.05);
  opacity: 1 !important;
}
.s2-prod-wrap .slick-prev:hover svg path,
.s2-prod-wrap .slick-next:hover svg path {
  fill: #fff;
}
.s2-prod-wrap .slick-prev.slick-disabled,
.s2-prod-wrap .slick-next.slick-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}
/* Figma: arrows at left:0 / right:0 of the 1191px wrap; carousel has margin:0 68px → offset -68px from carousel edge */
.s2-prod-wrap .slick-prev { left: -68px; }
.s2-prod-wrap .slick-next { right: -68px; }
.s2-prod-wrap .slick-prev::before,
.s2-prod-wrap .slick-next::before { display: none; }
.s2-arrow-flip { transform: scaleX(-1); }

/* ── Card/ProductCategory — Figma 1233:19596 ── */
.s2-prod-card {
  display: block;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  width: 100%;
  aspect-ratio: 240 / 283;
  background: linear-gradient(180deg, #f5fffe 0%, #ebfffe 82.413%);
  border-radius: 6px;
  box-shadow: 0 5px 14px 0 rgba(0,106,255,0.16);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  transform-origin: center center;
  will-change: transform;
}
/* Hover: scale 240→264 / 283→311, cyan gradient, white glow (design system Variant2) */
.s2-prod-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;
}

/* ── Static layout: 4 cards，bypass Slick，維持原尺寸但 overflow visible ── */
/* wrap / carousel 維持原始寬度，不改卡片大小；只需移除 Slick clip-path 的限制 */
.s2-product-carousel.s2-prod-static {
  display: flex;
  gap: 24px;
  width: 1055px;
  max-width: 100%;
  margin: 0 auto;
  overflow: visible;
}
.s2-product-carousel.s2-prod-static .s2-prod-card {
  flex: 1;
  min-width: 0;
}

/* Pattern overlay — switches on hover */
.s2-prod-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('../images/product/Card_default_bg_pattern.png') center/cover no-repeat;
  pointer-events: none;
  transition: background 0.35s ease;
}
.s2-prod-card:hover .s2-prod-pattern {
  background: url('../images/product/Card_hover_bg_pattern.png') center/cover no-repeat;
}

/* Image area — full card width, above the label */
.s2-prod-img-area {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: calc(100% - 52px);
  overflow: hidden;
}

.s2-prod-img-box {
  position: absolute;
  inset: 0;
}

.s2-prod-img-clip {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Product image — top-aligned so both reflect/noreflect variants stay in sync */
.s2-prod-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
}

/* Default (with reflection): visible; hidden on hover */
.s2-prod-img--default {
  opacity: 1;
}
.s2-prod-card:hover .s2-prod-img--default {
  opacity: 0;
}

/* Hover (no reflection): hidden by default; visible on hover */
.s2-prod-img--hover {
  opacity: 0;
}
.s2-prod-card:hover .s2-prod-img--hover {
  opacity: 1;
}

/* Label — absolute bottom, Figma: h=52px bg=#00C3FF */
.s2-prod-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  min-height: 52px;
  height: auto;
  background: #00C3FF;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: normal;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

/* ── S2-2: Application ── */
.s2-s2 {
  position: relative;
  z-index: 1;
  padding-top: 92px;
  padding-bottom: 80px;
}
.s2-s2 .s2-title { margin-bottom: 52px; }

.s2-app-viewport,
.s2-app-track,
.s2-app-fade {
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.s2-app-viewport {
  position: relative;
  overflow: hidden;
  height: 480px;
  --s2-app-dur: 400ms;
  --s2-app-ease: cubic-bezier(0.4, 0, 0.2, 1);
}
.s2-app-track .slick-list {
  overflow: visible;
}
.s2-app-track .slick-slide {
  width: 314px !important;
  margin-right: 24px;
}
.s2-app-track .slick-slide.slick-wide {
  width: 376.8px !important;
}
.s2-app-slide {
  width: 314px;
  height: 480px;
  position: relative;
}
.s2-app-slide.is-active {
  width: 376.8px;
}
.s2-app-card {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 400px;
  border-radius: 4px;
  overflow: hidden;
  transform-origin: center bottom;
  transition: height var(--s2-app-dur) var(--s2-app-ease), padding var(--s2-app-dur) var(--s2-app-ease);
}

/* ── Fade overlay (tablet + desktop): wide card stays in place, content slides ── */
.s2-app-fade {
  display: none;
}
@media (min-width: 768px) {
  /* slick-wide uses margin (not width) for overlay spacing — keeps all in-track slides uniform so no width animation is visible */
  .s2-app-track .slick-slide.slick-wide {
    width: 314px !important;
    margin-right: 87px;
  }
  .s2-app-fade {
    display: block;
    position: absolute;
    left: 338px;
    top: 0;
    width: 377px;
    height: 480px;
    z-index: 5;
    pointer-events: auto;
    overflow: hidden;
    border-radius: 5px;
    background: #004DFF;
  }
  .s2-app-fade .slick-list {
    height: 100%;
    overflow: hidden;
  }
  .s2-app-fade .slick-track {
    height: 100%;
  }
  .s2-app-fade .slick-slide {
    width: 377px !important;
    height: 480px;
    margin: 0 !important;
  }
  .s2-app-fade .s2-app-slide {
    width: 377px;
    height: 480px;
  }
  .s2-app-fade .s2-app-card {
    height: 480px;
    border-radius: 5px;
    transition: none;
  }
}

/* Tablet (768-1023): center the overlay big card horizontally; sides show partial small cards. Dimensions same as PC. */
@media (min-width: 768px) and (max-width: 1023px) {
  .s2-app-fade {
    left: calc(50% - 188.5px); /* center 377-wide overlay */
  }
  /* Shift slick-list so slick-current.next() (the wide slot) aligns with the centered overlay.
     slick-current left = (50% - 188.5) - 24 - 314 = 50% - 526.5 */
  .s2-app-track .slick-list {
    margin-left: calc(50% - 526.5px);
  }
}

.s2-app-slide.is-active .s2-app-card {
  height: 480px;
  border-radius: 5px;
}

.s2-app-card-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.s2-app-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.s2-app-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.s2-app-card:hover .s2-app-card-img img {
  transform: scale(1.1);
}
.s2-app-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, #004DFF 42%, rgba(0,65,255,0.4) 68%, rgba(0,65,255,0.2) 80%, rgba(0,65,255,0) 86%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 84px 20px 28px 24px;
  gap: 8px;
  transition: padding var(--s2-app-dur) var(--s2-app-ease);
}
.s2-app-slide.is-active .s2-app-card-overlay {
  padding: 100px 24px 36px 28.8px;
}
.s2-app-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #fff;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  transition: gap var(--s2-app-dur) var(--s2-app-ease);
}
.s2-app-slide.is-active .s2-app-card-info { gap: 12px; }
.s2-app-card-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: font-size var(--s2-app-dur) var(--s2-app-ease), line-height var(--s2-app-dur) var(--s2-app-ease);
}
.s2-app-slide.is-active .s2-app-card-title {
  font-size: 36px;
  line-height: 1.2;
}
.s2-app-card-sub {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s2-app-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 8px 0 rgba(0,106,255,0.6);
  padding: 0;
  flex-shrink: 0;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.s2-app-slide.is-active .s2-app-btn {
  background: #FF9B00;
  box-shadow: 0 1.2px 1.2px 0 rgba(0,0,0,0.05);
}
.s2-app-btn svg path { fill: #30D7CD; transition: fill 0.35s ease; }
.s2-app-slide.is-active .s2-app-btn svg path { fill: #fff; }
.s2-app-slide.is-active .s2-app-btn svg { width: 24px; height: 24px; }

/* Card/Application hover: button turns orange (design system Variant5) */
.s2-app-card:hover .s2-app-btn {
  background: #FF9B00;
  box-shadow: 0 1.2px 1.2px 0 rgba(0,0,0,0.05);
}
.s2-app-card:hover .s2-app-btn svg path { fill: #fff; }

/* ── Card info / title transitions — sync with slide speed ── */

/* ── Pagination ── */
.s2-app-pagination { padding: 48px 204px 0; }
.s2-pag-track {
  position: relative;
  height: 2px;
  background: #f2fcfe;
}
.s2-pag-progress {
  position: absolute;
  top: -2px;
  left: 0;
  height: 6px;
  background: #0041FF;
  width: 11.11%;
  transition: left 0.3s ease;
}
.s2-pag-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 50px;
  margin-top: 14px;
}
.s2-pag-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.s2-pag-btn svg { display: block; }
.s2-pag-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #0041FF;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ================================================================
   S4 — Insights (S5) + News (S6) + Service (S7)
   Figma node: 1165:7594  canvas: 1440px
   ================================================================ */

/* ── S4 wrapper ── */
.s4-section {
  position: relative;
  overflow: hidden;
  background: var(--Primary-Cyan, #2DF9F9);
}

.s4-bg-circuit {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 0;
}
.s4-bg-ellipse {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}
.s4-bg-bottom-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 1;
}

/* ================================================================
   S5 — Insights carousel  (699px tall at 1440px canvas)
   ================================================================ */
.s5-insights {
  position: relative;
  z-index: 2;
  padding: 138px 0 143px;
  overflow: hidden;
  display: flex;
  gap:7.8%;
}



.s5-wrap {
  margin-left: 14%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 0 0;
}

.s5-label-top {
  width: 152px;
}

.s5-title {
  font-family: 'Outfit', sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0px 0px 6px #0e86fe, 0px 0px 3px #0015ff, 0px 0px 10px #006aff;
  margin: 0 0 24px;
  white-space: nowrap;
  text-align: center;
}

.s5-viewall,
.s6-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, font-size 0.2s ease, filter 0.2s ease;
}
.s5-viewall svg,
.s6-viewall svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.s5-viewall:hover,
.s6-viewall:hover {
  gap: 10px;
  color: #FF9B00;
  filter: none;
  text-decoration: none;
}

.s5-nav-btns {
  display: flex;
  gap: 16px;
}

.s5-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 100px;
  border: none;
  background: #fff;
  box-shadow: 0px 0px 8px rgba(0,106,255,0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.s5-nav-btn:hover {
  background: #FF9B00;
  box-shadow: 0px 1px 1px rgba(0,0,0,0.05);
}
.s5-nav-btn:hover svg path {
  fill: #fff;
}
button:focus:not(:focus-visible) {
  outline: none;
}

/* Cards area — extends from label column right to viewport edge */
.s5-cards-area {
  position: relative;
  margin-left: auto;
  padding: 12px 0 0;
  width: calc(100% - 468px);
  overflow: hidden;
}

.s5-cards-track .slick-list {
  overflow: visible; /* clip handled by .s5-cards-area */
}

.s5-cards-track .slick-slide > div {
  display: contents;
}

/* Card (shared base) */
.s-news-card {
  border-radius: 4px;
  background: #fff;
  box-shadow: 0px 5px 14px rgba(0,106,255,0.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease, box-shadow 0.25s ease;
}
.s-news-card:hover {
  color: inherit;
  text-decoration: none;
}
.s-news-card:hover .s-news-card-title,
.s-news-card:hover .s-news-date {
  color: #FF9B00;
}

/* Insights card */
.s-news-card--insights {
  width: 100%;
  height: auto;
  display: flex !important;
  flex-direction: column;
}

.s-news-card-img {
  aspect-ratio: 328/184;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.s-news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.s-news-card:hover .s-news-card-img img {
  transform: scale(1.1);
}
/* shadow/soft glow on card hover (design system) */
.s-news-card:hover {
  box-shadow: 0px 0px 8px rgba(0,106,255,0.6);
}
/* Two-layer card image: base + branded overlay stacked */
.s-news-card-img--layered img:last-child {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s-news-card-body {
  padding: 20px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.s-news-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #666;
  line-height: 1.5;
  margin: 0;
  height: 60px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.s-news-card-excerpt {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #9e9e9e;
  line-height: 1.5;
  margin: 0;
  height: 47px;  /* Figma: h-[47px] */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ================================================================
   S6 — News  (595px tall at 1440px canvas)
   ================================================================ */
.s6-news {
  position: relative;
  padding-top: 100px;
  padding-bottom: 37px;
  z-index: 9;
}

.s6-bg-ellipse {
  position: absolute;
  right: 0;
  top: -19px;
  width: 100%;
  z-index: 0;
  pointer-events: none;
}

.s6-wrap {
  position: relative;
  z-index: 1;
  max-width: 72%;
  margin: 0 auto;
}

.s6-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}

.s6-title {
  font-family: 'Outfit', sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0px 0px 6px #0e86fe, 0px 0px 3px #0015ff, 0px 0px 10px #006aff;
  margin: 0;
}


.s6-cards {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

/* News card (with date) — image area 4:3 per design */
.s-news-card--dated {
  width: calc(100% / 3 - 12px);
  height: auto;
}


.s-news-date {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #30d7cd;
  line-height: 1.5;
  display: block;
}

.s-news-card-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ================================================================
   S7 — Service  (inner content ~316px + padding)
   ================================================================ */
.s7-service {
  position: relative;
  padding: 127px 0 142px;
  z-index: 2;
}

/* Decorative circuit/wave image — left=-65, top=-80 */
.s7-bg-deco {
  position: absolute;
  left: -64.87px;
  top: 19.1px;
  width: 1175px;
  height: 750px;
  pointer-events: none;
  z-index: 1;
}

.s7-wrap {
  max-width: 72%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.s7-title {
  font-family: 'Outfit', sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0px 0px 6px #0e86fe, 0px 0px 3px #0015ff, 0px 0px 10px #006aff;
  text-align: center;
  margin: 0 0 40px;
}

.s7-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 24px;
}

/* Button outer — 68px tall; inner panel floats with top/bottom inset */
.s7-btn {
  height: 68px;
  position: relative;
  display: block;
  text-decoration: none;
}

.s7-btn-panel {
  position: absolute;
  top: 8px;
  right: 0;
  bottom: 2px;
  left: 0;
  background: linear-gradient(111deg, rgba(252, 252, 252, 0.20) 121.85%, rgba(252, 252, 252, 0.20) 192.1%), rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  box-shadow: 0px 6px 6px rgba(0,106,255,0.06);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 12px;
}

.s7-btn:hover .s7-btn-panel {
  background: #FF9B00;
  border: 2px solid rgba(255,255,255,0.5);
  box-shadow: 0px 10px 5px rgba(0,106,255,0.3);
  top: 6px;
  bottom: 4px;
}
.s7-btn:hover .s7-btn-label {
  text-shadow: none;
}
.s7-btn:hover .s7-btn-icon,
.s7-btn:hover .s7-btn-arrow {
  filter: none;
}

.s7-btn-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 6px rgba(0,106,255,0.40)) drop-shadow(0 0 2px #0015FF);
}

.s7-btn-label {
  flex: 1;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: normal;
  color: #fff;
  text-shadow: 0 0 6px rgba(0,106,255,0.6), 0 0 4px #0015ff;
}

.s7-btn-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 6px rgba(0,106,255,0.6)) drop-shadow(0 0 4px #0015ff);
  transition: transform 0.2s ease;
}
.s7-btn:hover .s7-btn-arrow { transform: none; }
.s7-btn:hover .s7-btn-icon  { filter: none; }

/* ================================================================
   S4 (Insights/News/Service) — Entry animation states
   Reuses the s2-* keyframes defined earlier in this file.
   ================================================================ */

/* ── Pre-animation: all elements hidden until observer fires ── */
.s4-bg-ellipse,
.s4-bg-circuit  { opacity: 0; }

.s5-label-top,
.s5-nav-btns,
.s5-cards-area  { opacity: 0; }

.s6-bg-ellipse  { opacity: 0; }
.s6-header,
.s6-cards       { opacity: 0; }

.s7-bg-deco     { opacity: 0; }

/* ── S4 bg layer ── */
.s4-section.s4--anim .s4-bg-ellipse {
  animation: s2-fade-from-top 1.1s ease-out forwards;
}
.s4-section.s4--anim .s4-bg-circuit {
  animation: s2-fade-from-bottom 1.0s ease-out forwards;
}

/* ── S5 Insights ── */
.s5-insights.s5--anim .s5-label-top {
  animation: s2-fade-from-bottom 1.0s ease-out 0.25s forwards;
}
.s5-insights.s5--anim .s5-cards-area {
  animation: s2-fade-from-bottom 1.0s ease-out 0.3s forwards;
}
.s5-insights.s5--anim .s5-nav-btns {
  animation: s2-fade-from-bottom 0.9s ease-out 0.44s forwards;
}

/* ── S6 News ── */
.s6-news.s6--anim .s6-bg-ellipse {
  animation: s2-fade-from-bottom 1.1s ease-out forwards;
}
.s6-news.s6--anim .s6-header {
  animation: s2-fade-from-bottom 1.0s ease-out 0.2s forwards;
}
.s6-news.s6--anim .s6-cards {
  animation: s2-fade-from-bottom 1.0s ease-out 0.35s forwards;
}

/* ── S7 Service ── */
.s7-service.s7--anim .s7-bg-deco {
  animation: s2-fade-from-bottom 1.1s ease-out forwards;
}

/* =====================================================
   Floating Service Button
   ===================================================== */
.floating-service-btn {
  position: fixed;
  right: 24px;
  bottom: 44px;
  width: 64px;
  height: 64px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  z-index: 9000;
  border-radius: 10px;
  outline: none;
}
.floating-service-btn:focus { outline: none; }
.floating-service-btn:focus-visible { outline: none; }
.floating-service-btn:hover {
  --fsb-stop1: #FF9B00;
  --fsb-stop2: #FF9B00;
}
.floating-service-btn .btn-svg {
  position: absolute;
  inset: 0;
  display: block;
}

/* =====================================================
   Service Modal Overlay
   ===================================================== */
.svc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(159, 175, 175, 0.70);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.svc-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.svc-modal-wrap {
  position: relative;
  width: 1160px;
  max-width: calc(100vw - 40px);
  border-radius: 0;
  overflow: hidden;
  background: url('../images/service-modal/bg.jpg') center center / cover no-repeat;
}

.svc-modal-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.svc-bg-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.svc-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  z-index: 10;
  border-radius: 4px;
  transition: background 0.2s;
}
.svc-modal-close:hover { background: rgba(0,0,0,0.06); }

.svc-modal-body {
  position: relative;
  z-index: 1;
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.svc-modal-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 42px;
  line-height: 1.2;
  color: #30D7CD;
  text-align: center;
  margin: 0;
}

.svc-modal-cols {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.svc-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}
.svc-col-upper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  width: 100%;
  min-height: 212px;
}
.svc-col-icon {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}
.svc-col-icon > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.icon-product-support {
  position: relative;
  width: 96px;
  height: 96px;
  overflow: hidden;
}
.icon-product-support img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.svc-col-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  width: 100%;
}
.svc-col-text h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.5;
  color: #30D7CD;
  margin: 0;
}
.svc-col-text p {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #666;
  margin: 0;
}
.svc-col-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.btn-svc-green {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #30D7CD;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  padding: 10px 40px;
  border-radius: 2px;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-svc-green:hover,
.btn-svc-green:focus {
  background: #24c4bb;
  color: #fff;
  text-decoration: none;
}
.svc-col-div {
  width: 1px;
  align-self: stretch;
  background: #D9D9D9;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .s5-cards-track .slick-slide {
    width: 328px !important;
    margin-right: 24px;
  }
  .s5-wrap { margin-left: 10%; }
  .s6-wrap { max-width: 80%; }
  .s7-wrap { max-width: 80%; }
}

/* ── Narrow desktop (1024–1279px): tighten header + section margins ── */
@media (min-width: 1024px) and (max-width: 1279px) {
  :root { --hdr-pad-x: 32px; }
  .hdr-nav-inner { gap: 20px; }
  .hdr-menu-link { font-size: 16px; padding: 8px 16px; }
  /* Hero Banner */
  .banner-hero-content { left: 64px; width: 420px; }
  .banner-hero-heading { font-size: 44px; }
  .banner-hero-sub     { font-size: 20px; }
  .banner-slide-move,
  .banner-slide-default {
    width: 60%;
  }
  /* S2 Product Category */
  .s2-s1 { padding: 80px 0 64px; }
  .s2-s1 .s2-title { padding: 0 32px; }
  .s2-prod-wrap { width: 100%; padding: 0 32px; }
  .s2-product-carousel { width: 100%; margin: 0; }
  .s2-product-carousel .slick-list { clip-path: inset(-100px 0px); }
  .s2-prod-wrap .slick-prev { left: 0; }
  .s2-prod-wrap .slick-next { right: 0; }
  /* S2 Application */
  .s2-s2 { padding-top: 64px; padding-bottom: 64px; }
  /* S5 Insights */
  .s5-insights { padding: 80px 0; }
  .s5-wrap { margin-left: 32px; flex-shrink: 0; }
  .s5-cards-area { flex: 1; min-width: 0; }
  /* S6 News */
  .s6-news { padding-top: 32px; padding-bottom: 32px; }
  .s6-wrap { max-width: 100%; padding: 0 32px; }
  /* S7 Service */
  .s7-service { padding: 80px 0; }
  .s7-wrap { max-width: 100%; padding: 0 32px; }
  .s7-bg-deco {
    width: calc(1175 / 1440 * 100vw);
    height: calc(750 / 1440 * 100vw);
  }

  /* ── Dropdown 縮排 ── */
  .hdr-dd-nav { width: 200px; }
  .hdr-dd-nav-link,
  .hdr-dd-tab,
  .hdr-dd-heading { font-size: 16px; }
  .hdr-dd-content { padding: 24px 20px; }
  /* Solutions */
  .sol-cat-group { width: 280px; }
  .sol-cat-link { font-size: 15px; }
  .sol-cat-col { gap: 14px; }
  .sol-preview { width: 200px; }
  .sol-preview-img.services-preview-img {
    width: 280px;
    height: auto;
    aspect-ratio: 356 / 200;
  }
  .sol-preview-img { aspect-ratio: 471 / 600; }
  /* What's New */
  .news-card { width: auto; flex: 1; }
  .news-card-thumb-wrap { width: 100%; height: auto; aspect-ratio: 276 / 155; }
  .news-card-title { font-size: 15px; }
  .news-card-read-more,
  .news-more-link { font-size: 14px; }
  .news-more-row { width: 100%; }
  /* About Us */
  .about-promo { height: auto; align-items: stretch; }
  .about-promo-info { width: 340px; height: auto; }
  .about-promo-info h4 { font-size: 20px; }
  .about-promo-img { width: 280px; height: auto; aspect-ratio: 356 / 200; }
}

@media (min-width: 1600px) {
  .s2-prod-wrap { width: 1440px; }
  .s2-product-carousel { width: 1440px; }
  .s2-product-carousel.s2-prod-static { width: 1440px; }
  .s6-wrap,.s7-wrap{padding:0;}
  .s5-wrap {
    width: calc((100% - 1440px) / 2);
  }
  /* 手臂與文字區塊等比放大，維持與 1440px 設計相同比例 */
  .banner-slide-move,
  .banner-slide-default {
    width: calc(768 / 1440 * 100vw);
  }
  .s7-bg-deco {
    width: calc(1175 / 1440 * 80vw);
    height: calc(750 / 1440 * 80vw);
    left: 0;
    top: 0;
  }
  .banner-hero-content {
    left: calc((100% - 1440px) / 2);
    width: calc(504 / 1440 * 100vw);
  }
  .banner-hero-heading{
    font-size: 64px;
  }
}

/* ================================================================
   RWD — 1280–1356px
   ================================================================ */
@media (min-width: 1280px) and (max-width: 1356px) {
    /* Hero Banner */
    .banner-hero-content { left: 104px; }
}

/* ================================================================
   RWD — 1360–1380px Landscape (iPad Pro 橫向，pointer:coarse 排除筆電)
   ================================================================ */
@media (min-width: 1360px) and (max-width: 1380px) {
  .hero-bg-layer .glow-blue-oval{
    bottom: 11vh;
  }
}

/* ================================================================
   RWD — 1024px Portrait (iPad Pro 直向：套用平板 BN 排版)
   ================================================================ */
@media (width: 1024px) and (orientation: portrait) {
  .banner-slide-move,
  .banner-slide-default {
    left: auto;
    right: 0;
    top: auto;
    bottom: 15vh;
    width: 100vw;
    height: auto;
    transform: none;
  }
  .banner-slide-move img,
  .banner-slide-default img { height: auto; }
  .banner-hero-content {
    left: 32px;
    right: 32px;
    width: auto;
    max-width: none;
    bottom: auto;
    top: 22%;
  }
  .banner-hero-heading { font-size: 56px; }
  .banner-hero-sub    { font-size: 24px; }
  .banner-hero-btn {
    width: auto;
    padding: 12px 24px;
    font-size: 16px;
    justify-content: center;
  }
  .hero-bg-layer .glow-blue-oval { top: auto; bottom: 5vh; }
  .pc-img     { display: none !important;}
  .mobile-img { display: block !important; }
}



/* ================================================================
   RWD — Tablet (≤ 991px)
   ================================================================ */
@media (max-width: 1023px) {

  /* ── Hero Banner ── */
  .banner-hero-content {
    left: 40px;
    right: auto;
    width: min(504px, calc(60vw - 20px));
    max-width: none;
    transform: none;
    bottom: auto;
    top: 18%;
  }
  .banner-hero-heading { font-size: 44px; }
  .banner-hero-sub    { font-size: 20px; }
  .banner-hero-btn {
    width: auto;
    padding: 12px 24px;
    font-size: 16px;
    justify-content: center;
  }
  .banner-slide-move,
  .banner-slide-default {
    left: auto;
    right: 0;
    top: auto;
    bottom: 12vh;
    width: 90vw;
    height: auto;
    transform: none;
  }
  .banner-slide-move img,
  .banner-slide-default img { height: auto; }
  .hero-banner .slick-dots { bottom: 24px; }

  /* ── S2 Product Category ── */
  .s2-s1 { padding: 80px 0 60px; }
  .s2-title { font-size: 32px; }
  .s2-s1 .s2-title { padding: 0 30px; }
  .s2-prod-wrap { width: 100%; padding: 0 30px; }
  .s2-product-carousel { width: 100%; margin: 0; }
  .s2-product-carousel .slick-list { clip-path: inset(-100px 0px); }
  .s2-prod-wrap .slick-prev { left: 0; }
  .s2-prod-wrap .slick-next { right: 0; }

  /* ── S2 Application — 3 卡，中間 is-active 放大 ── */
  .s2-s2 { padding-top: 60px; padding-bottom: 60px; }
  .s2-s2 .s2-title { margin-bottom: 36px; }
  /* .s2-app-viewport { height: 360px; }
  .s2-app-track .slick-slide { width: 235px !important; margin-right: 16px; }
  .s2-app-track .slick-slide.slick-wide { width: 282px !important; }
  .s2-app-slide { width: 235px; height: 360px; }
  .s2-app-slide.is-active { width: 282px; }
  .s2-app-card { height: 300px; }
  .s2-app-slide.is-active .s2-app-card { height: 360px; } */
  .s2-app-pagination { padding: 24px 30px 0; }
  /* 取消 hover 放大效果 */
  .s2-prod-card:hover {
    transform: none;
    background: linear-gradient(180deg, #f5fffe 0%, #ebfffe 82.413%);
    box-shadow: 0 5px 14px 0 rgba(0,106,255,0.16);
    z-index: auto;
  }
  .s2-prod-card:hover .s2-prod-pattern {
    background: url('../images/product/Card_default_bg_pattern.png') center/cover no-repeat;
  }
  .s2-prod-card:hover .s2-prod-img--default { opacity: 1; }
  .s2-prod-card:hover .s2-prod-img--hover   { opacity: 0; }
  .s2-app-card:hover .s2-app-card-img img   { transform: none; }
  .s2-app-card:hover .s2-app-btn {
    background: transparent;
    box-shadow: none;
  }
  .s2-app-card:hover .s2-app-btn svg path { fill: #30D7CD; }

  /* ── S5 Insights ── */
  .s5-insights {
    flex-direction: column;
    padding: 80px 30px 100px;
    gap: 36px;
    overflow: visible;
  }
  .s5-wrap {
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
  }
  .s5-label-top {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
  }
  .s5-nav-btns { display: none; }
  .s5-title {
    font-size: 32px;
    white-space: normal;
    text-align: left;
    margin-bottom: 0;
  }
  .s5-cards-area {
    width: 100%;
    margin-left: 0;
    overflow: visible;
    padding-bottom: 40px;
  }
  .s5-cards-track .slick-list { overflow: hidden; margin: 0 -12px; }
  .s5-cards-track .slick-slide { padding: 0 12px; }
  .s5-cards-track .slick-slide > div { display: block; }
  /* Dots below cards */
  /* S5 Insights dots — Banner 同款 */
  .s5-cards-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));
  }
  .s5-cards-track .slick-dots li { width: 14px; height: 14px; margin: 0; padding: 0; }
  .s5-cards-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;
  }
  .s5-cards-track .slick-dots li button::before { display: none !important; }
  .s5-cards-track .slick-dots li.slick-active button { background: #fff; }

  /* ── S6 News ── */
  .s6-news { padding-top: 0; }
  .s6-wrap { max-width: 100%; padding: 0 30px; }
  .s6-title { font-size: 32px; }
  .s6-header { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .s6-cards {
    flex-direction:column;
    gap: 0;
    overflow: visible;
    padding-bottom: 40px;
  }

  /* S6 News dots — Banner 同款 */
  .s6-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));
  }
  .s6-cards .slick-dots li { width: 14px; height: 14px; margin: 0; padding: 0; }
  .s6-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;
  }
  .s6-cards .slick-dots li button::before { display: none !important; }
  .s6-cards .slick-dots li.slick-active button { background: #fff; }
  .s6-cards .slick-list  { margin: 0 -12px; }
  .s6-cards .slick-slide { padding: 0 12px; }

  /* ── S7 Service ── */
  .s7-wrap { max-width: 100%; padding: 0 30px; }
  .s7-title { font-size: 32px; }
  .s7-grid { grid-template-columns: repeat(2, 1fr); }
  .s7-service { padding: 0 0 100px; }
  .s7-bg-deco {
    width: calc(1175 / 1440 * 100vw);
    height: calc(750 / 1440 * 100vw);
  }

  /* ── Decorative images ── */
  .hero-bg-layer .glow-img { max-width: 70vw; }
  .hero-bg-layer .glow-blue-oval { top: auto; bottom: 2vh; }
  .s2-bg-particle           { width: 60vw; }
  .s4-bg-ellipse            { max-width: 70vw; }
  .s6-bg-ellipse            { max-width: 100%; }

  /* ── Service Modal ── */
  .svc-modal-title { font-size: 32px; }
  .svc-modal-body { padding: 60px 36px; }
  .svc-modal-cols { align-items: stretch; }
  .svc-col { justify-content: space-between; }
  .svc-col-upper { min-height: auto; }
  .btn-svc-green { white-space: normal; padding: 10px 20px; font-size: 16px; }
}

/* ================================================================
   RWD — Mobile (≤ 767px)
   ================================================================ */
@media (max-width: 767px) {
  .hdr-actions { gap: 0; }
  /* ── Hero Banner ── */
  .banner-hero-content {
    left: 50%;
    right: auto;
    width: min(504px, calc(100vw - 40px));
    max-width: none;
    transform: translateX(-50%);
    bottom: auto;
    top: 18%;
  }
  .banner-hero-heading { font-size: 32px; }
  .banner-hero-sub    { font-size: 18px; }
  .banner-hero-btn {
    width: auto;
    padding: 12px 24px;
    font-size: 16px;
    justify-content: center;
  }
  .banner-slide-move,
  .banner-slide-default {
    left: auto;
    right: 0;
    top: auto;
    bottom: 13vh;
    width: 100vw;
    height: auto;
    transform: none;
  }
  .banner-slide-move img,
  .banner-slide-default img { height: auto; }
  .hero-banner .slick-dots { bottom: 24px; }

  /* ── S2 Product Category — 2×2 grid (no carousel) ── */
  .s2-s1 { padding: 60px 0 60px; }
  .s2-s1 .s2-title { padding: 0 20px; }
  .s2-prod-wrap { width: 100%; padding: 0 20px; }
  .s2-prod-label {font-size:18px;}
  .s2-product-carousel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    margin: 0;
  }
  .s2-product-carousel > div:nth-child(n+5) { display: none; }
  .s2-prod-wrap .slick-prev,
  .s2-prod-wrap .slick-next { display: none !important; }

  /* ── S2 Application — 單張全寬 ── */
  .s2-s2 { padding-top: 40px; padding-bottom: 40px; }
  .s2-app-viewport { height: 420px; overflow: hidden; margin: 0 20px; }
  .s2-app-track .slick-list { overflow: hidden; }
  .s2-app-track .slick-slide,
  .s2-app-track .slick-slide.slick-wide { width: calc(100vw - 40px) !important; margin-right: 16px; }
  .s2-app-slide,
  .s2-app-slide.is-active { width: 100%; height: 420px; }
  /* 手機只顯示 current 卡，強制套用 is-active 展開樣式 */
  .s2-app-track .slick-current .s2-app-card { height: 420px; border-radius: 5px; }
  .s2-app-track .slick-current .s2-app-card-overlay { padding: 120px 24px 36px 28px; }
  .s2-app-track .slick-current .s2-app-card-info { gap: 12px; }
  .s2-app-track .slick-current .s2-app-card-title { font-size: 28px; line-height: 1.2; white-space: normal; }
  .s2-app-track .slick-current .s2-app-btn { background: #FF9B00; box-shadow: 0 1.2px 1.2px rgba(0,0,0,0.05); }
  .s2-app-track .slick-current .s2-app-btn svg { width: 24px; height: 24px; }
  .s2-app-track .slick-current .s2-app-btn svg path { fill: #fff; }
  .s2-app-track .slick-slide:not(.slick-current) .s2-app-card { height: 420px; }
  .s2-app-pagination { padding: 20px 20px 0; }
  /* ── S5 Insights ── */
  .s5-insights { padding: 60px 20px 60px; gap: 24px; overflow: visible; }
  .s5-title { font-size: 28px; }
  .s5-wrap { flex-wrap: wrap; gap: 16px; }
  /* Insights — 單張全寬 */
  .s5-cards-area { overflow: visible; width: 100%; margin: 0; padding: 0 0 44px; }
  .s5-cards-track .slick-list { overflow: hidden !important; }

  /* ── S6 News ── */
  .s6-news { padding-top: 0; padding-bottom: 24px; }
  .s6-wrap { max-width: 100%; padding: 0 20px; }
  .s6-header {
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 24px;
  }
  .s6-title { font-size: 28px; }
  .s6-cards { flex-direction: column; gap:0;}
  .s-news-card--dated { width: 100%; }

  /* ── S7 Service ── */
  .s7-service { padding: 0 0 80px; }
  .s7-wrap { max-width: 100%; padding: 0 20px; }
  .s7-title { font-size: 28px; margin-bottom: 28px; }
  .s7-grid { grid-template-columns: 1fr; gap: 16px; }
  .s7-bg-deco { width: 100%; left: 0; top: auto; bottom: 0; }

  /* ── Decorative images ── */
  .hero-bg-layer .glow-blue-angled{ max-width:180vw; top:-80px; left:-250px;}
  .hero-bg-layer .glow-orange { display: none; }
  .hero-bg-layer .glow-blue-oval { max-width:80vw; top: auto; bottom: 15vh; }
  .s2-bg-circles{
    left: -200px;
    width: 200%;
  }
  .s2-bg-particle           { right: -110px; width: 110vw; }
  @keyframes s2-fade-from-top-mobile {
    from { opacity: 0; transform: translateY(-130px); }
    to   { opacity: 1; transform: translateY(-50px); }
  }
  .s2-section.s2--anim .s2-bg-particle {
    animation-name: s2-fade-from-top-mobile;
  }
  .s4-bg-ellipse            { max-width: 185vw; }
  .s4-bg-circuit            { max-width: 185vw; }
  .s4-bg-bottom-gradient    { width: 300vw; }
  .s6-bg-ellipse            { max-width: none; width: 180%; }

  /* ── Floating Button ── */
  .floating-service-btn { right: 16px; bottom: 24px; }

  /* ── Service Modal ── */
  .svc-modal-wrap {
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .svc-modal-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 20;
  }
  .svc-modal-body {
    padding: 40px;
    gap: 28px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
  }
  .btn-svc-green { white-space: normal; padding: 10px 16px; width: 100%; }
  .svc-modal-title { font-size: 26px; }
  .svc-modal-cols { flex-direction: column; gap: 0; align-items: stretch; }
  .svc-col { border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 24px; margin-bottom: 24px; width: 100%; }
  .svc-col:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
  .svc-col-upper { min-height: auto; gap: 20px; }
  .svc-col-div { display: none; }
}

/* ================================================================
   RWD — Phone (≤ 576px)
   ================================================================ */
@media (max-width: 576px) {
  .hero-banner .single-item { z-index: 25; }
  .hero-bg-layer { z-index: 10; }
  .hero-bg-layer .glow-blue-oval { top: auto; bottom: 9vh; }

  /* ── Service Modal ── */
  .svc-modal-wrap {
    max-width: 100vw;
    max-height: 92dvh;
  }
  .svc-modal-body {
    padding: 40px 20px 24px;
    gap: 20px;
  }
  .svc-modal-title { font-size: 22px; }
  .svc-col-icon { width: 72px; height: 72px; }
  .svc-col { padding-bottom: 20px; margin-bottom: 20px; }
  .btn-svc-green { font-size: 15px; padding: 10px 12px; }
}


/* ================================================================
   RWD — Phone (≤ 390px)
   ================================================================ */
   @media (max-width: 390px) {
    .banner-slide-move,
    .banner-slide-default {
      right: 0;
      bottom: 13vh;
      width: 95%;
    }
    .hero-bg-layer .glow-blue-oval{
      bottom: 6vh;
    }
  }


/* ================================================================
   RWD — Phone Landscape (寬≤1023px + 高≤500px + landscape)
   ================================================================ */
@media (max-width: 1023px) and (orientation: landscape) and (max-height: 500px) {
  .banner-slide-move,
  .banner-slide-default {
    top: 5vh;
    height: 85vh;
    width: 70vw;
    right: -5vw;
  }
  .banner-hero-content {
    bottom: 8vh;
    left: 20px;
    right: 45vw;
    width: auto;
    max-width: none;
  }
  .banner-hero-btn { font-size: 14px; padding: 10px 20px; }

  /* ── Service Modal (landscape phone) ── */
  .svc-modal-overlay { align-items: flex-start; padding: 8px 0; }
  .svc-modal-wrap {
    max-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .svc-modal-body { padding: 20px 24px; gap: 16px; }
  .svc-modal-title { font-size: 20px; }
  .svc-modal-cols { flex-direction: row; gap: 16px; }
  .svc-col-div { display: block; }
  .svc-col-upper { gap: 12px; }
  .svc-col-icon { width: 56px; height: 56px; }
  .btn-svc-green { font-size: 14px; padding: 8px 10px; }
}
