@charset "UTF-8";

/* 首页视觉样式；已将原框架 data-v-* 哈希选择器转换为普通 CSS。 */
@import url("vendor/original-site.css");

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
}

.static-mobile {
  display: none;
}

/* 这些背景直接写在公共 CSS 中，双击 HTML 与通过服务器访问时路径均一致。 */
.floating_sidebar {
  background-image: url("../images/home/sidebar_bg.png");
}

.brand-history__track::before {
  background-image: url("../images/home/line.png");
}

.stat_cloud {
  background-image: url("../images/home/cloud.png");
}

.home-mobile__stat-value {
  background-image: url("../images/home/mobile-cloud.png");
}

.brand-advantage-mobile {
  background-image: url("../images/home/mobile-davantage_bg.png");
}

/* 桌面端下拉菜单：DOM 由 jQuery 生成，样式沿用原站组件命名。 */
.site-header-desktop__dropdown[hidden],
.site-header-mobile__overlay[hidden] {
  display: none !important;
}

.site-header-desktop__dropdown-surface {
  opacity: 0;
  transform: translateY(-10px) scaleY(.96);
  transition: opacity .24s ease, transform .24s ease;
}

.site-header-desktop__dropdown.is-open .site-header-desktop__dropdown-surface {
  opacity: 1;
  transform: translateY(0) scaleY(1);
}

.native-submenu-arrow {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  border-top: .2rem solid currentColor;
  border-right: .2rem solid currentColor;
  transform: rotate(45deg);
}

.site-header-desktop__submenu-link:hover {
  border-color: #d40203;
  color: #d40203;
}

/* 原站轮播依赖 Swiper；静态版用 jQuery 驱动同一套 DOM。 */
.swiper {
  overflow: hidden;
}

.swiper-wrapper {
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.swiper-pagination-bullet,
.carousel__pagination-bullet {
  cursor: pointer;
}

.about-history__content-panel,
.about-mobile-history__panel {
  opacity: 1;
  transform: translateX(0);
  transition: opacity .16s ease, transform .32s cubic-bezier(.22, 1, .36, 1);
}

.about-history__content-panel.is-local-switching,
.about-mobile-history__panel.is-local-switching {
  opacity: 0;
  transform: translateX(2.4rem);
}

.sheet-footer-desktop-concat__right-item {
  position: relative;
}

.sheet-footer-desktop-concat__right-item::after {
  position: absolute;
  right: -.3rem;
  bottom: -.3rem;
  left: -.3rem;
  height: .2rem;
  background: #d40203;
  content: "";
  opacity: 0;
  transform: scaleX(.4);
  transition: opacity .2s ease, transform .2s ease;
}

.sheet-footer-desktop-concat__right-item.is-local-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.brand-history__point-copy {
  transition: opacity .28s ease, transform .28s ease;
}

.brand-advantage-detail__panel,
.brand-advantage-mobile__panel {
  opacity: 1;
  transform: translateX(0);
  transition: opacity .18s ease, transform .36s cubic-bezier(.22, 1, .36, 1);
}

.brand-advantage-detail__panel.is-switching,
.brand-advantage-mobile__panel.is-switching {
  opacity: 0;
  transform: translateX(3.2rem);
}

.brand-history__point:not(.brand-history__point--active) .brand-history__point-copy {
  opacity: .7;
}

.consultation-dialog.is-local-left {
  right: auto !important;
  left: 0 !important;
}

.consultation-dialog.is-local-small {
  transform: scale(.68);
  transform-origin: right bottom;
}

.consultation-dialog.is-local-left.is-local-small {
  transform-origin: left bottom;
}

.local-form-message {
  margin-top: 1rem;
  color: #d40203;
  font-size: 1.4rem;
  text-align: center;
}

/* 进入视口时只做轻量 transform/opacity 动画，不改变原布局。 */
.local-reveal {
  opacity: 0;
  transform: translateY(2.4rem);
  transition: opacity .65s ease, transform .65s ease;
}

.local-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

@media (max-width: 63.99em) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .static-desktop {
    display: none !important;
  }

  .static-mobile {
    display: block !important;
    width: 100%;
  }

  .static-mobile .consultation-dialog {
    display: none !important;
  }

  .site-header-mobile__overlay {
    opacity: 0;
    transition: opacity .25s ease;
  }

  .site-header-mobile__overlay.is-open {
    opacity: 1;
  }

  .site-header-mobile__panel {
    transform: translateY(-1.2rem);
    transition: transform .28s cubic-bezier(.22, 1, .36, 1);
  }

  .site-header-mobile__overlay.is-open .site-header-mobile__panel {
    transform: translateY(0);
  }

  .native-mobile-menu-lines,
  .native-mobile-menu-lines::before,
  .native-mobile-menu-lines::after {
    display: block;
    width: 1.9rem;
    height: .2rem;
    border-radius: 1rem;
    background: #111;
    transition: transform .22s ease, opacity .22s ease;
  }

  .native-mobile-menu-lines {
    position: relative;
  }

  .native-mobile-menu-lines::before,
  .native-mobile-menu-lines::after {
    position: absolute;
    left: 0;
    content: "";
  }

  .native-mobile-menu-lines::before {
    top: -.6rem;
  }

  .native-mobile-menu-lines::after {
    top: .6rem;
  }

  .site-header-mobile__menu-button[aria-expanded="true"] .native-mobile-menu-lines {
    background: transparent;
  }

  .site-header-mobile__menu-button[aria-expanded="true"] .native-mobile-menu-lines::before {
    top: 0;
    transform: rotate(45deg);
  }

  .site-header-mobile__menu-button[aria-expanded="true"] .native-mobile-menu-lines::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .site-header-mobile__submenu-button .native-submenu-arrow {
    width: .8rem;
    height: .8rem;
    transition: transform .22s ease;
  }

  .site-header-mobile__submenu-button[aria-expanded="true"] .native-submenu-arrow {
    transform: rotate(135deg);
  }
}

@media (min-width: 64em) {
  .static-desktop {
    display: block !important;
  }

  .static-mobile {
    display: none !important;
  }
}
