/* ============================================================
   星抖奇玩 — layout.css
   导航 / 8 个 section 的布局
   ============================================================ */

/* ------------------------------------------------------------ 导航 */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  transition: background .45s var(--ease), border-color .45s var(--ease),
              backdrop-filter .45s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(11, 11, 11, .74);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
          backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgba(255, 255, 255, .1);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(14px, 2vh, 22px) var(--pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  flex: none;
  color: #fff;
}

.brand__mark {
  width: 20px;
  height: 20px;
  fill: var(--accent);
  flex: none;
  transition: transform .5s var(--ease-out);
}

.brand:hover .brand__mark { transform: rotate(90deg); }

.brand__name {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 34px);
}

.nav__links > a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: .45em;
  font-size: .88rem;
  color: rgba(255, 255, 255, .74);
  transition: color .3s var(--ease);
  white-space: nowrap;
}

.nav__links > a:hover { color: #fff; }

.nav__idx {
  font-family: var(--font-mono);
  font-size: .62rem;
  color: rgba(255, 255, 255, .48);
}

.nav__links > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-out);
}

.nav__links > a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__cta {
  padding: .62em 1.3em;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  color: #fff !important;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.nav__cta::after { display: none; }

.nav__cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink) !important;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  margin-right: -10px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #fff;
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}

.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

/* 滚动进度条 */
.scroll-progress {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 130;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.scroll-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width .1s linear;
}

/* ------------------------------------------------------------ ① HERO */

.hero {
  position: relative;
  z-index: 1;
  height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--ink);
  overflow: hidden;
}

/* --- 环绕轨道（cosmos 式） --- */

.hero__orbit {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.orbit-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(104px, 8.4vw, 164px);
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: #151515;
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 26px 52px -22px rgba(0, 0, 0, .95);
  opacity: 0;
  will-change: transform, opacity;
}

.orbit-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.8) contrast(1.08) brightness(.94);
}

/* 中心遮罩：与卡片分布椭圆同比例，靠近中心的卡片在此「溶解」掉。
   渐变位置直接对应卡片的归一化半径，所以越靠中心越不可见。 */
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* 半径由 JS 写入 --orbit-r，与轨道半径完全一致 */
  background: radial-gradient(
    circle var(--orbit-r, 45vh) at 50% 50%,
    var(--ink) 0%,
    var(--ink) 30%,
    rgba(11, 11, 11, .92) 42%,
    rgba(11, 11, 11, .70) 56%,
    rgba(11, 11, 11, .42) 70%,
    rgba(11, 11, 11, .16) 86%,
    transparent 100%
  );
}

/* --- 中心内容 --- */

.hero__center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(16px, 2.2vw, 26px);
  width: min(700px, 86vw);
  padding-block: clamp(96px, 14vh, 160px);

  /* 先由中心「渐隐放大」出现，卡片随后再渐显 */
  opacity: 0;
  transform: scale(.92);
}

.is-ready .hero__center {
  /* 延迟 0.3s 起手，1.2s 完成 */
  animation: heroCenterIn 1.2s var(--ease-out) .3s forwards;
}

@keyframes heroCenterIn {
  to { opacity: 1; transform: none; }
}

.hero__brand {
  font-family: var(--font-mono);
  font-size: clamp(.66rem, .88vw, .8rem);
  font-weight: 500;
  letter-spacing: .32em;
  color: var(--accent);
  padding-left: .32em;
}

.hero__title {
  font-size: clamp(1.9rem, 5.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.035em;
  color: #fff;
}

.hero__title .line {
  display: block;
  overflow: hidden;
}

.hero__title .line__in {
  display: block;
  transform: translateY(105%);
}

.is-ready .hero__title .line__in {
  animation: lineUp 1.1s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes lineUp {
  to { transform: translateY(0); }
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__sub {
  font-size: clamp(.86rem, 1.05vw, 1rem);
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .56);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(6px, 1.2vw, 16px);
}

.scroll-hint {
  position: absolute;
  left: var(--pad);
  bottom: clamp(20px, 4vh, 40px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .28em;
  color: rgba(255, 255, 255, .52);
}

.scroll-hint__line {
  width: 52px;
  height: 1px;
  background: rgba(255, 255, 255, .2);
  overflow: hidden;
  position: relative;
}

.scroll-hint__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: hintSlide 2.4s var(--ease) infinite;
}

@keyframes hintSlide {
  0%   { transform: translateX(-100%); }
  55%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ------------------------------------------------------------ ② 品牌片：首屏露角，滚动放大 */

.film-reveal {
  --film-scale: .34;
  --film-overlap: 250px;
  position: relative;
  z-index: 2;
  margin-top: calc(var(--film-overlap) * -1);
  /* 叠层上半段保持透明，Hero 仍完整占满 100vh；视频从底部压出来 */
  padding: 120px 0 56px;
  overflow: clip;
  background: linear-gradient(
    to bottom,
    transparent 0,
    transparent var(--film-overlap),
    var(--paper) var(--film-overlap),
    var(--paper) 100%
  );
  color: var(--ink);
}

.film-reveal__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.film-reveal__intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 24px;
  margin-bottom: 18px;
  color: #fff;
  font-size: .82rem;
  letter-spacing: .02em;
  mix-blend-mode: difference;
}

.film-reveal__play {
  font-size: .64rem;
  line-height: 1;
  color: inherit;
}

.film-reveal__frame {
  position: relative;
  width: min(100%, 1180px);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  transform: scale(var(--film-scale));
  transform-origin: 50% 0;
  border-radius: 12px;
  background: #080a08;
  box-shadow: 0 30px 80px -42px rgba(0, 0, 0, .56);
  will-change: transform;
}

.film-reveal__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #080a08;
}

.film-reveal__frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .4), transparent);
}

.film-reveal__sound {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  background: rgba(8, 10, 8, .62);
  color: #fff;
  font-size: .78rem;
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s var(--ease-out), border-color .25s ease, color .25s ease;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.film-reveal__frame:hover .film-reveal__sound,
.film-reveal__frame:focus-within .film-reveal__sound,
.film-reveal__frame.is-playing .film-reveal__sound {
  opacity: 1;
  transform: none;
}

.film-reveal__sound:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.film-reveal__sound-icon {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .68rem;
  line-height: 1;
}

@media (max-width: 1024px) {
  .film-reveal {
    --film-overlap: 120px;
    margin-top: calc(var(--film-overlap) * -1);
    padding-top: 62px;
    padding-bottom: 72px;
  }

  .film-reveal__frame { width: min(100%, 860px); }
}

@media (max-width: 640px) {
  .film-reveal {
    --film-overlap: 84px;
    margin-top: calc(var(--film-overlap) * -1);
    padding-top: 30px;
    padding-bottom: 64px;
  }

  .film-reveal__intro {
    margin-bottom: 12px;
    font-size: .78rem;
  }

  .film-reveal__frame { border-radius: 8px; }

  .film-reveal__sound {
    right: 10px;
    bottom: 10px;
    padding: 8px 11px;
  }
}

/* ------------------------------------------------------------ ③ ABOUT */

.about {
  position: relative;
  z-index: 1;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(88px, 12vw, 170px) 0;
}

.about__lead {
  max-width: 62ch;
  margin-bottom: clamp(48px, 6vw, 84px);
}

.about__lead p {
  font-size: clamp(1.05rem, 1.6vw, 1.42rem);
  line-height: 1.72;
  color: rgba(11, 11, 11, .78);
  text-wrap: pretty;
}

.about__lead strong { font-weight: 700; color: var(--ink); }

.about__note {
  margin-top: 22px !important;
  font-size: clamp(.86rem, 1vw, .96rem) !important;
  color: rgba(11, 11, 11, .48) !important;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(11, 11, 11, .13);
  border-block: 1px solid rgba(11, 11, 11, .13);
}

.pillar {
  position: relative;
  background: var(--paper);
  padding: clamp(28px, 3.4vw, 48px) clamp(22px, 2.6vw, 40px) clamp(36px, 4vw, 56px);
  transition: background .45s var(--ease);
}

.pillar:hover { background: #F1F1EC; }

.pillar__idx {
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  color: rgba(11, 11, 11, .58);
  margin-bottom: clamp(28px, 4vw, 52px);
}

.pillar__title {
  font-size: clamp(1.4rem, 2.1vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}

.pillar__desc {
  font-size: .95rem;
  line-height: 1.75;
  color: rgba(11, 11, 11, .58);
}

/* 入场：序号从左侧滑入 → 标题上浮 → 描述跟进 → 下划线展开。
   外层 .pillar 由 data-reveal 负责整体淡入，这里只做内部层次。 */
.pillar__idx,
.pillar__title,
.pillar__desc {
  opacity: 0;
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
}

.pillar__idx { transform: translateX(-14px); }
.pillar__title { transform: translateY(20px); }
.pillar__desc { transform: translateY(14px); }

.pillar.is-in .pillar__idx,
.pillar.is-in .pillar__title,
.pillar.is-in .pillar__desc {
  opacity: 1;
  transform: none;
}

.pillar.is-in .pillar__idx { transition-delay: .12s; }
.pillar.is-in .pillar__title { transition-delay: .22s; }
.pillar.is-in .pillar__desc { transition-delay: .34s; }

/* 标题下划线由 0 展开 */
.pillar__title::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: var(--accent);
  margin-top: 16px;
  transition: width .6s var(--ease-out);
}

.pillar.is-in .pillar__title::after {
  width: 26px;
  transition-delay: .42s;
}

.pillar:hover .pillar__title::after {
  width: 58px;
  transition-delay: 0s;
}

/* ------------------------------------------------------------ ③ SEAL */

.seal {
  position: relative;
  z-index: 1;
  background: var(--ink);
  padding: clamp(88px, 12vw, 170px) 0;
}

.seal__product {
  margin-top: clamp(24px, 3vw, 36px);
  border-radius: 6px;
  overflow: hidden;
  max-width: 380px;
}

.seal__product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* --- 盖章交互演示 --- */

.stamp-demo {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 84px);
  padding: clamp(32px, 4vw, 64px);
  margin-bottom: clamp(64px, 8vw, 110px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(120% 130% at 80% 10%, rgba(232, 255, 0, .05), transparent 58%),
    var(--surface);
}

.stamp-demo__title {
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 16px;
}

.stamp-demo__desc {
  font-size: .98rem;
  line-height: 1.78;
  color: var(--fg-dim);
  max-width: 38ch;
}

.stamp-demo__meter {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(28px, 3.4vw, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.stamp-demo__meter-label {
  font-size: .84rem;
  color: var(--fg-faint);
}

.stamp-demo__count {
  font-family: var(--font-mono);
  font-size: .95rem;
  color: var(--fg-dim);
}

.stamp-demo__count strong {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent);
  transition: transform .3s var(--ease-out);
  display: inline-block;
}

.stamp-demo__count strong.bump { transform: scale(1.32); }

.stamp-demo__hint {
  margin-top: 18px;
  font-size: .8rem;
  color: var(--fg-faint);
}

.stamp-demo__hint.is-done { color: var(--accent); }

/* 手机 */

.phone {
  position: relative;
  width: min(288px, 100%);
  margin-inline: auto;
  aspect-ratio: 288 / 588;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.phone__frame {
  position: absolute;
  inset: 0;
  padding: 11px;
  background: linear-gradient(160deg, #26262b, #101013 60%);
  border-radius: 42px;
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, .9),
    0 0 0 1px rgba(255, 255, 255, .07) inset;
}

.phone__notch {
  position: absolute;
  top: 11px;
  left: 50%;
  translate: -50% 0;
  width: 96px;
  height: 22px;
  background: #08080a;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0d0d11, #141419);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone__statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 0;
  font-family: var(--font-mono);
  font-size: .62rem;
  color: rgba(255, 255, 255, .5);
}

.phone__signal { display: inline-flex; align-items: flex-end; gap: 2px; height: 9px; }
.phone__signal i { width: 2px; background: rgba(255, 255, 255, .45); border-radius: 1px; }
.phone__signal i:nth-child(1) { height: 3px; }
.phone__signal i:nth-child(2) { height: 6px; }
.phone__signal i:nth-child(3) { height: 9px; }

.phone__app {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 3vw, 34px) 22px 24px;
}

.phone__app-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: clamp(18px, 2.4vw, 28px);
}

.phone__app-title {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
}

.phone__app-sub {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: rgba(255, 255, 255, .56);
}

.stamp-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stamp-slot {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, .16);
  border-radius: 50%;
  transition: border-color .5s var(--ease), background .5s var(--ease);
}

.stamp-slot i {
  width: 68%;
  height: 68%;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0) rotate(-40deg);
  opacity: 0;
  transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease;
}

.stamp-slot.is-stamped { border-color: transparent; background: rgba(232, 255, 0, .06); }
.stamp-slot.is-stamped i { transform: scale(1) rotate(0); opacity: 1; }

.phone__reward {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 13px 16px;
  font-size: .74rem;
  color: rgba(255, 255, 255, .58);
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 10px;
}

.phone__reward strong {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-right: .25em;
}

.phone__toast {
  display: flex;
  align-items: center;
  gap: .6em;
  padding: 12px 14px;
  font-size: .78rem;
  color: var(--accent);
  background: rgba(232, 255, 0, .09);
  border: 1px solid rgba(232, 255, 0, .24);
  border-radius: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s var(--ease), transform .4s var(--ease-out);
}

.phone__toast.is-on { opacity: 1; transform: none; }

.phone__toast-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* 落下的印章道具 */

.stamp-prop {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 5;
  width: 76px;
  height: 76px;
  translate: -50% 0;
  opacity: 0;
  pointer-events: none;
}

.stamp-prop__body {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(150deg, #ffffff, #d8d8d4);
  box-shadow:
    0 16px 30px -12px rgba(0, 0, 0, .8),
    0 0 0 1px rgba(0, 0, 0, .06) inset;
}

.stamp-prop__face {
  position: absolute;
  inset: auto 0 0 0;
  height: 14px;
  border-radius: 0 0 12px 12px;
  background: #b9b9b4;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08) inset;
}

.stamp-prop.is-dropping { animation: stampDrop .62s cubic-bezier(.5, 0, .75, 1) forwards; }

@keyframes stampDrop {
  0%   { opacity: 0; translate: -50% -70px; transform: scale(1.12); }
  55%  { opacity: 1; }
  72%  { transform: scale(.9); }
  100% { opacity: 1; translate: -50% 0; transform: scale(1); }
}

.stamp-prop.is-lifting { animation: stampLift .5s var(--ease-out) forwards; }

@keyframes stampLift {
  from { opacity: 1; translate: -50% 0; }
  to   { opacity: 0; translate: -50% -62px; }
}

/* 认证涟漪 */

.ripple {
  position: absolute;
  z-index: 4;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(232, 255, 0, .42), transparent 68%);
}

.ripple.is-on { animation: rippleOut .85s var(--ease-out) forwards; }

@keyframes rippleOut {
  0%   { opacity: .95; transform: scale(.35); }
  100% { opacity: 0; transform: scale(1.7); }
}

/* --- 特性 --- */

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  margin-bottom: clamp(60px, 8vw, 104px);
}

.feature {
  background: var(--ink);
  padding: clamp(26px, 3vw, 42px) clamp(20px, 2.4vw, 34px) clamp(34px, 4vw, 52px);
  transition: background .45s var(--ease);
}

.feature:hover { background: #141414; }

.feature__idx {
  display: block;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: clamp(30px, 4vw, 56px);
  opacity: .8;
}

.feature__title {
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
  font-weight: 700;
  letter-spacing: -.015em;
  color: #fff;
  margin-bottom: 12px;
}

.feature__desc {
  font-size: .9rem;
  line-height: 1.78;
  color: rgba(255, 255, 255, .56);
}

/* --- 四步流程 --- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.step { position: relative; padding-top: 26px; border-top: 2px solid var(--line); }

.step::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 1s var(--ease-out);
}

.step.is-in::before { width: 52px; }

.step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--accent);
  margin-bottom: 14px;
}

.step__title {
  font-size: 1.06rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}

.step__desc {
  font-size: .88rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, .54);
}

/* ------------------------------------------------------------ ④ NFC */

.nfc {
  position: relative;
  z-index: 1;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(88px, 12vw, 170px) 0;
}

.nfc__grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}

.nfc__media {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #101010;
}

.nfc__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.nfc__media:hover img { transform: scale(1.045); }

.nfc__media figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 20px;
  font-size: .82rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .78);
  background: linear-gradient(to top, rgba(11, 11, 11, .9), transparent);
}

.nfc__list {
  display: grid;
  gap: 1px;
  background: rgba(11, 11, 11, .13);
  border-block: 1px solid rgba(11, 11, 11, .13);
}

.nfc-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 34px);
  align-items: start;
  background: var(--paper);
  padding: clamp(24px, 3vw, 38px) clamp(20px, 2.4vw, 34px);
  transition: background .45s var(--ease);
}

.nfc-item:hover { background: #F1F1EC; }

.nfc-item__idx {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .16em;
  color: rgba(11, 11, 11, .58);
  padding-top: .42em;
}

.nfc-item__title {
  font-size: clamp(1.18rem, 1.8vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}

.nfc-item__desc {
  font-size: .94rem;
  line-height: 1.78;
  color: rgba(11, 11, 11, .6);
  max-width: 46ch;
}

/* ------------------------------------------------------------ ⑤ SCENES */

.scenes {
  position: relative;
  z-index: 1;
  height: 340vh;
  background: var(--ink);
}

.scenes__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.scenes__sticky > .wrap,
.scenes__track,
.scenes__progress {
  position: relative;
  z-index: 1;
}

/* --- 背景层：6 张场景图叠放，随滚动交叉切换 --- */

.scenes__bg-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.16);
  transition: opacity .95s var(--ease), transform 1.5s var(--ease-out);
  will-change: opacity, transform;
}

/* 激活层：淡入的同时从放大状态推近落定 */
.scenes__bg-layer.is-active {
  opacity: .28;
  transform: scale(1);
}

.scenes__bg-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 保留彩色，只压暗一档以保证前景文字可读 */
  filter: contrast(1.06) brightness(.62);
  transform: scale(1.14);
  transition: transform 10s linear;
}

/* 激活后持续缓慢推进，形成 ken burns 呼吸感 */
.scenes__bg-layer.is-active img { transform: scale(1); }

/* 切换瞬间的黄色光晕 */
.scenes__bg-flash {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 44%, rgba(232, 255, 0, .22), transparent 66%);
}

.scenes__bg-flash.is-on { animation: sceneFlash 1.05s var(--ease-out); }

@keyframes sceneFlash {
  0%   { opacity: 0; }
  26%  { opacity: 1; }
  100% { opacity: 0; }
}

/* 切换瞬间自上而下扫过的光带 */
.scenes__bg-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 38%;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(232, 255, 0, .1) 50%, transparent);
}

.scenes__bg-scan.is-on { animation: sceneScan 1.15s var(--ease-out); }

@keyframes sceneScan {
  0%   { opacity: 0; transform: translateY(-110%); }
  22%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(300%); }
}

/* 暗角遮罩：保证前景文字可读 */
.scenes__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--ink) 0%, transparent 22%, transparent 72%, var(--ink) 100%),
    radial-gradient(72% 62% at 50% 45%, transparent, var(--ink) 94%);
}

.scenes__sticky {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 4vh, 56px);
  overflow: hidden;
}

.scenes__head {
  display: flex;
  flex-direction: column;
  flex: none;
}

.scenes__head .sec-title { margin-top: 0; }

.scenes__track {
  display: flex;
  gap: clamp(14px, 1.8vw, 26px);
  padding-inline: var(--pad);
  will-change: transform;
  flex: none;
}

.scene-card {
  flex: 0 0 clamp(232px, 23vw, 336px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: clamp(268px, 34vh, 380px);
  padding: clamp(22px, 2.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, .022);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  transition: border-color .45s var(--ease), background .45s var(--ease), transform .45s var(--ease);
}

.scene-card:hover,
.scene-card.is-active {
  border-color: rgba(232, 255, 0, .55);
  background: rgba(232, 255, 0, .05);
  transform: translateY(-6px);
}

.scene-card.is-active .scene-card__idx { opacity: 1; }

.scene-card__idx {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--accent);
  opacity: .75;
}

.scene-card__title {
  font-size: clamp(1.3rem, 1.9vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -.025em;
  color: #fff;
}

.scene-card__desc {
  margin-top: auto;
  font-size: .9rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, .56);
}

.scenes__progress {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}

.scenes__progress-text {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .58);
  flex: none;
}

.scenes__progress-bar {
  display: block;
  flex: 1;
  max-width: 260px;
  height: 1px;
  background: rgba(255, 255, 255, .16);
  overflow: hidden;
}

.scenes__progress-bar > i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}

/* ------------------------------------------------------------ 合作客户条
   嵌在「为什么选择我们」板块底部，不单独成段 */

.clients-strip {
  margin-top: clamp(64px, 8vw, 120px);
}

.clients-strip__title {
  padding-inline: var(--pad);
  margin-bottom: clamp(32px, 4vw, 56px);
  text-align: center;
  font-size: clamp(1.15rem, 2.1vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}

.clients__marquee {
  display: grid;
  gap: clamp(22px, 3vw, 46px);
  /* 两端羽化，避免 logo 在屏幕边缘被硬切 */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}

.clients__row { overflow: hidden; }

.clients__track {
  display: flex;
  align-items: center;
  gap: clamp(48px, 6vw, 104px);
  width: max-content;
  padding-block: .35em;
  will-change: transform;
}

/* 滚动位移由 JS 驱动（见 main.js 的 clients 部分）。
   用 JS 而非 CSS animation 的原因：悬停时要能缓动减速，
   而 animation-play-state 只能瞬时暂停，停得很硬。 */

/* 客户 logo：白底已在构建时抠成透明，这里只做统一灰度处理，
   悬停时恢复各家品牌原色 */
.client-logo {
  flex: none;
  height: clamp(30px, 3.1vw, 44px);
  width: auto;
  filter: grayscale(1) opacity(.48) contrast(1.08);
  transition: filter .25s var(--ease);
}

.client-logo:hover {
  filter: grayscale(0) opacity(1) contrast(1);
}

/* ------------------------------------------------------------ ⑥ WHY */

.why {
  position: relative;
  z-index: 1;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(88px, 12vw, 170px) 0;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(11, 11, 11, .13);
  border-block: 1px solid rgba(11, 11, 11, .13);
  margin-bottom: clamp(48px, 6vw, 84px);
}

.why-card {
  background: var(--paper);
  padding: clamp(28px, 3.4vw, 46px) clamp(20px, 2.4vw, 34px) clamp(36px, 4vw, 54px);
  transition: background .45s var(--ease);
}

.why-card:hover { background: #F1F1EC; }

.why-card__title {
  font-size: clamp(1.1rem, 1.5vw, 1.34rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 14px;
  position: relative;
  padding-left: 18px;
}

.why-card__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .46em;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

.why-card__desc {
  font-size: .92rem;
  line-height: 1.78;
  color: rgba(11, 11, 11, .58);
}

.why__band {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: #EFEFEA;
}

.why__band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}

.why__band:hover img { transform: scale(1.03); }

/* ------------------------------------------------------------ ⑦ PROCESS */

.process {
  position: relative;
  z-index: 1;
  background: var(--ink);
  padding: clamp(88px, 12vw, 170px) 0;
}

.timeline {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.tl-item {
  display: grid;
  grid-template-columns: clamp(80px, 12vw, 180px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 48px);
  align-items: center;
  background: var(--ink);
  padding: clamp(26px, 3.2vw, 46px) clamp(18px, 2.4vw, 36px);
  transition: background .5s var(--ease);
}

.tl-item:hover { background: #131313; }

.tl-item__num {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .14);
  transition: color .5s var(--ease), -webkit-text-stroke-color .5s var(--ease),
              opacity .8s var(--ease-out), transform .8s var(--ease-out);
}

/* 入场后描边才回到正常亮度，像是在暗处被点亮 */
.tl-item.is-in .tl-item__num {
  -webkit-text-stroke-color: rgba(255, 255, 255, .36);
}

.tl-item:hover .tl-item__num {
  color: var(--accent);
  -webkit-text-stroke-color: var(--accent);
}

.tl-item__title {
  font-size: clamp(1.12rem, 1.7vw, 1.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 8px;
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}

.tl-item__desc {
  font-size: .92rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, .55);
  max-width: 54ch;
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}

/* --- 入场：序号左滑 → 标题上浮 → 描述跟进，五条再依次点亮 --- */

/* 这些容器都用「父级浅色背景 + 1px gap」来造分割线，
   所以子项不能参与淡入——半透明时深色背景会与线色混合成灰块。
   让子项保持不透明，只让它们各自内部的元素做入场动画。 */
.pillars .pillar[data-reveal],
.features .feature[data-reveal],
.nfc__list .nfc-item[data-reveal],
.why__grid .why-card[data-reveal],
.timeline .tl-item[data-reveal],
.contact__grid .contact__item[data-reveal] {
  opacity: 1;
  transform: none;
}

.timeline .tl-item:nth-child(1) { --row: 0; }
.timeline .tl-item:nth-child(2) { --row: 1; }
.timeline .tl-item:nth-child(3) { --row: 2; }
.timeline .tl-item:nth-child(4) { --row: 3; }
.timeline .tl-item:nth-child(5) { --row: 4; }

.tl-item__num,
.tl-item__title,
.tl-item__desc {
  opacity: 0;
}

.tl-item__num { transform: translateX(-26px); }
.tl-item__title { transform: translateY(20px); }
.tl-item__desc { transform: translateY(14px); }

.tl-item.is-in .tl-item__num,
.tl-item.is-in .tl-item__title,
.tl-item.is-in .tl-item__desc {
  opacity: 1;
  transform: none;
}

/* 同一行内三层依次出现，行与行之间再错开 0.08s，形成逐条点亮的节奏 */
.tl-item.is-in .tl-item__num {
  transition-delay: calc(.05s + var(--row, 0) * .08s);
}

.tl-item.is-in .tl-item__title {
  transition-delay: calc(.15s + var(--row, 0) * .08s);
}

.tl-item.is-in .tl-item__desc {
  transition-delay: calc(.25s + var(--row, 0) * .08s);
}

/* ------------------------------------------------------------ ⑧ CONTACT */

.contact {
  position: relative;
  z-index: 1;
  background: var(--accent);
  color: var(--ink);
  padding-top: clamp(88px, 12vw, 170px);
}

.contact__title {
  font-size: clamp(2.6rem, 8.5vw, 7.5rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.045em;
  margin-bottom: clamp(48px, 6vw, 84px);
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(11, 11, 11, .18);
  border-block: 1px solid rgba(11, 11, 11, .18);
}

.contact__item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--accent);
  padding: clamp(26px, 3.2vw, 44px) clamp(20px, 2.4vw, 34px);
  transition: background .4s var(--ease), color .4s var(--ease);
}

.contact__item[href]:hover { background: var(--ink); color: var(--accent); }

.contact__label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .68;
}

.contact__value {
  font-size: clamp(1.05rem, 1.9vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -.015em;
  word-break: break-word;
}

.contact__value--sm {
  font-size: clamp(.94rem, 1.25vw, 1.1rem);
  line-height: 1.6;
  font-weight: 600;
}

.contact__cta { margin-top: clamp(40px, 5vw, 68px); }

/* 页脚 */

.footer {
  margin-top: clamp(72px, 9vw, 130px);
  background: var(--ink);
  color: rgba(255, 255, 255, .5);
  padding: clamp(28px, 3.4vw, 44px) 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-size: .96rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
}

.footer__brand .brand__mark { width: 17px; height: 17px; }

.footer__legal { font-size: .82rem; }

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

@media (max-width: 1180px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 44px); }
}

@media (max-width: 1024px) {
  html { scroll-padding-top: 80px; }

  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    inset: 0 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: clamp(90px, 14vh, 120px) var(--pad) 40px;
    background: rgba(11, 11, 11, .97);
    -webkit-backdrop-filter: blur(20px);
            backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-100%);
    transition: transform .55s var(--ease-out), visibility .55s;
    visibility: hidden;
  }

  .nav__links.is-open { transform: translateY(0); visibility: visible; }

  .nav__links > a {
    padding: 18px 0;
    font-size: 1.16rem;
    border-bottom: 1px solid var(--line);
  }

  .nav__links > a::after { display: none; }

  .nav__cta {
    margin-top: 24px;
    text-align: center;
    justify-content: center;
    border-bottom: 0 !important;
  }

  /* 平板：轨道半径收窄，卡片变小 */
  .hero__center { width: min(620px, 90vw); }

  .sec-head--split { grid-template-columns: 1fr; gap: 24px; }

  .stamp-demo { grid-template-columns: 1fr; }
  .stamp-demo__copy { order: 2; }
  .phone { order: 1; }

  .nfc__grid { grid-template-columns: 1fr; gap: 40px; }
  .nfc__media { max-width: 480px; }

  .scenes { height: auto; padding: clamp(80px, 11vw, 130px) 0; }
  /* 移动端不做横向滚动，背景层也无处切换，直接隐藏避免拉伸 */
  .scenes__bg { display: none; }
  .scene-card.is-active {
    border-color: var(--line);
    background: rgba(255, 255, 255, .022);
    transform: none;
  }
  .scenes__sticky {
    position: static;
    height: auto;
    overflow: visible;
    gap: 40px;
  }
  .scenes__track {
    flex-direction: column;
    transform: none !important;
    padding-inline: var(--pad);
  }
  .scene-card { flex: none; width: 100%; min-height: 0; gap: 14px; }
  .scene-card__desc { margin-top: 0; }
  .scenes__progress { display: none; }
}

@media (max-width: 768px) {
  .pillars { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }

  .tl-item { grid-template-columns: 1fr; gap: 12px; }

  .hero__title { font-size: clamp(1.68rem, 7.2vw, 2.5rem); }
  .hero__brand { letter-spacing: .24em; }
  .hero__center { width: min(460px, 88vw); gap: 14px; }

  /* 手机端卡片；圈数由 hero-orbit.js 的 RINGS_NARROW 控制 */
  .orbit-item {
    width: clamp(92px, 25vw, 156px);
    border-radius: 12px;
  }

  .scroll-hint { display: none; }

  .stamp-demo { padding: 24px 20px 30px; }

  .seal__product { max-width: 100%; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 420px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
}
