/* ============================================================
   trade-material-integrate.css - 物贸一体化管控平台 产品页
   基于 Figma「产品中心-物贸一体化管控平台」#1596:6200 设计还原
   图片 / 图标均为 Figma 原始导出素材，位于
   assets/images/trade-material-integrate/
   复用 tank-container-storage.css 的 .lct-banner / .section-title /
   .title-deco / .banner-values / .banner-btn 等通用基础类，
   响应式断点（1524 / 1280 / 768 / 480）与 station-operation 等页面一致
   ============================================================ */

/* 正文内容区沿用全局 .content-wrapper 的 83%，此处不覆盖宽度 */

/* ============================================================
   Banner
   ============================================================ */
.lct-banner-tmi {
  height: auto;
  min-height: 620px;
  padding: 60px 0 35px;
  background: url('../assets/images/trade-material-integrate/banner-bg-5ff17e.webp') center center / cover no-repeat;
}

.lct-banner-tmi .banner-mask {
  height: 100% !important;
  background: linear-gradient(90deg, rgba(51, 91, 124, 0.7) 0%, rgba(51, 91, 124, 0.7) 17%, rgba(31, 31, 31, 0) 100%);
}

.lct-banner-tmi .banner-strip {
  top: auto;
  bottom: 0;
}

.lct-banner-tmi .banner-content {
  height: auto;
  min-height: 394px;
  justify-content: flex-start;
}

.lct-banner-tmi .banner-content h1 {
  margin-bottom: 17px;
  letter-spacing: 0;
}

.lct-banner-tmi .banner-content p {
  max-width: 760px;
  margin-bottom: 49px;
  text-align: justify;
}

.lct-banner-tmi .banner-actions {
  margin-bottom: 0;
}

.lct-banner-tmi .banner-btn img {
  width: 30px;
  height: 30px;
}

/* 价值卡：5 枚单行，贴 banner 底部 */
.lct-banner-tmi .banner-values {
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 100%;
  margin: auto 0 0;
  align-self: stretch;
}

.lct-banner-tmi .value-card {
  min-height: 72px;
  padding: 0 24px;
  gap: 12px;
}

.lct-banner-tmi .value-card img {
  width: 32px;
  height: 32px;
}

.lct-banner-tmi .value-card span {
  font-size: 16px;
  line-height: 1.5;
}

/* ============================================================
   行业背景：7 张痛点卡（首行 4 张 / 次行 3 张）
   ============================================================ */
.tmi-industry {
  padding: 40px 0 60px;
  background: #fff;
}

.tmi-industry .industry-lead {
  margin: 0 auto;
  font-weight: 400;
  line-height: 32px;
  text-align: justify;
}

.tmi-industry .industry-lead strong {
  font-weight: 600;
}

.tmi-pain-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.tmi-pain-grid .pain-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: auto;
  padding: 40px;
  background: #F5F7FA;
  border-radius: 8px;
}

/* 首行 4 张各占 3 栏，次行 3 张各占 4 栏 */
.tmi-pain-grid .pain-card:nth-child(-n+4) {
  grid-column: span 3;
}

.tmi-pain-grid .pain-card:nth-child(n+5) {
  grid-column: span 4;
}

.tmi-pain-grid .pain-icon {
  height: 40px;
  display: flex;
  align-items: center;
}

.tmi-pain-grid .pain-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.tmi-pain-grid .pain-card p {
  flex: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 32px;
  color: #57575C;
  text-align: justify;
}

.tmi-pain-grid .pain-no {
  font-size: 14px;
  font-weight: 400;
  line-height: 32px;
  color: #93959D;
}

.tmi-pain-grid .pain-no em {
  font-style: normal;
  font-size: 14px;
  font-weight: 400;
  color: #93959D;
}

/* ============================================================
   产品介绍：浅灰底左文右图
   ============================================================ */
.lct-intro-tmi {
  padding: 70px 0 84px;
  background: #E9EEF3;
}

.lct-intro-tmi .section-title {
  margin-top: 0;
}

.tmi-intro-layout {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 60px;
  min-height: auto;
  padding: 0;
}

.tmi-intro-layout .intro-text-col p {
  width: 100%;
  max-width: 707px;
  color: var(--color-text);
  text-align: justify;
}

.tmi-intro-layout .intro-figure-col {
  flex: 0 0 40%;
  max-width: 40%;
}

/* ============================================================
   产品优势：底图 + 遮罩，首行 3 张 / 次行 2 张
   ============================================================ */
/* 底图 #1596:6206（1919×558）+ 遮罩层 #1596:6231 rgba(31,31,31,0.6) */
.lct-advantage-tmi {
  background-image:
    linear-gradient(rgba(31, 31, 31, 0.6), rgba(31, 31, 31, 0.6)),
    url('../assets/images/trade-material-integrate/advantage-bg-31a7b0.webp');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

/* 遮罩已由上面的渐变层实现，关闭通用组件 ::before 的二次遮罩 */
.lct-advantage-tmi::before {
  display: none;
}

.tmi-adv-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tmi-adv-grid .adv-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 138px;
  padding: 0 32px;
  background: rgba(87, 87, 92, 0.5);
  border: 1px solid #93959D;
  border-radius: 8px;
}

/* 首行 3 张各占 2 栏，次行 2 张各占 3 栏 */
.tmi-adv-grid .adv-card:nth-child(-n+3) {
  grid-column: span 2;
}

.tmi-adv-grid .adv-card:nth-child(n+4) {
  grid-column: span 3;
}

.tmi-adv-grid .adv-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}

.tmi-adv-grid .adv-icon img {
  width: 24px;
  height: 24px;
}

.tmi-adv-grid .adv-text h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 26px;
  color: #fff;
}

.tmi-adv-grid .adv-text h3 strong {
  font-weight: 600;
}

/* ============================================================
   核心功能：双列（左 01/03/05/07/09，右 02/04/06/08/10）
   ============================================================ */
.lct-function-tmi {
  padding: 70px 0 40px;
  background: #fff;
}

.tmi-func {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.tmi-func-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 两列底部对齐 */
.tmi-func-col> :last-child {
  flex: 1 1 auto;
}

.tmi-func-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: #F5F7FA;
  border: 1px solid #DBDFE8;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tmi-func-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.tmi-func-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.tmi-func-title {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.tmi-func-title img {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.tmi-func-title h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #57575C;
}

.tmi-func-no {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 350;
  color: #57575C;
}

.tmi-func-no em {
  font-style: normal;
  color: #93959D;
}

.tmi-func-desc {
  padding: 24px 32px;
  background: #FFFFFF;
  border-radius: 8px;
}

.tmi-func-desc p {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 30px;
  color: #57575C;
  text-align: justify;
}

.tmi-func-body {
  flex: 1 1 auto;
  padding: 0;
  background: #FFFFFF;
  border-radius: 8px;
}

.tmi-func-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tmi-func-list li {
  position: relative;
  padding: 16px 32px 16px 66px;
  font-size: 16px;
  font-weight: 300;
  line-height: 30px;
  color: #57575C;
  text-align: justify;
}

.tmi-func-list li::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 16px;
  width: 18px;
  height: 34px;
  background: url('../assets/images/trade-material-integrate/bullet.svg') left center / 18px 34px no-repeat;
}

.tmi-func-list li strong {
  font-weight: 600;
}

/* ============================================================
   客户案例 + FAQ（默认隐藏，DOM 保留，JS 动态渲染）
   ============================================================ */
.case-faq-wrap {
  display: none;
}

.tmi-case-section,
.tmi-faq-section {
  padding: 70px 0;
}

.tmi-case-section {
  background: #F5F7FA;
}

.tmi-faq-section {
  background: #fff;
}

.tmi-status {
  display: none;
  padding: 48px 16px;
  text-align: center;
  color: #93959D;
  font-size: 15px;
}

.tmi-status.is-visible {
  display: block;
}

/* ---------- 客户案例 ---------- */
.tmi-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tmi-case-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: #FFFFFF;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tmi-case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.tmi-case-media:empty {
  display: none;
}

.tmi-case-media img {
  display: block;
  width: 100%;
  aspect-ratio: 453 / 249;
  object-fit: cover;
}

.tmi-case-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding-top: 16px;
}

.tmi-case-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 26px;
  color: #57575C;
}

.tmi-case-desc {
  margin: 12px 0 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 25px;
  color: #57575C;
}

.tmi-case-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}

.tmi-case-date,
.tmi-case-more {
  font-size: 14px;
  color: #93959D;
}

.tmi-case-more {
  white-space: nowrap;
}

/* ---------- FAQ ---------- */
.tmi-faq-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tmi-faq-item {
  border-bottom: 1px solid #DBDFE8;
}

.tmi-faq-q {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 8px;
  cursor: pointer;
}

.tmi-faq-q-icon {
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  object-fit: contain;
}

.tmi-faq-q h3 {
  flex: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: #404043;
}

.tmi-faq-a {
  display: none;
  align-items: flex-start;
  gap: 9px;
  padding: 0 8px 20px;
}

.tmi-faq-item.is-open .tmi-faq-a {
  display: flex;
}

.tmi-faq-av {
  flex: 0 0 auto;
  width: 47px;
  height: 47px;
  object-fit: contain;
}

.tmi-faq-av.is-user {
  width: 38px;
  height: 38px;
}

.tmi-faq-ans {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding-top: 8px;
  font-size: 14px;
  line-height: 26px;
  color: #57575C;
  text-align: justify;
}

.tmi-faq-name {
  font-size: 18px;
  font-weight: 700;
  color: #57575C;
}

.tmi-faq-name.is-ai {
  color: #FD9E33;
}

.tmi-faq-name.is-user {
  color: #93959D;
}

/* ============================================================
   响应式（1524 / 1280 / 768 / 480）
   - 价值卡与其他页面保持一致：1281px 以上仍为 5 枚单行，
     ≤1280 再切换 3 列 2 行，避免 1524-1026 区间出现两行与多余空白
   ============================================================ */
@media (max-width: 1524px) and (min-width: 1025px) {
  .lct-banner-tmi {
    min-height: auto;
    padding: 56px 0 80px;
  }

  .lct-banner-tmi .banner-content {
    min-height: auto;
  }

  .lct-banner-tmi .banner-content h1 {
    margin-bottom: 28px;
  }

  .lct-banner-tmi .banner-content p {
    margin-bottom: 28px;
  }

  .lct-banner-tmi .banner-values {
    grid-template-columns: repeat(5, 1fr);
    margin-top: 40px;
  }

  /* 痛点卡：改为两列独立网格，避免 12 栏 gap 累积影响宽度 */
  .tmi-pain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tmi-pain-grid .pain-card:nth-child(-n+4),
  .tmi-pain-grid .pain-card:nth-child(n+5) {
    grid-column: auto;
  }
}

/* 1281-1524px：5 枚单行后卡片变窄，收紧图标/字号/内边距，保证标签单行完整显示 */
@media (min-width: 1281px) and (max-width: 1524px) {
  .lct-banner-tmi .value-card {
    padding: 0 8px;
    gap: 10px;
  }

  .lct-banner-tmi .value-card img {
    width: 28px;
    height: 28px;
  }

  .lct-banner-tmi .value-card span {
    font-size: 15px;
  }
}

@media (max-width: 1280px) {
  .lct-banner-tmi {
    min-height: auto;
    padding: 56px 0 80px;
  }

  .lct-banner-tmi .banner-content {
    min-height: auto;
  }

  .lct-banner-tmi .banner-values {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 32px;
  }

  /* 痛点卡：平板保持 2 张 / 行（列定义见 1524 断点） */
  .tmi-pain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tmi-pain-grid .pain-card:nth-child(-n+4),
  .tmi-pain-grid .pain-card:nth-child(n+5) {
    grid-column: auto;
  }

  /* 产品优势：3 栏 → 每张整行 */
  .tmi-adv-grid {
    grid-template-columns: 1fr;
  }

  .tmi-adv-grid .adv-card:nth-child(-n+3),
  .tmi-adv-grid .adv-card:nth-child(n+4) {
    grid-column: span 1;
  }

  .tmi-intro-layout {
    flex-direction: column;
    gap: 36px;
  }

  .tmi-intro-layout .intro-figure-col {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* 1025-1524px：banner 底部价值卡位置对齐站内其他页面
   （banner min-height 560 / padding 70 0 100，价值卡距底 16px：100-84=16） */
@media (min-width: 1025px) and (max-width: 1524px) {
  .lct-banner-tmi {
    display: flex;
    flex-direction: column;
    min-height: 560px;
    padding: 70px 0 100px;
  }

  .lct-banner-tmi .banner-content {
    flex: 1;
    height: auto;
    min-height: 0;
  }

  .lct-banner-tmi .banner-values {
    margin: auto 0 -84px;
  }
}

/* ≥1525px：价值卡贴 banner 底部（距底 16px：35-19=16），与 station-operation 参考页一致 */
@media (min-width: 1525px) {
  .lct-banner-tmi {
    display: flex;
    flex-direction: column;
  }

  .lct-banner-tmi .banner-content {
    flex: 1;
    min-height: 0;
  }

  .lct-banner-tmi .banner-values {
    margin: auto 0 -19px;
  }
}

/* 769-1024px：价值卡下移 64px 贴底（距 banner 底 16px，与 station-operation 一致）
   仅位移，不改 banner 高度与其余元素布局 */
@media (min-width: 769px) and (max-width: 1024px) {
  .lct-banner-tmi .banner-values {
    position: relative;
    top: 64px;
  }
}

@media (max-width: 768px) {
  .lct-banner-tmi {
    min-height: auto;
    padding: 48px 0 72px;
  }

  .lct-banner-tmi .banner-content h1 {
    margin-bottom: 16px;
  }

  .lct-banner-tmi .banner-content p {
    margin-bottom: 24px;
  }

  .lct-banner-tmi .banner-values {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 28px;
    position: relative;
    top: 56px;
  }

  .lct-banner-tmi .value-card {
    min-height: 68px;
    padding: 0 16px;
    gap: 10px;
  }

  .lct-banner-tmi .value-card img {
    width: 28px;
    height: 28px;
  }

  .lct-banner-tmi .value-card span {
    font-size: 14px;
  }

  /* ---------- 行业背景 ---------- */
  .tmi-industry {
    padding: 32px 0 40px;
  }

  .tmi-pain-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 28px;
  }

  .tmi-pain-grid .pain-card:nth-child(-n+4),
  .tmi-pain-grid .pain-card:nth-child(n+5) {
    grid-column: auto;
  }

  /* 覆盖全局 .pain-card 的手机端 row 换行布局，恢复「图标 / 文字 / 编号」纵向堆叠，
     避免编号被挤到卡片之外 */
  .tmi-pain-grid .pain-card {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 16px;
    padding: 24px 20px;
  }

  .tmi-pain-grid .pain-icon {
    flex: 0 0 auto;
    height: 32px;
    margin-bottom: 0;
  }

  .tmi-pain-grid .pain-icon img {
    width: 32px;
    height: 32px;
  }

  .tmi-pain-grid .pain-card p {
    flex: 0 0 auto;
    width: 100%;
    margin: 0;
    font-size: 14px;
    line-height: 26px;
  }

  .tmi-pain-grid .pain-no {
    flex: 0 0 auto;
    width: 100%;
    margin-top: 0;
    font-size: 14px;
    line-height: 26px;
  }

  /* ---------- 产品介绍 ---------- */
  .lct-intro-tmi {
    padding: 48px 0 56px;
  }

  .tmi-intro-layout .intro-text-col p {
    font-size: 14px;
    line-height: 26px;
  }

  /* ---------- 产品优势 ---------- */
  .tmi-adv-grid {
    gap: 14px;
  }

  .tmi-adv-grid .adv-card {
    min-height: 104px;
    padding: 16px 20px;
    gap: 12px;
  }

  .tmi-adv-grid .adv-text h3 {
    font-size: 15px;
    line-height: 24px;
  }

  .tmi-adv-grid .adv-text h3 span {
    font-size: 14px;
    line-height: 24px;
  }

  /* ---------- 核心功能：单列，按 01→10 排列 ---------- */
  .lct-function-tmi {
    padding: 48px 0 32px;
  }

  .tmi-func {
    flex-direction: column;
    gap: 16px;
  }

  .tmi-func-col {
    display: contents;
  }

  .tmi-func-col> :last-child,
  .tmi-func-body {
    flex: 0 0 auto;
  }

  .tmi-func-col:first-child>.tmi-func-card:nth-child(1) {
    order: 1;
  }

  .tmi-func-col:last-child>.tmi-func-card:nth-child(1) {
    order: 2;
  }

  .tmi-func-col:first-child>.tmi-func-card:nth-child(2) {
    order: 3;
  }

  .tmi-func-col:last-child>.tmi-func-card:nth-child(2) {
    order: 4;
  }

  .tmi-func-col:first-child>.tmi-func-card:nth-child(3) {
    order: 5;
  }

  .tmi-func-col:last-child>.tmi-func-card:nth-child(3) {
    order: 6;
  }

  .tmi-func-col:first-child>.tmi-func-card:nth-child(4) {
    order: 7;
  }

  .tmi-func-col:last-child>.tmi-func-card:nth-child(4) {
    order: 8;
  }

  .tmi-func-col:first-child>.tmi-func-card:nth-child(5) {
    order: 9;
  }

  .tmi-func-col:last-child>.tmi-func-card:nth-child(5) {
    order: 10;
  }

  .tmi-func-card {
    padding: 20px;
  }

  .tmi-func-title {
    gap: 12px;
  }

  .tmi-func-title img {
    width: 26px;
    height: 26px;
  }

  .tmi-func-title h3 {
    font-size: 16px;
  }

  .tmi-func-desc {
    padding: 16px 20px;
  }

  .tmi-func-desc p,
  .tmi-func-list li {
    font-size: 14px;
    line-height: 26px;
  }

  .tmi-func-list li {
    padding: 12px 20px 12px 46px;
  }

  .tmi-func-list li::before {
    left: 20px;
    top: 12px;
    width: 14px;
    height: 26px;
    background-size: 14px 26px;
  }

  /* ---------- 客户案例 / FAQ ---------- */
  .tmi-case-section,
  .tmi-faq-section {
    padding: 48px 0 56px;
  }

  .tmi-case-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tmi-case-desc {
    font-size: 14px;
    line-height: 24px;
  }

  .tmi-faq-inner {
    gap: 20px;
  }

  .tmi-faq-q {
    gap: 12px;
    padding: 16px 4px;
  }

  .tmi-faq-q-icon {
    width: 32px;
    height: 32px;
  }

  .tmi-faq-q h3 {
    font-size: 15px;
  }

  .tmi-faq-a {
    gap: 8px;
    padding: 0 4px 16px;
  }

  .tmi-faq-av {
    width: 36px;
    height: 36px;
  }

  .tmi-faq-av.is-user {
    width: 32px;
    height: 32px;
  }

  .tmi-faq-ans {
    padding-top: 4px;
    font-size: 13px;
    line-height: 24px;
  }

  .tmi-faq-name {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .lct-banner-tmi .banner-values {
    grid-template-columns: 1fr;
  }

  .lct-banner-tmi .value-card {
    min-height: 64px;
  }
}
