/* ============================================================
   物归其位 · 60 秒宣传片（网页动效版）
   设计令牌与官网 / 小程序一致：主色 #07C160，浅绿 #E8F7EF，
   蓝 #1989FA，红 #FA5151，橙 #E6A23C，正文 #323233，次要 #969799
   尺寸单位 rem：9:16 基准 20px、16:9 基准 21px（由 JS 设置根字号）
   ============================================================ */

:root {
  --primary: #07C160;
  --primary-dark: #06AD56;
  --primary-light: #E8F7EF;
  --secondary: #1989FA;
  --expired: #FA5151;
  --soon: #E6A23C;
  --text: #323233;
  --text-2: #969799;
  --border: #EBEDF0;
  --card: #FFFFFF;
  --shadow-s: 0 0.15rem 0.6rem rgba(15, 42, 26, 0.06);
  --shadow-m: 0 0.6rem 1.8rem rgba(15, 42, 26, 0.10);
  --shadow-l: 0 1.2rem 3rem rgba(15, 42, 26, 0.14);
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #0C1110;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica,
    'PingFang SC', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ============ 舞台 ============ */
.viewport {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, #16201C 0%, #0C1110 60%, #080A0A 100%);
}

.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1080px;
  height: 1920px;
  transform: translate(-50%, -50%) scale(var(--fit, 0.4));
  transform-origin: center center;
  overflow: hidden;
  border-radius: 0.8rem;
  background: linear-gradient(155deg, #F5FCF7 0%, #FFFFFF 46%, #E9F7EF 100%);
  box-shadow: 0 4rem 10rem rgba(0, 0, 0, 0.55);
  color: var(--text);
  user-select: none;
}

.stage[data-ratio="16x9"] {
  width: 1920px;
  height: 1080px;
}

/* ============ 氛围层 ============ */
.ambient { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(3.4rem);
  will-change: transform;
}

.orb-a {
  width: 48rem; height: 48rem;
  right: -14rem; top: -14rem;
  background: radial-gradient(circle, rgba(7, 193, 96, 0.30), rgba(7, 193, 96, 0) 68%);
  animation: drift-a 22s ease-in-out infinite;
}

.orb-b {
  width: 42rem; height: 42rem;
  left: -16rem; bottom: -12rem;
  background: radial-gradient(circle, rgba(25, 137, 250, 0.20), rgba(25, 137, 250, 0) 68%);
  animation: drift-b 26s ease-in-out infinite;
}

.orb-c {
  width: 30rem; height: 30rem;
  left: 32%; top: 42%;
  background: radial-gradient(circle, rgba(7, 193, 96, 0.14), rgba(7, 193, 96, 0) 70%);
  animation: drift-c 19s ease-in-out infinite;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(7, 193, 96, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(7, 193, 96, 0.05) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: radial-gradient(circle at 50% 42%, rgba(0, 0, 0, 0.9), transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 42%, rgba(0, 0, 0, 0.9), transparent 78%);
}

@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-3rem, 3rem, 0) scale(1.08); }
}
@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.04); }
  50% { transform: translate3d(3rem, -2.4rem, 0) scale(1); }
}
@keyframes drift-c {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.8; }
  50% { transform: translate3d(2rem, 2rem, 0); opacity: 1; }
}

/* ============ 场景骨架 ============ */
.scene {
  position: absolute;
  inset: 0;
  display: flex;
  padding: 5rem 3.6rem;
  opacity: 0;
  transition: opacity 0.55s ease;
  will-change: opacity;
}

.scene.is-live { opacity: 1; }
.scene.is-out { opacity: 0; }

.scene-center {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
}

.scene-split {
  flex-direction: column;
  justify-content: center;
  gap: 3.2rem;
}

.stage[data-ratio="16x9"] .scene { padding: 3rem 5rem; }

.stage[data-ratio="16x9"] .scene-split {
  flex-direction: row;
  align-items: center;
  gap: 4rem;
}

.stage[data-ratio="16x9"] .visual { flex: 1 1 auto; }

.copy { flex: 0 0 auto; }
.stage[data-ratio="16x9"] .copy { width: 34rem; }

.visual {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  min-width: 0;
}

/* ============ 文字体系 ============ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--primary-dark);
  padding-left: 1.35rem;
  position: relative;
}

.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.95rem;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

.title {
  margin: 0.55rem 0 0;
  font-size: 4rem;
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #15241C;
}

.title em, .hero-title em, .end-title em {
  font-style: normal;
  color: var(--primary);
  position: relative;
}

.desc {
  margin: 1rem 0 0;
  font-size: 1.2rem;
  line-height: 1.62;
  color: var(--text-2);
}

.points {
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.points li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 1.12rem;
  line-height: 1.5;
  color: #4A5450;
}

.points i {
  flex: 0 0 auto;
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.16rem;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ============ 入场动画 ============ */
.ani { opacity: 0; }

.scene.is-live .ani {
  animation-duration: 0.82s;
  animation-timing-function: var(--ease);
  animation-fill-mode: both;
  animation-delay: var(--d, 0s);
}

.scene.is-live .ani-up { animation-name: fx-up; }
.scene.is-live .ani-right { animation-name: fx-right; }
.scene.is-live .ani-left { animation-name: fx-left; }
.scene.is-live .ani-pop { animation-name: fx-pop; }

@keyframes fx-up {
  from { opacity: 0; transform: translate3d(0, 1.5rem, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes fx-right {
  from { opacity: 0; transform: translate3d(2.6rem, 0, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes fx-left {
  from { opacity: 0; transform: translate3d(-1.2rem, 0, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes fx-pop {
  0% { opacity: 0; transform: scale(0.78); }
  62% { opacity: 1; transform: scale(1.035); }
  100% { opacity: 1; transform: scale(1); }
}

/* ============ S1 开场 ============ */
.scene-hero { gap: 1.35rem; }

.halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}

.halo i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26rem;
  height: 26rem;
  margin: -13rem 0 0 -13rem;
  border-radius: 50%;
  border: 2px solid rgba(7, 193, 96, 0.36);
  opacity: 0;
  animation: halo 4.6s ease-out infinite;
}
.halo i:nth-child(2) { animation-delay: 1.5s; }
.halo i:nth-child(3) { animation-delay: 3s; }

@keyframes halo {
  0% { transform: scale(0.42); opacity: 0; }
  22% { opacity: 0.9; }
  100% { transform: scale(1.5); opacity: 0; }
}

.hero-logo {
  width: 8.2rem;
  height: 8.2rem;
  border-radius: 1.9rem;
  box-shadow: var(--shadow-l);
  position: relative;
  z-index: 2;
}

.hero-title {
  margin: 0.6rem 0 0;
  font-size: 4.4rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #12211A;
}

.hero-title .line { display: block; }

.hero-sub {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: #5C6A63;
}

.path {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.path li {
  padding: 0.42rem 1.15rem;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid rgba(7, 193, 96, 0.22);
  color: var(--primary-dark);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-s);
}

.path li.arrow {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: rgba(7, 193, 96, 0.55);
  font-size: 1rem;
  font-weight: 400;
}

/* ============ S2 痛点 ============ */
.pain-stack {
  width: 100%;
  max-width: 36rem;
  align-self: center;
  gap: 1.1rem;
  align-items: stretch;
}

.pain-card {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.35rem 1.45rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(235, 237, 240, 0.9);
  box-shadow: var(--shadow-s);
  backdrop-filter: blur(6px);
}

.pain-emoji {
  flex: 0 0 auto;
  width: 2.95rem;
  height: 2.95rem;
  border-radius: 0.95rem;
  background: #F4F6F5;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
}

.pain-body b {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1F2C25;
  letter-spacing: -0.01em;
}

.pain-body p {
  margin: 0.32rem 0 0;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--text-2);
}

.pain-stamp {
  align-self: center;
  margin-left: 0;
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 0.6rem 1.6rem rgba(7, 193, 96, 0.32);
}

/* ============ S3 手机 ============ */
.phone {
  position: relative;
  width: 21rem;
  height: 40rem;
  padding: 0.5rem;
  border-radius: 3.1rem;
  background: linear-gradient(160deg, #23282B 0%, #0E1214 100%);
  box-shadow: var(--shadow-l), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.phone-notch {
  position: absolute;
  top: 0.72rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4.4rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #050706;
  z-index: 4;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 2.35rem;
  overflow: hidden;
  background: #F7F8FA;
  display: flex;
  flex-direction: column;
}

.phone-title {
  flex: 0 0 auto;
  height: 3.4rem;
  padding-top: 1.15rem;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #323233;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
}

.shot {
  position: relative;
  flex: 0 0 auto;
  height: 10.6rem;
  margin: 0.7rem 0.7rem 0;
  border-radius: 0.9rem;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, #FFFFFF 0%, #EAF2ED 55%, #DDEAE2 100%);
  display: grid;
  place-items: center;
}

.shot-scene { position: relative; display: grid; place-items: center; }

.milk-box {
  position: relative;
  width: 3.5rem;
  height: 5.4rem;
  border-radius: 0.3rem 0.3rem 0.18rem 0.18rem;
  background: linear-gradient(170deg, #FFFFFF 0%, #F2F7FF 100%);
  border: 1px solid #DCE7F5;
  box-shadow: 0 0.5rem 1.2rem rgba(25, 137, 250, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}

.milk-cap {
  position: absolute;
  top: -0.42rem;
  width: 1.1rem;
  height: 0.5rem;
  border-radius: 0.16rem 0.16rem 0.05rem 0.05rem;
  background: #2E7DE0;
}

.milk-box b { font-size: 0.62rem; color: #23527C; letter-spacing: 0.02em; }
.milk-box small { font-size: 0.5rem; color: #6B93B8; }

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 0.22rem;
  top: -0.4rem;
  background: linear-gradient(90deg, transparent, rgba(7, 193, 96, 0.95), transparent);
  box-shadow: 0 0 1.4rem rgba(7, 193, 96, 0.7);
  opacity: 0;
}

.scene.is-live .scanline {
  animation: scan 2.1s cubic-bezier(0.45, 0, 0.55, 1) 0.7s 2;
}

@keyframes scan {
  0% { top: 0.2rem; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: 9.1rem; opacity: 0; }
}

.shot-tip {
  position: absolute;
  left: 0.55rem;
  bottom: 0.5rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(20, 32, 26, 0.55);
  color: #FFFFFF;
  font-size: 0.56rem;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}

.ai-toast {
  flex: 0 0 auto;
  margin: 0.55rem 0.7rem 0;
  padding: 0.42rem 0.6rem;
  border-radius: 0.5rem;
  background: var(--primary-light);
  border: 1px solid rgba(7, 193, 96, 0.22);
  color: #0E8A4D;
  font-size: 0.58rem;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
}

.scene.is-live .ai-toast { animation: fx-up 0.6s var(--ease) 2.55s both; }

.form {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.7rem 0.75rem 0.9rem;
}

.field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.55rem;
  border-radius: 0.5rem;
  background: #FFFFFF;
  border: 1px solid var(--border);
}

.field label {
  flex: 0 0 3.4rem;
  font-size: 0.74rem;
  color: var(--text-2);
}

.field .val {
  flex: 1 1 auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1F2C25;
  padding: 0.14rem 0.4rem;
  border-radius: 0.3rem;
  background: rgba(7, 193, 96, 0.09);
}

.phone-btn {
  margin-top: auto;
  height: 2.6rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #12CC6C 0%, var(--primary) 100%);
  color: #FFFFFF;
  font-size: 0.86rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0.4rem 1rem rgba(7, 193, 96, 0.36);
}

/* ============ S4 过期预警 ============ */
.warn-card {
  width: 100%;
  max-width: 31rem;
  padding: 0.55rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(235, 237, 240, 0.9);
  box-shadow: var(--shadow-m);
}

.warn-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.05rem 1.1rem;
  border-radius: 1rem;
  position: relative;
}

.warn-row + .warn-row::before {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 0;
  height: 1px;
  background: var(--border);
}

.warn-row.is-soon { background: rgba(230, 162, 60, 0.07); }
.warn-row.is-expired { background: rgba(250, 81, 81, 0.06); }

.row-dot {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #C8CDD0;
}
.is-soon .row-dot { background: var(--soon); box-shadow: 0 0 0 0.32rem rgba(230, 162, 60, 0.16); }
.is-expired .row-dot { background: var(--expired); box-shadow: 0 0 0 0.32rem rgba(250, 81, 81, 0.14); }

.row-main { flex: 1 1 auto; min-width: 0; }
.row-main b { display: block; font-size: 1.1rem; font-weight: 700; color: #1F2C25; }
.row-main small { display: block; margin-top: 0.2rem; font-size: 0.8rem; color: #6E7A74; }

.badge {
  flex: 0 0 auto;
  padding: 0.26rem 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #7A8488;
  background: #F2F4F4;
  white-space: nowrap;
}
.badge.soon { color: #B4741A; background: rgba(230, 162, 60, 0.16); }
.badge.expired { color: #C93B3B; background: rgba(250, 81, 81, 0.14); }

.warn-setting {
  width: 100%;
  max-width: 31rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  border-radius: 1.3rem;
  background: #FFFFFF;
  border: 1px solid rgba(235, 237, 240, 0.9);
  box-shadow: var(--shadow-s);
}

.ws-icon {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.9rem;
  background: var(--primary-light);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
}

.ws-main { flex: 1 1 auto; }
.ws-main b { display: block; font-size: 1.05rem; font-weight: 700; color: #1F2C25; }
.ws-main small { display: block; margin-top: 0.14rem; font-size: 0.78rem; color: var(--text-2); }

.ws-days {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(7, 193, 96, 0.1);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 600;
}

.switch {
  position: relative;
  width: 2.5rem;
  height: 1.45rem;
  border-radius: 999px;
  background: var(--primary);
  flex: 0 0 auto;
}
.switch::after {
  content: "";
  position: absolute;
  right: 0.15rem;
  top: 0.15rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.2);
}

/* ============ S5 扫码定位 ============ */
.cab-card {
  position: relative;
  width: 100%;
  max-width: 32rem;
  padding: 1.35rem 1.35rem 1.5rem;
  border-radius: 1.5rem;
  background: #FFFFFF;
  border: 1px solid rgba(235, 237, 240, 0.9);
  box-shadow: var(--shadow-m);
}

.cab-tag {
  display: inline-block;
  padding: 0.26rem 0.7rem;
  border-radius: 0.45rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.cab-count {
  position: absolute;
  right: 1.35rem;
  top: 1.35rem;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  background: #F2F4F4;
  color: #5C6A63;
  font-size: 0.7rem;
  font-weight: 600;
}

.cab-body { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }

.cab-icon {
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 1.05rem;
  background: var(--primary-light);
  display: grid;
  place-items: center;
  font-size: 1.9rem;
}

.cab-meta b { display: block; font-size: 1.45rem; font-weight: 800; color: #1B2A22; letter-spacing: -0.01em; }
.cab-meta small { display: block; margin-top: 0.22rem; font-size: 0.84rem; color: var(--text-2); }

.chips { display: flex; gap: 0.36rem; margin-top: 0.46rem; }
.chips i {
  font-style: normal;
  padding: 0.16rem 0.5rem;
  border-radius: 0.42rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.68rem;
}

.qr-wrap {
  position: absolute;
  right: 1.3rem;
  bottom: 1.3rem;
  width: 4.6rem;
  height: 4.6rem;
  padding: 0.26rem;
  border-radius: 0.55rem;
  background: #FFFFFF;
  border: 1px solid var(--border);
  overflow: hidden;
}

.qr { width: 100%; height: 100%; display: block; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr img { width: 100%; height: 100%; display: block; object-fit: contain; }

.scanline-v {
  position: absolute;
  left: 0;
  right: 0;
  height: 0.3rem;
  top: 0;
  background: linear-gradient(90deg, transparent, rgba(7, 193, 96, 0.95), transparent);
  box-shadow: 0 0 1rem rgba(7, 193, 96, 0.6);
  opacity: 0;
}

.scene.is-live .scanline-v { animation: scan-v 1.7s cubic-bezier(0.45, 0, 0.55, 1) 1.2s 2; }

@keyframes scan-v {
  0% { top: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 4.2rem; opacity: 0; }
}

.locate-toast {
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  background: rgba(7, 193, 96, 0.12);
  border: 1px solid rgba(7, 193, 96, 0.26);
  color: #0E8A4D;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ============ S6 家人共享 ============ */
.share {
  width: 100%;
  max-width: 34rem;
  align-self: center;
  gap: 1.1rem;
  align-items: stretch;
}

.share-card {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.4rem 1.9rem;
  border-radius: 1.5rem;
  background: #FFFFFF;
  border: 1px solid rgba(235, 237, 240, 0.9);
  box-shadow: var(--shadow-m);
}

.share-title { font-size: 0.92rem; font-weight: 700; color: #1F2C25; }
.share-tip { font-size: 0.75rem; color: var(--text-2); }

.qr.small {
  width: 6.2rem;
  height: 6.2rem;
  padding: 0.34rem;
  border-radius: 0.55rem;
  border: 1px solid var(--border);
}

.members {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.member {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.72rem 1.05rem;
  border-radius: 1.05rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(235, 237, 240, 0.9);
  box-shadow: var(--shadow-s);
}

.avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: #F1F4F2;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.member b { flex: 1 1 auto; font-size: 1rem; font-weight: 600; color: #1F2C25; }

.perm {
  font-style: normal;
  padding: 0.18rem 0.58rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}
.perm.write { color: #0E6FD0; background: rgba(25, 137, 250, 0.12); }
.perm.read { color: #6E787C; background: #F0F2F3; }

.approve {
  align-self: center;
  padding: 0.7rem 1.45rem;
  border-radius: 999px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 0.6rem 1.6rem rgba(7, 193, 96, 0.3);
  white-space: nowrap;
}

/* ============ S7 活动与扩容 ============ */
.rewards { width: 100%; max-width: 36rem; align-self: center; gap: 1rem; }

.reward {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.05rem 1.25rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(235, 237, 240, 0.9);
  box-shadow: var(--shadow-s);
}

.reward span {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  background: var(--primary-light);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  flex: 0 0 auto;
}

.reward b { font-size: 1.1rem; font-weight: 700; color: #1F2C25; }
.reward small { margin-left: auto; font-size: 0.85rem; color: #6E7A74; }

.capacity {
  width: 100%;
  margin-top: 0.35rem;
  padding: 1.15rem 1.3rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #0A9E52 0%, #07C160 100%);
  box-shadow: 0 0.8rem 2rem rgba(7, 193, 96, 0.3);
}

.cap-head { display: flex; align-items: center; justify-content: space-between; }
.cap-head span { font-size: 0.92rem; color: rgba(255, 255, 255, 0.9); font-weight: 600; }
.cap-head b { font-size: 1.15rem; color: #FFFFFF; font-weight: 800; letter-spacing: 0.02em; }

.cap-bar {
  margin-top: 0.78rem;
  height: 0.56rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.cap-bar i {
  display: block;
  height: 100%;
  width: 18%;
  border-radius: 999px;
  background: #FFFFFF;
}

.scene.is-live .cap-bar i { animation: grow 2.2s var(--ease) 2.7s both; }

@keyframes grow {
  from { width: 18%; }
  to { width: 100%; }
}

/* ============ S8 收尾 ============ */
.scene-end { gap: 1.2rem; }

.end-logo {
  width: 6.2rem;
  height: 6.2rem;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-m);
}

.end-title {
  margin: 0.4rem 0 0;
  font-size: 3.6rem;
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #12211A;
}

.end-title .line { display: block; }

.cta {
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.35rem;
  padding: 1.25rem 2.2rem 1.25rem 1.25rem;
  border-radius: 1.5rem;
  background: #FFFFFF;
  border: 1px solid rgba(7, 193, 96, 0.18);
  box-shadow: var(--shadow-m);
}

.qr.big {
  width: 7.2rem;
  height: 7.2rem;
  padding: 0.34rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  flex: 0 0 auto;
}

.cta-text { text-align: left; }
.cta-text b { display: block; font-size: 1.3rem; font-weight: 800; color: #12211A; letter-spacing: -0.01em; }
.cta-text small { display: block; margin-top: 0.3rem; font-size: 0.9rem; color: var(--text-2); }

.end-tags {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: #7A8A82;
}

/* ============ 横版（16:9）适配 ============ */
.stage[data-ratio="16x9"] .hero-logo { width: 6rem; height: 6rem; }
.stage[data-ratio="16x9"] .hero-title { font-size: 3.5rem; }
.stage[data-ratio="16x9"] .title { font-size: 3.8rem; }
.stage[data-ratio="16x9"] .end-title { font-size: 3rem; }
.stage[data-ratio="16x9"] .phone { width: 18.5rem; height: 36rem; }
.stage[data-ratio="16x9"] .phone-title { height: 2.9rem; padding-top: 0.85rem; font-size: 0.82rem; }
.stage[data-ratio="16x9"] .shot { height: 7.2rem; }
.stage[data-ratio="16x9"] .warn-card,
.stage[data-ratio="16x9"] .warn-setting { max-width: 26rem; }
.stage[data-ratio="16x9"] .visual { gap: 1.2rem; }

/* 静态帧模式：跳过入场动画，直接呈现终态（用于关键帧截图导出） */
body.is-static .scene { transition: none !important; }
body.is-static .scene.is-live { opacity: 1 !important; }
body.is-static .ani,
body.is-static .scene.is-live .ani {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}
body.is-static .halo,
body.is-static .scanline,
body.is-static .scanline-v { display: none; }
body.is-static .scene.is-live .cap-bar i { width: 100%; animation: none !important; }

/* 纯净模式：去掉舞台圆角，避免录屏带入圆角边缘 */
body.clean .stage { border-radius: 0; box-shadow: none; }

/* ============ 播放控件 ============ */
.hud {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(18, 24, 21, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

body.hud-hidden .hud {
  opacity: 0;
  transform: translateX(-50%) translateY(140%);
  pointer-events: none;
}

.hud-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #E8F2EC;
  font-size: 12px;
  line-height: 1;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hud-btn:hover { background: rgba(255, 255, 255, 0.14); }

.hud-btn.primary {
  width: 34px;
  padding: 0;
  font-size: 13px;
  background: var(--primary);
  border-color: transparent;
  color: #06240F;
  font-weight: 700;
}
.hud-btn.primary:hover { background: #12D06A; }

.hud-track {
  position: relative;
  width: 190px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  cursor: pointer;
  overflow: hidden;
}

.hud-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(7, 193, 96, 0.55), var(--primary));
  border-radius: 999px;
}

.hud-ticks { position: absolute; inset: 0; pointer-events: none; }
.hud-ticks i {
  position: absolute;
  top: 50%;
  width: 1px;
  height: 9px;
  margin-top: -4.5px;
  background: rgba(255, 255, 255, 0.35);
}

.hud-time {
  font-size: 11px;
  color: #B8C7BF;
  font-variant-numeric: tabular-nums;
  min-width: 84px;
  text-align: center;
}

.hud-seg {
  display: flex;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.hud-seg button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #9FB0A7;
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.hud-seg button.on {
  background: rgba(7, 193, 96, 0.9);
  color: #06240F;
  font-weight: 700;
}

.hud-btn.is-on {
  background: rgba(7, 193, 96, 0.22);
  border-color: rgba(7, 193, 96, 0.5);
  color: #7FE3AC;
}

.hint {
  position: fixed;
  left: 50%;
  bottom: 66px;
  transform: translateX(-50%);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.34);
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: opacity 0.4s ease;
}
body.hud-hidden .hint { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .orb, .halo i { animation: none !important; }
}
