/* ==========================================================================
   长弧科技官网 3.1 · 灵动交互与滚动动画系统（interactive.css）
   - 柔和层次阴影与微悬浮卡片（消除生硬细线框套娃，强化光影空间层次）
   - 滚动渐显入场动画（Scroll Reveal）与交错延迟
   - 产品落地页底部悬浮章节快捷胶囊（替代原有的双顶部导航栏！）
   - 丰富交互组件样式（选项卡、模拟器、可点击架构流、案例预览台）
   ========================================================================== */

/* 1. 独立产品落地页顶部避让（仅保留唯一全局顶栏 74px） */
body.ag-import-page {
  padding-top: var(--ag-nav-h, 74px);
}

/* 2. 柔化内页与方案页卡片边框，提升空间悬浮感与追光微动效 */
.in-card,
.sol-pillar-card,
.sol-arch-stage,
.sol-deliv-card {
  border-color: rgba(14, 17, 64, 0.055) !important;
  box-shadow:
    0 10px 30px -10px rgba(14, 21, 58, 0.06),
    0 2px 8px -2px rgba(14, 21, 58, 0.03) !important;
  transition:
    transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease !important;
}

.in-card:hover,
.sol-pillar-card:hover,
.sol-arch-stage:hover {
  transform: translateY(-5px);
  border-color: rgba(123, 77, 255, 0.24) !important;
  box-shadow:
    0 24px 48px -12px rgba(32, 38, 108, 0.12),
    0 4px 14px -2px rgba(123, 77, 255, 0.07) !important;
}

/* 3. 滚动入场动画（Scroll Reveal） */
.js-ix [data-ix-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--ix-delay, 0ms);
  will-change: opacity, transform;
}

.js-ix [data-ix-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 4. 产品页底部悬浮章节快捷锚点条（替代不合理的第二套顶部导航栏） */
.ag-section-dock {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 1200;
  transform: translateX(-50%) translateY(0);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(14, 17, 64, 0.84);
  color: rgba(244, 246, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 40px rgba(7, 11, 34, 0.28);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  font-family: var(--ag-sans, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif);
  font-size: 12.5px;
  max-width: calc(100vw - 24px);
  overflow-x: auto;
  scrollbar-width: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ag-section-dock::-webkit-scrollbar {
  display: none;
}

.ag-section-dock a {
  padding: 6px 13px;
  border-radius: 999px;
  color: rgba(240, 244, 255, 0.78);
  text-decoration: none !important;
  font-weight: 550;
  white-space: nowrap;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.ag-section-dock a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.ag-section-dock a.is-current {
  background: linear-gradient(135deg, #4F46E5, #7B4DFF);
  color: #ffffff;
  font-weight: 650;
  box-shadow: 0 4px 12px rgba(123, 77, 255, 0.36);
}

@media (max-width: 680px) {
  .ag-section-dock {
    bottom: 12px;
    padding: 5px 6px;
    font-size: 12px;
  }
  .ag-section-dock a {
    padding: 5px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-ix [data-ix-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
