/**
 * 花更好® 内页全站美化 — 导航/面包屑/Hero 与首页同款无缝衔接
 */

/* ═══ 内页：顶栏 + 导航叠在 Hero 上 ═══ */
body.site-page:not(.page-home) {
  --page-nav-stack: 152px;
  --page-crumb-stack: 34px;
  --page-hero-pad: calc(var(--page-nav-stack) + var(--page-crumb-stack) + 16px);
  --page-hero-pad-no-crumb: calc(var(--page-nav-stack) + 24px);
  --page-nav-bg: rgba(6, 26, 18, 0.94);
  --page-hero-img: url('/static/images/banners/banner-1.jpg'), url('/static/images/banners/banner-1.svg');
}

body.site-page:not(.page-home) .site-topbar {
  border: none !important;
  box-shadow: none !important;
  background: var(--page-nav-bg) !important;
  background-image: none !important;
  animation: none !important;
  position: relative;
  z-index: 102;
}
body.site-page:not(.page-home) .site-topbar + .site-header {
  margin-top: -2px;
}
body.site-page:not(.page-home) .site-header {
  margin-bottom: -2px;
}

body.site-page:not(.page-home) .site-header {
  border: none !important;
  box-shadow: none !important;
  background: linear-gradient(
    180deg,
    var(--page-nav-bg) 0%,
    rgba(6, 26, 18, 0.62) 55%,
    rgba(6, 26, 18, 0.28) 78%,
    rgba(6, 26, 18, 0) 100%
  ) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  position: sticky;
  top: 0;
  z-index: 101;
}
body.site-page:not(.page-home) .site-header::after {
  display: none !important;
}
body.site-page:not(.page-home) .site-header.is-scrolled {
  background: rgba(12, 46, 34, 0.98) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(212, 168, 67, 0.22) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15) !important;
}

body.site-page:not(.page-home) .site-main {
  margin-top: calc(-1 * var(--page-nav-stack));
  position: relative;
  z-index: 0;
}

/* 面包屑浮于 Hero 顶部 */
body.site-page:not(.page-home) .breadcrumb-hero {
  position: absolute;
  top: var(--page-nav-stack);
  left: 0;
  right: 0;
  z-index: 12;
  margin: 0;
  padding: 6px 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  pointer-events: none;
}
body.site-page:not(.page-home) .breadcrumb-hero .container,
body.site-page:not(.page-home) .breadcrumb-hero a,
body.site-page:not(.page-home) .breadcrumb-hero span {
  pointer-events: auto;
}
body.site-page:not(.page-home) .breadcrumb-hero a {
  color: rgba(255, 255, 255, 0.82);
}
body.site-page:not(.page-home) .breadcrumb-hero a:hover {
  color: var(--gold-light, #ecd9a0);
}
body.site-page:not(.page-home) .breadcrumb-hero .breadcrumb-current,
body.site-page:not(.page-home) .breadcrumb-hero li:last-child span {
  color: var(--gold-light, #ecd9a0);
  font-weight: 600;
}
body.site-page:not(.page-home) .breadcrumb-hero li::after {
  color: rgba(212, 168, 67, 0.5);
}

/* ═══ 内页 Hero 统一 ═══ */
body.site-page:not(.page-home) .site-main > section.hero {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  padding: var(--page-hero-pad-no-crumb) 24px clamp(52px, 8vw, 88px);
  text-align: center;
  color: #fff;
  background-color: #061a12 !important;
  background-image:
    linear-gradient(135deg, rgba(6, 26, 18, 0.82) 0%, rgba(26, 86, 50, 0.68) 52%, rgba(10, 38, 28, 0.85) 100%),
    var(--page-hero-img) !important;
  background-size: cover !important;
  background-position: center 35% !important;
  background-repeat: no-repeat !important;
  border: none !important;
  box-shadow: none !important;
}
body.site-page:not(.page-home) .site-main:has(.breadcrumb-hero) > section.hero {
  padding-top: var(--page-hero-pad);
}
body.site-page:not(.page-home) .site-main > section.hero::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, #061a12 0%, rgba(6, 26, 18, 0.75) 12%, transparent 32%),
    radial-gradient(circle at 20% 80%, rgba(45, 138, 92, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(212, 168, 67, 0.18) 0%, transparent 40%);
  animation: none !important;
}
body.site-page:not(.page-home) .site-main > section.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  inset: auto 0 0 0;
  height: 72px;
  z-index: 1;
  pointer-events: none;
  animation: none !important;
  background: linear-gradient(180deg, transparent 0%, rgba(240, 247, 243, 0.35) 50%, var(--brand-surface, #f0f7f3) 100%) !important;
}
body.site-page:not(.page-home) .site-main > section.hero > .container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

/* 带图 Hero */
body.site-page:not(.page-home) .site-main > section.hero.hero-with-img > .container.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  max-width: var(--max-width, 1180px);
  text-align: left;
}
body.site-page:not(.page-home) .site-main > section.hero.hero-with-img .intro {
  margin: 0;
}

body.site-page:not(.page-home) .site-main > section.hero h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.65rem);
  line-height: 1.25;
  margin: 0 0 14px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
  font-family: var(--font-serif);
  animation: none !important;
  background: none !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important;
  filter: none !important;
}
body.site-page:not(.page-home) .site-main > section.hero .container::before {
  display: none !important;
}
body.site-page:not(.page-home) .site-main > section.hero .intro {
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  line-height: 1.75;
  opacity: 0.92;
  max-width: 640px;
  margin: 0 auto;
}
body.site-page:not(.page-home) .site-main > section.hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(212, 168, 67, 0.14);
  border: 1px solid rgba(212, 168, 67, 0.4);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.92);
}

/* 重庆专题 Hero */
body.site-page:not(.page-home) .site-main > section.hero.hero-cq {
  --page-hero-img: url('/static/images/banners/banner-3.jpg'), url('/static/images/banners/banner-3.svg');
  background-color: #1a1812 !important;
  background-image:
    linear-gradient(135deg, rgba(42, 24, 16, 0.84) 0%, rgba(184, 98, 62, 0.4) 38%, rgba(26, 86, 50, 0.8) 100%),
    var(--page-hero-img) !important;
  background-size: cover !important;
  background-position: center 35% !important;
}

/* 紧凑 Hero */
body.site-page:not(.page-home) .site-main > section.hero.hero-compact {
  padding-bottom: clamp(40px, 6vw, 64px);
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.page-hero-actions .btn {
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
}
body.site-page:not(.page-home) .page-hero-actions .btn-outline {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}
body.site-page:not(.page-home) .page-hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: var(--gold, #d4a843) !important;
}

/* 内容区 */
.site-main:not(.home-page) .page-content {
  padding-top: 56px;
}
.site-main:not(.home-page) .section-title h2 {
  position: relative;
}
.site-main:not(.home-page) .content-block {
  padding: 28px 32px;
  margin-bottom: 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(26, 86, 50, 0.08);
  box-shadow: 0 8px 32px rgba(12, 46, 34, 0.06);
}
.site-main:not(.home-page) .content-block h2 {
  margin-top: 0;
  color: var(--green-dark, #0a261c);
  font-size: 1.25rem;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(212, 168, 67, 0.35);
}

.site-main:not(.home-page) .card-img,
.site-main:not(.home-page) .gallery-img,
.site-main:not(.home-page) .advantage-img {
  image-rendering: auto;
  object-fit: cover;
}

.site-main:not(.home-page) .news-filter,
.site-main:not(.home-page) .plant-catalog-toolbar {
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(26, 86, 50, 0.1);
  box-shadow: 0 4px 20px rgba(12, 46, 34, 0.05);
}

.site-main:not(.home-page) .article-body,
.site-main:not(.home-page) .case-detail-content {
  line-height: 1.9;
  font-size: 1.02rem;
}
.site-main:not(.home-page) .article-body img,
.site-main:not(.home-page) .case-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(12, 46, 34, 0.1);
}

@media (max-width: 768px) {
  body.site-page:not(.page-home) {
    --page-nav-stack: 132px;
    --page-crumb-stack: 30px;
  }
  body.site-page:not(.page-home) .site-main > section.hero {
    padding-left: 16px;
    padding-right: 16px;
    text-align: center;
  }
  body.site-page:not(.page-home) .site-main > section.hero.hero-with-img > .container.hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }
  body.site-page:not(.page-home) .site-main > section.hero.hero-with-img .intro {
    margin: 0 auto;
  }
  .site-main:not(.home-page) .content-block {
    padding: 20px 18px;
  }
}
