/* CIIP intelligence.html 内嵌 ops：无二级导航，页面自然滚动展示完整 overview */
body.ciip-ops-embed {
  height: auto !important;
  min-height: 100%;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
/*
 * ops/style.css 的 .nav / .header-line / .header-actions 是全局选择器，
 * 会压扁站点顶栏（height:41px），导致「智能办公」高亮下划线相对顶栏底边偏移。
 * 仅在站点 .header 上还原，不影响壳内已隐藏的 ops .top-header。
 */
body.ciip-ops-embed > .header .header-line {
  height: 2px !important;
  background: linear-gradient(to right, transparent, var(--primary, #0EA5E9), transparent) !important;
  opacity: 0.6 !important;
}
body.ciip-ops-embed > .header .header-content {
  height: 64px !important;
}
body.ciip-ops-embed > .header .nav,
body.ciip-ops-embed > .header #mainNav.nav,
body.ciip-ops-embed > .header nav#mainNav {
  height: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-top: none !important;
  gap: 0 !important;
  align-items: stretch !important;
  align-self: stretch !important;
}
body.ciip-ops-embed > .header .header-actions {
  gap: 12px;
  margin-left: 0;
}
body.ciip-ops-embed > .header .ciip-agent-nav-wrap,
body.ciip-ops-embed > .header .ciip-agent-nav-wrap a.nav-agent-trigger {
  align-self: stretch;
  height: auto;
}
html:has(body.ciip-ops-embed) {
  height: auto;
}
body.ciip-ops-embed .ciip-ops-shell {
  position: relative;
  z-index: 1;
  margin-top: var(--preview-header-total, 66px);
  min-height: calc(100vh - var(--preview-header-total, 66px));
}
body.ciip-ops-embed .ciip-ops-shell .top-header {
  display: none !important;
}
body.ciip-ops-embed .ciip-ops-shell .main {
  height: auto !important;
  min-height: 0;
  padding-top: 0 !important;
  display: block;
}
body.ciip-ops-embed .ciip-ops-shell .view {
  flex: none;
  height: auto !important;
  min-height: 0;
  max-height: none !important;
  overflow: visible !important;
  padding: 0;
}
body.ciip-ops-embed .ciip-ops-shell .view.ov-full {
  overflow: visible !important;
}
body.ciip-ops-embed .ciip-ops-shell .view.ov-full > .hero {
  min-height: 0;
  padding: 36px 40px 40px;
}
body.ciip-ops-embed .ciip-ops-shell .ov-mod {
  min-height: 0 !important;
  padding: 28px 40px 32px;
  gap: 16px;
}
body.ciip-ops-embed .ciip-ops-shell .ov-mod-body {
  justify-content: flex-start;
}
/* Hero 与下方 KPI/正文之间拉开缝隙 */
body.ciip-ops-embed .ciip-ops-shell .ov-mod-body > .hero {
  margin-bottom: 24px;
}
/* overview 懒挂载骨架：占位高度，避免布局跳动 */
body.ciip-ops-embed .ciip-ops-shell .ov-mod-skel {
  min-height: 220px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(22,93,255,.06), rgba(22,93,255,.12), rgba(22,93,255,.06));
  background-size: 200% 100%;
  animation: ov-skel-shine 1.2s ease-in-out infinite;
}
@keyframes ov-skel-shine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
body.ciip-ops-embed .ciip-ops-shell .bg-grid,
body.ciip-ops-embed .ciip-ops-shell .bg-glow {
  display: none;
}
body.ciip-ops-embed .ciip-ops-shell .scrim {
  display: none !important;
}
body.ciip-ops-embed .pf-site-footer {
  position: relative;
  z-index: 2;
}
body.ciip-ops-embed .ciip-ops-shell .fin-embed {
  height: min(78vh, 820px);
  min-height: 520px;
}
/* 非首页：对齐三自全宽版式——Hero 通栏，正文宽铺 */
body.ciip-ops-embed .ciip-ops-shell .view:not(.ov-full) {
  padding: 0 40px 56px;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}
body.ciip-ops-embed .ciip-ops-shell .view:not(.ov-full) > .hero {
  border-radius: 0;
  border-left: none;
  border-right: none;
  margin: 0 -40px 24px;
  padding: 36px 40px 40px;
}
body.ciip-ops-embed .ciip-ops-shell .view:not(.ov-full) > .hero .ov-wrap {
  max-width: 1480px;
  margin: 0 auto;
  width: 100%;
}
body.ciip-ops-embed .ciip-ops-shell .view:not(.ov-full) > .hero .ov-copy {
  flex: 1 1 520px;
  min-width: 300px;
  max-width: 640px;
}
body.ciip-ops-embed .ciip-ops-shell .view:not(.ov-full) > .hero .ov-copy h1 {
  font-size: 32px;
  line-height: 1.3;
}
body.ciip-ops-embed .ciip-ops-shell .view:not(.ov-full) > .hero .tagline {
  font-size: 15px;
  max-width: 620px;
  line-height: 1.75;
}
body.ciip-ops-embed .ciip-ops-shell .view:not(.ov-full) > .hero .ov-img-stack,
body.ciip-ops-embed .ciip-ops-shell .view:not(.ov-full) > .hero .ov-video-stack {
  flex: 1 1 420px;
  min-width: 300px;
  max-width: 560px;
}
body.ciip-ops-embed .ciip-ops-shell .view:not(.ov-full) > *:not(.hero) {
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
body.ciip-ops-embed .ciip-ops-shell .view:not(.ov-full) .grid.cols-4,
body.ciip-ops-embed .ciip-ops-shell .view:not(.ov-full) .grid.cols-3 {
  gap: 16px;
}
body.ciip-ops-embed .ciip-ops-shell .view:not(.ov-full) .skill-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.55;
}
@media (max-width: 900px) {
  body.ciip-ops-embed .ciip-ops-shell .view:not(.ov-full) {
    padding: 0 20px 40px;
  }
  body.ciip-ops-embed .ciip-ops-shell .view:not(.ov-full) > .hero {
    margin: 0 -20px 20px;
    padding: 24px 20px 28px;
  }
}

/* 首页 / 板块演示视频加大 */
body.ciip-ops-embed .ciip-ops-shell .ov-wrap {
  max-width: 1480px;
  gap: 36px 48px;
  justify-content: space-between;
  align-items: center;
}
body.ciip-ops-embed .ciip-ops-shell .view.ov-full > .hero .ov-copy {
  flex: 1 1 480px;
  min-width: 320px;
  max-width: 560px;
}
body.ciip-ops-embed .ciip-ops-shell .view.ov-full > .hero .ov-video-stack,
body.ciip-ops-embed .ciip-ops-shell .ov-mod .ov-video-stack {
  flex: 1 1 480px;
  min-width: 320px;
  max-width: 560px;
}
/* 外层定 16:9，视频铺满裁切，避免元素自身 aspect-ratio 把画面拉高 */
body.ciip-ops-embed .ciip-ops-shell .hero-video-media {
  aspect-ratio: 16 / 9;
}
body.ciip-ops-embed .ciip-ops-shell .hero-video-media video {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}
body.ciip-ops-embed .ciip-ops-shell .hero-video-title {
  font-size: 15px;
}
body.ciip-ops-embed .ciip-ops-shell .hero-video-body {
  padding: 12px 14px 14px;
}
@media (max-width: 820px) {
  body.ciip-ops-embed .ciip-ops-shell .view.ov-full > .hero {
    padding: 24px 20px 28px;
  }
  body.ciip-ops-embed .ciip-ops-shell .ov-mod {
    padding: 22px 20px 26px;
  }
  body.ciip-ops-embed .ciip-ops-shell .view.ov-full > .hero .ov-video-stack,
  body.ciip-ops-embed .ciip-ops-shell .ov-mod .ov-video-stack {
    flex: 1 1 100%;
    min-width: 0;
    max-width: none;
  }
}
