/* ============================================================
   product-rpa-robot.css - RPA流程机器人 产品页专属样式
   基于 Figma #1382:6666 设计还原
   - 本页 CSS 自包含（页面仅引入本文件 + 全局资源）
   - 复用站场/罐箱页的 .section-title / .lct-banner / .pain-grid /
     .lct-advantage / .adv-grid / .section-title-light 等基础类定义，
     类名结构保持全站统一，仅本页差异化细节在此覆盖
   - 响应式断点：1280 / 768 / 480，与站场/仓库页一致
   ============================================================ */

/* ============================================================
   通用区块标题（装饰线 + 圆点）
   ============================================================ */
.lct-section {
  padding: 70px 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 44px;
}

.section-title h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: 2px;
  white-space: nowrap;
}

.title-deco {
  position: relative;
  width: 170px;
  height: 10px;
}

.title-deco::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
  background: var(--color-primary);
  opacity: 0.85;
}

.title-deco::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  transform: translateY(-50%);
}

.deco-left::before {
  background: linear-gradient(90deg, #dbdfe800, var(--color-primary));
}

.deco-left::after {
  right: 0;
}

.deco-right::before {
  background: linear-gradient(90deg, var(--color-primary), #dbdfe800);
}

.deco-right::after {
  left: 0;
}

/* ============================================================
   Banner
   ============================================================ */
.lct-banner {
  position: relative;
  height: 620px;
  background: #1f1f1f center center / cover no-repeat;
}

.rpa-banner {
  background: url('../../assets/images/product-rpa-robot/banner-bg-72cf0a.webp') center center / cover no-repeat;
}

/* Banner 文案位置对齐 station-operation.html：内容区 89% + 同款左右内边距
   仅作用于 banner 内的 content-wrapper，不影响本页其他模块与其他页面
   注：重复 .content-wrapper 用于覆盖 common-layout.css 中 83% 标准容器的更高优先级规则 */
.lct-banner.rpa-banner .content-wrapper.content-wrapper.content-wrapper {
  width: 89%;
  max-width: 89%;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(24px, 5vw, 90px);
  padding-right: clamp(24px, 5vw, 90px);
  position: relative;
}

@media (min-width: 1525px) {
  .lct-banner.rpa-banner .content-wrapper {
    top: -81px;
  }
}

@media (min-width: 1281px) and (max-width: 1524px) {
  .lct-banner.rpa-banner .content-wrapper {
    top: -85px;
  }
}

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

/* Banner 内容区：沿用上方统一的 90% */

.banner-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(31, 31, 31, 0.7) 0%, rgba(31, 31, 31, 0.7) 17%, rgba(31, 31, 31, 0) 100%);
}

.banner-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 85px;
}

.banner-content h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 54px;
  color: #fff;
  margin-bottom: 17px;
  max-width: 760px;
}

.banner-content p {
  max-width: 870px;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
  margin-bottom: 23px;
  opacity: 0.92;
  text-align: justify;
}

.banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 22px 8px 24px;
  height: 42px;
  background: var(--color-accent-orange);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  border-radius: 6px;
  transition: background 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

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

.banner-btn:hover {
  background: #ac0d2a;
}

/* 底部红粉双条：Figma 位于 Banner 下边缘（570.55 / 575.55） */
.banner-strip {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
  z-index: 2;
}

.strip-red {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: #DA0029;
}

.strip-pink {
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 5px;
  background: #EF93A4;
}

/* 特性条：Figma 位于 Banner 内、红粉条上方 35px，6 项横排（每项 254×72）
   整体宽度与 main 内容区一致（var(--max-width) 版心 + 同等的左右内边距），
   随各断点自适应，不再写死 1604px */
.feature-strip {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 35px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  width: var(--max-width);
  padding: 0 var(--container-padding);
}

.feature-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  min-height: 72px;
  background: var(--color-bg-section);
  border-radius: 8px;
}

.feature-item img {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.feature-text {
  display: block;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.feature-text span {
  font-size: 16px;
  line-height: 24px;
  color: var(--color-dark-text);
  white-space: normal;
}

/* ============================================================
   行业背景
   ============================================================ */
.lct-industry {
  padding: 40px 0 63px;
  background: #fff;
}

.lct-industry .section-title {
  margin-bottom: 32px;
}

.industry-lead {
  margin: 0 auto 32px;
  max-width: 1504px;
  font-size: 16px;
  line-height: 32px;
  color: var(--color-text);
  text-align: justify;
}

.industry-subtitle {
  margin: 0 0 46px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 1px;
}

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

.pain-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-section);
  border-radius: 8px;
  padding: 40px;
  min-height: 304px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.pain-icon {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

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

.pain-text {
  margin: 0;
  font-size: 16px;
  line-height: 30px;
  color: var(--color-text);
  flex: 1;
}

.pain-text strong {
  font-weight: 600;
}

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

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

/* ============================================================
   产品介绍（浅灰底 左文右图）
   ============================================================ */
.lct-intro {
  padding: 43px 0 21px;
  background: #E9EEF3;
}

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

.intro-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 73px;
  max-width: 1333px;
  margin: 0 auto;
}

.intro-desc {
  flex: 1 1 auto;
  max-width: 707px;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  line-height: 32px;
  color: var(--color-text);
  text-align: justify;
}

.intro-figure {
  flex: 0 0 auto;
}

.intro-figure img {
  display: block;
  width: 512px;
  max-width: 100%;
  height: 279px;
  object-fit: cover;
}

/* ============================================================
   产品优势（深色底，6 卡 3 列 × 2 行）
   ============================================================ */
.section-title-light h2 {
  color: #fff;
}

.section-title-light .title-deco::before,
.section-title-light .title-deco::after {
  background-color: #fff;
  opacity: 0.9;
}

.section-title-light .deco-left::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffffff);
}

.section-title-light .deco-right::before {
  background: linear-gradient(90deg, #fff, #dbdfe800);
}

.lct-advantage {
  position: relative;
  padding: 117px 0 118px;
  background: url('../../assets/images/product-rpa-robot/advantage-bg-31a7b0.webp') center center / cover no-repeat;
}

.lct-advantage .section-title {
  margin-bottom: 48px;
}

.lct-advantage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(31, 31, 31, 0.6);
}

.lct-advantage .content-wrapper {
  position: relative;
  z-index: 1;
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.adv-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 40px;
  background: rgba(87, 87, 92, 0.5);
  border: 1px solid #93959D;
  border-radius: 8px;
  min-height: 108px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.adv-card:hover {
  background: rgba(87, 87, 92, 0.7);
  transform: translateY(-2px);
}

.adv-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.adv-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

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

.adv-text p {
  margin: 0;
  font-size: 16px;
  line-height: 26px;
  color: #fff;
}

.adv-text p strong {
  font-weight: 600;
}

/* ============================================================
   RPA应用场景（Figma 1382:6666 / 1390:5062）
   - 两列不等高：左列 示意图 → 02 业务流程 → 04 合规 → 06 人力 → 示意图
   - 右列 01 构系统互联 → 03 数据运营 → 05 客户体验
   - 列宽 742.66、列间距 16，卡片内边距 32、内部间距 16
   ============================================================ */
.lct-scene {
  padding: 50px 0 54px;
  background: #fff;
}

/* 核心功能区内容宽：沿用 90%（与 station-operation 一致） */

.lct-scene .section-title {
  margin-bottom: 53px;
}

.scene-columns {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

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

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

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

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

.scene-title .scene-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

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

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

.scene-desc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 32px;
  background: #FFFFFF;
  border-radius: 8px;
}

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

/* 功能点列表：Figma 中 6 张卡的功能点容器均为白色块
   （padding 10 32、内部 gap 16、圆角 8） */
.scene-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 10px 32px;
  background: #FFFFFF;
  border-radius: 8px;
}

.scene-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.scene-bullet {
  flex: 0 0 auto;
  width: 18px;
  height: 34px;
  object-fit: contain;
}

.scene-feature-text {
  flex: 1;
  min-width: 0;
}

/* Figma：加粗小标题（16/600）与正文（16/300）同处一段，行高 30 */
.scene-feature-text {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 30px;
  color: #57575C;
  text-align: justify;
}

.scene-feature-text strong {
  font-weight: 600;
}

/* 示意图 1：741×347 外框（#F5F7FA 底 + 1px #DBDFE8 边 + 14px 内边距） */
.scene-visual {
  border: 1px solid #DBDFE8;
  border-radius: 8px;
  overflow: hidden;
  background: #F5F7FA;
  padding: 14px;
}

.scene-visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* 示意图 2：743×209 纯图片，无边框内边距 */
.scene-visual-bottom {
  border: 0;
  padding: 0;
  background: transparent;
  line-height: 0;
}

/* ≥1025：底部示意图高度由脚本计算（顶部保持与上方模块 16px 间距，底部与右列底部对齐），图片等比填充 */
@media (min-width: 1025px) {
  .scene-visual-bottom {
    flex: 0 0 auto;
    overflow: hidden;
  }

  .scene-visual-bottom img {
    height: 100%;
    object-fit: cover;
  }
}

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

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

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

/* FAQ 版心：沿用 90%（与 station-operation 一致） */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ============================================================
   响应式（PC 端 1280 / 768 / 480 三个断点，与站场/仓库页一致）
   ============================================================ */
@media (max-width: 1280px) {
  .lct-banner {
    height: auto;
    min-height: 550px;
    padding: 70px 0 90px;
  }

  .banner-content {
    padding-top: 0;
  }

  .feature-strip {
    position: relative;
    left: auto;
    transform: none;
    /* 复位绝对定位遗留的 bottom，否则特性条会上移压到“预约演示”按钮 */
    bottom: auto;
    z-index: 2;
    grid-template-columns: repeat(3, 1fr);
    /* 与 main 内容区同宽（手机端 768 断点另设 90%，保持原样式） */
    width: var(--max-width);
    margin: 40px auto 0;
  }

  .lct-industry {
    padding: 60px 0 50px;
  }

  .lct-intro {
    padding: 60px 0 70px;
  }

  .lct-advantage {
    padding: 70px 0 80px;
  }

  .lct-scene {
    padding: 60px 0;
  }

  .lct-scene .section-title {
    margin-bottom: 40px;
  }

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

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

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

  .intro-figure {
    align-self: center;
  }
}

@media (max-width: 768px) {
  .page-container {
    overflow-x: hidden;
  }

  .content-wrapper {
    padding: 0 16px;
  }

  .rpa-banner .content-wrapper,
  .lct-scene .content-wrapper {
    padding: 0 16px;
  }

  .section-title {
    gap: 12px;
    margin-bottom: 32px;
  }

  .section-title h2 {
    font-size: 20px;
  }

  .title-deco {
    width: 80px;
  }

  /* Banner */
  .lct-banner {
    min-height: auto;
    padding: 56px 0 80px;
  }

  .banner-content {
    justify-content: center;
    align-items: flex-start;
  }

  .banner-content h1 {
    font-size: 24px;
    /* 与 station-operation 手机端一致：行高随字号，避免单行标题上下留白过多 */
    line-height: 1.6;
    margin-bottom: 16px;
  }

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

  .banner-btn {
    height: 40px;
    font-size: 15px;
  }

  .feature-strip {
    grid-template-columns: repeat(2, 1fr);
    width: 90%;
    /* 与 768 断点的 .content-wrapper 16px 内边距保持一致 */
    padding: 0 16px;
  }

  /* 「预约演示」按钮 → 底部特性模块：留出与 station-operation 手机端相近的间距
     注：重复 .feature-strip 用于覆盖 banner-unified.css 中 margin-top:auto 的规则 */
  .lct-banner.rpa-banner .feature-strip.feature-strip {
    margin-top: 48px;
  }

  .feature-item {
    padding: 12px 16px;
    min-height: 60px;
    gap: 8px;
  }

  .feature-item img {
    width: 28px;
    height: 28px;
  }

  .feature-text span {
    font-size: 14px;
    white-space: normal;
  }

  /* 行业背景 */
  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .pain-card {
    min-height: auto;
    padding: 20px 18px;
  }

  .pain-icon {
    margin-bottom: 14px;
  }

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

  .pain-text {
    font-size: 14px;
    line-height: 24px;
  }

  .lct-industry {
    padding: 60px 0 0;
  }

  .industry-lead {
    font-size: 14px;
    line-height: 26px;
  }

  .industry-subtitle {
    margin: 28px 0 22px;
    font-size: 15px;
  }

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

  .intro-layout {
    gap: 28px;
  }

  .intro-desc {
    font-size: 14px;
    line-height: 26px;
  }

  .intro-figure img {
    width: 100%;
  }

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

  .adv-card {
    padding: 20px 18px;
    min-height: auto;
    gap: 16px;
  }

  .adv-text p {
    font-size: 15px;
    line-height: 24px;
  }

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

  /* 应用场景：收为单列，按 01 → 06 阅读顺序排列 */
  .scene-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .scene-col {
    display: contents;
  }

  .scene-visual-top {
    order: 1;
  }

  .scene-card[data-scene="01"] {
    order: 2;
  }

  .scene-card[data-scene="02"] {
    order: 3;
  }

  .scene-card[data-scene="03"] {
    order: 4;
  }

  .scene-card[data-scene="04"] {
    order: 5;
  }

  .scene-card[data-scene="05"] {
    order: 6;
  }

  .scene-card[data-scene="06"] {
    order: 7;
  }

  .scene-visual-bottom {
    order: 8;
  }

  .scene-card {
    padding: 20px;
  }

  .scene-desc {
    padding: 20px;
  }

  .scene-features {
    padding: 16px 20px;
    gap: 12px;
  }

  .scene-desc p,
  .scene-feature-text {
    font-size: 14px;
    line-height: 26px;
  }

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

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

@media (max-width: 480px) {
  .pain-grid {
    grid-template-columns: 1fr;
  }

  .banner-content h1 {
    font-size: 22px;
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .adv-card {
    flex-direction: row;
    align-items: center;
    min-height: 92px;
  }
}

/* 1800-769px：主体版心宽度与 station-operation 对齐（83%）；手机端同步加宽至 100% */
@media (min-width: 769px) and (max-width: 1800px) {
  .page-main .content-wrapper {
    max-width: var(--max-width);
  }
}

@media (max-width: 768px) {
  .page-main .content-wrapper {
    max-width: 100%;
  }
}