/* ==========================================================================
   Taimei iDM Agent — Wiz.AI 产品页
   Native CSS, 1440px design, dark theme, pixel-based positioning.
   公共 header/footer 由 common/*.css 负责。
   ========================================================================== */

: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），出现第二条垂直滚动条。 */
}

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;
}

/* 本页顶部光晕：中心由画布中线左移到 40% 处，让紫色更偏左、减少屏幕左侧的黑边 */
.decor__group--top .decor__glow {
  position: absolute;
  top: -1px;
  left: calc(40% - 78px);
  width: 1506px;
  height: 1628px;
  border-radius: 50%;
  background: linear-gradient(134deg, rgba(234, 177, 254, 1) 0%, rgba(211, 86, 255, 1) 12%, rgba(36, 94, 255, 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;
}

.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);
}

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

/* ---- 产品图卡（720,212 720×360，白底右缘贴画布边） ---- */

.banner__card {
  position: absolute;
  top: 212px;
  left: 720px;
  width: 720px;
  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，1280 宽居中）
   ========================================================================== */

.slogan {
  position: relative;
  z-index: 1;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 500;
  line-height: 60px;
  color: var(--cyan);
  white-space: nowrap;
}

/* ==========================================================================
   数据统计三项（y:892，整行居中）
   ========================================================================== */

.stats {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  height: 72px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.stat:nth-child(2) .stat__icon,
.stat:nth-child(3) .stat__icon {
  width: 54px;
  height: 54px;
}

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

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

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

/* ==========================================================================
   Why iDM?（y:1040，80,0 起 1280×600 深蓝圆角卡）
   ========================================================================== */

.why {
  position: relative;
  z-index: 1;
  width: 1280px;
  height: 600px;
  margin: 76px 0 0 80px;
  background: #041884;
  border-radius: 20px;
  overflow: hidden;
}

.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__dashes {
  position: absolute;
  top: -100px;
  left: 0;
  opacity: 0.2;
}

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

.why__card {
  position: absolute;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.why__card--a {
  top: 129px;
  left: 93px;
  width: 524px;
}

.why__card--b {
  top: 360px;
  left: 93px;
  width: 524px;
}

.why__card--c {
  top: 129px;
  left: 637px;
  width: 550px;
}

.why__card--d {
  top: 360px;
  left: 637px;
  width: 550px;
}

.why__card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 27px;
  color: var(--white);
}

.why__card-body {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

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

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

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

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

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

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

.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:2281，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:2798，Demo 底部 2761 → 间距 37px） */
.page .footer {
  position: relative;
  z-index: 1;
  margin-top: 37px;
}

/* ==========================================================================
   窄屏 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;
  }
}
