:root {
  --nav-height: 72px;
  --nav-width: 1200px;
  --content-gap: 12px;
  --brand-red: #df0715;
  color: #262626;
  background: #fff;
  font-family: Arial, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p { margin: 0; }
html {
  scroll-padding-top: var(--nav-height);
  scrollbar-width: none;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 60;
  top: 12px;
  left: 16px;
  transform: translateY(-160%);
  padding: 12px 16px;
  background: #fff;
  color: #171717;
}
.skip-link:focus { transform: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.nav-inner { width: min(var(--nav-width), calc(100% - 32px)); margin-inline: auto; }

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  color: #f5f5f5;
  background: linear-gradient(to bottom, rgb(0 0 0 / 80%), transparent);
}
.site-header.is-scrolled { background: rgb(25 25 25 / 95%); }
.site-header.has-open-nav { background: #000; }

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-height);
}
.site-brand {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  background: var(--brand-red);
  color: #fff;
}
.site-brand span {
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.025em;
  transform: scaleX(.93);
}
.site-nav { display: contents; }
.site-nav__label, .icon-control {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.site-nav__label {
  height: var(--nav-height);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.site-nav__label:hover, .site-nav__label[aria-expanded="true"] { color: #fff; }
.icon-control { width: 44px; }
.site-header__store { margin-inline-end: -12px; }
.site-header__toggle { display: none; }

.mega-menu {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  max-height: calc(100dvh - var(--nav-height));
  overflow: auto;
  overscroll-behavior: contain;
  background: #000;
}
.mega-menu__groups {
  display: flex;
  gap: 32px;
  justify-content: space-between;
  padding-block: 24px 50px;
}
.mega-menu__title { margin-bottom: 16px; color: #a3a3a3; font-size: 14px; }
.mega-menu__group a { display: block; width: fit-content; font-size: 18px; line-height: 1.35; }
.mega-menu__group a + a { margin-top: 14px; }
.mega-menu__group a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-backdrop { position: fixed; z-index: 40; inset: 0; background: rgb(0 0 0 / 82%); }

.hero {
  position: relative;
  display: flex;
  align-items: end;
  height: 600px;
  overflow: hidden;
  color: #f5f5f5;
  background: #3e3125 url("../assets/zhiyun/weebill-5.webp") center / cover no-repeat;
}
.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(0deg, rgb(0 0 0 / 81%), transparent 44%);
}
.hero__video, .product-panel__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__inner {
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 40px;
}
.hero__inner p, .product-panel__copy p { font-size: 16px; font-weight: 500; line-height: 20px; }
.hero__inner h1 {
  margin-top: 8px;
  font-size: 48px;
  font-weight: 600;
  line-height: 60px;
}
.hero__link {
  display: grid;
  place-items: center;
  width: 90px;
  height: 40px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 14px;
}
.hero__link:hover { color: #171717; border-color: #f5f5f5; background: #f5f5f5; }
.hero__media-info {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f5f5f5;
  font-size: 11px;
}
.hero__motion {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #eee;
  border-radius: 50%;
  background: rgb(0 0 0 / 16%);
  cursor: pointer;
}
.hero__motion::before {
  content: "";
  width: 7px;
  height: 9px;
  border-inline: 2px solid currentColor;
}
.hero__motion.is-paused::before {
  width: 0;
  height: 0;
  margin-left: 2px;
  border: 5px solid transparent;
  border-right: 0;
  border-left: 7px solid currentColor;
}

.feature-panels, .product-grid {
  display: grid;
  gap: var(--content-gap);
  margin-top: var(--content-gap);
}
.product-panel {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: var(--panel-color);
  color: #f5f5f5;
  text-align: center;
}
.product-panel--feature { height: 600px; }
.product-panel--light { color: #262626; }
.product-panel__image { object-position: center; }
.product-panel__copy {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 40px 16px 0;
}
.product-panel__copy :is(h2, h3) {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.product-panel__copy :is(h2, h3):first-child { margin-top: 0; }
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 18px;
  margin-top: 16px;
  font-size: 14px;
}
.product-link::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid;
  border-top: 1px solid;
  transform: rotate(45deg);
}
.product-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.contact-link {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 138px;
  min-height: 44px;
  border-radius: 999px;
  background: #bc3838;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.contact-link::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.contact-link svg { display: none; }
.contact-link:hover { background: #a52b2b; }

@media (min-width: 1280px) {
  .hero { height: 820px; }
  .feature-panels, .product-grid { margin-inline: var(--content-gap); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-panel { height: 600px; }
  .product-panel--feature { height: 660px; }
  .product-panel__copy :is(h2, h3) { font-size: 36px; line-height: 45px; }
}

@media (max-width: 1024px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }
  .site-header__toggle { display: inline-flex; margin-left: -10px; }
  .site-header__store { justify-self: end; margin-right: -10px; }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    max-height: calc(100dvh - var(--nav-height));
    overflow: auto;
    overscroll-behavior: contain;
    padding: 0 16px 16px;
    background: #0b0b0b;
  }
  .site-header.is-mobile-open .site-nav { display: block; }
  .site-nav__label {
    justify-content: space-between;
    width: 100%;
    height: 52px;
    border-bottom: 1px solid #383838;
    font-size: 16px;
  }
  button.site-nav__label::after {
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
    content: "";
  }
  button.site-nav__label[aria-expanded="true"]::after { transform: rotate(225deg); }
  .mega-menu { position: static; max-height: none; background: transparent; }
  .mega-menu__groups { display: grid; gap: 20px; width: auto; padding: 20px 0; }
  .mega-menu__title { margin-bottom: 9px; }
  .mega-menu__group a { font-size: 16px; }
  .mega-menu__group a + a { margin-top: 11px; }
}

@media (max-width: 767px) {
  .hero__inner { align-items: center; flex-direction: column; gap: 16px; text-align: center; }
  .hero__inner h1 { margin-top: 4px; font-size: 36px; line-height: 45px; }
  .hero__media-info { right: 12px; bottom: 6px; }
  .contact-link { right: 16px; bottom: 16px; min-width: 48px; min-height: 48px; }
  .contact-link span, .contact-link::after { display: none; }
  .contact-link svg { display: block; width: 17px; height: 17px; }
}
