/* =========================================================================
   产品页专用样式：只在 /zh/product/ 引用。
   1) 整页纯白底——去掉 .home-v2 挂在 body 上那四层淡紫渐变。
   2) 页尾换成与首页预览（home-paper-a）同一套黑色页尾 + 通栏字标。
      类名沿用首页那边的 .site-foot / .foot-*，但全部挂在 .product-v2 下，
      不影响其他页面的 .site-footer。
   ========================================================================= */

.home-v2.product-v2 {
  background-color: #ffffff;
  background-image: none;
}
.home-v2.product-v2 .site-shell,
.home-v2.product-v2 main,
.home-v2.product-v2 .page-hero,
.home-v2.product-v2 .section {
  background: transparent;
}
/* 产品截图外框原来是米白，统一成纯白 */
.home-v2.product-v2 .product-frame { background: #ffffff; }

/* =========================================================================
   员工一节的五段能力：左图右文。
   图片钉在左侧原地不动，滚到哪一节就换成哪一张；
   文字正常跟着滚动——当前这节往上走，下一节从视口底部升上来。
   没有 JavaScript 时退回五行「左图右文」并排，图文仍一一对应。
   ========================================================================= */
.product-v2 .feature-stack {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  column-gap: clamp(32px, 3.4vw, 56px);
  align-items: start;
}
/* 图片这一栏往右借一段宽度：左边线仍和正文对齐，整体放大 */
@media (min-width: 1200px) {
  .product-v2 .feature-stack {
    width: calc(100% + 120px);
  }
}
.product-v2 .feature-stack .feature-row { display: contents; }
.product-v2 .feature-stack .feature-copy { grid-column: 2; min-width: 0; }
/* 彩色底板：截图统一放在同一块底板上，固定 4:3，界面右下出血，不留白边 */
.product-v2 .feature-stack {
  --plate: linear-gradient(150deg, #463B9E 0%, #6355C8 30%, #7C7FDE 64%, #8E9AEC 100%);
  --plate-radius: 20px;
}
.product-v2 .feature-stack .feature-visual {
  grid-column: 1; min-width: 0; margin: 0;
  border: 0; box-shadow: none;
  border-radius: var(--plate-radius);
  background: var(--plate);
  overflow: hidden;
  /* 截图铺满底板，不留一圈紫边 */
  aspect-ratio: 2 / 1;
  padding: 0;
  display: grid; place-items: center;
}
.product-v2 .feature-stack .feature-visual img {
  display: block; width: 100%; max-width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  background: transparent; border-bottom: 0; border-radius: 0;
  cursor: zoom-in;
}
.product-v2 .feature-stack .feature-copy h2 { max-width: 18ch; }
.product-v2 .feature-stack .feature-copy p,
.product-v2 .feature-stack .feature-points { max-width: 46ch; }

/* 无 JS：第 N 段文字和第 N 张图并排 */
.product-v2:not(.has-feature-stack) .feature-stack [data-feature="feature-workbench"] .feature-copy,
.product-v2:not(.has-feature-stack) .feature-stack [data-feature="feature-workbench"] .feature-visual { grid-row: 1; }
.product-v2:not(.has-feature-stack) .feature-stack [data-feature="feature-workspace"] .feature-copy,
.product-v2:not(.has-feature-stack) .feature-stack [data-feature="feature-workspace"] .feature-visual { grid-row: 2; }
.product-v2:not(.has-feature-stack) .feature-stack [data-feature="feature-apps"] .feature-copy,
.product-v2:not(.has-feature-stack) .feature-stack [data-feature="feature-apps"] .feature-visual { grid-row: 3; }
.product-v2:not(.has-feature-stack) .feature-stack [data-feature="feature-browser"] .feature-copy,
.product-v2:not(.has-feature-stack) .feature-stack [data-feature="feature-browser"] .feature-visual { grid-row: 4; }
.product-v2:not(.has-feature-stack) .feature-stack [data-feature="feature-quota"] .feature-copy,
.product-v2:not(.has-feature-stack) .feature-stack [data-feature="feature-quota"] .feature-visual { grid-row: 5; }

/* 有 JS：文字一节一屏往上滚，图片钉住换图 */
.product-v2.has-feature-stack .feature-stack [data-feature="feature-workbench"] .feature-copy { grid-row: 1; }
.product-v2.has-feature-stack .feature-stack [data-feature="feature-workspace"] .feature-copy { grid-row: 2; }
.product-v2.has-feature-stack .feature-stack [data-feature="feature-apps"] .feature-copy { grid-row: 3; }
.product-v2.has-feature-stack .feature-stack [data-feature="feature-browser"] .feature-copy { grid-row: 4; }
.product-v2.has-feature-stack .feature-stack [data-feature="feature-quota"] .feature-copy { grid-row: 5; }
.product-v2.has-feature-stack .feature-stack .feature-copy {
  min-height: calc(100svh - 76px);
  padding-block: clamp(40px, 7vh, 86px) clamp(16px, 3vh, 40px);
}
.product-v2.has-feature-stack .feature-stack .feature-visual {
  grid-column: 1; grid-row: 1 / span 5; /* 五段文字，图片跨满 */
  position: sticky; top: calc(76px + clamp(40px, 7vh, 86px));
  height: auto;
  display: block;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.product-v2.has-feature-stack .feature-stack .feature-visual.is-on {
  opacity: 1; visibility: visible;
  transition: opacity .35s ease, visibility 0s;
}
.product-v2.has-feature-stack .feature-stack .feature-visual img {
  height: 100%; max-height: none; object-fit: cover; object-position: center;
}

/* AI 额度：项目 Token 面板叠在截图上，点击放大，再点收回 */
.product-v2 .feature-visual[data-quota-stack] { position: relative; }
.product-v2 .quota-token {
  position: absolute;
  z-index: 2;
  right: 5%;
  top: 7%;
  width: 36%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  filter: drop-shadow(0 16px 36px rgba(16, 22, 40, 0.28));
  transition: width .32s ease, top .32s ease, right .32s ease, transform .32s ease;
}
.product-v2 .feature-stack .feature-visual .quota-token img,
.product-v2.has-feature-stack .feature-stack .feature-visual .quota-token img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  background: #fff;
  cursor: zoom-in;
}
.product-v2 .quota-token::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10px -8px -12px 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(16, 22, 40, 0.16);
}
.product-v2 .quota-token.is-open {
  left: 24%;
  right: 3%;
  top: 5%;
  bottom: 5%;
  width: auto;
  height: auto;
  transform: none;
  cursor: zoom-out;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}
.product-v2 .feature-stack .feature-visual .quota-token.is-open img,
.product-v2.has-feature-stack .feature-stack .feature-visual .quota-token.is-open img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  cursor: zoom-out;
}

@media (max-width: 900px) {
  .product-v2 .feature-stack { grid-template-columns: minmax(0, 1fr); }
  .product-v2 .feature-stack .feature-row { display: block; }
  .product-v2 .feature-stack .feature-copy,
  .product-v2 .feature-stack .feature-visual { grid-column: 1; grid-row: auto; }
  .product-v2.has-feature-stack .feature-stack .feature-copy {
    min-height: 0; padding-block: clamp(26px, 6vh, 48px) 0;
  }
  .product-v2.has-feature-stack .feature-stack .feature-visual {
    position: static; height: auto; display: block; opacity: 1; visibility: visible;
  }
  .product-v2 .feature-stack .feature-visual {
    margin-top: 18px; border: 0; border-radius: 16px; overflow: hidden; padding: 0; aspect-ratio: 2 / 1;
  }
  .product-v2 .feature-stack .feature-visual img,
  .product-v2.has-feature-stack .feature-stack .feature-visual img {
    width: 100%; height: 100%; max-height: none; object-fit: cover;
  }
}
@media (prefers-reduced-motion: reduce) {
  .product-v2.has-feature-stack .feature-stack .feature-visual,
  .product-v2 .quota-token { transition: none; }
}

/* =========================================================================
   产品页首屏：居中排版（面包屑仍靠左，它是导航不是标题的一部分）
   ========================================================================= */
.home-v2.product-v2 main > .page-hero {
  margin-inline: auto;
  text-align: center;
}
.home-v2.product-v2 main > .page-hero h1 {
  max-width: 20ch;
  margin-inline: auto;
}
.home-v2.product-v2 main > .page-hero .hero-lede {
  max-width: 44ch;
  margin-inline: auto;
}
.home-v2.product-v2 main > .page-hero .hero-actions {
  justify-content: center;
}

/* =========================================================================
   协作卡片：整张照片做封面，文字压在深色渐变上
   ========================================================================= */
.product-v2 .brief-grid > .feature-row-brief.has-cover {
  background: #141418;
  border-color: rgba(20, 20, 24, .18);
}
.product-v2 .feature-row-brief.has-cover .capability-cover {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  border-radius: inherit;
}
.product-v2 .feature-row-brief.has-cover::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10, 10, 12, .12) 0%, rgba(10, 10, 12, .58) 58%, rgba(10, 10, 12, .9) 100%);
  border-radius: inherit;
}
.product-v2 .feature-row-brief.has-cover .feature-copy { position: relative; z-index: 2; }
.product-v2 .feature-row-brief.has-cover .plain-label { color: rgba(255, 255, 255, .74); }
.product-v2 .feature-row-brief.has-cover h2 { color: #ffffff; }
.product-v2 .feature-row-brief.has-cover .capability-card-detail p { color: rgba(255, 255, 255, .84); }
.product-v2 .feature-row-brief.has-cover .text-link { color: #ffffff; }
.product-v2 .feature-row-brief.has-cover .text-link:hover { color: rgba(255, 255, 255, .78); }

/* 只用于保留深链的占位锚点，不参与排版 */
.product-v2 .anchor-only { display: block; height: 0; overflow: hidden; }
/* 五段公用的小节头 */
.product-v2 .feature-section-head { margin-bottom: clamp(20px, 3vw, 36px); }


/* =========================================================================
   企业场景五项：上下排列、左右交替，图片压在底板上向外侧出血
   ========================================================================= */
.product-v2 .feature-alt-section { overflow: hidden; }
.product-v2 .feature-alt-head {
  max-width: 44ch; margin: 0 auto clamp(40px, 6vw, 88px);
  text-align: center;
}
.product-v2 .feature-alt-head .plain-label { margin-inline: auto; }
.product-v2 .feature-alt-head p { margin-inline: auto; max-width: 42ch; }
.product-v2 .feature-alt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  column-gap: clamp(32px, 4vw, 72px);
  align-items: start;
  padding-block: clamp(48px, 7vw, 104px);
}
.product-v2 .feature-alt-row .feature-copy { grid-column: 1; grid-row: 1; min-width: 0; }
.product-v2 .feature-alt-row .feature-copy h2 { max-width: 16ch; }
.product-v2 .feature-alt-row .feature-copy p,
.product-v2 .feature-alt-row .feature-points { max-width: 42ch; }
.product-v2 .feature-alt-visual {
  grid-column: 2; grid-row: 1; min-width: 0; margin: 0;
  background: var(--plate, linear-gradient(150deg, #463B9E 0%, #6355C8 30%, #7C7FDE 64%, #8E9AEC 100%));
  border: 0; box-shadow: none; overflow: hidden;
  border-radius: 20px 0 0 20px;
  padding: 0;
  /* 向视口右侧出血半截 */
  margin-right: calc(50% - 50vw);
}
.product-v2 .feature-alt-visual img {
  display: block; width: 100%; height: auto; max-width: none;
  border-radius: 0; background: transparent;
  cursor: zoom-in;
}
/* 偶数行左右对调：图在左、出血到左边 */
.product-v2 .feature-alt-row:nth-of-type(even) {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
.product-v2 .feature-alt-row:nth-of-type(even) .feature-copy { grid-column: 2; grid-row: 1; }
.product-v2 .feature-alt-row:nth-of-type(even) .feature-alt-visual {
  grid-column: 1; grid-row: 1;
  border-radius: 0 20px 20px 0;
  margin-right: 0;
  margin-left: calc(50% - 50vw);
}
/* 共享中心配图主体在左侧，左出血会把卡片裁掉。图靠右，让卡片落在可视区。 */
.product-v2 #feature-share .feature-alt-visual {
  display: flex;
  justify-content: flex-end;
  background: #f8f9fd;
}
.product-v2 #feature-share .feature-alt-visual img {
  width: 68%;
  height: auto;
  margin-left: auto;
}

@media (max-width: 900px) {
  .product-v2 .feature-alt-row,
  .product-v2 .feature-alt-row:nth-of-type(even) {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
    padding-block: clamp(34px, 8vw, 56px);
  }
  .product-v2 .feature-alt-row .feature-copy,
  .product-v2 .feature-alt-row:nth-of-type(even) .feature-copy { grid-column: 1; grid-row: auto; }
  .product-v2 .feature-alt-visual,
  .product-v2 .feature-alt-row:nth-of-type(even) .feature-alt-visual {
    grid-column: 1; grid-row: auto; margin: 0; border-radius: 16px; padding: 0;
  }
  .product-v2 #feature-share .feature-alt-visual img {
    width: 100%;
    margin-left: 0;
  }
}

/* 页尾 CTA 下面的使用方式说明 */
.product-v2 .cta-access {
  margin-top: 10px;
  font-size: 14px; line-height: 1.7; color: #55565e;
}

/* =========================================================================
   标题字体试验：西文走 Inter 500，中文走 MiSans 500，字距 -0.02em
   （Inter 不含汉字，所以同一条 font-family 里汉字会自动落到 MiSans）
   ========================================================================= */
.product-v2 .page-hero h1,
.product-v2 .feature-section-head h2,
.product-v2 .feature-alt-head h2,
.product-v2 .feature-stack .feature-copy h2,
.product-v2 .feature-alt-row .feature-copy h2,
.product-v2 .page-cta-section h2 {
  font-family: "Inter", "MiSans", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* 页尾收口：标题加粗居中，下面一行小字 */
.product-v2 .page-cta-section { text-align: center; }
.product-v2 .page-cta-section .section-head { margin-inline: auto; }
.product-v2 .page-cta-section h2 {
  margin-inline: auto; max-width: 20ch;
  font-weight: 700;
}
.product-v2 .page-cta-section .cta-access {
  margin: 12px auto 0; max-width: 34ch;
  font-size: 15px; color: #55565e;
}
.product-v2 .page-cta-section .button { margin-top: 26px; }

/* 页尾收口里的两张客户端截图 */
.product-v2 .cta-shots {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin: clamp(30px, 4vw, 52px) auto 0;
  max-width: 1040px;
}
.product-v2 .cta-shots figure {
  margin: 0; overflow: hidden; border-radius: 18px;
  background: var(--plate, linear-gradient(150deg, #463B9E 0%, #6355C8 30%, #7C7FDE 64%, #8E9AEC 100%));
  padding: 0;
}
.product-v2 .cta-shots img {
  display: block; width: 100%; height: auto; border-radius: 0; background: transparent;
  cursor: zoom-in;
}
@media (max-width: 760px) {
  .product-v2 .cta-shots { grid-template-columns: minmax(0, 1fr); }
}

/* 首屏标题：两行分开写，去掉逗号，行距放宽 */
.home-v2.product-v2 main > .page-hero h1 {
  max-width: none;
  line-height: 1.32;
  word-break: keep-all;
}
.home-v2.product-v2 main > .page-hero h1 span { display: block; }

/* 点击截图看大图，再点一下或按 Esc 关闭 */
.shot-lightbox {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  padding: 56px 24px 24px;
  background: rgba(10, 12, 18, .86);
  cursor: zoom-out;
}
.shot-lightbox[hidden] { display: none; }
.shot-lightbox img {
  max-width: min(1440px, 100%);
  max-height: calc(100vh - 96px);
  width: auto; height: auto;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}
.shot-lightbox-close {
  position: absolute; top: 16px; right: 16px;
  border: 0; border-radius: 999px;
  padding: 8px 16px;
  background: #fff; color: #14141a;
  font: 500 14px/1 "Inter", "MiSans", "Noto Sans SC", sans-serif;
  cursor: pointer;
}
body.shot-lightbox-open { overflow: hidden; }
