/* HOHIILIFE 2D visual convergence layer (2026-08-28) — converge zh/en families, no redesign */
:root{
  --hhl-maxw: 1280px;
  --hhl-h1: clamp(2.0rem, 4vw, 3.2rem);
  --hhl-h2: clamp(1.5rem, 2.6vw, 2.1rem);
  --hhl-h3: clamp(1.1rem, 1.5vw, 1.3rem);
  --hhl-radius: 16px;
  --hhl-btn-radius: 999px;
}
/* consistent heading scale across both families */
.wpb_wrapper h1, .hhl-page-about h1, .hhl-section h1{ font-size: var(--hhl-h1); line-height: 1.15; letter-spacing: -0.01em; }
.wpb_wrapper h2, .hhl-section h2, .hhl-page-about h2{ font-size: var(--hhl-h2); line-height: 1.25; }
.wpb_wrapper h3, .hhl-section h3, .hhl-page-about h3{ font-size: var(--hhl-h3); line-height: 1.4; }
/* section rhythm */
.hhl-section{ padding: 72px 0; }
.hhl-section-intro{ margin-bottom: 40px; }
/* buttons / CTA consistent */
.hhl-btn{ border-radius: var(--hhl-btn-radius); font-weight: 600; transition: transform .15s ease, opacity .15s ease; }
.hhl-btn:hover{ transform: translateY(-1px); }
.nectar-button{ border-radius: var(--hhl-btn-radius) !important; font-weight: 600; }
/* forms consistent */
.ff-el-form-control, .ff-el-input--content input, .ff-el-input--content textarea,
input[type="text"], input[type="email"], input[type="tel"], textarea{
  border-radius: 12px; padding: 12px 16px; }
/* cards consistent */
.hhl-product-card, .hhl-stat-row article, .hhl-media-row{ border-radius: var(--hhl-radius); }
/* content width cap for hhl templates */
.hhl-wrap{ max-width: var(--hhl-maxw); margin: 0 auto; }
@media (max-width: 999px){
  .hhl-section{ padding: 48px 0; }
  h1{ letter-spacing: 0; }
}

/* 2D.1 editorial family (white) — zh/en 核心内容页 */
.hhl-e-hero{ padding: 72px 24px 56px; max-width: var(--hhl-maxw); margin: 0 auto; }
.hhl-e-kicker{ color: #0D955A; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.hhl-e-hero h1{ font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.1; margin: 16px 0; }
.hhl-e-lead{ font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 62ch; color: #444; line-height: 1.7; }
.hhl-e-section{ padding: 56px 24px; max-width: var(--hhl-maxw); margin: 0 auto; }
.hhl-e-section h2{ font-size: var(--hhl-h2); margin-bottom: 16px; }
.hhl-e-section p{ max-width: 72ch; line-height: 1.75; color: #333; }
.hhl-e-steps{ display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 20px; margin-top: 28px; }
.hhl-e-step{ background: #f5f7f5; border: 1px solid #e4ebe4; border-radius: var(--hhl-radius); padding: 22px; }
.hhl-e-step span{ color: #0D955A; font-weight: 700; }
.hhl-e-step h3{ margin: 8px 0; }
.hhl-e-grid{ display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 22px; margin-top: 28px; }
.hhl-e-card{ border: 1px solid #e4ebe4; border-radius: var(--hhl-radius); padding: 24px; }
.hhl-e-card .hhl-btn{ margin-top: 14px; display: inline-block; }
.hhl-e-tag{ color: #0D955A; font-size: .82rem; font-weight: 600; }
.hhl-e-note{ color: #777; font-size: .9rem; margin-top: 18px; }
.hhl-e-cta{ background: #0D955A; color: #fff; text-align: center; padding: 56px 24px; margin-top: 24px; }
.hhl-e-cta h2{ color: #fff; }
.hhl-e-cta p{ color: rgba(255,255,255,.9); }
.hhl-e-actions{ margin-top: 20px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
/* 包面/白底保证 + 表单移出普通内容页 */

body.page-id-5433 .nectar-global-section.before-footer, body.page-id-5434 .nectar-global-section.before-footer, body.page-id-5435 .nectar-global-section.before-footer, body.page-id-9 .nectar-global-section.before-footer, html:lang(en) body.page-id-1806 .nectar-global-section.before-footer{ display: none; }
/* 隐藏可见面包屑（含 Harbor 残留），schema 保留 */
#breadcrumbs.yoast{ display: none; }
/* 页脚社交不折行 */
.nectar-global-section.before-footer .nectar-cta .link_text{ white-space: nowrap; display: inline-block; }
@media (max-width: 999px){
  .hhl-e-hero{ padding: 48px 18px 40px; }
  .hhl-e-section{ padding: 40px 18px; }
  .hhl-e-actions{ justify-content: flex-start; }
}
/* 2D.1 hardening: 表单区块在普通内容页强制隐藏 */
body.page-id-5433 .nectar-global-section.before-footer,
body.page-id-5434 .nectar-global-section.before-footer,
body.page-id-5435 .nectar-global-section.before-footer,
body.page-id-9 .nectar-global-section.before-footer,
html:lang(en) body.page-id-1806 .nectar-global-section.before-footer{ display:none !important; }

/* 2D.3: 修复 /en/products/ 等页 min-width:1000px 导致的移动端固定宽度溢出 */
@media (max-width: 999px){
  body .container, body .wpb_row, body .vc_row, body .hhl-wrap, body .row,
  body .wpb_column, body .full-width-content{ min-width: 0 !important; max-width: 100% !important; }
  body{ overflow-x: hidden; }
}
/* Partnership 页 hero 顶部留白，避免标题顶撞 Header */
.page-id-1640 .hhl-index-subpage-hero{ padding-top: clamp(48px, 8vw, 120px); }
.page-id-1640 .hhl-index-subpage-hero .wpb_wrapper, .page-id-1640 .hhl-index-subpage-hero .vc_column-inner{ padding-top: 0 !important; }
@media (max-width: 999px){
  .page-id-1640 .hhl-index-subpage-hero{ padding-top: 56px; }
}

/* 2D.3b: 防止未约束大图（如 mock-product.svg 1602px）溢出容器 */
.hhl-hero-media img, .hhl-product-card-media img, .hhl-e-product-media img,
.wpb_wrapper img, article img{ max-width: 100%; height: auto; display: inline-block; }

/* 2D.4: 圆角降级 —— 从默认圆角矩形到功能控件级稍小圆角 */
:root{ --hhl-radius: 8px; --hhl-btn-radius: 6px; }
.hhl-btn{ border-radius: 6px; }
.hhl-e-card, .hhl-product-card{ border-radius: 0; box-shadow: none; border: none; border-bottom: 1px solid #e4ebe4; padding: 18px 0; }
.hhl-e-step{ border-radius: 6px; }
.hhl-e-product-media img, .hhl-hero-media img, .hhl-product-card-media img{ border-radius: 4px; }
.ff-el-form-control, .ff-el-input--content input, .ff-el-input--content textarea,
input[type="text"], input[type="email"], input[type="tel"], textarea{ border-radius: 6px; }
.hhl-e-tag, .hhl-chip, .hhl-proof-chip{ background: transparent; color: #0D955A; border-radius: 0; font-weight: 600; padding: 0; }
.hhl-e-cta{ border-radius: 0; }
.hhl-market-cta{ margin-top: 14px; }

/* 2D.4: 官网非价格 authority —— 商品页显示层不展示价格（JSON-LD 清理归 Batch4） */
body.single-product .price, body.woocommerce div.product p.price, body.woocommerce span.price,
body.single-product .woocommerce-Price-amount{ display: none !important; }

/* purchase-float retired in 2D.5-F: single-product uses native external CTA */

/* 2D.5 exception: EN About 用 GS Brand CTA 代替默认 Signal Footer 表单 */
html:lang(en) body.page-id-10 .nectar-global-section.before-footer{ display:none !important; }
