/* ============================================================
   warehouse-manage.css - 仓储管理系统WMS（产品中心）页面专属样式
   基于 Figma #1192:3236 设计还原
   - 复用 tank-container-storage.css 中的 .lct-banner / .pain-grid /
     .intro-layout / .lct-advantage / .adv-grid / .section-title /
     .banner-values 等基础公共类，仅追加/覆盖 WMS 特有差异
   - 本文件须在 tank-container-storage.css 之后引入
   ============================================================ */

/* ---------- 内容区宽度：本页统一 90%（与 station-operation.html 一致） ----------
   覆盖全局 .content-wrapper 的 83%，不再写死像素上限；各屏幕自适应、窄屏保留 90% 左右留白 */
.page-main .content-wrapper {
  max-width: 90%;
}

/* ---------- Banner：标题/描述/预约按钮 + 4 张价值卡 ---------- */
.lct-banner-warehouse {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 620px;
  padding: 84px 0 40px;
  background: url('../../assets/images/warehouse-manage/banner-bg-73bb14.webp') center center / cover no-repeat;
}

.lct-banner-warehouse .banner-content {
  flex: 1;
  height: auto;
  justify-content: flex-start;
}

/* 价值卡贴底：与站场等产品页一致，卡片底边距 banner 底 40px（Figma 41px） */
.lct-banner-warehouse .banner-values {
  margin: auto 0 0;
}

/* 桌面端 Banner 内容宽 1502（Figma 1920 画布左右各 209），与页面其他区块视觉对齐 */
@media (min-width: 769px) {
  .lct-banner-warehouse .content-wrapper.banner-content {
    width: 90%;
    max-width: 1502px;
    padding: 0;
  }
}

/* 1026–1770px：与 main 内容区同宽并左对齐（其他宽度不受影响）
   宽度取 83%，内边距与全局 .content-wrapper 一致（≥1200 为 32px，1026–1199 为 24px），
   使标题/正文/按钮/四张价值卡与页面其他区块左边缘完全对齐 */
@media (min-width: 1200px) and (max-width: 1770px) {
  .lct-banner-warehouse .content-wrapper.banner-content {
    width: 83%;
    max-width: 1502px;
    padding: 0 32px;
    box-sizing: border-box;
  }
}

@media (min-width: 1026px) and (max-width: 1199px) {
  .lct-banner-warehouse .content-wrapper.banner-content {
    width: 83%;
    max-width: 1502px;
    padding: 0 24px;
    box-sizing: border-box;
  }
}

/* 标题 36/54，正文 16/32，按钮与方块按 Figma 间距（16 / 40 / 43） */
.lct-banner-warehouse .banner-content h1 {
  line-height: 1.5;
  margin-bottom: 16px;
}

.lct-banner-warehouse .banner-content p {
  max-width: 731px;
  line-height: 32px;
  margin-bottom: 40px;
  text-align: justify;
}

/* 遮罩覆盖全高（覆盖罐箱页 .banner-mask 的 height:490px） */
.lct-banner-warehouse .banner-mask {
  height: 100% !important;
}

/* 红条贴底（覆盖罐箱页 .banner-strip 的 top:477px） */
.lct-banner-warehouse .banner-strip {
  top: auto;
  bottom: 0;
}

/* 价值卡：4 列，362 × 72 */
.lct-banner-warehouse .banner-values {
  grid-template-columns: repeat(4, 1fr);
}

.lct-banner-warehouse .value-card {
  justify-content: center;
  gap: 16px;
  min-height: 72px;
  padding: 0 16px;
}

.lct-banner-warehouse .value-card span {
  line-height: 24px;
  color: #393D40;
}

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

.lct-banner-warehouse .banner-actions {
  margin-bottom: 43px;
  padding-bottom: 0;
}

.lct-banner-warehouse .banner-btn img {
  width: 20px;
  height: 20px;
}

/* ============================================================
   行业背景：5 张痛点卡（5 列）
   ============================================================ */
/* 覆盖基础类 .lct-industry 的 padding-bottom:0，
   与产品介绍浅灰背景之间留出 Figma 的白色过渡间距 */
.lct-industry-warehouse {
  padding-bottom: 25px;
}

.lct-industry-warehouse .industry-lead {
  max-width: 1502px;
  margin: 0 auto;
  font-size: 16px;
  font-weight: 400;
  line-height: 32px;
  text-align: justify;
}

/* 正文下方二级标题（严格对齐 Figma：16/600、行高 26、黑色、居中） */
.lct-industry-warehouse .industry-sub {
  width: 160px;
  margin: 48px auto 0;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  line-height: 26px;
  color: #000000;
}

.pain-grid-warehouse {
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.pain-grid-warehouse .pain-card {
  min-height: 274px;
  padding: 40px;
}

.pain-grid-warehouse .pain-icon {
  margin-bottom: 24px;
}

.pain-grid-warehouse .pain-icon img {
  width: 40px;
  height: 40px;
}

.pain-grid-warehouse .pain-card h3 {
  font-size: 16px;
  font-weight: 300;
  line-height: 30px;
  margin-bottom: 0;
}

.pain-grid-warehouse .pain-no {
  margin-top: auto;
  font-size: 14px;
  font-weight: 400;
  color: #93959D;
}

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

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

.lct-intro-warehouse .section-title {
  margin-top: 0;
  margin-bottom: 40px;
}

.intro-layout-warehouse {
  display: flex;
  align-items: center;
  gap: 73px;
  width: 100%;
  max-width: 1333px;
  margin: 0 auto;
  min-height: auto;
  padding: 0;
  flex-direction: row;
}

/* Figma 产品介绍无红色小分隔线，标题下直接接正文（间距 16px） */
.lct-intro-warehouse .intro-subtitle-line {
  display: none;
}

.lct-intro-warehouse .intro-subtitle {
  gap: 0;
  margin-bottom: 16px;
}

.lct-intro-warehouse .intro-subtitle h4 {
  line-height: 32px;
}

/* 图片列宽：Figma 535 / 1333 ≈ 40% */
.lct-intro-warehouse .intro-figure-col {
  flex: 0 0 40%;
  max-width: 40%;
}

/* ============================================================
   产品优势：6 张卡（3 + 3 布局，Figma 364 × 108，整块 1140 居中）
   ============================================================ */
.lct-advantage-warehouse {
  background-image: url('../../assets/images/warehouse-manage/advantage-bg-31a7b0.webp');
}

.adv-grid-warehouse {
  grid-template-columns: repeat(3, minmax(0, 364px));
  justify-content: center;
  gap: 24px;
}

.adv-grid-warehouse .adv-card {
  justify-content: flex-start;
  min-height: 108px;
  padding: 0 40px;
  gap: 16px;
}

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

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

.adv-grid-warehouse .adv-text {
  flex: 0 1 auto;
  gap: 0;
}

.adv-grid-warehouse .adv-text h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 26px;
}

/* ============================================================
   核心功能：两类功能分组 + 2 列卡片
   ============================================================ */
.lct-function-warehouse {
  padding: 70px 0 40px;
  background: #fff;
}

.wh-func-cat {
  position: relative;
  height: 204px;
  margin: 0 0 24px;
  border-radius: 8px;
  overflow: hidden;
}

.wh-func-cat-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wh-func-cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
}

.wh-func-cat-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}

.wh-func-cat-label img {
  width: 14px;
  height: 14px;
}

.wh-func-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0 0 48px;
  padding: 0;
  list-style: none;
}

/* 基础功能：横幅占左上格（742×204 半宽）+ 7 卡共 8 格 2 列，
   对应 Figma 中「基础功能」横幅与「基础数据管理」卡片并排 */
.wh-func-basic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0 0 48px;
}

.wh-func-basic .wh-func-cat {
  height: 204px;
  margin: 0;
  align-self: start;
}

/* 外层：灰色底，标题（图标+标题）位于灰底之上 */
.wh-func-card {
  background: #F5F7FA;
  border: 1px solid #DBDFE8;
  border-radius: 8px;
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.wh-func-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

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

.wh-func-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1F1F1F;
}

/* 内层：白色底盒子，正文字位于白底之上，内边距 32px */
.wh-func-card p {
  margin: 0;
  padding: 32px;
  background: #FFFFFF;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 300;
  line-height: 30px;
  color: #57575C;
}

/* ============================================================
   客户案例 + FAQ（整体默认隐藏，DOM 完整保留）
   ============================================================ */
.case-faq-wrap {
  display: none;
}

.wh-case-section,
.wh-faq-section {
  padding: 70px 0;
  background: #fff;
}

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

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

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

.wh-case-card {
  background: #fff;
  border: 1px solid #DBDFE8;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.wh-case-media img {
  display: block;
  width: 100%;
  height: auto;
}

.wh-case-body {
  padding: 20px 24px 22px;
}

.wh-case-body h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: #404043;
}

.wh-case-desc {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 24px;
  color: #57575C;
}

.wh-case-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wh-case-date {
  font-size: 13px;
  color: #93959D;
}

.wh-case-more {
  font-size: 14px;
  color: #DA0029;
}

/* ---------- FAQ ---------- */
.wh-faq-inner {
  margin: 0 auto;
}

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

.wh-faq-q {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 8px;
  cursor: pointer;
}

.wh-faq-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #DA0029;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

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

.wh-faq-a {
  display: none;
  gap: 12px;
  padding: 0 8px 24px 44px;
}

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

.wh-faq-a .wh-faq-badge {
  background: #F5F7FA;
  color: #57575C;
  border: 1px solid #DBDFE8;
}

.wh-faq-ans {
  flex: 1;
  min-width: 0;
}

.wh-faq-name {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #57575C;
}

.wh-faq-name.is-ai {
  color: #1A73E8;
}

.wh-faq-ans p {
  margin: 0;
  font-size: 15px;
  line-height: 26px;
  color: #57575C;
}

/* ============================================================
   响应式（与站场作业页一致的 1280 / 768 / 480 三个断点）
   ============================================================ */
@media (max-width: 1280px) {
  .lct-banner-warehouse {
    min-height: 500px;
    padding: 70px 0 24px;
  }

  .lct-banner-warehouse .banner-values {
    grid-template-columns: repeat(2, 1fr);
  }

  .pain-grid-warehouse {
    grid-template-columns: repeat(3, 1fr);
  }

  .adv-grid-warehouse {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

@media (max-width: 768px) {
  .lct-banner-warehouse {
    min-height: auto;
    padding: 56px 0 64px;
  }

  .lct-banner-warehouse .banner-values {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .pain-grid-warehouse {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 28px;
  }

  .pain-grid-warehouse .pain-card {
    min-height: auto;
    padding: 24px 18px;
  }

  .pain-grid-warehouse .pain-card h3 {
    font-size: 15px;
  }

  .pain-grid-warehouse .pain-no {
    font-size: 14px;
  }

  /* 手机端痛点卡：图标左、标题右水平排布 */
  .pain-grid-warehouse .pain-card {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 16px;
  }

  .pain-grid-warehouse .pain-icon {
    flex: 0 0 auto;
    margin-bottom: 0;
  }

  .pain-grid-warehouse .pain-card h3 {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
  }

  .pain-grid-warehouse .pain-no {
    flex: 0 0 100%;
    margin-top: 12px;
  }

  .lct-intro-warehouse {
    padding: 48px 0 56px;
  }

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

  .adv-grid-warehouse {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  .adv-grid-warehouse .adv-card {
    min-height: 96px;
  }

  .lct-function-warehouse {
    padding: 48px 0 32px;
  }

  .wh-func-cat,
  .wh-func-basic .wh-func-cat {
    height: 120px;
  }

  .wh-func-cat-label {
    font-size: 16px;
  }

  .wh-func-grid,
  .wh-func-basic {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 36px;
  }

  .wh-func-head h3 {
    font-size: 16px;
  }

  .wh-func-card p {
    font-size: 14px;
    line-height: 26px;
  }

  .case-faq-wrap .wh-case-section,
  .wh-case-section,
  .wh-faq-section {
    padding: 48px 0 56px;
  }

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

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

  .pain-grid-warehouse {
    grid-template-columns: 1fr;
  }

  .adv-grid-warehouse .adv-card {
    flex-direction: row;
    min-height: 92px;
  }
}