/* =========================================================
   冒号片场 MAOHAO STUDIO — 官网样式
   结构：1 设计变量 → 2 基础 → 3 通用组件 → 4 各区块 → 5 动效 → 6 响应式
   ========================================================= */

/* ---------- 1. 设计变量 ---------- */
@font-face {
  font-family: "Maohao Display";
  /* 基于开源字体「得意黑 Smiley Sans」（SIL OFL 1.1）按页面文字裁剪，见 tools/README.md */
  src: url("../assets/fonts/maohao-display.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* 品牌色 */
  --orange: #FF9F43;
  --orange-deep: #E8812A;
  --pink: #FF8FA7;
  --pink-deep: #EE6F8C;
  --cream: #FFF7ED;
  --cocoa: #54352A;

  /* 衍生色 */
  --paper: #FFFCF7;
  --cream-warm: #FDEEDD;
  --cocoa-soft: #6E4A3C;
  --cocoa-deep: #46291F;
  --line: rgba(84, 53, 42, .14);
  --line-strong: rgba(84, 53, 42, .28);

  /* 阴影（暖色调，不用纯灰） */
  --shadow-sm: 0 1px 2px rgba(84, 53, 42, .07), 0 6px 16px -6px rgba(84, 53, 42, .12);
  --shadow-md: 0 2px 6px rgba(84, 53, 42, .06), 0 18px 40px -16px rgba(84, 53, 42, .28);
  --shadow-lg: 0 4px 10px rgba(84, 53, 42, .08), 0 34px 70px -24px rgba(84, 53, 42, .42);

  /* 字体 */
  --font-display: "Maohao Display", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB",
    "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;

  /* 圆角：按层级区分 */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;

  /* 节奏 */
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(88px, 12vw, 168px);
  --header-h: 68px;

  /* 缓动 */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --focus: var(--cocoa);
}

/* ---------- 2. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@supports (overflow-x: clip) {
  body { overflow-x: clip; }
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
:where(ul[role="list"], .nav-list, .tags) { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--pink); color: var(--cocoa); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--cocoa);
  color: var(--cream);
  font-size: 15px;
  transform: translateY(-160%);
  transition: transform .2s var(--ease-out);
}
.skip-link:focus { transform: none; }

.display,
.section-title,
.hero-title,
.follow-title,
.poster-title,
.stop-title,
.series-name-text,
.about-pull,
.brand-cn, .brand-en,
.footer-cn, .footer-en, .footer-slogan,
.ticket-name, .ticket-platform,
.poster-billing-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
}

/* ---------- 3. 通用组件 ---------- */

/* 按钮：轻微弹性反馈 */
.btn {
  --btn-bg: var(--paper);
  --btn-fg: var(--cocoa);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform .45s var(--ease-spring),
    box-shadow .3s var(--ease-out),
    background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.95); transition-duration: .12s; }

.btn--primary {
  --btn-bg: var(--cocoa);
  --btn-fg: var(--cream);
  box-shadow: 0 12px 26px -12px rgba(84, 53, 42, .7);
}
.btn--primary:hover { --btn-bg: #63402F; box-shadow: 0 16px 30px -12px rgba(84, 53, 42, .75); }

.btn--ghost {
  box-shadow: inset 0 0 0 1.5px var(--line-strong), var(--shadow-sm);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--cocoa), var(--shadow-sm); }

.btn--orange {
  --btn-bg: var(--orange);
  --btn-fg: var(--cocoa);
  box-shadow: 0 14px 28px -14px rgba(232, 129, 42, .9);
}
.btn--orange:hover { --btn-bg: #FFAB5A; }

.btn--quiet {
  --btn-bg: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn--quiet:hover { box-shadow: inset 0 0 0 1.5px var(--cocoa); }

.btn--small { min-height: 42px; padding: 0 18px; font-size: 14px; }

/* 播放小图标 */
.btn-play {
  position: relative;
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--pink);
}
.btn-play::after {
  content: "";
  position: absolute;
  left: 8.5px; top: 6px;
  border-style: solid;
  border-width: 5px 0 5px 7.5px;
  border-color: transparent transparent transparent var(--cream);
}
.btn-play--dark { background: var(--cocoa); }

/* 区块标题前的品牌小冒号 */
.cue {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: .16em;
  width: .2em;
  height: .62em;
  margin-right: .32em;
  vertical-align: .08em;
}
.cue::before, .cue::after {
  content: "";
  width: .2em; height: .2em;
  border-radius: 50%;
  background: var(--orange);
}
.cue::after { background: var(--pink); }

.section { padding-block: var(--section-y); }

.section-title {
  font-size: clamp(36px, 5.4vw, 66px);
  line-height: 1.14;
  letter-spacing: .01em;
}

.section-lede {
  margin-top: 18px;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--cocoa-soft);
}

/* ---------- 4. 各区块 ---------- */

/* 4.1 顶部导航 */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 247, 237, .88);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
}
.brand-mark { width: 21px; height: 40px; transition: transform .5s var(--ease-spring); }
.brand:hover .brand-mark { transform: translateY(-2px) rotate(-4deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-cn { font-size: 20px; letter-spacing: .04em; }
.brand-en { font-size: 10.5px; letter-spacing: .26em; color: var(--cocoa-soft); margin-top: 3px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 6px; margin: 0; }
.nav-list a {
  position: relative;
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--cocoa-soft);
  transition: color .2s ease, background-color .2s ease;
}
.nav-list a:hover { color: var(--cocoa); background: rgba(84, 53, 42, .06); }
.nav-list a.is-current { color: var(--cocoa); }
.nav-list a.is-current::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 1px;
  width: 5px; height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--orange);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(84, 53, 42, .07);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle-text { font-size: 14px; font-weight: 600; letter-spacing: .06em; }
.menu-toggle-icon { position: relative; width: 18px; height: 12px; }
.menu-toggle-icon span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .35s var(--ease-out), top .35s var(--ease-out);
}
.menu-toggle-icon span:first-child { top: 1px; }
.menu-toggle-icon span:last-child { top: 9px; }
.site-header.is-open .menu-toggle-icon span:first-child { top: 5px; transform: rotate(45deg); }
.site-header.is-open .menu-toggle-icon span:last-child { top: 5px; transform: rotate(-45deg); }

/* 4.2 Hero */
.hero {
  --actor: clamp(76px, 8.4vw, 116px);
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 96px;
  overflow: hidden;
}

/* 舞台柔光 */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%; top: 46%;
  width: min(1100px, 140vw);
  aspect-ratio: 1.6;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side at 40% 50%, rgba(255, 159, 67, .2), transparent 70%),
    radial-gradient(closest-side at 60% 56%, rgba(255, 143, 167, .18), transparent 72%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: center;
  column-gap: clamp(24px, 3.2vw, 48px);
}

.hero-title {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
  margin: 0;
  font-size: inherit;
  line-height: 1;
}

.hero-speaker {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.hero-speaker-cn {
  font-size: clamp(30px, 3.4vw, 48px);
  letter-spacing: .04em;
  line-height: 1.1;
}
.hero-speaker-en {
  margin-top: 12px;
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: .3em;
  margin-right: -.3em;
  color: var(--cocoa-soft);
}

.hero-colon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--actor) * .26);
  padding-block: 8px;
}

.hero-line {
  display: flex;
  flex-direction: column;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 1.12;
  letter-spacing: .02em;
}
.hero-line > span { display: block; white-space: nowrap; }

.hero-sub {
  grid-column: 3;
  margin-top: clamp(28px, 3.4vw, 44px);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.7;
  color: var(--cocoa-soft);
  max-width: 26em;
}

.hero-actions {
  grid-column: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-next {
  position: absolute;
  left: 50%;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  transform: translateX(-50%);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--cocoa-soft);
  border-radius: 999px;
}
.hero-next-dots { display: flex; flex-direction: column; gap: 4px; }
.hero-next-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.hero-next-dots span + span { background: var(--pink); }

/* 冒号小角色 */
.actor {
  position: relative;
  display: block;
  width: var(--actor);
  height: var(--actor);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform-origin: 50% 100%;
}
.actor-float, .actor-body { display: block; width: 100%; height: 100%; transform-origin: 50% 100%; }
.actor-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 10px 12px rgba(84, 53, 42, .16));
}
.actor .eyes,
.peeker .eyes {
  transform: translate(calc(var(--px, 0px) + var(--lx, 0px)), calc(var(--py, 0px) + var(--ly, 0px)));
  transition: transform .35s var(--ease-out);
}
.actor .eye,
.peeker .eye { transform-box: fill-box; transform-origin: center; }

.actor-shadow {
  position: absolute;
  left: 14%; right: 14%;
  bottom: -14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(84, 53, 42, .26), transparent);
  transform-origin: center;
}

.actor--top.look-down { --lx: 0px; --ly: 7px; }
.actor--bottom.look-up { --lx: 1px; --ly: -8px; }

/* 4.3 关于 */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about-body { max-width: 34em; padding-top: 10px; }
.about-body > p + p { margin-top: 18px; }
.about-body > p:not(.about-pull) { font-size: clamp(17px, 1.4vw, 19px); }
.about-pull {
  margin-top: 40px !important;
  padding-top: 28px;
  border-top: 1.5px dashed var(--line-strong);
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.35;
}

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.tags li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  line-height: 1.6;
  color: var(--cocoa-soft);
}
.tags li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
}
.tags li:nth-child(even)::before { background: var(--pink); }

/* 4.4 正在连载 */
.series { background: var(--cream-warm); }

.series-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: clamp(44px, 6vw, 72px);
}
.series-intro { max-width: 26em; }
.series-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.series-name-text { font-size: clamp(28px, 2.8vw, 36px); line-height: 1.2; }
.series-desc { margin-top: 8px; color: var(--cocoa-soft); }

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 10px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: .04em;
}
.live-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pink-deep);
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--pink-deep);
  animation: live-pulse 2.4s ease-out infinite;
}

.posters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin: 0;
}
.poster-item:nth-child(2) { margin-top: clamp(24px, 5vw, 64px); }

.poster {
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  position: relative;
}
.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-md);
  transform: perspective(1000px) translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .6s var(--ease-out), box-shadow .5s var(--ease-out);
  isolation: isolate;
}
.poster-frame::after {
  /* 掠过的高光 */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 0%), rgba(255, 255, 255, .32), transparent 46%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.poster:hover .poster-frame { --lift: -6px; box-shadow: var(--shadow-lg); }
.poster:hover .poster-frame::after { opacity: 1; }

.poster-art, .poster-cover { position: absolute; inset: 0; }
.poster-art svg { width: 100%; height: 100%; }
.poster-cover { z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.poster.has-cover .poster-art { display: none; }

.poster-billing {
  position: absolute;
  left: 0; right: 0; bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--cocoa);
  text-align: center;
}
.poster-billing--light { color: var(--cream); }
.poster-billing-title { font-size: 20px; letter-spacing: .08em; line-height: 1.2; }
.poster-billing-credit { font-size: 11px; letter-spacing: .3em; opacity: .75; line-height: 1.4; }

.poster-tag {
  position: absolute;
  z-index: 2;
  top: 14px; right: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(84, 53, 42, .45);
  background: rgba(255, 247, 237, .85);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .06em;
  color: var(--cocoa);
}
.poster-tag[hidden] { display: none; }

.poster-caption { padding: 20px 4px 0; }
.poster-title { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; }
.poster-title a::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: var(--r-md); }
.poster-desc { margin-top: 6px; font-size: 15px; color: var(--cocoa-soft); }

/* 4.5 动画世界 */
.world { overflow: hidden; }
@supports (overflow: clip) { .world { overflow: clip; } }

.world-head { max-width: 40em; margin-bottom: clamp(56px, 7vw, 88px); }

.stops {
  --icon: 104px;
  --stop-gap: clamp(24px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--stop-gap);
  margin: 0;
}
.stop { position: relative; }

/* 延伸的故事线 */
.stop::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: calc(var(--icon) / 2 - 1.5px);
  left: calc(var(--icon) / 2);
  width: calc(100% + var(--stop-gap));
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  transform-origin: left center;
}
.stop:nth-child(2)::before { background: linear-gradient(90deg, var(--pink), var(--orange)); }
.stop:last-child::before {
  width: 100vw;
  background: repeating-linear-gradient(90deg, var(--pink) 0 10px, transparent 10px 22px);
  -webkit-mask-image: linear-gradient(90deg, #000 10%, transparent 70%);
  mask-image: linear-gradient(90deg, #000 10%, transparent 70%);
}

.stop-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--icon);
  height: var(--icon);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  transition: transform .5s var(--ease-spring);
}
.stop-icon svg { width: 56%; height: 56%; }
.stop:hover .stop-icon { transform: translateY(-4px) rotate(-4deg); }
.stop:last-child .stop-icon { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }

.stop-title { margin-top: 28px; font-size: clamp(22px, 2vw, 26px); line-height: 1.3; }
.stop-desc { margin-top: 10px; max-width: 18em; color: var(--cocoa-soft); font-size: 16px; }

/* 4.6 关注我们 */
.follow {
  --focus: var(--orange);
  position: relative;
  z-index: 1;
  padding-top: var(--section-y);
  padding-bottom: calc(var(--section-y) + 40px);
  background: var(--cocoa);
  color: var(--cream);
  text-align: center;
}
.follow-inner { display: flex; flex-direction: column; align-items: center; }
.follow-title { font-size: clamp(38px, 6vw, 76px); line-height: 1.12; letter-spacing: .02em; }
.follow-lede { margin-top: 18px; font-size: clamp(17px, 1.5vw, 20px); color: rgba(255, 247, 237, .78); }

/* 电影票造型的抖音入口 */
.ticket {
  --stub: 168px;
  --notch: 15px;
  position: relative;
  display: grid;
  grid-template-columns: var(--stub) minmax(0, 1fr);
  width: 100%;
  max-width: 760px;
  margin-top: clamp(40px, 5vw, 56px);
  border-radius: var(--r-lg);
  background: var(--cream);
  color: var(--cocoa);
  text-align: left;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
}
.ticket::before, .ticket::after {
  /* 票根缺口 */
  content: "";
  position: absolute;
  left: calc(var(--stub) - var(--notch));
  width: calc(var(--notch) * 2);
  height: calc(var(--notch) * 2);
  border-radius: 50%;
  background: var(--cocoa);
}
.ticket::before { top: calc(var(--notch) * -1); }
.ticket::after { bottom: calc(var(--notch) * -1); }

.ticket-stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 16px;
  border-right: 2px dashed rgba(84, 53, 42, .22);
  background: var(--pink);
  border-radius: var(--r-lg) 0 0 var(--r-lg);
}
.ticket-play {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--cocoa);
}
.ticket-play::after {
  content: "";
  position: absolute;
  left: 22px; top: 17px;
  border-style: solid;
  border-width: 11px 0 11px 16px;
  border-color: transparent transparent transparent var(--cream);
}
.ticket-platform { font-size: 30px; line-height: 1; letter-spacing: .1em; }

.ticket-main {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: clamp(24px, 3.2vw, 36px) clamp(24px, 3.6vw, 44px);
}
.ticket-info { flex: 1; min-width: 0; }
.ticket-name { font-size: clamp(32px, 3.4vw, 42px); line-height: 1.15; }
.ticket-id { margin-top: 6px; font-size: 15px; color: var(--cocoa-soft); }
.ticket-hint { margin-top: 8px; font-size: 15px; color: var(--cocoa-soft); }
.ticket-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ticket[data-has-url] .ticket-hint { display: none; }

.ticket-qr { flex: none; text-align: center; }
.ticket-qr img {
  width: 120px; height: 120px;
  border-radius: var(--r-sm);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  object-fit: contain;
}
.ticket-qr figcaption { margin-top: 8px; font-size: 13px; color: var(--cocoa-soft); }
.ticket-qr[hidden] { display: none; }

/* 从页脚探出头的两个小角色 */
.peekers {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: -1;
  display: flex;
  gap: 10px;
  transform: translate(-50%, 100%);
  transition: transform 1.1s var(--ease-spring);
  pointer-events: none;
}
.peekers.is-up { transform: translate(-50%, 44%); }
.peeker { --ly: -7px; display: block; width: 92px; height: 92px; transform-origin: 50% 100%; }
.peeker svg { width: 100%; height: 100%; overflow: visible; }
.peekers.is-excited .peeker { animation: peek-hop .7s var(--ease-out); }
.peekers.is-excited .peeker--pink { animation-delay: .08s; }

/* 4.7 页脚 */
.site-footer {
  position: relative;
  z-index: 2;
  padding: 72px 0 40px;
  background: var(--cream);
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "brand slogan"
    "meta  copy";
  align-items: center;
  gap: 32px 40px;
}
.footer-brand { grid-area: brand; display: flex; align-items: center; gap: 14px; }
.footer-mark { width: 26px; height: 50px; }
.footer-cn { font-size: 24px; line-height: 1.2; letter-spacing: .04em; }
.footer-en { font-size: 11px; letter-spacing: .28em; color: var(--cocoa-soft); line-height: 1.6; }
.footer-slogan { grid-area: slogan; justify-self: end; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; }
.footer-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--cocoa-soft);
}
.footer-meta > div { display: flex; gap: 10px; }
.footer-meta dt { color: var(--cocoa); font-weight: 600; }
.footer-meta a { text-decoration: underline; text-underline-offset: 3px; }
.footer-copy {
  grid-area: copy;
  align-self: stretch;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--cocoa-soft);
  text-align: right;
}

/* 复制提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 60;
  max-width: calc(100vw - 40px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--cocoa-deep);
  color: var(--cream);
  font-size: 15px;
  line-height: 1.5;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, transform .45s var(--ease-spring), visibility 0s linear .45s;
}
.toast.is-shown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity .3s ease, transform .45s var(--ease-spring);
}

/* ---------- 5. 动效 ---------- */

/* 首屏：角色落位 + 标题柔和入场（纯 CSS，无需 JS） */
.actor { animation: actor-drop 1.05s both; }
.actor--bottom { animation-delay: .1s; }
.actor--top { animation-delay: .38s; }
.actor-float { animation: actor-float 4.4s ease-in-out 1.6s infinite; }
.actor--bottom .actor-float { animation-delay: 3.8s; }

.hero-speaker { animation: soft-rise .9s var(--ease-out) .15s both; }
.hero-line-1 { animation: soft-rise 1s var(--ease-out) .3s both; }
.hero-line-2 { animation: soft-rise 1s var(--ease-out) .45s both; }
.hero-sub { animation: soft-rise 1s var(--ease-out) .7s both; }
.hero-actions { animation: soft-rise 1s var(--ease-out) .85s both; }
.hero-next { animation: fade-in 1s ease 1.6s both; }
.hero-next-dots span { animation: dot-bob 1.8s ease-in-out 2s infinite; }
.hero-next-dots span + span { animation-delay: 2.15s; }

/* 角色动作（由 JS 加上对应 class） */
.is-blinking .eye { animation: blink .24s ease-in-out; }
.actor.is-hopping .actor-body { animation: actor-hop .72s both; }
.actor--bottom { --hop: -16%; }
.actor.is-hopping .actor-shadow { animation: shadow-hop .72s both; }
.actor.is-tilting .actor-body { animation: actor-tilt .9s var(--ease-out) both; }

/* 暂停：首屏不在视野内时节省性能 */
.is-paused .actor-float,
.is-paused .hero-next-dots span { animation-play-state: paused; }

/* 滚动渐入（仅在 JS 可用时隐藏初始状态） */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* 故事线绘制 */
.js .stops .stop::before { transform: scaleX(0); transition: transform 1.2s var(--ease-out); }
.js .stops .stop-icon { opacity: 0; transform: scale(.7); transition: opacity .5s ease, transform .7s var(--ease-spring); }
.js .stops .stop-title, .js .stops .stop-desc { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .stops .stop:nth-child(2) { --s: .35s; }
.js .stops .stop:nth-child(3) { --s: .7s; }
.js .stops.is-visible .stop::before { transform: none; transition-delay: calc(var(--s, 0s) + .25s); }
.js .stops.is-visible .stop-icon { opacity: 1; transform: none; transition-delay: var(--s, 0s); }
.js .stops.is-visible .stop-title { opacity: 1; transform: none; transition-delay: calc(var(--s, 0s) + .12s); }
.js .stops.is-visible .stop-desc { opacity: 1; transform: none; transition-delay: calc(var(--s, 0s) + .2s); }
.js .stops.is-visible .stop:hover .stop-icon { transform: translateY(-4px) rotate(-4deg); transition-delay: 0s; }

@keyframes actor-drop {
  0%   { transform: translateY(-170%) scale(.9, 1.1); opacity: 0; animation-timing-function: cubic-bezier(.5, 0, .9, .5); }
  30%  { opacity: 1; }
  56%  { transform: translateY(0) scale(.94, 1.07); animation-timing-function: ease-out; }
  68%  { transform: translateY(0) scale(1.16, .82); animation-timing-function: ease-in-out; }
  84%  { transform: translateY(-5%) scale(.96, 1.05); animation-timing-function: ease-in-out; }
  100% { transform: none; opacity: 1; }
}

@keyframes actor-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4%); }
}

@keyframes actor-hop {
  0%   { transform: none; animation-timing-function: ease-out; }
  16%  { transform: scale(1.12, .86); animation-timing-function: cubic-bezier(.2, .7, .4, 1); }
  48%  { transform: translateY(var(--hop, -32%)) scale(.93, 1.08); animation-timing-function: ease-in; }
  78%  { transform: translateY(0) scale(1.1, .9); animation-timing-function: ease-out; }
  90%  { transform: scale(.97, 1.03); }
  100% { transform: none; }
}

@keyframes shadow-hop {
  0%, 100% { transform: scale(1); opacity: 1; }
  48%      { transform: scale(.7); opacity: .55; }
}

@keyframes actor-tilt {
  0%   { transform: none; }
  30%  { transform: rotate(-9deg); }
  62%  { transform: rotate(5deg); }
  100% { transform: none; }
}

@keyframes blink {
  0%, 100% { transform: scaleY(1); }
  45%, 55% { transform: scaleY(.08); }
}

@keyframes soft-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@keyframes dot-bob {
  0%, 100% { transform: translateY(0); }
  30%      { transform: translateY(-3px); }
}

@keyframes live-pulse {
  0%   { transform: scale(1); opacity: .6; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

@keyframes peek-hop {
  0%, 100% { transform: none; }
  20%      { transform: scale(1.08, .9); }
  50%      { transform: translateY(-22%) scale(.95, 1.06); }
  80%      { transform: translateY(0) scale(1.05, .95); }
}

/* ---------- 6. 响应式 ---------- */

/* 平板 */
@media (max-width: 1023px) {
  .hero { --actor: clamp(76px, 11vw, 112px); min-height: min(100svh, 1040px); }
  .hero-inner { grid-template-columns: var(--actor) auto; }
  .hero-line { font-size: clamp(44px, 9.4vw, 96px); }
  .hero-speaker-cn { font-size: clamp(28px, 4.6vw, 44px); }
  .hero-title { row-gap: 28px; }
  .hero-speaker { grid-column: 1 / -1; grid-row: 1; align-items: flex-start; text-align: left; }
  .hero-colon { grid-column: 1; grid-row: 2; }
  .hero-line { grid-column: 2; grid-row: 2; }
  .hero-sub, .hero-actions { grid-column: 1 / -1; }

  .about-grid { grid-template-columns: 1fr; }

  .footer-inner {
    grid-template-columns: 1fr;
    grid-template-areas: "brand" "slogan" "meta" "copy";
    gap: 20px;
  }
  .footer-slogan { justify-self: start; }
  .footer-copy { text-align: left; padding-top: 0; border-top: 0; }
}

/* 手机 */
@media (max-width: 759px) {
  :root { --header-h: 60px; }
  body { font-size: 16px; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px var(--gutter) 24px;
    background: var(--cream);
    box-shadow: 0 1px 0 var(--line), 0 24px 40px -24px rgba(84, 53, 42, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .35s var(--ease-out), visibility 0s linear .35s;
  }
  .site-header.is-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s ease, transform .35s var(--ease-out);
  }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a {
    padding: 14px 4px;
    border-radius: 0;
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--cocoa);
    border-bottom: 1px solid var(--line);
  }
  .nav-list a:hover { background: none; }
  .nav-list a.is-current::after { left: auto; right: 8px; bottom: 50%; margin: 0 0 -3px; width: 7px; height: 7px; }
  .nav-cta { min-height: 52px; font-size: 16px; }
  .menu-toggle { display: inline-flex; }

  .brand-mark { width: 18px; height: 34px; }
  .brand-cn { font-size: 18px; }
  .brand-en { font-size: 9.5px; }

  .hero {
    --actor: clamp(60px, 18vw, 84px);
    padding-top: calc(var(--header-h) + 20px);
    padding-bottom: 84px;
  }
  .hero-inner { grid-template-columns: var(--actor) minmax(0, 1fr); column-gap: clamp(16px, 5vw, 26px); justify-content: stretch; }
  .hero-title { row-gap: 22px; }
  .hero-speaker-cn { font-size: clamp(26px, 7.4vw, 32px); }
  .hero-speaker-en { margin-top: 8px; letter-spacing: .26em; }
  .hero-line { font-size: clamp(38px, 11.6vw, 56px); }
  .hero-sub { margin-top: 26px; }
  .hero-actions { flex-direction: column; margin-top: 28px; }
  .hero-actions .btn { width: 100%; }

  .posters {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(76%, 300px);
    gap: 16px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 8px var(--gutter) 28px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .posters::-webkit-scrollbar { display: none; }
  .poster-item { scroll-snap-align: start; }
  .poster-item:nth-child(2) { margin-top: 0; }
  .poster:active .poster-frame { --lift: 0px; transform: scale(.98); transition-duration: .15s; }

  .stops {
    --icon: 76px;
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .stop {
    display: grid;
    grid-template-columns: var(--icon) minmax(0, 1fr);
    column-gap: 20px;
    align-items: start;
  }
  .stop-icon { grid-row: 1 / span 2; }
  .stop-title { margin-top: 10px; }
  .stop-desc { margin-top: 6px; font-size: 15px; }
  .stop::before {
    top: calc(var(--icon) / 2);
    left: calc(var(--icon) / 2 - 1.5px);
    width: 3px;
    height: calc(100% + 44px);
    background: linear-gradient(180deg, var(--orange), var(--pink));
    transform-origin: center top;
  }
  .stop:nth-child(2)::before { background: linear-gradient(180deg, var(--pink), var(--orange)); }
  .stop:last-child::before {
    width: 3px;
    height: 180px;
    background: repeating-linear-gradient(180deg, var(--pink) 0 10px, transparent 10px 22px);
    -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 90%);
    mask-image: linear-gradient(180deg, #000 20%, transparent 90%);
  }
  .js .stops .stop::before { transform: scaleY(0); }
  .js .stops.is-visible .stop::before { transform: none; }

  .ticket {
    --stub: 0px;
    grid-template-columns: 1fr;
  }
  .ticket::before, .ticket::after {
    left: auto;
    top: 73px;
    bottom: auto;
  }
  .ticket::before { left: calc(var(--notch) * -1); }
  .ticket::after { right: calc(var(--notch) * -1); }
  .ticket-stub {
    flex-direction: row;
    justify-content: flex-start;
    height: 88px;
    padding: 0 24px;
    border-right: 0;
    border-bottom: 2px dashed rgba(84, 53, 42, .22);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  .ticket-play { width: 48px; height: 48px; }
  .ticket-play::after { left: 19px; top: 14px; border-width: 10px 0 10px 14px; }
  .ticket-main { padding: 24px 24px 28px; }
  .ticket-actions .btn { width: 100%; white-space: normal; text-align: center; }
  .ticket-qr { display: none !important; }

  .peeker { width: 72px; height: 72px; }

  .site-footer { padding-top: 64px; }
}

/* 子网格不支持时的降级 */
@supports not (grid-template-columns: subgrid) {
  .hero-inner { display: block; }
  .hero-title { display: grid; grid-template-columns: auto auto auto; justify-content: start; gap: 28px; }
  .hero-sub, .hero-actions { margin-left: 0; }
}

@media (hover: none) {
  .poster:hover .poster-frame { --lift: 0px; box-shadow: var(--shadow-md); }
  .poster:hover .poster-frame::after { opacity: 0; }
}

/* 尊重“减少动态效果”设置 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .peekers { transform: translate(-50%, 44%); }
}
