/* =========================================================
   卷泡 juanpao 官网 · 红色版
   ========================================================= */

:root {
  /* 色彩 token（红色版） */
  --bg: #0F0609;
  --bg2: #180B10;
  --panel: #23121A;
  --line: rgba(255, 255, 255, 0.10);
  --ink: #FBF2F2;
  --muted: #C9AFB6;
  --accent: #FF5A6A;
  --accent-ink: #2A0409;
  --accent2: #FFB07A;
  --glow: rgba(255, 90, 106, 0.22);
  --nav-bg: rgba(15, 6, 9, 0.72);

  /* 字体 */
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-display: 'Outfit', 'Noto Sans SC', 'PingFang SC', sans-serif;

  /* 尺寸 */
  --gutter: clamp(20px, 6vw, 120px);
  --section-y: clamp(80px, 10vw, 120px);
  --radius: 16px;
  --nav-h: 72px;

  /* 缓动曲线 */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);      /* 快出慢停，用于进场/悬停 */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);   /* 对称，用于往返状态 */
  --ease-soft: cubic-bezier(0.25, 0.1, 0.25, 1);   /* 轻微，用于颜色/透明度 */
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; }
h1, h2, h3, p { margin: 0; }
a { color: var(--accent); }
a:hover { color: #FF8A95; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.logo-symbol { color: var(--accent); }
.logo-wordmark { color: var(--ink); }

.container { max-width: 1200px; margin: 0 auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px; border-radius: 999px;
  font-size: 16px; font-weight: 700; line-height: 1; white-space: nowrap;
  text-decoration: none;
  transition: transform .35s var(--ease-out), filter .3s var(--ease-soft), background-color .3s var(--ease-soft), color .3s var(--ease-soft);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: .12s; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { color: var(--accent-ink); filter: brightness(1.08); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, 0.28); color: var(--ink); background: rgba(255, 255, 255, 0.02); font-weight: 500; }
.btn--ghost:hover { color: var(--ink); background: rgba(255, 255, 255, 0.07); }
.btn--sm { height: 42px; padding: 0 22px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h); padding: 0 clamp(20px, 3.4vw, 48px);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  border-bottom: 1px solid transparent;
  transition: background-color .45s var(--ease-soft), border-color .45s var(--ease-soft), backdrop-filter .45s var(--ease-soft);
}
.nav.is-solid {
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__links { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 500; }
.nav__links a { color: var(--ink); text-decoration: none; opacity: .82; transition: opacity .3s var(--ease-soft); }
.nav__links a:hover { color: var(--ink); opacity: 1; }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__toggle {
  display: none; position: relative; width: 42px; height: 42px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: rgba(255, 255, 255, .04);
  cursor: pointer; transition: background-color .3s var(--ease-soft), border-color .3s var(--ease-soft);
}
.nav__toggle:hover { background: rgba(255, 255, 255, .08); }
.nav__toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; border-radius: 2px; background: var(--ink);
  transition: transform .4s var(--ease-out), opacity .25s var(--ease-soft);
}
.nav__toggle span:nth-child(1) { top: 14px; }
.nav__toggle span:nth-child(2) { top: 20px; }
.nav__toggle span:nth-child(3) { top: 26px; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; transform: scaleX(.4); }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 首屏：固定滚动拖拽 ---------- */
.hero__track {
  position: relative;
  height: 400vh;           /* 4 屏滚动距离；JS 会按 data-screens 覆盖 */
  height: 400svh;
}
.hero__pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  /* 画布绘制前 / 不支持 canvas 时的底色，与场景背景一致 */
  background: radial-gradient(ellipse at 50% 46%, #22080F 0%, #12050A 55%, #080305 100%);
  transform-origin: 50% 40%;
  will-change: transform;
  --exit: 0;
}
/* 离场时逐渐压暗，和下一屏的底色衔接 */
.hero__pin::after {
  content: ""; position: absolute; inset: 0; z-index: 5;
  background: var(--bg); opacity: calc(var(--exit) * .75);
  pointer-events: none;
}
/* 首屏之后的所有版块都盖在固定的首屏之上（首屏带 transform，会压住未定位的内容） */
.hero ~ .section, .footer { position: relative; z-index: 1; }
/* 下一屏上移一屏，在首屏固定的最后 1 屏里原生滚动盖上来 */
.hero + .section {
  position: relative; z-index: 1;
  margin-top: -100vh; margin-top: -100svh;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -30px 60px -10px rgba(0, 0, 0, .6);
}
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero__fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 220px;
  background: linear-gradient(180deg, transparent, var(--bg));
  opacity: .9; pointer-events: none;
}

.caption {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 0 var(--gutter);
  opacity: 0; pointer-events: none;
  will-change: opacity, transform, filter;
}
.caption__text {
  max-width: 1000px; text-align: center;
  font-size: clamp(32px, 4.4vw, 64px); line-height: 1.25; font-weight: 900; letter-spacing: .02em;
  color: var(--ink);
  text-shadow: 0 2px 24px rgba(0, 0, 0, .6);
  text-wrap: balance;
}
.caption.is-live { pointer-events: auto; }
/* 三幕字幕放在下方三分之一，把画面中心留给动画；品牌结尾仍居中 */
.caption:not(.caption--final) { justify-content: flex-end; padding-bottom: clamp(96px, 16vh, 170px); }
.caption__index {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: .32em; color: var(--accent);
  text-shadow: 0 0 18px var(--glow);
}

.final { display: flex; flex-direction: column; align-items: center; gap: 22px; max-width: 560px; text-align: center; }
.final__logo { display: flex; align-items: center; gap: 18px; }
.final__symbol { filter: drop-shadow(0 0 18px var(--glow)); }
.final__title {
  font-size: clamp(24px, 2.4vw, 34px); line-height: 1.3; font-weight: 900; letter-spacing: .04em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .5);
  text-wrap: balance;
}
.final__sub { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 4px; font-size: 16px; color: var(--muted); letter-spacing: .06em; }
.final__sub span { white-space: nowrap; }
.final__sub span + span::before { content: '·'; margin: 0 .6em; opacity: .6; }
.final .btn-row { margin-top: 6px; }
.final > * {
  opacity: 0; transform: translateY(14px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.final > :nth-child(2) { transition-delay: .08s; }
.final > :nth-child(3) { transition-delay: .16s; }
.final > :nth-child(4) { transition-delay: .24s; }
.caption--final.is-in .final > * { opacity: 1; transform: none; }

/* 自动播放循环时的淡出遮罩：盖住画面与字幕，不挡交互 */
.hero__veil {
  position: absolute; inset: 0; z-index: 4;
  background: #0b0407; opacity: 0; pointer-events: none;
}
.hero__hint {
  position: absolute; left: 0; right: 0; bottom: 34px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--ink); pointer-events: none;
}
.hero__hint span {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; opacity: .8;
}
.hero__hint svg { animation: bounce 2s var(--ease-in-out) infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

.hero__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .12); }
.hero__progress-bar { height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left center; will-change: transform; }

/* ---------- 通用版块 ---------- */
.section { padding: var(--section-y) var(--gutter); background: var(--bg); }
.section--alt { background: var(--bg2); }
.section__head { display: flex; flex-direction: column; gap: 16px; }
.eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: 13px; line-height: 1;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
.section__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(34px, 3.4vw, 48px); line-height: 1.15; letter-spacing: .01em;
  text-wrap: balance;
}
.section__lead { max-width: 640px; font-size: 18px; line-height: 1.7; color: var(--muted); }
.section__note { font-size: 16px; color: var(--muted); }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .45s var(--ease-soft);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(0, 0, 0, .32); border-color: rgba(255, 255, 255, 0.16); }

/* 我们做什么 */
#what .container { display: flex; flex-direction: column; gap: 56px; }
.lines { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.line-card { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 24px; }
.line-card__body { display: flex; flex-direction: column; gap: 14px; }
.line-card h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.line-card p { font-size: 15px; color: var(--muted); }
.icon-tile {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255, 255, 255, .05); color: var(--accent);
}
.more { align-self: flex-start; font-size: 14px; font-weight: 500; text-decoration: none; transition: transform .35s var(--ease-out); }
.more:hover { transform: translateX(4px); }

/* 案例 */
#cases .container { display: flex; flex-direction: column; gap: 48px; }
.cases__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  font: 500 14px/1 var(--font-body); white-space: nowrap; cursor: pointer;
  transition: background-color .3s var(--ease-soft), color .3s var(--ease-soft), border-color .3s var(--ease-soft), transform .3s var(--ease-out);
}
.tab:hover { border-color: rgba(255, 255, 255, .3); }
.tab:active { transform: scale(.96); transition-duration: .1s; }
.tab.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.case-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
  transition: opacity .22s var(--ease-soft), transform .22s var(--ease-soft);
}
.case-grid.is-switching { opacity: 0; transform: translateY(6px); }
.case {
  display: flex; flex-direction: column; overflow: hidden;
  color: inherit; text-decoration: none;
  animation: case-in .7s var(--ease-out) backwards;   /* backwards 而非 both：动画结束后交还给 hover 的 transform */
}
.case:hover { color: inherit; }
.case__cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg2); transition: transform .9s var(--ease-out); }
.case__media { position: relative; overflow: hidden; }
.case__count {
  position: absolute; right: 12px; top: 12px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; line-height: 1.4;
  background: rgba(15, 6, 9, .62); color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(-4px);
  transition: opacity .35s var(--ease-soft), transform .45s var(--ease-out);
}
.case:hover .case__count, .case:focus-visible .case__count { opacity: 1; transform: none; }
.case__live {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; color: #fff;
  background: rgba(15, 6, 9, .72); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.case__more {
  margin-top: 4px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: var(--accent);
}
.case__more i { font-style: normal; transition: transform .35s var(--ease-out); }
.case:hover .case__more i { transform: translateX(4px); }
.case:hover .case__cover { transform: scale(1.04); }
.case__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; }
.case__meta { display: flex; align-items: center; gap: 8px; }
.chip {
  padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--accent);
  font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .12em; line-height: 1.4;
}
.case__industry { font-size: 12px; color: var(--muted); }
.case__title { font-size: 20px; font-weight: 700; line-height: 1.35; }
.case__desc { font-size: 14px; color: var(--muted); }
.cases__foot { text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- 案例详情弹窗 ---------- */
.cm {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink);
  overflow: hidden;
}
.cm::backdrop { background: transparent; }
.cm__backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 3, 5, .72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .32s var(--ease-soft);
}
.cm__panel {
  position: absolute; left: 50%; top: 50%;
  width: min(1180px, calc(100vw - 48px)); height: min(780px, calc(100vh - 48px)); height: min(780px, calc(100svh - 48px));
  display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  background: var(--bg2); border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
  opacity: 0; transform: translate(-50%, -50%) translateY(24px) scale(.98);
  transition: opacity .32s var(--ease-soft), transform .5s var(--ease-out);
}
.cm__panel:focus { outline: none; }
.cm.is-open .cm__backdrop { opacity: 1; }
.cm.is-open .cm__panel { opacity: 1; transform: translate(-50%, -50%); }

.cm__close {
  position: absolute; right: 16px; top: 16px; z-index: 3;
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid var(--line); background: rgba(15, 6, 9, .6); color: var(--ink); cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .3s var(--ease-soft), transform .4s var(--ease-out);
}
.cm__close:hover { background: rgba(255, 255, 255, .1); transform: rotate(90deg); }

.cm__gallery { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--bg); min-height: 0; }
.cm__stage {
  position: relative; flex: 1; min-height: 0; border-radius: 16px; overflow: hidden;
  background: var(--panel); touch-action: pan-y;
}
.cm__stage::before {
  content: ""; position: absolute; inset: -40px;
  background: var(--cm-bg) center / cover no-repeat;
  filter: blur(28px) saturate(1.1); opacity: .55;
}
.cm__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transform: scale(1.015);
  transition: opacity .45s var(--ease-soft), transform .7s var(--ease-out);
}
.cm__img.is-active { opacity: 1; transform: none; }
.cm__img.no-anim { transition: none; }
.cm__nav {
  position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px;
  border-radius: 999px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(15, 6, 9, .55); color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .3s var(--ease-soft), background-color .3s var(--ease-soft), transform .35s var(--ease-out);
}
.cm__nav--prev { left: 14px; } .cm__nav--next { right: 14px; }
.cm__stage:hover .cm__nav, .cm__nav:focus-visible { opacity: 1; }
.cm__nav:hover { background: rgba(255, 90, 106, .85); color: var(--accent-ink); }
.cm__nav--prev:active { transform: translateX(-2px); } .cm__nav--next:active { transform: translateX(2px); }
.cm__stage.is-single .cm__nav { display: none; }
.cm__caption {
  position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; pointer-events: none;
  font-size: 13px;
}
.cm__caption span { padding: 5px 12px; border-radius: 999px; background: rgba(15, 6, 9, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cm__count { font-family: var(--font-display); letter-spacing: .08em; color: var(--muted); }

.cm__thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cm__thumbs::-webkit-scrollbar { display: none; }
.cm__thumb {
  flex: 0 0 auto; width: 132px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer;
  display: flex; flex-direction: column; gap: 6px; text-align: left; font: 500 12px/1.3 var(--font-body);
  transition: color .3s var(--ease-soft);
}
.cm__thumb img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px;
  border: 2px solid transparent; opacity: .55;
  transition: opacity .3s var(--ease-soft), border-color .3s var(--ease-soft);
}
.cm__thumb:hover img { opacity: .85; }
.cm__thumb.is-active { color: var(--ink); }
.cm__thumb.is-active img { opacity: 1; border-color: var(--accent); }

.cm__info { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.cm__body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 36px 32px 28px; transition: opacity .18s var(--ease-soft), transform .3s var(--ease-out); }
.cm.is-swapping .cm__body, .cm.is-swapping .cm__img { opacity: 0; }
.cm.is-swapping .cm__body { transform: translateY(6px); }
.cm__title { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.3; font-weight: 900; padding-right: 36px; text-wrap: balance; }
.cm__summary { font-size: 15px; line-height: 1.75; color: var(--muted); }
.cm__meta { margin: 4px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cm__meta dt { font-size: 12px; color: var(--muted); }
.cm__meta dd { margin: 4px 0 0; font-size: 14px; font-weight: 500; line-height: 1.4; }
.cm__results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cm__result { padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.cm__result b { font-family: var(--font-display); font-size: clamp(18px, 1.7vw, 24px); font-weight: 800; color: var(--accent); line-height: 1.2; white-space: nowrap; }
.cm__result span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.cm__h { margin-top: 8px; font-size: 15px; font-weight: 700; }
.cm__text { font-size: 14px; line-height: 1.75; color: var(--muted); }
.cm__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cm__list li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.cm__list li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.cm__stack { display: flex; flex-wrap: wrap; gap: 8px; }
.cm__tag { padding: 5px 12px; border-radius: 999px; font-size: 13px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.cm__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cm__demo { gap: 8px; }
.cm__demo i { font-style: normal; transition: transform .3s var(--ease-out); }
.cm__demo:hover i { transform: translate(2px, -2px); }
.cm__live, .case__live i {
  width: 7px; height: 7px; border-radius: 999px; background: #3DDC97;
  box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: live-pulse 2s ease-out infinite;
}
@keyframes live-pulse { to { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); } }
@media (prefers-reduced-motion: reduce) { .cm__live, .case__live i { animation: none; } }
.cm__pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.cm__pg {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0;
  padding: 16px 24px; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-align: left;
  font: 600 14px/1.4 var(--font-body); transition: background-color .3s var(--ease-soft);
}
.cm__pg + .cm__pg { border-left: 1px solid var(--line); }
.cm__pg--next { align-items: flex-end; text-align: right; }
.cm__pg small { font-size: 12px; font-weight: 500; color: var(--muted); }
.cm__pg span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm__pg:hover { background: rgba(255, 255, 255, .04); }
.cm__pg:hover small { color: var(--accent); }

@media (max-width: 900px) {
  .cm { overflow-y: auto; overscroll-behavior: contain; }
  .cm__backdrop { position: fixed; }
  .cm__panel {
    position: relative; left: auto; top: auto; margin: 32px 0 0;
    width: 100%; height: auto; min-height: calc(100% - 32px);
    display: flex; flex-direction: column;
    border-radius: 22px 22px 0 0; border-bottom: 0;
    transform: translateY(48px);
  }
  .cm.is-open .cm__panel { transform: none; }
  .cm__close { position: fixed; top: 44px; right: 14px; }
  .cm__gallery { padding: 16px 16px 4px; }
  .cm__stage { flex: none; aspect-ratio: 4 / 3; }
  .cm__nav { display: none; }
  .cm__thumb { width: 104px; }
  .cm__info { overflow: visible; }
  .cm__body { padding: 20px 20px 24px; }
  .cm__meta { grid-template-columns: 1fr 1fr; }
  .cm__meta div:last-child { grid-column: 1 / -1; }
  .cm__results { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .cm__result { padding: 12px 10px; }
  .cm__result b { font-size: 17px; white-space: normal; }
  .cm__pg { padding: 14px 18px; }
}
@keyframes case-in { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

/* 合作方式 */
#how .container { display: flex; flex-direction: column; gap: 56px; }
.steps {
  list-style: none; margin: 0; padding: 36px 0 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px;
  border-top: 2px solid var(--line);
}
.step { position: relative; display: flex; flex-direction: column; gap: 12px; }
.step::before {
  content: ""; position: absolute; left: 0; top: -42px;
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--accent); box-shadow: 0 0 0 4px var(--glow);
}
.step__head { display: flex; align-items: baseline; gap: 10px; }
.step__num { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .18em; color: var(--accent); }
.step__slash { font-family: var(--font-display); font-size: 14px; color: var(--muted); }
.step h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.step p { font-size: 15px; color: var(--muted); }

/* 联系 CTA */
.cta {
  position: relative; overflow: hidden;
  padding: clamp(40px, 6vw, 72px);
  border-radius: 24px; border: 1px solid var(--line);
  background: radial-gradient(circle at 85% 20%, var(--glow), transparent 55%), var(--panel);
}
.cta__ring { position: absolute; top: 50%; transform: translateY(-50%); border-radius: 999px; border: 1px solid var(--line); }
.cta__ring--outer { right: 72px; width: 280px; height: 280px; }
.cta__ring--inner { right: 132px; width: 160px; height: 160px; box-shadow: inset 0 0 48px var(--glow); }
.cta__content { position: relative; display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.cta__content .btn-row { margin-top: 20px; }
.cta .section__lead { max-width: 560px; }

/* 页脚 */
.footer { padding: 64px var(--gutter); background: var(--bg2); }
.footer .container { display: flex; flex-direction: column; gap: 40px; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; flex-wrap: wrap; }
.footer__brand { display: flex; flex-direction: column; gap: 18px; }
.footer__brand p { font-size: 14px; color: var(--muted); }
.footer__logo { display: flex; align-items: center; gap: 14px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; width: min(600px, 100%); }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__col a, .footer__col span { color: var(--ink); opacity: .85; text-decoration: none; transition: opacity .3s var(--ease-soft); }
.footer__col a:hover { color: var(--ink); opacity: 1; }
.footer__title {
  margin-bottom: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: 13px; line-height: 1;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.footer__bottom {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.footer__icp { color: var(--muted); text-decoration: none; transition: color .3s var(--ease-soft); }
.footer__icp:hover { color: var(--ink); }

/* 进场动画 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1279px) {
  .lines { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 56px; border-top: 0; padding-top: 0; }
  .step { padding-top: 28px; border-top: 2px solid var(--line); }
  .step::before { top: -6px; }
}
@media (max-width: 1080px) {
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step::before { top: -6px; }
  .cta__ring { display: none; }
}
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 16px;
    background: var(--nav-bg); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), visibility 0s linear .45s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__links a {
    padding: 14px 4px; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .06);
    opacity: 0; transform: translateY(6px);
    transition: opacity .4s var(--ease-out), transform .5s var(--ease-out);
  }
  .nav__links a:last-child { border-bottom: 0; }
  .nav.is-open .nav__links a { opacity: 1; transform: none; }
  .nav.is-open .nav__links a:nth-child(2) { transition-delay: .05s; }
  .nav.is-open .nav__links a:nth-child(3) { transition-delay: .1s; }
  .nav.is-open .nav__links a:nth-child(4) { transition-delay: .15s; }
  .nav.is-open { background: var(--nav-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .final__title span { display: block; }
  .final__title .final__dot { display: none; }
  .final__sub { row-gap: 6px; column-gap: 1.1em; max-width: 300px; }
  .final__sub span + span::before { content: none; }
  .nav .logo-wordmark { width: 100px; height: 29px; }
  .lines, .case-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .cases__head { align-items: flex-start; }
  .final__logo .logo-symbol { width: 52px; height: 52px; }
  .final__logo .logo-wordmark { width: 180px; height: 52px; }
  .final__sub { font-size: 14px; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .nav__links, .nav__links a, .nav__toggle span { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .final > * { opacity: 1; transform: none; transition: none; }
  .case-grid { transition: none; }
  .hero__hint svg, .case { animation: none; }
  .cm__backdrop, .cm__panel, .cm__img, .cm__body { transition: none; }
}
