/* =========================================================
   ViDA.ai 數據中台 — Ecosystem Architecture · Apple Pro v3
   載入：css/vida_all.css 之後 → css/vida_aeg_apple.css
         js/vida_all.js 之後   → js/vida_aeg_apple.js
     Blue #0A84FF · Cyan #64D2FF · Indigo #5E5CE6 · Purple #BF5AF2 · Green #30D158
========================================================= */
.arch-ecosystem-glass {
  --aeg-blue:   #0a84ff;
  --aeg-cyan:   #64d2ff;
  --aeg-purple: #5e5ce6;
  --aeg-violet: #bf5af2;
  --aeg-green:  #30d158;
  --aeg-ink:    #f5f5f7;
  --aeg-text:   #a1a1a6;
  --aeg-muted:  #6e6e73;
  --aeg-border: rgba(255, 255, 255, .08);
  --aeg-border-hi: rgba(100, 210, 255, .42);
  --aeg-surface: linear-gradient(180deg, rgba(255,255,255,.075) 0%, rgba(255,255,255,.028) 100%);
  --aeg-surface-hi: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.045) 100%);
  --aeg-shadow-soft: 0 1px 0 rgba(255,255,255,.06) inset, 0 20px 40px -12px rgba(0,0,0,.7);
  --aeg-shadow-hi: 0 1px 0 rgba(255,255,255,.12) inset, 0 0 0 1px rgba(100,210,255,.18), 0 26px 60px -14px rgba(10,132,255,.45);
  --aeg-grad-text: linear-gradient(92deg, #64d2ff 0%, #0a84ff 32%, #5e5ce6 64%, #bf5af2 100%);

  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro TC", "PingFang TC",
               "Helvetica Neue", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--aeg-ink);
  padding: 120px 24px 120px;
  background:
    radial-gradient(60% 45% at 50% 52%, rgba(10, 132, 255, .16), transparent 70%),
    radial-gradient(40% 30% at 50% 0%, rgba(94, 92, 230, .22), transparent 75%),
    radial-gradient(30% 25% at 12% 60%, rgba(100, 210, 255, .07), transparent 70%),
    radial-gradient(30% 25% at 88% 60%, rgba(191, 90, 242, .07), transparent 70%),
    #000;
}

/* 與上下淺色區塊柔和銜接 */
.arch-ecosystem-glass::before,
.arch-ecosystem-glass::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  pointer-events: none;
}
.arch-ecosystem-glass::before { top: 0; }
.arch-ecosystem-glass::after  { bottom: 0; }

/* ---------- 背景：細點陣 + 光暈 ---------- */

.aeg-bg-grid {
  opacity: 1;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 80%);
}

.aeg-orb { filter: blur(80px); opacity: .55; }
.aeg-orb-a { background: radial-gradient(circle, rgba(10,132,255,.45), transparent 70%); }
.aeg-orb-b { background: radial-gradient(circle, rgba(191,90,242,.32), transparent 70%); }
.aeg-orb-c { background: radial-gradient(circle, rgba(100,210,255,.30), transparent 70%); }

/* ---------- Header ---------- */

.aeg-header { margin-bottom: 72px; }

.aeg-kicker {
  gap: 8px;
  padding: 7px 14px;
  margin-bottom: 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset;
  color: #d2d2d7;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
}

.aeg-kicker i {
  width: 7px; height: 7px;
  background: var(--aeg-green);
  box-shadow: 0 0 0 4px rgba(48,209,88,.16), 0 0 12px rgba(48,209,88,.8);
}

.aeg-header h2 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -.035em;
  background: linear-gradient(180deg, #ffffff 30%, #9a9aa3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.aeg-header h2 em {
  background: var(--aeg-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
  padding: 0 .06em;
}

.aeg-header p {
  margin-top: 20px;
  color: var(--aeg-text);
  font-size: clamp(15px, 1.35vw, 16px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .01em;
}

/* ---------- 欄位標題 ---------- */

.aeg-col-title {
  color: #86868b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
}
.aeg-col-title i { color: var(--aeg-cyan); }
.aeg-col-title-icon { filter: drop-shadow(0 0 8px rgba(100,210,255,.5)); }

/* ---------- 流線 ---------- */

#aegLineIn  stop:nth-child(1) { stop-color: #64d2ff; stop-opacity: 0; }
#aegLineIn  stop:nth-child(2) { stop-color: #0a84ff; stop-opacity: .9; }
#aegLineIn  stop:nth-child(3) { stop-color: #64d2ff; stop-opacity: 1; }
#aegLineOut stop:nth-child(1) { stop-color: #64d2ff; stop-opacity: 1; }
#aegLineOut stop:nth-child(2) { stop-color: #5e5ce6; stop-opacity: .9; }
#aegLineOut stop:nth-child(3) { stop-color: #bf5af2; stop-opacity: 0; }

.aeg-flow-svg path { stroke-width: 1.4; stroke-dasharray: 2 8; opacity: .45; }
.aeg-flow-svg path.is-active { stroke-width: 2.2; stroke-dasharray: 6 6; opacity: 1; }

.aeg-flow-svg circle.aeg-particle { fill: #64d2ff; opacity: .95; }
.aeg-flow-svg circle.aeg-particle.is-active { fill: #fff; }

/* ---------- 共用卡片：深色玻璃 ---------- */

.aeg-node,
.aeg-app-row {
  border: 1px solid var(--aeg-border);
  background: var(--aeg-surface);
  box-shadow: var(--aeg-shadow-soft);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.aeg-node:hover,
.aeg-node.is-active,
.aeg-app-row:hover,
.aeg-app-row.is-active {
  border-color: var(--aeg-border-hi);
  background: var(--aeg-border-hi);
  box-shadow: var(--aeg-shadow-hi);
}

/* 旋轉光邊改為 Apple 系統色 */
.aeg-node::before,
.aeg-app-row::before {
  background: conic-gradient(from var(--aeg-angle),
    transparent 0deg, transparent 230deg,
    #64d2ff 280deg, #0a84ff 315deg, #bf5af2 345deg, transparent 360deg);
}

/* ---------- 左欄：資料接入 ---------- */
.aeg-grid { gap: 10px; }

.aeg-node { padding: 18px 8px 14px; border-radius: 22px; gap: 11px; }

.aeg-node-icon {
  width: 62px; height: 62px;
  border-radius: 16px;               /* iOS squircle 比例 */
  border: 1px solid rgba(255,255,255,.1);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.28), transparent 60%),
    linear-gradient(180deg, #dbdbe6 0%, #9b9bc8 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.22) inset,
    0 -8px 16px rgba(0,0,0,.35) inset,
    0 12px 24px -8px rgba(0,0,0,.8);
}

.aeg-node-icon img {
  width: 86%; height: 86%;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.55)) saturate(1.1) contrast(1.05);
}

.aeg-node:hover .aeg-node-icon,
.aeg-node.is-active .aeg-node-icon {
  transform: translateY(-2px) scale(1.07);
  box-shadow:
    0 1px 0 rgba(255,255,255,.28) inset,
    0 -8px 16px rgba(0,0,0,.3) inset,
    0 16px 30px -8px rgba(10,132,255,.6);
}

.aeg-node-label {
  color: #e8e8ed;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .005em;
}

/* ---------- 標籤 pill ---------- */

.aeg-flow-tag {
  margin-top: 20px;
  padding: 7px 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: #d2d2d7;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
}
.aeg-flow-tag::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--aeg-cyan);
  box-shadow: 0 0 10px var(--aeg-cyan);
}

/* ---------- 中央 Hub：產品級 3D 展台 ---------- */

.aeg-col-hub { position: relative; perspective: 1400px; }

/* 頂部聚光燈 */
.aeg-col-hub::before {
  content: "";
  position: absolute;
  left: 50%; top: -18%;
  width: 70%; height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(50% 60% at 50% 0%, rgba(255,255,255,.14), rgba(100,210,255,.06) 45%, transparent 75%);
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  filter: blur(30px);
  opacity: .8;
  pointer-events: none;
  z-index: 0;
}

/* 地面反光展台 */
.aeg-col-hub::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2%;
  width: min(118%, 440px); height: 90px;
  transform: translateX(-50%) rotateX(72deg);
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(100,210,255,.55), rgba(10,132,255,.28) 45%, rgba(94,92,230,.12) 70%, transparent 100%);
  box-shadow: 0 0 0 1px rgba(100,210,255,.18), 0 0 60px 10px rgba(10,132,255,.25);
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
  animation: aegFloorPulse 4.2s ease-in-out infinite;
}

@keyframes aegFloorPulse {
  0%, 100% { opacity: .75; }
  50%      { opacity: 1; }
}

.aeg-hub { width: min(100%, 380px); }

.aeg-hub-img {
  filter:
    drop-shadow(0 40px 50px rgba(0,0,0,.85))
    drop-shadow(0 0 40px rgba(10,132,255,.35))
    saturate(1.12) contrast(1.06);
  -webkit-box-reflect: below -6px linear-gradient(transparent 72%, rgba(255,255,255,.16));
}

.aeg-hub-glow {
  inset: 4% -6%;
  background: radial-gradient(circle, rgba(100,210,255,.42), rgba(10,132,255,.22) 40%, rgba(94,92,230,.12) 60%, transparent 74%);
  filter: blur(40px);
}

.aeg-hub-ring-sweep {
  inset: -10%;
  background: conic-gradient(from 0deg,
    transparent 0deg, rgba(100,210,255,.35) 50deg, transparent 120deg,
    transparent 200deg, rgba(191,90,242,.30) 280deg, transparent 350deg);
  filter: blur(14px);
  opacity: .8;
}

.aeg-hub-hotspot::after {
  background: radial-gradient(circle, rgba(255,255,255,.35), rgba(100,210,255,.3) 55%, transparent 78%);
}
.aeg-hub-hotspot:hover::after,
.aeg-hub-hotspot.active::after {
  border-color: rgba(255,255,255,.85);
  box-shadow: 0 0 0 5px rgba(100,210,255,.22), 0 0 50px 12px rgba(10,132,255,.55);
}

/* ---------- 中右欄：應用輸出 ---------- */

.aeg-app-list { gap: 10px; }

.aeg-app-row { border-radius: 20px; }

.aeg-sysout-icon {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(90% 70% at 50% 110%, rgba(10,132,255,.35), transparent 70%),
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.14), transparent 60%),
    linear-gradient(180deg, #a6a6d1 0%, rgb(138 140 234 / 35%)  100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 12px 22px -10px rgba(0,0,0,.9);
}

.aeg-sysout-icon img {
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.6)) saturate(1.1) contrast(1.05);
}

.aeg-app-row:hover .aeg-sysout-icon,
.aeg-app-row.is-active .aeg-sysout-icon {
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 16px 30px -10px rgba(10,132,255,.7);
}

.aeg-app-label {
  color: #f5f5f7;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.005em;
}

.aeg-app-desc {
  color: #86868b;
  font-size: 12px;
  font-weight: 500;
}

/* ---------- 最右欄：智慧應用 ---------- */

.aeg-app-photo {
  border-radius: 11px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 8px 18px -6px rgba(0,0,0,.8);
}

.aeg-app-photo::after {           /* 玻璃鏡面高光 */
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,.22) 0%, transparent 38%);
  pointer-events: none;
}

.aeg-app-badge { filter: drop-shadow(0 4px 10px rgba(0,0,0,.7)) drop-shadow(0 0 6px rgba(100,210,255,.35)); }

.aeg-col-out .aeg-app-label { font-size: 14px; }

/* 啟用中，指示燈：Apple 綠色 Live Dot */
.aeg-node.is-active .aeg-node-label::before,
.aeg-app-row.is-active .aeg-app-label::before {
  background: var(--aeg-green);
  animation-name: aegLivePulseGreen;
}

@keyframes aegLivePulseGreen {
  0%   { box-shadow: 0 0 0 0 rgba(48,209,88,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(48,209,88,0); }
  100% { box-shadow: 0 0 0 0 rgba(48,209,88,0); }
}

/* ---------- 說明面板 ---------- */

.aeg-detail {
  margin-top: 64px;
  padding: 24px 28px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.1);
  background:
    radial-gradient(60% 120% at 0% 0%, rgba(10,132,255,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255, 255, 255, .08));
  box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 30px 60px -20px rgba(0,0,0,.9);
}

.aeg-detail-icon {
  width: 56px; height: 56px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.28), transparent 60%),
    linear-gradient(180deg, #ddddf3, #909099);
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 14px 30px -8px rgba(10,132,255,.6);
}

.aeg-detail-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  background: var(--aeg-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.aeg-detail-copy p { color: #d2d2d7; font-size: 15px; font-weight: 400; line-height: 1.75; }

/* ---------- 底部特色列 ---------- */

.aeg-feature-strip {
  margin-top: 28px;
  padding: 8px;
  gap: 4px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset;
}

.aeg-feature-strip li {
  padding: 10px 18px;
  color: #d2d2d7;
  font-size: 13px;
  font-weight: 600;
}

.aeg-feature-strip li:not(:last-child) { border-right: 1px solid rgba(255,255,255,.08); }
.aeg-feature-strip li i { color: var(--aeg-cyan); }
.aeg-feature-strip li:hover {
  color: #fff;
  background: rgba(255,255,255,.07);
  transform: none;
}

/* =========================================================
   ★ v3 —  動態互動層
========================================================= */

@property --aeg-acc        { syntax: "<color>"; inherits: true;  initial-value: #64d2ff; }
@property --aeg-sec-angle  { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --aeg-ring-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* ---------- 0. 模組色 ---------- */

.arch-ecosystem-glass {
  --aeg-acc: #64d2ff;
  --aeg-ease: cubic-bezier(.16, 1, .3, 1);          /* Apple expo-out */
  transition: --aeg-acc 1s ease;
  border-radius: clamp(0px, 3vw, 44px);
  box-shadow: 0 40px 120px -30px rgba(8, 16, 48, .55);
  background:
    radial-gradient(55% 42% at 50% 56%, color-mix(in srgb, var(--aeg-acc) 20%, transparent), transparent 70%),
    radial-gradient(45% 35% at 50% -5%, rgba(94,92,230,.28), transparent 75%),
    radial-gradient(35% 30% at 0% 70%, rgba(100,210,255,.08), transparent 70%),
    radial-gradient(35% 30% at 100% 70%, rgba(191,90,242,.08), transparent 70%),
    linear-gradient(180deg, #05060b 0%, #000 55%, #03040a 100%);
}
.arch-ecosystem-glass[data-mod="vbs"]  { --aeg-acc: #64d2ff; }
.arch-ecosystem-glass[data-mod="mvss"] { --aeg-acc: #bf5af2; }
.arch-ecosystem-glass[data-mod="dfs"]  { --aeg-acc: #30d158; }

/* 旋轉漸層外框 */
.arch-ecosystem-glass::before {
  inset: 0;
  height: auto;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--aeg-sec-angle),
    rgba(255,255,255,.05) 0deg, color-mix(in srgb, var(--aeg-acc) 70%, transparent) 60deg,
    rgba(10,132,255,.35) 110deg, rgba(255,255,255,.05) 170deg, rgba(255,255,255,.05) 230deg,
    rgba(191,90,242,.45) 290deg, rgba(255,255,255,.05) 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: aegSecSpin 14s linear infinite;
  z-index: 3;
}
@keyframes aegSecSpin  { to { --aeg-sec-angle: 360deg; } }

/* 頂部極光 */
.arch-ecosystem-glass::after {
  top: -130px; bottom: auto; left: 8%; right: 8%;
  height: 260px;
  border-radius: 50%;
  background: linear-gradient(90deg, #64d2ff, #0a84ff, #5e5ce6, #bf5af2, #ff375f);
  filter: blur(110px);
  opacity: .3;
  z-index: -1;
  animation: aegAurora 12s ease-in-out infinite alternate;
}
@keyframes aegAurora {
  from { transform: translateX(-6%) scaleX(1);    opacity: .22; }
  to   { transform: translateX(6%)  scaleX(1.15); opacity: .36; }
}

/* 星塵畫布 */
.aeg-stars {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
  pointer-events: none;
}

/* 背景光球視差 */
.aeg-orb-a { translate: calc(var(--px, 0) * 60px) calc(var(--py, 0) * 40px); }
.aeg-orb-b { translate: calc(var(--px, 0) * -50px) calc(var(--py, 0) * 36px); }
.aeg-orb-c { translate: calc(var(--px, 0) * 30px) calc(var(--py, 0) * -30px); background: radial-gradient(circle, color-mix(in srgb, var(--aeg-acc) 40%, transparent), transparent 70%); }

/* ---------- 1. 配色：鈦銀底 ---------- */

.aeg-node-icon {
  width: 64px; height: 64px;
  border-radius: 17px;
  border: 1px solid rgba(255,255,255,.55);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.95), rgba(255,255,255,0) 62%),
    linear-gradient(180deg, #f5f6fa 0%, #c3c7d6 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -6px 12px rgba(40,50,90,.18),
    0 12px 24px -8px rgba(0,0,0,.85);
}
.aeg-node-icon img { filter: drop-shadow(0 5px 6px rgba(20,30,70,.35)) saturate(1.12) contrast(1.05); }

.aeg-node:hover .aeg-node-icon,
.aeg-node.is-active .aeg-node-icon {
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -6px 12px rgba(40,50,90,.14),
    0 0 0 1px color-mix(in srgb, var(--aeg-acc) 55%, transparent),
    0 18px 34px -8px color-mix(in srgb, var(--aeg-acc) 70%, transparent);
}

.aeg-sysout-icon {
  border: 1px solid rgba(255,255,255,.5);
  background:
    radial-gradient(90% 70% at 50% 118%, rgba(10,132,255,.30), transparent 70%),
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.92), transparent 60%),
    linear-gradient(180deg, #eef0f6 0%, #b3b9cc 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -6px 12px rgba(40,50,90,.16), 0 12px 22px -10px rgba(0,0,0,.9);
}
.aeg-sysout-icon img { filter: drop-shadow(0 6px 8px rgba(20,30,70,.4)) saturate(1.1) contrast(1.05); }

.aeg-app-row:hover .aeg-sysout-icon,
.aeg-app-row.is-active .aeg-sysout-icon {
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px color-mix(in srgb, var(--aeg-acc) 50%, transparent), 0 16px 30px -10px color-mix(in srgb, var(--aeg-acc) 75%, transparent);
}

/* hover底色：隨模組色微染*/
.aeg-node:hover,
.aeg-node.is-active,
.aeg-app-row:hover,
.aeg-app-row.is-active {
  border-color: color-mix(in srgb, var(--aeg-acc) 45%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--aeg-acc) 17%, transparent) 0%, rgba(10,132,255,.05) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 0 34px color-mix(in srgb, var(--aeg-acc) 12%, transparent),
    0 26px 60px -14px color-mix(in srgb, var(--aeg-acc) 45%, transparent);
}

.aeg-node::before,
.aeg-app-row::before {
  background: conic-gradient(from var(--aeg-angle),
    transparent 0deg, transparent 230deg,
    var(--aeg-acc) 280deg, #0a84ff 315deg, #bf5af2 345deg, transparent 360deg);
}

/* 游標聚光 + 頂光 */
.aeg-node::after,
.aeg-app-row::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(180px circle at var(--mx, 50%) var(--my, -40%), color-mix(in srgb, var(--aeg-acc) 22%, transparent), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,.07) 0%, transparent 42%);
  opacity: .75;
  transition: opacity .3s ease;
}
.aeg-node:hover::after, .aeg-app-row:hover::after { opacity: 1; }
.aeg-node > *, .aeg-app-row > * { position: relative; z-index: 1; }

.aeg-col-title::after {
  content: "";
  flex: 1; height: 1px; margin-left: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,.16), transparent);
}

/* ---------- 2. 標題 ---------- */

.aeg-header h2 em {
  background: linear-gradient(90deg, #64d2ff, #0a84ff, #5e5ce6, #bf5af2, #64d2ff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(10,132,255,.45));
  animation: aegShine 6s linear infinite;
}
@keyframes aegShine { to { background-position: 300% 0; } }

/* ---------- 3. Hub：懸浮 · 視差 · 軌道 · 反光 ---------- */

.aeg-hub picture { display: block; }

.aeg-col-hub { translate: calc(var(--px, 0) * -18px) calc(var(--py, 0) * -12px); }

.aeg-hub-glow {
  background: radial-gradient(circle,
    color-mix(in srgb, var(--aeg-acc) 48%, transparent),
    rgba(10,132,255,.22) 40%, rgba(94,92,230,.12) 60%, transparent 74%);
}

.aeg-col-hub::after {
  width: min(128%, 480px);
  height: 110px;
  background: radial-gradient(closest-side,
    rgba(255,255,255,.32), color-mix(in srgb, var(--aeg-acc) 50%, transparent) 25%,
    rgba(10,132,255,.25) 55%, transparent 100%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--aeg-acc) 22%, transparent), 0 0 70px 12px color-mix(in srgb, var(--aeg-acc) 25%, transparent);
}

.aeg-hub-img { -webkit-box-reflect: below -4px linear-gradient(transparent 80%, rgba(255,255,255,.10)); }

/* 軌道光環 */
.aeg-hub::before,
.aeg-hub::after {
  content: "";
  position: absolute;
  left: 50%;
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}
.aeg-hub::before {
  bottom: 4%;
  width: 116%; height: 22%;
  padding: 1.5px;
  background: conic-gradient(from var(--aeg-ring-angle),
    transparent 0deg, var(--aeg-acc) 24deg, rgba(10,132,255,.6) 60deg, transparent 110deg,
    transparent 180deg, rgba(191,90,242,.85) 210deg, transparent 260deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: drop-shadow(0 0 6px var(--aeg-acc));
  animation: aegRingOrbit 6s linear infinite;
}
.aeg-hub::after {
  bottom: -1%;
  width: 136%; height: 30%;
  border: 1px dashed color-mix(in srgb, var(--aeg-acc) 28%, transparent);
  box-shadow: inset 0 0 40px rgba(10,132,255,.18);
}
@keyframes aegRingOrbit { to { --aeg-ring-angle: 360deg; } }

/* 鏡面反光層 */
.aeg-hub-glare {
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  mix-blend-mode: screen;
  background:
    radial-gradient(36% 24% at calc(50% + var(--px, 0) * 140%) calc(26% + var(--py, 0) * 120%),
      rgba(255,255,255,.40), transparent 70%);
}
.aeg-hub-glare::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.55) 48%, rgba(180,230,255,.25) 52%, transparent 60%);
  background-size: 260% 100%;
  background-position: 160% 0;
  animation: aegGlareSweep 7s cubic-bezier(.4, 0, .2, 1) 2s infinite;
}
@keyframes aegGlareSweep {
  0%        { background-position: 160% 0; }
  35%, 100% { background-position: -60% 0; }
}

/* 資料命中：閃光 + 漣漪 */
.aeg-hub.is-hit .aeg-hub-glare { animation: aegHitFlash .7s ease-out; }
@keyframes aegHitFlash {
  0%   { background-color: color-mix(in srgb, var(--aeg-acc) 45%, transparent); }
  100% { background-color: transparent; }
}

.aeg-hub-ripple {
  position: absolute;
  left: 50%; bottom: 9%;
  width: 70%; height: 16%;
  translate: -50% 0;
  border-radius: 50%;
  border: 1.5px solid var(--c, var(--aeg-acc));
  box-shadow: 0 0 18px var(--c, var(--aeg-acc)), inset 0 0 12px var(--c, var(--aeg-acc));
  pointer-events: none;
  z-index: 1;
  animation: aegRipple 1.2s var(--aeg-ease) forwards;
}
@keyframes aegRipple {
  from { scale: .55; opacity: 1; }
  to   { scale: 2.1; opacity: 0; }
}

.aeg-hub-hotspot::after {
  background: radial-gradient(circle, rgba(255,255,255,.35), color-mix(in srgb, var(--aeg-acc) 35%, transparent) 55%, transparent 78%);
}
.aeg-hub-hotspot:hover::after,
.aeg-hub-hotspot.active::after {
  border-color: rgba(255,255,255,.85);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--aeg-acc) 25%, transparent), 0 0 50px 12px color-mix(in srgb, var(--aeg-acc) 55%, transparent);
}

/* ---------- 4. 資料流線 / 彗星 ---------- */

.aeg-flow-svg path { stroke-width: 1.6; opacity: .55; }
.aeg-flow-svg path.is-active,
.aeg-flow-svg path.is-firing { stroke-width: 2.4; opacity: 1; }
.aeg-flow-svg circle.aeg-particle { filter: drop-shadow(0 0 4px #64d2ff); }
.aeg-comet { filter: url(#aegGlow) drop-shadow(0 0 6px var(--c, #64d2ff)); }

/* 卡片接收脈衝 */
.aeg-ping { animation: aegPing .9s var(--aeg-ease); }
@keyframes aegPing {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--aeg-acc) 70%, transparent), 0 0 40px color-mix(in srgb, var(--aeg-acc) 40%, transparent); }
  100% { box-shadow: 0 0 0 12px transparent, 0 0 0 transparent; }
}
.aeg-ping .aeg-sysout-icon img,
.aeg-ping .aeg-app-photo img:not(.aeg-app-badge) { animation: aegPop .6s var(--aeg-ease); }
@keyframes aegPop { 40% { scale: 1.12; } }

/* ---------- 5. 說明面板 ---------- */

.aeg-detail { position: relative; overflow: hidden; }
.aeg-detail::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--aeg-sec-angle),
    transparent 0deg, var(--aeg-acc) 50deg, rgba(10,132,255,.5) 90deg, transparent 150deg,
    transparent 220deg, rgba(191,90,242,.6) 280deg, transparent 340deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: aegSecSpin 8s linear infinite;
  pointer-events: none;
}
.aeg-detail::after {
  content: "";
  position: absolute;
  right: -80px; top: -120px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--aeg-acc) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.aeg-detail-icon {
  width: 60px; height: 60px;
  padding: 9px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.6);
  background:
    radial-gradient(120% 80% at 50% 0%, #fff, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #f5f6fa 0%, #c3c7d6 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 0 0 4px color-mix(in srgb, var(--aeg-acc) 14%, transparent),
    0 0 30px color-mix(in srgb, var(--aeg-acc) 50%, transparent),
    0 16px 30px -10px rgba(0,0,0,.8);
}
.aeg-detail-copy { position: relative; z-index: 1; }
.aeg-detail-copy.aeg-swap { animation: aegSwap .7s var(--aeg-ease); }
@keyframes aegSwap {
  from { opacity: 0; filter: blur(8px); translate: 0 8px; }
  to   { opacity: 1; filter: blur(0);   translate: 0 0; }
}

/* ---------- 6. 底部特色列 ---------- */

.aeg-feature-strip li { gap: 10px; transition: background .25s ease, color .25s ease; }
.aeg-feature-strip li:not(:last-child) { border-right: none; }
.aeg-feature-strip li i {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 9px;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 14px -4px rgba(0,0,0,.7);
  transition: translate .35s var(--aeg-ease), box-shadow .35s ease;
}
.aeg-feature-strip li:nth-child(1) { --c: #0a84ff; }
.aeg-feature-strip li:nth-child(2) { --c: #5e5ce6; }
.aeg-feature-strip li:nth-child(3) { --c: #32ade6; }
.aeg-feature-strip li:nth-child(4) { --c: #30d158; }
.aeg-feature-strip li:nth-child(5) { --c: #bf5af2; }
.aeg-feature-strip li:hover i {
  translate: 0 -3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 22px -4px var(--c);
}

/* ---------- 7. 產品發表式進場 ---------- */

.aeg-js .aeg-header h2 {
  transition: opacity 1.2s ease, filter 1.3s ease, letter-spacing 1.6s var(--aeg-ease);
}
.aeg-js .aeg-header p,
.aeg-js .aeg-kicker {
  transition: opacity 1s ease .35s, translate 1.2s var(--aeg-ease) .35s;
}
.aeg-js:not(.aeg-entered) .aeg-header h2 { opacity: 0; filter: blur(16px); letter-spacing: .06em; }
.aeg-js:not(.aeg-entered) .aeg-header p,
.aeg-js:not(.aeg-entered) .aeg-kicker { opacity: 0; translate: 0 14px; }

/* Hub 由光中浮現，持續懸浮 */
.aeg-js .aeg-hub {
  transition: transform .35s cubic-bezier(.2,.8,.2,1), scale 1.8s var(--aeg-ease) .2s, opacity 1.2s ease .2s, filter 1.6s ease .2s;
}
.aeg-js:not(.aeg-entered) .aeg-hub { scale: .78; opacity: 0; filter: blur(18px) brightness(1.8); }
.aeg-js.aeg-entered .aeg-hub { animation: aegHubFloat 6s ease-in-out 2s infinite; }
@keyframes aegHubFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

.aeg-js .aeg-col-hub::after { transition: scale 1.8s var(--aeg-ease) .4s; }
.aeg-js:not(.aeg-entered) .aeg-col-hub::after { animation: none; opacity: 0; scale: .3; }

/* 兩側欄位滑入 */
.aeg-js .aeg-col-in,
.aeg-js .aeg-col-sysout,
.aeg-js .aeg-col-out {
  transition: opacity .9s ease, transform .7s cubic-bezier(.2,.8,.2,1), translate 1.3s var(--aeg-ease);
}
.aeg-js:not(.aeg-entered) .aeg-col-in     { translate: -56px 0; }
.aeg-js:not(.aeg-entered) .aeg-col-sysout { translate: 40px 0; }
.aeg-js:not(.aeg-entered) .aeg-col-out    { translate: 72px 0; }

/* 卡片瀑布 */
.aeg-js .aeg-node,
.aeg-js .aeg-app-row,
.aeg-js .aeg-feature-strip li {
  transition:
    transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, border-color .28s ease, background .28s ease, color .25s ease,
    opacity .8s ease calc(var(--i, 0) * 70ms + .35s),
    translate 1s var(--aeg-ease) calc(var(--i, 0) * 70ms + .35s),
    scale 1s var(--aeg-ease) calc(var(--i, 0) * 70ms + .35s);
}
.aeg-js:not(.aeg-entered) .aeg-node,
.aeg-js:not(.aeg-entered) .aeg-app-row,
.aeg-js:not(.aeg-entered) .aeg-feature-strip li { opacity: 0; translate: 0 20px; scale: .94; }

@media (prefers-reduced-motion: reduce) {
  .arch-ecosystem-glass::before,
  .arch-ecosystem-glass::after,
  .aeg-header h2 em,
  .aeg-hub::before,
  .aeg-hub-glare::after,
  .aeg-detail::before { animation: none !important; }
}

/* ---------- Responsive ---------- */


@media (max-width: 1080px) {
  .arch-ecosystem-glass { padding: 88px 20px 96px; }
  .aeg-col-hub::after { bottom: -2%; }
}

@media (max-width: 640px) {
  .arch-ecosystem-glass { padding: 72px 16px 80px; }
  .aeg-header { margin-bottom: 48px; }
  .aeg-header h2 { font-size: 40px; }
  .aeg-node-icon { width: 52px; height: 52px; border-radius: 13px; }
  .aeg-hub-img { -webkit-box-reflect: unset; }
  .aeg-col-hub { translate: none; }
  .aeg-node-icon { width: 54px; height: 54px; border-radius: 14px; }
  .aeg-feature-strip li i { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .aeg-col-hub::after { animation: none !important; }
}
