/* Haoyan walking-aids local preview site. Site-wide chrome follows the white + #E50A0E scheme.
   English homepage layout details remain in home.css. */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --accent: #E50A0E;
  --accent-hover: #C0090C;
  --title: #111111;
  --band: #F4F4F4;
  --teal-deep: #111111; /* remapped: near-black titles; no longer qingshi */
  --teal-mid: #E50A0E;  /* remapped: accent, not water-green */
  --stone: #FFFFFF;
  --paper: #FFFFFF;
  --ink: #1A1A1A;
  --muted: #5C5C5C;
  --sand: #E50A0E;
  --line: #E6E6E6;
  --max: 70rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--stone);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { color: var(--title); font-weight: 700; line-height: 1.25; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2.1rem, 4vw, 2.85rem); letter-spacing: -0.02em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1.25rem; padding-left: 1.25rem; }
li + li { margin-top: 0.35rem; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner, .nav-wrap, .site-main, .site-footer .footer-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.header-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.2rem;
  padding: 0.55rem 0 0.45rem;
}
.wordmark {
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.wordmark-logo {
  display: block;
  height: 3.5rem; /* 56px; vitality logo, width auto */
  width: auto;
  max-width: 14rem;
}
.wordmark-company,
.wordmark-tag {
  /* Company name is in the footer; keep markup for older pages, hide in the new header. */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.lang-switch {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding-top: 0;
  padding-left: 0.8rem;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}
.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.1rem;
}
.lang-switch a:hover { color: var(--accent); }
.lang-switch a[aria-current="true"] {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--accent);
}
.site-nav {
  border-top: 1px solid var(--line);
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}
.nav-list li {
  display: flex;
  align-items: center;
  margin: 0;
}
.nav-list li + li { margin-top: 0; } /* override the global li+li offset that dropped items after Home */
.nav-list li.nav-home {
  margin-right: 0.7rem; /* modest Home gap in the site-wide white header; 1.85rem was for the earlier layout */
}
.nav-list a {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.2;
  min-height: 2rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  box-sizing: border-box;
}
.nav-list a:hover { color: var(--accent); }
.nav-list a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--accent);
}

/* Line icons for the five existing placeholder category items only.
   Color follows the link (currentColor): ink, hover accent, current ink + red underline.
   Home / How We Work / About / Contact have no icons. */
.nav-icon {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: 0.25rem;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.nav-icon-ws { -webkit-mask-image: url("../img/icons/icon-hy-ws.png"); mask-image: url("../img/icons/icon-hy-ws.png"); }
.nav-icon-qc { -webkit-mask-image: url("../img/icons/icon-hy-qc.png"); mask-image: url("../img/icons/icon-hy-qc.png"); }
.nav-icon-tc { -webkit-mask-image: url("../img/icons/icon-hy-tc.png"); mask-image: url("../img/icons/icon-hy-tc.png"); }
.nav-icon-ts { -webkit-mask-image: url("../img/icons/icon-hy-ts.png"); mask-image: url("../img/icons/icon-hy-ts.png"); }
.nav-icon-rt { -webkit-mask-image: url("../img/icons/icon-hy-rt.png"); mask-image: url("../img/icons/icon-hy-rt.png"); }


.site-main { padding: 2rem 0 3.5rem; }
.lede { font-size: 1.08rem; max-width: 46rem; }
.muted, .caption, figcaption { color: var(--muted); font-size: 0.92rem; }
.kicker {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-mid);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.75rem;
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
}
.hero-figure, .shot, .card figure {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.7rem;
}
.hero-figure img, .shot img, .card figure img { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 0; }

.btn {
  display: inline-block;
  padding: 0.68rem 1.15rem;
  font: inherit;
  font-weight: 700;
  border: 1px solid var(--accent);
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.btn-primary:hover, .btn-primary:focus { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--paper); }
.btn-secondary { background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); }
.btn-secondary:hover, .btn-secondary:focus { background: var(--paper); border-color: var(--accent); color: var(--accent); }

.section { margin: 2.5rem 0; }
.section-head { margin-bottom: 1.1rem; }
.grid-5, .grid-2, .grid-3, .shots {
  display: grid;
  gap: 1rem;
}
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.shots { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 1rem 0 0.5rem; }

.card, .panel, .step {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1rem 1.05rem 1.15rem;
}
.card { text-decoration: none; color: inherit; display: block; }
.card:hover { border-color: var(--teal-mid); }
.card h3 { font-size: 1.05rem; margin: 0.7rem 0 0.2rem; }
.card .code { font-weight: 700; color: var(--teal-mid); font-size: 0.85rem; letter-spacing: 0.04em; }
.step h3 { font-size: 1.05rem; }
.step .n {
  display: inline-block;
  color: var(--sand);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.notice {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sand);
  padding: 0.85rem 1rem;
  margin: 0 0 1.5rem;
}
.legal-block {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 0.25rem;
  margin-top: 2rem;
}
.legal-block + .legal-block { border-top: 0; padding-top: 0; }

.form {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.25rem 1.3rem 1.4rem;
  max-width: 40rem;
}
.form label { display: block; font-weight: 600; margin: 0.85rem 0 0.3rem; }
.form input, .form select, .form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.5rem 0.6rem;
}
.form textarea { min-height: 8rem; resize: vertical; }
.form .hint { font-size: 0.88rem; color: var(--muted); margin-top: 0.75rem; }
.form-status {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--sand);
  background: var(--stone);
  display: none;
}
.form-status.is-visible { display: block; }

.related { display: flex; flex-wrap: wrap; gap: 0.6rem 1.1rem; }
.model { margin: 1.75rem 0; }
.model h3 { margin-bottom: 0.35rem; }

.site-footer {
  background: #EFEFEF;
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer p { margin: 0 0 0.4rem; }
.site-footer .foot-links { margin-top: 0.9rem; }
.site-footer .foot-links a { margin-right: 1rem; }
.copyright { margin-top: 0.9rem; }

@media (max-width: 1040px) {
  .lang-switch {
    flex-wrap: wrap;
    white-space: normal;
    border-left: 0;
    padding-left: 0;
    justify-content: flex-end;
  }
}


/* Unified header bar + grouped navigation (all pages) */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.header-bar {
  max-width: 76rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "logo . lang"
    "nav nav nav";
  align-items: center;
  column-gap: 1.2rem;
  row-gap: 0.15rem;
  padding: 0.55rem 1.4rem 0.45rem;
}
.header-bar .wordmark { grid-area: logo; }
.header-bar .site-nav { grid-area: nav; border-top: 1px solid var(--line); padding: 0.2rem 0 0.25rem; }
.header-bar .lang-switch { grid-area: lang; }
.nav-list { justify-content: center; gap: 0.1rem 0.85rem; }
.nav-item { position: relative; margin: 0; }
.nav-trigger {
  display: inline-flex;
  align-items: center;
  font: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.2;
  min-height: 2rem;
  padding: 0.3rem 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  box-sizing: border-box;
}
.nav-trigger:hover { color: var(--accent); }
.nav-trigger[aria-current="page"],
.nav-item.is-current .nav-trigger,
.nav-item.is-open .nav-trigger {
  font-weight: 700;
  border-bottom-color: var(--accent);
}
.nav-trigger::after {
  content: "";
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  margin-left: 0.35rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}
.nav-sub {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% - 2px);
  min-width: 14rem;
  margin: 0;
  padding: 0.45rem 0;
  list-style: none;
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  z-index: 30;
}
.nav-sub li { margin: 0; display: block; }
.nav-sub a {
  display: block;
  padding: 0.4rem 0.9rem;
  min-height: 0;
  font-weight: 600;
  font-size: 0.8rem;
  border-bottom: 0;
  white-space: nowrap;
}
.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub,
.nav-item.is-open .nav-sub,
body.nav-preview-open .nav-item-sticks .nav-sub {
  display: block;
}
body.nav-preview-open .nav-item-sticks { z-index: 31; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  gap: 1rem;
  margin: 1.1rem 0 0.5rem;
}
.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.6rem 0.6rem 0.85rem;
}
.product-card figure { margin: 0; background: #FAFAFA; border: 0; padding: 0.4rem; }
.product-card img { width: 100%; height: 12rem; object-fit: contain; }
.product-card figcaption { margin-top: 0.45rem; color: var(--muted); font-size: 0.8rem; line-height: 1.4; }
.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.cat-hero {
  display: grid;
  grid-template-columns: minmax(16rem, 0.85fr) minmax(16rem, 1.15fr);
  gap: 1.5rem;
  align-items: start;
  margin: 0 0 2rem;
}
.cat-hero figure {
  background: #FAFAFA;
  border: 1px solid var(--line);
  padding: 0.8rem;
  margin: 0;
}
.cat-hero img { width: 100%; max-height: 26rem; object-fit: contain; margin: 0 auto; }
.more-cats { display: flex; flex-wrap: wrap; gap: 0.55rem 1rem; }
.home-more {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 0 2.2rem;
}
.home-more h2 { font-size: 1.1rem; margin-bottom: 0.7rem; }
@media (max-width: 800px) {
  .cat-hero { grid-template-columns: 1fr; }
  .header-bar {
    grid-template-columns: auto 1fr;
    grid-template-areas: "logo lang" "nav nav";
  }
}


/* Innovation category and product pages (local preview) */
.product-card h2 {
  font-size: 1rem;
  line-height: 1.3;
  margin: 0.35rem 0 0.45rem;
  font-weight: 700;
}
.product-card h2 a {
  color: inherit;
  text-decoration: none;
}
.product-card h2 a:hover,
.product-card h2 a:focus {
  color: var(--accent);
}
.product-card .card-note {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
.spec-intro { margin: 0 0 0.7rem; }
.spec-list {
  margin: 0 0 1.2rem;
  padding-left: 1.15rem;
}
.spec-list li { margin: 0 0 0.45rem; }
.product-detail-grid img { height: 18rem; }
.crumb {
  margin: 0 0 1rem;
  font-size: 0.86rem;
}
.crumb a { color: inherit; }
