/* Homepage layout follows the shared bilingual content and navigation. */
.page-index {
  --forest: #104a32;
  --brass: #805816;
  --paper: #f4f7f1;
  --card-line: #e4e6dd;
  --gutter: clamp(18px, 4.65vw, 80px);
  --section-space: clamp(32px, 3.45vw, 56px);
  --grid-gap: clamp(14px, 1.55vw, 26px);
  --font-display: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}
.page-index .container {
  width: min(calc(100% - 2 * var(--gutter)), 1376px);
  max-width: none;
  padding-inline: 0;
}
.page-index .hero--home { min-height: clamp(392px, 31.65vw, 500px); align-items: center; }
.hero--home .hero__bg { object-position: center; }
.hero--home .hero__shade { background: linear-gradient(90deg, #fffcf2cf, #fffcf290 30%, transparent 64%); }
.hero--home .hero__content { padding-block: 40px; }
.page-index .hero__title {
  max-width: 10.7em; margin: 0; color: #083d26; font: 750 clamp(42px, 3.88vw, 62px)/1.06 var(--font-display);
  letter-spacing: -.04em; text-wrap: balance;
}
.page-index.lang-zh .hero__title { max-width: 10em; letter-spacing: -.025em; }
.hero--home .hero__tag {
  max-width: 45ch; margin: 12px 0 19px; color: #23382a; font-size: clamp(16px, 1.24vw, 20px);
  font-weight: 550; line-height: 1.45; letter-spacing: 0; text-transform: none;
}
.hero--home .hero__search {
  width: min(610px, 100%); max-width: none; height: 52px; padding: 4px; gap: 0;
  border: 1px solid #c4c7aa; border-radius: 9px; box-shadow: 0 2px 7px #37451d15;
}
.home-search-scope { height: 100%; max-width: 32%; padding-left: 12px; border: 0; border-right: 1px solid #e2e3d6; border-radius: 0; font-size: 14px; font-weight: 650; }
.hero--home .hero__search input { padding: 0 14px; height: 100%; }
.hero--home .hero__search .btn { width: 56px; border-radius: 6px; padding: 0; min-height: 40px; height: 100%; }
.page-index .btn--green { background-color: var(--forest); color: white; }
.page-index .btn--green:hover { background-color: #0a3c26; }
.page-index .hero__actions { gap: 12px; margin-top: 16px; }
.hero__actions .btn { min-height: 48px; padding-inline: clamp(14px, 1.8vw, 28px); }
.hero__actions .btn--light { border: 1px solid #ae9557; color: #163a29; }
.page-index :is(a,button):focus-visible { outline: 2px solid #a87a2b; outline-offset: 2px; }
.home-search-scope:focus {
  background-color: var(--green-50);
  box-shadow: inset 0 -2px var(--field-focus);
}

.page-index .cats { padding: 0; background: #faf9f5; }
.page-index .cats__bar { margin: 0; overflow: visible; }
.page-index .cats__bar li { border: 0; }
.page-index .cat { gap: 8px; padding: 19px 6px; border-radius: 6px; }
.page-index .cat__icon { display: grid; place-items: center; width: 44px; height: 44px; }
.home-icon { width: 100%; height: 100%; object-fit: contain; }
.page-index .cat__name { width: min(100%, 13ch); color: var(--forest); font-size: 14px; line-height: 1.35; }
.page-index .cat--soon { opacity: .7; }

.page-index .page-surface--home { margin-block: 0; padding-block: 0; border: 0; box-shadow: none; background: white; }
.page-surface--home > section { padding: 0; margin-top: var(--section-space); }
.page-surface--home > .products-home:first-child { padding-top: 0; margin-top: clamp(28px, 2.6vw, 42px); }
.page-surface--home .section-head { align-items: center; gap: 20px; }
.page-surface--home :is(.section-head h2, .services__intro h2, .origins__body h2) {
  margin: 0; color: #103e29; font-family: var(--font-display); font-size: clamp(27px, 2.35vw, 36px);
  font-weight: 720; line-height: 1.13; letter-spacing: -.035em;
}
.page-surface--home .section-sub { margin: 6px 0 0; color: #47534a; font-size: 15px; line-height: 1.45; }
.page-surface--home :is(.link-arrow,.product-card__link,.knowledge-card__more,.home-service-offers__link) { color: var(--brass); font-weight: 650; }
.page-surface--home .link-arrow { flex: none; margin: 0; }
.page-surface--home :is(.products-home__grid,.supplier-grid,.knowledge-home__grid,.markets-home__grid,.news-home__grid,.home-service-offers__grid) {
  gap: var(--grid-gap); margin-top: 18px;
}
.page-surface--home :is(.product-card,.supplier-card,.knowledge-card,.market-card,.home-service-offers__card) {
  border: 1px solid var(--card-line); border-radius: 8px; box-shadow: 0 3px 10px #2639230a; background: #fff;
}
.products-home .product-card__media { aspect-ratio: 16/9; }
.products-home .product-card__body { padding: 15px 19px 17px; }
.page-surface--home :is(.product-card__name,.supplier-card__name,.knowledge-card__title,.market-card__name,.news-card__body h3,.home-service-offers__title,.home-service-flow__card-title) {
  color: #17291e; font-size: 17px; line-height: 1.32; font-weight: 680;
}
.page-surface--home :is(.product-card__desc,.supplier-card__desc,.knowledge-card__desc,.market-card__desc,.news-card__desc,.home-service-flow__card-desc,.home-service-offers__desc,.service-card__desc) {
  color: #455148; font-size: 14px; line-height: 1.45;
}
.products-home .product-card__actions { flex-wrap: wrap; margin-top: 18px; }
@media (min-width: 1000px) {
  .page-index .hero__content { padding-left: clamp(20px, 2.2vw, 38px); }
  .products-home .section-head { display: grid; grid-template-columns: 1fr minmax(0, 3.4fr) 1fr; }
  .products-home .section-head > div { grid-column: 2; text-align: center; }
  .products-home .section-head .link-arrow { justify-self: end; }
}
.page-surface--home > .services {
  padding: clamp(24px, 2.1vw, 36px) 0; margin-top: 32px; border-radius: 0;
  background: var(--paper); box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax);
}
.page-surface--home .services__layout { grid-template-columns: 25% 1fr; column-gap: 3%; align-items: center; }
.page-surface--home .services__intro { padding: 8px 12% 8px 0; border-right: 1px solid #cbd5c7; }
.page-surface--home .services__grid { margin: 0; gap: 20px; }
.page-surface--home .service-card { gap: 0; }
.page-surface--home .service-card__icon { width: 43px; height: 43px; margin: 0 0 9px; }
.page-surface--home .service-card__title { color: var(--forest); font-size: 16px; }
.page-surface--home .service-card__desc { margin-top: 6px; }
.page-surface--home .featured { margin-top: 28px; }
.featured .supplier-card { display: flex; flex-direction: column; }
.featured .supplier-card__media { position: relative; aspect-ratio: 1.95; }
.media-note { position: absolute; left: 9px; bottom: 7px; z-index: 1; padding: 2px 7px; background: #172a20d9; border-radius: 3px; color: white; font-size: 11px; }
.featured .supplier-card__body { flex: 1; display: flex; align-items: start; flex-direction: column; padding: 14px 16px 16px; }
.featured .supplier-card__desc { flex: 1; }
.featured .supplier-card__badge { border-radius: 5px; background: #f5eddd; color: #78551e; }

.page-surface--home > .origins {
  position: relative; margin-top: 32px; padding: clamp(24px, 2.4vw, 40px) max(0px, 1%);
  min-height: clamp(272px, 23vw, 346px); isolation: isolate; overflow: visible; border-radius: 0;
  color: var(--forest); background: var(--paper); box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax);
}
.origins__bg { inset: 0 13% 0 calc(-1 * var(--gutter)); overflow: hidden; }
.origins__bg img { object-position: center 52%; }
.origins__shade { inset: 0 20% 0 calc(-1 * var(--gutter)); background: linear-gradient(90deg, #fafbf3 0%, #fafbf3f0 24%, #fafbf399 42%, transparent 68%); }
.origins__body { padding: 0; max-width: 40%; }
.page-surface--home .origins__body h2 { max-width: 15ch; font-size: clamp(30px, 2.7vw, 42px); text-wrap: balance; }
.origins__desc { margin: 14px 0 18px; max-width: 42ch; color: #263c2d; font-size: 15px; line-height: 1.5; }
.origins__details { position: absolute; inset: 0 0 0 auto; width: 20%; display: grid; grid-template-rows: 1fr 1fr; gap: 6px; padding-left: 6px; background: var(--paper); transform: skewX(-9deg); overflow: hidden; }
.origins__details img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 6px; }

.page-surface--home .home-service-flow__grid { gap: 40px; margin-top: 14px; padding: 0; background: none; }
.page-surface--home .home-service-flow__card {
  display: grid; grid-template-columns: 32px 40px 1fr; align-content: center; gap: 4px 12px;
  padding: 18px 16px; border-radius: 8px; background: var(--paper); border: 1px solid #e4e9e0;
}
.home-service-flow__card:not(:last-child)::after { content: none; }
.home-service-flow__num { width: 32px; height: 32px; grid-row: span 2; align-self: center; background: #478959; color: white; font-size: 18px; font-weight: 650; }
.home-service-flow__icon { width: 38px; height: 38px; grid-row: span 2; }
.home-service-flow__card-title,.home-service-flow__card-desc { grid-column: 3; margin: 0; }
.flow-arrow { position: absolute; right: -31px; top: calc(50% - 10px); color: var(--forest); }
.home-service-flow__card:last-child .flow-arrow { display: none; }
.page-surface--home .home-service-offers__card { display: grid; grid-template-columns: 43px 1fr; grid-template-rows: auto 1fr auto; gap: 4px 16px; min-height: 0; padding: 20px; }
.home-service-offers__icon { grid-row: 1/4; width: 43px; height: 43px; background: none; border: 0; border-radius: 0; margin: 0; }
.home-service-offers__link,.home-service-offers__desc { grid-column: 2; margin: 0; }
.home-service-offers__link { padding-top: 12px; justify-self: start; }

.knowledge-card { display: flex; flex-direction: column; }
.knowledge-card__media { aspect-ratio: 2.2; }
.knowledge-card__body { flex: 1; padding: 14px 17px 17px; }
.knowledge-card__more { margin-top: auto; padding-top: 13px; }
.knowledge-card__tag { top: 8px; left: 8px; background: #104a32f2; border-radius: 5px; padding: 3px 9px; }
.market-card__media { aspect-ratio: 2.85; }
.market-card__body { padding: 13px 15px; }
.news-home .news-card { align-items: flex-start; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.news-home .news-card__media { width: 32%; aspect-ratio: 1.13; border-radius: 6px; }
.news-home .news-card__body h3 { font-size: 15px; }
.news-card__desc { margin: 0; }
.news-card__link { align-self: end; padding: 3px; }
@media (min-width: 1000px) {
  .page-surface--home > :is(.home-service-flow,.home-service-offers,.knowledge-home,.markets-home,.news-home) { margin-top: clamp(26px, 2vw, 34px); }
}

.page-surface--home > .dual-cta { padding: 0; margin-block: 40px 32px; }
.dual-cta__grid { gap: 14px; }
.dual-card { min-height: 210px; background: #f6f5ed; }
.dual-card__bg { width: 55%; height: 100%; object-fit: cover; }
.dual-card::before { inset: 0; z-index: 1; background: linear-gradient(90deg,transparent 23%,#f6f5ed 51%); }
.dual-card__body { justify-content: center; gap: 9px; padding: 22px 6% 22px 46%; color: #152f21; }
.dual-card__body h2 { font-weight: 730; line-height: 1.12; letter-spacing: -.03em; }
.dual-card__body p { color: #34473a; font-size: 15px; line-height: 1.45; }
.dual-card__body .btn { margin-top: 5px; }
.dual-card--sell { background: var(--forest); }
.dual-card--sell .dual-card__bg { left: auto; right: 0; width: 60%; }
.dual-card--sell::before { background: linear-gradient(90deg,var(--forest) 34%,#104a32ed 51%,#104a3240 82%,transparent); }
.dual-card--sell .dual-card__body { padding: 22px 36% 22px 7%; color: white; }
.dual-card--sell p { color: white; }

@media (max-width: 1120px) {
  .page-index .header__tools { margin-left: auto; }
  .page-surface--home .services__layout { grid-template-columns: 1fr; gap: 18px; }
  .page-surface--home .services__intro { padding: 0; border: 0; }
  .page-surface--home .services__grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .home-service-flow__grid,.home-service-offers__grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .home-service-flow__grid > :last-child,.home-service-offers__grid > :last-child { grid-column: auto; }
  .page-surface--home .home-service-flow__grid { gap: 16px; }
  .page-surface--home .home-service-flow__card { grid-template-columns: 28px 1fr; gap: 5px 10px; }
  .home-service-flow__num { width: 28px; height: 28px; grid-row: 1; }
  .home-service-flow__icon { grid-column: 2; grid-row: 1; }
  .home-service-flow__card-title,.home-service-flow__card-desc { grid-column: 1/-1; }
  .flow-arrow { display: none; }
}
@media (max-width: 800px) {
  .page-index { --gutter: 22px; }
  .page-index .hero__title { font-size: clamp(36px, 6vw, 47px); }
  .page-index .cat { padding: 12px 4px; }
  .page-index .cats__bar { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .page-surface--home .services__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .page-surface--home .products-home__grid,.page-surface--home .supplier-grid,.page-surface--home .knowledge-home__grid,.page-surface--home .markets-home__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .page-surface--home .news-home__grid,.page-surface--home .home-service-flow__grid,.page-surface--home .home-service-offers__grid { grid-template-columns: 1fr; gap: 12px; }
  .page-surface--home .home-service-flow__card { grid-template-columns: 28px 38px 1fr; }
  .home-service-flow__num,.home-service-flow__icon { grid-row: span 2; }
  .home-service-flow__card-title,.home-service-flow__card-desc { grid-column: 3; }
  .news-home .news-card__media { width: 110px; }
  .origins__body { max-width: 58%; }
  .origins__details { right: 6px; }
  .dual-cta__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .page-index { --gutter: 16px; --section-space: 32px; --grid-gap: 12px; }
  .page-index .hero--home { min-height: 0; align-items: start; background: #f7f4e8; }
  .hero--home .hero__bg { height: 64%; top: auto; bottom: 0; object-position: 74% 62%; }
  .hero--home .hero__shade { background: linear-gradient(180deg,#f9f6eb 29%,#f9f6ebea 42%,#f9f6eb44 71%,transparent 85%); }
  .hero--home .hero__content { padding-block: 29px 106px; }
  .page-index .hero__title { font-size: clamp(33px, 8.6vw, 44px); }
  .hero--home .hero__tag { max-width: 37ch; margin-block: 10px 14px; font-size: 15px; }
  .hero--home .hero__search { height: 46px; }
  .hero--home .hero__search .btn { width: 42px; min-height: 0; }
  .home-search-scope { font-size: 13px; padding-left: 6px; }
  .hero--home .hero__search input { padding-inline: 8px; font-size: 13px; }
  .page-index .hero__actions { gap: 8px; margin-top: 10px; }
  .hero__actions .btn { min-height: 42px; padding: 8px 11px; font-size: 12px; }
  .page-index .cat__icon { width: 35px; height: 35px; }
  .page-index .cat__name { font-size: 12px; }
  .page-index .cat { gap: 5px; }
  .page-surface--home .section-head { display: block; }
  .page-surface--home .section-head .link-arrow { margin-top: 8px; }
  .page-surface--home .section-sub { font-size: 14px; }
  .products-home .product-card__body,.featured .supplier-card__body,.knowledge-card__body,.market-card__body { padding: 12px; }
  .page-surface--home :is(.product-card__name,.supplier-card__name,.knowledge-card__title,.market-card__name) { font-size: 15px; overflow-wrap: anywhere; }
  .page-surface--home :is(.product-card__desc,.supplier-card__desc,.knowledge-card__desc,.market-card__desc) { font-size: 13px; }
  .products-home .product-card__actions { gap: 6px 10px; }
  .products-home .product-card__sep { display: none; }
  .origins__details { display: none; }
  .origins__bg,.origins__shade { inset: 0 calc(-1 * var(--gutter)); }
  .origins__shade { background: linear-gradient(90deg,#fbfbf3f5 5%,#fbfbf3df 45%,#fbfbf33b 96%); }
  .origins__body { max-width: 78%; }
  .origins__desc { font-size: 14px; }
  .page-surface--home > .origins { min-height: 245px; padding-block: 22px; }
  .knowledge-card__media { aspect-ratio: 1.65; }
  .knowledge-card__tag { font-size: 10px; top: 4px; left: 4px; }
  .market-card__media { aspect-ratio: 2.2; }
  .dual-card__body p { font-size: 13px; }
  .dual-card__body h2 { font-size: 22px; }
  .dual-card { min-height: 176px; }
}
@media (max-width: 370px) {
  .page-surface--home .products-home__grid,.page-surface--home .supplier-grid,.page-surface--home .knowledge-home__grid { grid-template-columns: 1fr; }
}

