/* ==========================================================================
   Taimei iPV Agent — Wiz.AI 产品页
   Native CSS, 1440px design, dark theme, pixel-based positioning.
   公共 header/footer 由 common/*.css 负责。
   背景过渡处理：页面为纯黑底，区块自身的背景/光晕均通过
   (1) 蒙版组径向淡出、(2) 视口全宽延伸、(3) blur 光晕晕染 融入背景。
   ========================================================================== */

:root {
  --page-width: 1440px;
  --blue: #0A47ED;
  --deep-blue: #000F60;
  --cyan: #00D8E3;
  --light-blue: #5EA4FF;
  --soft-blue: #7CB1F3;
  --white: #FFFFFF;

  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-cn: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: #000000;
  color: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 注意：不能在 body 上设置 overflow-x: hidden。
     html 已设置时 body 会自身成为滚动容器（overflow-y 计算为 auto），
     从而出现第二条垂直滚动条。横向溢出统一由 html 裁剪。 */
}

img {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

.page {
  position: relative;
  z-index: 0;
  width: var(--page-width);
  margin: 0 auto;
  /* 不裁剪：背景/装饰需延伸到视口边缘，横向溢出由 html/body overflow-x hidden 兜底 */
}

/* ==========================================================================
   背景装饰 — 两个径向蒙版组（对应设计稿 Mask group）
   组内蒙版同时作用于抽象图与彩色光晕椭圆，
   使抽象图向四周自然淡出到纯黑底，避免与内容区出现硬边界。
   ========================================================================== */

/* 容器比内容更宽（±2300px），保证横向不裁切到可见光晕；
   top/bottom 锚定页面首尾，纵向裁掉超出页脚底部的装饰，
   避免 footer 下方多出可滚动的空白与漏光。
   中线与页面中线一致（left+width/2 = 50%），子元素仍按 50% 定位。 */
.decor {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 2300px);
  width: 4600px;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.decor__group {
  position: absolute;
}

/* 设计稿 Mask group：1920×1982 @ (0,637)。宽度取 max(1920px, 100vw)：
   既与设计稿一致，宽屏时也铺满视口，避免左右出现黑边。
   蒙版用 50% 50% 椭圆径向渐变，半径随元素宽高缩放，正好在元素边缘淡出到透明；
   抽象图宽度取 100.31%（1926/1920）略宽于蒙版组，保证边缘不会露出硬切。 */
.decor__group--top {
  top: 637px;
  left: 50%;
  transform: translateX(-50%);
  width: max(1920px, 100vw);
  height: 1982px;
  /* 椭圆径向蒙版：半径基准为元素宽高（对应 Figma radial gradient） */
  -webkit-mask-image: radial-gradient(50% 50% at 50% 50%, #000 77%, transparent 100%);
  mask-image: radial-gradient(50% 50% at 50% 50%, #000 77%, transparent 100%);
}

.decor__group--top .decor__abstract {
  position: absolute;
  top: -265px;
  left: 50%;
  margin-left: -50.156%;
  width: 100.31%;
  height: 2239px;
  object-fit: cover;
}

/* 本页顶部光晕：椭圆 998×1100，中心由画布中线左移到 40% 处，
   让紫色更偏左、减少屏幕左侧的黑边 */
.decor__group--top .decor__glow {
  position: absolute;
  top: 440px;
  left: 40%;
  margin-left: -499px;
  width: 998px;
  height: 1100px;
  border-radius: 50%;
  background: linear-gradient(134deg, rgba(234, 177, 254, 1) 0%, rgba(211, 86, 255, 1) 12%, rgba(22, 139, 239, 1) 79%);
  filter: blur(127px);
}

.decor__group--bottom {
  top: 2397px;
  left: calc(50% - 2258px);
  width: 3249px;
  height: 1438px;
  -webkit-mask-image: radial-gradient(50% 50% at 50% 50%, #000 37%, transparent 74%);
  mask-image: radial-gradient(50% 50% at 50% 50%, #000 37%, transparent 74%);
}

.decor__group--bottom .decor__abstract {
  position: absolute;
  top: -4px;
  left: 1275px;
  width: 2239px;
  height: 1444px;
  object-fit: cover;
}

.decor__group--bottom .decor__glow {
  position: absolute;
  top: 215px;
  left: 643px;
  width: 1635px;
  height: 1657px;
  border-radius: 50%;
  background: linear-gradient(134deg, rgba(234, 177, 254, 1) 0%, rgba(211, 86, 255, 1) 12%, rgba(22, 139, 239, 1) 79%);
  filter: blur(127px);
}

/* ==========================================================================
   Banner（0-800）
   ========================================================================== */

.banner {
  position: relative;
  height: 800px;
  z-index: 1;
}

/* 顶部深蓝渐变 100vw 全宽，向透明渐隐融入黑底 */
.banner__grad {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 15, 96, 1) 10%, rgba(0, 15, 96, 0) 90%);
  pointer-events: none;
}

.banner__wave {
  position: absolute;
  top: -153px;
  left: -90px;
  width: 1245px;
  height: 788px;
  opacity: 0.25;
  pointer-events: none;
}

.banner__text {
  position: absolute;
  top: 151px;
  left: 180px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.banner__logo {
  width: 151px;
  height: 30px;
}

.banner__title {
  width: 624px;
  font-size: 64px;
  font-weight: 500;
  line-height: 70px;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 54%, rgba(178, 205, 255, 1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.banner__subtitle {
  width: 519px;
  font-size: 30px;
  font-weight: 700;
  line-height: 40px;
  color: var(--cyan);
  white-space: pre-line;
}

.banner__desc {
  width: 519px;
  font-size: 18px;
  line-height: 30px;
  color: var(--soft-blue);
}

/* ---- 产品图卡（y:212 720×360，白底左圆角）。
   内容居中于视口，故从视口中线起向右延伸至屏幕右缘（≥1440 视口时为 50vw），
   避免白色图卡右缘在内容区边界产生硬切线。 ---- */

.banner__card {
  position: absolute;
  top: 212px;
  left: 50%;
  width: max(720px, 50vw);
  height: 360px;
  background: var(--white);
  border-radius: 10px 0 0 10px;
  overflow: hidden;
}

.banner__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

/* ==========================================================================
   数据统计三项（y:800，画布 309 起，图标 48×48 @ 0/329/627）
   ========================================================================== */

.stats {
  position: relative;
  /* 高于下方 .why 的光晕（why__glow 向上溢出 300px 会盖住统计区） */
  z-index: 2;
  width: 866px;
  height: 98px;
  margin: 0 0 0 309px;
}

.stat {
  position: absolute;
  top: 0;
  height: 98px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat--1 { left: 0; }
.stat--2 { left: 329px; }
.stat--3 { left: 627px; }

.stat__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.stat__text {
  display: flex;
  flex-direction: column;
}

.stat__num {
  font-size: 48px;
  font-weight: 500;
  line-height: 60px;
  color: var(--white);
  white-space: nowrap;
}

.stat__label {
  width: 160px;
  font-size: 18px;
  line-height: 24px;
  margin-top: -10px;
  color: var(--white);
}

/* 宽度取 200px：需 < "case intake & processing"（≈214px）才能断在 & 之后，
   同时 ≥ "processing accuracy"（≈185px）保证第二行放得下、不变成 3 行；
   中文「个例报告处理准确性」9 字仅 162px，仍是 1 行，不受影响 */
.stat--3 .stat__label {
  width: 200px;
}

/* ==========================================================================
   What can iPV Agent do for you?（y:948，80,0 起 1280×620 深蓝圆角卡）
   分层：why__bg 深蓝底；why__glow 光晕（不裁切，向卡片四周晕染，
   使卡片与黑底之间平滑过渡，对应设计稿光晕溢出卡片上缘的渲染）；
   why__clip 仅将虚线网格裁剪在卡片内。
   ========================================================================== */

.why {
  position: relative;
  z-index: 1;
  width: 1280px;
  height: 620px;
  margin: 50px 0 0 80px;
}

/* 卡片底色：Figma 导出的整块背景图（底色 + 光晕），2x 2560×1240 显示于 1280×620。
   图内的虚线网格已被 JPEG 压糊，清晰的网格由 .why__dashes 矢量 SVG 叠加。 */
.why__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #041884 url("/static/ipv/assets/why-bg.jpg") center / 100% 100% no-repeat;
  border-radius: 20px;
}

/* 顶部蓝色光晕：晕染卡片上缘并向四周外溢，与黑底平滑过渡 */
.why__glow {
  position: absolute;
  top: -300px;
  left: -60px;
  width: 1400px;
  height: 600px;
  border-radius: 50%;
  background: var(--blue);
  filter: blur(152px);
}

/* 虚线网格（设计稿 虚线 组件，opacity 0.2），仅裁剪于卡片内 */
.why__clip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

/* 100px 方格虚线网：SVG 顶边上移 40px，使横线落在卡片 y=60/160/…/660 */
.why__dashes {
  position: absolute;
  top: -40px;
  left: 0;
  opacity: 0.2;
}

.why__title {
  position: absolute;
  top: 50px;
  left: 276px;
  width: 728px;
  font-size: 48px;
  font-weight: 500;
  line-height: 60px;
  text-align: center;
  color: var(--white);
  white-space: nowrap;
}

.why__card {
  position: absolute;
  width: 400px;
  height: 197px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  /* 磨砂玻璃：半透明白底 + 背景模糊，使卡片下方的虚线网格呈模糊状 */
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: 10px;
}

.why__card--a {
  top: 144px;
  left: 230px;
}

.why__card--b {
  top: 361px;
  left: 229px;
}

.why__card--c {
  top: 144px;
  left: 650px;
}

.why__card--d {
  top: 361px;
  left: 649px;
}

.why__card-title {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 27px;
  text-align: center;
  color: var(--white);
}

/* 正文区占满剩余高度并纵向居中，保证长短文案下卡片等高等齐 */
.why__card-body {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.why__card-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.why__card-text {
  width: 280px;
  font-size: 14px;
  line-height: 17px;
  color: var(--light-blue);
  white-space: pre-line;
}

/* PV Translation 卡：行高较松（对应设计稿 14/22） */
.why__card-text--lg {
  line-height: 22px;
}

/* ==========================================================================
   Featured Insight（y:1648，80,0 起 1280×441，左文右图）
   ========================================================================== */

.insight {
  position: relative;
  z-index: 1;
  width: 1280px;
  height: 441px;
  margin: 80px 0 0 80px;
}

/* 精选洞察仅中文站展示：英文站隐藏本区块（441px 高 + 80px 上边距 = 521px），
   页面下方绝对定位的装饰光晕同步上移 521px，保持与下方区块的相对关系 */
html:not([lang="zh-cn"]) .insight {
  display: none;
}

html:not([lang="zh-cn"]) .decor__group--bottom {
  top: 1876px;
}

.insight__info {
  position: absolute;
  top: 0;
  left: 0;
  width: 900px;
  height: 441px;
}

.insight__label {
  position: absolute;
  top: 38px;
  left: 64px;
  font-size: 30px;
  font-weight: 700;
  line-height: 40px;
  color: var(--light-blue);
}

.insight__line {
  position: absolute;
  top: 96px;
  left: 64px;
  width: 540px;
  height: 2px;
  background: linear-gradient(90deg, rgba(94, 164, 255, 1) 0%, rgba(94, 164, 255, 0) 100%);
}

.insight__title {
  position: absolute;
  top: 114px;
  left: 64px;
  width: 520px;
  font-size: 48px;
  font-weight: 500;
  line-height: 60px;
  color: var(--white);
}

.insight__desc {
  position: absolute;
  top: 244px;
  left: 64px;
  width: 540px;
  font-size: 18px;
  line-height: 30px;
  color: var(--light-blue);
}

.insight__actions {
  position: absolute;
  top: 350px;
  left: 64px;
  display: flex;
  gap: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  /* 内边距各减 1px 抵消描边，保证外框尺寸与设计稿一致 */
  padding: 9px 31px 9.5px;
  border: 1px solid transparent;
  border-radius: 9999px;
  font-size: 16px;
  line-height: 28px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

/* 默认仅描边，悬停填充高亮 */
.btn--white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--white:hover {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.btn--cyan {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan);
}

.btn--cyan:hover {
  background: var(--cyan);
  color: var(--white);
  box-shadow: 0 0 20px rgba(0, 216, 227, 1);
}

/* 右侧白底图卡（640,38 640×360，图片 640×441 下缘裁切） */
.insight__media {
  position: absolute;
  top: 38px;
  left: 640px;
  width: 640px;
  height: 360px;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
}

.insight__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Request a Demo（y:2189，170 起 1100×480）
   ========================================================================== */

.demo {
  position: relative;
  z-index: 1;
  width: 1100px;
  height: 480px;
  margin: 100px 0 0 170px;
  border-radius: 20px;
  overflow: hidden;
}

.demo__glow {
  position: absolute;
  top: -311px;
  left: 208px;
  width: 686px;
  height: 622px;
  border-radius: 50%;
  background: rgba(10, 71, 237, 0.6);
  filter: blur(152px);
}

.demo__title {
  position: absolute;
  top: 76px;
  left: 10px;
  width: 1080px;
  font-size: 48px;
  font-weight: 500;
  line-height: 60px;
  letter-spacing: -0.0506em;
  text-align: center;
  color: var(--white);
  white-space: pre-line;
  z-index: 1;
}

/* 申请试用入口：由原「邮箱输入 + 加入太美」表单改为跳转 /trial 的按钮 */
.demo__cta {
  position: absolute;
  top: 216px;
  left: 350px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 40px;
  background: var(--white);
  color: #000000;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.0101em;
  white-space: nowrap;
  transition: filter 0.2s ease;
}

.demo__cta:hover {
  filter: brightness(0.94);
}

.demo__note {
  position: absolute;
  top: 292px;
  left: 312px;
  width: 476px;
  font-size: 16px;
  line-height: 26px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  z-index: 1;
}

/* 页脚覆盖在装饰层之上（设计稿 y:2707，Demo 底部 2669 → 间距 38px） */
.page .footer {
  position: relative;
  z-index: 1;
  margin-top: 38px;
}

/* ==========================================================================
   窄屏 PC（980px–1439px）：修正 .banner__grad 全屏出血层的对齐
   该层用「left: 50% + translateX(-50%)」把 100vw 铺满视口，这个写法以
   「.page(1440px) 居中」为前提。视口窄于 1440px 时 CSS 会把 .page 的
   margin:auto 解析为 0（不产生负边距），.page 左边缘落在 0 而非居中，
   该层因此整体右移 G = 720 - 视口宽/2，左侧露出断缝。
   这里直接钉在左边缘，并清掉 translateX(-50%)——否则会被推左半个视口出屏；
   ≥1440px 不命中本规则，PC 效果不变。
   ========================================================================== */

@media (min-width: 980px) and (max-width: 1439px) {
  .banner__grad {
    left: 0;
    transform: none;
  }
}
