:root {
  --navy: #052d63;
  --navy-deep: #06162c;
  --navy-soft: rgba(6, 22, 44, 0.72);
  --paper: #f6f8fb;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.24);
  --shadow: 0 28px 80px rgba(0, 19, 44, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--white);
  background: var(--navy-deep);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
}

.slide-chrome {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: linear-gradient(180deg, rgba(4, 18, 38, 0.82), rgba(4, 18, 38, 0));
  pointer-events: none;
}

.brand,
.top-actions {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.brand strong,
.brand em {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 17px;
  line-height: 1.1;
}

.brand em {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.top-actions {
  display: inline-flex;
  gap: 10px;
}

.top-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.top-actions a:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.18);
}

.slide-deck {
  min-height: 100svh;
}

.slide {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: clamp(78px, 9svh, 100px) clamp(18px, 5vw, 74px) clamp(58px, 7svh, 76px);
  background: var(--navy-deep);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}

.slide::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 52% 24%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 34%),
    linear-gradient(90deg, rgba(4, 18, 38, 0.42), rgba(4, 18, 38, 0.05) 50%, rgba(4, 18, 38, 0.48));
  content: "";
  pointer-events: none;
}

.slide-bg {
  position: absolute;
  inset: -38px;
  background-image: var(--image);
  background-position: center;
  background-size: cover;
  filter: blur(30px) saturate(0.92);
  opacity: 0.34;
  transform: scale(1.06);
}

.slide-frame {
  position: relative;
  z-index: 2;
  width: min(100%, calc((100svh - 156px) * 0.75));
  max-width: min(1080px, 82vw);
  margin: 0;
  aspect-ratio: 3 / 4;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateY(22px) scale(0.985);
  opacity: 0;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.slide.is-active .slide-frame {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.slide-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pager {
  position: fixed;
  top: 50%;
  right: clamp(14px, 2.8vw, 34px);
  z-index: 35;
  display: grid;
  gap: 18px;
  justify-items: center;
  transform: translateY(-50%);
}

.pager-count {
  display: grid;
  justify-items: center;
  width: 52px;
  padding: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 45, 99, 0.44);
  backdrop-filter: blur(18px);
}

.pager-count strong {
  font-size: 18px;
  line-height: 1;
}

.pager-count em {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-style: normal;
}

.pager-dots {
  display: grid;
  gap: 9px;
}

.pager-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.pager-dots button:hover,
.pager-dots button.is-active {
  border-color: var(--white);
  background: var(--white);
  transform: scale(1.55);
}

.next-page {
  position: fixed;
  right: 50%;
  bottom: 18px;
  z-index: 36;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(5, 45, 99, 0.42);
  backdrop-filter: blur(18px);
  transform: translateX(50%);
}

.next-page span {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  animation: cue 1.5s ease-in-out infinite;
}

@keyframes cue {
  0%,
  100% {
    transform: translateY(-4px) rotate(45deg);
  }
  50% {
    transform: translateY(2px) rotate(45deg);
  }
}

@media (max-width: 920px) {
  .slide {
    padding-right: 18px;
    padding-left: 18px;
  }

  .slide-frame {
    width: min(100%, calc((100svh - 140px) * 0.75));
    max-width: 96vw;
  }

  .pager {
    right: 10px;
  }

  .pager-count {
    width: 42px;
  }

  .pager-dots {
    gap: 7px;
  }

  .pager-dots button {
    width: 7px;
    height: 7px;
  }
}

@media (max-width: 640px) {
  .slide-chrome {
    min-height: 62px;
    padding: 12px 14px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 19px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand em,
  .top-actions,
  .pager-dots {
    display: none;
  }

  .slide {
    padding: 72px 10px 56px;
  }

  .slide-frame {
    justify-self: start;
    width: min(92vw, 370px, calc((100dvh - 128px) * 0.75));
    max-width: calc(100vw - 20px);
  }

  .pager {
    top: auto;
    right: 12px;
    bottom: 16px;
    transform: none;
  }

  .pager-count {
    width: 48px;
    padding: 8px 0;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .slide-chrome {
    min-height: 54px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .slide {
    padding-top: 58px;
    padding-bottom: 18px;
  }

  .slide-frame {
    width: min(84vw, calc((100svh - 76px) * 0.75));
  }

  .next-page {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
