﻿:root {
  --bg: #f6f3ef;
  --panel: #ffffff;
  --panel-soft: #fcfbf9;
  --banner: #f7ebdf;
  --text: #1d1d1f;
  --muted: #9e9e9e;
  --line: #ece8e2;
  --accent: #ff7a00;
  --accent-strong: #ff5a00;
  --accent-soft: rgba(255, 122, 0, 0.14);
  --shadow: 0 18px 42px rgba(120, 73, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html.pc-blocked,
html.pc-blocked body {
  min-height: 100%;
  overflow: hidden !important;
  background: #fff6ee;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 183, 101, 0.18), transparent 28%),
    linear-gradient(180deg, #fbf7f2 0%, #f4f0ea 100%);
  color: var(--text);
}

body.pc-blocked {
  overflow: hidden;
  background: #fff6ee;
}

body.loading-active {
  overflow: hidden;
}

body.sheet-open .cta-section {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.loading-active .sheet-overlay,
body.loading-active .toast {
  pointer-events: none;
}

button {
  font: inherit;
}

.device-blocker {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(23, 16, 11, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 120;
}

html.pc-blocked .device-blocker,
body.pc-blocked .device-blocker {
  display: flex;
}

html.pc-blocked body > :not(#deviceBlocker),
body.pc-blocked > :not(#deviceBlocker) {
  display: none !important;
}

html.pc-blocked #deviceBlocker,
body.pc-blocked #deviceBlocker {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.device-blocker-card {
  width: min(100%, 360px);
  border-radius: 28px;
  padding: 26px 22px 24px;
  background: linear-gradient(180deg, #fffaf4 0%, #fff2e6 100%);
  box-shadow: 0 28px 60px rgba(32, 17, 7, 0.24);
  text-align: center;
}

.device-blocker-kicker {
  margin: 0;
  color: #f08a22;
  font-size: 13px;
  font-weight: 800;
}

.device-blocker-title {
  margin: 10px 0 0;
  font-size: 28px;
  line-height: 1.24;
  font-weight: 900;
}

.device-blocker-text {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #8d7764;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 20px 12px 36px;
  width:min(100%,430px);min-height:100vh;margin:0 auto;padding-bottom:34px;background:var(--bg)
}

.page {
  width: 100%;
  max-width: 420px;
}

.hero-banner,
.booking-section,
.summary-card,
.payment-sheet {
  background: var(--panel);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.hero-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 146px;
  align-items: start;
  column-gap: 12px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.7), transparent 22%),
    linear-gradient(180deg, #f7ebdf 0%, #f8efe6 100%);
  padding: 24px 22px 20px;
  min-height: 178px;
}

.hero-banner::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 8px;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 186, 123, 0.38), rgba(255, 186, 123, 0));
  z-index: 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: none;
  padding-top: 6px;
}

.hero-kicker {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-copy h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #8d8175;
}

.hero-mascot {
  position: relative;
  justify-self: end;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 146px;
  height: 118px;
  margin-top: 0;
  margin-right: 0;
  padding: 0;
  z-index: 1;
}

.hero-mascot-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 12px 20px rgba(255, 144, 34, 0.16));
}

.booking-section {
  margin-top: 16px;
  padding: 18px 16px;
}

.section-head {
  margin-bottom: 14px;
}

.section-title-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.section-title-group h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 900;
}

.section-title-group p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.option-stack {
  display: grid;
  gap: 12px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.option-card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fcfcfb 0%, #f4f4f2 100%);
  border-radius: 18px;
  min-height: 74px;
  width: 100%;
  padding: 16px 44px 16px 16px;
  text-align: left;
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.option-card:hover {
  transform: translateY(-1px);
}

.option-card.active {
  border-color: rgba(255, 122, 0, 0.65);
  background: linear-gradient(180deg, #fffefb 0%, #fff8ef 100%);
  box-shadow: 0 0 0 2px rgba(255, 122, 0, 0.12), 0 12px 26px rgba(255, 133, 26, 0.14);
}

.option-card.wide {
  grid-column: 1 / -1;
}

.option-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.option-text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.option-status {
  font-size: 12px;
  color: #d7a064;
  font-weight: 800;
}

.option-heart {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 19px;
  line-height: 1;
  color: #3e3e3e;
  transition: color 0.18s ease, transform 0.18s ease;
}

.option-card.active .option-heart {
  color: var(--accent-strong);
  transform: translateY(-50%) scale(1.08);
}

.summary-card {
  margin-top: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.summary-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.summary-value {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.summary-subvalue {
  margin: 6px 0 0;
  font-size: 13px;
  color: #896f5d;
}

.summary-edit {
  flex-shrink: 0;
  border: 0;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
}

.cta-section {
  margin-top: 18px;
  position: sticky;
  bottom: 0;
  z-index: 5;
  padding-top: 10px;
  background: linear-gradient(180deg, rgba(246, 243, 239, 0) 0%, rgba(246, 243, 239, 0.92) 26%, rgba(246, 243, 239, 1) 100%);
}

.cta-button {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 20px 20px 18px;
  color: #fff8ef;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.03em;
  background: linear-gradient(90deg, #ffb423 0%, #ff7e10 42%, #ff5b00 100%);
  box-shadow: 0 18px 36px rgba(255, 112, 15, 0.3);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(255, 112, 15, 0.34);
}

.cta-note {
  margin: 8px 0 0;
  text-align: center;
  color: #967b68;
  font-size: 12px;
}

.sheet-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px 12px;
  background: rgba(18, 12, 9, 0.48);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.sheet-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.payment-sheet {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 22px 18px 20px;
  transform: translateY(30px);
  transition: transform 0.22s ease;
}

.sheet-overlay.show .payment-sheet {
  transform: translateY(0);
}

.sheet-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f6f1eb;
  color: #6e5f53;
  font-size: 20px;
  cursor: pointer;
}

.sheet-kicker {
  margin: 0;
  color: #f08a22;
  font-size: 12px;
  font-weight: 800;
}

.payment-sheet h3 {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 900;
}

.sheet-summary {
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  background: var(--panel-soft);
  border: 1px solid #efe5da;
}

.sheet-row + .sheet-row {
  margin-top: 10px;
}

.sheet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #917962;
}

.sheet-row strong {
  color: var(--text);
  font-size: 14px;
}

.payment-methods {
  margin-top: 16px;
  display: grid;
  gap: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #eee5da;
  background: #fff;
}

.payment-method {
  border: 0;
  border-bottom: 1px solid #f0ece5;
  background: #fff;
  border-radius: 0;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.payment-method:last-child {
  border-bottom: 0;
}

.payment-method:hover {
  background: #fffaf3;
}

.payment-method.active {
  background: #fffaf3;
}

.method-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  flex-shrink: 0;
  font-size: 14px;
}

.method-wechat {
  background: linear-gradient(180deg, #56c556, #1ea948);
}

.method-alipay {
  background: linear-gradient(180deg, #3ba4ff, #177ce3);
}

.method-bank {
  background: linear-gradient(180deg, #ff9d41, #ff6d17);
}

.method-friend {
  background: linear-gradient(180deg, #ffbb54, #ff8f1e);
}

.method-cloud {
  background: linear-gradient(180deg, #ff6f6f, #ef4a4a);
}

.method-qrcode {
  background: linear-gradient(180deg, #6f7dff, #5a62eb);
}

.method-copy strong,
.method-copy small {
  display: block;
}

.method-copy strong {
  font-size: 14px;
  color: #1d1d1f;
}

.method-copy small {
  margin-top: 4px;
  color: #947d67;
  font-size: 11px;
}

.method-check {
  margin-left: auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #d8d8d8;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.method-check::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--accent-strong);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.payment-method.active .method-check {
  border-color: #ff9b4f;
}

.payment-method.active .method-check::after {
  opacity: 1;
  transform: scale(1);
}

.qr-box {
  width: 180px;
  height: 180px;
  margin: 0 auto 12px;
  padding: 8px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(82, 54, 22, 0.1);
}

.qr-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
}

.qr-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.qr-note {
  margin: 6px 0 0;
  font-size: 11px;
  color: #927d68;
}

.sheet-confirm {
  width: 100%;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  padding: 16px 18px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  background: linear-gradient(90deg, #ffb423 0%, #ff7e10 42%, #ff5b00 100%);
  box-shadow: 0 16px 32px rgba(255, 112, 15, 0.28);
  cursor: pointer;
}

.sheet-confirm:disabled {
  background: linear-gradient(90deg, #f4d4a8 0%, #efc48d 100%);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.9;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(24, 17, 11, 0.56);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 60;
}

.loading-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.loading-active .loading-overlay {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.loading-card {
  width: min(100%, 320px);
  border-radius: 24px;
  padding: 24px 20px 20px;
  background: linear-gradient(180deg, #fffaf4 0%, #fff4e8 100%);
  text-align: center;
  box-shadow: 0 24px 48px rgba(50, 29, 10, 0.22);
}

.loading-spinner {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 4px solid rgba(255, 122, 0, 0.16);
  border-top-color: var(--accent-strong);
  animation: loading-rotate 0.9s linear infinite;
}

.loading-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
}

.loading-subtitle {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #8f7662;
}

.loading-progress {
  margin-top: 18px;
  height: 10px;
  border-radius: 999px;
  background: #f0dfd0;
  overflow: hidden;
}

.loading-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb423 0%, #ff7e10 50%, #ff5b00 100%);
  transition: width 0.2s linear;
}

.loading-count {
  margin: 12px 0 0;
  font-size: 13px;
  color: #8a715d;
  font-weight: 700;
}

.qr-result-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(24, 17, 11, 0.56);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 70;
}

.qr-result-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.qr-result-card {
  position: relative;
  width: min(100%, 340px);
  border-radius: 26px;
  padding: 22px 20px 20px;
  background: linear-gradient(180deg, #fffaf4 0%, #fff3e8 100%);
  text-align: center;
  box-shadow: 0 24px 48px rgba(50, 29, 10, 0.22);
}

.qr-result-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f6eee5;
  color: #7a685a;
  font-size: 20px;
  cursor: pointer;
}

.qr-result-kicker {
  margin: 0;
  color: #f08a22;
  font-size: 12px;
  font-weight: 800;
}

.qr-result-title {
  margin: 8px 0 0;
  font-size: 24px;
  font-weight: 900;
}

.qr-box-large {
  width: 220px;
  height: 220px;
  margin-top: 18px;
  margin-bottom: 14px;
  padding: 10px;
}

.qr-result-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #8f7662;
}

@keyframes loading-rotate {
  to {
    transform: rotate(360deg);
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  background: rgba(32, 27, 23, 0.92);
  color: #fff;
  font-size: 13px;
  padding: 12px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 14px 24px rgba(16, 11, 7, 0.18);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 420px) {
  .page-shell {
    padding: 12px 8px 28px;
  }

  .hero-banner,
  .booking-section,
  .summary-card,
  .payment-sheet {
    border-radius: 22px;
  }

  .hero-banner {
    padding: 22px 18px 18px;
    grid-template-columns: minmax(0, 1fr) 124px;
    min-height: 166px;
    column-gap: 8px;
  }

  .hero-copy {
    padding-top: 4px;
  }

  .hero-copy h1 {
    font-size: 24px;
  }

  .hero-kicker {
    font-size: 14px;
  }

  .hero-mascot {
    width: 124px;
    height: 100px;
    padding: 0;
  }

  .booking-section {
    padding: 16px 14px;
  }

  .price-grid {
    gap: 10px;
  }

  .option-card {
    min-height: 70px;
    padding: 14px 40px 14px 14px;
  }

  .option-text {
    font-size: 15px;
  }

  .summary-card {
    padding: 14px;
  }

  .cta-section {
    padding-top: 8px;
  }

  .summary-value {
    font-size: 15px;
  }

  .payment-sheet {
    padding: 20px 16px 18px;
  }

  .payment-method {
    padding: 14px 12px;
  }

  .qr-box {
    width: 164px;
    height: 164px;
  }
}

