/* ========================================
   FF Website — Global Styles
   ======================================== */

/* --- Font Face --- */
@font-face {
  font-family: 'HarmonyOS Sans SC Light';
  src: url('../assets/fonts/HarmonyOS_Sans_SC_Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* Hide scrollbar — Chrome/Safari/Edge */
  -ms-overflow-style: none;  /* IE/Edge old */
  scrollbar-width: none;     /* Firefox */
}

html::-webkit-scrollbar {
  display: none;  /* Chrome/Safari/Edge */
}

body {
  font-family: 'HarmonyOS Sans SC Light', 'Microsoft YaHei', sans-serif;
  background: #000;
  color: #fff;
  line-height: 1.6;
  overflow: hidden;
  overscroll-behavior: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ========================================
   Common Header — 120px, white bg
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 120px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}


/* ========================================
   Common Footer — 40px, black bg, fixed bottom
   ======================================== */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 40px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-icp {
  font-family: 'HarmonyOS Sans SC Light', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  color: #999;
  letter-spacing: 0.1em;  /* PSD tracking 100 → 100/1000 = 0.1em */
  transition: color 0.3s ease;
}

.footer-icp:hover {
  color: #ccc;
}

/* ========================================
   Scroll Container — fills space between header & footer
   ======================================== */
#scroll-container {
  position: fixed;
  top: 120px;
  bottom: 40px;
  left: 0;
  width: 100%;
  overflow: hidden;  /* JS controls scroll */
}

/* ========================================
   Block Panels (100% of container)
   ======================================== */
.panel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ========================================
   Panel 0 — Video Hero
   ======================================== */
.section-video {
  background: #000;
  position: relative;
  z-index: 15;  /* above intro-fg-fixed */
}

.section-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  will-change: opacity;
}

/* --- Custom video controls (top-right) --- */
/* 支持控件的  但用户没要求，先隐藏了 */
.video-controls {
  /* display:none; */
  opacity: .8;
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 5;
}

.vc-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.vc-btn {
  width: 34px;
  height: 34px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.99);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.2s;
}
.vc-btn:hover { background: rgba(0, 0, 0, 0.6); }

.vc-volume-icon {
  display: block;
  width: 18px;
  height: 18px;
  color: currentColor;
  pointer-events: none;
}

.vc-volume-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vc-volume-speaker {
  fill: currentColor;
  stroke: none;
}

.vc-volume-cross {
  display: none;
}

.vc-mute.is-muted .vc-volume-waves {
  display: none;
}

.vc-mute.is-muted .vc-volume-cross {
  display: block;
}

.vc-volume {
  position: relative;
  display: flex;
  flex-shrink: 0;
}

.vc-volume-popover {
  position: absolute;
  top: 100%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 46px;
  padding: 10px 8px 12px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -5px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.vc-volume.is-open .vc-volume-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.vc-volume-slider {
  --volume-pct: 0%;
  width: 4px;
  height: 100px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  writing-mode: vertical-lr;
  direction: rtl;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  touch-action: none;
  background: linear-gradient(
    to top,
    #fff 0,
    #fff var(--volume-pct),
    rgba(255, 255, 255, 0.26) var(--volume-pct),
    rgba(255, 255, 255, 0.26) 100%
  );
}

.vc-volume-slider::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}

.vc-volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}

.vc-volume-value {
  min-width: 30px;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.vc-progress {
  width: 120px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.vc-progress::before {
  content: '';
  position: absolute;
  top: -12px;
  bottom: -12px;
  left: 0;
  right: 0;
}
.vc-progress-bar {
  height: 100%;
  background: #fff;
  border-radius: 2px;
  width: 0%;
  transition: width 0.15s linear;
}
.vc-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 14px;
  background: #fff;
  border-radius: 1px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ========================================
   Panel 1 — Brand Intro (1937px)
   ======================================== */
.panel-intro-wrap {
  height: 1937px;
  background: #000;
  position: relative;
}

/* intro-bg-layer: position switches between absolute (flow) and fixed (sticky) via JS */
.intro-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;  /* full 1937px in flow, JS overrides to 100vh when pinned */
}

.intro-bg-layer img {
  width: 100%;
  height: auto;
  min-height: 100%;
  will-change: transform;
}

/* ========================================
   Fixed intro foreground images (overlay)
   ======================================== */
.intro-fg-fixed {
  position: fixed;
  top: 120px;
  bottom: 40px;
  left: 0;
  width: 100%;
  z-index: 20;  /* above video during intro transitions */
  pointer-events: none;
  overflow: hidden;
}

.intro-fg-item {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
}

/* intro_01: left-aligned, 150px from left */
.intro-fg-item[data-intro="0"] {
  justify-content: flex-start;
  padding-left: 150px;
}

/* intro_02: centered */
.intro-fg-item[data-intro="1"] {
  justify-content: center;
}

/* intro_03: right-aligned, 150px from right */
.intro-fg-item[data-intro="2"] {
  justify-content: flex-end;
  padding-right: 150px;
}

.intro-fg-item img {
  max-width: 70%;
  max-height: 60%;
  object-fit: contain;
  opacity: 0;
  transform: translateY(0);
  /* no CSS transition — JS drives all animation via RAF */
}

/* ========================================
   Panel 2 — Case Carousel (Swiper Creative)
   ======================================== */
.section-carousel {
  background: transparent;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;       /* 允许 prev/next slide 超出面板 */
}

.carousel-fade {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s ease, visibility 0s linear 0.8s;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: visible;
}
.carousel-fade.visible.is-ready {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

/* --- Swiper Carousel --- */
.caseSwiper {
  width: 71.354vw;               /* active slide width: 1370/1920*100 */
  margin: 0 auto;
  overflow: visible !important;  /* 强制可见，让 prev/next 不被裁剪 */
  cursor: pointer;
}

.caseSwiper .swiper-wrapper {
  overflow: visible !important;
}

.caseSwiper .swiper-slide {
  height: 30.729vw;              /* active slide height: 590/1920*100 */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transition-timing-function: linear;
}

.caseSwiper .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.8);  /* prev/next: 10% 白色边框 */
}
.caseSwiper .swiper-slide-active img {
  border: 2px solid rgba(255, 255, 255, 0.05); 
}

/* ---- Gradient border via ::before (behind img, compatible with border-radius) ---- */
.caseSwiper .swiper-slide::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.2));
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active slide */
.caseSwiper .swiper-slide-active {
  z-index: 2;
  opacity: 1;
}
.caseSwiper .swiper-slide-active::before {
  opacity: 1;
}

/* Side slides (prev/next): dimmed — size handled by creativeEffect scale */
.caseSwiper .swiper-slide-prev,
.caseSwiper .swiper-slide-next {
  opacity: 0.5;
}

/* Hide slides beyond immediate prev/next to prevent see-through */
.caseSwiper .swiper-slide:not(.swiper-slide-active):not(.swiper-slide-prev):not(.swiper-slide-next) {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
}

.mobile-video-play {
  display: none;
}

.mobile-volume-indicator {
  display: none;
}

.mobile-volume-gesture-zone {
  display: none;
}

/* --- Prev/Next click hit areas (transparent, matching scaled side slide size) --- */
.carousel-hit {
  position: absolute;
  top: 50%;
  z-index: 10;
  cursor: pointer;
  /* Match scaled prev/next slide visual size: 71.354vw*0.87 × 30.729vw*0.87 */
  width: 62.078vw;
  height: 26.734vw;
  max-width: 1191.9px;
  max-height: 513.3px;
  transform: translate(-50%, -50%);
  background: transparent;
  border-radius: 18px;
}
.carousel-hit-prev {
  /* Prev slide center: 50% - 70% of slide width */
  left: calc(50% - 49.948vw);
}
.carousel-hit-next {
  /* Next slide center: 50% + 70% of slide width */
  left: calc(50% + 49.948vw);
}

/* ========================================
   Panel 3 — Link Area
   ======================================== */
.section-links {
  background: #000;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  padding: 5vh 0
}

.link-item {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.link-item:hover {
  transform: scale(1.05);
}

.link-item img {
  height: 50px;
  width: auto;
}

/* ---- Inline toggle: trigger ↔ detail ---- */
.link-item {
  position: relative;
}
.link-trigger {
  transition: opacity 2s ease;
}
.link-detail {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 35.3125vw!important;            /* 678 / 1920 * 100 */
  height: auto!important;
  max-width: 678px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2s ease;
}
.link-item.active .link-trigger {
  opacity: 0;
  pointer-events: none;
}
.link-item.active .link-detail {
  opacity: 1;
  pointer-events: auto;
}

/* ========================================
   Popup Overlay
   ======================================== */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.popup-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.popup-overlay img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.popup-close {
  position: absolute;
  top: 30px;
  right: 40px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  transition: background 0.3s ease;
}

.popup-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   Scroll-triggered Fade-in Animation
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Mobile elements — hidden on desktop only
   ======================================== */
@media (min-width: 769px) {
  .mobile-loading,
  .mobile-up-tips,
  .mobile-intro-overlay {
    display: none;
  }
}

/* ========================================
   Responsive Adjustments (Tablet)
   ======================================== */
@media (max-width: 1024px) {
  .section-links {
    height: 30vh!important;
  }
  .link-item img {
    height: 36px;
  }
}

/* ========================================
   Mobile Styles (≤768px)
   设计稿基准: 1620px → 换算公式 calc(设计px / 1620 * 100vw)
   ======================================== */
@media (max-width: 768px) {

  /* --- Hide desktop-only elements --- */
  .intro-fg-fixed {
    display: none;
  }
  .video-controls {
    /* display: none; */
  }

  /* --- Shared mobile video controls --- */
  .section-video,
  .article-video {
    touch-action: pan-y pinch-zoom;
  }

  .section-video .video-controls,
  .article-video .video-controls {
    inset: 0;
    opacity: 1;
    pointer-events: none;
  }

  .section-video .vc-row,
  .article-video .vc-row {
    display: block;
  }

  .section-video .vc-play,
  .article-video .vc-play {
    display: none;
  }

  .section-video .vc-volume {
    position: static;
    pointer-events: none;
  }

  .section-video .vc-volume-popover {
    display: none;
  }

  .section-video .vc-mute,
  .article-video .vc-mute {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 13px;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
  }

  .section-video .vc-progress,
  .article-video .vc-progress {
    position: absolute;
    right: 12px;
    bottom: 8px;
    left: 12px;
    width: auto;
    height: 3px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease;
  }

  .section-video.is-mobile-seeking .vc-progress,
  .article-video.is-mobile-seeking .vc-progress {
    opacity: 1;
  }

  .section-video .vc-progress-bar,
  .article-video .vc-progress-bar {
    transition: none;
  }

  .section-video .vc-progress-thumb,
  .article-video .vc-progress-thumb {
    width: 3px;
    height: 11px;
  }

  .section-video .mobile-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
    -webkit-tap-highlight-color: transparent;
  }

  .section-video .mobile-video-play img {
    display: block;
    width: 42px;
    height: auto;
  }

  .section-video.is-mobile-paused .mobile-video-play {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .section-video .mobile-volume-indicator,
  .article-video .mobile-volume-indicator {
    position: absolute;
    top: 50%;
    right: 10px;
    z-index: 7;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 30px;
    height: 98px;
    padding: 8px 0;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 15px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-50%) translateX(5px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
  }

  .section-video.is-mobile-adjusting-volume .mobile-volume-indicator,
  .article-video.is-mobile-adjusting-volume .mobile-volume-indicator {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
    transition-delay: 0s;
  }

  .section-video .mobile-volume-value,
  .article-video .mobile-volume-value {
    color: #fff;
    font-size: 9px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }

  .section-video .mobile-volume-track,
  .article-video .mobile-volume-track {
    position: relative;
    width: 4px;
    flex: 1;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
  }

  .section-video .mobile-volume-fill,
  .article-video .mobile-volume-fill {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 0%;
    background: #fff;
    border-radius: inherit;
  }

  .article-video .mobile-volume-gesture-zone {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: block;
    width: 30%;
    touch-action: none;
  }

  /* --- Mobile Header: 200px → 12.35vw --- */
  .site-header {
    height: calc(200 / 1620 * 100vw);
  }
  .header-logo img {
    max-height: calc(120 / 1620 * 100vw);
  }

  /* --- Mobile Footer: 60px → 3.70vw, font 28px → 1.73vw --- */
  .site-footer {
    height: calc(60 / 1620 * 100vw);
  }
  .footer-icp {
    font-size: calc(28 / 1620 * 100vw);
    letter-spacing: 0.05em;
  }

  /* --- Scroll Container: native scroll on mobile --- */
  #scroll-container {
    top: calc(200 / 1620 * 100vw);
    bottom: calc(60 / 1620 * 100vw);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
  }
  #scroll-container.mobile-step-scroll {
    overflow-y: hidden;
    touch-action: none;
    -webkit-overflow-scrolling: auto;
  }
  #scroll-container::-webkit-scrollbar {
    display: none;
  }
  #scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  /* --- Mobile Loading Screen --- */
  .mobile-loading {
    display: block;
    position: fixed;
    top: calc(200 / 1620 * 100vw);
    bottom: calc(60 / 1620 * 100vw);
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #000;
  }

  .mobile-loading video,
  .mobile-loading .wechat-loading-animation {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 50%;
    transform: translateY(-50%);
    object-fit: cover;
    display: block;
  }

  .mobile-loading .wechat-loading-animation {
    display: none;
  }

  .is-wechat-browser .mobile-loading video {
    display: none;
  }

  .is-wechat-browser .mobile-loading .wechat-loading-animation {
    display: block;
  }

  /* Gradient fade: top edge */
  .mobile-loading::before {
    content: '';
    position: absolute;
    top: 23%;
    left: 0;
    width: 100%;
    height: 8%;
    background: linear-gradient(to bottom, #000 4%, transparent);
    z-index: 5;
    pointer-events: none;
  }

  /* Gradient fade: bottom edge */
  .mobile-loading::after {
    content: '';
    position: absolute;
    top: 67%;
    left: 0;
    width: 100%;
    height: 8%;
    background: linear-gradient(to top, #000 4%, transparent);
    z-index: 5;
    pointer-events: none;
  }

  .mobile-loading .mobile-arrow {
    position: absolute;
    top: 84%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
    border: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
  }

  .mobile-loading .mobile-arrow.is-ready {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-loading .mobile-arrow img {
    width: calc(140 / 1620 * 100vw);
    height: auto;
    display: block;
  }

  .mobile-loading.hidden {
    display: none;
  }

  .skip-home-loading .mobile-loading {
    display: none;
  }

  /* --- Panels: remove 100% height, set individually --- */
  .panel {
    height: auto;
  }

  /* --- Panel 0 (Video): 17:7 aspect ratio --- */
  .section-video {
    height: calc(100vw * 7 / 17);
  }

  /* --- Panel 1 (Brand Intro): auto height, bg flows naturally --- */
  .panel-intro-wrap {
    position: relative;
    height: auto;
  }
  .intro-bg-layer {
    position: relative;
    height: auto;
  }
  .intro-bg-layer img {
    width: 100%;
    height: auto;
    min-height: unset;
  }

  /* --- Mobile Intro Overlay (fixed, between header & footer) --- */
  .mobile-intro-overlay {
    display: block;
    position: fixed;
    top: calc(200 / 1620 * 100vw);
    bottom: calc(60 / 1620 * 100vw);
    left: 0;
    width: 100%;
    z-index: 20;
    pointer-events: none;
    overflow: hidden;
    contain: paint;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .mobile-intro-item {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    opacity: 0;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .mobile-intro-item[data-intro="0"] {
    justify-content: flex-start;
    padding-left: 8vw;
  }
  .mobile-intro-item[data-intro="1"] {
    justify-content: center;
  }
  .mobile-intro-item[data-intro="2"] {
    justify-content: flex-end;
    padding-right: 8vw;
  }
  .mobile-intro-item[data-intro="2"] img {
    width: 50vw;
    max-width: none;
  }

  .mobile-intro-item img {
    max-width: 75%;
    max-height: 50%;
    object-fit: contain;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  /* --- Mobile up-tips (fixed at bottom of scroll-container, hints more content below) --- */
  .mobile-up-tips {
    display: block;
    position: fixed;
    opacity: 0.5;
    bottom: calc(60 / 1620 * 100vw + 20vh);
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    pointer-events: none;
    animation: upTipsBounce 1.6s ease-in-out infinite;
  }

  .mobile-up-tips img {
    width: calc(120 / 1620 * 100vw);
    height: auto;
    display: block;
  }

  @keyframes upTipsBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(calc(-50 / 1620 * 100vw)); }
  }

  /* --- Carousel adjustments --- */
  .carousel-fade {
    will-change: opacity;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .caseSwiper {
    width: 90vw;
    overflow: hidden !important;
    background: #000;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .caseSwiper .swiper-slide {
    height: 50vw;
    overflow: hidden !important;
    background: #000;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  /* Only show active slide, hide prev/next */
  .caseSwiper .swiper-slide-prev,
  .caseSwiper .swiper-slide-next {
    opacity: 0 !important;
    visibility: visible;
    pointer-events: none;
  }
  .carousel-hit {
    display: none;
  }

  /* Avoid exposing a full-size white layer while Safari repaints the image. */
  .caseSwiper .swiper-slide::before {
    content: none;
  }

  .caseSwiper .swiper-slide-active img {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 8px;
  }

  .caseSwiper .swiper-slide img {
    background: #000;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  /* --- Link items --- */
  .section-links .link-item {
    opacity: 0;
    transition: opacity 0.6s ease;
  }
  .section-links.visible .link-item {
    opacity: 1;
  }
  .link-item img {
    height: calc(70 / 1620 * 100vw);
  }
  .link-detail {
    width: 45vw !important;
    max-width: none;
  }

  /* --- Popup --- */
  .popup-overlay img {
    max-width: 90%;
    max-height: 70%;
  }
}

/* ========================================
   Page: 案例列表 (list.html)
   ======================================== */

/* --- Scroll container override --- */
.page-list #scroll-container {
  bottom: 100px;          /* 40px footer + 60px clients bar */
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.page-list #scroll-container::-webkit-scrollbar {
  display: none;
}

/* --- Clients Bar — fixed above footer, white background --- */
.clients-bar {
  position: fixed;
  bottom: 40px;
  left: 0;
  z-index: 999;
  width: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 47px;
  opacity: 0;
  transform: translateY(100%);
  animation: clientsFadeUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) .5s forwards;
}

.clients-bar img {
  display: block;
}

/* Desktop clients image visible by default */
.clients-bar .clients-desk { display: block; }
.clients-bar .clients-mob  { display: none;  }

/* --- Case Grid --- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px 37px;
  padding: 38px 47px 110px;
  margin: 0 auto;
}

/* --- Case Card --- */
.case-card {
  min-width: 0;
  opacity: 0;
  transform: scale(0.7);
  animation: caseFadeIn 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  cursor: pointer;
}

/* --- Case Image Wrap --- */
.case-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #111;
}

.case-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.case-card:hover .case-img-wrap img {
  transform: scale(1.05);
}

/* --- Case Title --- */
.case-title {
  font-family: 'HarmonyOS Sans SC Light', 'Microsoft YaHei', sans-serif;
  font-size: 22px;
  color: #fff;
  margin-top: 14px;
  transition: color 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* --- Animation: fade in from 70% scale + 0% opacity --- */
@keyframes caseFadeIn {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Animation: clients bar fade up from below footer --- */
@keyframes clientsFadeUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Staggered delay: row 1 --- */
.case-card:nth-child(1) { animation-delay: 0s; }
.case-card:nth-child(2) { animation-delay: 0.08s; }
.case-card:nth-child(3) { animation-delay: 0.16s; }

/* --- Staggered delay: row 2 --- */
.case-card:nth-child(4) { animation-delay: 0.28s; }
.case-card:nth-child(5) { animation-delay: 0.36s; }
.case-card:nth-child(6) { animation-delay: 0.44s; }

/* --- Staggered delay: row 3 --- */
.case-card:nth-child(7) { animation-delay: 0.56s; }
.case-card:nth-child(8) { animation-delay: 0.64s; }
.case-card:nth-child(9) { animation-delay: 0.72s; }

/* ========================================
   List Page — Mobile (≤768px)
   ======================================== */
@media (max-width: 768px) {

  .page-list #scroll-container {
    top: calc(200 / 1620 * 100vw);
    bottom: calc(60 / 1620 * 100vw + 50px);  /* footer + clients bar */
  }

  .clients-bar {
    bottom: calc(60 / 1620 * 100vw);
    padding: 5px calc(30 / 1620 * 100vw);
  }


  /* Mobile clients image */
  .clients-bar .clients-desk { display: none;  }
  .clients-bar .clients-mob  { display: block; }

  .case-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: calc(40 / 1620 * 100vw) calc(24 / 1620 * 100vw);
    padding: calc(50 / 1620 * 100vw) calc(30 / 1620 * 100vw) calc(300 / 1620 * 100vw);
  }

  .case-img-wrap {
    border-radius: calc(16 / 1620 * 100vw);
  }

  .case-title {
    font-size: calc(32 / 1620 * 100vw);
    margin-top: calc(20 / 1620 * 100vw);
  }
}

/* ========================================
   List Page — Small Mobile (≤480px)
   ======================================== */
@media (max-width: 480px) {

  .case-grid {
    gap: calc(60 / 1620 * 100vw);
    padding: calc(60 / 1620 * 100vw) calc(40 / 1620 * 100vw) calc(250 / 1620 * 100vw);
  }

  .case-title {
    font-size: calc(40 / 1620 * 100vw);
  }
}

/* ========================================
   Page: 文章详情 (article.html)
   ======================================== */

.page-article #scroll-container {
  overflow-y: auto;
  overflow-x: hidden;
}

.page-article #scroll-container::-webkit-scrollbar {
  display: none;
}

/* --- Article Content Wrapper --- */
.article-content {
  background: #1b1b1b;
  padding: 0 240px;
}

/* --- Video Section --- */
.article-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

.article-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Show video controls on article page */
.page-article .video-controls {
  /* display: none; */
}

/* --- Play Button Overlay --- */
.article-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.6;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.2s ease;
}

.article-play-btn:hover {
  opacity: .8;
}

.article-play-btn.hidden {
  display: none;
}

/* --- Article Images --- */
.article-images img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Back Button Area (240px) --- */
.article-back {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1b1b1b;
  cursor: pointer;
}

/* --- Close Button (fixed) --- */
.article-close-btn {
  position: fixed;
  top: 175px;
  right: 80px;
  z-index: 1000;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.article-close-btn:hover {
  opacity: 0.8;
}

/* ========================================
   Article Page — Mobile (≤768px)
   ======================================== */
@media (max-width: 768px) {

  .page-article #scroll-container {
    top: calc(200 / 1620 * 100vw);
    bottom: calc(60 / 1620 * 100vw);
  }

  .article-content {
    padding: 6vw 12vw 0;
  }

  .article-close-btn {
    top: calc(230 / 1620 * 100vw + 20px);
    right: calc(60 / 1620 * 100vw);
  }

  .article-close-btn img {
    width: calc(100 / 1620 * 100vw);
    height: auto;
  }

  .article-video .article-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.65;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.2s ease, visibility 0s linear 0s;
    -webkit-tap-highlight-color: transparent;
  }

  .article-video .article-play-btn.hidden {
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  }

  .article-play-btn img {
    width: calc(80 / 1620 * 100vw);
    height: auto;
  }

  .article-back {
    height: calc(300 / 1620 * 100vw);
  }

  .article-back img {
    width: calc(80 / 1620 * 100vw);
    height: auto;
  }
}
