/* HEIGHTLAB 官网覆盖样式（克莱因蓝主题） */
:root {
  --hl-blue: #002fa7;
  --hl-blue-dark: #001e6e;
}

/* ---- 顶部公告条（默认停用，启用时把 data-enabled 改为 true） ---- */
.hl-promo[data-enabled="false"] { display: none !important; }
.hl-promo:not([hidden]) {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 39px;
  padding: 0 16px;
  background: linear-gradient(90deg, var(--hl-blue) 0%, var(--hl-blue-dark) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  transition: transform 0.32s ease;
}
.hl-promo.is-hidden {
  transform: translateY(-100%);
}

/* ---- 导航 logo：图标 + 文字 ---- */
.header__logo {
  width: auto !important;
  min-width: 0 !important;
  gap: 8px;
  padding: 0 14px !important;
  text-decoration: none;
}
.header__logo-mark {
  width: 22px;
  height: 22px;
  display: block;
  flex: none;
  border-radius: 6px;
}
.header__logo-word {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0a0a0a;
  white-space: nowrap;
}
.header__logo-word em {
  font-style: normal;
  color: var(--hl-blue);
}
.hl-promo__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8aa5ff;
  flex: none;
}
.hl-promo__link {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  padding-bottom: 1px;
}
.hl-promo__link:hover {
  border-color: #fff;
}

/* ---- 打字机光标 ---- */
.hl-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: currentColor;
  animation: cursor-blink 1s steps(1) infinite;
}

/* ---- 模板卡 hover 视频封面 ---- */
.skill-card__media-shell {
  position: relative;
}
.skill-card__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.skill-card:hover .skill-card__bg-video {
  opacity: 1;
}

/* ---- JS 失效兜底：标题文字保持可见 ---- */
body:not(.has-scroll-reveal) .scroll-reveal-text__ink {
  opacity: 1 !important;
  filter: none !important;
}
body:not(.has-scroll-reveal) .scroll-reveal-text__track-x,
body:not(.has-scroll-reveal) .scroll-reveal-text__track-y {
  transform: none !important;
}

/* ============ Hero 静态化改造（桌面端） ============ */
@media (min-width: 900px) {
  /* 取消滚动旅程，改为单屏静态流式布局 */
  .hero-experience {
    height: auto !important;
  }
  .hero-experience .hero {
    --hero-product-opacity: 1;
    --hero-product-y: 0px;
    --ardot-layer-1-opacity: 1;
    --ardot-layer-1-scale: 1;
    --ardot-layer-3-opacity: 1;
    --ardot-layer-3-scale: 1;
    --ardot-layer-3-blur: 0px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100svh;
    padding: calc(var(--glass-header-height, 60px) + 54px) 24px 64px;
  }
  .hero-experience .hero__copy {
    position: relative;
    top: auto;
    left: auto;
    transform: none !important;
    width: min(1320px, 100%);
  }
  .hero-experience .hero-product-stage {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    padding: 0;
    margin-top: clamp(34px, 6svh, 56px);
    pointer-events: auto;
    z-index: 5;
  }
  .hero-experience .hero-product {
    position: relative;
    margin: 0 auto;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto;
  }

  /* ---- 悬浮卡片墙：椭圆环绕中央 logo/品牌名 ---- */
  .hero-experience .hero-orbit {
    display: block !important;
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1400px, 100%);
    height: 620px;
    z-index: 2;
    pointer-events: none;
  }
  .hero-experience .hero-orbit__item {
    position: absolute;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 44px rgba(4, 30, 96, 0.12);
    animation: hl-orbit-float 9s ease-in-out infinite alternate;
    will-change: transform;
  }
  .hero-experience .hero-orbit__item video,
  .hero-experience .hero-orbit__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
  }
  /* 椭圆参数：中心 (50%, 50%)，rx=43%, ry=44%，从正上方顺时针 */
  /* 顶部（远景，小+模糊） */
  .hero-experience [data-orbit-index="0"]  { left: 50%;  top: 2%;   width: 130px; transform: translateX(-50%); animation-delay: 0s;   opacity: .42; filter: blur(2px) saturate(.85); }
  /* 右上 */
  .hero-experience [data-orbit-index="1"]  { left: 78%;  top: 8%;   width: 168px; animation-delay: -1.5s; opacity: .68; filter: blur(.6px); }
  .hero-experience [data-orbit-index="2"]  { left: 91%;  top: 32%;  width: 188px; animation-delay: -3s;   opacity: .85; }
  .hero-experience [data-orbit-index="3"]  { left: 93%;  top: 58%;  width: 180px; animation-delay: -4.5s; opacity: .82; }
  /* 右下 */
  .hero-experience [data-orbit-index="4"]  { left: 78%;  top: 84%;  width: 164px; animation-delay: -2.5s; opacity: .65; filter: blur(.8px); }
  /* 底部（远景） */
  .hero-experience [data-orbit-index="5"]  { left: 50%;  top: 92%;  width: 148px; transform: translateX(-50%); animation-delay: -5s; opacity: .48; filter: blur(1.8px) saturate(.85); }
  /* 左下 */
  .hero-experience [data-orbit-index="6"]  { left: 12%;  top: 84%;  width: 164px; animation-delay: -3.5s; opacity: .65; filter: blur(.8px); }
  .hero-experience [data-orbit-index="7"]  { left: 2%;   top: 58%;  width: 180px; animation-delay: -1s;   opacity: .82; }
  /* 左上 */
  .hero-experience [data-orbit-index="10"] { left: 2%;   top: 32%;  width: 188px; animation-delay: -2s;   opacity: .85; }
  .hero-experience [data-orbit-index="11"] { left: 1%;  top: 6%;   width: 168px; animation-delay: -4s;   opacity: .68; filter: blur(.6px); }
  /* 极远点缀（可选） */
  .hero-experience [data-orbit-index="13"] { left: 50%;  top: 46%;  width: 0; display: none; }
}
@media (max-width: 1180px) and (min-width: 900px) {
  .hero-experience [data-orbit-index="10"],
  .hero-experience [data-orbit-index="11"],
  .hero-experience [data-orbit-index="13"] { display: none; }
}

@keyframes hl-orbit-float {
  from { transform: translateY(0); }
  to   { transform: translateY(-16px); }
}

/* ---- 去 React 后补齐原本由 JS 添加的就绪态 ---- */
.workflow-carousel__track { opacity: 1 !important; }
.skill-card__media-shell .skill-card__bg-img { opacity: 1 !important; }
.skill-card__media-shell { height: 100% !important; }
/* 纯白底海报铺满媒体区（电商详情页/去水印等） */
.skill-card__media-shell img[src*="deb44193"],
.skill-card__media-shell img[src*="69fcd314"] { object-fit: cover !important; }
.skill-card__tint { display: none !important; }

/* ============================================================
   v3 结构调整：玻璃胶囊导航 / 景深卡片墙 / 间距 / 邀请码
   ============================================================ */

/* ---- 移动端导航面板：桌面端隐藏 ---- */
@media (min-width: 900px) {
  .header__mobile-panel { display: none !important; }
  .header__mobile-toggle { display: none !important; }
}

/* ---- 公告条默认停用（保留，启用时去掉 hidden 并把 data-enabled 改 true） ---- */
.hl-promo[hidden], .hl-promo[data-enabled="false"] { display: none !important; height: 0 !important; }
body { --promo-height: 0px !important; padding-top: 0 !important; }

/* ---- 玻璃胶囊导航：千问式 —— 首屏无条，滚动时收缩成胶囊 ---- */
.header {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: 18px !important;
  transform: translateX(-50%) !important;
  width: min(880px, calc(100% - 64px)) !important;
  max-width: 880px !important;
  border-radius: 999px !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  transition: background .28s ease, box-shadow .28s ease, border-color .28s ease, width .32s cubic-bezier(.4,0,.2,1), top .28s ease;
  padding: 8px 18px !important;
}
body.is-scrolled .header {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(20px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  box-shadow: 0 8px 32px rgba(4, 30, 96, 0.10), 0 1px 0 rgba(255,255,255,.8) inset !important;
  top: 14px !important;
  width: min(760px, calc(100% - 96px)) !important;
}
.header--glass { background: transparent !important; }
body.is-scrolled .header--glass { background: rgba(255, 255, 255, 0.78) !important; }

/* 导航链接组 */
.header__right { display: flex !important; align-items: center; gap: 8px; }
.header__nav { display: flex; align-items: center; gap: 4px; margin-right: 8px; }
.header__nav-link {
  display: inline-flex; align-items: center;
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: rgba(10,10,10,.72);
  text-decoration: none; transition: background .18s ease, color .18s ease;
}
.header__nav-link:hover { background: rgba(0, 47, 167, 0.06); color: var(--hl-blue); }
.header__nav-link.is-active { color: var(--hl-blue); font-weight: 600; }

/* 申请邀请码 + 悬浮微信二维码 */
.hl-invite { position: relative; }
.hl-invite > .btn { white-space: nowrap; }
.hl-invite__qr {
  position: absolute; top: calc(100% + 12px); right: 0;
  width: 168px; padding: 10px; border-radius: 14px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 16px 48px rgba(4,30,96,.18);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; transform: translateY(-6px) scale(.97); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 500;
}
.hl-invite__qr img { width: 100%; aspect-ratio: 1; border-radius: 8px; display: block; }
.hl-invite__qr span { font-size: 11px; color: rgba(10,10,10,.55); }
.hl-invite:hover .hl-invite__qr { opacity: 1; transform: none; pointer-events: auto; }
.hl-invite.is-open .hl-invite__qr { opacity: 1; transform: none; pointer-events: auto; }

/* ---- hero 中央 logo 换黑色胶囊 ---- */
.hero-experience .hero__copy .header__logo-mark,
.hero-experience img[src*="brand-mark"] { border-radius: 10px; }
/* hero 中央胶囊图：放大并与品牌名对齐 */
.hero-experience .mascot-wordmark { display: inline-flex !important; align-items: center; gap: 20px; }
.hero-experience .mascot-wordmark__mascot { width: 88px !important; height: 88px !important; object-fit: contain; filter: drop-shadow(0 8px 24px rgba(4,30,96,.2)); transform: translateY(4px); }

/* ---- 悬浮卡片墙：景深分层（已在上方位置规则中内联） ---- */
@media (min-width: 900px) {
  .hero-experience .hero-orbit { perspective: 1200px; }
  .hero-experience .hero-orbit__item { will-change: transform, filter; }
  /* 标题/按钮浮在卡片之上 */
  .hero-experience .hero__copy,
  .hero-experience .hero__headline,
  .hero-experience .hero__tagline-rotator,
  .hero-experience .hero__intro,
  .hero-experience .hero__cta,
  .hero-experience .hero-product-stage { position: relative; z-index: 10 !important; }
}

/* ---- hero 产品 UI 下移，与标题拉开 ---- */
@media (min-width: 900px) {
  .hero-experience .hero { padding-bottom: 140px; min-height: 108svh; }
  .hero-experience .hero-product-stage { margin-top: clamp(72px, 13svh, 140px); padding: 0 clamp(16px, 4vw, 64px); }
  .hero-experience .hero-product img { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 24px 80px rgba(4, 30, 96, 0.14); }
}

/* ---- 三步流程与 hero 拉开间距 ---- */
.workflow-carousel { margin-top: clamp(48px, 8svh, 96px) !important; padding-top: 0 !important; background: transparent !important; }

/* ---- 三步卡片横向滚动条轨道提示 ---- */
.workflow-carousel__viewport { scrollbar-width: thin; }
.workflow-carousel__viewport::-webkit-scrollbar { height: 6px; }
.workflow-carousel__viewport::-webkit-scrollbar-thumb { background: rgba(0,47,167,.18); border-radius: 3px; }


/* ===== HeightLab 首屏截图：双图并排（2026-09-16）=====
   每张为原宽度一半；左右并排。右侧第二张待替换为新的软件主页截图。
   同时加大截图区顶部留白，给「下载 macOS 版」的下拉菜单留出展开空间，
   并抬高下拉面板层级，保证可点。 */
.hero-ardot-interface__layers,
.hero-ardot-interface__layer--base {
  display: flex;
  gap: 2.5%;
  justify-content: center;
  align-items: flex-start;
}
.hero-ardot-interface__layer--base img {
  width: 49%;
  height: auto;
}
.hero-product-stage {
  margin-top: clamp(100px, 13svh, 165px) !important;
}
.download-menu__panel {
  z-index: 80;
}

/* 双图并排 v2：取消单图时代的 -50% 位移与固定宽高比，让两张截图完整显示 */
.hero-ardot-interface {
  aspect-ratio: auto !important;
}
.hero-ardot-interface__layer--base {
  position: static !important;
  transform: none !important;
  width: 100% !important;
}
.hero-ardot-interface__layer--base img {
  width: 44% !important;
  max-width: 430px;
  height: auto !important;
}


/* ===== 首屏三图 Z 轴轮换（2026-09-16）=====
   三张同尺寸截图自动轮换：左前 → 右前 → 后方（半透明缩小）→ 循环。
   换图：直接改 HTML 里三个 img 的 src。 */
.hero-ardot-interface__layers { display: block !important; }
.hero-ardot-interface__layer--base {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  padding-top: 24%;
}
.hero-ardot-interface__layer--base img {
  position: absolute;
  top: 0;
  width: 44% !important;
  max-width: 430px;
  height: auto !important;
  animation: hl-cycle 18s ease infinite;
}
img.hl-rot1 { animation-delay: 0s; }
img.hl-rot2 { animation-delay: -6s; }
img.hl-rot3 { animation-delay: -12s; }
@keyframes hl-cycle {
  0%    { left: 3%;  z-index: 2; opacity: 1;   transform: scale(1); }
  27.7% { left: 3%;  z-index: 2; opacity: 1;   transform: scale(1); }
  33.3% { left: 53%; z-index: 2; opacity: 1;   transform: scale(1); }
  61%   { left: 53%; z-index: 2; opacity: 1;   transform: scale(1); }
  66.6% { left: 28%; z-index: 1; opacity: 0.3; transform: scale(0.94); }
  94.4% { left: 28%; z-index: 1; opacity: 0.3; transform: scale(0.94); }
  100%  { left: 3%;  z-index: 2; opacity: 1;   transform: scale(1); }
}

/* 轮换定位修正：全部锚定容器中线，左右对称 */
.hero-ardot-interface__layer--base img {
  left: 50% !important;
}
@keyframes hl-cycle {
  0%    { z-index: 2; opacity: 1;   transform: translateX(calc(-100% - 12px)) scale(1); }
  27.7% { z-index: 2; opacity: 1;   transform: translateX(calc(-100% - 12px)) scale(1); }
  33.3% { z-index: 2; opacity: 1;   transform: translateX(12px) scale(1); }
  61%   { z-index: 2; opacity: 1;   transform: translateX(12px) scale(1); }
  66.6% { z-index: 1; opacity: 0.3; transform: translateX(-50%) scale(0.94); }
  94.4% { z-index: 1; opacity: 0.3; transform: translateX(-50%) scale(0.94); }
  100%  { z-index: 2; opacity: 1;   transform: translateX(calc(-100% - 12px)) scale(1); }
}

/* 真凶修复：上游 layer 的 left:50% 在 relative 定位下会把整层推出中线 */
.hero-ardot-interface__layer--base {
  left: 0 !important;
  top: 0 !important;
}

/* ===== 三图轮换 3D 化（2026-09-16）=====
   先进官网通用做法：容器 perspective + 卡片 rotateX/rotateY + 后卡 translateZ。
   整排后仰 6°；左右前卡各向内转 10°；后方卡沿 Z 轴沉入深处（近大远小）。 */
.hero-ardot-interface__layers {
  perspective: 1800px;
  perspective-origin: 50% 20%;
}
.hero-ardot-interface__layer--base {
  transform: rotateX(6deg) !important;
  transform-style: preserve-3d;
}
@keyframes hl-cycle {
  0%    { z-index: 2; opacity: 1;   transform: translateX(calc(-100% - 12px)) rotateY(10deg); }
  27.7% { z-index: 2; opacity: 1;   transform: translateX(calc(-100% - 12px)) rotateY(10deg); }
  33.3% { z-index: 2; opacity: 1;   transform: translateX(12px) rotateY(-10deg); }
  61%   { z-index: 2; opacity: 1;   transform: translateX(12px) rotateY(-10deg); }
  66.6% { z-index: 1; opacity: 0.45; transform: translateX(-50%) translateZ(-220px) scale(0.96); }
  94.4% { z-index: 1; opacity: 0.45; transform: translateX(-50%) translateZ(-220px) scale(0.96); }
  100%  { z-index: 2; opacity: 1;   transform: translateX(calc(-100% - 12px)) rotateY(10deg); }
}

/* ===== 打字机行高锁定（2026-09-16）=====
   tagline 在一行/两行之间变化时，固定按两行占位，下方内容不再跳动。 */
.hero__tagline {
  display: inline-block;
  vertical-align: top;
  min-height: 2.16em;
}

/* ===== 模板卡满幅视频化（2026-09-16，云镜样式）=====
   卡片=整块视频：媒体铺满卡片、竖版 3:4、文字白字叠底部渐变上。 */
.skill-card {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: #0a0a14;
}
.skill-card__face,
.skill-card__face--single {
  padding: 0 !important;
  background: transparent !important;
  position: static !important;
  height: 100%;
}
.cc-b__photo,
.skill-card__media-shell {
  position: absolute !important;
  inset: 0 !important;
  width: 100%;
  height: 100%;
}
.skill-card__bg-img,
.skill-card__bg-video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}
.skill-card__face::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 52%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.74));
  z-index: 2;
  pointer-events: none;
}
.skill-card__title-row,
.skill-card__brief-block {
  position: absolute !important;
  left: 16px;
  right: 16px;
  z-index: 3;
  margin: 0 !important;
}
.skill-card__title-row { bottom: 46px; }
.skill-card__brief-block { bottom: 16px; }
.cc-b__name {
  color: #fff !important;
  font-size: 17px !important;
}
.skill-card__brief {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
}
