/* =========================================================
   贝福特官网 · 关于我们页专属样式
   依赖：先加载 /style.css（设计变量与公共 Hero/导航）
   注意：url() 相对本文件位于 css/，需使用 ../images/
   ========================================================= */

.about-hero {
  background-image:
    linear-gradient(rgba(11, 33, 56, 0.4), rgba(11, 33, 56, 0.4)),
    url("../images/about-banner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 窄屏：按 12:5 完整展示 Banner，文案落在图下（覆盖 desktop cover） */
@media (max-width: 900px) {
  .about-hero {
    height: auto;
    min-height: 0;
    padding-top: calc(100% * 5 / 12);
    background-color: var(--navy);
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
  }

  .about-hero .hero-inner {
    width: 100%;
    box-sizing: border-box;
    background-color: var(--navy);
  }
}

/* ---------- About ---------- */

.about-section {
  width: 100%;
  padding: 12px 0 8px;
}

.about-heading {
  margin: 28px 0 36px;
  text-align: center;
}

.about-heading span {
  color: var(--blue);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.18em;
}

.about-heading h2 {
  margin: 10px 0 14px;
  color: var(--navy);
  font-size: var(--fs-h2);
}

.about-heading::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin: 0 auto;
  background: var(--blue);
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.about-gallery figure {
  margin: 0;
  overflow: hidden;
  background: var(--light);
  border: 1px solid var(--line);
}

/* 源图 1:1；展示 4:3 居中裁切，三图尺寸统一、避免过高 */
.about-gallery img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.45s ease;
}

.about-gallery figure:hover img {
  transform: scale(1.03);
}

.about-gallery figcaption {
  padding: 14px 16px;
  background: var(--light);
  color: var(--navy);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

.about-text {
  margin: 36px 0 28px;
  padding: 28px 32px;
  background: var(--light);
  border-left: 3px solid var(--blue);
}

.about-text h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.4;
}

.about-text p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.95;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-description {
  margin: 0 0 48px;
  padding: 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 2;
  text-align: justify;
  white-space: pre-line;
  overflow-wrap: break-word;
}

.about-map {
  margin-bottom: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.about-map iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.map-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  background: var(--light);
}

.map-info h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 18px;
}

.map-info p {
  margin: 0;
  color: var(--text-secondary);
}

.map-address {
  flex: 1;
}

.map-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.map-buttons .btn {
  white-space: nowrap;
}

.map-buttons a:last-child {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.map-buttons a:last-child:hover {
  background: var(--blue);
  color: var(--white);
}

@media (max-width: 900px) {
  .about-gallery {
    gap: 14px;
  }

  .about-text {
    padding: 22px;
  }

  .about-map iframe {
    height: 340px;
  }
}

@media (max-width: 520px) {
  .about-gallery {
    grid-template-columns: 1fr;
  }

  .about-heading {
    margin: 18px 0 24px;
  }

  .about-heading h2 {
    font-size: 24px;
  }

  .about-text {
    margin: 24px 0 20px;
    padding: 18px;
  }

  .about-text h3 {
    font-size: 18px;
  }

  .about-description {
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.85;
  }

  .about-map iframe {
    height: 280px;
  }

  .map-info {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }

  .map-buttons {
    width: 100%;
    gap: 10px;
  }

  .map-buttons .btn {
    flex: 1;
    padding: 12px 10px;
    font-size: 13px;
  }

  .map-address p {
    font-size: 14px;
    line-height: 1.75;
  }
}
