/* Homepage — Figma 99:1856 */

/* ── 首屏对比（多屏竖排，一屏两图：默认修复前，悬停修复后） ── */
.home-hero-stack {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.home-hero-slide {
  display: block;
  margin: 0;
  width: 100%;
  min-height: 100svh;
  min-height: 100vh;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.home-hero-ba {
  position: relative;
  width: 100%;
  min-height: 100svh;
  min-height: 100vh;
  overflow: hidden;
  background: #e8e6e1;
}

.home-hero-ba__before,
.home-hero-ba__after {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero-ba__after {
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 1;
}

.home-hero-ba__hint {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(27, 28, 25, 0.55);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.04em;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .home-hero-slide:hover .home-hero-ba__after,
  .home-hero-slide:focus-visible .home-hero-ba__after,
  .home-hero-ba:hover .home-hero-ba__after {
    opacity: 1;
  }

  .home-hero-slide:hover .home-hero-ba__hint,
  .home-hero-ba:hover .home-hero-ba__hint {
    opacity: 0;
  }
}

/* 触屏：点按短暂显示修复后（由 home.js 加 class） */
.home-hero-ba.is-show-after .home-hero-ba__after {
  opacity: 1;
}

.home-hero-ba.is-show-after .home-hero-ba__hint {
  opacity: 0;
}

/* ── Hero（旧版分栏，保留样式） ── */
.home-hero {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 48px;
  align-items: center;
  min-height: 760px;
  padding: 64px 0 48px;
}

.home-hero__compare {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 8px;
}

.home-hero__compare .compare__labels {
  display: none;
}

.home-hero__media .home-hero__compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}

.home-hero__media:hover .home-hero__compare img {
  transform: none;
}

.home-hero__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 672px;
}

.home-hero__content .body {
  max-width: 448px;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 26px;
}

.home-hero__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 32px;
  padding-top: 16px;
}

.home-hero__actions .btn {
  flex-shrink: 0;
}

.home-hero__link {
  flex-shrink: 0;
  font-family: var(--font-headline);
  font-style: normal;
  font-synthesis: none;
  transform: skewX(var(--headline-skew));
  font-size: 20px;
  line-height: 28px;
  color: var(--color-text);
  border-bottom: 1px solid rgba(209, 197, 180, 0.3);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.home-hero__link:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.home-hero__media-wrap {
  position: relative;
}

.home-hero__media {
  position: relative;
  z-index: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  /* Figma 99:1861 ≈ 581×727 */
  aspect-ratio: 581 / 727;
  max-height: 727px;
  margin-left: auto;
  width: 100%;
  background: #e8e6e1;
}

.home-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: transform 0.7s ease;
}

.home-hero__media:hover img {
  transform: scale(1.02);
}

.home-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.12) 35%,
    transparent 55%
  );
  pointer-events: none;
  z-index: 1;
}

.home-hero__caption {
  position: absolute;
  left: 32px;
  bottom: 32px;
  z-index: 2;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-hero__caption .label {
  opacity: 0.8;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  line-height: 16px;
}

.home-hero__caption .title {
  font-family: var(--font-headline);
  font-style: normal;
  font-synthesis: none;
  transform: skewX(var(--headline-skew));
  font-size: 20px;
  font-weight: 300;
  line-height: 28px;
}

/* Silk shimmer on hero media */
.silk-fade {
  position: relative;
  overflow: hidden;
}

.silk-fade::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(197, 160, 89, 0.22),
    transparent
  );
  animation: silk-sweep 3s infinite;
  pointer-events: none;
  z-index: 3;
}

@keyframes silk-sweep {
  0% { left: -100%; }
  100% { left: 100%; }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-orb--tr {
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: rgba(197, 160, 89, 0.2);
  filter: blur(48px);
}

.hero-orb--bl {
  bottom: -40px;
  left: -40px;
  width: 256px;
  height: 256px;
  background: rgba(176, 163, 145, 0.12);
  filter: blur(40px);
}

/* ── Service cards: gold = hover ── */
.service-card__img {
  overflow: hidden;
}

.service-card__img img {
  transition: transform 0.5s ease;
}

.service-card:hover .service-card__img img {
  transform: scale(1.05);
}

.service-card__icon {
  background: #f0eee9;
  transition: background 0.3s ease;
}

.service-card:hover .service-card__icon {
  background: var(--color-primary);
}

.service-card:hover .service-card__icon img {
  filter: brightness(0) invert(1);
}

.service-card .learn-more {
  color: var(--color-text);
  transition: letter-spacing 0.3s ease, color 0.3s ease;
}

.service-card:hover .learn-more {
  color: var(--color-primary);
  letter-spacing: 0.15em;
}

/* ── Gallery link: gold on hover ── */
.home-gallery-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--color-text);
  transition: color 0.25s ease;
  white-space: nowrap;
}

.home-gallery-link img {
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: grayscale(1) brightness(0.35);
}

.home-gallery-link:hover {
  color: var(--color-primary);
}

.home-gallery-link:hover img {
  filter: none;
  transform: translateX(4px);
}

/* Bento hover */
.bento__main,
.bento__side {
  transition: box-shadow 0.4s ease;
}

.bento__main img,
.bento__side img {
  transition: transform 0.7s ease;
}

.bento__main:hover img,
.bento__side:hover img {
  transform: scale(1.05);
}

.bento__side::after {
  transition: background 0.35s ease;
}

.bento__side:hover::after {
  background: rgba(0, 0, 0, 0.4);
}

.bento__caption {
  transition: opacity 0.4s ease;
}

/* Buttons micro-interaction */
.btn:active {
  transform: scale(0.95);
}

.btn-primary:hover {
  letter-spacing: 0.04em;
}

/* Scroll reveal */
.reveal-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
  will-change: opacity, transform;
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.site-header.is-scrolled .site-header__inner {
  box-shadow: none;
}

@media (max-width: 1100px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 64px 0 32px;
    gap: 32px;
  }

  .home-hero__media {
    aspect-ratio: 4 / 5;
    max-height: 560px;
  }

  .home-hero__actions {
    flex-wrap: wrap;
    gap: 16px 24px;
  }
}

@media (max-width: 700px) {
  .home-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero__actions .btn,
  .home-hero__link {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .home-hero__link {
    transform: none;
    padding: 12px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .silk-fade::before {
    animation: none;
  }

  .reveal-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
