/* ===============================
   DFS Hero Canvas Lock
=============================== */

.ai-hero-right{
  position: relative;
  min-height: 360px;             
}

.dfs-canvas-shell{
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;          
  max-height: 420px;
  border-radius: 28px;
  overflow: hidden;

  background: linear-gradient(
    145deg,
    rgba(255,255,255,.85),
    rgba(245,248,255,.95)
  );

  box-shadow: 0 24px 60px rgba(140,150,210,.35);
}

/* Canvas永遠填滿 shell*/
#vidawareCanvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background:
    radial-gradient(120% 80% at 50% 20%, rgba(90,120,255,.12), transparent 60%),
    radial-gradient(80% 60% at 80% 80%, rgba(255,180,120,.10), transparent 65%),
    linear-gradient(180deg, #0b1224 0%, #050814 100%);

  border-radius: 24px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    inset 0 -40px 80px rgba(0,0,0,.55),
    0 40px 80px rgba(10,15,40,.55);
}

/* 標題浮在 canvas 上 */
.canvas-title{
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 5;

  background: rgba(255, 255, 255, 0.846);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 10px 14px;

  box-shadow: 0 10px 26px rgba(120,140,210,.25);
}

.canvas-title h4{
  margin: 0;
  font-size: .9rem;
  font-weight: 700;
  display:flex;
  align-items:center;
  gap:10px;
}

#phaseIcon{
  width:28px;
  height:28px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;

  background: rgba(255,255,255,.12);
  color:#c7d2fe;

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.18),
    0 6px 18px rgba(40,80,200,.35);
  font-size:14px;
}

.canvas-title p{
  margin: 2px 0 0;
  font-size: .75rem;
  color: #5b6388;
}

/* 動畫背景層 */
.dfs-canvas-shell::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 30% 20%,
      rgba(180,200,255,.45),
      transparent 55%),
    radial-gradient(circle at 80% 70%,
      rgba(255,220,160,.35),
      transparent 60%);
  opacity:.75;
  pointer-events:none;
}

.dfs-canvas-shell::after{
  content:"";
  position:absolute;
  inset:-30%;
  background:
    radial-gradient(circle,
      rgba(255,255,255,.18),
      transparent 70%);
  filter: blur(40px);
  animation: dfsFogMove 28s ease-in-out infinite alternate;
  pointer-events:none;
}

@keyframes dfsFogMove{
  0%{ transform:translate(-4%, -2%); }
  100%{ transform:translate(4%, 3%); }
}




/* ==============================
   DFS Fusion Section (Isolated)
============================== */

.dfs-fusion-sec{
  padding: 96px 0;
  background: linear-gradient(
    180deg,
    #f6f8ff 0%,
    #eef2ff 100%
  );
}

.dfs-fusion-wrap{
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.dfs-fusion-head{
  text-align: center;
  margin-bottom: 64px;
}

.dfs-fusion-eyebrow{
  font-size: 12px;
  letter-spacing: .24em;
  color: #5a6cff;
  font-weight: 600;
}

.dfs-fusion-title{
  font-size: 36px;
  font-weight: 800;
  margin: 12px 0 8px;
  color: #0b1437;
}

.dfs-fusion-sub{
  color: #5f6b85;
}

/* Grid */
.dfs-fusion-grid{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
}

/* Card */
.dfs-card{
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(18px);
  border-radius: 20px;
  padding: 28px 26px 32px;
  border: 1px solid rgba(30,60,180,.08);
  box-shadow:
    0 20px 50px rgba(20,40,120,.08);
  transition: 
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;
  cursor: pointer;
  outline: none;
}

.dfs-card:hover,
.dfs-card:focus-visible{
  transform: translateY(-8px);
  border-color: rgba(70,120,255,.45);
  box-shadow:
    0 28px 70px rgba(40,80,200,.18);
}

.dfs-card h3{
  font-size: 18px;
  font-weight: 700;
  margin: 18px 0 10px;
  color: #0b1437;
}

.dfs-card p{
  font-size: 14px;
  line-height: 1.7;
  color: #5f6b85;
}

/* Icon */
.dfs-ico{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px; 
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.dfs-ico.blue{background:#4b63ff;}
.dfs-ico.green{background:#4caf84;}
.dfs-ico.orange{background:#ff8a3d;}
.dfs-ico.red{background:#ff5b5b;}
.dfs-ico.purple{background:#8a5cff;}
.dfs-ico.dark{background:#1f2937;}

.dfs-ico i{
  font-size: 18px;
  transform: translateY(1px); /* 視覺置中微調 */
}

/* RWD */
@media(max-width:1024px){
  .dfs-fusion-grid{grid-template-columns: repeat(2,1fr);}
}

@media(max-width:640px){
  .dfs-fusion-grid{grid-template-columns: 1fr;}
  .dfs-fusion-title{font-size:28px;}
}

/* ===== DFS Icon Breathing ===== */
@keyframes dfsBreath {
  0%,100% { box-shadow: 0 0 0 rgba(0,0,0,0); }
  50% {
    box-shadow:
      0 0 0 0 rgba(0,0,0,0),
      0 0 22px rgba(120,150,255,.35);
  }
}

.dfs-card .dfs-ico{
  animation: dfsBreath 4.8s ease-in-out infinite;
}

/* ===== Hover 強化 Hover / Active 狀態語意 ===== */
.dfs-card:hover .dfs-ico,
.dfs-card.is-active .dfs-ico{
  animation: none;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.6) inset,
    0 0 28px rgba(80,120,255,.65);
  transform: scale(1.08);
}

/* Icon 亮度提升 */
.dfs-card:hover .dfs-ico i,
.dfs-card.is-active .dfs-ico i{
  filter: brightness(1.15);
}



/* 數據流動感（API / Fusion 類 */
@keyframes dfsFlow {
  0%{ background-position: 0% 50%; }
  100%{ background-position: 200% 50%; }
}

.dfs-ico.green,
.dfs-ico.blue{
  background-image: linear-gradient(
    120deg,
    rgba(255,255,255,.35),
    rgba(255,255,255,.05),
    rgba(255,255,255,.35)
  );
  background-size: 200% 100%;
}  

/* 告警語意（Bell / Alert） */

@keyframes dfsAlert {
  0%{ transform: scale(1); }
  40%{ transform: scale(1.15); }
  100%{ transform: scale(1); }
}

.dfs-card.alert .dfs-ico.red{
  animation: dfsAlert 1.2s ease-in-out infinite;
  box-shadow:
    0 0 32px rgba(255,90,90,.8);
}

@keyframes dfsAlertPulse{
  0%{ box-shadow:0 0 0 rgba(255,80,80,0); }
  50%{ box-shadow:0 0 28px rgba(255,80,80,.9); }
  100%{ box-shadow:0 0 0 rgba(255,80,80,0); }
}

.vida-stream-item.is-alert{
  animation: dfsAlertPulse 1.2s infinite;
  opacity:1;
  box-shadow:
    inset 0 0 0 1px rgba(255,80,80,.6),
    0 0 24px rgba(255,80,80,.8);
}

/* ===============================
   DFS VIDA FLOW ARCH (Isolated)
================================ */

.vida-flow-sec{
  padding: 96px 0;
  background: linear-gradient(180deg,#f7f9ff,#eef3ff);
}

/* LEFT */
.vida-flow-title{
  font-size: 38px;
  font-weight: 800;
  color:#0b1437;
}

.vida-flow-desc{
  margin: 16px 0 40px;
  color:#5f6b85;
  max-width: 520px;
}

.vida-flow-steps{
  list-style:none;
  padding:0;
}

.vida-step{
  margin-bottom: 36px;
  cursor: pointer;
}

.vida-step-num{
  display:inline-grid;
  place-items:center;
  width:36px;
  height:36px;
  border-radius:50%;
  color:#fff;
  font-weight:700;
}

.vida-step.is-active{
  background: linear-gradient(
    90deg,
    rgba(90,120,255,.08),
    transparent
  );
  border-radius: 12px;
  padding-left: 12px;
}

.vida-step.is-active 
.vida-step-num{
  box-shadow: 0 0 0 6px rgba(75,99,255,.18);
}

.vida-step-num.blue{background:#4b63ff;}
.vida-step-num.dark{background:#1f2937;}
.vida-step-num.green{background:#4caf84;}

.vida-step.is-active h3{
  color:#4b63ff;
}

.vida-step h3{
  margin:12px 0 8px;
  font-size:18px;
}

.vida-step ul{
  padding-left:18px;
  color:#5f6b85;
}

/* ===== Balanced Control Wall Layout ===== */
.vida-flow-wrap{
  max-width: 1400px;
  margin: auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 4.5fr 1.2fr 5.3fr;
  align-items: start;
  gap: 32px;
}

/* ===== Data Flow Lines ===== */
.vida-flow-center{
  display:flex;
  justify-content:center;
}

.vida-flow-lines{
  width: 120px;
  height: 420px;
}

.flow-backbone{
  stroke: rgba(120,140,255,.15);
  stroke-width: 3;
}

.flow-line{
  stroke-width: 4;
  position: relative;
  stroke-linecap: round;
  stroke-dasharray: 6 12;
  animation: flowMove 2.2s linear infinite;
  opacity: .25;
  transition: opacity .35s ease;
}

.flow-line.is-active{
  opacity: 1;
}

/* 加速粒子（Active 時） */
.flow-line.is-active::after{
  animation-duration: .9s;
}

.flow-line::after{
  content:"";
  position:absolute;
  left:-6px;
  top:0;
  width:6px;
  height:16px;
  background: currentColor;
  border-radius:4px;
  animation: particleMove 1.6s linear infinite;
}

@keyframes particleMove{
  from{ top:0; opacity:0 }
  20%{opacity:1}
  to{ top:100%; opacity:0 }
}

.flow-input{ stroke:#6b8cff; }
.flow-ai{ stroke:#7ee2a8; animation-delay:.6s; }
.flow-output{ stroke:#ffb86b; animation-delay:1.2s; }

@keyframes flowMove{
  to{ stroke-dashoffset:-36; }
}

/* RIGHT CARD */
.vida-flow-right{
  padding-top: 16px;
}

.vida-stream-card{
  background: rgba(15,23,42,.92);
  color:#e5e7eb;
  border-radius: 28px;
  padding: 24px;
  box-shadow:
    0 60px 120px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.04);
}

.vida-stream-head{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  letter-spacing:.12em;
}

.vida-stream-head .dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#ff5b5b;
  animation:pulse 1.5s infinite;
}

.vida-stream-head .uptime{
  margin-left:auto;
  font-size:12px;
  opacity:.7;
}

@keyframes pulse{
  0%,100%{opacity:.4}
  50%{opacity:1}
}

.vida-flow-left{
  max-width: 520px;
}

.vida-flow-left p{
  font-size: 15px;
  line-height: 1.75;
}

/* ===== Stream Item Layout ===== */
.vida-stream-list{
  margin-top: 24px;
  display:flex;
  flex-direction:column;
  gap:12px;
  max-height:420px;
  overflow:hidden;
  max-height:420px;
  position:relative;
}

.vida-stream-list::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:48px;
  background:linear-gradient(
    to bottom,
    rgba(15,23,42,0),
    rgba(15,23,42,.9)
  );
  pointer-events:none;
}

.vida-stream-item{
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr auto 10px;
  gap: 12px;
  align-items: center;
  overflow: hidden;
  opacity: .65;
  transition: opacity .3s ease, transform .3s ease;
  background: rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 14px 16px;  
  justify-content:space-between;
  margin-bottom: 12px;
  font-family: "JetBrains Mono", monospace;
  filter: saturate(.85);  
}

.vida-stream-item.is-dim{
  opacity: .25;
  filter: saturate(.6);
}

/* Icon */
.stream-ico{
  color: currentColor;
  opacity: .9;
}

/* Status Dot */
.status-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background: currentColor;
  opacity:.35;
}

/* Active pulse */
.vida-stream-item.is-active .status-dot{
  animation: statusPulse 1.2s infinite;
  opacity:1;
}

@keyframes statusPulse{
  0%{transform:scale(.8);opacity:.4}
  50%{transform:scale(1.4);opacity:1}
  100%{transform:scale(.8);opacity:.4}
}

/* Data sweep effect */
.vida-stream-item::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255,255,255,.12),
    transparent 70%
  );
  transform: translateX(-120%);
}

.vida-stream-item.is-active::after{
  animation: sweep 1.1s linear;
}

@keyframes sweep{
  to{ transform: translateX(120%); }
}

.vida-stream-item.is-active{
  opacity: 1;
  filter: saturate(1.15);
  transform:translateX(2px);
  box-shadow:0 0 0 1px rgba(255,255,255,.08),
             0 12px 30px rgba(0,0,0,.35);
}

.vida-stream-item.blue{color:#8ab4ff}
.vida-stream-item.green{color:#7ee2a8}
.vida-stream-item.orange{color:#ffb86b}
.vida-stream-item.purple{color:#c4b5fd}

.vida-step.is-active h3{
  color:#4b63ff;
}

.vida-step.is-active .vida-step-num{
  box-shadow: 0 0 0 6px rgba(75,99,255,.15);
}
/* CHART */
.vida-stream-chart{
  margin-top: 18px;
  height: 120px;
}

.vida-stream-chart canvas{
  width:100%;
  height:100%;
}

/* ===== FLOW METRIC 工程風數值 Badge===== */
.flow-metric{
  position:absolute;
  left:50%;
  transform: translateX(-50%);
  font-size:11px;
  font-family: "JetBrains Mono", monospace;
  color:#e5e7eb;
  background: rgba(15,23,42,.85);
  border-radius: 8px;
  padding: 6px 8px;
  text-align:center;
  line-height:1.2;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}

.fm-input{ top:60px; }
.fm-ai{ top:190px; }
.fm-output{ top:320px; }

.flow-metric span{
  display:block;
  font-size:12px;
  font-weight:600;
  color:#7dd3fc;
}

/* ===============================
   FLOW METRICS OVERLAY 工程風、半透
=============================== */

.vida-flow-center{
  position: relative;
}

/* 容器 */
.flow-metrics{
  position:absolute;
  inset:0;
  pointer-events:none;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

/* 單一指標 */
.flow-metric{
  position:absolute;
  left:50%;
  transform: translateX(-50%);
  min-width: 68px;
  padding: 6px 8px;
  border-radius: 10px;
  text-align:center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color:#e5e7eb;
  background: rgba(15,23,42,.88);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  transition: 
    transform .35s ease,
    box-shadow .35s ease,
    opacity .35s ease;
  opacity:.55;
}

/* 標籤 */
.flow-metric .label{
  display:block;
  font-size:10px;
  letter-spacing:.12em;
  opacity:.7;
}

/* 數值 */
.flow-metric .value{
  display:block;
  margin-top:2px;
  font-size:12px;
  font-weight:600;
}

/* 對應位置 */
.fm-input{ top:56px; }
.fm-ai{ top:188px; }
.fm-output{ top:318px; }

/* Active 時亮起 */
.flow-line.is-active ~ .flow-metrics .flow-metric{
  opacity:.35;
}

.flow-line.flow-input.is-active ~ .flow-metrics .fm-input,
.flow-line.flow-ai.is-active ~ .flow-metrics .fm-ai,
.flow-line.flow-output.is-active ~ .flow-metrics .fm-output{
  opacity:1;
  transform: translateX(-50%) scale(1.05);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.2),
    0 0 28px rgba(120,160,255,.55);
}

/* Flow 紅色脈衝 */
@keyframes flowAlertPulse{
  0%{ stroke:#ff6b6b; opacity:.6 }
  50%{ stroke:#ff2d2d; opacity:1 }
  100%{ stroke:#ff6b6b; opacity:.6 }
}

.flow-line.flow-alert{
  animation: flowAlertPulse 1.2s ease-in-out infinite;
}

/* ===============================
   FLOW HEADER 
=============================== */
.vida-flow-header{
  grid-column: 1 / -1; /* 橫跨左右 */
  max-width: 980px;
  margin-bottom: 64px;
}

.vida-flow-title-xl{
  font-size: 42px;
  line-height: 1.25;
  font-weight: 1100;
  letter-spacing: -0.02em;
  color:#0b1437;
  max-width: 980px;
  text-align:center;
}

.vida-flow-title-xl 
.tone-primary{
  color:#0b1437;
  /* text-align:center; */
}

.vida-flow-title-xl 
.tone-accent{
  color:#4b63ff; /* 主識別藍 */  
  text-shadow: 0 6px 18px rgba(79, 114, 255, .45);
}

.vida-flow-sub{
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.7;
  color:#5f6b85;
  max-width: 1200px;
  text-align:center;
}

/* ============================
   DFS Tag Tooltip
============================ */
.dfs-tag{
  position: relative;
  cursor: help;
}

/* Tooltip 本體 */
.dfs-tag::after{
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  min-width: 180px;
  max-width: 340px;
  padding: 10px 14px;
  border-radius: 10px;

  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .04em;

  color: #eef2ff;
  background: rgba(20,28,60,.88);
  backdrop-filter: blur(10px);

  box-shadow:
    0 12px 28px rgba(0,0,0,.35),
    inset 0 0 0 1px rgba(255,255,255,.12);

  opacity: 0;
  pointer-events: none;
  transition:
    opacity .25s ease,
    transform .25s ease;
  z-index: 20;
}

/* 小箭頭 */
.dfs-tag::before{
  content:"";
  position:absolute;
  left:50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border-width:6px;
  border-style: solid;
  border-color:
    rgba(20,28,60,.88) transparent transparent transparent;
  opacity:0;
  transition: opacity .25s ease;
}

/* Hover 顯示 */
.dfs-tag:hover::after,
.dfs-tag:hover::before{
  opacity:1;
}

.dfs-tag:hover::after{
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px){
  .dfs-tag::after{
    left: 0;
    transform: translateX(0);
    min-width: 220px;
  }
}

/* ============================
   DFS Tags (Capability Badges)
============================ */
.dfs-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.dfs-tag{
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .04em;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  white-space: nowrap;
}

/* 顏色語意 */
.dfs-tag.blue{
  background: rgba(75,99,255,.12);
  color: #4b63ff;
}

.dfs-tag.green{
  background: rgba(76,175,132,.14);
  color: #3aa374;
}

.dfs-tag.orange{
  background: rgba(255,138,61,.16);
  color: #e6782f;
}

.dfs-tag.red{
  background: rgba(255,91,91,.14);
  color: #e15252;
}

.dfs-tag.purple{
  background: rgba(138,92,255,.14);
  color: #7b5cff;
}

.dfs-tag.gray{
  background: rgba(120,130,150,.14);
  color: #5f6b85;
}

/* ===============================
   STREAM STATS (Right Card)
================================ */
.vida-stream-stats{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:12px;
  margin: 18px 0 14px;
}

.vida-stream-stats .stat{
  background: rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

.vida-stream-stats .label{
  display:block;
  font-size:11px;
  letter-spacing:.12em;
  opacity:.65;
}

.vida-stream-stats .value{
  margin-top:6px;
  font-size:18px;
  font-weight:700;
  color:#7dd3fc;
}

.vida-stream-stats .value.good{ color:#7ee2a8; }
.vida-stream-stats .value.warn{ color:#ffb86b; }

/* Chart Height */
.vida-stream-chart{
  height: 120px;
}

/* ===============================
   RWD Layout Switch
=============================== */

/* 平板以下 */
@media (max-width: 1024px){
  .vida-flow-wrap{
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .vida-flow-steps{
    max-width: 680px;
    margin: 0 auto;
  }

  .vida-flow-center{
    order: 2;
    margin: 0 auto;
  }

  .vida-flow-right{
    order: 3;
    margin: 0 auto;
    width: 100%;
    max-width: 720px;
  }
}

/* 手機 */
@media (max-width: 768px){
  .vida-flow-wrap{
    padding: 0 20px;
  }

  .vida-flow-right{
    max-width: 100%;
  }
}

@media (max-width: 768px){
  .vida-flow-lines{
    width: 80px;
    height: 360px;
    display: none;
  }

  .flow-metric{
    transform: scale(.88);
  }
  /* 關掉垂直線疊加感 */
  .vida-flow-center{
    position: static;
  }
  /* Flow Metrics */
  .flow-metrics{
    position: static;
    transform: none;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px;
    margin: 12px 0 4px;
  }

  .flow-metric{
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(16px);
    border-radius: 14px;
    padding: 14px 10px;
    text-align: center;
    box-shadow:
      0 14px 36px rgba(30,60,160,.16);
    animation: rwdMetricIn .5s ease both;
  }

  .flow-metric .label{
    font-size: 11px;
    letter-spacing: .18em;
    color: #6b7cff;
    font-weight: 600;
  }

  .flow-metric .value{
    margin-top: 6px;
    font-size: 15px;
    font-weight: 800;
    color: #0b1437;
  }
}

@keyframes rwdFadeUp{
  from{
    opacity:0;
    transform:translateY(24px);
  }
  to{
    opacity:1;
    transform:none;
  }
}

@media(max-width: 1024px){
  .vida-flow-left,
  .vida-flow-center,
  .vida-flow-right{
    animation: rwdFadeUp .6s ease both;
  }

  .flow-line{
    animation:none;
    opacity:.35;
  }
}

@keyframes rwdMetricIn{
  from{
    opacity: 0;
    transform: translateY(12px);
  }
  to{
    opacity: 1;
    transform: none;
  }
}

/* ===============================
   VIDA AIoT EXPERIENCE (AIOE)
=============================== */

.vida-aioe-sec{
  padding: 96px 0;
  background: linear-gradient(180deg,#f7f9ff,#eef3ff);
}

.vida-aioe-wrap{
  max-width: 1320px;
  margin: auto;
  padding: 0 24px;
}

/* Header */
.vida-aioe-head{
  text-align:center;
  margin-bottom: 48px;
}

.vida-aioe-title{
  font-size: 36px;
  font-weight: 800;
  color:#0b1437;
}

.vida-aioe-tabs{
  margin-top:16px;
  display:inline-flex;
  background: rgba(255,255,255,.8);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.vida-aioe-tab{
  padding: 8px 20px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  color:#5f6b85;
}

.vida-aioe-tab.is-active{
  background:#4b63ff;
  color:#fff;
}

/* Scene */
.vida-aioe-scene{ display:none; }
.vida-aioe-scene.is-active{ display:block; }

.vida-aioe-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items:center;
}

/* Visual */
.vida-aioe-visual{
  position:relative;
  border-radius: 24px;
  overflow:hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,.25);
}

.vida-aioe-visual img{
  width:100%;
  display:block;
}

/* Scan overlay */
.aioe-scan{
  position:absolute;
  inset:0;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(120,160,255,.18),
    transparent 60%
  );
  animation: aioeScan 4.5s linear infinite;
}

@keyframes aioeScan{
  from{ transform:translateX(-100%); }
  to{ transform:translateX(100%); }
}

/* Overlay badge */
.aioe-badge{
  position:absolute;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(20,28,60,.85);
  color:#fff;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  animation: aioePulse 3s ease-in-out infinite;
}

@keyframes aioePulse{
  0%,100%{ opacity:.75 }
  50%{ opacity:1 }
}

.aioe-badge.water{background:#2563eb;}
.aioe-badge.traffic{background:#16a34a;}
.aioe-badge.pm25{background:#f59e0b;}
.aioe-badge.power{background:#22c55e;}
.aioe-badge.safety{background:#0ea5e9;}
.aioe-badge.gate{background:#8b5cf6;}

/* Info */
.vida-aioe-info h3{
  font-size: 24px;
  font-weight: 800;
  margin: 12px 0;
  color:#0b1437;
}

.vida-aioe-info p{
  color:#5f6b85;
  line-height:1.75;
}

.vida-aioe-list{
  margin-top: 16px;
  padding-left: 18px;
  color:#334155;
}

/* RWD */
@media(max-width:1024px){
  .vida-aioe-grid{ grid-template-columns:1fr; }
}

/* ===============================
   SPEC WALL – ISOLATED
================================ */
.specwall-sec{
  padding: 80px 0;
  background: radial-gradient(circle at top,#141a33,#0a0f22 70%);
  color:#e5e7eb;
}

.specwall-wrap{
  max-width: 1400px;
  margin: auto;
  padding: 0 32px;
}

.specwall-head{
  text-align:center;
  margin-bottom: 64px;
}

.specwall-title{
  font-size: 32px;
  font-weight: 800;
  letter-spacing:.05em;
}

.specwall-title span{
  font-size: 18px;
  opacity:.6;
  margin-left:8px;
}

/* GRID */
.specwall-grid{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap:28px;
}

/* COLUMN */
.spec-col{
  position:relative;
  padding:28px 26px 32px;
  border-radius:22px;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    0 40px 100px rgba(0,0,0,.55);
  transition:
    transform .35s ease,
    box-shadow .35s ease,
    background .35s ease;
  cursor:pointer;
}

.spec-col:hover,
.spec-col.is-active{
  transform: translateY(-6px);
  background:rgba(255,255,255,.1);
  box-shadow:
    inset 0 0 0 1px rgba(120,160,255,.45),
    0 50px 120px rgba(0,0,0,.7);
}

/* COLUMN TITLE */
.spec-col-title{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:16px;
  margin-bottom:18px;
  letter-spacing:.12em;
  color:#a8b9ff;
}

.spec-col-title i{
  font-size:18px;
  opacity:.9;
}

/* ROW */
.spec-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.spec-row:last-child{
  border-bottom:none;
}

.spec-row .label{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  opacity:.65;
}

.spec-row .label i{
  font-size:14px;
  opacity:.75;
}

.spec-row .value{
  font-family:"JetBrains Mono", monospace;
  font-size:14px;
  font-weight:700;
}

/* COLOR SEMANTICS */
.value.blue{color:#8ab4ff}
.value.green{color:#7ee2a8}
.value.orange{color:#ffb86b}
.value.purple{color:#c4b5fd}
.value.red{color:#ff6b6b}

/* RWD */
@media(max-width:1024px){
  .specwall-grid{grid-template-columns: repeat(2,1fr);}
}

@media(max-width:640px){
  .specwall-grid{grid-template-columns: 1fr;}
}

/* ===============================
   DFS Live Badge (Overlay HUD)
=============================== */
.dfs-live-badge{
  display:flex;
  flex-direction:column;
  gap:10px;
  /* margin-top:14px; */
  position:absolute;
  right:-20px;
  /* bottom:-10px; */
  width:auto;
  /* max-width: 200px;
  padding:10px 15px; */
  border-radius:16px;
  background:rgba(255,255,255,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  /* box-shadow:
    0 18px 40px rgba(120,140,210,.35),
    inset 0 0 0 1px rgba(255,255,255,.6); */
  font-family: "IBM Plex Sans","Noto Sans TC",system-ui,sans-serif;
  z-index:5;
  animation:dfsBadgeFloat 6s ease-in-out infinite;
}

.badge-item{
  width: 100%;
  /* min-width: 160px;
  display:flex; */
  gap:10px;
  align-items:center;
  padding:10px 14px;
  border-radius:14px;
  background: rgba(15,23,42,.75);
  backdrop-filter: blur(12px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    0 14px 32px rgba(0,0,0,.45);

  color:#e5e7eb;
  font-family:"JetBrains Mono", monospace;
}

.badge-item i{
  font-size:16px;
  color:#93c5fd;
}

.badge-item .label{
  display:block;
  font-size:11px;
  opacity:.75;
}

.badge-item strong{
  font-size:16px;
  font-weight:700;
}

.badge-item .unit{
  font-size:11px;
  opacity:.7;
  margin-left:4px;
}

.dfs-badge-row{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  margin-bottom:6px;
}

.dfs-badge-row:last-child{
  margin-bottom:0;
}

.dfs-badge-row .label{
  font-size:.72rem;
  letter-spacing:.08em;
  color:#7b82a6;
  text-transform:uppercase;
}

.dfs-badge-row .value{
  font-size:1.05rem;
  font-weight:700;
  color:#1b2340;
}

.dfs-badge-row .unit{
  font-size:.7rem;
  margin-left:2px;
  color:#7b82a6;
}

/* subtle float */
@keyframes dfsBadgeFloat{
  0%{ transform:translateY(0); }
  50%{ transform:translateY(-6px); }
  100%{ transform:translateY(0); }
}

.dfs-live-badge.flash{
  box-shadow:
    0 0 0 1px rgba(255,255,255,.8),
    0 0 32px rgba(120,160,255,.9),
    0 18px 40px rgba(120,140,210,.45);
}


/* ======================================================
   DFS CASE (video) – GLASS SECTION
====================================================== */
.dfs-video-glass{
  padding: 96px 0;
  /* background: linear-gradient(180deg,#f7f9ff,#eef3ff); */
}

.dfs-case-glass{
  padding:90px 20px;
  background:linear-gradient(180deg,#f6f8ff,#eef3ff);
}

.dfs-case-header{
  text-align:center;
  max-width:980px;
  margin:0 auto 40px;
}

.dfs-video-header{
  text-align: center;
  max-width: 920px;
  margin: 0 auto 48px;
}

.dfs-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin: 0 auto 14px;
  padding:6px 14px;
  font-size:12px;
  border-radius:999px;
  background:rgba(255,255,255,.85);
  backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,.6);
}

.dfs-video-title{
  margin:16px 0 10px;
  font-size:42px;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:10px;
  justify-content: center;
}

.dfs-video-title i{
  font-size:22px;
  color:#6b8cff;
   align-items:center;
}

.dfs-video-title .t-dark{ color:#0f172a;  align-items:center; }
.dfs-video-title .t-accent{
   align-items:center;
  background:linear-gradient(135deg,#4f7cff,#8fb3ff);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.dfs-video-desc{
  text-align: center;  
  margin: 12px auto 0;
  color:#5d6685;
  line-height: 1.7;
  font-size:15px;
  display:flex;
  gap:8px;
  align-items:flex-start;
  
}

.dfs-video-desc i{
  color: var(--accent, #6b7cff);
  margin-right: 6px;
}

/* Filters */
.dfs-video-filters{
  margin-top:22px;
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}

.dfs-video-filters button{
  padding:8px 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.6);
  background:rgba(255,255,255,.75);
  backdrop-filter:blur(14px);
  cursor:pointer;
}

.dfs-video-filters button.is-active{
  background:linear-gradient(135deg,#4f7cff,#8fb3ff);
  color:#fff;
}

/* Slider */
.dfs-video-slider{
  margin-top:36px;
  overflow-x:auto;
  scrollbar-width:thin;
  scrollbar-color: rgba(120,140,255,.55) transparent;
}

.dfs-video-slider::-webkit-scrollbar{
  height:8px;
}

.dfs-video-slider::-webkit-scrollbar-track{
  background:rgba(255,255,255,.35);
  border-radius:999px;
}

.dfs-video-slider::-webkit-scrollbar-thumb{
  background:linear-gradient(135deg,#6b8cff,#a5b4ff);
  border-radius:999px;
}

.dfs-video-track{
  display:flex;
  gap:24px;
  overflow-x:auto;  
  padding-bottom:10px; 
  /* iOS-like */
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  /* 隱藏原生 scrollbar */
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  scroll-behavior: smooth;
}

.dfs-video-track::-webkit-scrollbar{
  display:none;
}

.dfs-video-track.is-dragging{
  cursor:grabbing;
}

.dfs-video-track.is-dragging .dfs-video-card{
  pointer-events:none; /* 防止誤點 */
}

.dfs-video-card{
  scroll-snap-align: start;
  min-width:320px;
  scroll-snap-align:start;
  background:rgba(255,255,255,.8);
  backdrop-filter:blur(18px);
  border-radius:22px;
  padding:14px;
  box-shadow:0 22px 50px rgba(60,90,160,.18);
  transition:.35s ease;
}

@media(max-width:768px){
  .dfs-video-track{
    scroll-snap-type:x mandatory;
  }

  .dfs-video-card{
    scroll-snap-align:start;
  }
}

.dfs-video-card:hover{
  transform:translateY(-6px);
}

.dfs-eyebrow{
  font-size:12px;
  letter-spacing:.18em;
  color:#7a86b6;
}

.dfs-title{
  font-size:42px;
  font-weight:700;
}

.dfs-title .t-dark{ color:#0f172a; }
.dfs-title .t-accent{
  color: var(--accent);
  text-shadow: 0 6px 18px rgba(79, 114, 255, .45);
  background:linear-gradient(135deg,#4f7cff,#8fb3ff);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.dfs-case-group{
  margin-bottom:64px;
}

.dfs-group-title{
  font-size:20px;
  margin-bottom:20px;
  color:#1a2340;
}

/* Grid */
.dfs-case-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:24px;
}

/* Card */
.dfs-case-card{
  background:rgba(255,255,255,.75);
  backdrop-filter:blur(18px);
  border-radius:22px;
  padding:14px;
  box-shadow:0 20px 45px rgba(50,80,150,.18);
  transition:.35s ease;
}

.dfs-case-card:hover{
  transform:translateY(-6px);
  box-shadow:0 30px 70px rgba(50,90,180,.3);
}

.dfs-thumb{
  position:relative;
  border-radius:16px;
  overflow:hidden;
}

.dfs-thumb img{
  width:100%;
  display:block;
}

.dfs-video-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  position:relative;
  z-index:1;
}

/* Thumb */
.dfs-video-thumb{ 
  position:relative;
  aspect-ratio:16/9;
  border-radius:18px;
  overflow:hidden;
  background:#e9eeff;
}

.dfs-video-thumb::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,.25) 100%
  );
  opacity:0;
  transition:.35s cubic-bezier(.4,0,.2,1);
}

.dfs-video-thumb .dfs-play{
  opacity:.85;
  transform:scale(.92);
  transition:.35s cubic-bezier(.4,0,.2,1);
}

.dfs-video-card:hover .dfs-video-thumb::after{
  opacity:1;
}

.dfs-video-card:hover .dfs-play{
  opacity:1;
  transform:scale(1);
}

/* YouTube thumbnail */
.youtube-thumb{
  background-size:cover;
  background-position:center;
}

.dfs-video-thumb img{ width:100%; display:block; }


/* Play button */
.dfs-play{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:2;
}

.dfs-play i{
  font-size:22px;
  width:54px;
  height:54px;
  border-radius:50%;
  background:rgba(0,0,0,.55);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
}

.dfs-video-thumb:hover .dfs-play{ opacity:1; }
.dfs-thumb:hover .dfs-play{
  opacity:1;
}

.dfs-case-card h4{
  margin:14px 0 6px;
  font-size:15px;
}

.dfs-case-card p{
  font-size:13px;
  color:#5f678a;
}

.dfs-duration{
  position:absolute;
  bottom:8px;
  right:10px;
  background:rgba(0,0,0,.55);
  color:#fff;
  font-size:12px;
  padding:2px 6px;
  border-radius:6px;
}

/* Lightbox */
.dfs-video-lightbox{
  position: fixed;
  inset: 0;
  background: rgba(10,15,30,.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.dfs-video-lightbox.open{ display:flex; }

.dfs-video-modal{
  position: relative;
  width: min(90vw, 960px);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  z-index: 2;
}

.dfs-video-modal iframe{
   width: 100%;
  height: 100%;
  border: 0;
  pointer-events: auto;
}

.dfs-video-close{
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  color: #111;
  font-size: 18px;
  border: none;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* 讓 overlay 本身可以被點 */
.dfs-video-lightbox::before{
  content:"";
  position:absolute;
  inset:0;
}

/* ======================================================
   DFS VIDEO – GLASS UPGRADE
====================================================== */

.dfs-video-card{
  position:relative;
  overflow:hidden;
  transition:
    transform .45s cubic-bezier(.22,.61,.36,1),
    opacity   .35s ease;
}

.dfs-video-card.is-hidden{
  opacity:0;
  pointer-events:none;
  transform:translateX(24px) scale(.96);
}

/* DFS Video Card – list style reset */
.dfs-video-card ul{
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.dfs-video-card li{
  list-style: none;
  padding-left: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.55;
  color: #4b5563; /* slate-600 */
  font-size: .92rem;
}

.dfs-video-card li i{
  margin-top: 3px;
  color: var(--accent, #6b7cff);
  flex-shrink: 0;
}

/* Hover 微浮 */
.dfs-video-card:hover{
  transform:translateY(-6px) scale(1.01);
}

/* 播放鍵 */
.dfs-play{
  pointer-events:auto;
}

/* GIF 播放中提示 */
.dfs-video-card.is-playing::after{
  content:"GIF PLAYING";
  position:absolute;
  top:12px;
  left:12px;
  font-size:11px;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(0,0,0,.55);
  color:#fff;
  letter-spacing:.08em;
}

/* Mobile 縮小卡片 */
@media(max-width:768px){
  .dfs-video-card{
    min-width:280px;
  }
}

/* Filter 隱藏 */
.dfs-video-card.is-hidden{
  display: none !important;
  opacity:0;
  pointer-events:none;
  width:0 !important;
  margin:0 !important;
  transform:scale(.94);
  margin-right:-320px; /* 卡片寬度 + gap */
  transition:
    opacity .25s ease,
    transform .25s ease,
    margin .35s ease;
}

/* YouTube 縮圖顯示 */
.dfs-video-thumb.is-youtube{
  background-size:cover;
  background-position:center;
}

.dfs-video-thumb.is-youtube img{
  display:none;
}

/* ===============================
   YouTube Fallback Glass UI
================================ */
.dfs-youtube-fallback{
  position:absolute;
  inset:0;
  display:none;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  text-align:center;

  background:rgba(0,0,0,.55);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  color:#fff;
  z-index:3;
}

.dfs-youtube-fallback i{
  font-size:56px;
  color:#ff2d2d;
}

.dfs-youtube-fallback h3{
  font-size:1.2rem;
  font-weight:600;
}

.dfs-youtube-fallback p{
  font-size:.9rem;
  opacity:.85;
  max-width:280px;
  line-height:1.5;
}

.dfs-youtube-btn{
  margin-top:6px;
  padding:10px 22px;
  border-radius:999px;
  background:#ff2d2d;
  color:#fff;
  font-size:.9rem;
  font-weight:600;
  text-decoration:none;
  transition:.25s;
}

.dfs-youtube-btn:hover{
  background:#ff4545;
  transform:translateY(-1px);
}

/* 顯示狀態 */
.dfs-video-lightbox.show-fallback .dfs-youtube-fallback{
  display:flex;
}

.dfs-video-lightbox.show-fallback iframe{
  display:none;
}

/* ===============================
   GIF Live Badge
================================ */
.dfs-video-card[data-media="gif"] .dfs-video-thumb::before{
  content:"LIVE";
  position:absolute;
  top:10px;
  left:10px;
  padding:4px 10px;
  font-size:.65rem;
  font-weight:700;
  letter-spacing:.08em;
  color:#fff;
  background:#ff3b30;
  border-radius:999px;
  opacity:0;
  transform:translateY(-4px);
  transition:.3s cubic-bezier(.4,0,.2,1);
}

.dfs-video-card[data-media="gif"]:hover .dfs-video-thumb::before{
  opacity:1;
  transform:translateY(0);
}

/* scrollbar */
.dfs-scrollbar{
  position:relative;
  height:4px;
  background:rgba(255,255,255,.25);
  border-radius:999px;
  margin-top:14px;
  overflow:hidden;
}

.dfs-scroll-thumb{
  position:absolute;
  height:100%;
  width:20%;
  background:rgba(255,255,255,.75);
  border-radius:999px;
  backdrop-filter:blur(6px);
  transition:transform .1s linear;
}
