/* 页头 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  height: 0.8rem;
  display: flex;
  align-items: center;
  padding: 0 var(--pad-x);
  background: transparent;
  color: #fff;
  border-bottom: 1.5px solid var(--ln-header);
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}

.header.is-solid,
.header.is-drop {
  background: #fff;
  color: var(--t1);
}

.logo {
  position: relative;
  flex: none;
  width: 3.66rem;
  height: 0.5rem;
}

.logo__face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--dur-1) var(--ease);
}

.logo__face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo__face--dark {
  opacity: 0;
}

.header.is-solid .logo__face--light,
.header.is-drop .logo__face--light {
  opacity: 0;
}

.header.is-solid .logo__face--dark,
.header.is-drop .logo__face--dark {
  opacity: 1;
}

.header__nav {
  display: flex;
  align-items: center;
  height: 100%;
  margin-left: 0.48rem;
  gap: 0.35rem;
}

.nav__item {
  position: static;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav__head {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav__link {
  display: flex;
  align-items: center;
  height: 100%;
  font-size: var(--fs-18);
  font-weight: 400;
  line-height: var(--lh-133);
  transition: color var(--dur-1) var(--ease);
}

.header.is-solid .nav__link,
.header.is-drop .nav__link {
  color: var(--t1);
}

.header .nav__link:hover {
  color: var(--vi);
}

.nav__subtoggle,
.nav__close,
.nav-toggle {
  display: none;
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(0.8rem - 2px);
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0.6rem 0.72rem;
  background: #fff;
  color: var(--t1);
  border-top: 1px solid var(--ln3);
  overflow: hidden;
}

.dropdown__grid {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.26rem;
}

.dropdown__col {
  flex: 0 0 calc((100% - 1.3rem) / 6);
  width: calc((100% - 1.3rem) / 6);
}

.dropdown__pic {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 274 / 160;
  border-radius: var(--r-glass);
  overflow: hidden;
}

.dropdown__pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}

.dropdown__pic--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.64rem;
  height: 0.64rem;
  aspect-ratio: auto;
  background: #F6F6F6;
  color: var(--vi);
}

.dropdown__pic--icon .icon {
  width: 0.3rem;
  height: 0.3rem;
}

.dropdown__pic .ph {
  position: absolute;
  inset: 0;
  transition: transform 600ms;
  will-change: transform;
}

.dropdown__col:hover .dropdown__pic .ph {
  transform: scale(1.05);
}

.dropdown__name {
  margin: 0.16rem 0 0.08rem;
  font-size: var(--fs-20);
  font-weight: 400;
  line-height: var(--lh-133);
}

.dropdown__name a {
  transition: color var(--dur-2) var(--ease);
}

.dropdown__name a:hover {
  color: var(--vi);
}

.dropdown__models a {
  display: block;
  padding: 0.04rem 0;
  font-size: var(--fs-16);
  font-weight: 400;
  line-height: var(--lh-18);
  color: var(--t2);
  overflow-wrap: anywhere;
  transition: color var(--dur-2) var(--ease);
}

.dropdown__models a:hover {
  color: var(--vi);
}

@media (min-width: 1025px) {
  .dropdown {
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.06rem);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
    padding: 0.22rem 0.72rem 0.28rem;
  }

  .nav__item.is-drop-open > .dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s;
  }

  .dropdown__col {
    position: relative;
    display: grid;
    grid-template-columns: 0.64rem 1fr;
    grid-template-rows: 0.64rem auto;
    column-gap: 0.12rem;
    align-items: start;
  }

  .dropdown__pic {
    grid-column: 1;
    grid-row: 1;
    width: 0.64rem;
    height: 0.64rem;
    aspect-ratio: auto;
    border-radius: var(--r-card);
  }

  .dropdown__pic img {
    object-fit: contain;
  }

  .dropdown__name {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin: 0;
    font-size: var(--fs-16);
  }

  .dropdown__col + .dropdown__col::before {
    content: "";
    position: absolute;
    left: -0.13rem;
    top: 0.04rem;
    bottom: 0.04rem;
    width: 1px;
    background: #E3E3E3;
  }

  .dropdown__models {
    position: relative;
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0.12rem;
    margin-top: 0.1rem;
  }

  .dropdown__models::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0.04rem;
    bottom: 0.04rem;
    width: 1px;
    background: #F0F0F0;
  }

  .dropdown__models a {
    padding: 0.015rem 0;
    font-size: 0.125rem;
    line-height: var(--lh-15);
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .dropdown--center .dropdown__grid {
    justify-content: center;
  }

  .dropdown--center .dropdown__col {
    flex: 0 0 auto;
    width: auto;
    display: flex;
    align-items: center;
    gap: 0.12rem;
  }
}

.header__tools {
  display: flex;
  align-items: center;
  margin-left: auto;
  height: 100%;
}

.nav-toggle {
  position: relative;
  z-index: 1002;
  align-items: center;
  justify-content: center;
  width: 0.44rem;
  height: 0.44rem;
}

.nav-toggle .icon,
.nav__close .icon,
.nav__subtoggle .icon {
  width: 0.24rem;
  height: 0.24rem;
}

/* 页脚 */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg-dark);
  color: #fff;
  padding: 0.65rem var(--pad-x) 0;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  color: #fff;
  font-size: var(--fs-20);
  font-weight: 500;
  line-height: 1;
}

.footer__logo img {
  display: block;
  width: auto;
  height: 0.36rem;
}

.footer__social {
  display: flex;
  gap: 0.12rem;
}

.footer__social-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.36rem;
  height: 0.36rem;
  color: #fff;
  opacity: 0.4;
  transition: opacity var(--dur-3);
}

.footer__social-item .icon {
  width: 0.22rem;
  height: 0.22rem;
}

.footer__social-item:hover {
  opacity: 1;
}

.footer__qr {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.12rem);
  width: 1.5rem;
  height: 1.5rem;
  opacity: 0;
  transform: translateX(-50%) translateY(0.2rem);
  pointer-events: none;
  transition: opacity var(--dur-3), transform var(--dur-3);
}

.footer__social-item:hover .footer__qr {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.footer__line {
  height: 2px;
  background: linear-gradient(to left, rgba(231, 0, 18, 0), #E70012);
}

.footer__mid {
  display: flex;
  align-items: flex-start;
  margin-top: 0.6rem;
}

.footer__contact {
  width: 25%;
  padding-right: 0.3rem;
}

.footer__contact p {
  font-size: var(--fs-14);
  font-weight: 400;
  line-height: 1.357;
}

.footer__contact p + p {
  margin-top: 0.35rem;
}

.footer__sep {
  margin: 0 0.12rem;
}

.footer__navs {
  display: flex;
  justify-content: flex-start;
  width: 75%;
  gap: 1.35rem;
}

.footer__group-title {
  margin-bottom: 0.2rem;
  font-size: var(--fs-18);
  font-weight: 400;
  line-height: var(--lh-133);
  color: #fff;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.footer__links a {
  display: inline-block;
  font-size: var(--fs-16);
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
  opacity: 0.4;
  transition: opacity var(--dur-3), transform var(--dur-3);
}

.footer__links a:hover {
  opacity: 1;
  transform: translateX(2px);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.2rem;
  margin-top: 0.6rem;
  padding: 0.15rem 0;
  border-top: 1px solid var(--ln-footer);
  font-size: var(--fs-14);
  font-weight: 400;
  line-height: 1.357;
  color: var(--w40);
}

.footer__policy {
  display: flex;
  gap: 0.24rem;
}

.footer__policy a {
  color: inherit;
  transition: color var(--dur-3);
}

.footer__policy a:hover {
  color: #fff;
}

/* 悬浮层 */
.float-bar {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  transform: translateY(-50%);
}

.float-bar__item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 0.56rem;
  height: 0.56rem;
  background: #333;
  color: #fff;
  border-radius: 0.1rem 0 0 0.1rem;
  overflow: hidden;
  transition: width var(--dur-3), background-color var(--dur-3);
}

.float-bar__item:hover {
  width: 1.9rem;
  background: var(--vi);
}

.float-bar__text {
  flex: 1;
  min-width: 0;
  padding-left: 0.12rem;
  font-size: var(--fs-14);
  font-weight: 400;
  line-height: 1.357;
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--dur-3);
}

.float-bar__item:hover .float-bar__text {
  opacity: 1;
}

.float-bar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 0.56rem;
  width: 0.56rem;
  height: 0.56rem;
}

.float-bar__icon .icon {
  width: 0.24rem;
  height: 0.24rem;
}

.float-bar__item--qr {
  position: relative;
  overflow: visible;
}

.float-bar .float-bar__item--qr:hover {
  width: 0.56rem;
}

.float-bar__qr {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  width: 160px;
  padding: 8px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--sh-pop2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(8px);
  transition: opacity var(--dur-1) var(--ease), visibility var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
  pointer-events: none;
}

.float-bar__item--qr:hover .float-bar__qr,
.float-bar__item--qr:focus-visible .float-bar__qr {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

.float-bar__qr img {
  display: block;
  width: 100%;
  height: auto;
}

.float-bottom {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  height: 56px;
}

.float-bottom a,
.float-bottom button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  background: var(--vi);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  transition: background-color var(--dur-3);
}

.float-bottom a + button,
.float-bottom button + a,
.float-bottom a + a,
.float-bottom button + button {
  border-left: 1px solid var(--w30);
}

.float-bottom a:hover,
.float-bottom button:hover {
  background: #A2000D;
}

.float-bottom .icon {
  width: 24px;
  height: 24px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.24rem;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 400ms ease-in-out, visibility 400ms ease-in-out;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal__panel {
  position: relative;
  width: 9.2rem;
  max-height: calc(100vh - 0.48rem);
  overflow: auto;
  background: #fff;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-modal);
  transform: scale(0.6);
  transition: transform 400ms ease-in-out;
}

.modal.is-open .modal__panel {
  transform: scale(1);
}

.modal__close {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.4rem;
  height: 0.4rem;
  color: var(--t1);
  transition: color var(--dur-2) var(--ease);
}

.modal__close:hover {
  color: var(--vi);
}

.modal__close .icon {
  width: 0.24rem;
  height: 0.24rem;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: block;
  width: 0.24rem;
  height: 0.24rem;
}

body.is-modal,
body.is-nav {
  overflow: hidden;
}

@media (max-width: 1024px) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .header {
    padding: 0 16px;
  }

  .header__nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 90%;
    height: 100%;
    margin: 0;
    padding: 0.24rem 0.24rem 0.4rem;
    gap: 0;
    background: #fff;
    color: var(--t1);
    overflow: auto;
    transform: translateX(-120%);
    transition: transform var(--dur-3);
  }

  .header__nav.is-open {
    transform: translateX(0);
  }

  .nav__close {
    display: flex;
    align-self: flex-end;
    align-items: center;
    justify-content: center;
    width: 0.44rem;
    height: 0.44rem;
    margin-bottom: 0.12rem;
  }

  .nav__item {
    flex-direction: column;
    align-items: stretch;
    height: auto;
  }

  .nav__head {
    justify-content: space-between;
    height: auto;
  }

  .nav__link {
    height: auto;
    padding: 0.16rem 0;
  }

  .nav__subtoggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.4rem;
    height: 0.4rem;
  }

  .nav__subtoggle .icon {
    transition: transform var(--dur-3);
  }

  .nav__item.is-open .nav__subtoggle .icon {
    transform: rotate(180deg);
  }

  .dropdown {
    position: static;
    display: none !important;
    height: auto !important;
    padding: 0 0 0.16rem;
    border-top: 0;
    overflow: visible !important;
  }

  .nav__item.is-open .dropdown {
    display: block !important;
  }

  .dropdown__grid {
    flex-direction: column;
    gap: 0.24rem;
  }

  .dropdown__col {
    flex: none;
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .footer__mid,
  .footer__navs,
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__contact,
  .footer__navs {
    width: 100%;
  }

  .footer__navs {
    gap: 0.32rem;
    margin-top: 0.4rem;
  }

  .footer__contact {
    padding-right: 0;
  }

  .float-bar__item:hover {
    width: 2.4rem;
  }

  .float-bottom {
    display: flex;
  }

  .modal__panel {
    width: calc(100% - 20px);
  }

  body {
    padding-bottom: 56px;
  }
}
