/* ZVVEN home layout 375 — 2026-11-03
   Merged package:
   A) video controls top-right + soft official-store text links (from zvven-home-video-ctrl-20261103)
   B) mobile-first homepage layout: series compact/scroll, about shorten, support cards, footer polish
   Scope: homepage body.zf-home / home sections only where noted.
*/

/* =====================================================================
   A) Video controls + purchase de-dupe (from zvven-home-video-ctrl-20261103)
   ===================================================================== */

/* ----- Video controls: top-right, clear of H1 / CTA / meta ----- */
.zf-hero--video .zf-hero-video__controls{
  top:clamp(12px,2.2vw,28px)!important;
  right:clamp(12px,2.8vw,40px)!important;
  bottom:auto!important;
  left:auto!important;
  z-index:4!important;
  gap:8px!important;
}

.zf-hero--video .zf-hero-video__controls .zf-hero-video__toggle,
.zf-hero--video .zf-hero-video__controls .zf-hero-video__audio{
  position:static!important;
  min-width:40px!important;
  min-height:40px!important;
  height:40px!important;
  box-sizing:border-box!important;
}

/* Desktop: keep readable labels; reserve space so meta never fights controls */
@media (min-width:821px){
  .zf-hero--video .zf-hero-video__meta{
    padding-right:min(280px,32vw)!important;
    max-width:min(640px,100%)!important;
    box-sizing:border-box!important;
  }
  .zf-hero--video .zf-hero-video__controls .zf-hero-video__toggle,
  .zf-hero--video .zf-hero-video__controls .zf-hero-video__audio{
    padding:0 14px!important;
  }
}

/* Mobile / compact: round icon buttons; text stays for a11y (visually hidden) */
@media (max-width:820px){
  .zf-hero--video .zf-hero-video__controls{
    /* Pin to the video frame top-right (section starts with the video) */
    top:10px!important;
    right:10px!important;
    gap:8px!important;
  }
  .zf-hero--video .zf-hero-video__controls .zf-hero-video__audio,
  .zf-hero--video .zf-hero-video__controls .zf-hero-video__toggle{
    width:40px!important;
    min-width:40px!important;
    max-width:40px!important;
    height:40px!important;
    min-height:40px!important;
    padding:0!important;
    justify-content:center!important;
    border-radius:999px!important;
    gap:0!important;
    font-size:0!important; /* hide the "暂停" text node visually */
    line-height:0!important;
  }
  .zf-hero--video .zf-hero-video__controls .zf-hero-video__audio b{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;
    border:0!important;
  }
  .zf-hero--video .zf-hero-video__controls .zf-hero-video__audio span[aria-hidden="true"]{
    font-size:18px!important;
    line-height:1!important;
    margin:0!important;
  }
  .zf-hero--video .zf-hero-video__controls .zf-hero-video__toggle span{
    margin:0!important;
  }
  /* Meta tags live under the video on mobile; keep them clear of any leftover overlays */
  .zf-hero--video .zf-hero-video__meta{
    margin-right:0!important;
    padding-right:0!important;
  }
}

/* ----- Soften duplicate store CTAs in .zf-video-purchase (hero already has JD/Tmall) ----- */
.zf-video-purchase .zf-store-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:8px 18px!important;
  margin:8px 0 0!important;
  max-width:none!important;
}
.zf-video-purchase .zf-store-btn,
.zf-video-purchase .zf-store-btn--jd,
.zf-video-purchase .zf-store-btn--tmall{
  display:inline-flex!important;
  grid-template-columns:none!important;
  align-items:center!important;
  gap:6px!important;
  height:auto!important;
  min-height:36px!important;
  padding:6px 2px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#6b5f56!important;
  transform:none!important;
  text-decoration:none!important;
}
.zf-video-purchase .zf-store-btn:hover,
.zf-video-purchase .zf-store-btn:focus-visible{
  color:#9c3427!important;
  background:transparent!important;
  box-shadow:none!important;
  transform:none!important;
  text-decoration:underline!important;
  text-underline-offset:3px!important;
}
.zf-video-purchase .zf-store-btn span{
  display:none!important; /* drop the red-chip "京东/天猫" badge */
}
.zf-video-purchase .zf-store-btn b{
  font-size:14px!important;
  font-weight:600!important;
  letter-spacing:0!important;
  color:inherit!important;
}
.zf-video-purchase .zf-store-btn i{
  font-style:normal!important;
  font-size:14px!important;
  color:inherit!important;
  opacity:.7;
}
@media (max-width:820px){
  .zf-video-purchase .zf-store-actions{
    margin-top:4px!important;
    gap:6px 14px!important;
  }
  .zf-video-purchase .zf-store-btn b{
    font-size:13px!important;
  }
}

/* =====================================================================
   B) Layout 375 — series / about / support / footer
   ===================================================================== */

/* Hide duplicate “探索产品系列” if any leftover markup remains */
body.zf-home .zf-about .zf-about__link{
  display:none!important;
}

/* Weaken large ZVVEN watermark behind about */
body.zf-home .zf-about:before{
  opacity:.45!important;
  font-size:110px!important;
  color:rgba(110,36,27,.022)!important;
  right:-18px!important;
  bottom:-36px!important;
}

/* About: shorter visual, fix stacked detail overflow / whitespace */
body.zf-home .zf-about__visual{
  height:520px!important;
  overflow:hidden!important;
}
body.zf-home .zf-about__main{
  inset:0 14% 10% 0!important;
}
body.zf-home .zf-about__detail{
  width:36%!important;
  height:38%!important;
  right:0!important;
  bottom:0!important;
  border-width:6px!important;
  box-sizing:border-box!important;
  max-width:100%!important;
}
body.zf-home .zf-about__copy h2{
  font-size:clamp(28px,3.2vw,42px)!important;
  margin:14px 0 18px!important;
}
body.zf-home .zf-about__copy>p:not(.zf-about__lead){
  /* keep second paragraph quieter / shorter feel */
  font-size:14px!important;
  line-height:1.85!important;
}

/* Support: match shell padding of other sections; stronger numbers; unify borders */
body.zf-home .zf-support-shell{
  width:min(1180px,calc(100% - 40px))!important;
}
body.zf-home .zf-support-card{
  border:1px solid #e0d2c2!important;
  border-radius:12px!important;
  padding:22px 20px!important;
}
body.zf-home .zf-support-card__mark{
  color:#8f3025!important;
  font-size:13px!important;
  font-weight:700!important;
  letter-spacing:.14em!important;
  opacity:1!important;
}

/* Footer store buttons: single-line labels */
body.zf-home .zf-footer__store,
body.zf-home .zf-footer__store span{
  white-space:nowrap!important;
}
body.zf-home .zf-footer__stores{
  min-width:0!important;
}
body.zf-home .zf-footer__store{
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

/* Footer phones look like links when wrapped in tel: */
body.zf-home .zf-footer__contact a[href^="tel:"]{
  color:inherit!important;
  text-decoration:none!important;
  border-bottom:1px solid rgba(248,242,233,.35);
}
body.zf-home .zf-footer__contact a[href^="tel:"]:hover,
body.zf-home .zf-footer__contact a[href^="tel:"]:focus-visible{
  border-bottom-color:rgba(248,242,233,.85);
}

/* Powered by EyouCms — homepage-only hide (footer.htm is shared sitewide) */
body.zf-home .zf-footer__bottom a[href*="eyoucms.com"],
body.zf-home .zf-footer__bottom a[href*="powerby.php"]{
  display:none!important;
}

/* ---------- Mobile / 375 first ---------- */
@media (max-width:820px){
  /* Series: horizontal scroll compact cards — avoid full-screen stacked banquet photos */
  body.zf-home .zf-products{
    padding-top:42px!important;
    padding-bottom:36px!important;
  }
  body.zf-home .zf-products .zf-section__head{
    margin-bottom:18px!important;
  }
  body.zf-home .zf-products .zf-section__head h2{
    font-size:26px!important;
    line-height:1.3!important;
  }
  body.zf-home .zf-products .zf-section__head>p{
    font-size:13px!important;
    line-height:1.65!important;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
  body.zf-home .zf-product-grid{
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:12px!important;
    overflow-x:auto!important;
    overscroll-behavior-x:contain;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    padding:2px 2px 10px!important;
    margin:0 -2px!important;
    scrollbar-width:thin;
  }
  body.zf-home .zf-product-grid::-webkit-scrollbar{height:4px}
  body.zf-home .zf-product{
    flex:0 0 min(78%,280px)!important;
    width:min(78%,280px)!important;
    max-width:280px!important;
    scroll-snap-align:start;
    border-radius:18px!important;
    box-shadow:0 8px 24px rgba(80,54,37,.06)!important;
  }
  body.zf-home .zf-product figure{
    height:132px!important;
  }
  body.zf-home .zf-product figure img{
    object-fit:cover!important;
    /* Prefer product/panel framing over large banquet scenes matching hero */
    object-position:center 35%!important;
  }
  body.zf-home .zf-product img.zf-product__rosewood-feast{
    object-position:center 42%!important;
  }
  body.zf-home .zf-product__body{
    padding:14px 14px 16px!important;
  }
  body.zf-home .zf-product__body>span{
    font-size:9px!important;
    letter-spacing:.14em!important;
  }
  body.zf-home .zf-product__body h3{
    font-size:17px!important;
    margin:6px 0 6px!important;
  }
  body.zf-home .zf-product__body p{
    display:none!important; /* compact: title + CTA only on phone */
    min-height:0!important;
  }
  body.zf-home .zf-product__body b{
    margin-top:8px!important;
    font-size:12px!important;
    font-weight:700!important;
  }

  /* About: reduce image stack; fix overflow / right whitespace */
  body.zf-home .zf-about{
    padding-top:40px!important;
    padding-bottom:40px!important;
  }
  body.zf-home .zf-about__visual{
    height:240px!important;
    width:100%!important;
    max-width:100%!important;
    overflow:hidden!important;
    margin:0!important;
  }
  body.zf-home .zf-about__main{
    inset:0 0 0 0!important; /* full-bleed main; kill right gutter */
    border-radius:18px!important;
  }
  body.zf-home .zf-about__detail{
    width:40%!important;
    height:42%!important;
    right:10px!important;
    bottom:10px!important;
    border-width:4px!important;
    border-radius:12px!important;
  }
  body.zf-home .zf-about__grid{
    gap:22px!important;
  }
  body.zf-home .zf-about__copy h2{
    font-size:26px!important;
    margin:10px 0 12px!important;
  }
  body.zf-home .zf-about__copy .zf-about__lead{
    font-size:14px!important;
    line-height:1.75!important;
  }
  body.zf-home .zf-about__values{
    margin-top:16px!important;
  }
  body.zf-home .zf-about__values article{
    padding:12px 0!important;
    gap:10px!important;
  }
  body.zf-home .zf-about:before{
    font-size:72px!important;
    opacity:.35!important;
  }

  /* Support four cards: single column (readable width), matched side padding */
  body.zf-home .zf-support{
    padding:36px 0!important;
  }
  body.zf-home .zf-support-head{
    margin-bottom:16px!important;
  }
  body.zf-home .zf-support-shell{
    width:calc(100% - 32px)!important; /* closer to .zf-shell gutters on phone */
  }
  body.zf-home .zf-support-grid{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  body.zf-home .zf-support-card{
    padding:16px 16px 18px!important;
    min-width:0!important;
  }
  body.zf-home .zf-support-card h3{
    font-size:17px!important;
    padding-right:28px!important;
  }
  body.zf-home .zf-support-card p{
    font-size:14px!important;
    line-height:1.7!important;
    max-width:none!important;
    word-break:normal!important;
    overflow-wrap:anywhere; /* allow but don't force 5–6 char columns */
  }
  body.zf-home .zf-support-card__mark{
    font-size:14px!important;
    margin-bottom:8px!important;
  }

  /* Footer buy buttons stay one line */
  body.zf-home .zf-footer__store{
    min-height:46px!important;
    padding:0 12px!important;
    font-size:13px!important;
    white-space:nowrap!important;
  }
  body.zf-home .zf-footer__store span{
    font-size:12px!important;
  }
}

@media (max-width:420px){
  body.zf-home .zf-product{
    flex-basis:82%!important;
    width:82%!important;
  }
  body.zf-home .zf-product figure{
    height:120px!important;
  }
  body.zf-home .zf-about__visual{
    height:220px!important;
  }
}

/* Entry de-dupe: OFFICIAL STORE keeps authenticity copy; hide big/muted JD/Tmall destinations
   so first-screen store entries come only from hero CTA (footer remains the other place). */
body.zf-home .zf-video-purchase .zf-store-actions{
  display:none!important;
}
