/* Hallmark · focused Chinese hero typography correction · existing structure preserved · P5 H5 E5 S5 R5 V4 */
/* Shared Hero Banner layouts, backgrounds, overlays, headings and breadcrumbs — generated by the conservative CSS/JS modular refactor. */

.hero {position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden;}

.hero-video-wrap {position: absolute; inset: 0; overflow: hidden; z-index: 0;}

.hero-video-wrap #hero-yt-player {position: absolute; top: 50%; left: 50%; width: 177.78vh; height: 100vh; min-width: 100%; min-height: 56.25vw; transform: translate(-50%, -50%); pointer-events: none;}

.hero-video-wrap #hero-yt-player iframe {width: 100%; height: 100%; border: none;}

.hero-video-fallback {position: absolute; inset: 0; width: 100%; height: 100%; background-size: cover; background-position: center; background-repeat: no-repeat; transition: opacity 0.5s ease;}

.hero-video-fallback.hidden {opacity: 0; pointer-events: none;}

.hero-overlay {position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none;}

.hero-overlay .hero-video {position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translate(-50%, -50%); object-fit: cover; z-index: 0;}

@media (max-width: 768px) {
.hero-overlay .hero-video {width: 100%; height: 100%; min-width: auto; min-height: auto;}
}

.hero-overlay::after {content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(15,40,18,0.85) 0%, rgba(20,60,25,0.70) 50%, rgba(0,0,0,0.35) 100%); z-index: 1;}

.hero-content {position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 48px; max-width: 1440px; padding: 80px clamp(24px, 4vw, 72px) 60px;}

.hero-left {flex: 1; max-width: 580px;}

.hero-badge {display: inline-flex; align-items: center; gap: 8px; background: rgba(76,175,80,0.25); color: #a5d6a7; border: 1px solid rgba(76,175,80,0.4); padding: 6px 16px; border-radius: 50px; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.5px; margin-bottom: 24px;}

.hero-title {font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.5px;}

.hero-accent {color: var(--green-light);}

html[lang="zh-CN"] .hero-title,
html[lang="zh"] .hero-title {
    max-width: 10em;
    min-width: 0;
    line-height: 1.22;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

html[lang="zh-CN"] .hero-title-line,
html[lang="zh"] .hero-title-line {
    display: block;
}

.hero-desc {color: rgba(255,255,255,0.8); font-size: 1.05rem; margin-bottom: 36px; max-width: 500px;}

.hero-btns {display: flex; gap: 14px; flex-wrap: wrap;}

@media (max-width: 900px) {
.hero-content {flex-direction: column; align-items: center;}
}

@media (max-width: 768px) {
.hero {min-height: 80vh;}
}

/* Language overrides, only on pages that originally loaded them. */
:where(body.has-language-overrides) .hero-title {font-family: var(--font-head);
    letter-spacing: 0.03em;}

:where(body.has-language-overrides) .hero-title {font-size: clamp(1.9rem, 3.8vw, 3rem);
    line-height: 1.25;
    letter-spacing: 0.02em;}

:where(body.has-language-overrides) .hero-badge {font-size: 0.8rem;
    letter-spacing: 0.04em;}

:where(body.has-language-overrides) .hero-desc {font-size: 1rem;
    line-height: 1.8;}

@media (max-width: 768px) {
:where(body.has-language-overrides) .hero-title {font-size: clamp(1.6rem, 6vw, 2.2rem);}

:where(body.has-language-overrides) .hero-desc {font-size: 0.92rem;}
}

@media (min-width: 1440px) {
:where(body.has-language-overrides) .hero-title {font-size: 4rem;
        line-height: 1.16;}

:where(body.has-language-overrides) .hero-desc {max-width: 620px;
        font-size: 1.18rem;
        line-height: 1.75;}

:where(body.has-language-overrides) .hero-badge {font-size: 0.92rem;}
}

@media (min-width: 1920px) {
:where(body.has-language-overrides) .hero-title {font-size: 4.6rem;}

:where(body.has-language-overrides) .hero-desc {max-width: 700px;
        font-size: 1.35rem;}

:where(body.has-language-overrides) .hero-badge {font-size: 1rem;}
}

@media (min-width: 2560px) {
:where(body.has-language-overrides) .hero-title {font-size: 5.35rem;}

:where(body.has-language-overrides) .hero-desc {max-width: 780px;
        font-size: 1.55rem;
        line-height: 1.75;}

:where(body.has-language-overrides) .hero-badge {font-size: 1.08rem;}
}

/* Inner-page banners. */
body.has-inner-pages .page-hero {padding: 80px 0 60px;
  position: relative;
  color: var(--white);
  min-height: 280px;
  display: flex;
  align-items: center;
  background-color: #1a4a1f;}

body.has-inner-pages .page-hero-bg {position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  z-index: 0;}

body.has-inner-pages .page-hero-short {min-height: 220px; padding: 60px 0 48px;}

body.has-inner-pages .page-hero-title {font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin: 12px 0 10px;
  line-height: 1.15;}

body.has-inner-pages .page-hero-sub {font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;}

body.has-inner-pages .breadcrumb ol {display: flex; align-items: center; gap: 6px; flex-wrap: wrap;}

body.has-inner-pages .breadcrumb li {display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: rgba(255,255,255,0.7);}

body.has-inner-pages .breadcrumb li::after {content: "/"; color: rgba(255,255,255,0.4);}

body.has-inner-pages .breadcrumb li:last-child::after {display: none;}

body.has-inner-pages .breadcrumb a {color: rgba(255,255,255,0.8);}

body.has-inner-pages .breadcrumb a:hover {color: var(--white);}

/* News-family banners. */
body.news-page .news-hero {position: relative;
    padding: 56px 0 48px;
    overflow: hidden;
    background: var(--green-dark);}

body.news-page .news-hero-bg {position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(26,74,31,0.97) 0%, rgba(45,122,53,0.88) 100%),
        url("../images/aerial-field.jpg") center/cover no-repeat;
    z-index: 0;}

body.news-page .news-hero .container {position: relative; z-index: 1;}

body.news-page .breadcrumb {display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 20px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;}

body.news-page .breadcrumb li {display: flex;
    align-items: center;
    gap: 6px;}

body.news-page .breadcrumb a {color: rgba(255,255,255,0.75); transition: var(--transition);}

body.news-page .breadcrumb a:hover {color: var(--white);}

body.news-page .breadcrumb [aria-current="page"] {color: rgba(255,255,255,0.95);}

body.news-page .bc-sep {color: rgba(255,255,255,0.35); font-size: 0.65rem;}

body.news-page .news-hero-title {font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 10px;
    letter-spacing: -0.02em;}

body.news-page .news-hero-sub {font-size: 1rem;
    color: rgba(255,255,255,0.72);
    letter-spacing: 0.04em;}

/* Product-catalog banners. */
body.product-catalog-page .products-hero > .container {max-width: var(--products-shell-max);
  margin: 0 auto;
  padding-left: var(--products-shell-padding);
  padding-right: var(--products-shell-padding);}

body.product-catalog-page .products-hero {position: relative;
  background: linear-gradient(135deg, var(--green-dark) 0%, #1e5c26 50%, #2d7a35 100%);
  padding: 64px 0 56px;
  overflow: hidden;}

body.product-catalog-page .products-hero::before {content: "";
  position: absolute;
  inset: 0;
  background: url("../../images/field.jpg") center/cover no-repeat;
  opacity: 0.12;}

body.product-catalog-page .products-hero::after {content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);}

body.product-catalog-page .products-hero .container {position: relative; z-index: 1;}

body.product-catalog-page .breadcrumb ol {display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;}

body.product-catalog-page .breadcrumb li {display: flex; align-items: center; gap: 6px;}

body.product-catalog-page .breadcrumb li a {color: rgba(255,255,255,0.75); font-size: 0.85rem; transition: color 0.2s;}

body.product-catalog-page .breadcrumb li a:hover {color: var(--white);}

body.product-catalog-page .breadcrumb li span {color: rgba(255,255,255,0.95); font-size: 0.85rem;}

body.product-catalog-page .breadcrumb .sep {color: rgba(255,255,255,0.4); font-size: 0.65rem;}

body.product-catalog-page .page-hero-title {font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.5px;}

body.product-catalog-page .page-hero-desc {color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  max-width: 800px;
  line-height: 1.7;
  margin-bottom: 36px;}

/* Search Hero Banner. */
body.search-page .search-hero {background: linear-gradient(135deg, var(--green-dark) 0%, #1e5c26 60%, #2d7a35 100%);
      padding: 56px 0 48px;
      position: relative;
      overflow: hidden;}

body.search-page .search-hero::before {content: "";
      position: absolute;
      inset: 0;
      background: url("/assets/images/aerial-field.jpg") center/cover no-repeat;
      opacity: 0.07;
      z-index: 0;}

body.search-page .search-hero-inner {position: relative;
      z-index: 1;
      max-width: 720px;}

body.search-page .search-hero-label {display: inline-flex;
      align-items: center;
      gap: 7px;
      background: rgba(255,255,255,0.12);
      border: 1px solid rgba(255,255,255,0.22);
      color: rgba(255,255,255,0.85);
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 1px;
      text-transform: uppercase;
      padding: 5px 14px;
      border-radius: 50px;
      margin-bottom: 18px;}

body.search-page .search-hero h1 {font-family: var(--font-head);
      font-size: clamp(1.5rem, 3vw, 2.2rem);
      font-weight: 800;
      color: var(--white);
      margin-bottom: 6px;
      line-height: 1.25;}

body.search-page .search-hero h1 em {font-style: normal;
      color: var(--accent);}

body.search-page .search-hero-meta {color: rgba(255,255,255,0.6);
      font-size: 0.88rem;
      margin-bottom: 28px;}

body.search-page .breadcrumb {display: flex;
      align-items: center;
      gap: 6px;
      font-size: 0.8rem;
      color: rgba(255,255,255,0.55);
      margin-bottom: 20px;
      flex-wrap: wrap;}

body.search-page .breadcrumb a {color: rgba(255,255,255,0.7);}

body.search-page .breadcrumb a:hover {color: var(--white);}

body.search-page .breadcrumb .sep {font-size: 0.6rem;}
