/* ============================================================
   智荐GEO · AI 矩阵 Hero 动画（嵌入版 CSS）
   作用域：.aiv-stage 内部，不污染站点其他样式
   ============================================================ */
:root {
  --aiv-brand-blue: #2f7bff;
  --aiv-tile-shadow: 0 18px 40px -12px rgba(15, 40, 105, .28), 0 4px 10px -4px rgba(15, 40, 105, .18);
}

/* ---------- 动画舞台 ---------- */
.aiv-stage {
  position: relative;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 19 / 7.6;
  min-height: 460px;
  -webkit-mask-image: radial-gradient(150% 135% at 55% 45%, #000 60%, transparent 97%);
          mask-image: radial-gradient(150% 135% at 55% 45%, #000 60%, transparent 97%);
}

/* 旋转彩带轮盘 */
.aiv-ribbon {
  position: absolute; left: 50%; top: 50%;
  width: var(--w); aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  mask-image: radial-gradient(closest-side, transparent 55%, #000 56% 78%, transparent 79%);
  -webkit-mask-image: radial-gradient(closest-side, transparent 55%, #000 56% 78%, transparent 79%);
  background: conic-gradient(from 20deg, #ffd3de, #e3d4ff, #cce2ff, #c9ecff, #ffe7c9, #ffd3de);
  opacity: .30; filter: saturate(1.05) blur(6px);
  animation: aivSpin var(--t, 26s) linear infinite;
  will-change: transform;
}
@keyframes aivSpin { to { transform: rotate(360deg); } }

.aiv-ribbon--b { --w: 66%; opacity: .18; filter: blur(9px); --t: 30s; }

/* 内圈接力跑道（虚线圆） */
.aiv-lane {
  position: absolute; left: 50%; top: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1.5px dashed rgba(47, 123, 255, .25);
  z-index: 2;
  pointer-events: none;
}

/* 时针 / 分针（真实指针） */
.aiv-hand {
  position: absolute; left: 50%; z-index: 5;
  transform-origin: 50% 100%;
  border-radius: 99px;
  pointer-events: none;
  will-change: transform;
}
.aiv-hand--hour {
  width: 5px;
  background: linear-gradient(92deg, #00b4ff 0%, #2f7bff 45%, #7a5cff 100%);
  box-shadow: 0 2px 12px rgba(47, 123, 255, .45);
}
.aiv-hand--min {
  width: 3px;
  background: linear-gradient(94deg, #12c287, #0aa4d7);
  box-shadow: 0 2px 8px rgba(47, 123, 255, .28);
}
.aiv-hand::after {
  content: ""; position: absolute; left: 50%; top: -4px;
  translate: -50% 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(47, 123, 255, .35);
}

/* 当前小时位 logo 高亮（时针指到谁就点亮谁） */
.aiv-tile--now {
  box-shadow: 0 0 0 3px rgba(47, 123, 255, .35),
              0 18px 40px -12px rgba(15, 40, 105, .28),
              inset 0 1.5px 0 rgba(255, 255, 255, .9);
}

/* 中心 logo（表盘轴心；无底色卡片，只留图形） */
.aiv-center {
  position: absolute; left: 50%; top: 50%;
  translate: -50% -50%;
  width: 15cqi; max-width: 150px; aspect-ratio: 1;
  z-index: 8;
  display: grid; place-items: center;
  /* 钟摆支点 = 卡片自身中心（与三针轴心重合）；
     旋转角度由 aiv.js 驱动，左右小幅来回 */
  transform-origin: 50% 50%;
  animation: aivPopIn .9s cubic-bezier(.2, .9, .25, 1.4) both;
}
.aiv-center img { width: 70%; height: 70%; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(23, 78, 175, .35)); }

/* 漂浮的 AI logo 卡片 */
.aiv-tile {
  position: absolute; left: 0; top: 0;
  width: var(--s, 64px); aspect-ratio: 1;
  border-radius: 26%;
  display: grid; place-items: center;
  background: radial-gradient(130% 130% at 28% 20%, #ffffff 0%, var(--tilebg, #f4f8ff) 60%, var(--tilebg2, #e7effd) 100%);
  box-shadow: var(--aiv-tile-shadow), inset 0 1.5px 0 rgba(255, 255, 255, .9);
  cursor: pointer;
  will-change: transform;
  transition: box-shadow .25s ease;
  animation: aivTileIn .8s ease both;
  animation-delay: var(--d, 0ms);
}
@keyframes aivTileIn { from { opacity: 0; } }
.aiv-tile img { width: 58%; height: 58%; object-fit: contain; pointer-events: none; mix-blend-mode: multiply; }
.aiv-tile .aiv-tile-name {
  position: absolute; bottom: -22px; left: 50%; translate: -50% 0;
  font-size: 10px; color: #64748f; opacity: 0; transition: opacity .2s ease; white-space: nowrap;
  z-index: 3; pointer-events: none;
}
/* 贴底时刻位（尤其 6 点位）hover 放大后，名称挂在下方会被舞台遮罩裁掉；
   aiv.js 按实时位置把 data-aiv-label 置为 above，名称翻到图标上方 */
.aiv-tile[data-aiv-label="above"] .aiv-tile-name {
  bottom: auto; top: -22px;
}
.aiv-tile:hover { box-shadow: 0 26px 54px -16px rgba(23, 78, 175, .5), inset 0 1.5px 0 rgba(255, 255, 255, .9); }
.aiv-tile:hover .aiv-tile-name { opacity: 1; }

/* 星芒点缀 */
.aiv-spark {
  position: absolute; width: 26px; aspect-ratio: 1; z-index: 4; pointer-events: none;
  background: conic-gradient(from 45deg, #9fc7ff 0 25%, #ffffff 0 50%, #9fc7ff 0 75%, #ffffff 0);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 8px rgba(120, 170, 255, .8));
  animation: aivTwinkle var(--tt, 3.6s) ease-in-out infinite; opacity: 0;
}
@keyframes aivTwinkle {
  0%, 100% { opacity: 0; transform: scale(.4) rotate(0); }
  50% { opacity: .95; transform: scale(1) rotate(28deg); }
}

/* 入场：中心卡 pop + 图标错落浮现 */
.aiv-ready .aiv-center { animation: aivPopIn .9s cubic-bezier(.2, .9, .25, 1.4) both; }
@keyframes aivPopIn { from { scale: .2; opacity: 0; } to { scale: 1; opacity: 1; } }

/* 响应式 */
@media (max-width: 980px) {
  .aiv-stage { min-height: 380px; aspect-ratio: 8 / 5; }
}
