/* Homepage editorial refresh. Loaded after the legacy homepage styles. */
html body .hero-v2 {
  min-height: min(800px, 100svh);
  padding: 132px 0 64px;
  background: #f7f5f1;
}
html body .hero-v2 > .container {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
}
html body .hero-v2-text { text-align: left; }
html body .hero-v2-text h1 {
  max-width: 9em;
  font-size: clamp(42px, 4.3vw, 66px);
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: -.035em;
  margin-bottom: 22px;
  color: #272521;
}
html body .hero-v2-text h1 strong { color: #79563f; font-weight: 700; }
html body .hero-v2-text .tagline {
  max-width: 28em;
  font-size: 17px;
  line-height: 1.8;
  color: #5c5751;
  margin-bottom: 32px;
}
html body section.hero-v2 .hero-v2-stats { display: none !important; }
html body .hero-v2-actions { display: flex; justify-content: flex-start; gap: 12px; }
html body .hero-v2-actions a {
  min-height: 48px;
  padding: 13px 26px;
  border-radius: 7px;
  box-shadow: none;
  font-size: 15px;
}
html body .hero-v2-actions .btn-primary { background: #79563f; color: #fff; }
html body .hero-v2-actions .btn-outline { background: transparent; color: #79563f; border: 1px solid #ad9785; }
html body .hero-v2-image { display: block; aspect-ratio: 5 / 4; overflow: hidden; border-radius: 8px; box-shadow: none; }
html body .hero-v2-image img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }

html body .new-products-v2, html body .gallery-v2 { background: #f7f5f1; }
html body .new-products-v2, html body .gallery-v2, html body .about-v2 { padding-block: 84px; }
html body .section-header-v2 { margin-bottom: 34px; }
html body .section-header-v2 h2 { font-weight: 500; color: #272521; }
html body .section-kicker { font-size: 11px; letter-spacing: .12em; color: #79563f; }
html body .section-header-v2 .desc { font-size: 16px; color: #625c55; }

html body .new-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 278px;
  gap: 18px;
}
html body .new-card:nth-child(n) {
  display: flex !important;
  flex-direction: column;
  grid-column: span 1 !important;
  grid-row: span 1 !important;
  border: 1px solid #e4ded5;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden;
}
html body .new-card:not([data-featured]) { display: none !important; }
html body .new-card:nth-child(1) { grid-column: span 2 !important; grid-row: span 2 !important; }
html body .new-card .card-img {
  position: relative;
  inset: auto;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  border-radius: 0 !important;
}
html body .new-card .card-img::after { display: none; }
html body .new-card .card-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
html body .new-card .card-tag { display: none; }
html body .new-card:nth-child(1) .card-tag { display: block; top: 14px; left: 14px; padding: 4px 10px; border-radius: 4px; background: #79563f; color: #fff; }
html body .new-card:nth-child(1) .card-tag::after { content: none; }
html body .new-card .card-info, html body .new-card:nth-child(1) .card-info {
  position: static;
  flex: 0 0 auto;
  padding: 15px 17px !important;
  background: #fff;
  color: #272521;
}
html body .new-card:nth-child(1) .card-info { padding: 20px 22px !important; }
html body .new-card .card-info h3, html body .new-card:nth-child(1) .card-info h3 {
  color: #272521;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 650;
  margin: 0;
  text-shadow: none;
}
html body .new-card:nth-child(1) .card-info h3 { font-size: 21px; }
html body .new-card .card-info p, html body .new-card:nth-child(1) .card-info p {
  display: block !important;
  max-width: none !important;
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6a625b;
  text-shadow: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html body .new-card .product-points { display: none !important; }
html body .new-card:hover { transform: translateY(-2px) !important; border-color: #c8b5a5; }
html body .new-card:hover .card-img img { transform: scale(1.025); }

html body .gallery-scroll {
  display: grid !important;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr) !important;
  grid-template-rows: repeat(2, 224px) !important;
  grid-auto-rows: auto !important;
  grid-auto-flow: row !important;
  gap: 16px !important;
  overflow: visible !important;
  padding: 0 !important;
}
html body .gallery-item-v2:nth-child(n) {
  grid-column: auto !important;
  grid-row: auto !important;
  min-width: 0;
  border-radius: 8px !important;
  box-shadow: none;
  background: #e4ded5;
}
html body .gallery-item-v2:first-child { grid-row: span 2 !important; }
html body .gallery-item-v2 img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}
html body .gallery-item-v2:nth-child(2) img { object-position: 50% 60%; }
html body .gallery-item-v2 .caption {
  padding: 32px 17px 14px !important;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  background: linear-gradient(transparent, rgba(0,0,0,.58));
}
html body .gallery-item-v2:hover img { transform: scale(1.025); }

html body .wechat-float { background: #79563f !important; box-shadow: 0 5px 18px #34271c29 !important; }
html body .home-contact-anchor { display: block; scroll-margin-top: 88px; }
@media (max-width: 800px) {
  html body .hero-v2 { min-height: auto; padding: 110px 0 54px; }
  html body .hero-v2 > .container { grid-template-columns: minmax(0,1fr); gap: 28px; }
  html body .hero-v2-text h1 { font-size: clamp(34px, 8vw, 48px); }
  html body .hero-v2-image { aspect-ratio: 4 / 3; }
  html body .new-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: 380px 260px 260px; grid-auto-rows: 260px; gap: 12px; }
  html body .new-card:nth-child(1) { grid-column: span 2 !important; grid-row: span 1 !important; }
  html body .gallery-scroll { grid-template-rows: repeat(2,190px) !important; gap: 10px !important; }
}
@media (max-width: 600px) {
  html body .hero-v2 { padding: 104px 0 44px !important; }
  html body .hero-v2-text { text-align: left !important; }
  html body .hero-v2-text h1 { margin-bottom: 18px; }
  html body .hero-v2-text .tagline { font-size: 16px !important; line-height: 1.7; margin-bottom: 24px; }
  html body .hero-v2-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  html body .hero-v2-actions a { min-width: 0; padding: 12px 8px !important; font-size: 14px !important; white-space: nowrap; }
  html body .hero-v2-image { aspect-ratio: 1 / 1.04; }
  html body .new-products-v2, html body .gallery-v2, html body .about-v2 { padding-block: 60px !important; }
  html body .new-grid { grid-template-rows: 350px 244px 244px; grid-auto-rows: 244px; gap: 10px; }
  html body .new-card .card-info { padding: 12px !important; }
  html body .new-card:nth-child(1) .card-info { padding: 15px !important; }
  html body .new-card .card-info h3 { font-size: 14px; }
  html body .new-card:nth-child(1) .card-info h3 { font-size: 18px; }
  html body .new-card .card-info p { font-size: 12px; }
  html body .gallery-scroll { grid-template-columns: repeat(2,minmax(0,1fr)) !important; grid-template-rows: 260px 170px !important; }
  html body .gallery-item-v2:first-child { grid-column: span 2 !important; grid-row: span 1 !important; }
  html body .gallery-item-v2 .caption { font-size: 12px !important; padding: 22px 10px 9px !important; }
  html body .wechat-float { right: 14px !important; bottom: max(80px, env(safe-area-inset-bottom) + 70px) !important; width: 44px !important; height: 44px !important; }
  html body .wechat-float i { font-size: 22px !important; }
  html body .pt-launcher {
    left: 14px !important;
    bottom: max(18px, env(safe-area-inset-bottom) + 14px) !important;
    width: 46px;
    height: 46px;
    padding: 0 !important;
    border-radius: 8px !important;
    font-size: 0 !important;
    opacity: .7;
    box-shadow: 0 4px 14px #29262220 !important;
  }
  html[lang="zh-CN"] body .pt-launcher::before { content: "选料"; font-size: 12px; }
  html[lang^="en"] body .pt-launcher::before { content: "List"; font-size: 12px; }
  html body:has(.pt-item) .pt-launcher {
    width: auto;
    height: auto;
    padding: 12px 14px !important;
    font-size: 13px !important;
    opacity: 1;
  }
  html body:has(.pt-item) .pt-launcher::before { content: none; }
}
@media (prefers-reduced-motion: reduce) {
  html body .new-card, html body .new-card img, html body .gallery-item-v2 img { transition: none !important; }
}
