/* Reference composition layer for the hero's right-side touch scene. */
.hero-section .container { max-width: 1360px; }
.hero-demo { max-width: 680px; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: .88fr 1.12fr; gap: 56px; } }
.tap-stage {
  min-height: 660px;
  position: relative;
  overflow: visible;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.tap-stage.reference-static { cursor: default; }
.reference-static .demo-flow-head { display: none; }
.reference-static .flow-step { opacity: .42; }
.reference-static .flow-step.active { opacity: 1; color: #e6fbff; }
.reference-static .tap-route { opacity: .65; }
.reference-static .tap-route { display: none; }
.tap-stage.reference-static .phone-actor { animation: none !important; transform: translate3d(-50%,0,0); will-change: auto; }
.reference-static .phone-actor .phone { animation: none; }
.tap-stage.reference-static .tap-zone { animation: none !important; }
.reference-static .tap-glyph { animation: none; }
.tap-stage::before,
.tap-stage::after { content: none; display: none; }
.demo-flow-head { display: none !important; }
.flow-step { color: rgba(198,225,240,.58); }
.flow-step i { color: #82dcf4; background: rgba(85,229,255,.1); }
.flow-step.active { color: #dffaff; }
.flow-line { background: rgba(110,218,255,.22); }
.reference-orbit { position: absolute; left: 58%; top: 51%; border: 1px solid rgba(140, 190, 230, .16); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; contain: layout paint; }
.reference-orbit-a { width: 410px; height: 410px; border-style: dashed; animation: none; }
.reference-orbit-b { width: 540px; height: 540px; opacity: .55; animation: none; }
.reference-orbit-c { width: 300px; height: 300px; border-color: rgba(170, 160, 220, .14); animation: none; }
.tap-zone {
  position: absolute;
  z-index: 4;
  top: 72px; left: auto; right: 38px;
  width: 220px; height: 220px;
  min-height: 0;
  padding: 0;
  overflow: visible;
  display: grid !important;
  place-items: center;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.45), transparent 12%),
    linear-gradient(145deg, rgba(117,239,255,.78), rgba(96,119,255,.78) 55%, rgba(185,99,255,.82));
  box-shadow:
    inset 0 2px 14px rgba(255,255,255,.5),
    inset 0 -25px 60px rgba(36,21,91,.34),
    0 28px 64px rgba(49,116,229,.24);
  transition: box-shadow .3s ease, transform .3s ease, filter .3s ease;
  pointer-events: auto;
  cursor: pointer;
}
.tap-zone::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: transparent;
  pointer-events: none;
}
.tap-zone-aura {
  display: block !important;
  position: absolute !important;
  inset: 28px !important;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 68%);
  filter: none;
  z-index: 0;
  pointer-events: none;
}
.tap-zone-ring {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 180px !important;
  height: 180px !important;
  margin: 0 !important;
  border-color: rgba(110,231,255,.35);
  background: transparent;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}
.tap-zone-ring.ring-a {
  opacity: .5;
  animation: tapSphereRing 2.6s ease-out infinite !important;
}
.tap-zone-ring.ring-b {
  opacity: .32;
  animation: tapSphereRing 2.6s .9s ease-out infinite !important;
}
@keyframes referenceWave { 0% { opacity: .7; transform: translate(-50%,-50%) scale(.78); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.18); } }
@keyframes tapSphereRing {
  0% { opacity: .55; transform: translate(-50%, -50%) scale(.82); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.22); }
}
.tap-glyph {
  position: relative !important;
  z-index: 5 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  display: grid !important;
  place-items: center;
  border-radius: 0 !important;
  color: #fff !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 56px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-shadow: 0 8px 25px rgba(26,34,101,.34);
  pointer-events: none;
}
.tap-route {
  position: absolute;
  left: 170px;
  right: 170px;
  top: 395px;
  z-index: 2;
  height: 1px;
  width: auto;
  pointer-events: none;
}
.tap-route-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: repeating-linear-gradient(to right, rgba(110,218,255,.45) 0 5px, transparent 5px 11px);
}
.tap-route-label {
  position: absolute;
  left: 50%;
  top: -27px;
  width: max-content;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(110,218,255,.2);
  color: #8dcad6;
  background: rgba(5,18,28,.4);
  font-size: 11px;
  transform: translateX(-50%);
}
.phone-actor {
  position: absolute;
  z-index: 10;
  top: 100px;
  left: 34%;
  width: 272px;
  overflow: visible;
  background: transparent;
  transform: translate3d(-50%, 0, 0);
  animation: none !important;
  transition: none !important;
  contain: none;
}
.tap-stage.is-approaching .phone-actor,
.tap-stage.is-detected .phone-actor,
.tap-stage.is-paying .phone-actor,
.tap-stage.is-complete .phone-actor { animation: none !important; }
.phone-actor .float-y { animation: none !important; }
.phone-actor .phone {
  position: relative;
  width: 272px;
  overflow: visible;
  background: transparent;
  filter: none;
  clip-path: none;
  mask: none;
  -webkit-mask: none;
  transform: none;
  will-change: transform;
}
.phone-frame {
  position: relative;
  isolation: isolate;
  overflow: visible;
  padding: 6px;
  border: 3px solid #182331;
  border-radius: 42px;
  outline: 1px solid rgba(91,111,132,.7);
  outline-offset: 0;
  background: #b8c5d0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.58);
  transform: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  clip-path: none;
  mask: none;
  -webkit-mask: none;
}
.phone-frame::before {
  display: none;
}
.phone-frame::after { display: none; }
.phone-screen {
  position: relative;
  overflow: hidden;
  border: 1px solid #111b27;
  border-radius: 33px;
  height: 560px; /* 固定高度，动效全程手机尺寸不变 */
  min-height: 560px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #fbfdff 0%, #eff7fb 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.86);
}
.dynamic-island {
  position: absolute;
  z-index: 7;
  top: 8px;
  left: 50%;
  width: 80px;
  height: 21px;
  margin: 0;
  border-radius: 999px;
  border: 1px solid #000;
  background: #070a0f;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.08);
  transform: translateX(-50%);
}
.dynamic-island::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #17243b;
  box-shadow: inset 0 0 0 1px rgba(80,127,190,.3);
}
.phone-side-button {
  position: absolute;
  z-index: 4;
  right: -6px;
  width: 4px;
  border-radius: 4px;
  border: 1px solid #172230;
  background: #8f9daa;
  box-shadow: none;
}
.side-top { top: 110px; height: 48px; }
.side-bottom { top: 174px; height: 30px; }
.scan-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 28px;
  border-radius: 30px;
  color: #5b6b7c;
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(228,243,254,.72));
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition: opacity .72s cubic-bezier(.22,1,.36,1), transform .82s cubic-bezier(.22,1,.36,1), filter .72s ease;
  will-change: opacity, transform, filter;
  pointer-events: none;
}
.scan-overlay strong {
  margin-top: 14px;
  color: #152033;
  font-size: 16px;
  font-weight: 650;
}
.scan-overlay > span:last-child {
  margin-top: 5px;
  font-size: 11px;
}
.scan-icon {
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(79,124,246,.28);
  border-radius: 24px;
  color: #3b6fe0;
  background: rgba(79,124,246,.1);
  box-shadow: 0 0 0 12px rgba(79,124,246,.05);
  animation: scanIcon 2s ease-in-out infinite;
}
.scan-icon svg { width: 38px; height: 38px; }
@keyframes scanIcon {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 12px rgba(79,124,246,.05); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 18px rgba(79,124,246,.02); }
}
.phone-body {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(22px) scale(.985);
  filter: blur(2px);
  transition: opacity .72s .12s cubic-bezier(.22,1,.36,1), transform .82s .08s cubic-bezier(.22,1,.36,1), filter .72s .12s ease;
  will-change: opacity, transform, filter;
}
.phone-screen.merchant-open .scan-overlay {
  opacity: 0;
  transform: translateY(-8px) scale(.965);
  filter: blur(3px);
  pointer-events: none;
}
.phone-screen.merchant-open .phone-body {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.payment-modal {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 16px 18px;
  border: 0;
  border-radius: 30px;
  color: #152033;
  background: linear-gradient(170deg, rgba(255,255,255,.98), rgba(239,248,252,.96));
  box-shadow: none;
  opacity: 0;
  transform: translateY(20px) scale(.94);
  pointer-events: none;
  overflow: hidden;
  transition: opacity .72s cubic-bezier(.22,1,.36,1), transform .82s cubic-bezier(.22,1,.36,1);
}
.phone-screen.payment-complete .phone-body {
  opacity: .14;
  transform: translateY(-5px) scale(.975);
  filter: blur(3px);
  transition-delay: 0s;
}
.phone-screen.payment-complete .payment-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: .16s;
}
.payment-halo {
  position: absolute;
  top: 54px;
  width: 116px;
  height: 116px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(54,211,176,.16), rgba(83,176,245,.08) 58%, transparent 72%);
  filter: none;
  animation: successHalo 1.8s ease-in-out infinite;
}
.success-mark {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  padding: 8px;
  border-radius: 50%;
  color: #12b98a;
  background: rgba(18,185,138,.1);
  box-shadow: 0 0 0 8px rgba(18,185,138,.04);
  box-sizing: border-box;
}
.success-mark svg { width: 100%; height: 100%; overflow: visible; }
.success-mark circle {
  stroke: currentColor;
  stroke-width: 2;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: drawCircle .65s .12s ease-out forwards;
  animation-play-state: paused;
}
.success-mark path {
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: drawCheck .42s .62s cubic-bezier(.22,1,.36,1) forwards;
  animation-play-state: paused;
}
.phone-screen.payment-complete .success-mark circle,
.phone-screen.payment-complete .success-mark path {
  animation-play-state: running;
}
.payment-modal > strong {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-size: 19px;
  font-weight: 650;
}
.payment-caption {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  color: #5b6b7c;
  font-size: 11px;
}
.payment-amount {
  position: relative;
  z-index: 1;
  margin-top: 3px;
  font-size: 30px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.payment-result-list {
  position: relative;
  z-index: 1;
  width: 84%;
  margin-top: 13px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(89,137,190,.1);
  background: rgba(228,241,249,.58);
  box-sizing: border-box;
}
.payment-result-list > span {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.payment-result-list > span + span { margin-top: 7px; }
.payment-result-list em { color: #5b6b7c; font-style: normal; }
.payment-result-list b { font-weight: 650; }
.payment-result-list .result-points { color: #2476d8; }
.payment-badge {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #2476d8;
  background: rgba(55,137,239,.1);
  font-size: 11px;
  font-weight: 600;
}
.sr-payment-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@keyframes successHalo {
  0%, 100% { transform: scale(.85); opacity: .5; }
  50% { transform: scale(1.18); opacity: .85; }
}
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
/* ===== 在线买单页（对齐真实 payment 页） ===== */
.pay-demo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  inset: 0;
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  padding: 34px 8px 8px !important; /* 顶部给灵动岛留白，其余铺满 */
  background: linear-gradient(180deg, #eef4ff 0%, #f7f9fc 42%, #f3f6fb 100%);
  box-sizing: border-box;
  overflow: hidden;
}
.pay-nav {
  display: grid;
  grid-template-columns: 22px 1fr 22px;
  align-items: center;
  min-height: 22px;
  color: #1f2937;
}
.pay-nav strong { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: -.01em; }
.pay-nav-back,
.pay-nav-more {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: rgba(255,255,255,.7);
  position: relative;
}
.pay-nav-back::before {
  content: "";
  position: absolute;
  left: 6px; top: 4px;
  width: 6px; height: 6px;
  border-left: 1.5px solid #334155;
  border-bottom: 1.5px solid #334155;
  transform: rotate(45deg);
}
.pay-nav-more::before,
.pay-nav-more::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: #334155;
  box-shadow: 5px 0 0 #334155, -5px 0 0 #334155;
  left: 7px;
}

.pay-merchant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 8px 18px -14px rgba(55,80,130,.28);
}
.pay-merchant-main { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.pay-avatar {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #e0e7ff, #c7d2fe);
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(99,102,241,.16);
}
.pay-merchant-copy { min-width: 0; flex: 1; }
.pay-merchant-name {
  font-size: 12px; font-weight: 750; color: #0f172a;
  line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pay-action-row { display: flex; gap: 5px; margin-top: 6px; }
.pay-chip {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 20px; padding: 0 8px; border-radius: 999px;
  font-size: 8px; font-weight: 700; line-height: 1;
}
.pay-chip i {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.72); position: relative; flex: none;
}
.pay-wifi { color: #3730a3; background: #eef0ff; }
.pay-wifi i {
  background: rgba(255,255,255,.9);
  box-shadow: inset 0 0 0 1px rgba(55,48,163,.18);
}
.pay-wifi i::before {
  content: ""; position: absolute; left: 2px; right: 2px; top: 3px; height: 3px;
  border: 1.2px solid #4338ca; border-bottom: 0; border-radius: 6px 6px 0 0;
}
.pay-friend {
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #312e81);
  box-shadow: 0 4px 10px rgba(49,46,129,.28);
}
.pay-friend i { background: rgba(255,255,255,.22); }
.pay-friend i::before {
  content: ""; position: absolute; left: 3px; top: 2px; width: 4px; height: 4px;
  border-radius: 50%; background: #fff;
}
.pay-friend i::after {
  content: ""; position: absolute; left: 2px; bottom: 1.5px; width: 6px; height: 3px;
  border-radius: 3px 3px 0 0; background: #fff;
}
.pay-points-side {
  flex: none; padding-left: 8px; margin-left: 2px;
  border-left: 1px solid #e5e7eb; text-align: left; min-width: 54px;
}
.pay-points-side small { display: block; color: #9ca3af; font-size: 8px; }
.pay-points-side b {
  display: flex; align-items: baseline; gap: 2px;
  margin-top: 2px; color: #f59e0b; font-size: 13px; font-weight: 750;
}
.pay-points-side em { font-style: normal; color: #6b7280; font-size: 8px; font-weight: 500; }

.pay-amount-card {
  padding: 8px 10px;
  border-radius: 14px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.98);
  box-shadow: 0 8px 18px -14px rgba(55,80,130,.24);
}
.pay-amount-title {
  display: flex; align-items: center; gap: 5px;
  color: #312e81; font-size: 10px; font-weight: 700;
}
.pay-amount-title i {
  width: 14px; height: 14px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid #6366f1; color: #6366f1;
  font-style: normal; font-size: 9px; font-weight: 700;
}
.pay-amount-value {
  display: flex; align-items: baseline; margin-top: 4px; color: #0f172a;
}
.pay-amount-value span { font-size: 15px; font-weight: 650; }
.pay-amount-value strong {
  margin-left: 2px; font-size: 28px; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; font-weight: 700;
}
.pay-amount-value.is-typing strong { color: #4f46e5; }
.quick-amounts { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.quick-amounts button {
  flex: 1 1 0; min-width: 0; min-height: 22px;
  border: 1px solid rgba(145,160,178,.22); border-radius: 999px;
  color: #334155; background: #f8fafc; font-size: 8px; font-weight: 650;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.quick-amounts button.is-active,
.quick-amounts button.is-flash {
  color: #4338ca; border-color: rgba(99,102,241,.45);
  background: #eef2ff;
}

.bill-summary {
  margin-top: auto;
  display: grid;
  gap: 4px;
  min-height: 78px; /* 始终占位，避免弹出优惠时整机高度跳动 */
}
/* 不用 display:none，保留布局高度，只做显隐动效 */
.bill-summary:not(.is-open),
.points-toggle:not(.is-open) {
  visibility: hidden;
  pointer-events: none;
}
.bill-summary[hidden],
.points-toggle[hidden] {
  display: revert !important;
  visibility: hidden;
  pointer-events: none;
}
.bill-summary .bill-row {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 22px; padding: 4px 8px; border-radius: 9px;
  font-size: 9px; opacity: 0; transform: translate3d(0, 8px, 0) scale(.96);
}
.bill-summary.is-open {
  visibility: visible;
}
.bill-summary.is-open .bill-row {
  animation: billCalcPop .55s cubic-bezier(.22,1,.36,1) forwards;
}
.bill-summary.is-open .bill-row:nth-child(1) { animation-delay: .05s; }
.bill-summary.is-open .bill-row:nth-child(2) { animation-delay: .16s; }
.bill-summary.is-open .bill-row:nth-child(3) { animation-delay: .28s; }
.bill-summary em { font-style: normal; }
.bill-summary .bill-discount {
  color: #1d4ed8; background: rgba(59,130,246,.1);
  box-shadow: inset 3px 0 0 #3b82f6;
}
.bill-summary .bill-discount b { color: #1d4ed8; font-weight: 750; }
.bill-summary .bill-paid {
  color: #047857; background: rgba(16,185,129,.1);
  box-shadow: inset 3px 0 0 #10b981;
}
.bill-summary .bill-paid strong { color: #047857; font-size: 11px; font-weight: 750; }
.bill-summary .bill-points {
  color: #b45309; background: linear-gradient(90deg, rgba(251,191,36,.16), rgba(253,230,138,.2));
  box-shadow: inset 3px 0 0 #f59e0b; overflow: hidden;
}
.bill-summary .bill-points b { color: #c47a00; font-weight: 750; }
.bill-summary .bill-points::after {
  content: "";
  position: absolute; inset: 0 auto 0 -40%; width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
  transform: skewX(-18deg); opacity: 0;
}
.bill-summary.is-open .bill-points::after {
  animation: rewardSweep .85s ease-out .55s forwards;
}
@keyframes billCalcPop {
  0% { opacity: 0; transform: translate3d(0, 10px, 0) scale(.94); }
  70% { opacity: 1; transform: translate3d(0, -1px, 0) scale(1.02); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes rewardSweep {
  0% { left: -40%; opacity: 0; }
  20% { opacity: .9; }
  100% { left: 120%; opacity: 0; }
}

.points-toggle {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; padding-top: 8px;
  min-height: 30px;
  border-top: 1px solid rgba(148,163,184,.22);
  color: #364455; font-size: 9px;
  opacity: 0; transform: translateY(6px);
  box-sizing: border-box;
}
.points-toggle.is-open {
  visibility: visible;
  animation: billCalcPop .5s .4s cubic-bezier(.22,1,.36,1) forwards;
}
.points-toggle span { display: flex; align-items: center; gap: 4px; }
.points-toggle i { color: #e4a51c; font-style: normal; }
.points-toggle em { color: #8b96a3; font-style: normal; font-size: 8px; }
.points-toggle b {
  position: relative; width: 28px; height: 16px; border-radius: 999px; background: #d8e0e8;
}
.points-toggle b::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 12px; height: 12px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(25,40,65,.18);
}

.pay-keyboard {
  display: grid;
  grid-template-columns: 1fr 62px;
  gap: 5px;
  margin-top: auto;
  flex: 0 0 auto;
  height: 148px;
}
.pay-keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 4px;
  height: 100%;
  min-height: 0;
}
.pay-keys i {
  min-height: 0;
  height: 100%;
  display: grid; place-items: center;
  border-radius: 9px; color: #1e293b; background: rgba(255,255,255,.92);
  border: 1px solid rgba(148,163,184,.16);
  box-shadow: 0 2px 6px rgba(15,23,42,.04);
  font-size: 12px; font-style: normal; font-weight: 650;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.pay-keys i.is-press {
  background: #eef2ff; color: #4338ca;
  transform: scale(.94);
  box-shadow: inset 0 1px 2px rgba(79,70,229,.12);
}
.pay-keys .key-zero { grid-column: span 1; }
.pay-keys-side { display: grid; grid-template-rows: 30px 1fr; gap: 5px; }
.pay-del {
  display: grid; place-items: center; gap: 1px;
  border-radius: 9px; color: #1e293b; background: rgba(255,255,255,.92);
  border: 1px solid rgba(148,163,184,.16); font-size: 8px; font-weight: 650;
}
.pay-del i {
  width: 12px; height: 8px; border: 1.4px solid currentColor; border-right: 0;
  border-radius: 2px 0 0 2px; position: relative;
}
.pay-del i::after {
  content: ""; position: absolute; right: -4px; top: 50%;
  width: 7px; height: 7px; border-top: 1.4px solid currentColor; border-right: 1.4px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.pay-btn {
  width: 100%; min-height: 0; height: 100%;
  padding: 8px 4px; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: #fff; font-size: 10px; font-weight: 700;
  background: linear-gradient(160deg, #94a3b8, #64748b);
  box-shadow: 0 6px 14px -8px rgba(100,116,139,.5);
  transition: background .25s ease, box-shadow .25s ease, transform .2s ease;
}
.pay-btn strong { font-size: 8px; font-weight: 650; opacity: .92; }
.pay-btn.is-ready,
.pay-btn:not(:disabled) {
  background: linear-gradient(160deg, #6366f1, #4f46e5 55%, #312e81);
  box-shadow: 0 8px 16px -8px rgba(79,70,229,.55);
}
.pay-btn:disabled { cursor: default; opacity: 1; }
.phone-screen.payment-processing .pay-btn { filter: brightness(.95); }

/* ===== 收款立牌 + 语音播报 ===== */
.broadcast-stand {
  position: absolute;
  z-index: 9;
  right: 8px;
  top: 300px;
  width: 158px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(12px, 16px, 0) scale(.92);
  transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .68s cubic-bezier(.22,1,.36,1), visibility 0s linear .68s;
  pointer-events: none;
}
.tap-stage.is-complete .broadcast-stand {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
  transition-delay: 0s, 0s, 0s;
}
.broadcast-stand-pole {
  width: 8px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(90deg, #8fa0b4, #c5d0dc 45%, #7f90a4);
  box-shadow: inset 1px 0 0 rgba(255,255,255,.55), 0 2px 6px rgba(40,60,90,.18);
}
.broadcast-stand-card {
  position: relative;
  width: 100%;
  padding: 12px 12px 11px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 14px 14px 12px 12px;
  color: #15304a;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(236,245,255,.94) 42%, rgba(214,230,250,.92)),
    repeating-linear-gradient(90deg, transparent 0 7px, rgba(120,160,210,.04) 7px 8px);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -10px 18px rgba(80,120,180,.06),
    0 16px 28px -16px rgba(42,88,160,.48),
    0 0 0 1px rgba(120,160,210,.14);
  text-align: center;
  overflow: hidden;
}
.broadcast-stand-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
.tap-stage.is-complete .broadcast-stand-card::before {
  animation: broadcastShine 1.6s .35s ease-out both;
}
.broadcast-stand-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 6px;
}
.broadcast-stand-head b {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .02em;
  color: #1d4f86;
}
.broadcast-speaker {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(145deg, #5b9dff, #3b6ef5);
  box-shadow: 0 4px 10px -4px rgba(59,110,245,.7);
}
.broadcast-speaker i:first-child {
  position: absolute;
  left: 4px; top: 5px;
  width: 5px; height: 8px;
  border-radius: 1px 0 0 1px;
  background: #fff;
}
.broadcast-speaker i:last-child {
  position: absolute;
  left: 8px; top: 4px;
  width: 0; height: 0;
  border-style: solid;
  border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent #fff;
}
.broadcast-waves {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.broadcast-waves i {
  width: 2.5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  opacity: .35;
  height: 4px;
}
.tap-stage.is-complete .broadcast-waves i {
  animation: broadcastBar .72s ease-in-out infinite;
  opacity: 1;
}
.tap-stage.is-complete .broadcast-waves i:nth-child(1) { animation-delay: 0s; height: 5px; }
.tap-stage.is-complete .broadcast-waves i:nth-child(2) { animation-delay: .08s; height: 9px; }
.tap-stage.is-complete .broadcast-waves i:nth-child(3) { animation-delay: .16s; height: 13px; }
.tap-stage.is-complete .broadcast-waves i:nth-child(4) { animation-delay: .24s; height: 8px; }
.tap-stage.is-complete .broadcast-waves i:nth-child(5) { animation-delay: .32s; height: 6px; }
.broadcast-stand-card strong {
  display: block;
  margin-top: 2px;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -.03em;
  color: #0f2744;
  line-height: 1.1;
}
.tap-stage.is-complete .broadcast-stand-card strong {
  animation: broadcastAmountPop .7s .2s cubic-bezier(.22,1,.36,1) both;
}
.broadcast-stand-card small {
  display: block;
  margin-top: 5px;
  color: #5f7d99;
  font-size: 9px;
  line-height: 1.35;
}
.broadcast-caption {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #1d4ed8;
  background: rgba(59,130,246,.12);
  font-size: 8px;
  font-weight: 700;
}
.broadcast-caption::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.45);
}
.tap-stage.is-complete .broadcast-caption::before {
  animation: broadcastLive 1.2s ease-out infinite;
}
.broadcast-stand-base {
  width: 72px;
  height: 10px;
  margin-top: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #b7c4d2, #6f7f91 70%, #5a6a7c);
  box-shadow: 0 8px 14px -8px rgba(40,60,90,.55), inset 0 1px 0 rgba(255,255,255,.45);
}

/* 语音波纹：必须绝对定位，否则会把「碰」字挤出球心 */
.tap-zone > .tap-voice-ring {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 220px !important;
  height: 220px !important;
  margin: 0 !important;
  border: 2px solid rgba(186, 240, 255, .55);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(.72);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  box-sizing: border-box;
}
.tap-stage.is-complete .tap-zone > .tap-voice-ring {
  animation: tapVoicePulse 1.7s ease-out infinite !important;
}
.tap-stage.is-complete .tap-zone > .tap-voice-ring.v1 { animation-delay: 0s !important; }
.tap-stage.is-complete .tap-zone > .tap-voice-ring.v2 { animation-delay: .4s !important; }
.tap-stage.is-complete .tap-zone > .tap-voice-ring.v3 { animation-delay: .8s !important; }

/* 完成态：整个碰球一起呼吸 + 发光，不只外圈 */
.tap-stage.is-complete .tap-zone {
  overflow: visible;
  animation: tapSphereSpeak 1.35s ease-in-out infinite !important;
  box-shadow:
    inset 0 2px 14px rgba(255,255,255,.55),
    inset 0 -25px 60px rgba(36,21,91,.28),
    0 0 0 10px rgba(96,165,250,.16),
    0 0 42px rgba(120,200,255,.36),
    0 28px 64px rgba(49,116,229,.32) !important;
}
.tap-stage.is-complete .tap-zone-aura {
  animation: tapSphereAura 1.35s ease-in-out infinite !important;
}
.tap-stage.is-complete .tap-zone-ring.ring-a {
  animation: tapSphereRingFast 1.5s ease-out infinite !important;
}
.tap-stage.is-complete .tap-zone-ring.ring-b {
  animation: tapSphereRingFast 1.5s .45s ease-out infinite !important;
}
.tap-stage.is-complete .tap-glyph {
  animation: tapGlyphSpeak 1.1s ease-in-out infinite !important;
}

@keyframes broadcastBar {
  0%, 100% { transform: scaleY(.45); }
  50% { transform: scaleY(1); }
}
@keyframes broadcastShine {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
@keyframes broadcastAmountPop {
  0% { opacity: 0; transform: translateY(6px) scale(.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes broadcastLive {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.45); }
  70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
@keyframes tapVoicePulse {
  0% { opacity: .7; transform: translate(-50%, -50%) scale(.78); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.28); }
}
@keyframes tapGlyphSpeak {
  0%, 100% { transform: scale(1); filter: brightness(1); text-shadow: 0 8px 25px rgba(26,34,101,.34); }
  50% { transform: scale(1.08); filter: brightness(1.15); text-shadow: 0 0 18px rgba(255,255,255,.55), 0 8px 25px rgba(26,34,101,.34); }
}
@keyframes tapSphereSpeak {
  0%, 100% {
    scale: 1;
    filter: brightness(1) saturate(1);
  }
  50% {
    scale: 1.045;
    filter: brightness(1.08) saturate(1.12);
  }
}
@keyframes tapSphereAura {
  0%, 100% { opacity: .55; scale: 1; }
  50% { opacity: .95; scale: 1.08; }
}
@keyframes tapSphereRingFast {
  0% { opacity: .65; transform: translate(-50%, -50%) scale(.78); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.26); }
}

.reference-touch-hint { position: absolute; z-index: 7; right: 105px; top: 410px; color: #8dcad6; font-size: 8px; letter-spacing: .12em; }
.reference-touch-hint i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #55e5ff; box-shadow: 0 0 0 6px rgba(85,229,255,.08); animation: referencePulse 1.6s infinite; }
@keyframes referenceFloat { 50% { transform: translateY(-10px); } }
@keyframes referencePulse { 50% { box-shadow: 0 0 0 10px rgba(85,229,255,0); } }
.demo-tip { display: none; }
@media (max-width: 640px) {
  .hero-demo { max-width: 100%; }
  .tap-stage { min-height: 690px; overflow: visible; }
  .reference-orbit { left: 50%; top: 42%; }
  .reference-orbit-a { width: 300px; height: 300px; }
  .reference-orbit-b { width: 420px; height: 420px; }
  .reference-orbit-c { width: 225px; height: 225px; }
  .tap-zone { top: 32px; left: 50%; right: auto; transform: translateX(-50%); width: 176px; height: 176px; }
  .tap-zone-ring { width: 144px; height: 144px; }
  .tap-glyph { font-size: 48px; }
  .phone-actor { top: 190px; left: 50%; width: min(300px, calc(100% - 38px)); }
  .phone-actor .phone { width: min(300px, calc(100% - 38px)); transform: none; }
  .pay-amount-value strong { font-size: 26px; }
  .pay-keyboard { grid-template-columns: 1fr 58px; }
  .pay-keys i { min-height: 26px; }
  .broadcast-stand {
    right: auto;
    left: 50%;
    top: auto;
    bottom: 12px;
    width: 156px;
    transform: translate(-50%, 14px) scale(.92);
  }
  .tap-stage.is-complete .broadcast-stand {
    transform: translate(-50%, 0) scale(1);
  }
  .reference-touch-hint { right: 50%; top: 298px; transform: translateX(50%); }
  .tap-route { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reference-orbit, .reference-touch-hint i { animation: none; }
  .broadcast-stand { transition-duration: .28s, .32s, 0s; }
  .tap-stage.is-complete .broadcast-waves i,
  .tap-stage.is-complete .tap-zone > .tap-voice-ring,
  .tap-stage.is-complete .tap-glyph,
  .tap-stage.is-complete .tap-zone,
  .tap-stage.is-complete .tap-zone-aura,
  .tap-stage.is-complete .tap-zone-ring.ring-a,
  .tap-stage.is-complete .tap-zone-ring.ring-b,
  .tap-stage.is-complete .broadcast-stand-card::before,
  .tap-stage.is-complete .broadcast-caption::before,
  .tap-stage.is-complete .broadcast-stand-card strong { animation: none !important; }
}
