/* ============================================================
   Agent物流智能体页面
   仅作用于 agent.html 的 main 内部；响应式断点与全站一致
   （1200 / 992 / 768 / 480），容器沿用全站 .container 规范
   ============================================================ */

.agent-page {
  background: #fff;
}

/* -------------------- Banner -------------------- */
.agent-hero {
  background-color: #EAF1FA;
  background-image: url('../assets/images/agent/agent-hero.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.agent-hero-inner {
  display: flex;
  align-items: center;
  min-height: 485px;
  box-sizing: border-box;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Banner 内的 11 个能力锚点 */
.agent-anchor {
  display: flex;
  gap: clamp(48px, 8vw, 150px);
}

.agent-anchor-col {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.agent-anchor a {
  display: inline-block;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: #57575C;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.agent-anchor a:hover {
  color: #DA0029;
}

/* Banner 下方的双色装饰条 */
.agent-strip span {
  display: block;
  height: 5px;
}

.agent-strip-red {
  background: #DA0029;
}

.agent-strip-pink {
  background: #EF93A4;
}

/* -------------------- 行业概述 -------------------- */
.agent-overview {
  padding: 88px 0 8px;
}

.agent-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 48px;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: #57575C;
}

.agent-title-arrow {
  width: 150px;
  height: 10px;
  flex: none;
}

.agent-overview-text p {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 30px;
  color: #000000;
  text-align: justify;
}

/* -------------------- 17 张能力卡片 -------------------- */
.agent-cards {
  padding: 56px 0 96px;
}

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

.agent-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: #F5F7FA;
  border: 1px solid #DBDFE8;
  border-radius: 8px;
  box-sizing: border-box;
  scroll-margin-top: 96px;
}

.agent-card--wide {
  grid-column: 1 / -1;
}

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

.agent-card-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.agent-card-icon {
  width: 32px;
  height: 28px;
  flex: none;
}

.agent-card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  color: #57575C;
}

.agent-card-no {
  flex: none;
  font-size: 14px;
  font-weight: 350;
  line-height: 22px;
  color: #57575C;
}

/* 卡片内的说明区块 */
.agent-card-desc {
  padding: 24px 32px;
  background: #fff;
  border-radius: 8px;
}

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

.agent-block {
  display: flex;
  gap: 16px;
  padding: 16px 32px;
  background: #fff;
}

.agent-block-icon {
  width: 18px;
  height: 34px;
  flex: none;
}

.agent-block-body {
  flex: 1 1 auto;
  min-width: 0;
}

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

.agent-line {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 26px;
  color: #57575C;
  text-align: justify;
}

/* 应用案例三级标题：圆点 + 名称独立成行，不与说明文字合并 */
.agent-case-title {
  margin: 8px 0 2px;
  font-weight: 600;
}

/* 17 AI RPA流程机器人：典型应用场景 / 应用案例 左右两栏排列 */
@media (min-width: 993px) {
  #agent-17 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "head head"
      "desc desc"
      "scene case";
  }

  #agent-17 .agent-card-head { grid-area: head; }
  #agent-17 .agent-card-desc { grid-area: desc; }
  #agent-17 .agent-scene { grid-area: scene; }
  #agent-17 .agent-case { grid-area: case; }
}

/* -------------------- 响应式 -------------------- */
@media (max-width: 1200px) {
  .agent-hero-inner {
    min-height: 420px;
  }

  .agent-anchor {
    gap: 40px;
  }

  .agent-anchor-col {
    gap: 48px;
  }

  .agent-anchor a {
    font-size: 16px;
  }

  .agent-card {
    padding: 24px;
  }

  .agent-card-desc {
    padding: 20px 24px;
  }

  .agent-block {
    padding: 12px 24px;
  }
}

@media (max-width: 992px) {
  .agent-hero-inner {
    min-height: 360px;
  }

  .agent-anchor {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 32px 48px;
  }

  .agent-anchor-col {
    gap: 24px;
  }

  .agent-grid {
    grid-template-columns: 1fr;
  }

  .agent-section-title {
    gap: 10px;
    font-size: 22px;
  }

  .agent-title-arrow {
    width: 100px;
  }
}

@media (max-width: 768px) {
  /* 与全站参考页 station-operation 手机端一致：正文 100% + 24px 边距，Banner 89% + 24px 内边距 */
  .agent-page .content-wrapper:not(.banner-content) {
    width: 100%;
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
  }

  .agent-page .content-wrapper.banner-content {
    padding-left: 24px;
    padding-right: 24px;
  }

  .agent-hero {
    background-position: right bottom;
    background-size: cover;
  }

  .agent-hero-inner {
    min-height: 0;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .agent-anchor a {
    font-size: 16px;
    line-height: 24px;
  }

  .agent-anchor-col {
    gap: 20px;
  }

  .agent-overview {
    padding-top: 48px;
  }

  .agent-section-title {
    margin-bottom: 28px;
  }

  .agent-title-arrow {
    display: none;
  }

  .agent-overview-text p {
    font-size: 15px;
    line-height: 28px;
  }

  .agent-cards {
    padding: 32px 0 56px;
  }

  .agent-card {
    padding: 24px;
    gap: 16px;
  }

  .agent-card-title {
    font-size: 16px;
  }

  .agent-card-desc {
    padding: 16px;
  }

  .agent-card-desc p {
    font-size: 15px;
    line-height: 28px;
  }

  .agent-block {
    padding: 16px;
    gap: 10px;
  }

  .agent-block-icon {
    width: 14px;
    height: 26px;
  }

  .agent-block-title {
    font-size: 15px;
  }

  .agent-line {
    font-size: 15px;
    line-height: 26px;
  }
}

@media (max-width: 480px) {
  .agent-anchor {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .agent-card-head,
  .agent-card-heading {
    gap: 12px;
  }
}

/* 手机端（≤768px）：Banner 高度随屏宽等比缩小，背景图居中显示 */
@media (max-width: 768px) {
  .agent-page .agent-hero.agent-hero {
    background-position: center center;
  }

  .agent-page .agent-hero.agent-hero .agent-hero-inner {
    min-height: clamp(300px, 92vw, 380px);
  }
}
