/* V16 visual polish — one editorial grid, one type hierarchy, neutral surfaces. */
:root{
  --v16-content:1180px;
  --v16-ink:#111b2b;
  --v16-body:#526176;
  --v16-muted:#6c7a8d;
  --v16-line:#dce3eb;
  --v16-soft:#f5f7fa;
  --v16-blue:#155fca;
  --v16-blue-dark:#0e4fae;
  --v16-amber:#f29a32;
  --v16-radius:18px;
}

body.v4{
  color:var(--v16-ink);
  background:#fff;
  font-feature-settings:"kern" 1,"liga" 1;
}
body.v4 .wrap{width:min(var(--v16-content),calc(100% - 40px));max-width:var(--v16-content)}

/* Shared header baseline. */
body.v4 header#top .nav{width:min(var(--v16-content),calc(100% - 40px));max-width:var(--v16-content)}
body.v4 header#top nav{gap:clamp(16px,1.7vw,28px)}
body.v4 header#top nav a{font-weight:720;letter-spacing:-.015em}
body.v4 header#top .navcta{padding:10px 17px!important}

/* Hero copy follows the same grid as the navigation. */
body.v4 .xhero>.wrap,
body.v4 .lineuphero>.wrap,
body.v4 .modelshophero>.wrap{
  width:min(var(--v16-content),calc(100% - 40px))!important;
  max-width:var(--v16-content)!important;
}
body.v4 .xhero .hx{max-width:540px}
body.v4 .xhero h1,
body.v4 .lineuphero h1{
  max-width:620px;
  font-size:clamp(48px,4.35vw,66px);
  line-height:.99;
  letter-spacing:-.052em;
  text-wrap:balance;
}
body.v4 .xhero .lead,
body.v4 .lineuphero p{
  max-width:530px;
  margin-top:18px;
  font-size:17px;
  line-height:1.72;
  letter-spacing:-.01em;
}
body.v4 .xhero .eyebrow,
body.v4 .lineuphero .eyebrow,
body.v4 .eyebrow{
  display:inline-block;
  margin-bottom:12px;
  font-size:12px;
  line-height:1.35;
  letter-spacing:.14em;
}
body.v4 .xhero .cta{margin-top:26px;gap:12px}
body.v4 .btn{min-height:48px;border-radius:999px;padding:13px 24px;font-weight:780;letter-spacing:-.01em}

/* Product photography remains untouched; copy gets a local reading surface. */
@media(min-width:821px){
  body.v4 .xhero.home .hx,
  body.v4 .hbg-features .hx{
    box-sizing:border-box;
    max-width:600px;
    padding:24px 26px 26px!important;
    border:1px solid rgba(255,255,255,.13);
    border-radius:22px;
    background:linear-gradient(135deg,rgba(5,13,24,.76),rgba(5,13,24,.44));
    box-shadow:0 18px 48px rgba(2,8,18,.15);
    backdrop-filter:blur(5px);
    -webkit-backdrop-filter:blur(5px);
  }
  body.v4 .xhero.home .lead,
  body.v4 .hbg-features .lead{
    max-width:500px;
    color:#d5deea!important;
  }
  html[lang="zh-CN"] body.v4 .hbg-features h1 .accent{white-space:nowrap}
  body.v4 .hbg-features h1{font-size:clamp(52px,3.9vw,60px)}
}

/* Editorial rhythm and typography. */
body.v4 section:not(.xhero):not(.lineuphero):not(.machinecatalog):not(.v12-annbar){
  padding-top:clamp(68px,7vw,96px);
  padding-bottom:clamp(68px,7vw,96px);
}
body.v4 .h2c,
body.v4 .bigen,
body.v4 .v12-section-head .h2c{
  max-width:820px;
  font-size:clamp(38px,4.1vw,54px);
  line-height:1.07;
  letter-spacing:-.045em;
  text-wrap:balance;
}
body.v4 .center>.wrap>.h2c,
body.v4 .center>.wrap>.bigen{margin-left:auto;margin-right:auto}
body.v4 .lead2,
body.v4 .cnsub{
  max-width:720px;
  margin-top:16px;
  color:var(--v16-body);
  font-size:16px;
  line-height:1.78;
}
body.v4 p{letter-spacing:-.005em}
body.v4 .soft{background:var(--v16-soft)}

/* Cards are quieter and align content consistently. */
body.v4 .card,
body.v4 .step,
body.v4 details{
  border-color:var(--v16-line);
  border-radius:var(--v16-radius);
}
body.v4 .card{box-shadow:0 10px 32px rgba(17,27,43,.045)}
body.v4 .card h3{color:var(--v16-ink);font-size:20px;line-height:1.3;letter-spacing:-.025em}
body.v4 .card p,
body.v4 details p,
body.v4 .tline .step p{color:var(--v16-body);line-height:1.72}
body.v4 .card:hover{border-color:#bdc9d7;box-shadow:0 18px 42px rgba(17,27,43,.08)}

/* Dark surfaces: white headline, cool-gray prose, amber micro-label. */
body.v4 .dark-sec h1,
body.v4 .dark-sec h2,
body.v4 .dark-sec h3,
body.v4 .dark-sec .h2c,
body.v4 .dark-sec .bigen,
body.v4 .dark-sec .bigen .hl,
body.v4 .v12-compliance h2{color:#f7f9fc!important}
body.v4 .dark-sec p,
body.v4 .dark-sec .cnsub,
body.v4 .v12-compliance-copy>p{color:#c7d1df!important}
body.v4 .dark-sec .eyebrow,
body.v4 .v12-compliance .eyebrow{color:#ffb04a!important}

/* Store catalogue: stronger product hierarchy and uncropped imagery. */
body.v4.store .seriesfilter{
  top:64px!important;
  margin-bottom:24px;
  border-color:var(--v16-line);
  border-radius:0 0 14px 14px;
  box-shadow:0 12px 28px rgba(17,27,43,.055);
}
body.v4.store .machinegrid{gap:20px}
body.v4.store .machinecard{
  border-color:var(--v16-line);
  border-radius:20px;
  box-shadow:0 10px 30px rgba(17,27,43,.05);
}
body.v4.store .machinephoto{background:#f0f3f7}
body.v4.store .machinephoto img{object-fit:contain!important;object-position:center!important}
body.v4.store .machinebody{padding:22px}
body.v4.store .machinebody h3{font-size:26px;line-height:1.15;letter-spacing:-.035em}
body.v4.store .machinelevel{display:block;margin-top:7px;color:var(--v16-blue-dark)!important;font-weight:760}
body.v4.store .bestfor{background:#f3f6fa;color:#26364a;border:1px solid #e8edf3}
body.v4.store .machineaction{min-height:46px;border-radius:11px;display:flex;align-items:center;justify-content:center}

/* Footer stays white but uses a clearer information hierarchy. */
body.v4 footer{padding-top:48px!important;padding-bottom:26px!important}
body.v4 footer h3{color:var(--v16-ink)!important;font-size:14px;letter-spacing:-.01em}
body.v4 footer p,body.v4 footer a{color:#5d6c7f!important;font-size:13px}
body.v4 footer .fbottom{margin-top:30px!important;padding-top:20px!important}

html[lang="en"] body.v4 .xhero h1,
html[lang="en"] body.v4 .lineuphero h1{font-size:clamp(46px,4vw,62px);letter-spacing:-.045em}
html[lang="en"] body.v4 .h2c,
html[lang="en"] body.v4 .bigen{font-size:clamp(36px,3.7vw,50px)}

@media(max-width:820px){
  body.v4 .wrap,
  body.v4 header#top .nav{width:calc(100% - 32px);max-width:none}
  body.v4 header#top .nav{width:100%;padding-left:16px!important;padding-right:16px!important}

  body.v4 .xhero>.wrap,
  body.v4 .lineuphero>.wrap,
  body.v4 .modelshophero>.wrap{
    width:100%!important;
    max-width:none!important;
    padding-left:24px!important;
    padding-right:24px!important;
  }
  body.v4 .xhero .hx{max-width:100%;gap:8px}
  body.v4 .xhero h1,
  body.v4 .lineuphero h1,
  html[lang="en"] body.v4 .xhero h1,
  html[lang="en"] body.v4 .lineuphero h1{
    max-width:100%;
    font-size:clamp(36px,9.8vw,42px);
    line-height:1.02;
    letter-spacing:-.048em;
  }
  body.v4 .xhero .lead,
  body.v4 .lineuphero p{font-size:14px;line-height:1.68;margin-top:12px}
  body.v4 .xhero .cta{margin-top:18px}
  body.v4 .btn{min-height:46px;padding:12px 20px}

  /* Local copy surface prevents text from crossing product highlights. */
  body.v4 .xhero.home .hx,
  body.v4 .v10-materials-hero .hx,
  body.v4 .v11-scenarios-hero .hx,
  body.v4 .v13-story-hero .hx,
  body.v4 .hbg-features .hx{
    padding:20px!important;
    border:1px solid rgba(255,255,255,.15)!important;
    border-radius:20px!important;
    background:linear-gradient(135deg,rgba(5,13,24,.86),rgba(5,13,24,.62))!important;
    box-shadow:0 18px 44px rgba(2,8,18,.2)!important;
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
  }

  body.v4 section:not(.xhero):not(.lineuphero):not(.machinecatalog):not(.v12-annbar){
    padding-top:52px;
    padding-bottom:52px;
  }
  body.v4 .h2c,
  body.v4 .bigen,
  body.v4 .v12-section-head .h2c,
  html[lang="en"] body.v4 .h2c,
  html[lang="en"] body.v4 .bigen{
    font-size:clamp(30px,8.5vw,38px);
    line-height:1.08;
  }
  body.v4 .lead2,body.v4 .cnsub{font-size:14px;line-height:1.7}

  /* Repair the legacy aspect-ratio width expansion on product cards. */
  body.v4.store .machinecard{display:block!important;min-height:0!important}
  body.v4.store .machinephoto{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:16/10!important;
  }
  body.v4.store .machinephoto img{width:100%!important;height:100%!important;object-fit:contain!important}
  body.v4.store .machinebody{width:100%;padding:18px}
  body.v4.store .machinebody h3{font-size:23px}
  body.v4.store .seriesfilter{margin-left:0;margin-right:0;margin-bottom:18px;border-radius:0 0 13px 13px}
}

@media(max-width:430px){
  body.v4 .xhero>.wrap,
  body.v4 .lineuphero>.wrap{padding-left:18px!important;padding-right:18px!important}
  body.v4 .xhero.home .hx,
  body.v4 .v10-materials-hero .hx,
  body.v4 .v11-scenarios-hero .hx,
  body.v4 .v13-story-hero .hx,
  body.v4 .hbg-features .hx{padding:18px!important}
}
