/* ===== 图片增强样式 ===== */

/* Hero 双栏 */
.hero-with-visual {
  min-height: auto;
  padding-bottom: 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-visual {
  position: relative;
  min-height: 420px;
}
.hero-img-main {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.15);
  border: 4px solid #fff;
}
.hero-img-float {
  position: absolute;
  bottom: -20px;
  left: -24px;
  width: 46%;
  height: 140px;
  object-fit: cover;
  border-radius: 14px;
  border: 3px solid #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}
.hero-img-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-light);
  box-shadow: var(--shadow);
}

/* 首页卡片带图 */
.home-link-card {
  overflow: hidden;
  padding: 0;
}
.home-link-card .card-thumb {
  height: 160px;
  overflow: hidden;
}
.home-link-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.home-link-card:hover .card-thumb img {
  transform: scale(1.06);
}
.home-link-card .card-body {
  padding: 24px 28px 28px;
}

/* 场景画廊 */
.showcase-section {
  background: #fff;
  padding: 80px 0 100px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 16px 14px;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.75));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}
.gallery-item--wide { grid-column: span 2; }
.gallery-item--tall { grid-row: span 2; }

/* 痛点卡片带图 */
.pain-card--img {
  padding: 0;
  overflow: hidden;
}
.pain-card--img .pain-thumb {
  height: 140px;
  overflow: hidden;
}
.pain-card--img .pain-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pain-card--img .pain-body {
  padding: 20px 24px 24px;
}
.pain-card--img .pain-body h3 {
  margin-bottom: 8px;
}

/* 内页 Hero 背景 */
.page-hero--image {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  border-bottom: none;
  overflow: hidden;
}
.page-hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(14, 165, 233, 0.45));
}
.page-hero--image .container {
  position: relative;
  z-index: 1;
}
.page-hero--image h1,
.page-hero--image p,
.page-hero--image .breadcrumb {
  color: #fff;
}
.page-hero--image .breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}
.page-hero--image .gradient-text {
  background: linear-gradient(135deg, #7dd3fc, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
}

.page-hero--wrap { background-image: url("../images/web/hero-wrap.jpg"); }
.page-hero--wash { background-image: url("../images/web/hero-wash.jpg"); }
.page-hero--shop { background-image: url("../images/web/gallery-shop-1.jpg"); }
.page-hero--color { background-image: url("../images/web/gallery-color-1.jpg"); }
.page-hero--contact { background-image: url("../images/web/gallery-shop-2.jpg"); }

/* 功能页真实截图 */
.feature-visual-real {
  position: relative;
}
.feature-screenshot {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  background: #fff;
  transition: opacity 0.25s ease;
}
.feature-screenshot.is-switching {
  opacity: 0.4;
}
.feature-screenshot-caption {
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 图文分栏 */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split-section.reverse {
  direction: rtl;
}
.split-section.reverse > * {
  direction: ltr;
}
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.split-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* 作品条 */
.works-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 48px;
}
.works-strip img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #fff;
  box-shadow: var(--shadow);
}

.dual-devices {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
.contact-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  margin-bottom: 24px;
}
.contact-visual img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* CTA 带背景 */
.cta-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 56px 48px;
  text-align: center;
  color: #fff;
}
.cta-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.85), rgba(99, 102, 241, 0.8));
  z-index: 1;
}
.cta-banner > * {
  position: relative;
  z-index: 2;
}
.cta-banner h2,
.cta-banner p {
  color: #fff;
}
.cta-banner .btn-outline {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.cta-banner .btn-outline:hover {
  background: #fff;
  color: var(--accent-light);
}

@media (max-width: 960px) {
  .hero-grid,
  .split-section {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: auto;
    order: -1;
  }
  .hero-img-float {
    left: auto;
    right: 12px;
    bottom: 12px;
    width: 40%;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .gallery-item--wide,
  .gallery-item--tall {
    grid-column: span 1;
    grid-row: span 1;
  }
  .works-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .dual-devices {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .works-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
