.view { position: absolute; inset: 0; overflow: hidden; animation: view-in .6s var(--ease-out) both; }
.view.leaving { animation: none; pointer-events: none; }
@keyframes view-in { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: none; } }
@keyframes view-out { to { opacity: 0; } }
.topbar {
  position: fixed; z-index: 40; left: 0; right: 0; top: 0; height: var(--nav-h);
  display: flex; align-items: stretch; padding: 0 var(--pad);
  color: var(--ink); background: rgba(247,248,252,.86); -webkit-backdrop-filter: saturate(160%) blur(24px); backdrop-filter: saturate(160%) blur(24px);
  box-shadow: inset 0 -1px 0 var(--line);
  transition: background-color .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease);
}
.topbar[data-tone="dark"] { color: var(--dark-ink); background: rgba(12,13,20,.78); box-shadow: inset 0 -1px 0 rgba(255,255,255,.08); }
.logo {
  display: flex; align-items: center; min-height: var(--nav-h); padding: 0 1rem; margin-left: -1rem;
  font-weight: 700; font-size: 1.875rem; letter-spacing: .02em;
}
.logo .press-ring { position: absolute; }
/* 品类导航跟在品牌字后面左对齐，当前品类下方一条品牌渐变短线 */
.nav { display: flex; margin-left: 2.25rem; padding-left: 1.25rem; position: relative; }
.nav::before { content: ""; position: absolute; left: 0; top: 50%; height: 1.5rem; margin-top: -.75rem; width: 1px; background: currentColor; opacity: .18; }
.nav button {
  position: relative; min-height: var(--nav-h); padding: 0 1.375rem; font-size: 1.375rem; font-weight: 400; letter-spacing: .04em; opacity: .62;
  transition: opacity .3s var(--ease);
}
.nav button::after { content: ""; position: absolute; left: 1.375rem; right: 1.375rem; bottom: 0; height: .1875rem; border-radius: .25rem .25rem 0 0; background: var(--brand-grad); transform: scaleX(0); transition: transform .4s var(--ease-out); }
.nav button[aria-current="true"] { opacity: 1; font-weight: 700; }
.nav button[aria-current="true"]::after { transform: none; }
.nav button:active { opacity: .35; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.talk-toggle { min-height: 3.5rem; padding: 0 1.25rem; border-radius: 99rem; font-size: 1.125rem; display: inline-flex; align-items: center; gap: .5rem; box-shadow: inset 0 0 0 1px currentColor; opacity: .8; transition: background-color .3s, color .3s, opacity .3s; }
.talk-toggle svg { width: 1.375rem; height: 1.375rem; }
.talk-toggle[aria-pressed="true"] { background: #ffd60a; color: #000; box-shadow: none; opacity: 1; }
@media (orientation: portrait) {
.nav { margin-left: 1rem; padding-left: .5rem; }
.nav button { padding: 0 1rem; font-size: 1.25rem; }
.nav button::after { left: 1rem; right: 1rem; }
}
.attract { background: #000; color: #fff; }
.attract .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.attract .slide.on { opacity: 1; }
.attract .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; transform: scale(1.08); }
.attract .slide.moving img { animation: kenburns 9s linear both; }
@keyframes kenburns { from { transform: scale(1.1) translateX(1%); } to { transform: scale(1.0) translateX(0); } }
.attract .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.22) 45%, rgba(0,0,0,0) 70%), linear-gradient(0deg, rgba(0,0,0,.35), rgba(0,0,0,0) 30%); }
.attract .copy { position: absolute; left: var(--pad); top: 50%; transform: translateY(-50%); max-width: 80rem; }
.attract .copy .eyebrow { color: #cdc4ff; font-size: 1.625rem; margin-bottom: 1.5rem; text-shadow: 0 0 1.5rem rgba(0,0,0,.35); }
.attract .copy .display { font-size: 8rem; text-shadow: 0 .25rem 3rem rgba(0,0,0,.2); }
.attract .copy .cta { display: inline-flex; align-items: center; gap: 1rem; margin-top: 3rem; padding: 0 1.75rem 0 1.375rem; min-height: 4.25rem; border-radius: 99rem; font-size: 1.5rem; letter-spacing: .06em; color: #fff; background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.attract .copy .cta i { position: relative; width: .75rem; height: .75rem; border-radius: 50%; background: var(--brand-grad); }
.attract .copy .cta i::after { content: ""; position: absolute; inset: -.375rem; border-radius: 50%; border: 1px solid #a597ff; animation: cta-ring 2.6s var(--ease-out) 1.2s infinite; }
@keyframes cta-ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.attract .line-in > * { animation: rise .9s var(--ease-out) both; }
.attract .line-in > *:nth-child(2) { animation-delay: .12s; }
.attract .line-in > *:nth-child(3) { animation-delay: .5s; }
@keyframes rise { from { opacity: 0; transform: translateY(2rem); } to { opacity: 1; transform: none; } }
.attract .logo { position: absolute; left: var(--pad); top: 2rem; margin: 0; padding: 0; color: #fff; }
.attract .badge-device {
  position: absolute; right: var(--pad); top: 2.5rem; display: flex; align-items: center; gap: .875rem;
  min-height: 4rem; padding: 0 1.5rem; border-radius: 99rem; font-size: 1.25rem; letter-spacing: .02em; color: #fff;
  background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
  animation: rise 1s .6s var(--ease-out) both;
}
.attract .badge-device i { width: .625rem; height: .625rem; border-radius: 50%; background: #30d158; }
.attract .progress { position: absolute; left: var(--pad); bottom: 3rem; display: flex; gap: .5rem; }
.attract .progress i { width: 3rem; height: .1875rem; border-radius: 1rem; background: rgba(255,255,255,.28); overflow: hidden; }
.attract .progress i.on::after { content: ""; display: block; height: 100%; background: var(--brand-grad); transform-origin: left; animation: prog var(--dur, 7s) linear both; }
.attract .progress i.done::after { content: ""; display: block; height: 100%; background: rgba(255,255,255,.6); }
@keyframes prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (orientation: portrait) {
.attract .slide img { object-position: 72% 50%; }
.attract .shade { background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,0) 50%, rgba(0,0,0,.62) 85%); }
.attract .copy { top: auto; bottom: 8rem; transform: none; right: var(--pad); }
.attract .copy .display { font-size: 7rem; }
.attract .copy .cta { margin-top: 2.5rem; }
}
.modal-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.55); display: grid; place-items: center; animation: fade .3s both; }
.modal { background: #fff; color: var(--ink); border-radius: 2.5rem; padding: 3.5rem; display: grid; justify-items: center; gap: 1.25rem; min-width: 40rem; animation: pop .45s var(--ease-out) both; position: relative; }
@keyframes pop { from { opacity: 0; transform: scale(.92); } }
.modal img.qr { width: 26rem; height: 26rem; image-rendering: pixelated; }
.modal .h3 { text-align: center; }
.modal .s-close { position: absolute; top: 1.25rem; right: 1.25rem; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; }
.modal .s-close svg { width: 1.5rem; height: 1.5rem; }
.idle { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.6); display: grid; place-items: center; animation: fade .4s both; }
.idle .box { background: #fff; border-radius: 2.5rem; padding: 3.5rem 4rem; display: grid; justify-items: center; gap: 1.5rem; text-align: center; animation: pop .45s var(--ease-out) both; }
.idle .count { position: relative; width: 9rem; height: 9rem; display: grid; place-items: center; font-size: 3.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.idle .count svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.idle .count circle { fill: none; stroke-width: 4; }
.idle .count .t { stroke: var(--bg-2); }
.idle .count .p { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.touch-fx { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.touch-fx i { position: absolute; width: 5rem; height: 5rem; margin: -2.5rem 0 0 -2.5rem; border-radius: 50%; background: rgba(255,255,255,.35); border: .15rem solid rgba(255,255,255,.7); animation: tap .55s var(--ease-out) both; mix-blend-mode: difference; }
@keyframes tap { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.press-progress { position: fixed; z-index: 99; width: 6rem; height: 6rem; margin: -3rem 0 0 -3rem; pointer-events: none; }
.press-progress circle { fill: none; stroke: #ffd60a; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 283; stroke-dashoffset: 283; animation: press 2.5s linear forwards; }
@keyframes press { to { stroke-dashoffset: 0; } }
.admin { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.5); display: grid; place-items: center; }
.admin .panel { width: min(86rem, 94vw); max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 2rem; padding: 3rem; display: grid; gap: 2rem; user-select: text; }
.admin h2 { font-size: 2.5rem; }
.admin h3 { font-size: 1.5rem; margin-bottom: .75rem; color: var(--ink-2); }
.admin .row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.admin .opt-card { flex: 1; min-width: 20rem; text-align: left; border: .2rem solid var(--line); border-radius: 1.25rem; padding: 1.25rem 1.5rem; font-size: 1.375rem; }
.admin .opt-card b { display: block; font-size: 1.625rem; }
.admin .opt-card small { color: var(--ink-2); font-size: 1.125rem; }
.admin .opt-card[aria-pressed="true"] { border-color: var(--accent); background: rgba(91,60,240,.06); }
.admin table { width: 100%; border-collapse: collapse; font-size: 1.25rem; }
.admin td, .admin th { padding: .625rem .75rem; border-bottom: 1px solid var(--line); text-align: left; }
.admin th { color: var(--ink-2); font-weight: 600; }
.admin .kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.admin .kpi { background: var(--bg-2); border-radius: 1.25rem; padding: 1.25rem 1.5rem; }
.admin .kpi b { font-size: 3rem; display: block; line-height: 1.1; font-variant-numeric: tabular-nums; }
.admin .kpi span { font-size: 1.125rem; color: var(--ink-2); }
.admin .num-input { display: flex; align-items: center; gap: 1rem; font-size: 1.375rem; }
.attract .slide img[src*="scene-dining-front-"] { object-position: 100% 50%; }
