/* ============================================================
   home-products-2026.css — 首页产品矩阵三张主视觉（2026-09-05 v2：去容器）
   仅 index.html / en/index.html 引用，放在 design-2026.css 之后。
   v2 与三个产品子页首屏对齐：不再有"浅青底 + 青线"盒子，设备/画面直接悬浮在版面上，
   底下只留一团淡光晕落脚，投影与浮动芯片沿用 product-2026.css 的 .app-frame / .phone / .float-chip 语言。
   三张视觉共用一个 4:3 舞台（.pc-visual，overflow 可见），内容垂直居中：
   1. 盈客宝  .pc-window  完整软件窗口（含侧栏）三屏交叉淡入 + 两枚芯片
   2. AI 引擎 .pc-viewer  深色阅片面板：原片 → AI 标注 往复擦除 + 底部状态栏 + 一枚芯片
   3. 渡芽    .pc-phone   两台手机壳悬浮，前台长报告缓慢滚动 + 两枚芯片
   选择器写到 (0,6,2) 以压过 805-optimizations / design-2026 的容器规则。
   ============================================================ */

:root {
  --hp-accent: #43adc0;
  --hp-accent-dark: #2f8f9f;
  --hp-ink: #101416;
  --hp-muted: #5c6b70;
  --hp-neon: #5ad4e8;
  --hp-dark: #0d1c22;
  --hp-dark-2: #122730;
  --hp-ya-green: #36a545;
  --hp-ya-green-dark: #2b8a39;
  --hp-frame-shadow: 0 30px 80px rgba(16, 20, 22, 0.18), 0 2px 6px rgba(16, 20, 22, 0.06);
  --hp-chip-shadow: 0 14px 34px rgba(31, 79, 88, 0.16), 0 1px 3px rgba(16, 20, 22, 0.06);
}

/* ---------- 舞台：去容器 ---------- */
html body.site-805.home-805 .products-grid .product-card .product-card-image.pc-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  aspect-ratio: 4 / 3;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  isolation: isolate;
  transform: translate3d(calc(var(--product-motion-x, 0px) * 0.5), calc(var(--product-motion-y, 0px) * 0.5), 0);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
html body.site-805.home-805 .products-grid .product-card .product-card-image.pc-visual::after { content: none; }
html body.site-805.home-805 .products-grid .product-card:hover .product-card-image.pc-visual { box-shadow: none; }
/* 落脚光晕 */
html body.site-805.home-805 .products-grid .product-card .product-card-image.pc-visual::before {
  content: '';
  position: absolute;
  inset: -6% -10%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 50% at 50% 56%, rgba(67, 173, 192, 0.30), rgba(67, 173, 192, 0) 72%);
}
html body.site-805.home-805 .products-grid .product-card .product-card-image.pc-visual-ai::before {
  background: radial-gradient(ellipse 58% 52% at 50% 56%, rgba(67, 173, 192, 0.36), rgba(67, 173, 192, 0) 72%);
}
html body.site-805.home-805 .products-grid .product-card .product-card-image.pc-visual-ya::before {
  background: radial-gradient(ellipse 52% 56% at 52% 54%, rgba(54, 165, 69, 0.22), rgba(54, 165, 69, 0) 72%);
}
html body.site-805.home-805 .products-grid .product-card .pc-visual img,
html body.site-805.home-805 .products-grid .product-card:hover .pc-visual img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 0;
  transform: none;
  filter: none;
  transition: none;
}

/* ---------- 浮动芯片（同子页 .float-chip） ---------- */
.pc-visual .pc-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 16px 11px 12px;
  line-height: 1.4;
  background: #fff;
  border: 1.5px solid rgba(67, 173, 192, 0.20);
  border-radius: 14px;
  box-shadow: var(--hp-chip-shadow);
  white-space: nowrap;
  animation: pc-chip-float 5s ease-in-out infinite alternate;
  pointer-events: none;
}
.pc-visual .pc-chip .dot {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
  background: rgba(67, 173, 192, 0.16);
  color: var(--hp-accent-dark);
}
.pc-visual .pc-chip b { display: block; font-size: 13.5px; font-weight: 700; color: var(--hp-ink); }
.pc-visual .pc-chip small { display: block; font-size: 11.5px; color: var(--hp-muted); }
.pc-visual .pc-chip.ok .dot { background: rgba(54, 165, 69, 0.16); color: var(--hp-ya-green-dark); }
.pc-visual-ya .pc-chip { border-color: rgba(54, 165, 69, 0.24); }
.pc-visual-ya .pc-chip .dot { background: rgba(54, 165, 69, 0.16); color: var(--hp-ya-green-dark); }
.pc-visual .pc-chip-1 { top: 12%; left: -22px; }
.pc-visual .pc-chip-2 { bottom: 3%; right: -22px; animation-delay: -2.5s; }
@keyframes pc-chip-float { from { transform: translateY(0); } to { transform: translateY(-10px); } }

/* ---------- 1. 盈客宝：完整软件窗口 + 三屏轮播 ---------- */
.pc-visual-saas .pc-window {
  position: relative;
  z-index: 2;
  width: 94%;
  margin-left: 6%;
  background: #fff;
  border: 1px solid rgba(16, 20, 22, 0.08);
  border-radius: 16px;
  box-shadow: var(--hp-frame-shadow);
  overflow: hidden;
}
.pc-visual-saas .pc-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: #f4f8f9;
  border-bottom: 1px solid #e3edf0;
}
.pc-visual-saas .pc-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d5e3e7; }
.pc-visual-saas .pc-window-bar i:first-child { background: rgba(67, 173, 192, 0.5); }
.pc-visual-saas .pc-window-bar em {
  flex: 1;
  margin-left: 10px;
  height: 20px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e9f1f3;
  display: flex; align-items: center;
  font-size: 11px; font-style: normal; color: var(--hp-muted);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.pc-visual-saas .pc-cycle { position: relative; aspect-ratio: 1700 / 1062; background: #f4f8fa; overflow: hidden; }
/* 三张图各用一套关键帧、同一时间轴、无 delay：0 时刻工作台可见，交叉淡入互相重叠，循环首尾相接 */
html body.site-805.home-805 .products-grid .product-card .pc-visual-saas .pc-cycle img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: top left;
  opacity: 0;
  animation: pc-cycle-2 15s ease-in-out infinite;
}
html body.site-805.home-805 .products-grid .product-card .pc-visual-saas .pc-cycle img:nth-child(1) { opacity: 1; animation-name: pc-cycle-1; }
html body.site-805.home-805 .products-grid .product-card .pc-visual-saas .pc-cycle img:nth-child(3) { animation-name: pc-cycle-3; }
@keyframes pc-cycle-1 { 0% { opacity: 1; } 28.3% { opacity: 1; } 33.3% { opacity: 0; } 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes pc-cycle-2 { 0% { opacity: 0; } 28.3% { opacity: 0; } 33.3% { opacity: 1; } 61.7% { opacity: 1; } 66.7% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pc-cycle-3 { 0% { opacity: 0; } 61.7% { opacity: 0; } 66.7% { opacity: 1; } 95% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- 2. AI 引擎：深色阅片面板 + 擦除 + 状态栏 ---------- */
.pc-visual-ai .pc-viewer {
  position: relative;
  z-index: 2;
  width: 100%;
  background: var(--hp-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(9, 30, 36, 0.32), 0 2px 6px rgba(16, 20, 22, 0.10);
  overflow: hidden;
  color: #fff;
}
.pc-visual-ai .pc-viewer-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: #0b171c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.pc-visual-ai .pc-viewer-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.pc-visual-ai .pc-viewer-bar i:first-child { background: rgba(90, 212, 232, 0.6); }
.pc-visual-ai .pc-viewer-bar em {
  flex: 1;
  margin-left: 10px;
  height: 20px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  display: flex; align-items: center;
  font-size: 11px; font-style: normal; color: rgba(255, 255, 255, 0.55);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Taipei Sans TC Beta', 'Taipei Sans TC Ext', 'Microsoft YaHei', monospace;
  overflow: hidden; white-space: nowrap;
}
.pc-visual-ai .pc-ba { position: relative; aspect-ratio: 1600 / 752; background: #000; overflow: hidden; }
html body.site-805.home-805 .products-grid .product-card .pc-visual-ai .pc-ba img { position: absolute; inset: 0; object-fit: cover; object-position: center; }
.pc-visual-ai .pc-ba-after {
  clip-path: inset(0 94% 0 0);
  animation: pc-wipe 9s ease-in-out infinite alternate;
}
.pc-visual-ai .pc-ba-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 6%;
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 14px rgba(90, 212, 232, 0.95), 0 0 2px rgba(255, 255, 255, 0.9);
  animation: pc-line 9s ease-in-out infinite alternate;
  pointer-events: none;
}
.pc-visual-ai .pc-ba-line::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(90, 212, 232, 0.9);
}
@keyframes pc-wipe { from { clip-path: inset(0 94% 0 0); } to { clip-path: inset(0 6% 0 0); } }
@keyframes pc-line { from { left: 6%; } to { left: 94%; } }
.pc-visual-ai .pc-ba-tag {
  position: absolute;
  bottom: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(11, 21, 24, 0.62);
  border: 1px solid rgba(90, 212, 232, 0.35);
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.pc-visual-ai .pc-ba-tag-l { left: 12px; }
.pc-visual-ai .pc-ba-tag-r { right: 12px; color: var(--hp-neon); }
.pc-visual-ai .pc-viewer-status {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 42px;
  padding: 0 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  background: var(--hp-dark-2);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  overflow: hidden;
}
.pc-visual-ai .pc-viewer-status span { display: inline-flex; align-items: center; gap: 7px; }
.pc-visual-ai .pc-viewer-status span::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hp-neon);
  box-shadow: 0 0 8px rgba(90, 212, 232, 0.8);
}
.pc-visual-ai .pc-viewer-status b { color: #fff; font-weight: 700; }
.pc-visual-ai .pc-viewer-status .ok { margin-left: auto; color: var(--hp-neon); }
.pc-visual-ai .pc-viewer-status .ok::before { display: none; }
.pc-visual-ai .pc-chip-1 { top: auto; bottom: -6%; left: -22px; }

/* ---------- 3. 渡芽：两台手机悬浮 ---------- */
.pc-visual-ya .pc-phone {
  position: absolute;
  z-index: 2;
  aspect-ratio: 390 / 844;
  border: 8px solid #0f1416;
  border-radius: 40px;
  background: #0f1416;
  box-shadow: 0 30px 70px rgba(16, 20, 22, 0.28), inset 0 0 0 2px #2a3236;
  overflow: hidden;
}
.pc-visual-ya .pc-phone::before {
  content: '';
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 32%; height: 22px;
  background: #0f1416;
  border-radius: 999px;
  z-index: 3;
}
.pc-visual-ya .pc-phone-front { top: -6%; left: 45%; width: 38%; z-index: 3; }
.pc-visual-ya .pc-phone-back { top: 12%; left: 17%; width: 30%; z-index: 2; border-width: 6px; border-radius: 30px; }
.pc-visual-ya .pc-phone-back::before { height: 16px; top: 7px; }
.pc-visual-ya .pc-phone-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 30px;
  background: #eef8e3;
  container-type: size;
}
.pc-visual-ya .pc-phone-back .pc-phone-screen { border-radius: 22px; }
html body.site-805.home-805 .products-grid .product-card .pc-visual-ya .pc-phone img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: auto;
  object-fit: fill;
}
.pc-visual-ya .pc-scroll img { animation: pc-scroll 16s ease-in-out infinite alternate; animation-delay: 1.2s; }
@keyframes pc-scroll { from { transform: translateY(0); } to { transform: translateY(calc(-100% + 100cqh)); } }
.pc-visual-ya .pc-chip-1 { top: 4%; left: 0; }
.pc-visual-ya .pc-chip-2 { bottom: 6%; right: -12px; }

/* ---------- 播放控制（必须放在所有 animation 简写之后，简写会把 play-state 重置为 running） ----------
   进入视口（js/home-products-2026.js 加 .is-in）才开始播放，离开暂停；悬停暂停便于细看。
   无脚本时保持第一帧：工作台 / 原片 + 少量标注 / 报告顶部。芯片浮动不受控制（很轻）。 */
html body.site-805.home-805 .products-grid .product-card .pc-visual .pc-cycle img,
html body.site-805.home-805 .products-grid .product-card .pc-visual .pc-ba-after,
html body.site-805.home-805 .products-grid .product-card .pc-visual .pc-ba-line,
html body.site-805.home-805 .products-grid .product-card .pc-visual .pc-scroll img { animation-play-state: paused; }
html body.site-805.home-805 .products-grid .product-card .pc-visual.is-in .pc-cycle img,
html body.site-805.home-805 .products-grid .product-card .pc-visual.is-in .pc-ba-after,
html body.site-805.home-805 .products-grid .product-card .pc-visual.is-in .pc-ba-line,
html body.site-805.home-805 .products-grid .product-card .pc-visual.is-in .pc-scroll img { animation-play-state: running; }
html body.site-805.home-805 .products-grid .product-card .pc-visual.is-in:hover .pc-cycle img,
html body.site-805.home-805 .products-grid .product-card .pc-visual.is-in:hover .pc-ba-after,
html body.site-805.home-805 .products-grid .product-card .pc-visual.is-in:hover .pc-ba-line,
html body.site-805.home-805 .products-grid .product-card .pc-visual.is-in:hover .pc-scroll img { animation-play-state: paused; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .pc-visual .pc-chip { padding: 9px 13px 9px 10px; }
  .pc-visual .pc-chip .dot { width: 32px; height: 32px; font-size: 13.5px; border-radius: 9px; }
  .pc-visual .pc-chip b { font-size: 12.5px; }
  .pc-visual .pc-chip small { font-size: 11px; }
}
@media (max-width: 860px) {
  /* 手机端与子页一致：不放芯片；盈客宝窗口占满；渡芽舞台改 1:1 让两台手机完整落在里面 */
  .pc-visual .pc-chip { display: none; }
  .pc-visual-saas .pc-window { width: 100%; margin-left: 0; border-radius: 12px; }
  .pc-visual-saas .pc-window-bar { height: 26px; padding: 0 10px; gap: 5px; }
  .pc-visual-saas .pc-window-bar i { width: 7px; height: 7px; }
  .pc-visual-saas .pc-window-bar em { height: 16px; font-size: 10px; }
  .pc-visual-ai .pc-viewer { border-radius: 12px; }
  .pc-visual-ai .pc-viewer-bar { height: 26px; padding: 0 10px; gap: 5px; }
  .pc-visual-ai .pc-viewer-bar i { width: 7px; height: 7px; }
  .pc-visual-ai .pc-viewer-bar em { height: 16px; font-size: 10px; }
  .pc-visual-ai .pc-viewer-status { height: 34px; font-size: 11px; gap: 12px; padding: 0 12px; }
  .pc-visual-ai .pc-ba-tag { font-size: 11px; padding: 2px 8px; bottom: 8px; }
  html body.site-805.home-805 .products-grid .product-card .product-card-image.pc-visual-ya { aspect-ratio: 1 / 1; }
  .pc-visual-ya .pc-phone { border-width: 6px; border-radius: 30px; }
  .pc-visual-ya .pc-phone::before { height: 16px; top: 7px; }
  .pc-visual-ya .pc-phone-screen { border-radius: 22px; }
  .pc-visual-ya .pc-phone-front { top: 0; left: 46%; width: 44%; }
  .pc-visual-ya .pc-phone-back { top: 12%; left: 10%; width: 36%; border-width: 5px; border-radius: 24px; }
  .pc-visual-ya .pc-phone-back .pc-phone-screen { border-radius: 18px; }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  .pc-visual .pc-chip { animation: none !important; }
  .pc-visual-saas .pc-cycle img { animation: none !important; opacity: 0; }
  .pc-visual-saas .pc-cycle img:nth-child(1) { opacity: 1; }
  .pc-visual-ai .pc-ba-after { animation: none !important; clip-path: none; }
  .pc-visual-ai .pc-ba-line, .pc-visual-ai .pc-ba-tag-l { display: none; }
  .pc-visual-ya .pc-scroll img { animation: none !important; }
}
