.hero-visual,
.factory-panel,
.about-photo {
  background-size: cover;
  background-position: center;
}

.photo-haitian {
  background-image: none;
}

.hero {
  position: relative;
  min-height: 710px;
  background-color: #eaf2f5;
  background-image:
    linear-gradient(90deg, #eaf2f5 0%, #eaf2f5 35%, rgba(234, 242, 245, .97) 45%, rgba(234, 242, 245, .76) 59%, rgba(234, 242, 245, .15) 78%, rgba(234, 242, 245, 0) 100%),
    url('assets/factory/haitian-clean.jpg');
  background-repeat: no-repeat;
  background-position: center, right center;
  background-size: cover, auto 100%;
}

.hero::after {
  content: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 710px;
  grid-template-columns: 1.03fr .97fr;
}

.hero-copy {
  max-width: 660px;
  padding: 50px 0;
}

.hero h1 {
  max-width: 650px;
  font-size: clamp(48px, 4.2vw, 68px);
  letter-spacing: -2px;
}

.hero .lead {
  max-width: 590px;
  color: #415560;
  font-size: 18px;
}

.hero-visual {
  min-height: 560px;
  padding: 0;
  background: none;
  box-shadow: none;
}

.hero-visual .visual-label {
  position: absolute;
  right: 0;
  bottom: 48px;
  min-width: 250px;
  padding: 16px 20px;
  border-left: 3px solid #12a9c6;
  background: linear-gradient(90deg, rgba(7, 34, 50, .68), rgba(7, 34, 50, .08));
  text-shadow: 0 2px 8px rgba(0, 0, 0, .38);
}

.hero-visual .visual-label strong {
  font-size: 24px;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    background-image:
      linear-gradient(90deg, rgba(234, 242, 245, .98), rgba(234, 242, 245, .9)),
      url('assets/factory/haitian-clean.jpg');
    background-position: center;
    background-size: cover;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 720px;
    padding: 45px 0 15px;
  }

  .hero-visual {
    min-height: 180px;
  }

  .hero-visual .visual-label {
    right: auto;
    bottom: 25px;
    left: 0;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 38px;
    letter-spacing: -1px;
  }

  .hero-visual {
    min-height: 145px;
  }

  .hero-visual .visual-label {
    min-width: 230px;
    padding: 15px 18px;
  }
}

.photo-jetmaster {
  background-image: linear-gradient(145deg, rgba(9, 57, 83, .02), rgba(6, 32, 48, .73)), url('assets/factory/jetmaster-clean.jpg');
}

.photo-operator {
  background-image: linear-gradient(145deg, rgba(9, 57, 83, .02), rgba(6, 32, 48, .76)), url('assets/factory/chenhsong-operator-clean.jpg');
}

.factory-gallery {
  background: #fff;
}

.delivery-section {
  background: #fff;
}

.delivery-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 60px;
  align-items: center;
}

.delivery-photo {
  margin: 0;
  padding: 10px;
  background: #f4f7f8;
  box-shadow: 18px 18px 0 rgba(14, 77, 120, .08);
}

.delivery-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.delivery-photo figcaption {
  padding: 10px 4px 2px;
  color: #65717a;
  text-align: center;
  font-size: 13px;
}

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

.gallery-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #102b3a;
}

.gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.025);
}

.gallery-grid figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 28px 20px 14px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(transparent, rgba(6, 32, 48, .88));
}

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

.phone-toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  z-index: 50;
  padding: 12px 20px;
  color: #fff;
  background: rgba(7, 34, 50, .94);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .2s ease, transform .2s ease;
}

.phone-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.phone-dialog {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 20px;
}

.phone-dialog.open {
  display: grid;
}

.phone-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 34, 50, .62);
  backdrop-filter: blur(3px);
}

.phone-dialog-card {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  padding: 34px;
  color: #14212b;
  text-align: center;
  background: #fff;
  border-top: 4px solid #f47d2a;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .26);
}

.phone-dialog-card small {
  color: #12a9c6;
  letter-spacing: 2px;
  font-weight: 700;
}

.phone-dialog-card h2 {
  margin: 8px 0 4px;
}

.phone-dialog-number {
  display: block;
  color: #0e4d78;
  font-size: 34px;
  font-weight: 800;
}

.phone-dialog-card p {
  color: #65717a;
}

.phone-dialog-close {
  position: absolute;
  top: 8px;
  right: 12px;
  color: #65717a;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.phone-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.phone-dialog-actions button,
.phone-dialog-actions a {
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 1px solid #0e4d78;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.phone-dialog-actions button {
  color: #0e4d78;
  background: #fff;
}

.phone-dialog-actions a {
  color: #fff;
  background: #0e4d78;
}

.equipment-specs {
  background: #f4f7f8;
}

.equipment-specs-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.equipment-list {
  border-top: 1px solid #dce4e8;
}

.equipment-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid #dce4e8;
}

.equipment-list span,
.spec-note {
  color: #65717a;
}

.spec-note {
  margin-top: 20px;
  font-size: 13px;
}

.spec-image {
  margin: 0;
  padding: 10px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(20, 54, 74, .12);
}

.spec-image img {
  display: block;
  width: 100%;
  height: auto;
}

.spec-image figcaption {
  padding: 10px 4px 2px;
  color: #65717a;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 900px) {
  .equipment-specs-grid {
    grid-template-columns: 1fr;
  }
}

.wechat-qr {
  position: absolute;
  top: 22px;
  right: 24px;
  display: block;
  width: 132px;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
  border: 6px solid #fff;
  box-shadow: 0 0 0 1px #dce4e8, 0 8px 20px rgba(20, 54, 74, .12);
}

.wechat-qr img {
  position: absolute;
  top: -148%;
  left: 50%;
  width: 195%;
  max-width: none;
  transform: translateX(-50%);
}

.contact-card .wechat-tip {
  margin-top: 8px;
  color: #0e6880;
}

@media (max-width: 560px) {
  .wechat-qr {
    top: 82px;
    right: auto;
    left: 25px;
  }
}

.contact-float {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 30;
  display: grid;
  gap: 8px;
  transform: translateY(-50%);
}

.contact-float-item {
  display: flex;
  align-items: center;
  width: 142px;
  min-height: 48px;
  padding: 6px 14px 6px 7px;
  color: #fff;
  border-radius: 25px 0 0 25px;
  box-shadow: 0 10px 24px rgba(7, 34, 50, .18);
  transition: width .2s ease, filter .2s ease;
}

.contact-float-item:hover {
  width: 152px;
  filter: brightness(1.06);
}

.contact-float-item span {
  display: grid;
  place-items: center;
  flex: 0 0 35px;
  height: 35px;
  margin-right: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  font-weight: 800;
}

.contact-float-item strong {
  white-space: nowrap;
  font-size: 14px;
}

.phone-float {
  background: #f47d2a;
}

.wechat-float {
  background: #08a84f;
}

@media (max-width: 700px) {
  .contact-float {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: 1fr 1fr;
    transform: none;
  }

  .contact-float-item,
  .contact-float-item:hover {
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 6px 12px;
    border-radius: 8px;
  }

  .contact-float-item span {
    flex-basis: 32px;
    height: 32px;
  }
}

.mold-capability {
  background: #102b3a;
  color: #fff;
}

.mold-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
}

.mold-photo img,
.office-card img {
  display: block;
  width: 100%;
  height: auto;
}

.mold-photo {
  padding: 10px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 18px 18px 0 rgba(255, 255, 255, .05);
}

.mold-capability .about-copy,
.mold-capability .section-title span {
  color: #bed0d9;
}

.credentials {
  background: #fff;
}

.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.office-card,
.license-card {
  margin: 0;
  padding: 10px;
  background: #f4f7f8;
  box-shadow: 0 16px 40px rgba(20, 54, 74, .1);
}

.office-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.license-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e9edf0;
}

.license-frame img {
  position: absolute;
  top: 50%;
  left: 43%;
  width: 75%;
  max-width: none;
  transform: translate(-50%, -50%) rotate(-90deg) scale(.95);
  transform-origin: center;
}

.office-card figcaption,
.license-card figcaption {
  padding: 12px 6px 4px;
  color: #65717a;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 900px) {
  .mold-grid,
  .credentials-grid,
  .delivery-grid {
    grid-template-columns: 1fr;
  }
}
