:root {
  --wine: #6d141c;
  --wine-deep: #541016;
  --red: #e10600;
  --red-hot: #d32a2a;
  --red-dark: #6a2428;
  --pink: #e7b7b4;
  --paper: #fffdfb;
  --ink: #3b2424;
  --muted: #8d8d8d;
  --line: #efefef;
  --shadow: 0 10px 24px rgba(109, 20, 28, 0.12);
  --tab: 78px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, #8d2430 0, transparent 36%),
    radial-gradient(circle at 90% 90%, #4a0c12 0, transparent 40%),
    #3a0c12;
}
button, input { font-family: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.stage {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
}

.phone {
  width: min(100vw, 420px);
  height: min(100dvh, 880px);
  background: var(--paper);
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.screen {
  display: none;
  height: 100%;
  overflow: auto;
  background: var(--paper);
}
.screen.on { display: block; }
.screen.tabbed { padding-bottom: var(--tab); }
.screen.wine { background: var(--wine); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 0;
  position: relative;
  z-index: 2;
}
.topbar h1 {
  margin: 0;
  flex: 1;
  text-align: center;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 2px;
}
.back, .logo-btn {
  width: 42px;
  height: 42px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--red);
}
.back { background: transparent; }
.back img, .logo-btn img { width: 40px; height: 40px; object-fit: contain; }
.plain-head .logo-btn img { width: 46px; height: 40px; }
.wine .logo-btn, .screen.wine .logo-btn, .hero .logo-btn { color: #fff; }
.back {
  border-radius: 0;
  background: transparent;
  display: grid;
  place-items: center;
}

.hero {
  position: relative;
  color: #fff;
  background: #3f0c0b;
  padding: 8px 20px 54px;
}
.hero-arc {
  background: transparent;
  padding: 0;
  height: 46%;
  overflow: hidden;
}
.hero-arc::after { display: none; }
.hero-arc .arc {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}
.hero-arc .kid {
  position: absolute;
  left: 50%;
  top: 7%;
  width: min(72%, 260px);
  margin: 0;
  transform: translateX(-50%);
}
.hero-arc .topbar {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  z-index: 2;
}
.hero-arc .brand-mark {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 88px;
  margin: 0;
  transform: translateX(-50%);
}
.hero-arc .wordmark {
  position: absolute;
  top: 44%;
  left: 0;
  right: 0;
  margin: 0;
}
.login-mark {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 3;
  width: 48px;
  height: 40px;
  object-fit: contain;
}
.hero::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -1px;
  height: 54px;
  background:
    radial-gradient(ellipse at 50% 0, transparent 68%, var(--paper) 69%);
}
.hero.deep::after { background: radial-gradient(ellipse at 50% 0, transparent 68%, var(--paper) 69%); }
.dash {
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 28px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'><path d='M0 8 Q200 48 400 8' fill='none' stroke='%23e10600' stroke-width='5' stroke-dasharray='12 9' stroke-linecap='round'/></svg>") center / 100% 100% no-repeat;
  z-index: 1;
}

.kid {
  width: min(86%, 320px);
  margin: 8px auto 0;
  filter: drop-shadow(0 12px 16px rgba(0,0,0,.18));
}
.slogan {
  margin: 22px 0 8px;
  text-align: center;
  font-family: "Ma Shan Zheng", "KaiTi", "STKaiti", cursive;
  color: var(--red);
  line-height: 1;
}
.slogan span { display: block; font-size: 54px; letter-spacing: 1px; }
.slogan .s2 { font-size: 58px; margin-top: 6px; }

.row-btns {
  display: flex;
  gap: 16px;
  padding: 8px 28px 0;
}
.pill {
  flex: 1;
  height: 52px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  font-size: 22px;
  letter-spacing: 4px;
  background: var(--red-hot);
  box-shadow: 0 8px 0 rgba(160, 20, 20, .12);
}
.pill.dim { background: #f6e4e1; color: var(--red); box-shadow: none; }
.pill.picked { box-shadow: 0 0 0 2px #3a0c10; }
.pill img { height: 22px; width: auto; margin: 0 auto; }
.pill.skin {
  position: relative;
  background: none;
  box-shadow: none;
  height: auto;
  aspect-ratio: 408 / 166;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pill.skin .pill-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
}
.pill.skin .pill-word {
  position: relative;
  z-index: 1;
  height: 42%;
  width: auto;
}
.pill.wide { width: calc(100% - 80px); margin: 22px 40px 0; display: block; }
.pill.wide.skin { aspect-ratio: 528 / 144; }

.social {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 28px;
}
.social button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: #e10600 url("../img/第一页/椭圆%202.png") center / cover no-repeat;
  display: grid;
  place-items: center;
  padding: 0;
}
.social img { width: 26px; height: 26px; object-fit: contain; }
.hint {
  text-align: center;
  color: var(--red);
  margin: 12px 0 0;
  font-size: 16px;
}
.agree {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 28px;
  color: #c45555;
  font-size: 13px;
  background: none;
  border: 0;
}
.agree img { height: 14px; width: auto; }
.agree .radio { width: 16px; height: 16px; }
.agree.on .radio { box-shadow: inset 0 0 0 5px #e10600; border-radius: 50%; }
.slogan-img { width: 68%; margin: 18px auto 6px; display: block; }
.hint img { height: 18px; margin: 0 auto; }
.field label { width: 48px; }
.field label img { height: 16px; width: auto; }
.brand-mark { width: 120px; }
.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #e7a3a3;
  display: inline-grid;
  place-items: center;
}
.dot.on { border-color: var(--red); }
.dot.on::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.brand-mark { width: 168px; margin: 10px auto 0; display: block; }
.wordmark {
  margin: 4px 0 0;
  text-align: center;
  font-family: "Ma Shan Zheng", "KaiTi", cursive;
  font-size: 78px;
  color: #fff;
  letter-spacing: 6px;
  line-height: 1;
  position: relative;
  z-index: 2;
}
.form { padding: 28px 36px 0; }
.field {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.field label { width: 42px; color: #bdbdbd; font-size: 16px; }
.field input {
  flex: 1;
  height: 28px;
  border: 0;
  border-radius: 14px;
  background: #e6e6e6;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
}

.home-wrap { padding: 6px 18px 28px; }
.entry {
  background: #fff;
  border-radius: 22px;
  padding: 0 12px 14px;
  margin-top: 22px;
  position: relative;
  box-shadow: var(--shadow);
}
.entry .cap {
  position: absolute;
  left: 50%;
  top: -16px;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  min-width: 150px;
  text-align: center;
  border-radius: 14px;
  padding: 8px 16px;
  display: flex;
  justify-content: center;
}
.entry .cap img { height: 20px; width: auto; }
.shot-card { position: relative; margin-top: 28px; }
.shot-bg { width: 100%; height: auto; display: block; }
.shot-in {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 7%;
  bottom: 6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.shot-in .come { width: 86%; margin: 0 auto; }
.shot-photo { width: 100%; display: block; margin-top: 28px; }
.kid-crop {
  width: 86%;
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 842 / 860;
}
.kid-crop img { width: 100%; height: auto; max-width: none; display: block; }
.kiosk-kid .kid-crop { width: 92%; }
#kiosk .entry {
  background: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  margin-top: 36px;
}
.device-crop {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: none;
}
.device-crop img { width: 100%; height: auto; max-width: none; display: block; }
.device-crop.top { aspect-ratio: 946 / 530; margin-top: 28px; }
.device-crop.bot { aspect-ratio: 946 / 616; margin: 16px 0 24px; }
.device-crop.bot img { margin-top: -58.1%; }
.entry + .entry { margin-top: 36px; }
.dash-box {
  margin-top: 28px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.dash-box.framed {
  border: 3px dashed #ef3b3b;
  padding: 6px;
}
.dash-box img { width: 100%; }
.title-art {
  width: 78%;
  margin: 18px auto 0;
}
.home-kid { width: 58%; max-height: 220px; margin: 0 auto; object-fit: contain; }

.mall-head, .plain-head {
  background: #fff;
  padding-bottom: 8px;
}
.mini-kid { width: 86px; margin: -8px auto 0; }
.frame {
  margin: 34px 14px 0;
  border: 0;
  padding: 28px 16px 14px;
  position: relative;
  background: none;
}
.frame-skin,
.frame-fill {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.frame-skin {
  inset: 0;
  width: 100%;
  height: 100%;
}
.frame-fill {
  left: 2.4%;
  top: 2.4%;
  width: 95.2%;
  height: 95.2%;
}
.tag {
  position: absolute;
  left: 22px;
  top: 0;
  z-index: 2;
  transform: translateY(-50%);
  width: 112px;
  height: 50px;
}
.tag-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.tag-word {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 24px;
  width: auto;
  transform: translate(-50%, -50%);
}
.gname { height: 15px; width: auto; margin: 4px auto 0; }
.goods {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.goods button {
  border: 0;
  background: transparent;
  padding: 0 2px;
  text-align: center;
}
.goods img.shot {
  width: 100%;
  height: 132px;
  object-fit: contain;
}
.price {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 281 / 80;
  margin: 8px 0 0;
  background: none;
}
.price-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.price-img {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 42%;
  width: auto;
  margin: 0;
  transform: translate(-50%, -50%);
}

.reco { position: relative; padding: 18px 16px 12px; }
.reco-top {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.reco-copy { flex: 1; min-width: 0; padding-top: 4px; }
.reco-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.thumbs { width: 50px; height: 48px; object-fit: contain; flex: none; }
.reco-word { height: 36px; width: auto; }
.reco-blurb { width: 100%; height: auto; margin-top: 8px; }
.reco p {
  margin: 8px 0 0;
  color: #e15b6a;
  font-size: 12px;
  line-height: 1.55;
}
.post-mosaic {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-rows: 176px 112px;
  gap: 10px;
  margin-top: 8px;
}
.post-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  background: #f6f1ee;
}
.p-left { object-position: center 40%; }
.p-right { object-position: center; }
.p-bl { object-position: center 28%; }
.p-br { object-position: 62% 22%; }
.wink {
  width: 128px;
  flex: none;
  margin: -6px -4px -28px 0;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.steps { padding: 2px 16px 12px; background: #fff; }
.check-kid { width: 64px; margin-top: 0; }
.check-hero {
  display: flex;
  align-items: flex-start;
  gap: 2px;
}
.check-copy { flex: 1; min-width: 0; }
.check-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
}
.check-title .thumb { width: 38px; height: 36px; object-fit: contain; flex: none; }
.check-word { height: 26px; width: auto; max-width: calc(100% - 46px); }
.cheer {
  width: 126px;
  flex: none;
  margin: -6px -4px -16px 0;
}
.step { display: flex; gap: 8px; margin: 14px 0 8px; color: #333; font-size: 13px; line-height: 1.55; }
.num {
  flex: none;
  width: 26px;
  height: 26px;
  position: relative;
  background: none;
  margin-top: 2px;
}
.num img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.num .digit { width: 46%; height: 58%; inset: 0; margin: auto; }
.step img, .lead h2 img, .dub-hero h2 img, .dub-hero p img, .cat h3 img, .cat small img { height: auto; width: auto; max-width: 100%; }
.lead h2 img, .dub-hero h2 img { height: 22px; }
.dub-hero p img, .step > div img { width: 100%; }
.cat h3 img { height: 16px; }
.cat small img { height: 10px; }
.mic-label > img { width: 46px; height: auto; }
.step img.wide, .card-photo {
  width: 100%;
  margin: 0 0 10px;
  border-radius: 14px;
  display: block;
}
.card-photo.short { border-radius: 10px; margin-bottom: 16px; }
.sheet7 {
  min-height: 100%;
  background: #fff;
  scroll-snap-align: start;
  padding: 0 14px 12px;
}
.sheet7 .topbar { padding: 10px 2px 0; margin: 0 -2px 8px; }
.sheet7 .step { margin: 6px 0 8px; }
#checkin { scroll-snap-type: y proximity; }

.dub { padding: 0 14px 16px; background: #fff; }
.dub-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0 0;
}
.dub-title { height: 22px; width: auto; flex: 1; object-fit: contain; object-position: left center; }
.dub-hero {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 14px;
}
.dub-hero .thumb { width: 36px; height: 34px; object-fit: contain; flex: none; }
.dub-blurb { flex: 1; min-width: 0; width: 100%; height: auto; margin-top: 4px; }
.dub-kid { width: 96px; flex: none; margin-top: -4px; }
.cat { margin-top: 14px; }
.cat h3 { margin: 0; }
.cat h3 img { height: 18px; width: auto; }
.cat small img { height: 11px; width: auto; }
.mic-label { display: flex; gap: 8px; align-items: center; }
.mic-label > img { width: 36px; height: 28px; object-fit: contain; }
.cat-card {
  margin-top: 8px;
  border: 0;
  padding: 0;
  width: 100%;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.cat-card img { width: 100%; height: auto; object-fit: contain; border-radius: 16px; display: block; }
.cat-card.red { background: none; padding: 0; }
.cat-card.red img { height: auto; border-radius: 0; }
.cap-on {
  position: relative;
}
.cap-on span {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  text-align: center;
  color: #fff;
  font-size: 13px;
  text-shadow: 0 1px 4px rgba(0,0,0,.45);
}

.mine { background: #fff; padding-bottom: 12px; }
.avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  margin: 12px auto 0;
  padding: 4px;
  background: linear-gradient(#eee, #ddd);
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.mine h2 { text-align: center; margin: 10px 0 0; }
.mine h2 img { height: 28px; margin: 0 auto; }
.sub { text-align: center; margin: 6px 0 16px; }
.sub img { height: 14px; margin: 0 auto; }
.mine-btn img { height: 22px; width: auto; }
.mine-btn.light { background: #d9898c; }
.mine-split button img { height: 22px; width: auto; }
.topbar h1 img { height: 22px; width: auto; margin: 0 auto; }
.mine-btn {
  width: calc(100% - 36px);
  margin: 0 18px 12px;
  border: 0;
  border-radius: 28px;
  background: #9d242c;
  color: #fff;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 18px;
}
.mine-btn.time {
  position: relative;
  background: none;
  min-height: 0;
  padding: 0;
  aspect-ratio: 1000 / 271;
  overflow: hidden;
}
.mine-btn.time .time-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.mine-btn.time .time-mic,
.mine-btn.time #hours { position: relative; z-index: 1; }
.mine-btn.time .time-mic { height: 52%; width: auto; }
.mine-btn.time #hours { height: 28%; width: auto; }
.mine-btn.bar {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: none;
  min-height: 56px;
  padding: 0;
  aspect-ratio: 1000 / 153;
  overflow: hidden;
}
.mine-btn.bar .bar-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
}
.mine-btn.bar img:not(.bar-bg) { position: relative; z-index: 1; height: 22px; }
.mine-split { display: flex; gap: 12px; padding: 0 18px 12px; align-items: stretch; }
.mine-split button {
  position: relative;
  border: 0;
  background: none;
  border-radius: 22px;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 8px 14px;
}
.mine-split .soft { flex: 429 1 0; aspect-ratio: 429 / 388; }
.mine-split .hard { flex: 549 1 0; aspect-ratio: 549 / 388; }
.mine-split .split-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.mine-split button img.split-ico { position: relative; z-index: 1; height: 46%; width: auto; }
.mine-split button img.split-lab { position: relative; z-index: 1; height: 13%; width: auto; }

.tabbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--tab);
  background: #fff;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding: 0 4px 8px;
  box-shadow: 0 -6px 16px rgba(0,0,0,.05);
  z-index: 5;
}
.phone.show-tab .tabbar { display: grid; }
.tabbar button {
  border: 0;
  background: transparent;
  color: #c45555;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0;
}
.tabbar button.on { color: #8d1d24; font-weight: 700; }
.tabbar .ico { width: 32px; height: 32px; object-fit: contain; }
.tabbar .lab { height: 15px; width: auto; }
.tabbar .mic-art {
  width: 74px;
  height: auto;
  margin-top: -30px;
  object-fit: contain;
  background: none;
  filter: none;
}

.sheet, .toast {
  position: absolute;
  z-index: 8;
}
.sheet {
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-radius: 22px 22px 0 0;
  max-height: 78%;
  overflow: auto;
  padding: 16px 16px 24px;
  box-shadow: 0 -12px 40px rgba(0,0,0,.2);
  transform: translateY(110%);
  transition: transform .25s ease;
}
.sheet.open { transform: translateY(0); }
.sheet h3 { margin: 0 0 8px; }
.sheet .close {
  position: absolute;
  right: 12px;
  top: 12px;
  border: 0;
  background: #f3f3f3;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 7;
  display: none;
}
.mask.open { display: block; }
.toast {
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  background: rgba(40, 10, 12, .88);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  display: none;
  max-width: 80%;
  text-align: center;
}
.toast.on { display: block; }

.player { text-align: center; }
.player img { width: 100%; height: 180px; object-fit: cover; border-radius: 16px; }
.bar { height: 6px; background: #f0d5d5; border-radius: 6px; margin: 12px 0; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--red); }
.bar i.run { animation: load 18s linear forwards; }
@keyframes load { to { width: 100%; } }
.play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 0;
  background: var(--red);
  color: #fff;
  font-size: 14px;
}

.cart-line, .order {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.qty { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.qty button { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #eee; background: #fff; }
.sum { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.empty { color: var(--muted); text-align: center; padding: 24px 0; }

.linkish { background: none; border: 0; color: var(--red); padding: 0; }

@media (max-width: 480px) {
  .stage { padding: 0; }
  .phone { width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
}
