/* ==========================================================================
   XYZCHU shell — utility bar, masthead and footer.
   Ported from the approved preview shell (调研/preview/assets/site.css). Every
   rule is namespaced `xyzc-` and a descendant of a shell block, so nothing here
   reaches into the page content (home sections, catalogue, contact forms).
   Loaded after site.css, which it overrides only inside `.xyzc-lang`.
   ========================================================================== */

@font-face{font-family:'Archivo';font-style:normal;font-weight:300;font-display:swap;src:url('home/fonts/archivo-300-latin.woff2') format('woff2')}
@font-face{font-family:'Archivo';font-style:normal;font-weight:400;font-display:swap;src:url('home/fonts/archivo-400-latin.woff2') format('woff2')}
@font-face{font-family:'Archivo';font-style:normal;font-weight:500;font-display:swap;src:url('home/fonts/archivo-500-latin.woff2') format('woff2')}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url('home/fonts/ibm-plex-sans-400-latin.woff2') format('woff2')}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:500;font-display:swap;src:url('home/fonts/ibm-plex-sans-500-latin.woff2') format('woff2')}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap;src:url('home/fonts/ibm-plex-sans-600-latin.woff2') format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('home/fonts/ibm-plex-mono-400-latin.woff2') format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('home/fonts/ibm-plex-mono-500-latin.woff2') format('woff2')}

/* Tokens live on the shell blocks rather than :root: the legacy stylesheet
   already owns --ink/--paper/--line at :root, and changing those would restyle
   every ported and legacy page body. */
.xyzc-utility,
.xyzc-header,
.xyzc-footer {
  --ink: #11151A;
  --ink-2: #2C333A;
  --muted: #5E6772;
  --paper: #FFFFFF;
  --paper-2: #F2F5F8;
  --accent-900: #0B2C49;
  --accent-600: #125F96;
  --accent-100: #E2EFF8;
  --copper: #C9601F;
  --line: #E1E6EB;
  --font-display: "Archivo", "Noto Sans SC", sans-serif;
  --font-body: "IBM Plex Sans", "Noto Sans SC", sans-serif;
  --font-mono: "IBM Plex Mono", "Noto Sans Mono", monospace;
  --xyzc-shell: 1320px;
  --xyzc-gutter: 32px;
  color: var(--ink);
  font-family: var(--font-body);
}

.xyzc-utility *,
.xyzc-header *,
.xyzc-footer * { box-sizing: border-box; }

.xyzc-shell {
  width: min(100% - 2 * var(--xyzc-gutter), var(--xyzc-shell));
  margin-inline: auto;
}

/* ------------------------------------------------------------ utility --- */

.xyzc-utility {
  background: var(--accent-600);
  color: #EAF1FF;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  line-height: 1.4;
}
.xyzc-utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 34px;
}
.xyzc-utility__left,
.xyzc-utility__right { display: flex; align-items: center; gap: 22px; }
.xyzc-utility a { color: #EAF1FF; text-decoration: none; }
.xyzc-utility a:hover { color: #fff; }
.xyzc-dot { width: 3px; height: 3px; background: var(--copper); border-radius: 50%; flex: none; }

/* The language box keeps its <details> behaviour but drops the white card so
   it sits on the blue bar like the phone and WhatsApp links beside it. */
.xyzc-lang { position: relative; display: flex; align-items: center; }
.xyzc-lang .lang-switch {
  position: relative;
  display: inline-block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #EAF1FF;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
}
.xyzc-lang .lang-switch summary { display: flex; align-items: center; gap: 4px; padding-right: 0; cursor: pointer; }
.xyzc-lang .lang-switch-current,
.xyzc-lang .lang-switch-menu a {
  gap: 6px;
  padding: 2px 0;
  min-height: 0;
  color: #EAF1FF;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.xyzc-lang .lang-switch img { width: 15px; height: auto; aspect-ratio: 4 / 3; border-radius: 1px; }
.xyzc-lang .lang-switch-arrow { width: 14px; height: 14px; }
.xyzc-lang .lang-switch-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  min-width: 148px;
  padding: 6px 0;
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(17, 21, 26, .12);
  list-style: none;
}
.xyzc-lang .lang-switch-menu a { padding: 7px 14px; color: var(--ink); }
.xyzc-lang .lang-switch-menu a:hover { background: var(--paper-2); color: var(--ink); }

/* ------------------------------------------------------------- header --- */

.xyzc-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
body.admin-bar .xyzc-header { top: 32px; }
.xyzc-header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 80px;
}

.xyzc-brand { display: inline-flex; align-items: center; flex-shrink: 0; color: var(--ink); text-decoration: none; }
.xyzc-brand__logo { display: block; height: 44px; width: auto; max-width: 220px; object-fit: contain; }
.xyzc-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.xyzc-brand__text strong { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.xyzc-brand__text small { margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: .02em; }

.xyzc-nav { display: flex; align-items: center; margin-left: auto; }
.xyzc-nav-list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.xyzc-nav-list > li { position: relative; margin: 0; }
.xyzc-nav-list > li > a {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}
.xyzc-nav-list > li > a:hover { color: var(--accent-600); }
.xyzc-nav-list > li.current-menu-item > a,
.xyzc-nav-list > li.current-menu-ancestor > a,
.xyzc-nav-list > li.current_page_item > a { color: var(--accent-600); }

.xyzc-nav-list .sub-menu {
  position: absolute;
  left: -14px;
  top: 100%;
  z-index: 50;
  display: none;
  min-width: 210px;
  margin: 0;
  padding: 8px 0;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(17, 21, 26, .12);
  list-style: none;
}
.xyzc-nav-list li:hover > .sub-menu,
.xyzc-nav-list li:focus-within > .sub-menu { display: block; }
.xyzc-nav-list .sub-menu li { margin: 0; }
.xyzc-nav-list .sub-menu a { display: block; padding: 8px 16px; color: var(--ink-2); font-size: 13px; text-decoration: none; white-space: nowrap; }
.xyzc-nav-list .sub-menu a:hover { background: var(--paper-2); color: var(--accent-600); }

.xyzc-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  background: var(--accent-600);
  border: 1px solid var(--accent-600);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.xyzc-cta:hover { background: var(--accent-900); border-color: var(--accent-900); color: #fff; }

.xyzc-toggle {
  display: none;
  margin-left: auto;
  padding: 9px 12px;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.xyzc-toggle:hover,
.xyzc-toggle:focus {
  /* hello-elementor's reset paints every button #cc3366 on hover/focus; keep
     the masthead button quiet on both states. */
  background: none;
  color: var(--ink);
  border-color: var(--ink);
}

.xyzc-header a:focus-visible,
.xyzc-utility a:focus-visible,
.xyzc-footer a:focus-visible,
.xyzc-toggle:focus-visible { outline: 2px solid var(--accent-600); outline-offset: 3px; }

/* ------------------------------------------------------------- footer --- */

.xyzc-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
}
.xyzc-footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, .7fr);
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.xyzc-footer .xyzc-brand__logo--footer { height: 38px; max-width: 200px; }
.xyzc-footer__brand p { max-width: 30ch; margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.xyzc-footer__contact { display: grid; gap: 3px; margin-top: 16px; }
.xyzc-footer__contact a { color: var(--ink-2); font-size: 12px; text-decoration: none; }
.xyzc-footer__contact a:hover { color: var(--accent-600); }
.xyzc-footer__col h4 {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.xyzc-footer__col a { display: block; margin-bottom: 7px; color: var(--ink-2); font-size: 13px; text-decoration: none; }
.xyzc-footer__col a:hover { color: var(--accent-600); }
.xyzc-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .03em;
  line-height: 1.7;
}
.xyzc-footer__legal span { max-width: 72ch; }
.xyzc-footer__legal a { color: var(--ink-2); text-decoration: none; }
.xyzc-footer__legal a:hover { color: var(--accent-600); }

/* -------------------------------------------------------------- widths --- */

@media (max-width: 1180px) {
  .xyzc-header__inner { gap: 24px; }
  .xyzc-nav-list { gap: 16px; }
}
@media (max-width: 1080px) {
  .xyzc-cta { display: none; }
}
@media (max-width: 980px) {
  .xyzc-footer__top { grid-template-columns: 1.2fr 1fr 1fr; }
  .xyzc-footer__col:nth-child(4),
  .xyzc-footer__col:nth-child(5) { display: none; }
}
@media (max-width: 900px) {
  .xyzc-brand__logo { height: 36px; }
  .xyzc-nav { display: none; }
  .xyzc-toggle { display: block; }
  .xyzc-header__inner { gap: 16px; }
  .xyzc-nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 18px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(17, 21, 26, .08);
  }
  .xyzc-nav.is-open .xyzc-nav-list { flex-direction: column; align-items: flex-start; gap: 14px; width: 100%; }
  .xyzc-nav.is-open .xyzc-nav-list > li { width: 100%; }
  .xyzc-nav.is-open .xyzc-nav-list > li > a { font-size: 16px; padding: 4px 0; }
  .xyzc-nav.is-open .sub-menu { position: static; display: block; min-width: 0; padding: 4px 0 4px 14px; border: 0; box-shadow: none; background: transparent; }
}
@media (max-width: 760px) {
  .xyzc-utility__left { display: none; }
  .xyzc-utility__inner { justify-content: flex-end; }
  .xyzc-utility__right { gap: 16px; }
  .xyzc-shell { width: min(100% - 48px, var(--xyzc-shell)); }
  .xyzc-footer { padding-top: 44px; }
}
@media (max-width: 700px) {
  .xyzc-footer__top { grid-template-columns: 1fr 1fr; }
  .xyzc-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 782px) {
  body.admin-bar .xyzc-header { top: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .xyzc-header { transition: none; }
}