/* ============ 基础 ============ */
@font-face {
  font-family: "Noto Serif SC";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/noto-serif-sc-subset.woff2") format("woff2");
}

:root {
  --bg: #0b0c0f;
  --bg-soft: #121317;
  --card: #17181d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f2f4;
  --text-2: #9a9ca6;
  --text-3: #6b6d77;
  --accent: #e8e8ec;
  --radius: 14px;
  --header-h: 68px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", -apple-system, sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", "Source Han Serif SC", "Noto Serif SC", "STSong", serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: min(1240px, 92%);
  margin: 0 auto;
}

::selection { background: rgba(255,255,255,.18); }

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 15, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 5px;
}

.logo-sub {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 2px;
  white-space: nowrap;
}

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

.nav-link {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 2px;
  transition: color .2s;
}

.nav-link:hover { color: var(--text); }

/* 语言切换 */
.lang-switch {
  position: relative;
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px;
  cursor: pointer;
  user-select: none;
}

.lang-opt {
  position: relative;
  z-index: 2;
  padding: 4px 14px;
  font-size: 13px;
  color: var(--text-2);
  transition: color .25s;
  min-width: 40px;
  text-align: center;
}

.lang-opt.active { color: #0b0c0f; font-weight: 600; }

.lang-slider {
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: 40px;
  border-radius: 999px;
  background: var(--text);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1), left .28s cubic-bezier(.4, 0, .2, 1);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(calc(100vh - var(--header-h)), 840px);
  padding: 76px 0 88px;
  overflow: hidden;
}

/* 海报拼贴动态背景 */
.hero-montage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  opacity: 0.055;
  filter: blur(6px) saturate(0.65);
  transform: scale(1.12);
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 75%, transparent 100%);
}

.m-row {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: drift 90s linear infinite;
}

.m-row.rev { animation-duration: 110s; animation-direction: reverse; }

.m-row img {
  width: 190px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

@keyframes drift {
  to { transform: translateX(-50%); }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 52% 46% at 74% 42%, rgba(128, 138, 255, 0.13), transparent 62%),
    radial-gradient(ellipse 45% 40% at 12% 8%, rgba(220, 110, 80, 0.06), transparent 62%),
    radial-gradient(ellipse 90% 70% at 50% 120%, rgba(0, 0, 0, 0.6), transparent 70%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  gap: 40px;
  align-items: center;
}

/* 左侧文案 */
.hero-copy { position: relative; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--text-3);
}

.hero-kicker::before {
  content: "";
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.32);
}

.hero-title {
  margin-top: 24px;
  font-family: var(--font-serif);
  font-size: clamp(46px, 6.4vw, 84px);
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.1;
  background: linear-gradient(172deg, #ffffff 18%, #d7dae3 58%, #9b9fab 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-en-line {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--text-3);
  text-transform: uppercase;
}

.hero-sub {
  margin-top: 26px;
  max-width: 680px;
  font-size: 15.5px;
  line-height: 1.75;
  letter-spacing: 0.05em;
  color: #a9abb5;
  text-wrap: balance;
}

/* 中文副标题：仅在空间充足时强制单行，避免中等屏幕撑破 */
@media (min-width: 1241px) {
  html[lang="zh-CN"] .hero-sub { white-space: nowrap; }
}

html[lang="en"] .hero-sub { max-width: 480px; }

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 999px;
  background: var(--text);
  color: #0b0c0f;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  box-shadow: 0 14px 34px -14px rgba(255, 255, 255, 0.5);
  transition: transform .28s cubic-bezier(.2,.6,.2,1), box-shadow .28s, background .2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px -16px rgba(255, 255, 255, 0.6);
  background: #fff;
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform .28s;
}

.btn-primary:hover svg { transform: translateX(3px); }

.hero-stats {
  margin-top: 54px;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 26px;
  border-left: 1px solid var(--line);
}

.stat:first-child { padding-left: 0; border-left: none; }

.stat-num {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.15;
  background: linear-gradient(180deg, #fff 35%, #b8bcc7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-unit {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  margin-left: 3px;
  color: var(--text-2);
  -webkit-text-fill-color: var(--text-2);
}

.stat-label {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.22em;
}

/* 右侧主视觉：三张海报悬浮 */
.hero-visual {
  position: relative;
  height: 560px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -14% -8%;
  background: radial-gradient(circle at 52% 44%, rgba(150, 160, 255, 0.18), transparent 62%);
  filter: blur(14px);
  pointer-events: none;
}

.poster-card {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 36px 70px -26px rgba(0, 0, 0, 0.92);
  animation: floaty 8s ease-in-out infinite;
}

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

.poster-card.p3 {
  width: 288px;
  height: 432px;
  left: 50%;
  top: 20px;
  transform: translateX(-50%) rotate(-2.5deg);
  z-index: 3;
}

.poster-card.p2 {
  width: 240px;
  height: 360px;
  right: -56px;
  top: 104px;
  transform: rotate(7deg);
  z-index: 2;
  animation-delay: -2.6s;
}

.poster-card.p1 {
  width: 214px;
  height: 321px;
  left: -18px;
  top: 176px;
  transform: rotate(-8deg);
  z-index: 1;
  opacity: 0.94;
  animation-delay: -4.4s;
}

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  pointer-events: none;
}

.hero-scroll span {
  font-size: 9.5px;
  letter-spacing: 0.34em;
  color: var(--text-3);
}

.hero-scroll i {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent);
  animation: scrollLine 2.4s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============ 作品区 ============ */
.works { padding: 20px 0 110px; }

.section-head {
  padding: 56px 0 34px;
}

.section-kicker {
  display: block;
  font-size: 12px;
  letter-spacing: 8px;
  color: var(--text-3);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--text);
}

.section-head.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

.section-head.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.works-head {
  position: sticky;
  top: calc(var(--header-h) - 1px);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 0;
  background: rgba(11, 12, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filter-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}

.filter-btn {
  border: none;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font);
  font-size: 13.5px;
  letter-spacing: 2px;
  padding: 7px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
}

.filter-btn:hover { color: var(--text); }

.filter-btn.active {
  background: var(--text);
  color: #0b0c0f;
  font-weight: 600;
}

.works-count {
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 网格与卡片 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2, .6, .2, 1), border-color .3s, box-shadow .35s;
  opacity: 0;
  transform: translateY(16px);
}

.card.show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .5s ease, transform .5s ease, border-color .3s, box-shadow .35s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.75);
}

/* 悬停扫光 */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  transform: skewX(-18deg);
  transition: left .65s ease;
  z-index: 4;
  pointer-events: none;
}

.card:hover::before { left: 130%; }

.card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
}

.card-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #000;
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s cubic-bezier(.2, .6, .2, 1), filter .4s;
  filter: saturate(.92);
}

.card:hover .card-poster img {
  transform: scale(1.055);
  filter: saturate(1.05);
}

.card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7, 8, 10, 0.88));
}

/* 播放按钮 */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%) scale(.7);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #e8d5b4;
  border: 1px solid currentColor;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s, transform .3s cubic-bezier(.2, .6, .2, 1);
  z-index: 3;
}

.card:hover .play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.play-btn svg { display: block; width: 20px; height: 20px; transform: translateX(1px); }

/* 状态徽标 */
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.badge-upcoming {
  background: rgba(20, 21, 26, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* 序号 */
.card-num {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* 卡片底部信息 */
.card-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 14px 14px 13px;
}

.card-title {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .5px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

.card-meta {
  margin-top: 5px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 无链接卡片 */
.card.disabled { cursor: default; }
.card.disabled:hover { transform: none; box-shadow: none; }
.card.disabled .play-btn { display: none; }

/* ============ 返回顶部 ============ */
.back-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(23, 24, 29, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility .3s, color .2s, border-color .2s;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.35); }
.back-top svg { width: 18px; height: 18px; fill: currentColor; }

/* ============ 噪点质感 ============ */
.noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ 页脚 ============ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 48px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 6px;
  margin-bottom: 14px;
}

.footer-note {
  font-size: 13px;
  color: var(--text-3);
  max-width: 520px;
  margin: 0 auto 10px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 2px;
}

/* ============ 响应式 ============ */

/* —— 超宽桌面（≥1600px）：放开容器、增加列数，避免卡片过大 —— */
@media (min-width: 1600px) {
  .container { width: min(1360px, 90%); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .hero-visual { height: 620px; }
  .poster-card.p3 { width: 312px; height: 468px; }
  .poster-card.p2 { width: 262px; height: 393px; top: 116px; }
  .poster-card.p1 { width: 232px; height: 348px; top: 196px; }
}

/* —— 笔记本 / 小桌面（≤1240px） —— */
@media (max-width: 1240px) {
  .hero-inner { gap: 30px; }
  .hero-title { font-size: clamp(42px, 5.6vw, 68px); }
  .stat { padding: 0 20px; }
  .works-head { gap: 12px; }
}

/* —— 平板竖屏 / 窄桌面（≤1080px）：首屏改为上下叠放 —— */
@media (max-width: 1080px) {
  .hero {
    min-height: auto;
    padding: 64px 0 72px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hero-visual {
    height: 500px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
  .poster-card.p3 { width: 258px; height: 387px; top: 12px; }
  .poster-card.p2 { width: 214px; height: 321px; top: 92px; right: -4px; }
  .poster-card.p1 { width: 190px; height: 285px; top: 148px; left: -4px; }
  .hero-sub { white-space: normal; max-width: 620px; }
  .hero-scroll { display: none; }
}

/* —— 平板竖屏窄 / 大屏手机（≤900px） —— */
@media (max-width: 900px) {
  .grid { gap: 18px; }
  .card-title { font-size: 14px; }
}

/* —— 手机横竖屏（≤768px）：只保留中间一张主视觉海报 —— */
@media (max-width: 768px) {
  .hero-visual {
    display: block;
    height: 330px;
    width: 100%;
    max-width: 100%;
    margin: 6px auto 0;
  }
  .poster-card.p1, .poster-card.p2 { display: none; }
  .poster-card.p3 {
    width: 216px;
    height: 324px;
    top: 0;
  }
  .hero-visual::before { inset: -8% -4%; }
  .hero-stats { margin-top: 42px; }
  .stat { padding: 0 18px; }
  .stat-num { font-size: 28px; }
}

/* —— 手机（≤640px） —— */
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .hero { padding: 44px 0 52px; }
  .hero-kicker { font-size: 11px; letter-spacing: 0.1em; }
  .hero-kicker::before { width: 20px; }
  .hero-en-line { letter-spacing: 0.22em; font-size: 10px; }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 10px;
    margin-top: 34px;
  }
  .stat { padding: 0; border-left: none; }
  .stat-num { font-size: 26px; }
  .stat-label { font-size: 10px; letter-spacing: 0.14em; }
  .btn-primary { padding: 12px 22px; font-size: 13px; }
  .header-inner { gap: 10px; position: relative; }
  .header-nav { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
  .logo-mark { font-size: 18px; letter-spacing: 3px; }
  .logo-sub { display: none; }
  .nav-link { display: none; }
  .lang-opt { padding: 4px 9px; min-width: 32px; font-size: 12px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .section-head { padding: 34px 0 22px; }
  .section-kicker { letter-spacing: 5px; }
  .back-top { right: 14px; bottom: 14px; width: 40px; height: 40px; }
  .filter-btn { padding: 6px 15px; font-size: 13px; letter-spacing: 1px; }
}

/* —— 小屏手机（≤420px）：压缩筛选栏与卡片信息 —— */
@media (max-width: 420px) {
  .works-head { padding: 10px 0; }
  .filter-btn { padding: 6px 12px; font-size: 12.5px; letter-spacing: 0.5px; }
  .works-count { font-size: 11.5px; letter-spacing: 0; }
  .card-info { padding: 12px 11px 11px; }
  .card-title { font-size: 13px; }
  .card-meta { font-size: 11px; }
  .badge { font-size: 10px; padding: 3px 8px; top: 10px; left: 10px; }
  .card-num { font-size: 10px; top: 10px; right: 10px; }
  .footer-note { font-size: 12px; }
}

/* —— 横屏矮屏（如手机横放、分屏）：取消首屏撑满，避免内容挤压 —— */
@media (max-height: 560px) and (min-width: 641px) {
  .hero {
    min-height: auto;
    padding: 44px 0 48px;
  }
  .hero-visual { height: 340px; }
  .poster-card.p3 { width: 200px; height: 300px; top: 0; }
  .poster-card.p2 { width: 168px; height: 252px; top: 56px; right: -10px; }
  .poster-card.p1 { width: 150px; height: 225px; top: 104px; left: -8px; }
  .hero-stats { margin-top: 32px; }
  .hero-scroll { display: none; }
}

/* 减弱动态效果偏好 */
@media (prefers-reduced-motion: reduce) {
  .m-row, .card::before { animation: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ IP 故事页 ============ */
.page-stories .nav-link.is-current { color: var(--text); }
.page-stories .nav-link.is-current::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 5px;
  background: var(--line-strong);
}

.stories-hero { padding: 104px 0 62px; }
.stories-eyebrow {
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--text-3);
  margin-bottom: 20px;
}
.stories-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5.2vw, 66px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.16;
  color: var(--text);
}
.stories-intro {
  margin-top: 22px;
  max-width: 720px;
  font-size: 15px;
  line-height: 2;
  color: var(--text-2);
}

.stories-body { padding: 52px 0 110px; }
.stories-layout {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 66px;
  align-items: start;
}

/* 左侧目录 */
.stories-toc { position: sticky; top: calc(var(--header-h) + 30px); }
.toc-label {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--text-3);
  margin-bottom: 16px;
}
.toc-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-height: calc(100vh - var(--header-h) - 130px);
  overflow-y: auto;
  padding-right: 6px;
}
.toc-item {
  display: flex;
  gap: 9px;
  padding: 7px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-3);
  text-decoration: none;
  transition: color .2s;
}
.toc-item:hover { color: var(--text-2); }
.toc-item.is-active { color: var(--text); }
.toc-no {
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: .55;
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}

/* 故事条目 */
.story {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 36px;
  padding: 44px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}
.story:first-child { padding-top: 0; }
.story:last-child { border-bottom: none; }

.story-media { grid-row: 1 / 3; }
.story-head { grid-column: 2; }
.story-body { grid-column: 2; min-width: 0; }

.story-media img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
}

.story-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 14px;
}
.story-name {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: var(--text);
}
.story-cn { font-size: 13px; color: var(--text-3); letter-spacing: 0.06em; }
.story-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-3);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.story-line {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--text-2);
  margin-bottom: 16px;
}
.story-text {
  font-size: 15px;
  line-height: 2.05;
  color: rgba(242, 242, 244, 0.86);
  text-align: justify;
}
/* 英文两端对齐会把词距拉散，改左对齐 */
html[lang="en"] .story-text { text-align: left; }
.story-text.is-placeholder { color: var(--text-3); font-style: italic; }

/* ---- 展开查看详情 ---- */
.story-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(216, 189, 139, 0.82);
  cursor: pointer;
  transition: color .2s;
}
.story-toggle:hover { color: rgba(244, 226, 182, 1); }
.story-toggle .toggle-arrow {
  display: inline-block;
  font-size: 11px;
  transition: transform .4s cubic-bezier(.19, 1, .22, 1);
}
.story-toggle.is-open .toggle-arrow { transform: rotate(180deg); }
.story-toggle:focus-visible { outline: 1px solid rgba(216, 189, 139, 0.5); outline-offset: 3px; }

.story-detail {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .55s cubic-bezier(.19, 1, .22, 1), opacity .45s ease;
}
.story-detail.is-open { grid-template-rows: 1fr; opacity: 1; }
.story-detail-inner { overflow: hidden; min-height: 0; }

.detail-item { padding: 22px 0 4px; }
.detail-item + .detail-item { border-top: 1px solid var(--line); margin-top: 18px; }

.detail-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}
.detail-year {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(216, 189, 139, 0.75);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.detail-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
}

.detail-label {
  margin-top: 16px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(216, 189, 139, 0.6);
}
.detail-label::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  margin-right: 9px;
  vertical-align: 3px;
  background: rgba(216, 189, 139, 0.45);
}

.detail-para {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 2.05;
  color: rgba(242, 242, 244, 0.82);
  text-align: justify;
}
html[lang="en"] .detail-para { text-align: left; }

.detail-status {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  font-style: italic;
}

.story-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 26px;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.story-link {
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.story-link:hover { color: var(--text); border-color: var(--line-strong); }

.story-works {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  list-style: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.story-works li {
  font-size: 11.5px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

@media (max-width: 1080px) {
  .stories-layout { grid-template-columns: 168px minmax(0, 1fr); gap: 44px; }
  .story { grid-template-columns: 136px minmax(0, 1fr); gap: 28px; }
  .story-name { font-size: 24px; }
}

/* 平板起：目录转为顶部横向索引 */
@media (max-width: 900px) {
  .stories-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stories-toc {
    position: sticky;
    top: var(--header-h);
    z-index: 20;
    margin: 0 -4% 8px;
    padding: 12px 4%;
    background: rgba(11, 12, 15, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .toc-label { display: none; }
  .toc-list {
    flex-direction: row;
    gap: 8px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .toc-list::-webkit-scrollbar { display: none; }
  .toc-item {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 5px 13px;
    font-size: 12.5px;
    border: 1px solid var(--line);
    border-radius: 999px;
  }
  .toc-item.is-active {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.06);
  }
  .toc-no { display: none; }
  .stories-hero { padding: 72px 0 46px; }
  .stories-body { padding: 32px 0 80px; }
}

@media (max-width: 640px) {
  .stories-hero { padding: 52px 0 38px; }
  .stories-title { font-size: 34px; }
  .stories-eyebrow { font-size: 10px; letter-spacing: 0.3em; margin-bottom: 14px; }
  .stories-intro { font-size: 14px; line-height: 1.95; margin-top: 16px; }
  .story {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 16px;
    padding: 30px 0;
  }
  .story-media { max-width: none; grid-row: 1; grid-column: 1; }
  .story-head {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
    margin-bottom: 0;
  }
  .story-body { grid-row: 2; grid-column: 1 / 3; }
  .story-name { font-size: 21px; }
  .story-tag { font-size: 10px; padding: 2px 8px; }
  .story-line { font-size: 15px; line-height: 1.85; margin-bottom: 12px; }
  .story-text { font-size: 14.5px; line-height: 1.95; }
  .story-foot { margin-top: 20px; font-size: 11.5px; }
  .story-works li { font-size: 11px; }
  /* 手机端保留导航入口（作品 / 故事） */
  .header-nav { gap: 14px; }
  .nav-link { display: inline-block; font-size: 13px; letter-spacing: 1px; }
}

@media (max-width: 420px) {
  .header-nav { gap: 11px; }
  .nav-link { font-size: 12.5px; letter-spacing: 0.5px; }
}

