/* ============================================
   南博会 · 幻灯片专题 — Cinematic Editorial
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-body: "Outfit", "Microsoft YaHei", "PingFang SC", sans-serif;
  --nav-size: 48px;
  --transition-primary: 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  --transition-text: 0.7s cubic-bezier(0.65, 0, 0.35, 1);
  --color-accent: #f0c27f;
  --color-accent2: #e8a87c;
  --color-text: #ffffff;
  --color-muted: rgba(255, 255, 255, 0.8);
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* ============================================
   ENTRY VIDEO OVERLAY — 入场视频 + 转场动画
   ============================================ */
.entry-video-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(
    ellipse at 50% 30%,
    #1a0a2e 0%,
    #0d0d1a 40%,
    #000000 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

.entry-video-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.entry-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 视频结束转场动画 */
.entry-transition {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

/* 大屏时覆盖填满，小屏时由 JS 动态切换为 contain */

.entry-transition.active {
  opacity: 1;
}

/* 同心圆扩散光环 - 模拟镜头拉近的光晕效果 */
.entry-transition-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0;
}

.entry-transition.active .entry-transition-ring:nth-child(1) {
  background: radial-gradient(
    circle,
    rgba(255, 248, 230, 0.95) 0%,
    rgba(255, 248, 230, 0.5) 30%,
    transparent 70%
  );
  animation: ringExpand1 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.entry-transition.active .entry-transition-ring:nth-child(2) {
  background: radial-gradient(
    circle,
    rgba(240, 194, 127, 0.9) 0%,
    rgba(240, 194, 127, 0.4) 35%,
    transparent 70%
  );
  animation: ringExpand2 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s
    forwards;
}

.entry-transition.active .entry-transition-ring:nth-child(3) {
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.3) 40%,
    transparent 70%
  );
  animation: ringExpand3 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

@keyframes ringExpand1 {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0;
  }
  20% {
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(25);
    opacity: 0;
  }
}

@keyframes ringExpand2 {
  0% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(20);
    opacity: 0;
  }
}

@keyframes ringExpand3 {
  0% {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0;
  }
  20% {
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(15);
    opacity: 0;
  }
}

/* 中心闪光爆发 */
.entry-transition-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 248, 230, 0.8) 20%,
    rgba(240, 194, 127, 0.4) 50%,
    transparent 80%
  );
  opacity: 0;
}

.entry-transition.active .entry-transition-flash {
  animation: flashBurst 1.5s ease-out forwards;
}

@keyframes flashBurst {
  0% {
    opacity: 0;
    transform: scale(0.1);
  }
  30% {
    opacity: 1;
    transform: scale(1.5);
  }
  60% {
    opacity: 0.8;
    transform: scale(2);
  }
  100% {
    opacity: 0;
    transform: scale(3);
  }
}

/* 粒子效果 */
.entry-transition-particles {

  position: absolute;
  inset: 0;
  pointer-events: none;
}

.entry-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  background: rgba(255, 248, 230, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 248, 230, 0.8);
}

/* ============================================
   ENTRY VIDEO BRAND — 视频播放时 Logo + 文案
   ============================================ */
.entry-video-brand {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  pointer-events: none;
  opacity: 0;
  animation: brandFadeIn 1s ease 0.5s forwards;
}

@keyframes brandFadeIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.entry-video-brand.hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.95);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

/* 自动播放被阻止时显示点击播放按钮 */
.entry-wechat-arrow {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  animation: wechatPulse 2s ease-in-out infinite;
}

.wechat-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.wechat-play-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
}

.entry-wechat-arrow span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 2px;
  font-family: "Outfit", "Microsoft YaHei", sans-serif;
}

@keyframes wechatPulse {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.05);
  }
}

.entry-brand-logo {
  flex-shrink: 0;
  padding-top: 4px;
}

.entry-brand-logo img {
  height: 175px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.entry-brand-divider {
  width: 2px;
  height: 175px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.6) 20%,
    rgba(255, 255, 255, 0.6) 80%,
    transparent
  );
  flex-shrink: 0;
}

.entry-brand-text {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.entry-brand-title {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin: 25px 0 4px 0;
  white-space: nowrap;
}

.entry-brand-subtitle {
  font-family: var(--font-body);
  font-size: 2.65rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* Tablet */
@media screen and (max-width: 1024px) {
  .entry-video-brand {
    top: 18%;
  }
  .entry-brand-logo img {
    height: 105px;
  }
  .entry-brand-divider {
    height: 105px;
  }
  .entry-brand-title {
    font-size: 3.5rem;
  }
  .entry-brand-subtitle {
    font-size: 1.5rem;
  }
}

/* Mobile */
@media screen and (max-width: 768px) {
  .entry-video-brand {
    top: 18%;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .entry-brand-logo {
    padding-top: 0;
  }
  .entry-brand-logo img {
    height: 100px;
  }
  .entry-brand-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(255, 255, 255, 0.5) 20%,
      rgba(255, 255, 255, 0.5) 80%,
      transparent
    );
  }
  .entry-brand-text {
    text-align: center;
  }
  .entry-brand-title {
    font-size: 2rem;
  }
  .entry-brand-subtitle {
    font-size: 1.5rem;
  }
}

/* Small mobile */
@media screen and (max-width: 480px) {
  .entry-video-brand {
    top: 20%;
    gap: 10px;
  }
  .entry-brand-logo img {
    height: 100px;
  }
  .entry-brand-title {
    font-size: 2rem;
  }
  .entry-brand-subtitle {
    font-size: 1.5rem;
  }
}

/* 视频缩放退出效果 - 模拟场景快速拉近 */
.entry-video.zoom-out {
  animation: videoZoomOut 1.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes videoZoomOut {
  0% {
    transform: scale(1);
    opacity: 1;
    filter: brightness(1);
  }
  50% {
    transform: scale(1.3);
    opacity: 0.6;
    filter: brightness(1.5) saturate(1.3);
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
    filter: brightness(2) saturate(0.5);
  }
}

/* ---------- Container ---------- */
.slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #0a0a0a;
  font-family: var(--font-body);
  user-select: none;
}

/* ---------- Slide Wrapper ---------- */
.slide-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* ============================================
   METEOR ANIMATION — 流星划过
   ============================================ */
.meteor-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Mobile top page number — desktop hidden */
.slide-number-top {
  display: none;
}

.meteor {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  top: var(--top);
  left: var(--left);
  opacity: 0;
  animation: meteorShoot var(--duration) cubic-bezier(0.25, 0.46, 0.45, 0.94)
    var(--delay) infinite;
  box-shadow:
    0 0 6px 2px rgba(255, 255, 255, 0.8),
    0 0 20px 6px rgba(255, 248, 230, 0.3);
}

.meteor::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 1.5px;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.3) 30%,
    transparent 100%
  );
  transform: rotate(180deg) translateX(0);
  transform-origin: right center;
  border-radius: 1px;
}

.meteor::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 60px;
  height: 1px;
  background: linear-gradient(
    to left,
    rgba(255, 248, 230, 0.4) 0%,
    transparent 100%
  );
  transform: translateY(-50%);
  border-radius: 1px;
}

@keyframes meteorShoot {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.5) rotate(var(--angle, -45deg));
  }
  5% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(var(--angle, -45deg));
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-600px, 600px) scale(0.3) rotate(var(--angle, -45deg));
  }
}

/* ============================================
   LEFT PANEL — Text (Desktop)
   ============================================ */
.left-slide {
  position: absolute;
  top: 0;
  right: 54%;
  width: 520px;
  height: 100%;
  z-index: 10;
  transition: transform var(--transition-primary);
  pointer-events: none;
}

.slide-card {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  pointer-events: auto;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide-card::before,
.slide-card::after {
  display: none;
}

/* ---------- Slide Card Hover Animation ---------- */
.slide-card:hover {
  transform: translateY(-12px) scale(1.02);
}

.slide-card:hover .slide-content {
  background: rgba(10, 8, 25, 0.85);
  border-color: rgba(240, 194, 127, 0.25);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(240, 194, 127, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.slide-card:hover .slide-number {
  transform: scale(1.08);
  opacity: 1;
}

.slide-card:hover .slide-title {
  transform: translateX(6px);
}

.slide-card:hover .slide-desc {
  transform: translateX(6px);
  color: rgba(255, 255, 255, 0.95);
}

.slide-card:hover .slide-more {
  gap: 14px;
  transform: translateX(6px);
}

/* Text content — 圆角卡片 */
.slide-content {
  text-align: left;
  color: var(--color-text);
  /* padding: 172px 56px; */
  padding-top: 32px;
  padding-left: 56px;
  padding-right: 56px;
  padding-bottom: 152px;
  position: relative;
  z-index: 1;
  transition: transform var(--transition-text);
  background: rgba(10, 8, 25, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}

/* Number */
.slide-number {
  display: block;
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(
    135deg,
    var(--color-accent),
    var(--color-accent2)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.7;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  transition: transform 0.8s ease;
}

/* Title */
.slide-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.6vw, 4.2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  transition:
    opacity var(--transition-text),
    transform var(--transition-text);
}

/* Description */
.slide-desc {
  font-size: clamp(1.3rem, 1.4vw, 1.8rem);
  font-weight: 300;
  color: var(--color-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  margin-bottom: 24px;
  transition:
    opacity var(--transition-text),
    transform var(--transition-text);
}

/* CTA */
.slide-more {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 4px;
  cursor: pointer;
  transition:
    opacity var(--transition-text),
    transform var(--transition-text),
    gap 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.slide-more:hover {
  gap: 12px;
}

/* ============================================
   RIGHT PANEL — Images (Desktop)
   ============================================ */
.right-slide {
  position: absolute;
  top: 0;
  right: 5%;
  width: 50%;
  height: 100%;
  transition: transform var(--transition-primary);
  pointer-events: none;
  z-index: 11;
}

.slide-img {
  height: 100%;
  width: 90%;
  background-size: contain;
  background-position: center right;
  background-repeat: no-repeat;
  position: relative;
  transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: auto;
}

/* Parallax scale on active slide, then gentle float */
.slider-container:not(.is-transitioning) .right-slide .slide-img.active-img {
  transform: scale(1.05);
  animation: imgFloat 3s ease-in-out 1.2s infinite;
}

@keyframes imgFloat {
  0%,
  100% {
    transform: scale(1.05) translateY(0);
  }
  50% {
    transform: scale(1.05) translateY(-8px);
  }
}

.img-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ============================================
   MOBILE NAV BUTTONS
   ============================================ */
.mobile-only {
  display: none;
}

/* ============================================
   PROGRESS TRACK
   ============================================ */
.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.06);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent2));
  transition: width 0.5s ease;
  border-radius: 0 2px 2px 0;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 50;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  display: flex;
  align-items: baseline;
  gap: 4px;
  letter-spacing: 0.05em;
}

.pagination-current {
  font-size: 1.5rem;
  font-weight: 600;
}

.pagination-divider {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.pagination-total {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* ============================================
   BOTTOM NAV BAR — 底部圆点进度条 + 播放控制
   ============================================ */
.bottom-nav-bar {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 10px 18px;
}

/* ---------- Dots Navigation (横向进度条样式) ---------- */
.dots-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dots-nav .dot {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  outline: none;
  padding: 0;
  flex-shrink: 0;
}

/* 当前激活的圆点：长条高亮 */
.dots-nav .dot.active {
  width: 28px;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

/* 进度条填充效果 */
.dots-nav .dot.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  border-radius: 3px;
  animation: dotProgress 4s linear forwards;
}

@keyframes dotProgress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

/* 非激活的圆点：小圆点 */
.dots-nav .dot:not(.active) {
  width: 6px;
  border-radius: 50%;
}

.dots-nav .dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.dots-nav .dot.active:hover {
  background: var(--color-accent);
}

/* ---------- Autoplay Toggle ---------- */
.autoplay-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  outline: none;
  flex-shrink: 0;
}

.autoplay-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.25);
}

.autoplay-toggle.is-paused #playIcon,
.autoplay-toggle.is-paused #pauseIcon,
.autoplay-toggle.is-paused #pauseIcon2 {
  display: none;
}

.autoplay-toggle.is-paused #playIcon {
  display: block;
}

.autoplay-toggle:not(.is-paused) #playIcon {
  display: none;
}

.autoplay-toggle:not(.is-paused) #pauseIcon,
.autoplay-toggle:not(.is-paused) #pauseIcon2 {
  display: block !important;
}

/* ============================================
   HIDE ON RESPECTIVE DEVICES
   ============================================ */
.desktop-only {
  display: block;
}
.mobile-only {
  display: none;
}

/* ============================================
   TEXT ANIMATION ON SLIDE CHANGE
   ============================================ */
.left-slide.is-animating .slide-content {
  animation: textReveal 0.7s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes textReveal {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.left-slide.is-animating .slide-number {
  animation-delay: 0s;
}
.left-slide.is-animating .slide-title {
  animation-delay: 0.08s;
}
.left-slide.is-animating .slide-desc {
  animation-delay: 0.16s;
}
.left-slide.is-animating .slide-more {
  animation-delay: 0.24s;
}

/* Staggered animation for content children */
.slide-content > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.slide-card.active-card .slide-content > * {
  opacity: 1;
  transform: translateY(0);
}

.slide-card.active-card .slide-content > *:nth-child(1) {
  transition-delay: 0.05s;
}
.slide-card.active-card .slide-content > *:nth-child(2) {
  transition-delay: 0.15s;
}
.slide-card.active-card .slide-content > *:nth-child(3) {
  transition-delay: 0.25s;
}
.slide-card.active-card .slide-content > *:nth-child(4) {
  transition-delay: 0.35s;
}

/* ============================================
   RESPONSIVE — TABLET & MOBILE
   ============================================ */

@media screen and (max-width: 1400px) {
  .left-slide {
    left: 4%;
    width: 450px;
  }
  .right-slide {
    right: 0;
    width: 60%;
  }
}

/* Mobile: stack layout (≤1024px) */
@media screen and (max-width: 1024px) {
  /* Hide desktop split layout, hide desktop nav */
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: flex;
  }
  .slide-wrapper::after {
    display: none;
  }

  /* ---- Mobile top page number ---- */
  .slide-number-top {
    display: block;
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    font-family: var(--font-display);
    font-size: 10rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(
      135deg,
      var(--color-accent),
      var(--color-accent2)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.5;
    letter-spacing: -0.03em;
    pointer-events: none;
    transition: opacity 0.6s ease;
  }

  /* Hide card number on mobile (shown in top page number) */
  .slide-card .slide-number {
    display: none;
  }

  /* ---- Full-screen stacked cards (水平排列以支持 translateX 切换) ---- */
  .left-slide,
  .right-slide {
    position: absolute;
    width: 100%;
    left: 0;
    transition: transform var(--transition-primary);
  }

  .left-slide {
    z-index: 1;
    top: 0;
    display: flex;
    flex-wrap: nowrap;
    height: 80%;
  }

  .right-slide {
    z-index: 1;
    top: 0;
    display: flex;
    flex-wrap: nowrap;
    height: 70%;
  }

  /* 左右滑动时每个卡片占满整屏宽度 */
  .slide-card {
    flex: 0 0 100%;
    height: 100%;
    width: 100%;
  }

  /* Image takes full screen */
  .slide-img {
    height: 100%;
    width: 100%;
    flex: 0 0 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .img-overlay {
    /* background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.2) 40%,
      rgba(0, 0, 0, 0.1) 100%
    ); */
  }

  /* Float card overlay for text */
  .slide-card {
    margin-top: 40px;
    align-items: flex-end;
    padding: 0;
    background: transparent !important;
  }

  .slide-card::before,
  .slide-card::after {
    display: none;
  }

  .slide-content {
    position: relative;
    z-index: 10;
    text-align: left;
    padding: 32px 30px;
    width: 85%;
    /* max-width: 500px; */
    background: rgba(10, 8, 25, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
      0 16px 48px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    max-height: 60vh;
    overflow-y: auto;
  }

  .slide-number {
    font-size: 3.2rem;
    text-align: left;
    margin-bottom: 4px;
  }

  .slide-title {
    /* font-size: 1.8rem; */
    margin-bottom: 4px;
  }

  .slide-desc {
    /* font-size: 0.85rem; */
    margin-bottom: 12px;
  }

  .slide-more {
    /* font-size: 0.75rem; */
  }

  /* ---- Mobile Nav Buttons ---- */
  .mobile-only {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    gap: 12px;
  }

  .mobile-only .nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
  }

  .mobile-only .nav-btn:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.18);
  }

  .mobile-only .nav-btn img {
    width: 18px;
    height: 18px;
    display: block;
    filter: brightness(0) invert(0.85);
  }

  /* ---- Mobile Pagination ---- */
  .pagination {
    right: 20px;
    bottom: 20px;
  }

  .bottom-nav-bar {
    bottom: 20px;
    padding: 8px 14px;
    gap: 10px;
  }

  .dots-nav {
    gap: 6px;
  }

  .dots-nav .dot.active {
    width: 22px;
  }

  .dots-nav .dot:not(.active) {
    width: 5px;
    height: 5px;
  }

  .autoplay-toggle {
    width: 28px;
    height: 28px;
  }

  .autoplay-toggle svg {
    width: 12px;
    height: 12px;
  }
}

/* Small mobile */
@media screen and (max-width: 480px) {
  .slide-number {
    font-size: 2.6rem;
  }
  .slide-title {
    /* font-size: 1.5rem; */
  }
  .slide-card {
    margin-top: 20px;
  }
  .slide-content {
    padding: 26px 22px;
    width: 92%;
    border-radius: 14px;
  }
  .mobile-only {
    bottom: 70px;
    gap: 10px;
  }
  .mobile-only .nav-btn {
    width: 38px;
    height: 38px;
  }
  .mobile-only .nav-btn img {
    width: 14px;
    height: 14px;
  }
  .bottom-nav-bar {
    bottom: 16px;
    padding: 6px 12px;
  }
}

/* ============================================
   MODAL — 详情弹窗
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  background: #1a1a1e;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  outline: none;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: rotate(90deg);
}

.modal-body {
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px 32px 0;
}

/* Modal content — only active one shows */
.modal-content {
  display: none;
}

.modal-content.active {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  justify-content: center;
}

/* <p> containing <img> → grid items */
.modal-content.active p:has(img) {
  width: 100%;
  margin: 0;
  line-height: 0;
}

/* <p> without <img> → full width text at bottom */
.modal-content.active p:not(:has(img)) {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 0 36px;
  color: var(--color-muted);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.8;
}

.modal-content.active p img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s ease;
  display: block;
}

.modal-content.active p img:hover {
  transform: scale(1.03);
}

/* Mobile modal */
@media screen and (max-width: 1024px) {
  .modal-container {
    max-width: 100%;
    border-radius: 12px;
  }

  .modal-body {
    padding: 20px 20px 0;
  }

  .modal-content.active {
    gap: 8px;
  }

  .modal-content.active p:has(img) {
    width: 100%;
  }

  .modal-content.active p:not(:has(img)) {
    padding: 18px 0 28px;
    font-size: 1.4rem;
  }
}

@media screen and (max-width: 480px) {
  .modal-body {
    padding: 16px 16px 0;
  }

  .modal-content.active {
    gap: 6px;
  }

  .modal-content.active p:has(img) {
    width: 100%;
  }

  .modal-content.active p:not(:has(img)) {
    padding: 14px 0 20px;
  }
}

/* ============================================
   RESPONSIVE — SLIDE AREA IMPROVEMENTS
   ============================================ */

/* Small mobile — 极小屏 < 480px */
@media screen and (max-width: 480px) {
  .slider-container {
    height: 100vh;
    height: 100dvh;
  }

  .slide-number-top {
    font-size: 12rem;
    top: 3%;
  }

  .slide-number {
    font-size: 2.6rem;
  }
  .slide-title {
    /* font-size: 1.4rem; */
  }
  .slide-desc {
    /* font-size: 0.75rem; */
    margin-bottom: 8px;
  }
  .slide-more {
    /* font-size: 0.65rem; */
  }
  .slide-content {
    padding: 16px 18px;
  }

  .slide-card {
    /* padding-bottom: max(60px, 10vh); */
  }

  .mobile-only {
    bottom: 70px;
    gap: 8px;
  }
  .mobile-only .nav-btn {
    width: 36px;
    height: 36px;
  }
  .mobile-only .nav-btn img {
    width: 14px;
    height: 14px;
  }

  .pagination {
    right: 16px;
    bottom: 20px;
  }
  .pagination-current {
    font-size: 1.1rem;
  }

  /* .dots-nav {
    right: 14px;
    gap: 8px;
  } */
  .dots-nav .dot {
    width: 7px;
    height: 7px;
  }

  .autoplay-toggle {
    right: 18px;
    bottom: 104px;
    width: 30px;
    height: 30px;
  }
}
/*20260612*/
.modal-content.active p:not(:has(img)){ padding:24px 0 10px}
.modal-content.active p img{ width:88%; margin:0 auto; }
.modal-content.active{ gap:10px}
.test{ background:url(../images/arrow-down.png)}

/* 2026/0622 start */
.advertorial-badge {
  position: fixed;
  top: 0px;
  right: 0px;
  z-index: 10000;
  background: rgba(61, 61, 61, 0.6);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 3px;
  line-height: 1.4;
  user-select: none;
  pointer-events: none;
}

@media (max-width: 768px) {
  .advertorial-badge {
    font-size: 10px;
    padding: 3px 8px;
  }
}
/* 2026/0622 end */
