:root {
  --bg: #fbfbfd;
  --tint: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --radius: 22px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --serif: "Didot", "Bodoni 72", "Bodoni MT", "Playfair Display", "Times New Roman", serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

img, video {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

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

/* 导航 */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 251, 253, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: rgba(0, 0, 0, .08); }
.nav-inner {
  max-width: 1080px;
  height: 48px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand { font-weight: 600; font-size: 17px; letter-spacing: .08em; }
.nav-links { display: flex; gap: 28px; font-size: 13px; color: #424245; }
.nav-links a:hover { color: var(--ink); }

/* 通用 */
.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 980px;
  font-size: 17px;
  cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-small { min-height: 36px; padding: 0 18px; font-size: 14px; background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }

.btn-link { color: var(--blue); font-size: 17px; }
.btn-link span { margin-left: 4px; display: inline-block; transition: transform .2s var(--ease); }
.btn-link:hover span { transform: translateX(3px); }

/* 首屏 */
.hero {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(88px, 16vh, 168px) 22px clamp(56px, 9vh, 96px);
  text-align: center;
}
.hero-title {
  margin: 0;
  font-size: clamp(48px, 9vw, 96px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.01em;
}
.hero-title span { display: block; }
.hero .eyebrow { margin-bottom: 18px; }
.hero .eyebrow, .closing .eyebrow { text-indent: .22em; }

/* 句末标点悬挂在行外，让居中只按文字计算 */
.punct { display: inline-block; width: 0; font-style: normal; }

.hero-actions {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 28px;
}

/* 主推影片 */
.featured { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.featured-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  cursor: pointer;
  text-align: left;
  color: #fff;
}
.featured-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.featured-card:hover .featured-poster { transform: scale(1.025); }
.featured-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0) 55%);
}
.featured-meta {
  position: absolute;
  left: clamp(20px, 4vw, 44px);
  bottom: clamp(18px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.featured-kicker { font-size: 13px; letter-spacing: .2em; opacity: .85; }
.featured-title { font-size: clamp(24px, 4vw, 40px); font-weight: 600; }
.featured-info { font-size: 15px; opacity: .8; }

.play-badge {
  position: absolute;
  right: clamp(20px, 4vw, 44px);
  bottom: clamp(18px, 4vw, 40px);
  width: clamp(48px, 6vw, 64px);
  height: clamp(48px, 6vw, 64px);
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  display: grid;
  place-items: center;
  transition: transform .25s var(--ease);
}
.play-badge svg { width: 42%; fill: var(--ink); margin-left: 6%; }
.featured-card:hover .play-badge { transform: scale(1.06); }

/* 数据概览 */
.stats {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 22px 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.stat-num { font-size: clamp(32px, 5vw, 48px); font-weight: 600; line-height: 1.1; }
.stat-label { margin-top: 4px; font-size: 14px; color: var(--muted); }

/* 区块 */
.section { padding: clamp(80px, 12vh, 128px) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 1080px; margin: 0 auto 36px; padding: 0 22px; }
.section-head h2, .closing-title {
  margin: 0;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.1;
  font-weight: 700;
}
.section-sub { margin: 12px 0 0; color: var(--muted); font-size: 19px; }

/* 影像货架 */
.shelf { margin-top: 44px; }
.shelf-head {
  max-width: 1080px;
  margin: 0 auto 14px;
  padding: 0 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.shelf-title { margin: 0; font-size: 24px; font-weight: 600; }
.shelf-count { margin-left: 10px; font-size: 15px; font-weight: 400; color: var(--muted); }
.shelf-arrows { display: flex; gap: 10px; }
.shelf-arrow {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #e8e8ed;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color .2s var(--ease), opacity .2s var(--ease);
}
.shelf-arrow:hover { background: #dcdce1; }
.shelf-arrow:disabled { opacity: .35; cursor: default; }
.shelf-arrow svg, .nav-btn svg, .icon-btn svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shelf-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(156px, 22vw, 228px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 max(22px, calc((100vw - 1080px) / 2 + 22px));
  padding: 4px max(22px, calc((100vw - 1080px) / 2 + 22px)) 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.shelf-track::-webkit-scrollbar { display: none; }

.film {
  scroll-snap-align: start;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.film-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: #e8e8ed;
}
.film-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.film:hover .film-frame img { transform: scale(1.04); }
.film-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 980px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.film-title {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 图集 */
.chips {
  max-width: 1080px;
  margin: 0 auto 32px;
  padding: 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 980px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.album-grid {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 20px;
}
.album {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.album-frame {
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e8e8ed;
}
.album-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.album:hover .album-frame img { transform: scale(1.04); }
.album-meta { display: block; margin-top: 12px; }
.album-title { display: block; font-size: 19px; font-weight: 600; }
.album-sub { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }

/* 结尾 */
.closing { text-align: center; padding-left: 22px; padding-right: 22px; }

.footer {
  border-top: 1px solid rgba(0, 0, 0, .08);
  padding: 24px 22px calc(24px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.footer p { margin: 0; }

/* 弹层 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: #000;
  color: #fff;
  animation: fade-in .25s var(--ease);
}
.modal[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal-bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px 22px;
}
.modal-title { margin: 0; font-size: 15px; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.modal-count { margin-left: 8px; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.icon-btn {
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.icon-btn svg { width: 16px; }

.player-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 calc(16px + env(safe-area-inset-bottom));
}
.player-stage video { width: 100%; height: 100%; max-height: 100%; background: #000; }
.player-hint {
  position: absolute;
  left: 50%;
  bottom: calc(80px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(360px, calc(100% - 44px));
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(40, 40, 42, .92);
  text-align: center;
  font-size: 14px;
}
.player-hint[hidden] { display: none; }
.player-hint p { margin: 0 0 12px; }
.player-hint-actions { display: flex; justify-content: center; gap: 10px; }

.lightbox-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 64px;
  touch-action: pan-y;
}
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
  transition: opacity .25s var(--ease);
}
.lightbox-img.is-loading { opacity: .25; }
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.nav-btn:disabled { opacity: .25; cursor: default; }
.nav-prev { left: 12px; }
.nav-next { right: 12px; }

.lightbox-strip {
  flex: none;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 22px calc(14px + env(safe-area-inset-bottom));
  scrollbar-width: none;
}
.lightbox-strip::-webkit-scrollbar { display: none; }
.strip-thumb {
  flex: none;
  width: 44px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  opacity: .45;
  cursor: pointer;
  background: #333;
  transition: opacity .2s var(--ease);
}
.strip-thumb img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.strip-thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px #fff; }

body.is-locked { overflow: hidden; }

/* 入场动效 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

@media (max-width: 834px) {
  .album-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .shelf-arrows { display: none; }
}

@media (max-width: 600px) {
  .nav-links { gap: 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .featured-card { aspect-ratio: 4 / 5; }
  .album-frame { border-radius: 16px; }
  .album-title { font-size: 16px; }
  .lightbox-stage { padding: 0; }
  .nav-btn { display: none; }
}
