/* 手機版 CSS 漸層虛線連接器 — 讓它像桌機 SVG 連接線一樣流動 */
@keyframes mdashflow { to { background-position: 0 11px; } }
[style*="repeating-linear-gradient(#aab4c0"] {
  animation: mdashflow 1.1s linear infinite;
}

/* =====================================================================
   DIGISEC scroll-fx — additive scroll-motion layer
   ---------------------------------------------------------------------
   - All "hidden / animatable" initial states are scoped under html.sfx,
     a class added by scroll-fx.js ONLY when motion is allowed.
     => If JS is disabled or prefers-reduced-motion is on, nothing here
        hides content; the site renders exactly as before.
   - Brand tokens reused from styles.css / home.css (--orange etc.)
   ===================================================================== */

/* ---------- scroll progress bar ---------- */
.sfx-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
  background: transparent;
}
.sfx-progress > i {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #ee7b00, #ffb054);
}

/* ---------- hero parallax ---------- */
html.sfx .hero > video,
html.sfx .hero > img,
html.sfx [data-sfx-parallax] {
  will-change: transform;
}
/* page-hero / solution-detail-hero get a parallaxed inner layer */
html.sfx .page-hero,
html.sfx .solution-detail-hero {
  overflow: hidden;
}

/* hero 釘住固定並正好撐滿視窗（banner 自動填滿剩餘空間，標題永遠可見）；
   架構圖以下整塊白卡從底部往上滑蓋過 hero（桌機） */
@media (min-width: 881px) {
  html.sfx .solution-detail-hero {
    position: sticky;
    top: 76px;
    z-index: 0;
    height: calc(100vh - 76px);
    display: flex;
    flex-direction: column;
  }
  html.sfx .solution-detail-hero > .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  html.sfx .solution-detail-visual {
    flex: 1 1 auto;
    min-height: 0;
  }
  html.sfx .solution-detail-hero .solution-detail-banner {
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }
  html.sfx .detail-sheet {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -30px 70px rgba(17, 19, 24, 0.18);
  }
}

/* 手機版：hero 釘住固定、架構圖以下整塊白卡往上滑蓋過 hero（header 68px） */
@media (max-width: 880px) {
  html.sfx .solution-detail-hero {
    position: sticky;
    top: 68px;
    z-index: 0;
  }
  html.sfx .detail-sheet {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -22px 50px rgba(17, 19, 24, 0.16);
  }
}

/* =====================================================================
   COUNT-UP — no hidden state needed (JS swaps text); just stabilise width
   ===================================================================== */
html.sfx .case-stats strong,
html.sfx .metric-strip strong {
  font-variant-numeric: tabular-nums;
}

/* =====================================================================
   SEQUENTIAL STEP LIGHT-UP  (home .service-grid, solutions .solution-process)
   ===================================================================== */
html.sfx .service-grid[data-sfx-steps].sfx-armed .service-card,
html.sfx .solution-process[data-sfx-steps].sfx-armed > li {
  opacity: 0.4;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)),
              transform 0.5s var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)),
              box-shadow 0.5s ease, border-color 0.5s ease;
}
html.sfx .service-grid[data-sfx-steps] .service-card.sfx-lit,
html.sfx .solution-process[data-sfx-steps] > li.sfx-lit {
  opacity: 1;
  transform: translateY(0);
}
/* the currently-activating card gets a brand glow as it lights */
html.sfx .service-grid[data-sfx-steps] .service-card.sfx-cue {
  border-color: rgba(238, 123, 0, 0.5);
  box-shadow: 0 18px 44px rgba(238, 123, 0, 0.16);
}
html.sfx .solution-process[data-sfx-steps] > li.sfx-cue {
  border-color: rgba(238, 123, 0, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
/* connector progress line drawn across the service grid */
html.sfx .service-grid[data-sfx-steps] {
  position: relative;
}
html.sfx .service-grid[data-sfx-steps] .sfx-railing {
  position: absolute;
  top: 119px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: rgba(238, 123, 0, 0.16);
  z-index: 0;
  pointer-events: none;
}
html.sfx .service-grid[data-sfx-steps] .sfx-railing > i {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #ee7b00, #ffb054);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (max-width: 960px) {
  html.sfx .service-grid[data-sfx-steps] .sfx-railing { display: none; }
}

/* =====================================================================
   ARCHITECTURE LAYERS SELF-DRAW  (solutions .architecture-layers)
   ===================================================================== */
html.sfx .architecture-layers[data-sfx-arch] {
  position: relative;
  padding-left: 26px;
}
html.sfx .architecture-layers[data-sfx-arch]::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(238, 123, 0, 0.18);
}
html.sfx .architecture-layers[data-sfx-arch]::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, #ee7b00, #ffb054);
  transition: height 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
html.sfx .architecture-layers[data-sfx-arch].sfx-drawn::after {
  height: calc(100% - 16px);
}
html.sfx .architecture-layers[data-sfx-arch].sfx-armed > div {
  position: relative;
  opacity: 0.32;
  transform: translateX(12px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
html.sfx .architecture-layers[data-sfx-arch] > div::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: #cfd4da;
  box-shadow: 0 0 0 4px var(--soft, #f4f5f5);
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
html.sfx .architecture-layers[data-sfx-arch] > div.sfx-lit {
  opacity: 1;
  transform: translateX(0);
}
html.sfx .architecture-layers[data-sfx-arch] > div.sfx-lit::before {
  background: #ee7b00;
  box-shadow: 0 0 0 4px rgba(238, 123, 0, 0.18);
  transform: scale(1.15);
}

/* =====================================================================
   DETAIL DIAGRAM — scan / self-draw reveal
   ===================================================================== */
html.sfx .sfx-diagram-wrap {
  position: relative;
  overflow: hidden;
}
html.sfx .sfx-diagram-wrap.sfx-armed .solution-detail-diagram {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.25s cubic-bezier(0.4, 0, 0.1, 1);
}
html.sfx .sfx-diagram-wrap.sfx-armed.sfx-drawn .solution-detail-diagram {
  clip-path: inset(0 0% 0 0);
}
/* travelling scan line */
html.sfx .sfx-diagram-wrap .sfx-scan {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  left: 0;
  background: linear-gradient(180deg, transparent, #ee7b00 22%, #ffb054 78%, transparent);
  box-shadow: 0 0 22px 6px rgba(238, 123, 0, 0.45);
  opacity: 0;
}
html.sfx .sfx-diagram-wrap.sfx-drawn .sfx-scan {
  animation: sfx-scan-move 1.25s cubic-bezier(0.4, 0, 0.1, 1) forwards;
}
@keyframes sfx-scan-move {
  0% { left: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* =====================================================================
   HORIZONTAL PINNED SECTION  (home five solutions)
   ===================================================================== */
.sfx-hwrap {
  padding: 0 !important;
  display: block !important;
  min-height: 0 !important;
  background: var(--charcoal, #141414);
  color: #fff;
}
/* default / fallback (no JS, reduced motion, mobile): readable vertical stack */
.sfx-htrack {
  display: flex;
  flex-direction: column;
}
.sfx-hpanel {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.sfx-hpanel > .sfx-hbg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.sfx-hpanel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(8, 10, 14, 0.92), rgba(8, 10, 14, 0.5) 52%, rgba(8, 10, 14, 0.18));
}
.sfx-hpanel-inner {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 96px 0;
}
.sfx-hpanel-index {
  font-size: clamp(64px, 9vw, 150px);
  font-weight: 950;
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: rgba(238, 123, 0, 0.22);
}
.sfx-hpanel-eyebrow {
  margin: 10px 0 8px;
  color: #ee7b00;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sfx-hpanel-inner h3 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4.4vw, 54px);
  font-weight: 950;
  line-height: 1.12;
  max-width: 620px;
}
.sfx-hpanel-inner > p {
  margin: 0 0 22px;
  max-width: 480px;
  color: #e6e9ee;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
}
.sfx-hpanel-features {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  max-width: 540px;
}
.sfx-hpanel-features li {
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #dfe4ea;
}
.sfx-hpanel .read-more {
  margin-top: 0;
  color: #0b0b0b;
  background: #fff;
  border-color: #fff;
}
.sfx-hpanel .read-more:hover {
  color: #fff;
  background: transparent;
  border-color: #fff;
}
/* overlay heading + dots (only meaningful when pinned) */
.sfx-hhead,
.sfx-hdots { display: none; }

/* ----- pinned behaviour: desktop + motion only ----- */
@media (min-width: 961px) {
  html.sfx .sfx-hwrap[data-sfx-horizontal] {
    height: 460vh;
  }
  html.sfx .sfx-hwrap[data-sfx-horizontal] .sfx-hsticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
  }
  html.sfx .sfx-hwrap[data-sfx-horizontal] .sfx-htrack {
    flex-direction: row;
    height: 100vh;
    width: 500vw;
    will-change: transform;
  }
  html.sfx .sfx-hwrap[data-sfx-horizontal] .sfx-hpanel {
    flex: 0 0 100vw;
    height: 100vh;
    min-height: 0;
  }
  html.sfx .sfx-hwrap[data-sfx-horizontal] .sfx-hhead {
    position: absolute;
    top: 92px;
    left: max(24px, calc((100vw - 1160px) / 2));
    z-index: 5;
    display: block;
    max-width: 60vw;
  }
  html.sfx .sfx-hwrap[data-sfx-horizontal] .sfx-hhead .section-label,
  html.sfx .sfx-hwrap[data-sfx-horizontal] .sfx-hhead .solution-title {
    color: #fff;
    text-align: left;
    margin: 0;
  }
  html.sfx .sfx-hwrap[data-sfx-horizontal] .sfx-hhead .solution-title {
    font-size: clamp(28px, 3.2vw, 44px);
    margin-top: 4px;
  }
  html.sfx .sfx-hwrap[data-sfx-horizontal] .sfx-hdots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 9px;
  }
  html.sfx .sfx-hwrap[data-sfx-horizontal] .sfx-hdots > span {
    width: 22px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.3s ease, background 0.3s ease;
  }
  html.sfx .sfx-hwrap[data-sfx-horizontal] .sfx-hdots > span.on {
    width: 46px;
    background: #ee7b00;
  }
  /* push panel content down a touch so it clears the overlay heading */
  html.sfx .sfx-hwrap[data-sfx-horizontal] .sfx-hpanel-inner {
    padding-top: 150px;
  }
}

/* reduce motion: neutralise any fancy initial states even if html.sfx slipped on */
@media (prefers-reduced-motion: reduce) {
  html.sfx .service-grid[data-sfx-steps] .service-card,
  html.sfx .solution-process[data-sfx-steps] > li,
  html.sfx .architecture-layers[data-sfx-arch] > div {
    opacity: 1 !important;
    transform: none !important;
  }
  html.sfx .sfx-diagram-wrap .solution-detail-diagram {
    clip-path: none !important;
  }
}

/* =====================================================================
   UI POLISH (additive overrides — loaded after styles.css / home.css)
   ===================================================================== */

/* (1) keep the hero carousel arrows clear of the floating support button */
.hero-arrows {
  margin-right: 80px;
}
@media (max-width: 640px) {
  .hero-arrows {
    margin-right: 62px;
  }
}

/* (2) open up the main-nav typography so CJK characters don't crowd */
.site-nav {
  gap: 10px;
}
.site-nav a {
  letter-spacing: 0.08em;
  font-weight: 700;
}
.site-nav a.nav-cta {
  letter-spacing: 0.12em;
}
/* eyebrow / section labels — open up CJK so they don't crowd (截圖一) */
.section-label,
.case-band .section-label {
  letter-spacing: 0.1em;
}
.case-band .section-head h2.display-title {
  letter-spacing: 0.04em;
}

/* =====================================================================
   REALISTIC multi-colour step icons (home 導入流程)
   The base chip forces fill:none/stroke:currentColor on its svg; the
   .svg-art variant opts out so the icons keep their own colours, and the
   chip behind them turns white so the colours read cleanly.
   ===================================================================== */
.service-icon svg.svg-art {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: none;
  stroke-width: 0;
}
.service-icon:has(svg.svg-art) {
  background: #ffffff;
  border-color: rgba(238, 123, 0, 0.18);
  box-shadow: 0 8px 22px rgba(16, 20, 27, 0.06);
}
@media (max-width: 640px) {
  .service-icon svg.svg-art { width: 34px; height: 34px; }
}

/* =====================================================================
   ARCHITECTURE NODE-GRAPH (solutions overview — desktop scroll-draw,
   mobile falls back to the original layered list)
   ===================================================================== */
.sfx-graph-wrap { padding: 0 !important; background: var(--soft, #f4f5f5); }
.sfx-graph-sticky {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 84px 0;
}
.sfx-graph-head { width: min(1160px, calc(100vw - 48px)); }
.sfx-graph-head h2 { margin: 6px 0 10px; }
.sfx-graph-head .section-copy { margin: 0; max-width: 640px; }
.sfx-graph-stage { display: none; position: relative; width: min(960px, calc(100vw - 40px)); aspect-ratio: 1200 / 680; }
.sfx-graph-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sfx-graph-stage svg path { fill: none; stroke: #ee7b00; stroke-width: 2.5; stroke-linecap: round; }
.sfx-gnode {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 150px;
  padding: 14px 12px;
  text-align: center;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(17, 19, 24, 0.08);
}
.sfx-gnode .t { font-size: 13px; font-weight: 900; color: #ee7b00; letter-spacing: 0.05em; }
.sfx-gnode .s { margin-top: 3px; font-size: 12px; color: #616775; }
.sfx-gnode.is-platform {
  width: 280px;
  padding: 22px 18px;
  background: linear-gradient(135deg, #20242c, #111318);
  border-color: #111318;
  box-shadow: 0 22px 50px rgba(17, 19, 24, 0.22);
}
.sfx-gnode.is-platform .pe { font-size: 12px; font-weight: 800; color: #ee7b00; letter-spacing: 0.12em; text-transform: uppercase; }
.sfx-gnode.is-platform .pt { margin-top: 6px; font-size: 22px; font-weight: 900; color: #fff; }
.sfx-gnode.is-platform .ps { margin-top: 4px; font-size: 13px; color: #cbd1da; }
.sfx-gnode.is-command {
  width: 240px;
  padding: 18px 16px;
  background: #ee7b00;
  border: 0;
  box-shadow: 0 18px 44px rgba(238, 123, 0, 0.32);
}
.sfx-gnode.is-command .ce { font-size: 12px; font-weight: 800; color: rgba(255, 255, 255, 0.85); letter-spacing: 0.12em; text-transform: uppercase; }
.sfx-gnode.is-command .ct { margin-top: 5px; font-size: 21px; font-weight: 900; color: #fff; }

@media (min-width: 961px) {
  html.sfx .sfx-graph-wrap[data-sfx-graph] { height: 300vh; }
  html.sfx .sfx-graph-wrap[data-sfx-graph] .sfx-graph-sticky { position: sticky; top: 0; height: 100vh; }
  html.sfx .sfx-graph-wrap[data-sfx-graph] .sfx-graph-stage { display: block; }
  html.sfx .sfx-graph-wrap[data-sfx-graph] .sfx-graph-fallback { display: none; }
}

/* =====================================================================
   PINNED STEP LIGHT-UP (solutions deployment — desktop pinned scene,
   mobile falls back to the original .solution-process list)
   ===================================================================== */
.sfx-ps-wrap { padding: 0 !important; }
.sfx-ps-sticky { display: none; }
.sfx-ps-head { margin-bottom: 36px; }
.sfx-ps-watermark {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(160px, 26vw, 420px);
  font-weight: 900;
  color: rgba(238, 123, 0, 0.08);
  line-height: 0.8;
  letter-spacing: -0.05em;
  pointer-events: none;
}
.sfx-ps-grid {
  position: relative;
  width: min(1100px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 44px;
}
.sfx-ps-rail { position: absolute; left: 0; right: 0; top: 13px; height: 3px; background: rgba(255, 255, 255, 0.14); }
.sfx-ps-fill { position: absolute; left: 0; right: 0; top: 13px; height: 3px; background: linear-gradient(90deg, #ee7b00, #ffb054); transform: scaleX(0); transform-origin: left center; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sfx-ps-step { position: relative; color: rgba(255, 255, 255, 0.45); transition: color 0.4s ease; }
.sfx-ps-step .dot { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); margin-bottom: 14px; transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease; }
.sfx-ps-step .lab { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; }
.sfx-ps-step .ti { margin-top: 4px; font-size: 18px; font-weight: 900; }
.sfx-ps-step.on { color: #fff; }
.sfx-ps-step.on .dot { background: #ee7b00; }
.sfx-ps-step.cur .dot { transform: scale(1.18); box-shadow: 0 0 0 8px rgba(238, 123, 0, 0.18); }
.sfx-ps-panels { position: relative; width: min(1100px, calc(100vw - 48px)); min-height: 156px; }
.sfx-ps-panel { position: absolute; inset: 0; opacity: 0; transform: translateY(22px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); pointer-events: none; }
.sfx-ps-panel.on { opacity: 1; transform: none; pointer-events: auto; }
.sfx-ps-panel h3 { margin: 0 0 10px; font-size: clamp(22px, 3vw, 32px); font-weight: 900; color: #fff; }
.sfx-ps-panel p { margin: 0; max-width: 580px; color: #cbd1da; font-size: 17px; line-height: 1.7; }
.sfx-ps-tag { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 16px; border: 1px solid rgba(238, 123, 0, 0.5); border-radius: 999px; color: #ee7b00; font-size: 14px; font-weight: 800; }

@media (min-width: 961px) {
  html.sfx .sfx-ps-wrap[data-sfx-pinsteps] { height: 380vh; }
  html.sfx .sfx-ps-wrap[data-sfx-pinsteps] .sfx-ps-sticky { display: flex; position: sticky; top: 0; height: 100vh; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
  html.sfx .sfx-ps-wrap[data-sfx-pinsteps] .sfx-ps-fallback { display: none; }
}
.sfx-ps-head h2 { color: #fff; }
.sfx-ps-head { width: min(1100px, calc(100vw - 48px)); }

/* =====================================================================
   CORE FUNCTIONS — frameless, editorial text reveal (solution detail)
   Base (frameless) styling applies always so even reduced-motion users
   get the no-card look; the dimmed initial state only arms when JS is
   confirmed healthy (.sfx-armed), so content is never left hidden.
   ===================================================================== */
.detail-feature-grid[data-sfx-features] {
  gap: 34px 48px;
  counter-reset: sfxfeat;
}
.detail-feature-grid[data-sfx-features] > div {
  counter-increment: sfxfeat;
  position: relative;
  min-height: 0 !important;
  padding: 26px 30px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  animation: none !important;
}
/* orange hairline rule across the top of each item */
.detail-feature-grid[data-sfx-features] > div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ee7b00, #ffb054);
  transform: scaleX(1);
  transform-origin: left center;
}
/* index number, top-right */
.detail-feature-grid[data-sfx-features] > div::after {
  content: "0" counter(sfxfeat);
  position: absolute;
  top: 15px;
  right: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: rgba(238, 123, 0, 0.55);
}
.detail-feature-grid[data-sfx-features] strong {
  font-size: 20px;
  letter-spacing: 0.01em;
  display: block;
}
.detail-feature-grid[data-sfx-features] p {
  margin-top: 10px;
  line-height: 1.75;
}

/* armed = JS healthy: each item plays a small internal choreography on .sfx-lit
   — item springs up · orange rule draws · number drops · title rises · copy fades.
   Items are also staggered against each other by JS, so the whole grid ripples in. */
html.sfx .detail-feature-grid[data-sfx-features].sfx-armed > div {
  opacity: 0;
  transform: translateY(54px) scale(0.92);
  transition: opacity 0.8s ease,
              transform 1.15s cubic-bezier(0.22, 1.7, 0.36, 1);
}
html.sfx .detail-feature-grid[data-sfx-features].sfx-armed > div::before {
  transform: scaleX(0);
  transition: transform 1.05s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}
html.sfx .detail-feature-grid[data-sfx-features].sfx-armed > div::after {
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 0.7s ease 0.34s,
              transform 0.95s cubic-bezier(0.22, 1.7, 0.36, 1) 0.34s;
}
html.sfx .detail-feature-grid[data-sfx-features].sfx-armed > div strong {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease 0.46s,
              transform 1.0s cubic-bezier(0.22, 1.6, 0.36, 1) 0.46s;
}
html.sfx .detail-feature-grid[data-sfx-features].sfx-armed > div p {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease 0.64s,
              transform 0.95s cubic-bezier(0.22, 1.5, 0.36, 1) 0.64s;
}
/* lit = released */
html.sfx .detail-feature-grid[data-sfx-features].sfx-armed > div.sfx-lit {
  opacity: 1;
  transform: none;
}
html.sfx .detail-feature-grid[data-sfx-features].sfx-armed > div.sfx-lit::before {
  transform: scaleX(1);
}
html.sfx .detail-feature-grid[data-sfx-features].sfx-armed > div.sfx-lit::after,
html.sfx .detail-feature-grid[data-sfx-features].sfx-armed > div.sfx-lit strong,
html.sfx .detail-feature-grid[data-sfx-features].sfx-armed > div.sfx-lit p {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.sfx .detail-feature-grid[data-sfx-features].sfx-armed > div,
  html.sfx .detail-feature-grid[data-sfx-features].sfx-armed > div strong,
  html.sfx .detail-feature-grid[data-sfx-features].sfx-armed > div p {
    opacity: 1 !important;
    transform: none !important;
  }
  html.sfx .detail-feature-grid[data-sfx-features].sfx-armed > div::before {
    transform: scaleX(1) !important;
  }
  html.sfx .detail-feature-grid[data-sfx-features].sfx-armed > div::after {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =====================================================================
   得暘整合優勢 — sys-card style cards, staggered reveal (solution detail)
   Reuses the data-sfx-features engine (JS stagger-adds .sfx-lit per card).
   Each card: rises + scales + fades · number chip pops in.
   Hover lift preserved after reveal. Static / reduced-motion = fully shown.
   ===================================================================== */
html.sfx .detail-highlight-grid[data-sfx-features].sfx-armed > .detail-highlight-card {
  opacity: 0;
  transform: translateY(46px) scale(0.96);
  transition: opacity 0.7s ease,
              transform 1.0s cubic-bezier(0.22, 1.5, 0.36, 1),
              box-shadow 0.28s, border-color 0.28s;
}
html.sfx .detail-highlight-grid[data-sfx-features].sfx-armed > .detail-highlight-card .dh-ic {
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.6s ease 0.22s,
              transform 0.8s cubic-bezier(0.22, 1.7, 0.36, 1) 0.22s;
}
/* released */
html.sfx .detail-highlight-grid[data-sfx-features].sfx-armed > .detail-highlight-card.sfx-lit {
  opacity: 1;
  transform: none;
}
html.sfx .detail-highlight-grid[data-sfx-features].sfx-armed > .detail-highlight-card.sfx-lit .dh-ic {
  opacity: 1;
  transform: none;
}
/* keep the hover lift working after the reveal settles */
html.sfx .detail-highlight-grid[data-sfx-features].sfx-armed > .detail-highlight-card.sfx-lit:hover {
  transform: translateY(-4px);
}
@media (prefers-reduced-motion: reduce) {
  html.sfx .detail-highlight-grid[data-sfx-features].sfx-armed > .detail-highlight-card,
  html.sfx .detail-highlight-grid[data-sfx-features].sfx-armed > .detail-highlight-card .dh-ic {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =====================================================================
   HOMEPAGE FIELD CASES — stat strip + featured + list (additive)
   ===================================================================== */
.fc-stats {
  display: flex;
  gap: 46px;
  flex-wrap: wrap;
  margin: 4px 0 34px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.case-band .fc-stats strong {
  color: var(--orange);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.case-band .fc-stats span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  letter-spacing: 0.05em;
}
/* the shared .case-stats class adds white stat-cards on the cases page —
   neutralise that here so the strip sits flush on the dark band, left-aligned */
.case-band .fc-stats div {
  background: transparent;
  padding: 0;
  border: 0;
  box-shadow: none;
  min-height: 0;
  text-align: center;
  display: block;
}
.fc-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
}
.fc-feat {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
}
.fc-feat .fc-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.fc-feat .fc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fc-feat:hover .fc-img img { transform: scale(1.05); }
.fc-pin {
  position: absolute;
  left: 14px;
  top: 14px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border-radius: 999px;
}
.fc-feat .fc-bd {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 24px;
}
.fc-feat h3 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: normal;
}
.fc-feat p {
  margin: 0;
  color: #5b616b;
  font-size: 14.5px;
  line-height: 1.8;
  letter-spacing: 0.06em;
}
.fc-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.fc-tags .t {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--orange-dark);
  background: rgba(238, 123, 0, 0.10);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}
.fc-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--orange);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}
.fc-more svg { width: 18px; height: 18px; }
.fc-list { display: flex; flex-direction: column; gap: 10px; }
.fc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.fc-row:hover {
  background: rgba(238, 123, 0, 0.12);
  border-color: rgba(238, 123, 0, 0.5);
  transform: translateX(3px);
}
.fc-row img {
  width: 88px;
  height: 62px;
  object-fit: cover;
  border-radius: 8px;
  flex: none;
}
.fc-row .m span {
  display: block;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.fc-row .m b {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: normal;
}
.fc-row .ar {
  margin-left: auto;
  padding-right: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 22px;
}
.fc-list .fc-more { margin-top: 4px; }
@media (max-width: 860px) {
  .fc-grid { grid-template-columns: 1fr; }
  .fc-stats { gap: 30px; }
  .case-band .fc-stats strong { font-size: 36px; }
}
