/*
 * TMS 系统详情页（/project/tms，画板 0:9369，1920×5358）
 * 七个正文模块：hero 696→1346 / overview 1346→2019 / feature 2019→2641.56 /
 *   scene 2641.56→3127 / banner 3127→3682 / process 3682→4188 / data 4188→4810
 * 依赖 common.css + home.css（main 里已引入）。
 */

/* 页面底色 = 画板 0:9369 的填充 #F9FCFF；模块自己没铺矩形的就不写 background，透出这一层 */
.tms-page { background: #f9fcff; }

/* ============================================================
   模块1 首屏 hero（696→1346，高 650）
   ============================================================ */
.tms-hero {
  position: relative;
  width: 100%;
  min-height: 650px;
  overflow: hidden;
  scroll-margin-top: 88px; /* 首页直达锚：吸顶 72＋16，id="tmsb" */
}

.tms-hero * { box-sizing: border-box; }

.tms-hero__stage {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 1920px;
  min-height: 650px;
}

.tms-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 650px;
  background: url(/images/project/tms/hero-bg.webp) center top / 1920px 650px no-repeat;
}

.tms-hero__mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 1365px;
  height: 650px;
  background: linear-gradient(90deg, #e0f0fe 0%, rgba(224, 240, 254, .9) 43%, rgba(223, 239, 253, .75) 66%, rgba(221, 237, 252, 0) 100%);
  pointer-events: none;
}

/* 文本从设计 x224 起 → 容器宽 1472，居中后左缘 = 224 */
.tms-hero__content {
  position: relative;
  width: 1472px;
  margin: 0 auto;
  padding: 134px 0 0;
  font-family: 'AlibabaPuHuiTi-3', Inter, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.tms-hero__label {
  margin: 0;
  font-size: 20px;
  line-height: 29px;
  font-weight: 400;
  color: #333;
}

.tms-hero__title {
  margin: 8px 0 0;
  font-size: 72px;
  line-height: 105px;
  font-weight: 700;
  color: #0041a5;
}

.tms-hero__sub {
  margin: 8px 0 0;
  font-size: 33px;
  line-height: 48px;
  font-weight: 700;
  color: #333;
}

.tms-hero__desc {
  width: 588px;
  margin: 79px 0 0;
  font-size: 28px;
  line-height: 40px;
  font-weight: 400;
  color: #5b5d62;
}

/* ============================================================
   通用区块头
   ============================================================ */
.tms-sec-title {
  margin: 0;
  font-size: 34px;
  line-height: 49px;
  font-weight: 700;
  color: #333;
}

.tms-sec-sub {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #555;
}

.tms-sec-rule {
  display: block;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: #2d72ff;
}

.tms-sec-rule--226 { width: 226px; margin-top: 18px; }
.tms-sec-rule--362 { width: 362px; }
.tms-sec-rule--204 { width: 204px; }
.tms-sec-rule--284 { width: 284px; }
.tms-sec-rule--220 { width: 220px; }
.tms-sec-rule--302 { width: 302px; }

/* ============================================================
   模块2 产品概述（1346→2019，高 673）
   ============================================================ */
.tms-overview {
  position: relative;
  width: 100%;
  min-height: 673px;
  overflow: hidden;
}

.tms-overview * { box-sizing: border-box; }

.tms-overview__content {
  position: relative;
  width: 1200px;
  margin: 0 auto;
  padding: 61px 0 0;
  text-align: center;
  font-family: 'AlibabaPuHuiTi-3', Inter, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.tms-overview__lead {
  width: 816px;
  margin: 31px auto 0;
  font-size: 24px;
  line-height: 40px;
  font-weight: 400;
  color: #0f172a;
}

.tms-overview__body {
  display: flex;
  margin-top: 56px;
  text-align: left;
}

/* 插画比 1200 列更靠左（设计 x353 < 360），用负 margin 外扩 */
.tms-overview__visual {
  position: relative;
  flex: none;
  width: 553px;
  min-height: 323px;
  margin-left: -7px;
}

/* 装饰：插画底部光晕 0:9385（565×147） */
.tms-overview__bg {
  position: absolute;
  left: 0;
  top: 196px;
  width: 565px;
  height: 147px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f9fcff 0%, #afd7ff 100%);
  pointer-events: none;
}

.tms-overview__pic {
  position: relative;
  display: block;
  width: 553px;
  height: 323px;
}

.tms-overview__feats {
  flex: none;
  width: 512px;
  margin: 0 0 0 102px;
  padding: 8px 0 0;
  list-style: none;
}

.tms-overview__feat {
  display: flex;
  align-items: flex-start;
}

.tms-overview__feat + .tms-overview__feat { margin-top: 47px; }

.tms-overview__fico {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dff0ff 0%, #abd8ff 100%);
}

.tms-overview__fico img { display: block; object-fit: contain; }

.tms-overview__txt { margin-left: 24px; }

.tms-overview__name {
  margin: 0;
  font-size: 27px;
  line-height: 39px;
  font-weight: 700;
  color: #333;
}

.tms-overview__desc {
  margin: 9px 0 0;
  font-size: 22px;
  line-height: 32px;
  font-weight: 400;
  color: #333;
  white-space: nowrap;
}

/* ============================================================
   模块3 核心功能（2019→2641.56，高 622.56，顶部 479 高 #E5F0FF 横带）
   ============================================================ */
.tms-feature {
  position: relative;
  width: 100%;
  min-height: 622.56px;
  overflow: hidden;
}

.tms-feature * { box-sizing: border-box; }

/* 装饰：顶部横带 0:9371 */
.tms-feature__bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1920px;
  height: 479px;
  background: #e5f0ff;
  pointer-events: none;
}

.tms-feature__content {
  position: relative;
  width: 1200px;
  margin: 0 auto;
  padding: 29px 0 0;
  text-align: center;
  font-family: 'AlibabaPuHuiTi-3', Inter, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.tms-feature__list {
  display: grid;
  grid-template-columns: repeat(3, 380px);
  justify-content: space-between;
  row-gap: 40px;
  margin: 60px 0 0;
  padding: 0;
  list-style: none;
}

.tms-feature__card {
  display: flex;
  align-items: flex-start;
  width: 380px;
  min-height: 166px;
  padding: 35px 0 0 27px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, .16);
  text-align: left;
}

/* 设计里第 6 卡右对齐且窄 16px */
.tms-feature__card--6 {
  justify-self: end;
  width: 364px;
}

.tms-feature__ico {
  flex: none;
  display: block;
  width: 85px;
  height: 85px;
}

.tms-feature__txt { margin-left: 24px; }

.tms-feature__name {
  margin: 0;
  font-size: 22px;
  line-height: 32px;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}

.tms-feature__desc {
  margin: 11px 0 0;
  font-size: 17px;
  line-height: 26px;
  font-weight: 400;
  color: #333;
  white-space: nowrap;
}

/* ============================================================
   模块4 适用场景（2641.56→3127，高 485.44）
   ============================================================ */
.tms-scene {
  position: relative;
  width: 100%;
  min-height: 485.44px;
  overflow: hidden;
}

.tms-scene * { box-sizing: border-box; }

.tms-scene__content {
  position: relative;
  width: 1200px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  font-family: 'AlibabaPuHuiTi-3', Inter, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.tms-scene__list {
  display: flex;
  justify-content: space-between;
  margin: 60px 0 0;
  padding: 0;
  list-style: none;
}

.tms-scene__card {
  width: 280px;
  min-height: 292px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, .16);
}

.tms-scene__pic {
  display: block;
  width: 280px;
  height: 150px;
  object-fit: cover;
}

.tms-scene__name {
  margin: 29px 0 0;
  font-size: 22px;
  line-height: 32px;
  font-weight: 700;
  color: #1e293b;
}

.tms-scene__desc {
  margin: 15px 0 0;
  font-size: 17px;
  line-height: 25px;
  font-weight: 400;
  color: #555;
}

/* ============================================================
   模块5 价值主张横幅（3127→3682，高 555）
   ============================================================ */
.tms-banner {
  position: relative;
  width: 100%;
  min-height: 555px;
  overflow: hidden;
}

.tms-banner * { box-sizing: border-box; }

/* 装饰：背景实景图 0:9373 + 浅色叠加 0:9374 */
.tms-banner__bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1920px;
  height: 555px;
  background: url(/images/project/tms/m5-bg.webp) center top / 1920px 555px no-repeat;
  pointer-events: none;
}

.tms-banner__overlay {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1920px;
  height: 555px;
  background: linear-gradient(180deg, #eff7ff 0%, rgba(238, 246, 255, .8) 100%);
  pointer-events: none;
}

.tms-banner__content {
  position: relative;
  width: 1200px;
  margin: 0 auto;
  padding: 29px 0 0;
  text-align: center;
  font-family: 'AlibabaPuHuiTi-3', Inter, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.tms-banner__body {
  display: flex;
  margin-top: 20px;
  text-align: left;
}

.tms-banner__feats {
  flex: none;
  display: grid;
  grid-template-columns: 333px 333px;
  row-gap: 76px;
  width: 742px;
  margin-left: -3px;
  padding-top: 38px;
}

.tms-banner__feat {
  display: flex;
  align-items: flex-start;
}

.tms-banner__ico {
  flex: none;
  display: block;
  margin-top: 2px;
}

.tms-banner__txt { margin-left: 26px; }
.tms-banner__feat:nth-child(even) .tms-banner__txt { margin-left: 32px; }

.tms-banner__name {
  margin: 0;
  font-size: 25px;
  line-height: 36px;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}

.tms-banner__desc {
  margin: 15px 0 0;
  font-size: 20px;
  line-height: 30px;
  font-weight: 400;
  color: #555;
  white-space: nowrap;
}

.tms-banner__figure {
  position: relative;
  flex: none;
  width: 470px;
}

/* 装饰：插画底部光晕与两枚小圆点 */
.tms-banner__glow {
  position: absolute;
  left: 9px;
  top: 209px;
  width: 453px;
  height: 162px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ebf4fe 0%, #b4d8fe 100%);
  pointer-events: none;
}

.tms-banner__dot1 {
  position: absolute;
  left: 25px;
  top: 34px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eef6ff 0%, #a8d3ff 100%);
  pointer-events: none;
}

.tms-banner__dot2 {
  position: absolute;
  left: 398px;
  top: -24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eef6ff 0%, #a8d3ff 100%);
  pointer-events: none;
}

.tms-banner__pic {
  position: relative;
  display: block;
  width: 470px;
  height: 368px;
}

/* ============================================================
   模块6 产品流程（3682→4188，高 506）
   ============================================================ */
.tms-process {
  position: relative;
  width: 100%;
  min-height: 506px;
  overflow: hidden;
}

.tms-process * { box-sizing: border-box; }

.tms-process__content {
  position: relative;
  width: 1200px;
  margin: 0 auto;
  padding: 29px 0 0;
  text-align: center;
  font-family: 'AlibabaPuHuiTi-3', Inter, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.tms-process__steps {
  display: flex;
  align-items: flex-start;
  margin-top: 60px;
}

.tms-process__step { flex: none; }
.tms-process__step--1 { width: 207px; }
.tms-process__step--2 { width: 184px; }
.tms-process__step--3 { width: 184px; }
.tms-process__step--4 { width: 207px; }

.tms-process__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 132px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #d6ecff 0%, #9dd1ff 100%);
}

.tms-process__circle img { display: block; object-fit: contain; }

.tms-process__name {
  margin: 22px 0 0;
  font-size: 28px;
  line-height: 40px;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}

.tms-process__desc {
  margin: 23px 0 0;
  font-size: 23px;
  line-height: 34px;
  font-weight: 400;
  color: #888;
}

.tms-process__arrow {
  flex: none;
  display: block;
  margin-top: 50px;
}

.tms-process__arrow img { display: block; width: 40px; height: 40px; }

.tms-process__steps > .tms-process__arrow:nth-of-type(1) { margin-left: 49px; margin-right: 51px; }
.tms-process__steps > .tms-process__arrow:nth-of-type(2) { margin-left: 49px; margin-right: 51px; }
.tms-process__steps > .tms-process__arrow:nth-of-type(3) { margin-left: 50px; margin-right: 51px; }

/* ============================================================
   模块7 数据驱动的决策支持（4188→4810，高 622，底 #ECF4FF）
   ============================================================ */
.tms-data {
  position: relative;
  width: 100%;
  min-height: 622px;
  overflow: hidden;
  background: #ecf4ff;
}

.tms-data * { box-sizing: border-box; }

.tms-data__content {
  position: relative;
  width: 1200px;
  margin: 0 auto;
  padding: 29px 0 0;
  text-align: center;
  font-family: 'AlibabaPuHuiTi-3', Inter, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.tms-data__body {
  display: flex;
  margin-top: 55px;
  text-align: left;
}

.tms-data__left { flex: none; width: 692px; }

.tms-data__desc {
  width: 528px;
  margin: 0;
  font-size: 24px;
  line-height: 40px;
  font-weight: 400;
  color: #555;
}

.tms-data__stats {
  display: flex;
  align-items: flex-start;
  gap: 68px;
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
}

.tms-data__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tms-data__stat-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #bee1ff;
}

.tms-data__stat-ico img { display: block; object-fit: contain; }

.tms-data__stat-name {
  margin: 13px 0 0;
  font-size: 22px;
  line-height: 32px;
  font-weight: 700;
  color: #1a1a2e;
  white-space: nowrap;
}

.tms-data__stat-desc {
  margin: 15px 0 0;
  font-size: 17px;
  line-height: 26px;
  font-weight: 400;
  color: #888;
  white-space: nowrap;
}

.tms-data__figure {
  position: relative;
  flex: none;
  width: 496px;
  margin: 0;
}

/* 装饰：插画底衬 0:9432（右移 12、下移 13） */
.tms-data__bg {
  position: absolute;
  left: 12px;
  top: 18px;
  width: 496px;
  height: 279px;
  border-radius: 10px;
  background: #bbd8ff;
  pointer-events: none;
}

.tms-data__pic {
  position: relative;
  display: block;
  width: 496px;
  height: 279px;
  margin-top: 5px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(90, 145, 255, .6);
}

.tms-data__caption {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 27px;
  font-size: 20px;
  line-height: 30px;
  font-weight: 400;
  color: #555;
}

.tms-data__line {
  display: block;
  width: 41px;
  height: 1px;
  margin: 0 12px;
  background: #3d8fff;
}

/* ============================================================
   动效（与 mes / gov / wms / defect 等项目页同一套）
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.tms-feature__card,
.tms-scene__card,
.tms-process__circle,
.tms-data__stat-ico {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tms-feature__card:hover,
.tms-scene__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(35, 99, 235, .18);
}

.tms-process__step:hover .tms-process__circle,
.tms-data__stat:hover .tms-data__stat-ico {
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .tms-feature__card,
  .tms-scene__card,
  .tms-process__circle,
  .tms-data__stat-ico {
    transition: none;
  }

  .tms-feature__card:hover,
  .tms-scene__card:hover,
  .tms-process__step:hover .tms-process__circle,
  .tms-data__stat:hover .tms-data__stat-ico {
    transform: none;
  }
}
