/* 切图拼接页面 - 响应式 */
:root {
  --primary: #004098;
  --header-h: 114px;
  --bp-mobile: 992px;
  --design-w: 1920;
  --font-sans: "Source Han Sans SC", "Noto Sans SC", "思源黑体", "Source Han Sans CN", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.slice-page {
  font-family: var(--font-sans);
  background: #fff;
  min-width: 320px;
}

.slice-wrap {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  overflow: hidden;
}

.slice-wrap [id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* ========== 站点顶栏（代码实现） ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 48px);
  gap: clamp(12px, 2vw, 32px);
}

.header-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.header-logo-img {
  display: block;
  height: 100px;
  width: auto;
  max-width: min(360px, 45vw);
  object-fit: contain;
  object-position: left center;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 48px);
  margin-left: auto;
}

.header-nav a {
  position: relative;
  color: #888;
  text-decoration: none;
  font-size: 28px;
  white-space: nowrap;
  padding: 4px 0;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--primary);
}

.header-nav a.active {
  color: var(--primary);
  font-weight: 500;
}

.header-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  background: var(--primary);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.lang-switch {
  border: none;
  background: transparent;
  color: #888;
  font-size: 28px;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
}

.lang-switch:hover {
  color: var(--primary);
}

.header-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  flex-shrink: 0;
}

.header-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  transition: transform 0.3s, opacity 0.3s;
}

.site-header.open .header-menu-btn span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.open .header-menu-btn span:nth-child(2) {
  opacity: 0;
}

.site-header.open .header-menu-btn span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.header-nav-mobile {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid #eee;
  max-width: 1920px;
  margin: 0 auto;
}

.site-header.open .header-nav-mobile {
  display: flex;
}

.header-nav-mobile nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0 0;
}

.header-nav-mobile nav a {
  display: block;
  padding: 14px 20px;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid #f5f5f5;
}

.header-nav-mobile nav a:hover,
.header-nav-mobile nav a.active {
  color: var(--primary);
  background: #f5f8fc;
}

.header-nav-mobile nav a.active {
  font-weight: 500;
}

.header-tools-mobile {
  padding: 12px 20px 4px;
}

.header-tools-mobile .lang-switch {
  font-size: 15px;
}

/* ========== 内容切片 ========== */
.slice-full {
  width: 100%;
  line-height: 0;
}

.slice-full img {
  width: 100%;
  height: auto;
  display: block;
}

.slice-full--screen {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ========== 首页 Banner 轮播 ========== */
.home-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1920 / 810;
  line-height: 0;
  background: #0a2a4a;
}

.home-banner__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.home-banner__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.home-banner__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.home-banner__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-banner__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: background 0.2s;
}

.home-banner__arrow:hover {
  background: #fff;
}

.home-banner__arrow--prev {
  left: clamp(12px, 2vw, 24px);
}

.home-banner__arrow--prev::before {
  content: "‹";
}

.home-banner__arrow--next {
  right: clamp(12px, 2vw, 24px);
}

.home-banner__arrow--next::before {
  content: "›";
}

.home-banner__dots {
  position: absolute;
  left: 50%;
  bottom: clamp(12px, 2vw, 24px);
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.home-banner__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.home-banner__dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

.page-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.page-hero__bg {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: unset;
  object-position: left center;
}

.page-hero__content {
  position: absolute;
  left: clamp(24px, 8vw, 120px);
  top: 50%;
  transform: translateY(-50%);
  line-height: 1.2;
  pointer-events: none;
}

.page-hero__en {
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.page-hero__title {
  margin: 0.2em 0 0;
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 400;
  color: #fff;
}

.slice-row,
.slice-pair {
  display: flex;
  width: 100%;
  line-height: 0;
  align-items: flex-start;
}

.slice-row img,
.slice-pair img {
  display: block;
  height: auto;
  flex-shrink: 0;
}

.slice-row--cta,
.slice-partial--cta {
  cursor: pointer;
}

.slice-icons {
  display: flex;
  width: 100%;
  line-height: 0;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(24px, 4vw, 48px);
}

.slice-icons img {
  display: block;
  height: auto;
  width: auto;
  max-width: 100px;
}

.slice-partial {
  line-height: 0;
}

.slice-partial img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== 返回顶部 ========== */
.back-top {
  position: fixed;
  right: 16px;
  bottom: 32px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  width: 44px;
  height: 44px;
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-top img {
  width: 100%;
  height: auto;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
  .header-nav,
  .header-tools {
    display: none;
  }

  .header-menu-btn {
    display: flex;
    margin-left: auto;
  }

  .header-inner {
    gap: 12px;
  }

  body.slice-page {
    padding-top: 0;
  }

  .slice-row,
  .slice-pair {
    flex-direction: column;
  }

  .slice-row img,
  .slice-pair img {
    width: 100% !important;
  }

  .slice-icons {
    gap: 16px;
  }

  .slice-icons img {
    max-width: 72px;
  }

  .slice-partial {
    width: 100% !important;
  }
}

@media (min-width: 993px) {
  .header-nav-mobile {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .header-logo-img {
    max-width: 200px;
  }

  .back-top {
    width: 36px;
    right: 40px;
    bottom: 24px;
  }
}

/* 企业宣传片弹层 */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.video-modal__box {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  background: #000;
}

.video-modal__box video {
  display: block;
  width: 100%;
  max-height: 80vh;
}

.video-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
