/* ============================================================
   spare-parts-joint-reserve.css - 备品备件联备联储 产品页
   基于 Figma「数字化联储联备协同平台」#1583:5675 设计还原
   （图片 / 图标均为 Figma 原始导出素材，存放于
     assets/images/spare-parts-joint-reserve/）
   - 复用 tank-container-storage.css 的
     .lct-banner / .pain-grid / .intro-layout / .lct-advantage /
     .adv-grid / .section-title / .banner-values 等通用基础类，
     仅追加 / 覆盖本页差异化内容，不另建一套基础样式
   - 响应式断点（1524 / 1280 / 768 / 480）与站内
     station-operation、purchase-sale-transport-integrate 等页面完全一致
   ============================================================ */

/* ============================================================
   Banner（标题 / 描述 / 预约演示 + 底部 6 枚价值卡）
   ============================================================ */
.lct-banner-sp {
  height: auto;
  min-height: 620px;
  padding: 70px 0 35px;
  /* Figma #1583:5679：1916x484 区域拉伸铺满（scaleMode=STRETCH） */
  background: url('../assets/images/spare-parts-joint-reserve/banner-bg.webp') center center / 100% 100% no-repeat;
}

.lct-banner-sp .banner-mask {
  height: 100% !important;
  background: linear-gradient(90deg, rgba(31, 31, 31, 0.62) 0%, rgba(31, 31, 31, 0.45) 45%, rgba(31, 31, 31, 0) 100%);
}

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

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

.lct-banner-sp .banner-content h1 {
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.lct-banner-sp .banner-content p {
  max-width: 678px;
  margin-bottom: 32px;
  line-height: 1.8;
  text-align: justify;
}

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

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

.lct-banner-sp .banner-values {
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 100%;
  margin: auto 0 0;
  align-self: stretch;
}

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

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

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

/* ============================================================
   行业背景：5 张痛点卡（5 列单行，Figma y1166）
   ============================================================ */
.sp-industry {
  padding: 60px 0 60px;
  background: #fff;
}

.sp-industry .industry-lead {
  margin: 0 auto;
  text-align: justify;
}

.sp-pain-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.sp-pain-grid .pain-card {
  min-height: 436px;
  padding: 40px;
}

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

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

.sp-pain-grid .pain-card p {
  font-size: 16px;
  font-weight: 300;
  line-height: 26px;
  flex: 1;
  text-align: justify;
}

.sp-pain-grid .pain-card p strong {
  font-weight: 600;
}

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

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

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

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

.sp-intro-layout {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: auto;
  padding: 0;
}

.sp-intro-layout .intro-text-col {
  flex: 1 1 auto;
  max-width: 707px;
}

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

.sp-intro-layout .intro-figure-col {
  flex: 0 0 512px;
  max-width: 512px;
}

/* ============================================================
   产品优势：整幅底图 + 黑色遮罩 + 5 张白字卡（3 + 2）
   ============================================================ */
.lct-advantage-sp {
  background-image: url('../assets/images/spare-parts-joint-reserve/advantage-bg.webp');
  background-size: cover;
  background-position: center;
}

.sp-adv-grid {
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

/* Figma #1583:5774：首行 3 张 486x138（左右内边距 32），次行 2 张 741x138（左右内边距 40） */
.sp-adv-grid .adv-card {
  grid-column: span 2;
  min-height: 138px;
  padding: 0 32px;
  gap: 0;
}

.sp-adv-grid .adv-card:nth-child(4),
.sp-adv-grid .adv-card:nth-child(5) {
  grid-column: span 3;
  padding: 0 40px;
}

/* Figma 中第 2/3 张卡的内文区为 444/430 宽（文字区约 388），右侧仅留约 16px */
.sp-adv-grid .adv-card:nth-child(2),
.sp-adv-grid .adv-card:nth-child(3) {
  padding-right: 16px;
}

/* 卡片内容整体垂直居中，图标与文字块顶部对齐 */
.sp-adv-grid .adv-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.sp-adv-grid .adv-card .adv-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
}

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

.sp-adv-grid .adv-text {
  flex: 1;
  min-width: 0;
  gap: 0;
}

/* Figma：标题独立成行（行高 26），描述另起一行（行高 30） */
.sp-adv-grid .adv-card .adv-text h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 26px;
}

.sp-adv-grid .adv-card .adv-text p {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 30px;
  color: #FFFFFF;
}

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

/* ============================================================
   核心功能：8 个模块（01-05 单列，06/07 并排，08 单列）
   ============================================================ */
.lct-function-sp {
  padding: 70px 0 40px;
  background: #fff;
}

.sp-func-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sp-func-mod {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: #F5F7FA;
  border: 1px solid #DBDFE8;
  border-radius: 8px;
}

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

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

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

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

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

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

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

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

.sp-func-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.sp-func-pair {
  display: grid;
  grid-template-columns: 754fr 730fr;
  gap: 16px;
  align-items: start;
}

/* 06/07 两个模块内部为单列纵向卡片（与 Figma 一致） */
.sp-func-pair .sp-func-grid {
  grid-template-columns: 1fr;
}

.sp-func-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 32px;
  background: #FFFFFF;
  border-radius: 8px;
}

.sp-func-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 34px;
}

.sp-func-icon img {
  display: block;
  width: 18px;
  height: 34px;
  object-fit: contain;
}

.sp-func-text {
  flex: 1;
  min-width: 0;
}

.sp-func-text h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 25.1px;
  color: #57575C;
}

.sp-func-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-func-points li {
  position: relative;
  padding-left: 18px;
  font-size: 16px;
  font-weight: 300;
  line-height: 25.1px;
  color: #57575C;
  text-align: justify;
}

.sp-func-points li::before {
  content: "◇";
  position: absolute;
  left: 0;
  top: 0;
  color: #57575C;
}

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

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

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

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

/* 加载中 / 空数据 / 接口报错 提示 */
.sp-status {
  display: none;
  padding: 48px 16px;
  text-align: center;
  color: #93959D;
  font-size: 15px;
}

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

/* ---------- 客户案例卡片（JS 渲染，class 与 Figma 结构对应） ---------- */
.sp-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

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

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

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

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

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

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

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

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

/* ---------- FAQ 问答（JS 渲染，点击展开/收起） ---------- */
.sp-faq-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

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

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

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

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

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

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

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

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

.sp-faq-name {
  font-weight: 700;
  color: #57575C;
}

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

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

/* ============================================================
   响应式（1524 / 1280 / 768 / 480，与站内页面保持同一套适配逻辑）
   ============================================================ */
@media (max-width: 1524px) and (min-width: 1025px) {
  .lct-banner-sp {
    min-height: auto;
    padding: 56px 0 80px;
    background-size: cover;
  }

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

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

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

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

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

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

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

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

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

  .sp-pain-grid .pain-card {
    min-height: 380px;
  }

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

  .sp-adv-grid .adv-card,
  .sp-adv-grid .adv-card:nth-child(4),
  .sp-adv-grid .adv-card:nth-child(5) {
    grid-column: auto;
    padding: 0 32px;
  }

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

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

  .sp-func-pair {
    grid-template-columns: 1fr;
  }
}

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

  .lct-banner-sp .banner-content h1 {
    margin-bottom: 16px;
    font-size: 28px;
  }

  .lct-banner-sp .banner-content p {
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.75;
  }

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

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

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

  .lct-banner-sp .value-card span {
    font-size: 14px;
    white-space: normal;
  }

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

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

  .sp-pain-grid .pain-card {
    min-height: auto;
    padding: 24px 18px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 16px;
  }

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

  .sp-pain-grid .pain-card p {
    flex: 0 0 100%;
    margin: 12px 0 16px;
    font-size: 14px;
    line-height: 24px;
  }

  .sp-pain-grid .pain-no {
    flex: 0 0 100%;
    margin-top: 0;
  }

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

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

  /* ---------- 产品优势 ---------- */
  .sp-adv-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sp-adv-grid .adv-card,
  .sp-adv-grid .adv-card:nth-child(2),
  .sp-adv-grid .adv-card:nth-child(3),
  .sp-adv-grid .adv-card:nth-child(4),
  .sp-adv-grid .adv-card:nth-child(5) {
    min-height: 96px;
    padding: 16px 20px;
  }

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

  .sp-adv-grid .adv-card .adv-text p {
    font-size: 14px;
    line-height: 26px;
  }

  /* ---------- 核心功能 ---------- */
  .lct-function-sp {
    padding: 48px 0 32px;
  }

  .sp-func-stack {
    gap: 16px;
  }

  .sp-func-mod {
    padding: 20px;
  }

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

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

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

  .sp-func-desc {
    padding: 20px;
  }

  .sp-func-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sp-func-card {
    padding: 16px 20px;
    gap: 12px;
  }

  .sp-func-desc p,
  .sp-func-text h4,
  .sp-func-points li {
    font-size: 14px;
    line-height: 26px;
  }

  .sp-func-icon,
  .sp-func-icon img {
    width: 14px;
    height: 26px;
  }

  .sp-func-points li {
    padding-left: 16px;
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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