:root {
  --bg: #eef1f5;
  --card: #ffffff;
  --primary: #3b9eff;
  --primary-dark: #2b8eef;
  --text: #222;
  --muted: #8a8f98;
  --line: #e8ebf0;
  --field-bg: #f3f5f8;
  --danger: #ff4d4f;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(15, 35, 70, 0.04);
  --hero-image: url("photo_2026-10-20_03-59-36.jpg");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

button, input, select {
  font: inherit;
  color: inherit;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 12px 20px;
}

.topbar {
  background: #fff;
  margin: 0 -12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
}

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

.logo {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: linear-gradient(145deg, #ff4b4b, #d91414);
  color: #111;
  font-weight: 800;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.brand-name {
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hero {
  position: relative;
  margin: 0 -12px 12px;
  min-height: 450px;
  padding: 140px 12px 0;
  display: flex;
  align-items: flex-end;
  background-color: #4a90e2;
  background-image: var(--hero-image);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.hero .merchant {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-bottom: 0;
  border-radius: 18px 18px 14px 14px;
  box-shadow: 0 -2px 16px rgba(15, 35, 70, 0.08);
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 14px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.section-title {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 4px solid var(--primary);
  line-height: 1.2;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--field-bg);
  border-radius: 10px;
  padding: 14px 12px;
  margin-bottom: 10px;
  font-size: 14px;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-row .label {
  color: #555;
  flex-shrink: 0;
}

.info-row .value {
  text-align: right;
  word-break: break-all;
}

.info-row .link {
  color: var(--primary);
  text-decoration: none;
}

.info-row .link:hover {
  text-decoration: underline;
}

.notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.notice-icon {
  display: flex;
  flex-shrink: 0;
}

.notice-tag {
  flex-shrink: 0;
  font-size: 14px;
  color: #333;
}

.notice-track {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.notice .info {
  display: inline-block;
  white-space: nowrap;
  font-size: 13px;
  color: #666;
  padding-left: 100%;
  animation: marquee 18s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field:last-child {
  margin-bottom: 0;
}

.field-label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
}

.field-label i {
  color: var(--danger);
  font-style: normal;
  margin-right: 2px;
}

.form-tip {
  min-height: 20px;
  margin: 4px 2px 0;
  color: var(--danger);
  font-size: 13px;
}

.select-wrap,
.stepper,
.text-input {
  background: var(--field-bg);
  border-radius: 10px;
  border: 1px solid transparent;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #9aa3af;
  border-bottom: 2px solid #9aa3af;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.select-wrap select,
.text-input,
.stepper input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 13px 36px 13px 12px;
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
}

.select-wrap select:invalid,
.select-wrap select option[disabled] {
  color: var(--muted);
}

.text-input {
  display: block;
  padding: 13px 12px;
}

.text-input::placeholder,
.stepper input::placeholder {
  color: #b0b6c0;
}

.stepper {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 8px;
}

.stepper input {
  flex: 1;
  text-align: center;
  padding: 10px 6px;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stepper input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.step-value {
  flex: 1;
  text-align: center;
  font-size: 15px;
  color: #333;
}

.step-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.step-btn:active {
  background: var(--primary-dark);
}

.stepper.readonly .step-btn {
  pointer-events: none;
  opacity: 0.95;
}

.sex-group {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 4px 2px;
}

.sex-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.sex-item input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #c5CAD3;
  border-radius: 50%;
  display: grid;
  place-content: center;
  margin: 0;
}

.sex-item input::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  transform: scale(0);
  transition: transform 0.12s ease;
}

.sex-item input:checked {
  border-color: var(--primary);
}

.sex-item input:checked::after {
  transform: scale(1);
}

.bottom-spacer {
  height: 84px;
}

.action-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #fff;
  box-shadow: 0 -4px 20px rgba(20, 40, 80, 0.06);
  z-index: 20;
}

.total-label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 2px;
}

.total-price {
  color: var(--primary);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}

.order-btn {
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(59, 158, 255, 0.35);
}

.order-btn:active {
  background: var(--primary-dark);
}

.ck-mask{position:fixed;inset:0;z-index:9999;background:rgba(6,10,18,.76);backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}
.ck-mask[hidden]{display:none}
.ck-card{width:100%;max-width:420px;max-height:calc(100dvh - 40px);overflow:auto;background:linear-gradient(160deg,#202630,#12161d);color:#eaecef;border:1px solid #363c45;border-radius:24px;padding:26px 24px 16px;box-shadow:0 25px 80px #0006;font:14px/1.5 "PingFang SC","Microsoft YaHei",sans-serif;box-sizing:border-box}
.ck-token{display:flex;align-items:center;justify-content:center;width:46px;height:46px;margin:0 auto 10px;border-radius:15px;background:#fcd535;color:#171c24;font-size:30px;font-weight:700;box-shadow:0 5px 20px #fcd5351a}
.ck-eyebrow{text-align:center;font-size:10px;letter-spacing:2.5px;color:#a8b1bf;margin-bottom:7px}
.ck-card h2{margin:0;font-size:21px;font-weight:700;text-align:center;color:#fff}
.ck-sub{margin:9px 0 22px;text-align:center;color:#a8b1bf;font-size:12px;line-height:1.8}
.ck-amount{margin:0 0 21px;text-align:center;font-size:35px;letter-spacing:-.8px;font-weight:700;color:#fff;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.ck-clock{margin:0 auto 12px;width:132px;text-align:center;padding:7px 14px;border:1px solid #fcd53530;border-radius:12px;background:#fcd5350b;color:#fcd535;font-size:27px;line-height:1.3;letter-spacing:2px;font-weight:700;font-variant-numeric:tabular-nums}
.ck-clock.is-expired{color:#fa9292;border-color:#fa929244;background:#fa92920a;letter-spacing:0;font-size:23px}
.ck-progress{height:4px;background:#333a46;border-radius:8px;overflow:hidden;margin-bottom:24px}
.ck-progress span{display:block;height:100%;width:100%;background:linear-gradient(90deg,#b78c2d,#fcd535);border-radius:inherit;transition:width .3s linear}
.ck-label{margin:0;color:#a8b1bf;font-size:12px}
.ck-center{text-align:center;margin-bottom:5px}
.ck-address-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}
.ck-network{color:#fcd535;background:#fcd5350b;border:1px solid #fcd53530;border-radius:6px;padding:3px 8px;font-size:11px;font-weight:600}
.ck-addr{margin:0;padding:14px;border-radius:12px;background:#0b0e1466;border:1px solid #323945;color:#efd58c;font-family:Consolas,monospace;font-size:14px;line-height:1.7;word-break:break-all;user-select:text}
.ck-copy,.ck-close{width:100%;min-height:46px;margin-top:14px;border:1px solid transparent;border-radius:12px;font:inherit;font-weight:700;cursor:pointer;transition:background .18s,transform .18s}
.ck-copy{background:linear-gradient(135deg,#ffe579,#f4c532);color:#171c24;box-shadow:0 5px 18px #fcd53516}
.ck-copy:hover:not(:disabled){background:#ffe579}
.ck-copy:active:not(:disabled){transform:scale(.985)}
.ck-close{background:transparent;color:#b1bbc9;margin-top:7px;font-size:13px}
.ck-close:hover{background:#ffffff08}
.ck-copy:focus-visible,.ck-close:focus-visible{outline-color:#fcd535}
.wait-mask{position:fixed;inset:0;z-index:9999;background:#0f172a88;backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:20px}
.wait-mask[hidden]{display:none}
.wait-card{width:100%;max-width:300px;background:var(--card);border:1px solid var(--line);border-radius:20px;padding:30px 20px;text-align:center;box-shadow:0 18px 40px #0f172a33}
.wait-card p{margin:0;color:var(--muted);font-size:14px}
.wait-card b{display:block;margin-top:15px;color:var(--primary);font-size:38px;line-height:1.1;font-variant-numeric:tabular-nums}
@media(max-width:360px){.ck-mask{padding:12px}.ck-card{padding:22px 18px 12px;max-height:calc(100dvh - 24px)}.ck-amount{font-size:30px}}
