/* ==========================================================================
   外联部品牌活动站 · 设计系统
   美术方向：参照 2026 招新海报（亮黄绿底 / 黑色粗描边 / 橙色喇叭 / 荧光笔高亮 / 贴纸）
   可迭代：所有颜色、字号、圆角、间距、阴影都在 :root 变量里，改一处全站生效
   ========================================================================== */

:root {
  /* 主色板（取自招新海报） */
  --lime: #d9f26a;
  --lime-soft: #e9f9a6;
  --lime-deep: #c3e34a;
  --ink: #151515;
  --paper: #fffdf4;
  --paper-2: #ffffff;
  --orange: #f5821f;
  --orange-deep: #d96a0c;
  --sky: #bfe1f6;
  --sky-deep: #8cc6e8;
  --highlight: #ffe86a;
  --red: #e4572e;
  --muted: #4a4a44;

  /* 描边与硬阴影（海报的手绘感来自这里） */
  --line: 3px;
  --line-fat: 4px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-soft: 4px 4px 0 var(--ink);
  --shadow-hover: 10px 10px 0 var(--ink);

  /* 圆角 */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;

  /* 间距（8pt 体系） */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 72px;

  /* 字体阶梯 */
  --fs-hero: clamp(44px, 8vw, 104px);
  --fs-h1: clamp(34px, 5.2vw, 64px);
  --fs-h2: clamp(26px, 3.6vw, 44px);
  --fs-h3: clamp(20px, 2.2vw, 26px);
  --fs-body: 16.5px;
  --fs-sm: 14.5px;
  --fs-xs: 13px;

  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC",
    "Hiragino Sans GB", system-ui, sans-serif;
  --maxw: 1180px;
  --menu-w: min(520px, 92vw);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 页面底色叠加轻微网格与光斑，避免大面积纯色发闷 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(680px 420px at 12% 8%, rgba(255, 255, 255, .55), transparent 60%),
    radial-gradient(520px 380px at 92% 0%, rgba(255, 232, 106, .55), transparent 62%),
    linear-gradient(transparent 95%, rgba(21, 21, 21, .045) 95%);
  background-size: auto, auto, 100% 26px;
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.wrap { width: min(var(--maxw), 90vw); margin-inline: auto; }

/* ---------- 通用组件 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  padding: 15px 28px;
  border: var(--line) solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 800;
  font-size: var(--fs-body);
  box-shadow: var(--shadow-soft);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
/* 悬停只向上抬，不向左移：左移会被容器裁剪，看起来像左边被盖住 */
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-deep); }
.btn--ghost { background: transparent; }
.btn--sm { padding: 10px 20px; font-size: var(--fs-sm); box-shadow: 3px 3px 0 var(--ink); }

:focus-visible { outline: 3px dashed var(--ink); outline-offset: 3px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--paper-2);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.chip--hl { background: var(--highlight); }
.chip--sky { background: var(--sky); }
.chip--orange { background: var(--orange); color: #fff; }

.card {
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
}

.highlight {
  background: linear-gradient(transparent 58%, var(--highlight) 58%, var(--highlight) 94%, transparent 94%);
  padding-inline: 2px;
}

.section { padding: var(--sp-6) 0; }
.section--tight { padding: var(--sp-5) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: .04em;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 8px;
  background: var(--ink);
  border-radius: var(--r-pill);
}

.section-head { margin-bottom: var(--sp-4); }
.section-head h2 {
  font-size: var(--fs-h2);
  line-height: 1.1;
  margin: var(--sp-2) 0 var(--sp-1);
  font-weight: 900;
  letter-spacing: -.02em;
}
.section-head p { margin: 0; color: var(--muted); max-width: 60ch; }

/* ---------- 顶部导航 ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(217, 242, 106, .92);
  backdrop-filter: blur(8px);
  border-bottom: var(--line) solid var(--ink);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.logo__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--lime);
  border-radius: 12px;
  font-weight: 900;
  font-size: 20px;
  transform: rotate(-6deg);
}
.logo__text b { display: block; font-weight: 900; line-height: 1.2; letter-spacing: -.01em; }
.logo__text b { white-space: nowrap; }
.logo__text span { font-size: var(--fs-xs); color: var(--muted); }

/* 导航：滑动胶囊切换 */
.nav__links { display: flex; align-items: center; gap: 10px; position: relative; }

.nav__links .nav__indicator {
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--ink);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transform: translate3d(0, -50%, 0);
  transition: transform .34s cubic-bezier(.22, .9, .24, 1),
    width .34s cubic-bezier(.22, .9, .24, 1), opacity .2s ease;
}
.nav__links.is-ready .nav__indicator { opacity: 1; }
/* 跳进页内锚点（如 #join）时视为没有选中任何导航：胶囊淡出 */
.nav__links.is-idle .nav__indicator { opacity: 0; }
.nav__links.is-idle a[aria-current="page"] { font-weight: 700; }

.nav__links a {
  position: relative;
  z-index: 1;
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  border-bottom: 0;
  transition: color .22s ease, transform .22s ease;
}
.nav__links a:hover { transform: translateY(-1px); }
.nav__links a[aria-current="page"] { font-weight: 900; }

/* 被胶囊覆盖时文字反白（颜色在 JS 里切换类名） */
.nav__links a.is-covered { color: var(--lime); }
.nav__links a.is-covered:hover { transform: none; }

.nav__toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: var(--line) solid var(--ink);
  border-radius: 12px;
  background: var(--paper-2);
  box-shadow: var(--shadow-soft);
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 20px;
  height: 3px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}
.nav__toggle span::before { content: ""; position: absolute; top: -7px; }
.nav__toggle span::after { content: ""; position: absolute; top: 7px; }

/* ---------- 首屏 ---------- */

.hero { position: relative; padding: clamp(40px, 7vw, 90px) 0 var(--sp-5); overflow: hidden; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: var(--sp-5);
  align-items: center;
}

.hero__title {
  font-size: var(--fs-hero);
  line-height: .92;
  font-weight: 900;
  letter-spacing: -.03em;
  margin: var(--sp-3) 0 var(--sp-2);
}
.hero__title .line-2 {
  display: block;
  font-size: .42em;
  letter-spacing: .01em;
  margin-top: 14px;
  font-weight: 800;
}
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 34ch; margin: 0 0 var(--sp-3); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* 首屏右侧：竖版海报 + 贴纸 */
.hero__poster {
  position: relative;
  justify-self: end;
  width: min(400px, 100%);
}
.hero__poster img {
  border: var(--line-fat) solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(2.4deg);
  background: var(--paper-2);
}

.sticker {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: var(--line) solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--paper-2);
  font-weight: 900;
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
}
.sticker--1 { top: -22px; left: -26px; background: var(--highlight); transform: rotate(-9deg); }
.sticker--2 { bottom: 34px; right: -30px; background: var(--sky); transform: rotate(7deg); }
.sticker--3 { bottom: -18px; left: -14px; background: var(--orange); color: #fff; transform: rotate(-5deg); }

/* 装饰：星星与火花 */
.spark { position: absolute; z-index: -1; opacity: .95; }
.spark--a { top: 12%; left: 42%; width: 54px; }
.spark--b { bottom: 14%; right: 8%; width: 40px; }
.spark--c { top: 6%; right: 22%; width: 30px; }

/* 数据条 */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: var(--sp-5);
  border: var(--line) solid var(--ink);
  border-radius: var(--r-md);
  background: var(--paper-2);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stats__item { padding: var(--sp-3); border-right: var(--line) solid var(--ink); }
.stats__item:last-child { border-right: 0; }
.stats__num { font-size: clamp(24px, 2.6vw, 34px); font-weight: 900; line-height: 1.1; }
.stats__label { font-size: var(--fs-xs); color: var(--muted); }

/* 滚动字幕条 */
.marquee {
  margin-top: var(--sp-5);
  border-block: var(--line) solid var(--ink);
  background: var(--ink);
  color: var(--lime);
  overflow: hidden;
  padding: 12px 0;
}
.marquee__track {
  display: flex;
  gap: 36px;
  width: max-content;
  font-weight: 900;
  letter-spacing: .06em;
  animation: marquee 26s linear infinite;
}
.marquee__track span { display: inline-flex; align-items: center; gap: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 三个品牌活动 ---------- */

.activities { display: grid; gap: var(--sp-4); }

.act {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: var(--sp-4);
  padding: var(--sp-3);
  align-items: center;
}
.act--reverse { grid-template-columns: minmax(0, 1fr) 300px; }
.act--reverse .act__media { order: 2; }

.act__media {
  position: relative;
  border: var(--line) solid var(--ink);
  border-radius: var(--r-md);
  background: var(--sky);
  min-height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.act:nth-child(2) .act__media { background: var(--lime-soft); }
.act:nth-child(3) .act__media { background: #ffd9b3; }
.act__media img { width: 100%; height: 100%; object-fit: cover; }
.act__media .ph {
  text-align: center;
  margin: 14px;
  padding: 18px 22px;
  border: 2px dashed rgba(21, 21, 21, .4);
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  color: var(--muted);
  background: rgba(255, 255, 255, .45);
}
.act__media .ph svg { width: 120px; margin: 0 auto 10px; }

.act__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}
.act__body h3 {
  font-size: var(--fs-h3);
  margin: 0 0 var(--sp-1);
  font-weight: 900;
  line-height: 1.25;
}
.act__body .en {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: .18em;
  color: var(--orange);
  font-weight: 800;
  margin-bottom: 6px;
}
.act__body p { margin: 0 0 var(--sp-2); color: var(--muted); }
.act__points { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-bottom: var(--sp-2); }
.act__foot { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.act__foot .date { font-size: var(--fs-xs); color: var(--muted); }

/* ---------- 部门介绍 ---------- */

.groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); }
.group {
  padding: var(--sp-3);
  background: var(--paper-2);
  border: var(--line) solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
}
.group b { display: block; font-size: var(--fs-h3); font-weight: 900; }
.group p { margin: 8px 0 0; font-size: var(--fs-sm); color: var(--muted); }

/* ---------- 加入我们 ---------- */

.join {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--paper);
  align-items: center;
}
.join__qr {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: var(--sp-2);
  border: var(--line) dashed var(--ink);
  border-radius: var(--r-md);
  background: var(--paper-2);
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.join__qr img { width: 100%; border-radius: var(--r-sm); }

/* 第 5 屏只剩一个二维码位：居中、放大，别让空屏显得没做完 */
.panel--join .panel__body { align-items: center; }
.join__qr--solo {
  width: min(320px, 82vw);
  padding: clamp(16px, 3vh, 30px);
  gap: clamp(10px, 1.8vh, 18px);
  font-size: clamp(12px, 1.7vh, 14px);
  box-shadow: var(--shadow-soft);
}
.join__qr--solo svg,
.join__qr--solo img {
  width: min(240px, 62vw);
  height: auto;
  border-radius: var(--r-sm);
}

/* ---------- 二级页：活动详情 ---------- */

.subhero {
  padding: clamp(28px, 5vw, 64px) 0 var(--sp-4);
  border-bottom: var(--line) solid var(--ink);
  background: var(--lime-soft);
  position: relative;
  overflow: hidden;
}
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 800;
  margin-bottom: var(--sp-3);
}
.crumb:hover { text-decoration: underline; }
.subhero h1 {
  font-size: var(--fs-h1);
  line-height: 1.04;
  margin: 0 0 var(--sp-2);
  font-weight: 900;
  letter-spacing: -.02em;
}
.subhero .lead { font-size: clamp(17px, 1.8vw, 21px); max-width: 46ch; margin: 0 0 var(--sp-3); }
.subhero__meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.subhero__meta .chip { background: var(--paper-2); }

.factbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: var(--line) solid var(--ink);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow);
  margin-top: var(--sp-4);
}
.factbar > div { padding: var(--sp-3); border-right: var(--line) solid var(--ink); }
.factbar > div:last-child { border-right: 0; }
.factbar b { display: block; font-size: var(--fs-sm); letter-spacing: .1em; color: var(--orange); }
.factbar span { font-size: var(--fs-body); font-weight: 700; }

.prose { max-width: 68ch; }
.prose h2 { font-size: var(--fs-h2); margin: 0 0 var(--sp-2); font-weight: 900; line-height: 1.15; }
.prose p { margin: 0 0 var(--sp-2); }

.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
.col-card {
  padding: var(--sp-3);
  border: var(--line) solid var(--ink);
  border-radius: var(--r-md);
  background: var(--paper-2);
  box-shadow: var(--shadow-soft);
}
.col-card b { display: block; font-size: var(--fs-body); margin-bottom: 6px; }
.col-card p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }

/* 图墙（照片位） */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
.shot {
  aspect-ratio: 4 / 3;
  border: var(--line) solid var(--ink);
  border-radius: var(--r-md);
  background: var(--paper-2);
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot .ph { font-size: var(--fs-xs); color: var(--muted); text-align: center; padding: var(--sp-2); }

/* 时间线 */
.timeline { display: grid; gap: var(--sp-2); }
.tl-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border: var(--line) solid var(--ink);
  border-radius: var(--r-md);
  background: var(--paper-2);
}
.tl-item .y { font-weight: 900; font-size: var(--fs-h3); }
.tl-item p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }

/* 提案块（Career Click 嘉宾方向 / 菁英汇新名字） */
.proposal {
  padding: var(--sp-4);
  border: var(--line) solid var(--ink);
  border-radius: var(--r-lg);
  background: var(--ink);
  color: var(--lime);
  box-shadow: 12px 12px 0 var(--orange);
}
.proposal h2 { font-size: var(--fs-h2); margin: 0 0 var(--sp-2); color: #fff; font-weight: 900; }
.proposal p { color: #e8e8e0; margin: 0 0 var(--sp-2); }
.proposal .ladder { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
.proposal .rung {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: rgba(217, 242, 106, .1);
  border: 2px solid rgba(217, 242, 106, .5);
  border-radius: var(--r-md);
}
.proposal .rung b { color: var(--highlight); }
.proposal .rung span { color: #f2f2ea; font-size: var(--fs-sm); }

.namecard {
  margin-top: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--orange), #ffb347);
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow);
  text-align: center;
}
.namecard .kicker { font-size: var(--fs-xs); letter-spacing: .3em; font-weight: 800; }
.namecard .big {
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.05;
  margin: 6px 0 4px;
}
.namecard .slogan { font-size: var(--fs-body); font-weight: 700; }
.namecard .alts { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--sp-1); margin-top: var(--sp-3); }

/* ---------- 页脚 ---------- */

.footer {
  margin-top: var(--sp-6);
  border-top: var(--line) solid var(--ink);
  background: var(--ink);
  color: #deded6;
  padding: var(--sp-4) 0;
  font-size: var(--fs-sm);
}
.footer a { color: var(--lime); }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-4); }
.footer b { color: #fff; }

/* ---------- 进场动画（尊重系统设置） ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .nav__links .nav__indicator { transition: opacity .2s ease; }
  .nav__links a { transition: none; }
  .nav__links a:hover { transform: none; }
  .stage { transition: none; }
  .panel .panel__head-main > *,
  .panel .panel__poster,
  .panel .home-head > *,
  .panel .home-poster,
  .panel .home-body > *,
  .panel .facts,
  .panel .panel__body > *,
  .panel .homebar > * { opacity: 1; transform: none; transition: none; }
}

/* ---------- 平板 ---------- */

@media (max-width: 1024px) {
  .nav__inner { gap: var(--sp-2); }
  .nav__links a { padding: 9px 12px; font-size: 13.5px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__poster { justify-self: start; width: min(340px, 80%); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2) { border-right: 0; }
  .stats__item:nth-child(-n+2) { border-bottom: var(--line) solid var(--ink); }
  .act, .act--reverse { grid-template-columns: 1fr; }
  .act--reverse .act__media { order: 0; }
  .groups { grid-template-columns: repeat(2, 1fr); }
  .cols, .gallery { grid-template-columns: repeat(2, 1fr); }
  .join { grid-template-columns: 1fr; }
  .footer .wrap { grid-template-columns: 1fr; }
}

/* ---------- 导航折叠（平板及以下） ---------- */

@media (max-width: 900px) {
  .nav__links {
    display: none;
    position: absolute;
    left: 5vw;
    right: 5vw;
    top: calc(100% + 8px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-2);
    background: var(--paper);
    border: var(--line) solid var(--ink);
    border-radius: var(--r-md);
    box-shadow: var(--shadow);
  }
  .nav__links.is-open { display: flex; }
  .nav__links .nav__indicator { display: none; }
  .nav__links a.is-covered { color: inherit; }
  .nav__links a { padding: 12px 8px; border-bottom: 2px solid rgba(21, 21, 21, .12); }
  .nav__links a[aria-current="page"] {
    background: var(--lime-soft);
    border-radius: 10px;
    border-bottom-color: transparent;
  }
  .nav__links.is-idle a[aria-current="page"] { background: transparent; }
  .nav__toggle { display: grid; place-items: center; }
  .nav .btn--sm { display: none; }
}

/* ---------- 手机 ---------- */

@media (max-width: 640px) {
  body { padding-bottom: 84px; } /* 给底部常驻行动条留出空间 */

  :root {
    --shadow: 5px 5px 0 var(--ink);
    --shadow-soft: 4px 4px 0 var(--ink);
    --sp-6: 52px;
    --sp-5: 36px;
    --fs-body: 16px;
  }

  .sticker { font-size: 12px; padding: 8px 14px; }
  .sticker--1 { left: -8px; }
  .sticker--2 { right: -8px; }

  .groups, .cols, .gallery { grid-template-columns: 1fr; }
  .factbar { grid-template-columns: 1fr; }
  .factbar > div { border-right: 0; border-bottom: var(--line) solid var(--ink); }
  .factbar > div:last-child { border-bottom: 0; }
  .tl-item { grid-template-columns: 1fr; }
  .proposal .rung { grid-template-columns: 1fr; }
  .act { padding: var(--sp-2); }
}

/* 手机上底部常驻行动条 */
.mobile-cta { display: none; }
@media (max-width: 640px) {
  .mobile-cta {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 60;
    gap: 10px;
  }
  .mobile-cta .btn { flex: 1; justify-content: center; box-shadow: var(--shadow-soft); }
}

/* 打印：给面试用的纸质备份 */
@media print {
  body::before, .nav, .mobile-cta, .marquee { display: none !important; }
  body { background: #fff; }
  .card, .act, .group, .col-card { box-shadow: none; }
  .section { padding: 18px 0; }
}

/* ==========================================================================
   横向舞台（v2）：整站不可下滑，导航直接切页，页面横向滑出
   仅当 body 带 .is-stage 时生效，单页长图文（legacy/）不受影响
   ========================================================================== */

body.is-stage {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

/* 导航固定在顶部，不再把舞台往下顶 */
body.is-stage .nav { position: fixed; top: 0; left: 0; right: 0; }

.stage {
  display: flex;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  will-change: transform;
  transition: transform .72s cubic-bezier(.76, 0, .24, 1);
}

.stage.is-dragging { transition: none; }

/* ---------- 单个页面（舞台屏） ---------- */

.panel {
  position: relative;
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

/* 每屏底色略有区别，横向滑过时像在看画廊 */
.panel--home { background: var(--lime); }

.panel--jj { background: var(--lime-soft); }
.panel--jj2 { background: var(--lime); }
.panel--club { background: var(--sky); }
.panel--career { background: #ffe9d2; }
.panel--guests { background: var(--ink); color: #f4f2e9; }
.panel--join { background: var(--paper); }

.panel__inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.8vh, 20px);
  padding: calc(77px + clamp(6px, 1.6vh, 18px)) 0 clamp(58px, 8vh, 82px);
  overflow: hidden; /* 日常不滚动；屏幕特别矮时由 .panel__inner 自己滚 */
  /* 允许内容在裁剪边界外再多画 16px：悬停位移、硬阴影不会被切掉 */
  overflow: clip;
  overflow-clip-margin: 16px;
}

/* 所有可点元素放到上层，避免被背景或相邻块压住 */
.btn,
.entry,
.arrow,
.dots button,
.nav__links a { position: relative; z-index: 2; }

/* 屏幕太矮（如横屏手机）时允许该屏内部纵向滚动，避免内容被裁掉 */
@media (max-height: 560px) {
  .panel__inner { overflow: hidden; overflow-y: auto; }
}

.panel__head { display: flex; align-items: flex-start; gap: clamp(16px, 3vw, 48px); }
.panel__head-main { flex: 1; min-width: 0; }

.panel__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(11px, 1.5vh, 13px);
  font-weight: 800;
  letter-spacing: .06em;
}
.panel__eyebrow::before { content: ""; width: 26px; height: 6px; background: currentColor; border-radius: 999px; }

.panel__title {
  font-size: clamp(30px, 6.4vh, 66px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -.02em;
  margin: clamp(6px, 1.2vh, 14px) 0 clamp(6px, 1.4vh, 14px);
}
.panel__lead {
  font-size: clamp(14px, 2.1vh, 19px);
  max-width: 46ch;
  margin: 0;
  opacity: .82;
}

/* 矮屏（笔记本 768px 高以下）压缩首屏字号 */
@media (max-height: 780px) {
  .panel__title { font-size: clamp(26px, 5.6vh, 52px); }
}

.panel__body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; }

/* 头尾区块保持自然高度，不要被 flex 压扁（否则统计条之类的会被裁） */
.panel__inner > .panel__head,
.panel__inner > .facts,
.panel__inner > .homebar,
.homebar > .stats--inline { flex: 0 0 auto; }

/* 每屏内容进场：滑到位之后依次浮现（stagger） */
.panel .panel__head-main > *,
.panel .panel__poster,
.panel .home-head > *,
.panel .home-poster,
.panel .home-body > *,
.panel .facts,
.panel .panel__body > *,
.panel .homebar > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .55s cubic-bezier(.22, .9, .24, 1);
}
.panel.is-current .panel__head-main > *,
.panel.is-current .panel__poster,
.panel.is-current .home-head > *,
.panel.is-current .home-poster,
.panel.is-current .home-body > *,
.panel.is-current .facts,
.panel.is-current .panel__body > *,
.panel.is-current .homebar > * {
  opacity: 1;
  transform: none;
}
.panel.is-current .panel__head-main > *:nth-child(2) { transition-delay: .07s; }
.panel.is-current .panel__head-main > *:nth-child(3) { transition-delay: .13s; }
.panel.is-current .panel__poster { transition-delay: .13s; }
.panel.is-current .facts { transition-delay: .17s; }
.panel.is-current .panel__body > *:nth-child(1) { transition-delay: .22s; }
.panel.is-current .panel__body > *:nth-child(2) { transition-delay: .3s; }
.panel.is-current .homebar > *:nth-child(1) { transition-delay: .34s; }
.panel.is-current .homebar > *:nth-child(2) { transition-delay: .4s; }

/* 首屏海报（右上角悬浮） */
.panel__poster {
  position: relative;
  flex: 0 0 auto;
  width: clamp(120px, 15vh, 200px);
}
.panel__poster img {
  border: var(--line) solid var(--ink);
  border-radius: 16px;
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(3deg);
}

/* ---------- 首页里的三个活动入口 ---------- */

.entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.6vw, 22px); }

.entry {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(14px, 2.4vh, 26px);
  background: var(--paper-2);
  border: var(--line) solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease;
}
.entry:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.entry__num { font-size: clamp(11px, 1.5vh, 13px); font-weight: 800; color: var(--orange); letter-spacing: .1em; }
.entry__title { font-size: clamp(16px, 2.6vh, 24px); font-weight: 900; line-height: 1.25; }
.entry__desc { font-size: clamp(12px, 1.7vh, 15px); opacity: .78; display: none; }
.entry__go { margin-top: auto; font-size: clamp(12px, 1.7vh, 14px); font-weight: 800; color: var(--blue); }

@media (min-height: 700px) and (min-width: 641px) {
  .entry__desc { display: block; }
}

/* ---------- 首页底部：数据 + 行动 ---------- */

.homebar {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  flex-wrap: wrap;
}
.stats--inline {
  flex: 1;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: var(--line) solid var(--ink);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow-soft);
}
.stats--inline > div { padding: clamp(8px, 1.6vh, 18px) clamp(10px, 1.4vw, 20px); border-right: var(--line) solid var(--ink); }
.stats--inline > div:last-child { border-right: 0; }
.stats--inline .stats__num { font-size: clamp(16px, 2.6vh, 28px); }
.stats--inline .stats__label { font-size: clamp(10px, 1.4vh, 13px); }

/* ---------- 内容屏常用块 ---------- */

.panel-grid { display: grid; gap: clamp(10px, 1.6vw, 20px); }
.panel-grid--3 { grid-template-columns: repeat(3, 1fr); }
.panel-grid--2 { grid-template-columns: repeat(2, 1fr); }

.mini {
  padding: clamp(12px, 2.2vh, 24px);
  background: var(--paper-2);
  border: var(--line) solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
}
.mini b { display: block; font-size: clamp(14px, 2.1vh, 19px); margin-bottom: 4px; }
.mini p { margin: 0; font-size: clamp(12px, 1.7vh, 15px); opacity: .78; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: var(--line) solid var(--ink);
  border-radius: var(--r-md);
  background: var(--paper-2);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.facts > div { padding: clamp(10px, 1.8vh, 20px) clamp(12px, 1.6vw, 22px); border-right: var(--line) solid var(--ink); }
.facts > div:last-child { border-right: 0; }
.facts b { display: block; font-size: clamp(10px, 1.4vh, 13px); letter-spacing: .12em; color: var(--orange); }
.facts span { font-size: clamp(12px, 1.8vh, 16px); font-weight: 700; }

/* 照片位（舞台上更矮） */
.shotstrip { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1.2vw, 16px); }
.shotstrip .shot { aspect-ratio: auto; height: clamp(72px, 15vh, 150px); }

/* 夜幕版（嘉宾方向那屏用深底） */
.panel--guests .mini,
.panel--guests .facts { background: rgba(255, 255, 255, .07); border-color: rgba(217, 242, 106, .55); box-shadow: none; color: #f4f2e9; }
.panel--guests .facts b { color: var(--highlight); }
.panel--guests .ladder { display: grid; gap: clamp(8px, 1.4vh, 14px); }
.panel--guests .rung {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: clamp(10px, 1.6vw, 20px);
  padding: clamp(9px, 1.6vh, 16px) clamp(12px, 1.6vw, 20px);
  border: 2px solid rgba(217, 242, 106, .45);
  border-radius: var(--r-sm);
  font-size: clamp(12px, 1.75vh, 15px);
}
.panel--guests .rung b { color: var(--highlight); }

/* 名字提案卡（菁英汇提案屏） */
.panel .namecard { margin: 0; padding: clamp(14px, 3vh, 34px); }
.panel .namecard .big { font-size: clamp(32px, 8vh, 76px); }
.panel .namecard .slogan { font-size: clamp(13px, 2vh, 18px); }

/* ---------- 舞台控制条 ---------- */

.panel-controls {
  position: fixed;
  left: 0;
  right: 0;
  bottom: clamp(10px, 2.2vh, 22px);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.panel-controls > * { pointer-events: auto; }

.dots { display: flex; align-items: center; gap: 7px; margin-right: auto; }
.dots button {
  width: 30px;
  height: 8px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  transition: background .2s ease, width .28s cubic-bezier(.22,.9,.24,1);
}
.dots button.is-on { background: var(--ink); width: 46px; }

.arrows { display: flex; gap: 8px; }
.arrow {
  width: clamp(42px, 5.4vh, 52px);
  height: clamp(42px, 5.4vh, 52px);
  display: grid;
  place-items: center;
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  background: var(--paper-2);
  box-shadow: var(--shadow-soft);
  transition: transform .16s ease, opacity .2s ease, box-shadow .16s ease;
}
.arrow:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.arrow[disabled] { opacity: .32; cursor: default; transform: none; box-shadow: var(--shadow-soft); }
.arrow svg { width: 20px; }

.counter {
  font-weight: 900;
  font-size: clamp(12px, 1.8vh, 15px);
  padding: 0 6px;
  min-width: 66px;
  text-align: center;
}

.hint {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(10px, 2.2vh, 22px);
  z-index: 39;
  font-size: clamp(11px, 1.4vh, 12.5px);
  opacity: .55;
  pointer-events: none;
}

/* 深色屏上控件反色 */
.panel--guests ~ .panel-controls .dots button,
.panel--guests ~ .panel-controls .arrow,
.panel--guests ~ .panel-controls .counter { color: inherit; }

/* ---------- 移动端舞台 ---------- */

@media (max-width: 640px) {
  .panel__inner { padding-top: calc(62px + 10px); padding-bottom: 86px; gap: 10px; }
  .panel__title { font-size: clamp(23px, 4.4vh, 33px); line-height: 1.08; margin: 6px 0 8px; }
  .panel__lead { font-size: 13.5px; line-height: 1.6; }
  .panel__eyebrow { font-size: 11px; }
  .panel__poster { width: 62px; }
  .panel__poster img { box-shadow: 5px 5px 0 var(--ink); }

  .entries { grid-template-columns: 1fr; gap: 8px; }
  .entry { flex-direction: row; align-items: center; gap: 8px; padding: 10px 12px; }
  .entry__num { flex: 0 0 auto; }
  .entry__title { font-size: 14px; }
  .entry__go { font-size: 12px; }
  .entry__go { margin: 0 0 0 auto; }

  .panel-grid--3, .panel-grid--2, .facts, .shotstrip { grid-template-columns: 1fr; }
  .shotstrip .shot { height: 64px; }
  .mini { padding: 10px 12px; }
  .mini b { font-size: 14px; }
  .mini p { font-size: 12.5px; }
  .facts > div { border-right: 0; border-bottom: var(--line) solid var(--ink); }
  .facts > div:last-child { border-bottom: 0; }
  .panel--guests .rung { grid-template-columns: 1fr; gap: 2px; }
  .panel .namecard .alts { justify-content: flex-start; }

  .stats--inline { grid-template-columns: repeat(2, 1fr); }
  .stats--inline > div { padding: 8px 10px; }
  .stats--inline > div:nth-child(2) { border-right: 0; }
  .stats--inline > div:nth-child(-n+2) { border-bottom: var(--line) solid var(--ink); }

  .homebar { gap: 10px; flex-direction: column; align-items: stretch; }
  .homebar .btn { flex: 1; justify-content: center; padding: 12px 18px; font-size: 14px; }
  .stats--inline .stats__label { font-size: 11px; line-height: 1.35; }

  .hint { display: none; }
  .counter { min-width: 52px; font-size: 12px; }
}

/* ==========================================================================
   首屏专用排版：左边文字 + 右边完整海报
   海报不裁切、按比例放大；手机端退化为标题右上角的小图
   ========================================================================== */

.home-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "head poster"
    "body poster"
    "bar  poster";
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 2vh, 22px) clamp(20px, 3.4vw, 56px);
}

.home-head { grid-area: head; }
.home-body {
  grid-area: body;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home-grid > .homebar { grid-area: bar; }

.home-poster {
  grid-area: poster;
  margin: 0;
  align-self: center;
  width: clamp(190px, 25vw, 340px);
}
.home-poster img {
  width: 100%;
  height: auto;
  border: var(--line) solid var(--ink);
  border-radius: 16px;
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(1.8deg);
}
.home-poster figcaption {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

/* 首屏三个入口改成横排列表（给海报让出右栏） */
.entries { display: grid; grid-template-columns: 1fr; gap: 8px; }
.entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "num title go"
    ".   desc  .";
  align-items: center;
  gap: 2px 14px;
  padding: clamp(8px, 1.5vh, 15px) clamp(12px, 1.6vw, 20px);
  text-align: left;
}
.entry__num { grid-area: num; }
.entry__title { grid-area: title; }
.entry__desc { grid-area: desc; display: block; }
.entry__go { grid-area: go; margin: 0; }

/* 首屏的进场顺序 */
.panel.is-current .home-head > *:nth-child(2) { transition-delay: .07s; }
.panel.is-current .home-head > *:nth-child(3) { transition-delay: .13s; }
.panel.is-current .home-poster { transition-delay: .16s; }
.panel.is-current .home-body > *:nth-child(1) { transition-delay: .22s; }
.panel.is-current .home-grid > .homebar > *:nth-child(1) { transition-delay: .3s; }
.panel.is-current .home-grid > .homebar > *:nth-child(2) { transition-delay: .36s; }

/* ==========================================================================
   开页动画：SVG 描边逐字画出 + 填充从左往右擦入
   参考 ReactBits "Stroke Text"（stroke-dashoffset 描边 + clip 擦入 + 逐字错峰）
   ========================================================================== */

body.is-intro .stage,
body.is-intro .nav,
body.is-intro .panel-controls,
body.is-intro .hint { opacity: 0; }

.stage, .nav { transition: opacity .45s ease .1s; }

.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.4vh, 26px);
  background: var(--lime);
  overflow: hidden;
}

.intro__art { width: min(78vw, 760px); height: auto; display: block; }

.intro__stroke,
.intro__fill {
  font-family: var(--font);
  font-size: 210px;
  font-weight: 900;
  letter-spacing: 6px;
}

/* 描边层：每个字依次"写"出来 */
.intro__stroke {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3.2;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: intro-draw .82s cubic-bezier(.62, 0, .26, 1) forwards;
}
.intro__stroke tspan:nth-child(1) { animation-delay: .04s; }
.intro__stroke tspan:nth-child(2) { animation-delay: .17s; }
.intro__stroke tspan:nth-child(3) { animation-delay: .30s; }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }

/* 填充层：被裁切区域从左往右扫过，形成"擦入" */
.intro__fill { fill: var(--ink); stroke: none; }
.intro__wipe {
  transform-box: fill-box;
  transform-origin: left center;
  transform: scaleX(0);
  animation: intro-wipe .5s cubic-bezier(.7, 0, .22, 1) 1.02s forwards;
}
@keyframes intro-wipe { to { transform: scaleX(1); } }

.intro__sub {
  margin: 0;
  font-size: clamp(13px, 1.7vh, 17px);
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted);
  opacity: 0;
  animation: intro-fade .5s ease 1.42s forwards;
}
.intro__hint {
  position: absolute;
  bottom: clamp(18px, 4vh, 40px);
  font-size: 12.5px;
  color: var(--muted);
  opacity: 0;
  animation: intro-fade .5s ease 1.7s forwards;
}
@keyframes intro-fade { to { opacity: .75; } }

/* 退场：整块向上卷走 */
.intro.is-done { animation: intro-out .58s cubic-bezier(.7, 0, .22, 1) forwards; }
@keyframes intro-out { to { transform: translateY(-101%); } }

@media (max-width: 640px) {
  .intro__stroke,
  .intro__fill { font-size: 150px; letter-spacing: 2px; }
}

/* ==========================================================================
   首页 v4：左侧招新海报（视觉中心） + 右侧导航
   导航参考 ReactBits "Staggered Menu"：右滑面板 + 两层色块错峰滑入 + 菜单项逐条淡入
   ========================================================================== */

/* ---------- 菜单按钮 ---------- */

.menu-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border: var(--line) solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 800;
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-soft);
  transition: transform .16s ease, box-shadow .16s ease, background .25s ease, color .25s ease;
}
.menu-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.menu-btn__lines { display: grid; gap: 4px; }
.menu-btn__lines i {
  display: block;
  width: 18px;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s cubic-bezier(.22,.9,.24,1), opacity .2s ease;
}
body.is-menu-open .menu-btn { background: var(--sky); color: var(--ink); }
body.is-menu-open .menu-btn__lines i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.is-menu-open .menu-btn__lines i:nth-child(2) { opacity: 0; }
body.is-menu-open .menu-btn__lines i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- 侧滑导航面板 ---------- */

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(21, 21, 21, .26);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
body.is-menu-open .menu-backdrop { opacity: 1; pointer-events: auto; }

.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 150;
  width: var(--menu-w);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(77px + clamp(16px, 3vh, 34px)) clamp(26px, 4vw, 52px) clamp(24px, 5vh, 48px);
  background: var(--lime);
  /* 面板停留在最终位置，用 clip-path 从右往左"长出来"，盖住后面的色块 */
  clip-path: inset(0 0 0 100%);
  transition: clip-path .6s cubic-bezier(.76, 0, .24, 1) .2s;
  pointer-events: none;
  overflow: visible;
}
.menu-panel.is-open {
  clip-path: inset(0 0 0 0);
  pointer-events: auto;
}

/* 过渡色块：取招新海报上的浅蓝 + 荧光黄，铺在面板背后
   打开时先滑进来铺满，紧接着绿色面板长出来把它们盖掉 */
.menu-film {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: var(--menu-w);
  z-index: 145;
  transform: translateX(103%);
  transition: transform .6s cubic-bezier(.76, 0, .24, 1);
  pointer-events: none;
}
.menu-film--a { background: var(--sky); }
.menu-film--b { background: var(--highlight); width: calc(var(--menu-w) * .78); }
body.is-menu-open .menu-film--a { transform: none; }
body.is-menu-open .menu-film--b { transform: none; transition-delay: .1s; }

.menu-panel__nav,
.menu-panel__foot { position: relative; z-index: 1; }

.menu-panel__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding: clamp(8px, 1.5vh, 15px) 0;
  border-bottom: 2px solid rgba(21, 21, 21, .18);
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .45s ease, transform .5s cubic-bezier(.22, .9, .24, 1);
}
.menu-panel.is-open .menu-panel__item { opacity: 1; transform: none; }
.menu-panel.is-open .menu-panel__item:nth-child(1) { transition-delay: .20s; }
.menu-panel.is-open .menu-panel__item:nth-child(2) { transition-delay: .26s; }
.menu-panel.is-open .menu-panel__item:nth-child(3) { transition-delay: .32s; }
.menu-panel.is-open .menu-panel__item:nth-child(4) { transition-delay: .38s; }
.menu-panel.is-open .menu-panel__item:nth-child(5) { transition-delay: .44s; }

.menu-panel__label {
  font-size: clamp(22px, 3.2vh, 34px);
  font-weight: 900;
  line-height: 1.2;
  display: inline-block;
  transition: transform .28s cubic-bezier(.22,.9,.24,1), color .25s ease;
}
/* 编号做成右上角小上标，和参考组件的 "HOME ⁰¹" 一致 */
.menu-panel__num {
  font-style: normal;
  font-size: .4em;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--muted);
  margin-left: 8px;
  vertical-align: super;
  transition: color .25s ease;
}
.menu-panel__desc { font-size: 13px; color: var(--muted); }
.menu-panel__item:hover .menu-panel__label { transform: translateX(8px); color: var(--orange); }
.menu-panel__item:hover .menu-panel__num { color: var(--orange); }

/* 相关链接（对应参考组件的 socials 区块） */
.menu-panel__links {
  position: relative;
  z-index: 1;
  margin-top: clamp(14px, 2.6vh, 30px);
  padding-top: clamp(8px, 1.6vh, 16px);
  border-top: 2px solid rgba(21, 21, 21, .18);
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .45s ease, transform .5s cubic-bezier(.22, .9, .24, 1);
}
.menu-panel.is-open .menu-panel__links { opacity: 1; transform: none; transition-delay: .5s; }
.menu-panel__links-title {
  display: block;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--muted);
}
.menu-panel__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 14.5px;
  font-weight: 700;
  border-bottom: 1px dashed rgba(21, 21, 21, .2);
  transition: color .22s ease, transform .22s ease;
}
.menu-panel__link:last-child { border-bottom: 0; }
.menu-panel__link:hover { color: var(--orange); transform: translateX(4px); }

.menu-panel__foot {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  opacity: 0;
  transition: opacity .45s ease;
}
.menu-panel.is-open .menu-panel__foot { opacity: 1; transition-delay: .58s; }

/* ---------- 首屏：左海报 / 右导航 ---------- */

.home-split {
  flex: 1;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  /* 用 min-content：四行都按内容高，多余高度交给 align-content 居中，不撑按钮 */
  grid-template-rows: min-content min-content min-content min-content;
  grid-template-areas:
    "poster head"
    "poster title"
    "poster cta"
    "poster stats";
  align-content: center;                 /* 右侧这组文字整块垂直居中 */
  gap: clamp(6px, 1.6vh, 18px) clamp(28px, 5vw, 92px);
}

.home-poster {
  grid-area: poster;
  align-self: center;
  margin: 0;
  width: min(32vw, 44vh, 360px);
  max-width: 46vw;
  min-height: 0;
  display: grid;
  gap: 12px;
  justify-items: center;
}
.home-poster img {
  width: 100%;
  height: auto;
  border: var(--line-fat) solid var(--ink);
  border-radius: 18px;
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(-1.6deg);
}
.home-poster figcaption { font-size: 12.5px; color: var(--muted); }

.home-split > .panel__eyebrow { grid-area: head; align-self: end; }
/* 首屏导航列表已删，标题可以放大 */
.home-split > .panel__title {
  grid-area: title;
  margin: 0;
  font-size: clamp(38px, min(8.6vh, 7.4vw), 92px);
  line-height: 1.03;
}
.home-split > .home-cta {
  grid-area: cta;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: clamp(4px, 1.2vh, 12px);
}
.home-split > .home-stats { grid-area: stats; }

.home-stats { margin: 0; font-size: clamp(11.5px, 1.5vh, 13px); color: var(--muted); }

/* 首屏其余元素跟随整屏进场 */
.panel .home-split > .panel__eyebrow,
.panel .home-split > .panel__title,
.panel .home-split > .home-cta,
.panel .home-split > .home-stats,
.panel .home-split > .home-poster { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .55s cubic-bezier(.22,.9,.24,1); }
.panel.is-current .home-split > .panel__eyebrow,
.panel.is-current .home-split > .panel__title,
.panel.is-current .home-split > .home-cta,
.panel.is-current .home-split > .home-stats,
.panel.is-current .home-split > .home-poster { opacity: 1; transform: none; }
.panel.is-current .home-split > .panel__title { transition-delay: .07s; }
.panel.is-current .home-split > .home-poster { transition-delay: .13s; }
.panel.is-current .home-split > .home-cta { transition-delay: .3s; }
.panel.is-current .home-split > .home-stats { transition-delay: .46s; }

@media (max-width: 899px) {
  :root { --menu-w: min(440px, 94vw); }
  /* 手机：文字在上、海报在下；海报吃掉剩下的高度并水平居中（看得清） */
  .home-split {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto minmax(0, 1fr);
    grid-template-areas:
      "head"
      "title"
      "cta"
      "poster";
    align-content: start;
    gap: clamp(6px, 1.2vh, 12px) 12px;
  }
  .home-poster {
    grid-area: poster;
    align-self: stretch;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    min-height: 0;
    gap: 0;
  }
  .home-poster img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    box-shadow: 6px 6px 0 var(--ink);
    border-radius: 12px;
  }
  .home-poster figcaption { display: none; }
  .home-split > .panel__title { font-size: clamp(26px, min(8.4vw, 5.6vh), 38px); line-height: 1.08; }
  .home-split > .home-cta { margin-top: 6px; }
  .home-split > .home-cta .btn { padding: 11px 18px; font-size: 14px; }
  .home-stats { display: none; }
  .menu-btn { padding: 10px 14px; }
  .menu-btn > span:last-child { display: none; }
}

/* 横屏手机（屏很矮，上下排不下）：退回左右两栏，文字在左、海报在右 */
@media (max-width: 899px) and (max-height: 520px) {
  .home-split {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas:
      "head poster"
      "title poster"
      "cta poster";
    align-content: center;
  }
  .home-poster { width: min(30vw, 46vh); align-self: stretch; }
}

/* 平板 / 小窗（600–899px）：文字在左、海报在右占 46% 宽，海报能用到整屏高度，看得更清 */
@media (min-width: 600px) and (max-width: 899px) {
  .home-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 46%);
    grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas:
      "head poster"
      "title poster"
      "cta poster";
    align-content: center;
    gap: clamp(6px, 1.4vh, 14px) clamp(16px, 3vw, 36px);
  }
  .home-poster { align-self: stretch; justify-self: stretch; width: auto; }
  .home-split > .panel__title { font-size: clamp(28px, 5.8vw, 50px); line-height: 1.06; }
  .home-split > .home-cta { margin-top: clamp(4px, 1.4vh, 12px); }
}

/* 平板与手机：内容屏（.home-grid 已废弃）在窄屏下的兜底 */
@media (max-width: 899px) {
  .home-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "head poster"
      "body body"
      "bar  bar";
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
  }
  /* 手机上隐藏入口卡的一句说明，保证一屏放得下（说明在对应活动屏里还有） */
  .entry__desc { display: none; }
}

/* ==========================================================================
   手机端内容屏（02–04）卡片不再互相压住
   iPhone Pro / Pro Max 一屏放不下：以前靠 flex 压缩，卡片就被挤到互相重叠。
   现在改成「谁也不收缩 + 这一屏内部可以滚动」，并把照片位在窄屏保持三连横排省高度。
   ========================================================================== */
@media (max-width: 899px) {
  .panel__inner {
    overflow: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  /* 首屏的 .home-split 要靠 flex:1 撑满，不能一起被禁止收缩 */
  .panel__inner > *:not(.home-split):not(.panel__body),
  /* 画廊那几屏的 .panel__body 要留着长高，让画廊吃满剩余高度 */
  .panel--join .panel__body,
  .panel__inner .facts,
  .panel__inner .panel__grid,
  .panel__inner .shotstrip,
  .panel__inner .homebar {
    flex: 0 0 auto;
  }
  .shotstrip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shotstrip .shot { height: clamp(64px, 12vh, 120px); }
}

/* ==========================================================================
   手风琴画廊（02–04 三屏，参考 ReactBits «Accordion Gallery»）
   参考组件的行为：一排面板，当前项沿主轴向拉开；非当前项带 ±tilt 的 3D 倾斜、
   图片灰度+弱透明，文字条只在当前项出现；hover / 点击 / ← → 都能切换。
   这里用纯 CSS 过渡实现（不引 React / GSAP），配色沿用站点的描边 + 硬阴影。
   ========================================================================== */

.gallery {
  flex: 1 1 auto;
  min-height: clamp(190px, 30vh, 420px);
  display: flex;
  align-items: stretch;
  gap: clamp(8px, 1.1vw, 16px);
  perspective: 1400px;                 /* 给非当前项那点 3D 倾斜留出景深 */
  --gal-ease: cubic-bezier(.22, .9, .24, 1);
  --gal-dur: .62s;
}

.gallery__item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: var(--line) solid var(--ink);
  border-radius: var(--r-md);
  background: var(--paper-2);
  box-shadow: var(--shadow-soft);
  transform: rotateY(0deg);
  cursor: pointer;
  transition: flex-grow var(--gal-dur) var(--gal-ease),
              transform var(--gal-dur) var(--gal-ease),
              box-shadow .2s ease;
}
.gallery__item.is-active { flex-grow: 2.2; transform: rotateY(0deg); box-shadow: var(--shadow); }
.gallery__item.is-before { transform: rotateY(8deg); }
.gallery__item.is-after { transform: rotateY(-8deg); }
.gallery__item:hover { box-shadow: var(--shadow); }
.gallery__item:focus-visible { outline: var(--line) dashed var(--ink); outline-offset: 3px; }
/* 首帧不要过渡：否则进场时会先抖一下 */
.gallery:not(.is-ready) .gallery__item { transition: none; }

/* 媒体层：现在放的是占位块，换成真图时把 <img> 塞进这里即可 */
.gallery__media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  filter: grayscale(1);
  transition: filter var(--gal-dur) var(--gal-ease), transform var(--gal-dur) var(--gal-ease);
}
.gallery__item.is-active .gallery__media { filter: none; }
.gallery__media img { display: block; width: 100%; height: 100%; object-fit: cover; }

.gallery__ph {
  position: absolute;
  inset: 10px;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(21, 21, 21, .26);
  border-radius: calc(var(--r-md) - 8px);
  background:
    repeating-linear-gradient(45deg, rgba(21, 21, 21, .05) 0 10px, transparent 10px 20px),
    var(--paper-2);
  color: var(--muted);
  font-size: clamp(11px, 1.5vh, 13px);
  text-align: center;
  transition: opacity .35s ease;
}
.gallery__item:not(.is-active) .gallery__ph { opacity: 0; }

/* 文字条：当前项出现在底部，非当前项收成竖排书脊（参考组件的 label 行为） */
.gallery__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px clamp(10px, 1.6vw, 18px);
  background: rgba(255, 253, 244, .92);
  border-top: var(--line) solid var(--ink);
  color: var(--ink);
  font-weight: 900;
  font-size: clamp(12px, 1.7vh, 15px);
  white-space: nowrap;
  transition: opacity .4s ease, transform var(--gal-dur) var(--gal-ease);
}
.gallery__cap i { display: block; width: 22px; height: 5px; border-radius: 999px; background: var(--orange); }
.gallery__item:not(.is-active) .gallery__cap {
  left: 50%;
  right: auto;
  bottom: 14px;
  transform: translateX(-50%);
  writing-mode: vertical-rl;
  padding: 10px 8px;
  background: transparent;
  border-top: 0;
  font-size: clamp(11px, 1.5vh, 13px);
  opacity: .78;
}
.gallery__item:not(.is-active) .gallery__cap i { display: none; }

@media (prefers-reduced-motion: reduce) {
  .gallery__item, .gallery__media, .gallery__cap, .gallery__ph { transition: none; }
}

@media (max-width: 899px) {
  .gallery { min-height: clamp(220px, 34vh, 420px); gap: clamp(6px, 1.6vw, 12px); }
  .gallery__item.is-active { flex-grow: 1.9; }
  .gallery__item.is-before, .gallery__item.is-after { transform: rotateY(0deg); }
  .gallery__item:not(.is-active) .gallery__cap { bottom: 10px; padding: 8px 6px; }
}

/* 竖屏手机：改成竖向手风琴（上中下）——对齐参考组件的 orientation="vertical"：
   主轴换成竖轴、倾斜换成 rotateX、标签条从竖排书脊变回横条。
   图片仍是 object-fit: cover：等比裁切，永远不拉伸。 */
@media (max-width: 899px) and (orientation: portrait) {
  .gallery {
    flex-direction: column;
    flex: 1 1 auto;
    height: auto;
    min-height: clamp(340px, 58vh, 520px);
    perspective: 1200px;
  }
  .gallery__item { flex-grow: 1; }
  .gallery__item.is-active { flex-grow: 2.6; }      /* 展开格约占画廊高度 56% */
  .gallery__item.is-before { transform: rotateX(-8deg); }
  .gallery__item.is-after { transform: rotateX(8deg); }
  /* 竖向时收起的面板也横着放标签（不再竖排书脊） */
  .gallery__item:not(.is-active) .gallery__cap {
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    writing-mode: horizontal-tb;
    padding: 8px clamp(10px, 4vw, 16px);
    background: rgba(255, 253, 244, .92);
    border-top: var(--line) solid var(--ink);
    opacity: 1;
  }
  .gallery__item:not(.is-active) .gallery__cap i { display: block; }
  .gallery__ph { inset: 8px 8px calc(8px + 34px); }
  /* 竖向时收起的面板也留一点占位提示（换成真图后这里就是那张图的裁切） */
  .gallery__item:not(.is-active) .gallery__ph { opacity: .55; }
  .gallery__media img { object-fit: cover; object-position: center; }
}

/* 横屏手机：高度本来就矮，画廊吃满剩下的高度即可 */
@media (max-width: 899px) and (orientation: landscape) {
  .gallery { height: auto; min-height: 0; }
}
