*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: #1a1a1a;
  background: #eef0f6;
  min-height: 100vh;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
}

body.is-drawer-open {
  overflow: hidden;
}

/* ---------- 首屏启动占位 ---------- */
.app-boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #eef2ff 0%, #f7f8fc 55%, #ffffff 100%);
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.app-boot.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-boot__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.app-boot__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(47, 107, 255, 0.2);
  border-top-color: #2f6bff;
  border-radius: 50%;
  animation: boot-spin 0.75s linear infinite;
}

.app-boot__text {
  font-size: 14px;
  color: #667085;
  letter-spacing: 0.04em;
}

@keyframes boot-spin {
  to {
    transform: rotate(360deg);
  }
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

/*
 * PC 设计稿 1920：px → vw = px / 1920 * 100
 * 手机设计稿 750：在 max-width:768 内换算
 */
:root {
  --header-height: 4.1667vw; /* 80 / 1920 */
  --nav-active: #2f6bff;
  --nav-muted: #333;
  --footer-bg: #050d1a;
  --page-max: 100vw;
  --drawer-width: 70vw;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: transparent;
  pointer-events: none;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.site-header__inner {
  max-width: var(--page-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 3.125vw; /* 60 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}

.site-header__inner--mobile {
  display: none;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  height: 2.1875vw; /* 42 */
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 3.3333vw; /* 64 */
  margin-right: 10%;
}

.site-nav__link {
  position: relative;
  font-size: 0.9375vw; /* 18 */
  line-height: 1;
  color: var(--nav-muted);
  font-weight: 500;
  padding: 0.4167vw 0.1042vw 0.7292vw; /* 8 2 14 */
  transition: color 0.2s ease;
  cursor: pointer;
}

.site-nav__link:hover {
  color: var(--nav-active);
}

.site-nav__link.is-active {
  color: #111;
  font-weight: 700;
}

.site-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 1.6667vw; /* 32 */
  height: 0.2083vw; /* 4 */
  border-radius: 0.1042vw;
  background: var(--nav-active);
}

/* ---------- Main ---------- */
.site-main {
  min-height: 100vh;
}

.page {
  display: none;
  width: 100%;
}

.page.is-active {
  display: block;
}

.page__section {
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
  scroll-margin-top: var(--header-height);
  position: relative;
  background: linear-gradient(180deg, #e8ecf8 0%, #f4f6fb 100%);
  overflow: hidden;
}

.page__section.is-hero {
  min-height: 56.25vw; /* PC 16:9 占位，减少首屏塌陷 */
}

.page__section:first-child {
  scroll-margin-top: 0;
}

.page__section img {
  width: 100%;
  margin: 0;
  padding: 0;
  vertical-align: top;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.page__section img.is-loaded {
  opacity: 1;
}

.page__section.is-loaded {
  background: transparent;
  min-height: 0;
}

/* ---------- Footer（PC） ---------- */
.site-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  background: var(--footer-bg);
  color: #fff;
}

.site-footer--mobile {
  display: none;
}

.site-footer__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 2.9167vw 4.1667vw 3.3333vw; /* 56 80 64 */
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.0833vw; /* 40 */
}

.site-footer__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-top: 0.2083vw;
}

.site-footer__logo img {
  height: 2.2917vw; /* 44 */
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-beian {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.footer-beian__company,
.footer-beian__no {
  margin: 0;
  font-size: 0.8333vw; /* 16 */
  font-weight: 400;
}

.footer-beian__link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color 0.2s ease;
}

.footer-beian__link--icp {
  margin-left: 0.625vw; /* 12 */
}

.footer-beian__link:hover {
  color: #ffffff;
}

.footer-beian--desktop {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.0417vw; /* 20 */
  align-self: center;
  min-width: 0;
}

.site-footer__nav {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 5.2083vw; /* 100 */
  padding-right: 4%;
  flex-shrink: 0;
}

.footer-col {
  min-width: 3.75vw;
}

.footer-col__title {
  display: inline-block;
  font-size: 0.8333vw; /* 16 */
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.0417vw; /* 20 */
  line-height: 1.2;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.footer-col__title:hover {
  opacity: 0.9;
}

.footer-col__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7292vw; /* 14 */
}

.footer-col__link {
  font-size: 0.7292vw; /* 14 */
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
  line-height: 1.2;
}

.footer-col__link:hover {
  color: #ffffff;
}

/* 手机侧栏默认隐藏（PC） */
.mobile-drawer {
  display: none;
}

/* ==================== 手机端 ≤768（设计宽 750：px → vw = px / 750 * 100） ==================== */
@media (max-width: 768px) {
  :root {
    --header-height: 11.7333vw; /* 88 */
    --drawer-width: 70vw; /* 525 */
    --m-pad-x: 4vw; /* 30 */
    --m-title: 4.2667vw; /* 32 */
    --m-text: 4vw; /* 30 */
    --m-text-sm: 3.7333vw; /* 28 */
  }

  .app-boot__spinner {
    width: 8vw;
    height: 8vw;
    border-width: 0.5333vw;
  }

  .app-boot__text {
    font-size: 3.4667vw; /* 26 */
  }

  .app-boot__inner {
    gap: 3.2vw;
  }

  .page__section.is-hero {
    min-height: 100vw; /* 手机首图较长，先给占位高度 */
  }

  .site-header__inner--desktop {
    display: none;
  }

  .site-header__inner--mobile {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding: 0 var(--m-pad-x);
    pointer-events: auto;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6.4vw; /* 48 */
    height: 6.4vw;
    flex-shrink: 0;
    z-index: 1;
  }

  .mobile-menu-btn img {
    width: 4.8vw; /* 36 */
    height: 4.8vw;
    object-fit: contain;
  }

  .mobile-page-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: var(--m-title);
    font-weight: 600;
    color: #1a2744;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
  }

  /* ---------- 侧栏抽屉 ---------- */
  .mobile-drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
    visibility: hidden;
  }

  .mobile-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
  }

  .mobile-drawer__mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .mobile-drawer.is-open .mobile-drawer__mask {
    opacity: 1;
  }

  .mobile-drawer__panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--drawer-width);
    max-width: 75vw;
    background: #ffffff;
    box-shadow: 0.2667vw 0 2.1333vw rgba(0, 0, 0, 0.08); /* 2 0 16 */
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    padding: 5.3333vw 0 10.6667vw; /* 40 0 80 */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-drawer.is-open .mobile-drawer__panel {
    transform: translateX(0);
  }

  .mobile-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 8vw; /* 60 */
    height: 8vw;
    margin: 2.6667vw 0 5.3333vw 4vw; /* 20 0 40 30 */
  }

  .mobile-drawer__close span,
  .mobile-drawer__close span::before,
  .mobile-drawer__close span::after {
    display: block;
    position: relative;
    width: 4.2667vw; /* 32 */
    height: 0.2667vw; /* 2 */
    background: #222;
  }

  .mobile-drawer__close span {
    transform: rotate(45deg);
  }

  .mobile-drawer__close span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    transform: rotate(90deg);
  }

  .mobile-drawer__nav {
    display: flex;
    flex-direction: column;
  }

  .mobile-drawer__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 12vw; /* 90 */
    padding: 0 5.3333vw; /* 40 */
    font-size: var(--m-text);
    font-weight: 500;
    color: #222;
    line-height: 1.2;
  }

  .mobile-drawer__link.is-active {
    background: #f0f0f0;
    font-weight: 600;
  }

  .mobile-drawer__mark {
    display: none;
    width: 2.1333vw; /* 16 */
    height: 2.1333vw;
    background: #111;
    flex-shrink: 0;
  }

  .mobile-drawer__link.is-active .mobile-drawer__mark {
    display: block;
  }

  /* ---------- 手机底栏 ---------- */
  .site-footer--desktop {
    display: none;
  }

  .site-footer--mobile {
    display: block;
    background: #050d1a;
  }

  .mobile-footer__inner {
    padding: 10.6667vw 8vw 10.6667vw; /* 80 60 80 */
  }

  .mobile-footer__logo {
    display: inline-flex;
    margin-bottom: 10.6667vw; /* 80 */
  }

  .mobile-footer__logo img {
    height: 5.8667vw; /* 44 */
    width: auto;
    filter: brightness(0) invert(1);
  }

  .mobile-footer__nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6.6667vw; /* 50 */
  }

  .mobile-footer__link {
    font-size: var(--m-text-sm);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.2;
  }

  .mobile-footer__link:active {
    color: #ffffff;
  }

  .footer-beian--mobile {
    margin-top: 10.6667vw; /* 80 */
    padding-top: 6.6667vw; /* 50 */
    border-top: 0.1333vw solid rgba(255, 255, 255, 0.12);
    text-align: left;
  }

  .footer-beian--mobile .footer-beian__company,
  .footer-beian--mobile .footer-beian__no {
    font-size: 3.2vw; /* 24 */
    line-height: 1.7;
  }

  .footer-beian--mobile .footer-beian__link {
    color: rgba(255, 255, 255, 0.88);
  }

  .footer-beian--mobile .footer-beian__link--icp {
    margin-left: 2.1333vw; /* 16 */
    display: inline-block;
  }
}
