/*
 * BluegreenCup 首页专用布局
 * 仅在 is_front_page() 时加载，避免污染文章、产品和普通页面。
 */

.bgc-home {
  color: var(--bgc-ink);
  overflow: clip;
}

.bgc-home img {
  display: block;
  height: auto;
  max-width: 100%;
}

.bgc-home h1,
.bgc-home h2,
.bgc-home h3,
.bgc-home p,
.bgc-home dl,
.bgc-home dd,
.bgc-home ol {
  margin-top: 0;
}

.bgc-home h1,
.bgc-home h2,
.bgc-home h3 {
  color: var(--bgc-dark);
  font-family: var(--bgc-font-display);
  font-weight: 600;
  text-wrap: balance;
}

.bgc-home p,
.bgc-home dd {
  color: var(--bgc-moss);
}

.bgc-home-section {
  margin-inline: auto;
  max-width: var(--bgc-container);
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1rem, 3vw, 2rem);
  width: 100%;
}

.bgc-home-section__head {
  margin-bottom: clamp(2.25rem, 5vw, 4rem);
  max-width: 780px;
}

.bgc-home-section__head h2,
.bgc-home-evidence__content > h2,
.bgc-home-resources h2,
.bgc-home-quote h2 {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 1.1rem;
}

.bgc-home-section__head p,
.bgc-home-evidence__content > p,
.bgc-home-resources__intro p,
.bgc-home-quote p {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.7;
  margin-bottom: 0;
  max-width: 65ch;
}

/* Hero */

.bgc-home-hero {
  min-height: clamp(610px, 76svh, 790px);
  overflow: hidden;
  position: relative;
}

.bgc-home-hero::after {
  background: linear-gradient(90deg, rgba(7, 32, 26, 0.92) 0%, rgba(7, 32, 26, 0.72) 48%, rgba(7, 32, 26, 0.16) 78%, rgba(7, 32, 26, 0.04) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.bgc-home-hero__media,
.bgc-home-hero__media img {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.bgc-home-hero__media img {
  object-fit: cover;
  object-position: center;
}

.bgc-home-hero__inner {
  align-items: center;
  display: flex;
  margin-inline: auto;
  max-width: var(--bgc-container);
  min-height: inherit;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 3vw, 2rem) clamp(6rem, 10vw, 8.5rem);
  position: relative;
  width: 100%;
  z-index: 1;
}

.bgc-home-hero__copy {
  max-width: 850px;
}

.bgc-home-hero h1 {
  color: var(--bgc-white);
  font-size: clamp(3.15rem, 7.5vw, 6rem);
  letter-spacing: -0.04em;
  line-height: 0.96;
  margin-bottom: 1.35rem;
  max-width: 18ch;
}

.bgc-home-hero p {
  color: rgba(255, 253, 247, 0.88);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.55;
  margin-bottom: 1.8rem;
  max-width: 56ch;
}

.bgc-home-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.bgc-home-button-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--bgc-ink) !important;
}

.bgc-home-hero .bgc-button {
  background: var(--bgc-sand);
  border-color: var(--bgc-sand);
  color: var(--bgc-dark) !important;
}

.bgc-home-hero .bgc-home-button-outline {
  background: rgba(13, 45, 37, 0.34);
  border-color: rgba(255, 253, 247, 0.58);
  color: var(--bgc-white) !important;
}

/* Company facts */

.bgc-home-facts {
  background: var(--bgc-paper);
  border-radius: var(--bgc-radius-large);
  box-shadow: var(--bgc-shadow);
  margin: -3rem auto 0;
  max-width: calc(var(--bgc-container) - 4rem);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  position: relative;
  width: calc(100% - clamp(2rem, 6vw, 4rem));
  z-index: 2;
}

.bgc-home-facts dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0;
}

.bgc-home-facts dl > div {
  min-width: 0;
  padding: 0.3rem clamp(1rem, 2.2vw, 1.8rem);
}

.bgc-home-facts dl > div + div {
  border-left: 1px solid var(--bgc-line);
}

.bgc-home-facts dt {
  color: var(--bgc-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.bgc-home-facts strong {
  display: block;
  font-family: var(--bgc-font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.65rem;
  text-transform: none;
}

.bgc-home-facts dd {
  font-size: 0.92rem;
  line-height: 1.45;
  margin-bottom: 0;
  margin-left: 0;
}

/* Product directory */

.bgc-home-products {
  padding-top: clamp(5.5rem, 11vw, 9rem);
}

.bgc-home-product-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.6rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bgc-home-product {
  border-top: 1px solid var(--bgc-line);
  color: inherit;
  display: grid;
  gap: 1.15rem;
  min-width: 0;
  padding-top: 1rem;
  text-decoration: none;
}

.bgc-home-product img {
  aspect-ratio: 4 / 3;
  border-radius: var(--bgc-radius);
  object-fit: cover;
  transition: transform 360ms var(--bgc-ease), filter 360ms ease-out;
  width: 100%;
}

.bgc-home-product__body {
  display: grid;
  gap: 0.5rem;
}

.bgc-home-product__body strong {
  color: var(--bgc-dark);
  font-family: var(--bgc-font-display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.bgc-home-product__body > span {
  color: var(--bgc-moss);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* Manufacturing paths */

.bgc-home-path-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  grid-template-rows: repeat(2, minmax(210px, auto));
}

.bgc-home-path {
  background: var(--bgc-paper);
  border: 1px solid var(--bgc-line);
  border-radius: var(--bgc-radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 2.6rem);
}

.bgc-home-path h3 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.bgc-home-path p {
  line-height: 1.65;
  margin-bottom: 1rem;
  max-width: 52ch;
}

.bgc-home-path a,
.bgc-home-resources a:not(.bgc-button) {
  color: var(--bgc-ink);
  font-size: 0.84rem;
  font-weight: 800;
  margin-top: auto;
  width: fit-content;
}

.bgc-home-path--featured {
  border: 0;
  grid-row: 1 / span 2;
  justify-content: end;
  min-height: 500px;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.bgc-home-path--featured::after {
  background: linear-gradient(to top, rgba(7, 32, 26, 0.94), rgba(7, 32, 26, 0.08) 72%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.bgc-home-path--featured > img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.bgc-home-path--featured > div {
  padding: clamp(1.5rem, 4vw, 2.8rem);
  position: relative;
  z-index: 1;
}

.bgc-home-path--featured h3,
.bgc-home-path--featured p,
.bgc-home-path--featured a {
  color: var(--bgc-white);
}

.bgc-home-capabilities {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 2.25rem 0 0;
}

.bgc-home-capabilities > div {
  border-top: 1px solid var(--bgc-line);
  min-width: 0;
  padding: 1.2rem 1.2rem 0 0;
}

.bgc-home-capabilities > div + div {
  padding-left: 1.2rem;
}

.bgc-home-capabilities dt {
  color: var(--bgc-dark);
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.bgc-home-capabilities dd {
  line-height: 1.5;
  margin: 0;
}

/* Factory and quality evidence */

.bgc-home-evidence {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.bgc-home-evidence__media img {
  aspect-ratio: 4 / 5;
  border-radius: var(--bgc-radius-large);
  object-fit: cover;
  width: 100%;
}

.bgc-home-quality {
  counter-reset: bgc-quality;
  list-style: none;
  margin: 2rem 0;
  padding: 0;
}

.bgc-home-quality li {
  counter-increment: bgc-quality;
  display: grid;
  gap: 0.2rem 1rem;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  padding: 1rem 0;
}

.bgc-home-quality li + li {
  border-top: 1px solid var(--bgc-line);
}

.bgc-home-quality li::before {
  color: var(--bgc-moss);
  content: counter(bgc-quality, decimal-leading-zero);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  grid-row: 1 / span 2;
  letter-spacing: 0.08em;
  padding-top: 0.18rem;
}

.bgc-home-quality h3 {
  font-family: var(--bgc-font-body);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0;
}

.bgc-home-quality p {
  font-size: 0.94rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.bgc-home-documents {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.7rem;
}

.bgc-home-documents span {
  border: 1px solid var(--bgc-line);
  border-radius: 999px;
  color: var(--bgc-ink);
  font-size: 0.78rem;
  font-weight: 750;
  padding: 0.5rem 0.75rem;
}

/* Process */

.bgc-home-process__list {
  counter-reset: bgc-process;
  display: grid;
  gap: 0 clamp(1.25rem, 3vw, 2.5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin-bottom: 0;
  padding: 0;
}

.bgc-home-process__list li {
  border-top: 1px solid var(--bgc-line);
  counter-increment: bgc-process;
  min-width: 0;
  padding: 1.25rem 0 2.6rem;
}

.bgc-home-process__list li::before {
  color: var(--bgc-moss);
  content: counter(bgc-process, decimal-leading-zero);
  display: block;
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 1.1rem;
}

.bgc-home-process__list h3 {
  font-family: var(--bgc-font-body);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.55rem;
}

.bgc-home-process__list p {
  font-size: 0.94rem;
  line-height: 1.55;
  margin-bottom: 0;
}

/* Resources and FAQ */

.bgc-home-resources {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.bgc-home-resources__intro {
  min-width: 0;
}

.bgc-home-resources__intro img {
  aspect-ratio: 4 / 3;
  border-radius: var(--bgc-radius);
  margin-bottom: 1.7rem;
  object-fit: cover;
  width: 100%;
}

.bgc-home-resources__intro h2,
.bgc-home-faq h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.bgc-home-resources__intro .bgc-button {
  margin-top: 1.45rem;
}

.bgc-home-faq {
  border-top: 1px solid var(--bgc-line);
  min-width: 0;
  padding-top: 1.5rem;
}

.bgc-home-faq details {
  border-bottom: 1px solid var(--bgc-line);
}

.bgc-home-faq summary {
  color: var(--bgc-dark);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  min-height: 64px;
  padding: 1.2rem 2.25rem 1.2rem 0;
  position: relative;
}

.bgc-home-faq summary::-webkit-details-marker {
  display: none;
}

.bgc-home-faq summary::after {
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  content: "";
  height: 0.55rem;
  position: absolute;
  right: 0.25rem;
  top: 1.55rem;
  transform: rotate(135deg);
  transition: transform 220ms var(--bgc-ease);
  width: 0.55rem;
}

.bgc-home-faq details[open] summary::after {
  transform: translateY(0.2rem) rotate(-45deg);
}

.bgc-home-faq details p {
  line-height: 1.65;
  margin-bottom: 1.35rem;
  max-width: 62ch;
}

/* Final conversion panel */

.bgc-home-quote {
  align-items: center;
  background: var(--bgc-dark);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin: 0;
  padding: clamp(4rem, 8vw, 6.5rem) max(clamp(1rem, 3vw, 2rem), calc((100vw - var(--bgc-container)) / 2 + 2rem));
}

.bgc-home-quote > div {
  max-width: 720px;
}

.bgc-home-quote h2 {
  color: var(--bgc-white);
}

.bgc-home-quote p {
  color: rgba(255, 253, 247, 0.78);
}

.bgc-home-quote .bgc-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* One authored entrance, plus restrained state motion. */

@media (prefers-reduced-motion: no-preference) {
  .bgc-home-hero__media img {
    animation: bgc-home-image-in 900ms var(--bgc-ease) both;
  }

  .bgc-home-hero__copy {
    animation: bgc-home-copy-in 720ms 100ms var(--bgc-ease) both;
  }

  @keyframes bgc-home-image-in {
    from { opacity: 0.82; transform: scale(1.035); }
    to { opacity: 1; transform: scale(1); }
  }

  @keyframes bgc-home-copy-in {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (hover: hover) and (pointer: fine) {
  .bgc-home-product:hover img {
    filter: saturate(1.04);
    transform: scale(1.025);
  }

  .bgc-home-product:hover strong,
  .bgc-home-path a:hover,
  .bgc-home-resources a:hover {
    color: var(--bgc-moss);
  }

  .bgc-home-hero .bgc-button:hover {
    background: var(--bgc-white);
    border-color: var(--bgc-white);
  }

  .bgc-home-hero .bgc-home-button-outline:hover {
    background: rgba(255, 253, 247, 0.12);
    border-color: var(--bgc-white);
    color: var(--bgc-white) !important;
  }
}

@media (max-width: 1000px) {
  .bgc-home-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bgc-home-evidence,
  .bgc-home-resources {
    grid-template-columns: 1fr;
  }

  .bgc-home-evidence__media img {
    aspect-ratio: 16 / 9;
  }

  .bgc-home-resources__intro {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .bgc-home-resources__intro img {
    margin-bottom: 0;
  }
}

@media (max-width: 780px) {
  .bgc-home-hero {
    min-height: 640px;
  }

  .bgc-home-hero::after {
    background: linear-gradient(to top, rgba(7, 32, 26, 0.94) 0%, rgba(7, 32, 26, 0.65) 58%, rgba(7, 32, 26, 0.18) 100%);
  }

  .bgc-home-hero__media img {
    object-position: 62% center;
  }

  .bgc-home-hero__inner {
    align-items: end;
    padding-bottom: 7rem;
  }

  .bgc-home-hero h1 {
    font-size: clamp(2.85rem, 11vw, 4.6rem);
    max-width: 12ch;
  }

  .bgc-home-facts dl,
  .bgc-home-capabilities,
  .bgc-home-process__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bgc-home-facts dl > div:nth-child(3) {
    border-left: 0;
  }

  .bgc-home-facts dl > div:nth-child(n + 3) {
    border-top: 1px solid var(--bgc-line);
    margin-top: 1rem;
    padding-top: 1.3rem;
  }

  .bgc-home-path-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .bgc-home-path--featured {
    grid-row: auto;
    min-height: 480px;
  }

  .bgc-home-resources__intro {
    display: block;
  }

  .bgc-home-resources__intro img {
    margin-bottom: 1.5rem;
  }

  .bgc-home-quote {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .bgc-home-section {
    padding-block: 4.5rem;
  }

  .bgc-home-actions,
  .bgc-home-actions .bgc-button,
  .bgc-home-quote .bgc-button {
    align-items: center;
    width: 100%;
  }

  .bgc-home-actions .bgc-button,
  .bgc-home-quote .bgc-button {
    justify-content: center;
  }

  .bgc-home-facts {
    border-radius: var(--bgc-radius);
    margin-top: -2rem;
    width: calc(100% - 1.5rem);
  }

  .bgc-home-facts dl,
  .bgc-home-product-grid,
  .bgc-home-capabilities,
  .bgc-home-process__list {
    grid-template-columns: 1fr;
  }

  .bgc-home-facts dl > div,
  .bgc-home-facts dl > div + div,
  .bgc-home-facts dl > div:nth-child(3),
  .bgc-home-facts dl > div:nth-child(n + 3) {
    border-left: 0;
    border-top: 1px solid var(--bgc-line);
    margin-top: 1rem;
    padding: 1.2rem 0 0;
  }

  .bgc-home-facts dl > div:first-child {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
  }

  .bgc-home-capabilities > div,
  .bgc-home-capabilities > div + div {
    padding: 1rem 0;
  }

  .bgc-home-path--featured {
    min-height: 420px;
  }

  .bgc-home-documents {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bgc-home-hero__copy,
  .bgc-home-hero__media img,
  .bgc-home-product img,
  .bgc-home-faq summary::after {
    animation: none !important;
    transition: none !important;
  }
}
