/* ==========================================================================
   Taimei eCooperate (CTMS) — Product page
   Native CSS, 1440px design, pixel-based positioning.
   ========================================================================== */

:root {
  --page-width: 1440px;
  --blue: #0A47ED;
  --dark-blue: #041884;
  --text-dark: #3E3E3E;
  --light-blue: #5EA4FF;
  --white: #FFFFFF;
  --white-15: rgba(255, 255, 255, 0.15);

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

/* banner 背景 / 页脚 ::before 等以 100vw 铺满（含滚动条宽度），
   横向溢出统一由 html 裁剪；clip 彻底禁止横向滚动（含程序滚动），旧浏览器回退 hidden */
html {
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  background: #ffffff;
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 不在 body 上设 overflow-x: hidden：与 html 重复会让 body 成为滚动容器，
     右侧出现通高的滚动条/白边（100vw 满屏层会被 body 裁掉） */
}

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;
  width: var(--page-width);
  margin: 0 auto;
}

/* ==========================================================================
   Banner
   ========================================================================== */

.banner {
  position: relative;
  height: 800px;
}

/* Full-viewport background — breaks out of the 1440px centred container */
/* 背景：横向远宽于纵向的扁椭圆径向，底部本身会整宽渐隐到纯白，无需蒙版；
   宽度取 max(1440px, 100vw)：窗口窄于 1440 时 100vw 小于页面宽度，
   径向边缘落进页面内会形成左右竖向断层 */
.banner__bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: max(1440px, 100vw);
  height: 100%;
  background: radial-gradient(
    450% 100% at 50% 100%,
    rgba(255, 255, 255, 1) 11%,
    rgba(0, 147, 213, 1) 35%,
    rgba(0, 15, 96, 1) 89%
  );
}

.banner__wave {
  position: absolute;
  top: -139px;
  left: 451px;
  width: 1245px;
  height: 788px;
  opacity: 0.2;
}

.banner__content {
  position: absolute;
  top: 200px;
  left: 80px;
  width: 1360px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.banner__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 40px;
}

.banner__title {
  font-size: 64px;
  font-weight: 500;
  line-height: 70px;
  letter-spacing: -0.05em;
  color: var(--white);
  white-space: pre-line;
}

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

.banner__desc {
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
  color: rgba(245, 247, 255, 0.7);
}

.banner__product {
  width: 720px;
  height: 360px;
  border-radius: 10px;
  object-fit: cover;
  object-position: top left;
}

/* ==========================================================================
   Stats
   ========================================================================== */

.stats-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 60px 0 100px;
}

.stats {
  display: flex;
  align-items: center;
  gap: 120px;
  list-style: none;
}

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

.stat img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

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

/* 数字放入固定宽度容器，动画时宽度变化不会影响图标/副标题 */
.stat__num-wrap {
  white-space: nowrap;
}
.stat:nth-child(1) .stat__num-wrap { width: 140px; }
.stat:nth-child(2) .stat__num-wrap { width: 199px; }
.stat:nth-child(3) .stat__num-wrap { width: 160px; }

.stat__num {
  font-size: 48px;
  font-weight: 500;
  line-height: 60px;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: 18px;
  line-height: 30px;
  color: var(--text-dark);
}

.stats-desc {
  width: 960px;
  max-width: 100%;
  font-size: 18px;
  line-height: 30px;
  text-align: center;
  color: var(--text-dark);
  white-space: pre-line;
}

/* ==========================================================================
   Why Taimei eCooperate
   ========================================================================== */

.why {
  position: relative;
  width: 1280px;
  height: 760px;
  margin: 0 auto;
}

.why__card {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 600px;
  background: var(--dark-blue);
  border-radius: 20px;
  overflow: hidden;
}

.why__glow {
  position: absolute;
  top: -300px;
  left: -60px;
  width: 1400px;
  height: 600px;
  background: var(--blue);
  filter: blur(152px);
}

.why__title {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 48px;
  font-weight: 500;
  line-height: 60px;
  color: var(--white);
  white-space: nowrap;
}

.why__tabs {
  position: absolute;
  top: 135px;
  left: 50px;
  width: 540px;
  list-style: none;
}

.why__tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 90px;
  padding-left: 30px;
  cursor: pointer;
}

/* 激活高亮背景（设计稿 Mask group，540×90） */
.why__tab-bg {
  position: absolute;
  inset: 0;
  background: url("/static/ecoperate/assets/tab-highlight.png") center / 100% 100% no-repeat;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.why__tab.is-active .why__tab-bg {
  opacity: 1;
}

.why__tab-icon {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.why__tab-text {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 700;
  line-height: 27px;
  color: var(--white);
}

.why__media {
  position: absolute;
  top: 135px;
  left: 600px;
  width: 600px;
  height: 354px;
}

/* 右侧面板：与左侧 tab 联动切换（默认第一块） */
.why__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.why__panel.is-active {
  opacity: 1;
  pointer-events: auto;
}

.why__panel img {
  width: 600px;
  height: 321px;
  border-radius: 6px;
  object-fit: cover;
  object-position: top left;
}

.why__panel p {
  font-size: 14px;
  line-height: 22px;
  color: var(--light-blue);
}

/* Data card (overlaps the bottom of why card) */

.data-card {
  position: absolute;
  top: 560px;
  left: 100px;
  width: 1080px;
  height: 200px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(10, 71, 237, 0.15);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.data-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.data-item__label {
  font-size: 18px;
  line-height: 30px;
  color: #000000;
  text-align: center;
}

.data-item__value {
  display: flex;
  align-items: center;
  gap: 8px;
}

.data-item__value strong {
  font-size: 48px;
  font-weight: 500;
  line-height: 60px;
  color: var(--blue);
}

.data-item__value img {
  width: 60px;
  height: 60px;
}

/* ==========================================================================
   More Benefits
   ========================================================================== */

.benefits {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 100px 0;
}

.benefits__title {
  font-size: 48px;
  font-weight: 500;
  line-height: 60px;
  color: var(--dark-blue);
  text-align: center;
}

.benefits__list {
  width: 840px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.benefit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 60px 40px 40px;
  border-radius: 20px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* 悬停高亮（未展开时） */
.benefit:not(.is-open):hover {
  background: rgba(10, 71, 237, 0.05);
}

/* 展开态：白底卡片 + 蓝色阴影，图标沉底对齐（设计稿 alignItems: flex-end） */
.benefit.is-open {
  align-items: flex-end;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(10, 71, 237, 0.15);
}

.benefit.is-open .benefit__text {
  color: var(--blue);
}

.benefit__main {
  flex: 1;
  min-width: 0;
}

.benefit__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 26px;
  font-weight: 700;
  line-height: 40px;
  color: var(--text-dark);
}

.benefit__text span {
  font-weight: 400;
}

/* 展开内容：grid 0fr/1fr 实现高度过渡动画 */
.benefit__content {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  transition: grid-template-rows 0.35s ease, margin-top 0.35s ease;
}

.benefit.is-open .benefit__content {
  grid-template-rows: 1fr;
  margin-top: 20px;
}

.benefit__points {
  min-height: 0;
  overflow: hidden;
}

.benefit__points li {
  position: relative;
  padding-left: 16px;
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
  color: var(--text-dark);
}

.benefit__points li::before {
  content: "-";
  position: absolute;
  left: 0;
  top: 0;
}

.benefit__label {
  font-weight: 700;
}

/* 展开/收起图标切换 */
.benefit__icons {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  cursor: pointer;
}

.benefit__icon {
  width: 36px;
  height: 36px;
}

.benefit__icon--collapse {
  display: none;
  border-radius: 50%;
  box-shadow: 0 6px 4px 0 rgba(0, 216, 227, 0.25);
}

.benefit.is-open .benefit__icon--expand {
  display: none;
}

.benefit.is-open .benefit__icon--collapse {
  display: block;
}

/* ==========================================================================
   Request a Demo
   ========================================================================== */

.demo {
  position: relative;
  width: 1280px;
  height: 480px;
  margin: 0 auto 100px;
  background: #f5f7ff;
  border-radius: 20px;
  overflow: hidden;
}

.demo__glow {
  position: absolute;
  top: -160px;
  left: 240px;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: rgba(10, 71, 237, 0.25);
  filter: blur(152px);
}

.demo__title {
  position: absolute;
  top: 125px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 48px;
  font-weight: 500;
  line-height: 60px;
  color: var(--blue);
  white-space: nowrap;
}

/* 申请试用入口：由原「邮箱输入 + 联系太美」表单改为跳转 /trial 的按钮 */
.demo__cta {
  position: absolute;
  top: 210px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 48px;
  background: var(--blue);
  color: #ffffff;
  border-radius: 8px;
  font-size: 18px;
  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: 295px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  line-height: 30px;
  color: var(--text-dark);
  white-space: nowrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  position: relative;
  height: 505px;
  background: var(--dark-blue);
}

.footer__cube {
  position: absolute;
  top: -137px;
  left: calc(50vw - 387px);
  width: 1107px;
  height: 642px;
  clip-path: inset(137px 0 0 0);
  z-index: 0;
}

.footer__glow {
  position: absolute;
  top: 292px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 213px;
  background: rgba(10, 71, 237, 0.8);
  filter: blur(152px);
  z-index: 0;
}

.footer__brands img {
  position: absolute;
  top: 120px;
  left: 80px;
  width: 142px;
  height: 52px;
  z-index: 1;
}

.footer__brand-2 {
  left: 258px !important;
  height: 51px !important;
}

.footer__title {
  position: absolute;
  top: 115px;
  left: 479px;
  font-size: 30px;
  font-weight: 700;
  line-height: 40px;
  color: var(--white);
  z-index: 1;
}

.footer__contact {
  position: absolute;
  top: 174px;
  left: 479px;
  z-index: 1;
}

.footer__contact--right {
  left: 782px;
}

.footer__line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  line-height: 30px;
  color: var(--white);
}

.footer__line--main {
  margin-top: 0;
  position: absolute;
  top: 30px;
  left: 0;
  white-space: nowrap;
}

.footer__line strong {
  font-weight: 400;
}

.footer__qr {
  position: absolute;
  top: 121px;
  left: 1110px;
  width: 150px;
  height: 150px;
  z-index: 1;
}

.footer__badge {
  position: absolute;
  top: 121px;
  left: 1320px;
  width: 40px;
  height: 40px;
  padding: 0;
  z-index: 1;
}

.footer__badge img {
  display: block;
  width: 100%;
  height: 100%;
}

.footer__divider {
  position: absolute;
  top: 394px;
  left: 80px;
  width: 1280px;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  z-index: 1;
}

.footer__social {
  position: absolute;
  top: 419px;
  left: 80px;
  display: flex;
  align-items: center;
  gap: 30px;
  z-index: 1;
}

.footer__social a {
  display: inline-flex;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.footer__social a:hover {
  opacity: 1;
}

.footer__social img {
  width: 24px;
  height: 24px;
}

.footer__legal {
  position: absolute;
  top: 420px;
  left: 350px;
  z-index: 1;
}

.footer__legal span {
  position: absolute;
  top: 0;
  font-size: 12px;
  line-height: 22px;
  color: var(--white);
  white-space: nowrap;
}

.footer__legal span:nth-child(1) { left: 0; }
.footer__legal span:nth-child(2) { left: 377px; }
.footer__legal span:nth-child(3) { left: 564px; }
.footer__legal span:nth-child(4) { left: 784px; }

.footer__policy {
  position: absolute;
  top: 450px;
  left: 908px;
  font-size: 12px;
  line-height: 22px;
  color: var(--white);
  z-index: 1;
}

/* 窄屏 PC（980px–1439px）出血对齐已由 .banner__bg 的
   left:50% + translateX(-50%) + width:max(1440px,100vw) 处理，无需额外规则；
   抽象图已移除。 */
