/* 轮播最终修正：将场景图作为独立图片层，确保不会被通用背景规则覆盖。 */
.hero-slide-chansi,
.hero-slide-kongzi {
  background: #e6e1d8;
}

.hero-scene-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide-chansi .hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(230, 225, 216, 0.08) 0%,
    rgba(230, 225, 216, 0.38) 44%,
    rgba(230, 225, 216, 0.92) 100%
  );
}

.hero-slide-kongzi .hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(230, 225, 216, 0.94) 0%,
    rgba(230, 225, 216, 0.62) 38%,
    rgba(230, 225, 216, 0.08) 78%
  );
}

.hero-slide-chansi .hero-content,
.hero-slide-kongzi .hero-content {
  z-index: 2;
}

.hero-slide-ink .hero-content-left {
  z-index: 2;
  left: 12vw;
  color: #fff7e7;
  padding: 0;
  background: transparent;
  border-left: 0;
}

.hero-slide-ink .hero-scene-image {
  z-index: 0;
  object-position: center;
}

.hero-slide-ink .hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(31, 25, 18, 0.86) 0%,
    rgba(31, 25, 18, 0.28) 44%,
    rgba(31, 25, 18, 0.04) 100%
  );
}

.hero-slide-paper .hero-content-left {
  color: #292721;
  max-width: 470px;
}

.hero-slide-paper .hero-overlay {
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(241, 237, 228, 0.38) 0%,
    rgba(241, 237, 228, 0.2) 48%,
    rgba(241, 237, 228, 0) 100%
  );
}

.hero-slide-paper .eyebrow {
  color: #762b23;
  text-shadow: none;
}

.hero-slide-paper .hero-title-sub {
  color: #4f2f29;
  text-shadow: none;
}

.hero-slide-paper .hero-intro {
  color: #393832;
  text-shadow: none;
}

.hero-slide-paper {
  background-position: 90px center;
  background-size: calc(100% + 90px) auto;
  background-repeat: no-repeat;
}

/* 首页第一张：使用完整横幅背景，避免左侧露白；人物比例已在背景图中收小。 */
.hero-slide-paper {
  background-image: url("public/images/hero-home-selected-v5.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #e9e3d8;
}

.hero-slide-ink .eyebrow {
  color: #d8b1a0;
}

.hero-slide-ink .hero-intro {
  color: #fff7e7;
}

/* 轮播文字统一提高阅读优先级，保证在图片和场景上清楚可读。 */
.hero .eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.24);
}

.hero .hero-title-sub {
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 500;
  line-height: 1.35;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.22);
}

.hero .hero-intro {
  font-size: 17px;
  line-height: 1.9;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.18);
}

.hero-caption {
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.hero-slide-gallery .hero-gallery-art {
  right: 5vw;
  width: 56%;
  top: 9%;
  bottom: 8%;
  padding: 16px;
  gap: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.hero-slide-gallery .hero-gallery-art img {
  image-rendering: auto;
}

/* 主图必须位于遮罩之上，避免高清作品被整层压暗。 */
.hero-slide-gallery .hero-gallery-art {
  z-index: 1;
}

.hero-slide-gallery .hero-overlay {
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(241, 237, 228, 0.96) 0%,
    rgba(241, 237, 228, 0.84) 34%,
    rgba(241, 237, 228, 0.08) 72%,
    rgba(241, 237, 228, 0) 100%
  );
}

/* 秦始皇场景只在文字区加深，作品区保持清晰。 */
.hero-slide-ink .hero-overlay {
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(31, 25, 18, 0.72) 0%,
    rgba(31, 25, 18, 0.2) 38%,
    rgba(31, 25, 18, 0) 68%
  );
}

/* 三个作品场景页使用清晰的平面文字，不使用发光效果。 */
.hero-slide-gallery .hero-content,
.hero-slide-chansi .hero-content,
.hero-slide-kongzi .hero-content,
.hero-slide-gallery .hero-caption,
.hero-slide-chansi .hero-caption,
.hero-slide-kongzi .hero-caption {
  text-shadow: none;
}

.hero-slide-gallery .eyebrow,
.hero-slide-chansi .eyebrow,
.hero-slide-kongzi .eyebrow {
  color: var(--red);
  font-weight: 700;
  text-shadow: none !important;
  filter: none;
}

.hero-slide-chansi .eyebrow {
  text-shadow: none !important;
  filter: none;
}

.hero-slide-gallery h2,
.hero-slide-chansi h2,
.hero-slide-kongzi h2 {
  font-size: clamp(48px, 5.8vw, 82px);
}

.hero-slide-gallery .hero-title-sub,
.hero-slide-chansi .hero-title-sub,
.hero-slide-kongzi .hero-title-sub {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 600;
}

.hero-slide-gallery .hero-intro,
.hero-slide-chansi .hero-intro,
.hero-slide-kongzi .hero-intro {
  font-size: 18px;
  font-weight: 500;
}

.hero-slide-gallery .hero-caption,
.hero-slide-chansi .hero-caption,
.hero-slide-kongzi .hero-caption {
  font-size: 15px;
  font-weight: 700;
}

.hero-slide-paper .hero-content-left {
  max-width: 410px;
}

.hero-slide-gallery .hero-content-left,
.hero-slide-kongzi .hero-content-left,
.hero-slide-liuhai .hero-content-left {
  max-width: 400px;
}

.hero-liuhai-art {
  position: absolute;
  z-index: 1;
  top: 9%;
  right: 5vw;
  bottom: 8%;
  width: 56%;
  display: grid;
  grid-template-columns: 1.2fr 0.78fr;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 18px 60px rgba(38, 30, 20, 0.12);
}

.hero-liuhai-art img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #e7e1d7;
}

.hero-liuhai-art img:first-child {
  grid-row: span 2;
}

.hero-slide-liuhai .hero-content {
  z-index: 2;
}

.hero-slide-liuhai .hero-overlay {
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(241, 237, 228, 0.96) 0%,
    rgba(241, 237, 228, 0.82) 34%,
    rgba(241, 237, 228, 0.08) 74%,
    rgba(241, 237, 228, 0) 100%
  );
}

.hero-slide-liuhai .hero-content,
.hero-slide-liuhai .hero-caption {
  text-shadow: none;
}

.hero-slide-chansi .hero-content-right {
  left: auto;
  right: 32vw;
  max-width: 390px;
  padding: 0;
  background: transparent;
  border-right: 0;
  color: #292721;
}

.hero-slide-chansi .hero-title-sub,
.hero-slide-chansi .hero-intro {
  color: #393832;
  text-shadow: none !important;
  filter: none;
}

.hero-slide-chansi .hero-title-sub {
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

@media (max-width: 800px) {
  .hero-slide-ink .hero-content-left,
  .hero-slide-chansi .hero-content-right,
  .hero-slide-kongzi .hero-content-left {
    top: 62%;
  }

  .hero-scene-image {
    object-position: 58% center;
  }

  .hero-slide-ink .hero-scene-image {
    object-position: 38% center;
  }

  .hero-slide-chansi .hero-content-right {
    left: auto;
    right: 24vw;
    max-width: 86%;
    padding: 0;
    background: transparent;
  }

  .hero-liuhai-art {
    right: 7vw;
    top: 10%;
    bottom: auto;
    width: 86%;
    height: 42%;
  }

  .hero-slide-liuhai .hero-content-left {
    top: 67%;
  }

  .hero-slide-ink .hero-content-left {
    left: 10vw;
    top: auto;
    bottom: 88px;
    transform: none;
    max-width: 86%;
    padding: 0;
  }

  .hero-slide-ink .hero-scene-image {
    object-position: 72% center;
  }

  .hero-slide-ink .hero-caption {
    bottom: 22px;
  }

  .hero-slide-paper {
    background-position: 40px center;
    background-size: calc(100% + 40px) auto;
  }
}

/* 全站文字统一使用清晰的平面字色，不使用发光或光晕。 */
body,
body * {
  text-shadow: none !important;
}

/* 万世师表：作品置左，文字置右。 */
.hero-slide-kongzi .hero-content-left {
  left: auto;
  right: 14vw;
  color: #292721;
}

.hero-slide-kongzi .hero-scene-image {
  left: 3%;
  right: auto;
  width: 100%;
}

/* 两张轮播页的文字做小幅右移，保持作品和背景位置不变。 */
.hero-slide-chansi .hero-content-right {
  right: 28vw;
}

.hero-slide-ink .hero-content-left {
  left: 16vw;
}

@media (max-width: 800px) {
  .hero-slide-chansi .hero-content-right {
    right: 20vw;
  }

  .hero-slide-ink .hero-content-left {
    left: 14vw;
  }
}

.hero-slide-kongzi .hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(230, 225, 216, 0) 0%,
    rgba(230, 225, 216, 0.08) 42%,
    rgba(230, 225, 216, 0.82) 76%,
    rgba(230, 225, 216, 0.94) 100%
  );
}

@media (max-width: 800px) {
  .hero-slide-kongzi .hero-content-left {
    left: auto;
    right: 10vw;
  }

  .hero-slide-kongzi .hero-scene-image {
    left: 2%;
    width: 100%;
  }
}

/* 2026-07-26：手机端浅色首屏加强文字可读性，避免正文落在深色衣服上。 */
@media (min-width: 801px) {
  .hero-slide-paper {
    background-size: 94% auto;
    background-position: right 44px center;
  }
}

@media (max-width: 800px) {
  .hero-slide-paper {
    background-position: 58% center;
  }

  .hero-slide-paper .hero-overlay-light {
    background:
      linear-gradient(90deg, rgba(244, 237, 224, 0.92) 0%, rgba(244, 237, 224, 0.82) 46%, rgba(244, 237, 224, 0.18) 74%, rgba(244, 237, 224, 0.04) 100%),
      linear-gradient(180deg, rgba(244, 237, 224, 0.14) 0%, rgba(244, 237, 224, 0) 42%, rgba(22, 20, 18, 0.16) 100%);
  }

  .hero-slide-paper .hero-content-left {
    top: 48%;
    left: 8vw;
    max-width: 72vw;
  }

  .hero-slide-paper .hero-intro {
    max-width: 13.5em;
    color: #27231d;
  }
}
